2ee54d8198937b6bb70ee873638ff75beb7d5673
[gnulib.git] / ChangeLog
1 2011-09-20  Bruno Haible  <bruno@clisp.org>
2
3         Tests for module 'isatty'.
4         * modules/isatty-tests: New file.
5         * tests/test-isatty.c: New file.
6
7         Tests for module 'write'.
8         * modules/write-tests: New file.
9         * tests/test-write.c: New file.
10
11         Tests for module 'read'.
12         * modules/read-tests: New file.
13         * tests/test-read.c: New file.
14
15         pwrite tests: EBADF tests.
16         * tests/test-pwrite.c (main): Add tests for EBADF.
17
18         pread tests: EBADF tests.
19         * tests/test-pread.c (main): Add tests for EBADF.
20
21         lseek tests: EBADF tests.
22         * tests/test-lseek.c (main): Add more tests for EBADF.
23
24         Tests for module 'ftruncate'.
25         * modules/ftruncate-tests: New file.
26         * tests/test-ftruncate.sh: New file.
27         * tests/test-ftruncate.c: New file.
28
29         fsync tests: EBADF tests.
30         * tests/test-fsync.c (main): Add more tests for EBADF.
31
32         fdatasync tests: EBADF tests.
33         * tests/test-fdatasync.c (main): Add more tests for EBADF.
34
35         Tests for module 'fchown'.
36         * modules/fchown-tests: New file.
37         * tests/test-fchown.c: New file.
38
39         Tests for module 'fchmod'.
40         * modules/fchmod-tests: New file.
41         * tests/test-fchmod.c: New file.
42
43         fchdir tests: EBADF tests.
44         * tests/test-fchdir.c (main): Add more tests for EBADF.
45
46         dup2 tests: EBADF tests.
47         * tests/test-dup2.c (main): Add more tests for EBADF.
48
49         Tests for module 'dup'.
50         * modules/dup-tests: New file.
51         * tests/test-dup.c: New file.
52
53         Tests for module 'close'.
54         * modules/close-tests: New file.
55         * tests/test-close.c: New file.
56
57 2011-09-20  Bruno Haible  <bruno@clisp.org>
58
59         Tests for module 'shutdown'.
60         * modules/shutdown-tests: New file.
61         * tests/test-shutdown.c: New file.
62
63         Tests for module 'setsockopt'.
64         * modules/setsockopt-tests: New file.
65         * tests/test-setsockopt.c: New file.
66
67         Tests for module 'sendto'.
68         * modules/sendto-tests: New file.
69         * tests/test-sendto.c: New file.
70
71         Tests for module 'send'.
72         * modules/send-tests: New file.
73         * tests/test-send.c: New file.
74
75         Tests for module 'recvfrom'.
76         * modules/recvfrom-tests: New file.
77         * tests/test-recvfrom.c: New file.
78
79         Tests for module 'recv'.
80         * modules/recv-tests: New file.
81         * tests/test-recv.c: New file.
82
83         Tests for module 'listen'.
84         * modules/listen-tests: New file.
85         * tests/test-listen.c: New file.
86
87         Tests for module 'getsockopt'.
88         * modules/getsockopt-tests: New file.
89         * tests/test-getsockopt.c: New file.
90
91         Tests for module 'getsockname'.
92         * modules/getsockname-tests: New file.
93         * tests/test-getsockname.c: New file.
94
95         Tests for module 'getpeername'.
96         * modules/getpeername-tests: New file.
97         * tests/test-getpeername.c: New file.
98
99         Tests for module 'connect'.
100         * modules/connect-tests: New file.
101         * tests/test-connect.c: New file.
102
103         Tests for module 'bind'.
104         * modules/bind-tests: New file.
105         * tests/test-bind.c: New file.
106
107         accept4 tests: Fix for native Windows.
108         * tests/test-accept4.c: Include sockets.h.
109         (main): Invoke gl_sockets_startup.
110         * modules/accept4-tests (Depends-on): Add sockets.
111
112         accept tests: Fix for native Windows.
113         * tests/test-accept.c: Include sockets.h.
114         (main): Invoke gl_sockets_startup.
115         * modules/accept-tests (Depends-on): Add sockets.
116
117 2011-09-19  Bruno Haible  <bruno@clisp.org>
118
119         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
120         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
121         do...while(0).
122         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
123         Suggested by Paul Eggert.
124
125 2011-09-19  Bruno Haible  <bruno@clisp.org>
126
127         sched: Ensure pid_t is defined.
128         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
129         not define pid_t.
130         * lib/sched.in.h: Include <sys/types.h>.
131         * doc/posix-headers/sched.texi: Mention the pid_t problem.
132         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
133
134 2011-09-19  Bruno Haible  <bruno@clisp.org>
135
136         msvc-inval: Ensure the entire expansion is a single statement.
137         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
138         of braces.
139
140 2011-09-19  Jim Meyering  <meyering@redhat.com>
141
142         tests: use printf, not echo in init.sh's warn_ function
143         * tests/init.sh (warn_): Use printf, not echo.  The latter would
144         misbehave when given strings containing a backslash or starting
145         with e.g., -n.  James Youngman suggested setting IFS.
146
147 2011-09-19  Eric Blake  <eblake@redhat.com>
148
149         futimens: enhance test
150         * tests/test-futimens.h (test_futimens): Also check for EBADF on
151         closed non-negative fd.
152
153         date: accept 'hence' as opposite of 'ago'
154         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
155         * tests/test-parse-datetime.c (main): Enhance test.
156         Suggested by Jesse Wilson.
157
158 2011-09-19  Jim Meyering  <meyering@redhat.com>
159
160         getcwd: don't fail in a deep directory on a system without openat
161         Before this change, getcwd would fail when called from a directory
162         of depth PATH_MAX / 3 or greater.  That was due to the fact that
163         the non-openat implementation used "..", "../..", "../../..", etc.
164         to access ancestor directories.  With too many, that string would
165         be longer than PATH_MAX.
166         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
167         using gnulib's openat replacement.
168         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
169         we're using the replacement function.
170
171 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
172
173         maint.mk: avoid warnings from perl about missing files
174         * top/maint.mk (def_sym_regex): Ignore files listed in
175         $(gl_other_headers_) that do not exist, say because a project
176         does not use a corresponding module.
177
178 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
179
180         stat: use pathmax.h only if needed
181         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
182         This is better for Emacs, which does not have a mingw port and
183         therefore can avoid the pathmax module.
184
185         utimens: remove dependency on dup2
186         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
187         to work around the Linux kernel bug.
188         * modules/utimens (Depends-on): Remove dup2.
189
190 2011-09-18  Bruno Haible  <bruno@clisp.org>
191
192         inet_ntop, inet_pton: Look for it also in libresolv.
193         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
194         libnsl, search for it in libresolv.
195         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
196         Needed on Solaris 7.
197
198 2011-09-18  Bruno Haible  <bruno@clisp.org>
199
200         accept, accept4 tests: Avoid link error on Solaris.
201         * modules/accept-tests (Makefile.am): Link test-accept against
202         $(LIBSOCKET).
203         * modules/accept4-tests (Makefile.am): Link test-accept4 against
204         $(LIBSOCKET).
205
206         accept4: Avoid link error on Solaris.
207         * modules/accept4 (Link): New section.
208
209         socket functions: Avoid link errors on Solaris.
210         * modules/accept (Depends-on): Add socketlib.
211         (Link): New section.
212         * modules/bind (Depends-on): Add socketlib.
213         (Link): New section.
214         * modules/connect (Depends-on): Add socketlib.
215         (Link): New section.
216         * modules/getpeername (Depends-on): Add socketlib.
217         (Link): New section.
218         * modules/getsockname (Depends-on): Add socketlib.
219         (Link): New section.
220         * modules/getsockopt (Depends-on): Add socketlib.
221         (Link): New section.
222         * modules/listen (Depends-on): Add socketlib.
223         (Link): New section.
224         * modules/recv (Depends-on): Add socketlib.
225         (Link): New section.
226         * modules/recvfrom (Depends-on): Add socketlib.
227         (Link): New section.
228         * modules/send (Depends-on): Add socketlib.
229         (Link): New section.
230         * modules/sendto (Depends-on): Add socketlib.
231         (Link): New section.
232         * modules/setsockopt (Depends-on): Add socketlib.
233         (Link): New section.
234         * modules/shutdown (Depends-on): Add socketlib.
235         (Link): New section.
236         * modules/socket (Depends-on): Add socketlib.
237         (Link): New section.
238
239 2011-09-18  Bruno Haible  <bruno@clisp.org>
240
241         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
242         * tests/test-ptsname.c (main): Terminate the test if it takes longer
243         than 5 seconds.
244         * modules/ptsname-tests (configure.ac): Test for alarm.
245
246 2011-09-18  Bruno Haible  <bruno@clisp.org>
247
248         posix_spawn_file_actions_add*: Fix module dependencies.
249         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
250         posix_spawn_file_actions_init.
251         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
252         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
253
254 2011-09-18  Bruno Haible  <bruno@clisp.org>
255
256         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
257         * tests/test-rename.h (test_rename): Allow error code EEXIST.
258         * tests/test-renameat.c (main): Likewise.
259
260 2011-09-18  Bruno Haible  <bruno@clisp.org>
261
262         Tests for module 'accept4'.
263         * modules/accept4-tests: New file.
264         * tests/test-accept4.c: New file.
265
266 2011-09-18  Bruno Haible  <bruno@clisp.org>
267
268         Tests for module 'accept'.
269         * modules/accept-tests: New file.
270         * tests/test-accept.c: New file.
271
272 2011-09-18  Bruno Haible  <bruno@clisp.org>
273
274         dup2: Support for MSVC.
275         * lib/dup2.c: Include msvc-inval.h.
276         (rpl_dup2): Handle invalid parameter notifications during dup2 and
277         _get_osfhandle calls.
278         * modules/dup2 (Depends-on): Add msvc-inval.
279         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
280
281         New module 'msvc-inval'.
282         * lib/msvc-inval.h: New file.
283         * lib/msvc-inval.c: New file.
284         * m4/msvc-inval.m4: New file.
285         * modules/msvc-inval: New file.
286
287 2011-09-17  Bruno Haible  <bruno@clisp.org>
288
289         Tests for module 'pclose'.
290         * modules/pclose-tests: New file.
291
292         New module 'pclose'.
293         * lib/stdio.in.h (pclose): New declaration.
294         * lib/pclose.c: New file.
295         * m4/pclose.m4: New file.
296         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
297         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
298         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
299         * modules/pclose: New file.
300         * modules/popen-tests (Depends-on): Add pclose.
301         * modules/popen-safer-tests (Depends-on): Likewise.
302         * doc/posix-functions/pclose.texi: Mention the new module.
303
304 2011-09-17  Bruno Haible  <bruno@clisp.org>
305
306         popen: Support for MSVC.
307         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
308         * lib/popen.c (popen): Provide alternate definition for native Windows.
309         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
310         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
311         * modules/popen (Depends-on, configure.ac): Update condition.
312         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
313         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
314         fixed.
315
316 2011-09-17  Bruno Haible  <bruno@clisp.org>
317
318         isnanl, isnand, isnanf: Work around MSVC bug.
319         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
320
321 2011-09-17  Bruno Haible  <bruno@clisp.org>
322
323         sys_socket tests: Fix recent mistake.
324         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
325
326 2011-09-17  Bruno Haible  <bruno@clisp.org>
327
328         putenv: Support for MSVC.
329         * modules/putenv (Depends-on): Add environ.
330         * lib/putenv.c (environ): Disable declaration.
331         * lib/unistd.in.h: Update comment.
332
333 2011-09-17  Bruno Haible  <bruno@clisp.org>
334
335         math: Avoid macro redefinition warnings on MSVC.
336         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
337         Undefine before redefining.
338
339 2011-09-17  Bruno Haible  <bruno@clisp.org>
340
341         doc: Mention functions which are declared as macros.
342         * doc/posix-functions/*[fl].texi: Mention that some functions are
343         defined as macros with arguments only.
344
345 2011-09-17  Bruno Haible  <bruno@clisp.org>
346
347         Add dependencies to new dirent related modules.
348         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
349         * modules/fts (Depends-on): Likewise.
350         * modules/glob (Depends-on): Likewise.
351         * modules/savedir (Depends-on): Likewise.
352         * modules/scandir (Depends-on): Likewise.
353         * modules/dirent-safer (Depends-on): Add opendir, closedir.
354         * modules/fdopendir (Depends-on): Add opendir.
355
356 2011-09-17  Bruno Haible  <bruno@clisp.org>
357
358         inet_pton: Support for MSVC on Windows Vista or newer.
359         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
360         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
361         HAVE_DECL_INET_PTON is defined.
362         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
363         On platforms with <winsock2.h>, test whether inet_pton is declared in
364         <ws2tcpip.h>. If so, arrange to replace it.
365         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
366         REPLACE_INET_PTON.
367         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
368         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
369         (Depends-on, configure.ac): Update condition.
370         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
371
372 2011-09-17  Bruno Haible  <bruno@clisp.org>
373
374         inet_ntop: Support for MSVC on Windows Vista or newer.
375         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
376         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
377         HAVE_DECL_INET_NTOP is defined.
378         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
379         On platforms with <winsock2.h>, test whether inet_ntop is declared in
380         <ws2tcpip.h>. If so, arrange to replace it.
381         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
382         REPLACE_INET_NTOP.
383         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
384         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
385         (Depends-on, configure.ac): Update condition.
386         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
387
388 2011-09-16  Eric Blake  <eblake@redhat.com>
389
390         test-fsync: yet another enhancement
391         * tests/test-fsync.c (main): Also test behavior on read-only text
392         file.
393
394 2011-09-16  Bruno Haible  <bruno@clisp.org>
395
396         Enhance fsync, fdatasync tests.
397         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
398         * tests/test-fdatasync.c (main): Likewise.
399
400 2011-09-16  Bruno Haible  <bruno@clisp.org>
401
402         Support for MSVC compiler: Ensure mode_t gets defined.
403         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
404         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
405         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
406         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
407         * tests/test-fcntl-h.c: Check that mode_t is defined.
408         * tests/test-sys_stat.c: Likewise.
409         * tests/test-sys_types.c: Likewise.
410         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
411         * doc/posix-headers/sys_stat.texi: Likewise.
412         * doc/posix-headers/sys_types.texi: Likewise.
413
414 2011-09-16  Bruno Haible  <bruno@clisp.org>
415
416         sys_stat: Support for MSVC.
417         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
418         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
419         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
420         MSVC.
421
422 2011-09-16  Bruno Haible  <bruno@clisp.org>
423
424         Support for MSVC compiler: Ensure off_t gets defined.
425         * lib/unistd.in.h: Include <sys/types.h>.
426         * tests/test-fcntl-h.c: Check that off_t is defined.
427         * tests/test-sys_stat.c: Likewise.
428         * tests/test-sys_types.c: Likewise.
429
430 2011-09-16  Eric Blake  <eblake@redhat.com>
431
432         fdatasync: port to Solaris
433         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
434         * modules/fdatasync (Link): Document it.
435         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
436
437         fdatasync: port to MacOS X 10.7
438         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
439         declared.
440         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
441         * modules/unistd (Makefile.am): Substitute it.
442         * lib/unistd.in.h (fdatasync): Declare on MacOS.
443         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
444
445         fdatasync: minor improvements
446         * modules/fdatasync (Depends-on): Add condition for fsync.
447         * lib/fdatasync.c (fdatasync): Add comment.
448         * tests/test-unistd-c++.cc: Test fdatasync.
449
450         unistd: update refs to newer POSIX
451         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
452         Suggested by Bruno Haible.
453
454         fdatasync: new module
455         * modules/fsync (Description): Document difference to fdatasync.
456         * modules/fdatasync: New module.
457         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
458         * lib/fdatasync.c (fdatasync): Likewise.
459         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
460         defaults.
461         * modules/unistd (Makefile.am): Set witnesses.
462         * lib/unistd.in.h (fdatasync): Declare.
463         * MODULES.html.sh: Document it.
464         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
465         * modules/fdatasync-tests: New test.
466         * tests/test-fdatasync.c: Likewise.
467
468 2011-09-16  Eric Blake  <eblake@redhat.com>
469
470         test-fsync: enhance tests
471         * modules/fsync-tests (Depends-on): Add errno, for mingw.
472         * tests/test-fsync.c (main): Enhance test.
473
474 2011-09-15  Bruno Haible  <bruno@clisp.org>
475
476         Support for MSVC compiler: Ensure ssize_t gets defined.
477         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
478         * doc/posix-headers/stdio.texi: Likewise.
479         * modules/stdio (Depends-on): Add ssize_t.
480         * modules/sys_socket (Depends-on): Likewise.
481         * modules/sys_types (Depends-on): Likewise.
482         * modules/sys_uio (Depends-on): Likewise.
483         * modules/unistd (Depends-on): Likewise.
484         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
485         * tests/test-sys_types.c: Check that ssize_t is defined.
486
487 2011-09-14  Bruno Haible  <bruno@clisp.org>
488
489         Avoid using #, the m4 comment starter character, near brackets.
490         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
491         delimiter character in sed expressions.
492         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
493         Suggested by Eric Blake.
494
495         Properly quote AC_CHECK_DECLS' 4th argument.
496         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
497         argument.
498         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
499         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
500         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
501         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
502         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
503         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
504         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
505         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
506         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
507         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
508         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
509         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
510         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
511         * m4/isinf.m4 (gl_ISINF): Likewise.
512         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
513         * m4/readutmp.m4 (gl_READUTMP): Likewise.
514         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
515         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
516         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
517         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
518         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
519         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
520         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
521         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
522         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
523         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
524         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
525         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
526         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
527         Reported by Eric Blake.
528
529         Properly quote AC_CHECK_DECL's 4th argument.
530         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
531         argument.
532         * m4/argp.m4 (gl_ARGP): Likewise.
533         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
534         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
535         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
536         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
537         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
538         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
539         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
540         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
541         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
542         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
543         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
544         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
545         Reported by Eric Blake.
546
547 2011-09-14  Eric Blake  <eblake@redhat.com>
548
549         opendir: avoid compile warning
550         * lib/opendir.c (includes): Always include errno.h.
551         Reported by Tatsuro MATSUOKA.
552
553 2011-09-14  Jim Meyering  <meyering@redhat.com>
554
555         maint.mk: sc_tight_scope: propagate failure from sub-make
556         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
557         Reported by Martin von Gagern.
558
559 2011-09-13  Bruno Haible  <bruno@clisp.org>
560
561         tempname: Support for MSVC.
562         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
563         MSVC.
564         * modules/tempname (Depends-on): Add fcntl-h.
565
566 2011-09-13  Bruno Haible  <bruno@clisp.org>
567
568         sys_time: Support for MSVC.
569         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
570         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
571         include <winsock2.h>.
572         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
573         function declarations that collide with POSIX.
574         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
575         (Makefile.am): Substitute HAVE_WINSOCK2_H.
576
577 2011-09-13  Bruno Haible  <bruno@clisp.org>
578
579         stat: Support for MSVC.
580         * lib/stat.c: Include pathmax.h.
581         * modules/stat (Depends-on): Add pathmax.
582
583         pathmax: Support for native Windows.
584         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
585
586 2011-09-12  Bruno Haible  <bruno@clisp.org>
587
588         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
589         * lib/dirent.in.h (struct dirent): New type.
590         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
591         DT_WHT): New macros.
592         (DIR): New type.
593         (opendir, closedir): Declare only if the module 'opendir' is enabled.
594         (readdir, rewinddir): New declarations.
595         * lib/dirent-private.h: New file.
596         * lib/opendir.c: New file.
597         * lib/readdir.c: New file.
598         * lib/rewinddir.c: New file.
599         * lib/closedir.c: New file.
600         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
601         * m4/opendir.m4: New file.
602         * m4/readdir.m4: New file.
603         * m4/rewinddir.m4: New file.
604         * m4/closedir.m4: New file.
605         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
606         REPLACE_CLOSEDIR here.
607         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
608         readdir, rewinddir are declared.
609         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
610         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
611         HAVE_REWINDDIR, HAVE_CLOSEDIR.
612         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
613         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
614         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
615         * modules/opendir: New file.
616         * modules/readdir: New file.
617         * modules/rewinddir: New file.
618         * modules/closedir: New file.
619         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
620         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
621         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
622         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
623         * NEWS: Mention the 'fchdir' change.
624
625 2011-09-11  Bruno Haible  <bruno@clisp.org>
626
627         asm-underscore.m4: Support for MSVC.
628         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
629         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
630
631 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
632
633         Doc about crypt functions.
634         * doc/posix-functions/crypt.texi: Expand range of glibc versions
635         needing for _GNU_SOURCE to get crypt.
636         * doc/posix-functions/encrypt.texi: Likewise.
637         * doc/posix-functions/setkey.texi: Likewise.
638
639 2011-09-11  Bruno Haible  <bruno@clisp.org>
640
641         doc: Update regarding MSVC 9.
642         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
643         tested".
644         * doc/posix-functions/*.texi: Update with info about MSVC 9.
645         * doc/posix-headers/*.texi: Likewise.
646         * doc/pastposix-functions/*.texi: Likewise.
647         * doc/glibc-functions/*.texi: Likewise.
648         * doc/glibc-headers/*.texi: Likewise.
649
650 2011-09-11  Bruno Haible  <bruno@clisp.org>
651
652         unistd et al.: Don't assume <unistd.h> exists.
653         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
654         does not exist.
655         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
656         exist. But include <stdlib.h>.
657         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
658         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
659         symlink() does not exist.
660         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
661         include <io.h> instead.
662         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
663         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
664         include <direct.h> instead.
665         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
666         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
667         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
668         <io.h> instead.
669         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
670         correctly if the system does not have hard links.
671         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
672         <direct.h> instead.
673         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
674         it when looking for function declarations.
675         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
676         <direct.h> and <io.h> instead.
677         * doc/posix-headers/unistd.texi: More details about MSVC problem.
678
679 2011-09-11  Bruno Haible  <bruno@clisp.org>
680
681         strcase: Support for MSVC.
682         * modules/strcase (Status, Notice): Remove obsoletion mark.
683         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
684         * doc/posix-functions/strncasecmp.texi: Likewise.
685
686         strings: Don't assume <strings.h> exists.
687         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
688         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
689         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
690         * doc/posix-headers/strings.texi: Mention the MSVC problem.
691
692 2011-09-11  Bruno Haible  <bruno@clisp.org>
693
694         dirent: Don't assume <dirent.h> exists.
695         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
696         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
697         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
698         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
699
700 2011-09-11  Bruno Haible  <bruno@clisp.org>
701
702         Fix wint_t on MSVC.
703         * lib/wchar.in.h (wint_t): On MSVC, override it.
704         * lib/wctype.in.h (wint_t): Likewise.
705         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
706         MSVC.
707         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
708         * doc/posix-headers/wctype.texi: Likewise.
709
710 2011-09-11  Bruno Haible  <bruno@clisp.org>
711
712         sys_types: Fix typo.
713         * lib/sys_types.in.h: Fix typo in comment.
714         Reported by Paul Eggert.
715
716         Support for MSVC compiler: Ensure size_t gets defined.
717         * modules/strings (Depends-on): Add 'sys_types'.
718         * modules/sys_uio (Depends-on): Likewise.
719         * lib/sys_uio.in.h: Update comment.
720
721         C++ tests for module 'sys_types'.
722         * modules/sys_types-c++-tests: New file.
723         * tests/test-sys_types-c++.cc: New file.
724
725         Tests for module 'sys_types'.
726         * modules/sys_types-tests: New file.
727         * tests/test-sys_types.c: New file.
728
729         New module 'sys_types'.
730         * lib/sys_types.in.h: New file.
731         * m4/sys_types_h.m4: New file.
732         * modules/sys_types: New file.
733         * doc/posix-headers/sys_types.texi: Mention the new module and the
734         size_t problem on MSVC 9.
735
736 2011-09-11  Bruno Haible  <bruno@clisp.org>
737
738         Support for MSVC compiler: Avoid division by a literal 0.
739         * lib/math.in.h (NAN): Define through a function call also on MSVC.
740         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
741         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
742         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
743         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
744         * tests/infinity.h: New file.
745         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
746         on MSVC.
747         * tests/test-ceilf1.c: Include infinity.h.
748         (main): Use Infinityf.
749         * tests/test-ceil1.c: Include infinity.h.
750         (main): Use Infinityd.
751         * tests/test-ceill.c: Include infinity.h.
752         (main): Use Infinityl.
753         * tests/test-dprintf-posix.c: Include infinity.h.
754         (test_function): Use Infinityd.
755         * tests/test-floorf1.c: Include infinity.h.
756         (main): Use Infinityf.
757         * tests/test-floor1.c: Include infinity.h.
758         (main): Use Infinityd.
759         * tests/test-floorl.c: Include infinity.h.
760         (main): Use Infinityl.
761         * tests/test-fprintf-posix.c: Include infinity.h.
762         (test_function): Use Infinityd.
763         * tests/test-frexp.c: Include infinity.h.
764         (main): Use Infinityd.
765         * tests/test-frexpl.c: Include infinity.h.
766         (main): Use Infinityl.
767         * tests/test-isfinite.c: Include infinity.h.
768         (test_isfinitef): Use Infinityf.
769         (test_isfinited): Use Infinityd.
770         (test_isfinitel): Use Infinityl.
771         * tests/test-isinf.c: Include infinity.h.
772         (test_isinff): Use Infinityf.
773         (test_isinfd): Use Infinityd.
774         (test_isinfl): Use Infinityl.
775         * tests/test-isnan.c: Include infinity.h.
776         (test_float): Use Infinityf.
777         (test_double): Use Infinityd.
778         (test_long_double): Use Infinityl.
779         * tests/test-isnanf.h: Include infinity.h.
780         (main): Use Infinityf.
781         * tests/test-isnand.h: Include infinity.h.
782         (main): Use Infinityd.
783         * tests/test-isnanl.h: Include infinity.h.
784         (main): Use Infinityl.
785         * tests/test-ldexpl.c: Include infinity.h.
786         (main): Use Infinityl.
787         * tests/test-printf-posix.h: Include infinity.h.
788         (test_function): Use Infinityd.
789         * tests/test-roundf1.c: Include infinity.h.
790         (main): Use Infinityf.
791         * tests/test-round1.c: Include infinity.h.
792         (main): Use Infinityd.
793         * tests/test-roundl.c: Include infinity.h.
794         (main): Use Infinityl.
795         * tests/test-signbit.c: Include infinity.h.
796         (test_signbitf): Use Infinityf.
797         (test_signbitd): Use Infinityd.
798         (test_signbitl): Use Infinityl.
799         * tests/test-snprintf-posix.h: Include infinity.h.
800         (test_function): Use Infinityd, Infinityl.
801         * tests/test-sprintf-posix.h: Include infinity.h.
802         (test_function): Use Infinityd, Infinityl.
803         * tests/test-truncf1.c: Include infinity.h.
804         (main): Use Infinityf.
805         * tests/test-trunc1.c: Include infinity.h.
806         (main): Use Infinityd.
807         * tests/test-truncl.c: Include infinity.h.
808         (main): Use Infinityl.
809         * tests/test-vasnprintf-posix.c: Include infinity.h.
810         (test_function): Use Infinityd, Infinityl.
811         * tests/test-vasprintf-posix.c: Include infinity.h.
812         (test_function): Use Infinityd, Infinityl.
813         * modules/ceilf-tests (Files): Add tests/infinity.h.
814         * modules/ceil-tests (Files): Likewise.
815         * modules/ceill-tests (Files): Likewise.
816         * modules/dprintf-posix-tests (Files): Likewise.
817         * modules/floorf-tests (Files): Likewise.
818         * modules/floor-tests (Files): Likewise.
819         * modules/floorl-tests (Files): Likewise.
820         * modules/fprintf-posix-tests (Files): Likewise.
821         * modules/frexp-tests (Files): Likewise.
822         * modules/frexp-nolibm-tests (Files): Likewise.
823         * modules/frexpl-tests (Files): Likewise.
824         * modules/frexpl-nolibm-tests (Files): Likewise.
825         * modules/isfinite-tests (Files): Likewise.
826         * modules/isinf-tests (Files): Likewise.
827         * modules/isnan-tests (Files): Likewise.
828         * modules/isnanf-tests (Files): Likewise.
829         * modules/isnanf-nolibm-tests (Files): Likewise.
830         * modules/isnand-tests (Files): Likewise.
831         * modules/isnand-nolibm-tests (Files): Likewise.
832         * modules/isnanl-tests (Files): Likewise.
833         * modules/isnanl-nolibm-tests (Files): Likewise.
834         * modules/ldexpl-tests (Files): Likewise.
835         * modules/printf-posix-tests (Files): Likewise.
836         * modules/roundf-tests (Files): Likewise.
837         * modules/round-tests (Files): Likewise.
838         * modules/roundl-tests (Files): Likewise.
839         * modules/signbit-tests (Files): Likewise.
840         * modules/snprintf-posix-tests (Files): Likewise.
841         * modules/sprintf-posix-tests (Files): Likewise.
842         * modules/truncf-tests (Files): Likewise.
843         * modules/trunc-tests (Files): Likewise.
844         * modules/truncl-tests (Files): Likewise.
845         * modules/vasnprintf-posix-tests (Files): Likewise.
846         * modules/vasprintf-posix-tests (Files): Likewise.
847         * modules/vdprintf-posix-tests (Files): Likewise.
848         * modules/vfprintf-posix-tests (Files): Likewise.
849         * modules/vprintf-posix-tests (Files): Likewise.
850         * modules/vsnprintf-posix-tests (Files): Likewise.
851         * modules/vsprintf-posix-tests (Files): Likewise.
852         * modules/xprintf-posix-tests (Files): Likewise.
853
854 2011-09-11  Bruno Haible  <bruno@clisp.org>
855
856         Ensure pid_t gets defined.
857         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
858         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
859         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
860         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
861         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
862         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
863         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
864         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
865         * tests/test-fcntl-h.c: Check that pid_t is defined.
866         * tests/test-sched.c: Likewise.
867         * tests/test-termios.c: Likewise.
868         * tests/test-time.c: Likewise.
869         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
870         * doc/posix-headers/signal.texi: Likewise.
871         * doc/posix-headers/sys_types.texi: Likewise.
872         * doc/posix-headers/time.texi: Likewise.
873
874 2011-09-11  Bruno Haible  <bruno@clisp.org>
875
876         acl: Fix compilation on Solaris 10 (older version).
877         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
878         of ACE_EVERYONE.
879         * lib/set-mode-acl.c (qset_acl): Likewise.
880         Reported by Christian Jullien <eligis@orange.fr>.
881
882 2011-09-10  Bruno Haible  <bruno@clisp.org>
883
884         iconv, unsetenv: Add support for MSVC compiler.
885         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
886         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
887
888 2011-09-10  Bruno Haible  <bruno@clisp.org>
889
890         *printf: Add support for MSVC compiler.
891         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
892         handles the exception caused by the %n directive. When cross-compiling,
893         guess no on native Windows.
894         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
895         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
896         emulate it through vsnprintf.
897         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
898         * doc/posix-functions/dprintf.texi: Update documentation regarding
899         MSVC 9.
900         * doc/posix-functions/fprintf.texi: Likewise.
901         * doc/posix-functions/printf.texi: Likewise.
902         * doc/posix-functions/snprintf.texi: Likewise.
903         * doc/posix-functions/sprintf.texi: Likewise.
904         * doc/posix-functions/swprintf.texi: Likewise.
905         * doc/posix-functions/vdprintf.texi: Likewise.
906         * doc/posix-functions/vfprintf.texi: Likewise.
907         * doc/posix-functions/vprintf.texi: Likewise.
908         * doc/posix-functions/vsnprintf.texi: Likewise.
909         * doc/posix-functions/vsprintf.texi: Likewise.
910         * doc/glibc-functions/asprintf.texi: Likewise.
911         * doc/glibc-functions/obstack_printf.texi: Likewise.
912         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
913         * doc/glibc-functions/vasprintf.texi: Likewise.
914
915 2011-09-10  Bruno Haible  <bruno@clisp.org>
916
917         nocrash: Add support for native Windows.
918         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
919
920 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
921             Bruno Haible  <bruno@clisp.org>
922
923         absolute-header, include-next: Add support for MSVC compiler.
924         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
925         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
926         directory separator in #line directives.
927         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
928         recognize also backslash as directory separator in #line directives.
929
930 2011-09-08  Jim Meyering  <meyering@redhat.com>
931
932         maint.mk: mark the post-release commit log with "maint: " prefix
933         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
934         one-line commit-log summary.
935
936 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
937             Bruno Haible  <bruno@clisp.org>
938
939         Doc about crypt functions.
940         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
941         systems.
942         * doc/posix-functions/encrypt.texi: Likewise.
943         * doc/posix-functions/setkey.texi: Likewise.
944
945 2011-09-08  Simon Josefsson  <simon@josefsson.org>
946
947         * lib/gc.h: Fix copyright header.
948
949 2011-09-07  Bruno Haible  <bruno@clisp.org>
950
951         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
952         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
953         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
954
955 2011-09-07  Bruno Haible  <bruno@clisp.org>
956
957         openat: Work around compilation error with OSF/1 5.1 DTK cc.
958         * lib/fopen.c: Use different syntax for include of <stdio.h>.
959         * lib/freopen.c: Likewise.
960         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
961         * lib/lstat.c: Likewise.
962         * lib/stat.c: Likewise.
963         * lib/open.c: Use different syntax for include of <fcntl.h>.
964         * lib/openat.c: Include fcntl.h again, explicitly.
965
966 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
967
968         parse-datetime: document the newly accepted format
969         * doc/parse-datetime.texi (Combined date and time of day items):
970         New section.
971
972 2011-09-06  Bruno Haible  <bruno@clisp.org>
973
974         acl: Fix a test failure on newer Solaris 10 with ZFS.
975         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
976         ENOSYS as no ACL.
977         Reported by Jim Meyering.
978
979 2011-09-06  Bruno Haible  <bruno@clisp.org>
980
981         acl: Update for AIX >= 5.3 with NFS.
982         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
983         ENOSYS as no ACL.
984
985         acl: Fix a test failure on AIX >= 5.3 with NFS.
986         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
987         as no ACL.
988
989 2011-09-06  Bruno Haible  <bruno@clisp.org>
990
991         acl: Fix a test failure on IRIX 6.5 with NFS.
992         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
993         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
994         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
995         * lib/copy-acl.c (qcopy_acl): Likewise.
996
997 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
998
999         openat: port to AIX 7.1 with large files
1000         AIX 7.1 does a "#define openat open64at" if large files are in use,
1001         so we can't simply #undef openat.  Use the orig_openat trick (similar
1002         to orig_open in lib/open.c) to work around the problem.  Problem
1003         reported by Kevin Brott for GNU tar, in the thread containing
1004         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
1005         * lib/openat.c (__need_system_fcntl_h): Define first.
1006         Include <fcntl.h> and <sys/types.h> before undefining.
1007         (orig_openat) [HAVE_OPENAT]: New inline function.
1008         (openat) [HAVE_OPENAT]: Do not undef.
1009         (rpl_openat): Use orig_openat, not openat.
1010
1011 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
1012             Bruno Haible  <bruno@clisp.org>
1013
1014         acl: Avoid errors on NonStop Kernel.
1015         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
1016         ENOTSUP errors.
1017
1018 2011-09-05  Bruno Haible  <bruno@clisp.org>
1019
1020         acl: Clean up Solaris code.
1021         * lib/acl-internal.h: Remove no-op #if.
1022         * lib/file-has-acl.c: Likewise.
1023         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
1024         * lib/copy-acl.c (qcopy_acl): Likewise.
1025
1026 2011-09-05  Bruno Haible  <bruno@clisp.org>
1027
1028         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
1029         binaries built on the original Solaris 10.
1030         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
1031         trivial.
1032
1033 2011-09-05  Bruno Haible  <bruno@clisp.org>
1034
1035         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
1036         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
1037         10.
1038         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
1039         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
1040         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
1041         instead of acl_get, facl_get, acl_set, facl_set.
1042
1043 2011-09-05  Bruno Haible  <bruno@clisp.org>
1044
1045         copy-file: Try unit tests on more file systems.
1046         * tests/test-copy-file-1.sh: New file.
1047         * tests/test-copy-file-2.sh: New file.
1048         * modules/copy-file-tests (Files): Add them.
1049         (Makefile.am): Add them to TESTS.
1050
1051         acl: Try unit tests on more file systems.
1052         * tests/test-file-has-acl-1.sh: New file.
1053         * tests/test-file-has-acl-2.sh: New file.
1054         * tests/test-set-mode-acl-1.sh: New file.
1055         * tests/test-set-mode-acl-2.sh: New file.
1056         * tests/test-copy-acl-1.sh: New file.
1057         * tests/test-copy-acl-2.sh: New file.
1058         * modules/acl-tests (Files): Add them.
1059         (Makefile.am): Add them to TESTS.
1060
1061 2011-09-04  Bruno Haible  <bruno@clisp.org>
1062
1063         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
1064         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
1065         10.
1066         (OLD_ALLOW, OLD_DENY): New macros.
1067         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
1068         ACE_ACCESS_ALLOWED_ACE_TYPE.
1069         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
1070         ACE_ACCESS_DENIED_ACE_TYPE.
1071         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
1072         (NEW_ACE_EXECUTE): Fix value.
1073         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
1074         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
1075         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
1076         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
1077         NEW_ACE_SYNCHRONIZE): New macros.
1078         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
1079         instead of acl_fromtext, acl_set, facl_set.
1080         Fixes a coreutils/tests/cp/perm failure.
1081
1082 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
1083
1084         openat: test for fstatat (..., 0) bug
1085         Further testing with tar suggests that fstatat (..., 0)
1086         does not work in general, on AIX 7.1; see
1087         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
1088         So, give up entirely on AIX 7.1's fstatat, and fall back on our
1089         replacement fstatat (which is what older AIX releases were using
1090         anyway).
1091         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
1092         use is now changed to orig_fstatat.  This was probably the right
1093         thing to do anyway.
1094         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
1095         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
1096         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
1097         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
1098         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
1099         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
1100         if the bug is found.
1101
1102         openat: test for fstatat (AT_FDCWD, ..., 0) bug
1103         This tests for another fstatat bug on AIX 7.1:
1104         fstatat (AT_FDCWD, ..., 0) does not work.  See
1105         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
1106         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
1107         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
1108         (rpl_fstatat): Adjust so that it works around either (or both)
1109         bugs if present.
1110         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
1111
1112 2011-09-03  Karl Berry  <karl@gnu.org>
1113
1114         * doc/regex.texi (Character Class Operators): Avoid literal ":"
1115         in index entries.
1116
1117 2011-09-02  Bruno Haible  <bruno@clisp.org>
1118
1119         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
1120         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
1121         values of AR, ARFLAGS, RANLIB.
1122         Reported by John W. Eaton <jwe@gnu.org> for Octave.
1123
1124 2011-09-02  Bruno Haible  <bruno@clisp.org>
1125
1126         Find 'ar' program that fits with --host argument.
1127         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
1128
1129 2011-09-02  Bruno Haible  <bruno@clisp.org>
1130
1131         tests: init.sh: Support any non-GNU diff.
1132         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
1133         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
1134         Solaris 8.
1135
1136 2011-09-02  Bruno Haible  <bruno@clisp.org>
1137
1138         tests: init.sh: work also with any non-GNU diff that supports -u
1139         * tests/init.sh: Relax check for diff -u support.
1140         Rather than checking for GNU diff via --version, simply check
1141         for support for -u itself.  Useful at least on OpenBSD 4.9,
1142         AIX 7.1, IRIX 6.5, and Solaris 10.
1143
1144 2011-09-01  Bruno Haible  <bruno@clisp.org>
1145
1146         strtoimax, strtoumax: Document problem on HP-UX 11.
1147         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
1148         * doc/posix-functions/strtoumax.texi: Likewise.
1149
1150 2011-09-01  Bruno Haible  <bruno@clisp.org>
1151
1152         strtoumax: Avoid link error on OSF/1 with DTK cc.
1153         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
1154         defined as a function.
1155         * modules/strtoumax (Depends-on, configure.ac): Test only whether
1156         strtoumax is defined, not whether it is declared.
1157
1158 2011-09-01  Bruno Haible  <bruno@clisp.org>
1159
1160         strtoimax: Avoid link error on OSF/1 with DTK cc.
1161         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
1162         defined as a function.
1163         * modules/strtoimax (Depends-on, configure.ac): Test only whether
1164         strtoimax is defined, not whether it is declared.
1165
1166 2011-09-01  Bruno Haible  <bruno@clisp.org>
1167
1168         imaxdiv: Avoid link error on OSF/1 with DTK cc.
1169         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
1170         as a function.
1171         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
1172         whether it is declared.
1173
1174 2011-09-01  Bruno Haible  <bruno@clisp.org>
1175
1176         imaxabs: Avoid link error on OSF/1 with DTK cc.
1177         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
1178         as a function.
1179         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
1180         whether it is declared.
1181
1182 2011-09-01  Bruno Haible  <bruno@clisp.org>
1183
1184         Tests for module 'strtoumax'.
1185         * modules/strtoumax-tests: New file.
1186         * tests/test-strtoumax.c: New file.
1187
1188         Tests for module 'strtoimax'.
1189         * modules/strtoimax-tests: New file.
1190         * tests/test-strtoimax.c: New file.
1191
1192         Tests for module 'imaxdiv'.
1193         * modules/imaxdiv-tests: New file.
1194         * tests/test-imaxdiv.c: New file.
1195
1196         Tests for module 'imaxabs'.
1197         * modules/imaxabs-tests: New file.
1198         * tests/test-imaxabs.c: New file.
1199
1200 2011-09-01  Bruno Haible  <bruno@clisp.org>
1201
1202         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
1203         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
1204         pthread_create.
1205
1206 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
1207
1208         openat: work around AIX 7.1 fstatat issue
1209         This should fix the problem that was not properly fixed
1210         in the previous change, dated 2011-08-30.
1211         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
1212         __need_system_stat_h defined.
1213         (orig_fstatat) [HAVE_FSTATAT]: New function.
1214         (rpl_fstatat): Go back to the old way of doing things,
1215         except call orig_fstatat instead of fstatat.
1216         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
1217         Remove unnecessary check whether fstatat fills in st_size etc.
1218
1219 2011-09-01  Bruno Haible  <bruno@clisp.org>
1220
1221         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
1222         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
1223         just include the system's header.
1224
1225 2011-08-31  Jim Meyering  <meyering@redhat.com>
1226
1227         tests: avoid spurious assertion failure in test-float.c on ppc64
1228         * tests/test-float.c (test_long_double): Comment out an assertion,
1229         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
1230         with gcc-4.4.4.
1231
1232         maint: indent with spaces, not TABs
1233         I need to get in the habit of running gnulib's "make check".
1234         Both of these would have been caught.
1235         * m4/largefile.m4: Indent with spaces, not TABs.
1236         * lib/parse-datetime.y (iso_8601_time): Likewise.
1237         Spotted by Pádraig Brady.
1238
1239         test-parse-datetime.c: accommodate a relatively strict gcc warning
1240         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
1241         to avoid a warning from gcc's -Werror=missing-declarations.
1242         Insert a few spaces-before-funcall-parenthesis.
1243
1244 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
1245
1246         parse-datetime: accept ISO 8601 date and time rep with "T" separator
1247         The parser now accepts ISO 8601 date-time strings with "T" as the
1248         separator.  It has long parsed dates like "2004-02-29 16:21:42"
1249         with a space between the date and time strings.  Now it also parses
1250         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
1251         variants like "2004-02-29T16:21:42.333-07:00"
1252         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
1253         of day representation using the 'T' separator character.
1254         * doc/parse-datetime.texi (General date syntax): replace use of
1255         deprecated --iso-8601 option with --rfc-3339 in example of date
1256         command output formats that can be parsed.
1257         * tests/test-parse-datetime.c (tm_diff): New function, taken from
1258         lib/parse-datetime.y.
1259         (gmt_offset): New function.
1260         (main): Add additional test cases to validate ISO8601 extended
1261         date and time of day parsing.
1262
1263 2011-08-31  Bruno Haible  <bruno@clisp.org>
1264
1265         freopen: Documentation.
1266         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
1267         name.
1268         Reported by Claudio Bley <claudio.bley@gmail.com>.
1269
1270 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
1271
1272         freopen: Don't crash if the filename argument is NULL.
1273         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
1274         NULL.
1275
1276 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
1277
1278         openat: work around AIX 7.1 fstatat bug
1279         Problem reported by Kevin Brott for GNU tar, in the thread containing
1280         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
1281         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
1282         FSTATAT_ST_SIZE_ETC_BROKEN.
1283         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
1284         rpl_fstatat.
1285         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
1286         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
1287         AC_CHECK_FUNCS_ONCE for fstatat.
1288         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
1289         fchmodat, mkdirat, openat and unlinkat.
1290
1291 2011-08-30  Bruno Haible  <bruno@clisp.org>
1292
1293         Avoid endless recursions if config.h includes some header files.
1294         * lib/fopen.c (__need_FILE): Define already before including config.h.
1295         * lib/freopen.c (__need_FILE): Likewise.
1296         * lib/open.c (__need_system_fcntl_h): Likewise.
1297         * lib/stat.c (__need_system_sys_stat_h): Likewise.
1298         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
1299         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1300
1301 2011-08-25  Karl Berry  <karl@gnu.org>
1302
1303         * config/srclist.txt (ylwrap): new try.
1304         * build-aux/ylwrap: new file.
1305
1306 2011-08-23  Bruno Haible  <bruno@clisp.org>
1307
1308         tmpdir: Use a good default directory on native Windows.
1309         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
1310         (P_tmpdir): Default to _P_tmpdir on native Windows.
1311         (path_search): On native Windows, try the value returned by GetTempPath
1312         before trying P_tmpdir.
1313         * modules/tmpdir (Depends-on): Add pathmax.
1314         Suggested by John Darrington <john@darrington.wattle.id.au>.
1315
1316 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
1317
1318         doc: fix typo in README-release
1319         * top/README-release: Capitalize first word of a sentence.
1320
1321 2011-08-19  Jim Meyering  <meyering@redhat.com>
1322
1323         fts: do not exhaust memory when processing million-entry directories
1324         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
1325         directory would require about 256*N bytes of memory.  Thus, it was
1326         easy to construct a directory too large to be processed by any of
1327         those tools.  With this change, fts' maximum memory utilization is
1328         now limited to around 30MB.
1329         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
1330         (fts_read): When we've processed the final entry (i.e., when
1331         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
1332         using the parent entry to read any remaining entries.  Dispatch
1333         depending on what fts_build returns:
1334         - NULL+stop, aka failure: stop
1335         - NULL otherwise: move up in the dir hierarchy
1336         - non-NULL: handle this new entry
1337         (fts_build): Declare and use new local, continue_readdir.
1338         Prepare to be called from fts_read, when the entries
1339         from a partially-read directory have just been exhausted.
1340         In that case, we'll skip the opendir and instead use the parent's
1341         fts_dirp and derive dir_fd from that.
1342         Finally, in the readdir loop, if we read max_entries entries,
1343         exit the loop ensuring *not* to call closedir.  This is required
1344         so that fts_dirp can be reused on a subsequent call.
1345         Prompted by Ben England's report of memory exhaustion in find
1346         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
1347
1348         maint: fts: move decl of `dp' down into while loop; split a long line
1349         * lib/fts.c (fts_build): No semantic change.
1350
1351         fts: add/use new struct member, fts_dirp
1352         We are about to use this to manage any directory with
1353         too many entries to read all of them into memory at once.
1354         To do that, we'll need to save the DIR* pointer in each
1355         affected FTSENT struct.
1356         * lib/fts_.h: Include <dirent.h>.
1357         (struct FTSENT) [fts_dirp]: New member.
1358         * lib/fts.c (closedir_and_clear): Define.
1359         Use it in place of closedir so that we are sure to
1360         clear the new fts_dirp member when done with it.
1361         (fts_alloc): Initialize the new member.
1362         (fts_lfree): Free, if needed.
1363
1364         maint: fts: give __opendir2 a new parameter and rename
1365         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
1366         than surreptitiously using sole caller's "dir_fd".
1367         (fts_opendir): Rename from __opendir2.
1368
1369         maint: fts.c: remove __opendir2's now-unused parameter, oflag
1370         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
1371
1372         maint: fts.c: correct off-by-one indentation
1373         * lib/fts.c (fts_build): Correct indentation, change style
1374         of a couple of block comments, and bracing style.
1375
1376         maint: fts.c: move __opendir2 #define "up" out of function body
1377         * lib/fts.c (__opendir2): Move "up".  No semantic change.
1378
1379         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
1380         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
1381         out for a long time and besides was useful only on BSD systems.
1382
1383 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
1384
1385         regex: port to Stratus OpenVOS
1386         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
1387         define to empty, rather than attempting nonportable optimizations.
1388         Problem reported by Paul Green in:
1389         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
1390         and fix suggested by Eric Blake in:
1391         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
1392
1393 2011-08-17  Eric Blake  <eblake@redhat.com>
1394
1395         getcwd: fix test failures on mingw
1396         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
1397         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
1398         test if long directory cannot be created, and allow mingw errno.
1399
1400         getcwd-lgpl: fix m4 to match relaxed test for BSD
1401         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
1402         (gl_FUNC_GETCWD_SIGNATURE): New macro.
1403         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
1404         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
1405         signature problem.
1406
1407         getcwd: fix compilation on mingw64
1408         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
1409         getcwd.
1410         Reported by Marc-André Lureau.
1411
1412         pipe2: silence compiler warning
1413         * lib/pipe2.c (pipe2): Hide label if it is not used.
1414
1415 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
1416
1417         relocatable-prog: fix link error
1418         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
1419         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
1420         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
1421         into modules/relocatable-lib without noticing that
1422         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
1423         also needs to build relocatable.c.
1424
1425 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
1426
1427         getaddrinfo: fix sh typo in gai_strerrorA decl checking
1428         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
1429         shell code: it contained a 'break' that was not in a loop.
1430         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
1431         via a shell-language loop; this may have been true in old Autoconf
1432         versions, but it's not true in Autoconf 2.68.  I found this bug
1433         when testing coreutils git on Solaris 8, whose shell complains
1434         about the syntax error.
1435
1436 2011-08-12  Simon Josefsson  <simon@josefsson.org>
1437
1438         * lib/base64.c: Fix comment to reference RFC 4648.
1439         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
1440         <gvtulder@gmail.com>.
1441
1442 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
1443
1444         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
1445
1446         po/Makefile.in.in: fix make -q problem
1447         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
1448         rule, since there's no file named 'check-macro-version' and its
1449         use as a file breaks make -q.
1450         (all): Don't depend on check-macro-version.
1451         (CHECK_MACRO_VERSION): New macro.
1452         (stamp-po): Use it.
1453
1454         configmake: fix make -q problem
1455         * modules/configmake (configmake.h): Update configmake.h's time stamp
1456         even if the file does not change.  Otherwise, 'make -q' fails.
1457         Problem reported by Simon Josefsson in
1458         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
1459
1460 2011-08-11  Jim Meyering  <meyering@redhat.com>
1461
1462         git-version-gen: correct the advice in a comment
1463         * build-aux/git-version-gen: Correct comment.
1464         Don't recommend to list .tarball-version in .gitignore.
1465
1466 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
1467
1468         base64: fix off-by-one buffer size bug
1469         Problem and (trivial) fix reported by Gijs van Tulder in
1470         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
1471         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
1472         * tests/test-base64.c (main): Catch the bug.
1473
1474 2011-08-10  Eric Blake  <eblake@redhat.com>
1475
1476         closein: correct comments
1477         * lib/closein.c (close_stdin): Improve comments.
1478
1479 2011-08-09  Bruno Haible  <bruno@clisp.org>
1480
1481         More tests for 'fseeko'.
1482         * tests/test-fseeko3.c: New file, from Eric Blake.
1483         * tests/test-fseeko3.sh: New file.
1484         * modules/fseeko-tests (Files): Add them.
1485         (TESTS): Add test-fseeko3.sh.
1486         (check_PROGRAMS): Add test-fseeko3.
1487
1488 2011-08-09  Eric Blake  <eblake@redhat.com>
1489
1490         fseeko: remove unneeded hack
1491         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
1492
1493         fseeko: fix bug on glibc
1494         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
1495         Reported by John W. Eaton.
1496
1497 2011-08-08  Bruno Haible  <bruno@clisp.org>
1498
1499         unictype/base: Fix interoperability with preinstalled libunistring.
1500         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
1501         Reported by Simon Josefsson.
1502
1503 2011-08-08  Bruno Haible  <bruno@clisp.org>
1504
1505         iswblank: Detect declaration correctly.
1506         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
1507         AC_CHECK_DECLS invocation.
1508
1509 2011-08-08  Bruno Haible  <bruno@clisp.org>
1510
1511         tcgetsid: Detect declaration correctly.
1512         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
1513         AC_CHECK_DECLS invocation.
1514         Reported by Simon Josefsson.
1515
1516 2011-08-08  Eric Blake  <eblake@redhat.com>
1517
1518         largefile: fix typo that regressed large file support
1519         * modules/largefile (configure.ac-early): Fix section name.
1520
1521 2011-08-06  Karl Berry  <karl@gnu.org>
1522
1523         * MODULES.html.sh (func_all_files): _Noreturn is no longer
1524         a separate module.
1525
1526 2011-08-05  Simon Josefsson  <simon@josefsson.org>
1527
1528         openat: Fix warnings and commens when building unlinkat.c on Hurd.
1529         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
1530         get prototype for free.
1531
1532 2011-08-04  Bruno Haible  <bruno@clisp.org>
1533
1534         Tests for module 'pathmax'.
1535         * modules/pathmax-tests: New file.
1536         * tests/test-pathmax.c: New file.
1537
1538         canonicalize-lgpl: Support larger filenames on the Hurd.
1539         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
1540         Reported by Paul Eggert.
1541
1542         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
1543         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
1544         * lib/chdir-long.h: Include pathmax.h.
1545         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
1546         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
1547         (PATH_MAX): Remove code that is done by pathmax.h.
1548         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
1549         * lib/tmpfile.c: Add a comment.
1550         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
1551         * modules/chdir-long (Depends-on): Add pathmax.
1552         * modules/getcwd (Depends-on): Add pathmax.
1553         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
1554         is not defined.
1555         * doc/posix-headers/limits.texi: Mention the pathmax module.
1556         * NEWS: Mention the change.
1557
1558 2011-08-02  Bruno Haible  <bruno@clisp.org>
1559
1560         pthread_sigmask: Actually use results of gl_THREADLIB.
1561         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
1562         gl_THREADLIB, not gl_[]THREADLIB.
1563         Reported by Eric Blake.
1564
1565 2011-08-02  Jim Meyering  <meyering@redhat.com>
1566
1567         maint.mk: relax the default _gl_TS_function_match regexp
1568         * top/maint.mk (_gl_TS_function_match): Don't require at least one
1569         space between function name and "(" in an "extern" declaration.
1570         That would fail to match a decl with no space there: extern void foo();
1571
1572 2011-07-31  Iain Nicol  <iain@thenicols.net>
1573
1574         git-version-gen: document that EXTRA_DIST must include .version
1575         * build-aux/git-version-gen: In the how-to-use comment, document
1576         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
1577         will fail when run from an unpacked distribution tarball.
1578
1579 2011-08-01  Bruno Haible  <bruno@clisp.org>
1580
1581         wctype-h: Fix last change.
1582         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
1583         REPLACE_TOWLOWER to 0.
1584         Reported by Sam Steingold <sds@gnu.org>.
1585
1586 2011-07-31  Bruno Haible  <bruno@clisp.org>
1587
1588         frexpl: Update autoconf test.
1589         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
1590         according to changes of 2011-06-20.
1591
1592 2011-07-31  Bruno Haible  <bruno@clisp.org>
1593
1594         sys_utsname: Add support for Minix.
1595         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
1596         <sys/utsname.h>.
1597         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1598         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
1599
1600 2011-07-31  Bruno Haible  <bruno@clisp.org>
1601
1602         strings: Add support for Minix.
1603         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
1604         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
1605         * doc/posix-headers/strings.texi: Document the Minix problem.
1606
1607 2011-07-31  Bruno Haible  <bruno@clisp.org>
1608
1609         wctype-h: Add support for Minix.
1610         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
1611         REPLACE_TOWLOWER.
1612         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
1613         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
1614         REPLACE_ISWCNTRL.
1615
1616 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
1617
1618         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
1619         This is a performance improvement for 64-bit hosts: it causes the
1620         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
1621
1622 2011-07-31  Bruno Haible  <bruno@clisp.org>
1623
1624         stdioext: Add support for Minix.
1625         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
1626         * lib/fpurge.c (fpurge): Likewise.
1627         * lib/freadahead.c (freadahead): Likewise.
1628         * lib/freadable.c (freadable): Likewise.
1629         * lib/freading.c (freading): Likewise.
1630         * lib/freadptr.c (freadptr): Likewise.
1631         * lib/freadseek.c (freadptrinc): Likewise.
1632         * lib/fseeko.c (rpl_fseeko): Likewise.
1633         * lib/fseterr.c (fseterr): Likewise.
1634         * lib/fwritable.c (fwritable): Likewise.
1635         * lib/fwriting.c (fwriting): Likewise.
1636         * lib/fflush.c (clear_ungetc_buffer): Update comment.
1637         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
1638
1639 2011-07-31  Bruno Haible  <bruno@clisp.org>
1640
1641         errno: Port to Minix.
1642         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
1643         ECONNABORTED are defined.
1644         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
1645         GNULIB_defined_ECONNABORTED): New macros.
1646         * lib/strerror-override.h (strerror_override): Test also
1647         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
1648         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
1649         ECONNABORTED.
1650         * doc/posix-headers/errno.texi: Mention the Minix problem.
1651
1652 2011-07-31  Bruno Haible  <bruno@clisp.org>
1653
1654         Work around declaration collisions on Minix.
1655         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
1656         defined, set REPLACE_MBSINIT.
1657         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
1658         defined, set REPLACE_MBRTOWC.
1659         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
1660         set REPLACE_MBRLEN.
1661         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
1662         defined, set REPLACE_MBSRTOWCS.
1663         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
1664         defined, set REPLACE_WCRTOMB.
1665         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
1666         defined, set REPLACE_WCSRTOMBS.
1667
1668 2011-07-31  Bruno Haible  <bruno@clisp.org>
1669
1670         Add support for Minix with ACK compiler.
1671         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
1672         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
1673         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
1674
1675 2011-07-31  Bruno Haible  <bruno@clisp.org>
1676
1677         Documentation about Minix.
1678         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
1679         * doc/glibc-headers/*.texi: Likewise.
1680         * doc/posix-functions/*.texi: Likewise.
1681         * doc/glibc-functions/*.texi: Likewise.
1682
1683 2011-07-31  Bruno Haible  <bruno@clisp.org>
1684
1685         snippet/warn-on-use: Fix indentation.
1686         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
1687
1688 2011-07-25  Jim Meyering  <meyering@redhat.com>
1689
1690         tests: test-update-copyright.sh: remove unnecessary "rm" commands
1691         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
1692         commands.
1693
1694 2011-07-27  Jim Meyering  <meyering@redhat.com>
1695
1696         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
1697         * top/maint.mk (gl_extract_significant_defines_): Now that
1698         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
1699         gnulib/lib/signal.in.h, and now that we recommend to
1700         define-if-undefined those two symbols in application code,
1701         we must filter them out of the "significant" list.
1702         This avoids a "make syntax-check" failure in coreutils.
1703
1704 2011-07-26  Eric Blake  <eblake@redhat.com>
1705
1706         warnings: add comments about previous patch
1707         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
1708         * m4/include_next.m4: Likewise.
1709         * m4/warn-on-use.m4: Likewise.
1710         * m4/warnings.m4: Likewise, and simplify use.
1711         Suggested by Stefano Lattarini.
1712
1713         include-next, warnings: support older autoconf
1714         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
1715         AS_VAR_PUSHDEF in a way that works with older autoconf.
1716         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
1717         Reported by Daniel P. Berrange.
1718
1719 2011-07-25  Bruno Haible  <bruno@clisp.org>
1720
1721         fseek, ftell: Fix doc.
1722         * doc/posix-functions/fseek.texi: Reword statement about
1723         AC_SYS_LARGEFILE.
1724         * doc/posix-functions/ftell.texi: Likewise.
1725
1726 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1727             Bruno Haible  <bruno@clisp.org>
1728
1729         Add dependencies to the 'largefile' module.
1730         * modules/fopen (Depends-on): Add 'largefile'.
1731         * modules/freopen (Depends-on): Likewise.
1732         * modules/fseeko (Depends-on): Likewise.
1733         * modules/ftello (Depends-on): Likewise.
1734         * modules/glob (Depends-on): Likewise.
1735         * modules/lseek (Depends-on): Likewise.
1736         * modules/lstat (Depends-on): Likewise.
1737         * modules/mkostemp (Depends-on): Likewise.
1738         * modules/mkostemps (Depends-on): Likewise.
1739         * modules/mkstemp (Depends-on): Likewise.
1740         * modules/mkstemps (Depends-on): Likewise.
1741         * modules/open (Depends-on): Likewise.
1742         * modules/openat (Depends-on): Likewise.
1743         * modules/pread (Depends-on): Likewise.
1744         * modules/pwrite (Depends-on): Likewise.
1745         * modules/scandir (Depends-on): Likewise.
1746         * modules/stat (Depends-on): Likewise.
1747         * modules/tmpfile (Depends-on): Likewise.
1748         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
1749         since the containing module now depends on the largefile module.
1750         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
1751         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
1752         off_t is fixed by gnulib.
1753         * doc/posix-functions/freopen.texi: Likewise.
1754         * doc/posix-functions/fseeko.texi: Likewise.
1755         * doc/posix-functions/fstatat.texi: Likewise.
1756         * doc/posix-functions/ftello.texi: Likewise.
1757         * doc/posix-functions/glob.texi: Likewise.
1758         * doc/posix-functions/lseek.texi: Likewise.
1759         * doc/posix-functions/lstat.texi: Likewise.
1760         * doc/posix-functions/mkstemp.texi: Likewise.
1761         * doc/posix-functions/open.texi: Likewise.
1762         * doc/posix-functions/openat.texi: Likewise.
1763         * doc/posix-functions/pread.texi: Likewise.
1764         * doc/posix-functions/pwrite.texi: Likewise.
1765         * doc/posix-functions/scandir.texi: Likewise.
1766         * doc/posix-functions/stat.texi: Likewise.
1767         * doc/posix-functions/tmpfile.texi: Likewise.
1768         * doc/glibc-functions/mkostemp.texi: Likewise.
1769         * doc/glibc-functions/mkostemps.texi: Likewise.
1770         * doc/glibc-functions/mkstemps.texi: Likewise.
1771
1772 2011-07-25  Bruno Haible  <bruno@clisp.org>
1773
1774         fcntl: Move AC_LIBOBJ invocation to module description.
1775         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
1776         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
1777
1778         fcntl: Remove call-in from fchdir.m4.
1779         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
1780         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
1781
1782         dup3: Remove potential call-in from fchdir.m4.
1783         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
1784         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
1785
1786         dup2: Move AC_LIBOBJ invocation to module description.
1787         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
1788         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
1789         Don't invoke AC_LIBOBJ.
1790         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
1791
1792         dup2: Remove call-in from fchdir.m4.
1793         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
1794         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
1795
1796         fclose: Move AC_LIBOBJ invocation to module description.
1797         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
1798         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
1799         to 1.
1800         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
1801
1802         fclose: Remove call-in from close.m4.
1803         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
1804         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
1805
1806         close: Move AC_LIBOBJ invocation to module description.
1807         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
1808         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
1809         1.
1810         * modules/close (configure.ac): Invoke AC_LIBOBJ.
1811
1812         close: Remove call-in from fchdir.m4.
1813         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
1814         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
1815
1816         open: Move AC_LIBOBJ invocation to module description.
1817         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
1818         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
1819         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
1820
1821         open: Remove call-in from fchdir.m4.
1822         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
1823         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
1824
1825         fchdir: Start to remove gl_REPLACE_* idiom.
1826         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
1827         (gl_FUNC_FCHDIR): Invoke it.
1828
1829 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1830
1831         * lib/ftell.c (ftell): Comment out cast.
1832
1833         close: use gl_REPLACE_FCLOSE only if defined
1834         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
1835         is defined.  The close module doesn't depend on the fclose module
1836         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
1837         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
1838         I reproduced the problem with "./gnulib-tool --test close sys_socket".
1839
1840 2011-07-24  Jim Meyering  <meyering@redhat.com>
1841
1842         test-select.h: avoid warning when using gcc's -Wmissing-declarations
1843         * tests/test-select.h (test_function): Declare as "static".
1844
1845 2011-07-24  Bruno Haible  <bruno@clisp.org>
1846
1847         doc: Mention the effects of AC_SYS_LARGEFILE.
1848         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
1849         on this function.
1850         * doc/posix-functions/aio_error.texi: Likewise.
1851         * doc/posix-functions/aio_fsync.texi: Likewise.
1852         * doc/posix-functions/aio_read.texi: Likewise.
1853         * doc/posix-functions/aio_return.texi: Likewise.
1854         * doc/posix-functions/aio_suspend.texi: Likewise.
1855         * doc/posix-functions/aio_write.texi: Likewise.
1856         * doc/posix-functions/fgetpos.texi: Likewise.
1857         * doc/posix-functions/fopen.texi: Likewise.
1858         * doc/posix-functions/freopen.texi: Likewise.
1859         * doc/posix-functions/fsetpos.texi: Likewise.
1860         * doc/posix-functions/fstatvfs.texi: Likewise.
1861         * doc/posix-functions/ftruncate.texi: Likewise.
1862         * doc/posix-functions/ftw.texi: Likewise.
1863         * doc/posix-functions/getrlimit.texi: Likewise.
1864         * doc/posix-functions/glob.texi: Likewise.
1865         * doc/posix-functions/lio_listio.texi: Likewise.
1866         * doc/posix-functions/lockf.texi: Likewise.
1867         * doc/posix-functions/mkstemp.texi: Likewise.
1868         * doc/posix-functions/mmap.texi: Likewise.
1869         * doc/posix-functions/nftw.texi: Likewise.
1870         * doc/posix-functions/openat.texi: Likewise.
1871         * doc/posix-functions/opendir.texi: Likewise.
1872         * doc/posix-functions/posix_fadvise.texi: Likewise.
1873         * doc/posix-functions/posix_fallocate.texi: Likewise.
1874         * doc/posix-functions/pread.texi: Likewise.
1875         * doc/posix-functions/pwrite.texi: Likewise.
1876         * doc/posix-functions/readdir.texi: Likewise.
1877         * doc/posix-functions/readdir_r.texi: Likewise.
1878         * doc/posix-functions/rewinddir.texi: Likewise.
1879         * doc/posix-functions/scandir.texi: Likewise.
1880         * doc/posix-functions/seekdir.texi: Likewise.
1881         * doc/posix-functions/setrlimit.texi: Likewise.
1882         * doc/posix-functions/statvfs.texi: Likewise.
1883         * doc/posix-functions/telldir.texi: Likewise.
1884         * doc/posix-functions/tmpfile.texi: Likewise.
1885         * doc/posix-functions/truncate.texi: Likewise.
1886         * doc/glibc-functions/fallocate.texi: Likewise.
1887         * doc/glibc-functions/fstatfs.texi: Likewise.
1888         * doc/glibc-functions/fts_children.texi: Likewise.
1889         * doc/glibc-functions/fts_read.texi: Likewise.
1890         * doc/glibc-functions/getdirentries.texi: Likewise.
1891         * doc/glibc-functions/mkostemp.texi: Likewise.
1892         * doc/glibc-functions/mkostemps.texi: Likewise.
1893         * doc/glibc-functions/mkstemps.texi: Likewise.
1894         * doc/glibc-functions/preadv.texi: Likewise.
1895         * doc/glibc-functions/pwritev.texi: Likewise.
1896         * doc/glibc-functions/sendfile.texi: Likewise.
1897         * doc/glibc-functions/statfs.texi: Likewise.
1898
1899 2011-07-24  Bruno Haible  <bruno@clisp.org>
1900
1901         doc: Fix typo.
1902         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
1903
1904 2011-07-24  Bruno Haible  <bruno@clisp.org>
1905
1906         doc: Mention fsusage.
1907         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
1908
1909 2011-07-24  Bruno Haible  <bruno@clisp.org>
1910
1911         doc: Mention new glibc headers and functions.
1912         * doc/glibc-headers/gshadow.texi: New file.
1913         * doc/glibc-functions/endsgent.texi: New file.
1914         * doc/glibc-functions/fgetsgent.texi: New file.
1915         * doc/glibc-functions/fgetsgent_r.texi: New file.
1916         * doc/glibc-functions/getsgent.texi: New file.
1917         * doc/glibc-functions/getsgent_r.texi: New file.
1918         * doc/glibc-functions/getsgnam.texi: New file.
1919         * doc/glibc-functions/getsgnam_r.texi: New file.
1920         * doc/glibc-functions/putsgent.texi: New file.
1921         * doc/glibc-functions/setsgent.texi: New file.
1922         * doc/glibc-functions/sgetsgent.texi: New file.
1923         * doc/glibc-functions/sgetsgent_r.texi: New file.
1924         * doc/glibc-functions/malloc_info.texi: New file.
1925         * doc/glibc-functions/preadv.texi: New file.
1926         * doc/glibc-functions/pwritev.texi: New file.
1927         * doc/glibc-functions/register_printf_modifier.texi: New file.
1928         * doc/glibc-functions/register_printf_specifier.texi: New file.
1929         * doc/glibc-functions/register_printf_type.texi: New file.
1930         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
1931         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
1932         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
1933         * doc/glibc-functions/pthread_getname_np.texi: New file.
1934         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
1935         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
1936         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
1937         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
1938         * doc/glibc-functions/pthread_setname_np.texi: New file.
1939         * doc/glibc-functions/pthread_sigqueue.texi: New file.
1940         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
1941         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
1942         * doc/glibc-functions/qsort_r.texi: New file.
1943         * doc/glibc-functions/quick_exit.texi: New file.
1944         * doc/glibc-functions/syncfs.texi: New file.
1945         * doc/gnulib.texi: Include them.
1946         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
1947         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
1948         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
1949         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
1950         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
1951         * doc/glibc-functions/execvpe.texi: Likewise.
1952
1953 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1954
1955         ftell: don't include <unistd.h>
1956         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
1957         guaranteed to define off_t, and the ftell module depends on the
1958         stdio module.
1959
1960         ftell: do not assume wraparound signed arithmetic
1961         * lib/ftell.c: Include <limits.h>.
1962         (ftell): Don't assume wraparound signed arithmetic.
1963
1964 2011-07-24  Bruno Haible  <bruno@clisp.org>
1965
1966         close: No longer depend on module 'fclose'.
1967         * modules/close (Depends-on): Remove fclose.
1968         * NEWS: Mention the change.
1969         Suggested by Sam Steingold <sds@gnu.org>.
1970
1971 2011-07-24  Bruno Haible  <bruno@clisp.org>
1972
1973         fsusage: Enable large volume support on AIX >= 5.2.
1974         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
1975         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
1976         instead of STAT_STATVFS.
1977         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
1978
1979         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
1980         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
1981         f_blocks field only on MacOS X.
1982
1983         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
1984         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
1985         * modules/fsusage (Depends-on): Add largefile.
1986
1987 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1988
1989         * README: Modernize discussion of signed integers.
1990         Assuming overflow wraparound is no longer safe.
1991         Mention ones' complement and signed magnitude.
1992
1993 2011-07-22  Bruno Haible  <bruno@clisp.org>
1994
1995         select tests, pselect tests: Refactor.
1996         * tests/test-select.h: New file, extracted from tests/test-select.c.
1997         (select_fn): New type.
1998         (test, do_select, do_select_nowait, do_select_wait, test_tty,
1999         test_connect_first, test_accept_first, test_pair, test_socket_pair,
2000         test_pipe): Add my_select argument.
2001         (test_function): Renamed from main. Add my_select argument.
2002         * tests/test-select.c: Move most code to tests/test-select.h. Include
2003         test-select.h.
2004         * modules/select-tests (Files): Add tests/test-select.h.
2005         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
2006         (my_select, main): New functions.
2007         * modules/pselect-tests (Files): Add tests/test-select.h,
2008         tests/macros.h, tests/signature.h.
2009         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
2010         (configure.ac): Check for <sys/wait.h>.
2011
2012 2011-07-22  Bruno Haible  <bruno@clisp.org>
2013
2014         sys_select tests: Check the signature of FD_*.
2015         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
2016         signature tests from here...
2017         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
2018         here.
2019         * modules/sys_select-tests (Files): Add tests/signature.h.
2020
2021 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
2022
2023         largefile: new module, replacing large-inode
2024         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
2025         * MODULES.html.sh: Add largefile, remove large-inode.
2026         * modules/largefile, m4/largefile.m4: New files.
2027         * modules/large-inode, m4/large-inode.m4: Remove.
2028
2029         fsusage: port to MacOS X 10.7 with 4 TiB file systems
2030         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
2031         implementations that use only 32 bits to count blocks.
2032         On typical hosts with 1024-byte blocks, this fails with file
2033         systems as small as 4 TiB.  Problem reported by Herb Wartens
2034         <http://debbugs.gnu.org/9140> and this should also fix a similar
2035         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
2036
2037         large-inode: New module
2038         * MODULES.html.sh: Add it.
2039         * modules/large-inode, m4/large-inode.m4: New files.
2040
2041         extensions: Enable extensions on MacOS X 10.5 and later.
2042         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
2043
2044 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
2045
2046         file-has-acl: use acl_extended_file_nofollow if available
2047         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
2048         (acl_extended_file): New macro.
2049         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
2050         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
2051
2052 2011-07-21  Bruno Haible  <bruno@clisp.org>
2053
2054         Declare system functions in a way that works with C++.
2055         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
2056         declare fdopendir as extern "C".
2057         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
2058         declare frexpl as extern "C".
2059         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
2060         declare gai_strerror as extern "C".
2061         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
2062         programs, declare gai_strerror as extern "C".
2063         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
2064         declare getlogin_r as extern "C".
2065         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
2066         as extern "C".
2067         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
2068         declare ldexpl as extern "C".
2069         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
2070         as extern "C".
2071         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
2072         program, declare getmntinfo as extern "C".
2073         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
2074         stpncpy as extern "C".
2075         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
2076         program, declare __xpg_strerror_r as extern "C".
2077         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
2078         strndup as extern "C".
2079         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
2080         declare memset and bzero as extern "C".
2081         Reported by Sam Steingold <sds@gnu.org>.
2082
2083 2011-07-12  Jim Meyering  <meyering@redhat.com>
2084
2085         maint.mk: prohibit inclusion of "verify.h" without use
2086         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
2087
2088 2011-07-19  Pádraig Brady  <P@draigBrady.com>
2089
2090         timer-time: A new module to check for timer_settime()
2091         * m4/timer_time.m4: Check for the posix function.
2092         * modules/timer-time: Add the new module.
2093         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
2094         Mention it.
2095
2096 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
2097             Bruno Haible  <bruno@clisp.org>
2098
2099         pthread_sigmask: assume POSIX threads if --avoid=threadlib
2100         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
2101         not defined, assume POSIX threads and look for pthread_sigmask in
2102         $LIBS, without changing $CPPFLAGS.
2103
2104 2011-07-19  Bruno Haible  <bruno@clisp.org>
2105
2106         strstr: Update cross-compilation guess.
2107         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
2108         CPUs, guess no, in view of glibc
2109         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
2110         Suggested by Eric Blake. Reported by Reuben Thomas.
2111
2112 2011-07-19  Pádraig Brady  <P@draigBrady.com>
2113
2114         getopt-gnu: suppress core dumps from detection code
2115         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
2116         to suppress core dumps that may well occur on glibc systems.
2117         * modules/getopt-gnu: Depend on nocrash.
2118
2119 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
2120
2121         pthread_sigmask: ensure usleep is declared
2122         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
2123         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
2124
2125 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
2126
2127         doc: Document NonStop portability issues.
2128         * doc/posix-functions/sigaction.texi (sigaction):
2129         * doc/posix-headers/signal.texi (signal.h):
2130         Document NonStop.  See Joachim Schmitz in
2131         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
2132
2133 2011-07-15  Bruno Haible  <bruno@clisp.org>
2134
2135         ffsl, ffsll: Avoid unportable behaviour.
2136         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
2137
2138 2011-07-15  Bruno Haible  <bruno@clisp.org>
2139
2140         ffs: More tests.
2141         * tests/test-ffs.c (NBITS): New macro.
2142         (main): Add more tests.
2143         * tests/test-ffsl.c (NBITS): New macro.
2144         (main): Add more tests.
2145         * tests/test-ffsll.c (NBITS): New macro.
2146         (main): Add more tests.
2147
2148 2011-07-15  Eric Blake  <eblake@redhat.com>
2149
2150         ffsl, ffsll: new modules
2151         * modules/ffsl: New file.
2152         * modules/ffsll: Likewise.
2153         * m4/ffsl.m4: Likewise.
2154         * m4/ffsll.m4: Likewise.
2155         * lib/ffsl.c: Likewise.
2156         * lib/ffsl.h: Likewise.
2157         * lib/ffsll.c: Likewise.
2158         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
2159         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
2160         * modules/string (Makefile.am): Substitute witnesses.
2161         * lib/strings.in.h (ffsl, ffsll): Declare.
2162         * modules/ffsl-tests: New test file.
2163         * modules/ffsll-tests: Likewise.
2164         * tests/test-ffsl.c: Likewise.
2165         * tests/test-ffsll.c: Likewise.
2166         * MODULES.html.sh (Integer arithmetic functions): Mention it.
2167         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
2168         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
2169
2170         ffs: fix m4 prerequisite
2171         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
2172
2173         ffs: avoid undefined behavior
2174         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
2175         * tests/test-ffs.c (naive, main): Avoid signed shifts.
2176         Reported by Bruno Haible.
2177
2178 2011-07-12  Bruno Haible  <bruno@clisp.org>
2179
2180         pthread_sigmask: Rely on module 'threadlib'.
2181         * modules/pthread_sigmask (Depends-on): Add threadlib.
2182         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
2183         is defined.
2184
2185 2011-07-12  Bruno Haible  <bruno@clisp.org>
2186
2187         regex: Depend on module 'strcase'.
2188         * modules/regex (Depends-on): Add strcase, for strcasecmp().
2189
2190 2011-07-12  Jim Meyering  <meyering@redhat.com>
2191
2192         warn-on-use: fix typo in file name
2193         * modules/snippet/warn-on-use (Files): Correct file name:
2194         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
2195
2196 2011-07-12  Bruno Haible  <bruno@clisp.org>
2197
2198         strings: Document module.
2199         * doc/posix-headers/strings.texi: Mention module 'strings'.
2200
2201 2011-07-12  Bruno Haible  <bruno@clisp.org>
2202
2203         Rename module '_Noreturn' to 'snippet/_Noreturn'.
2204         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
2205         (Files, Makefile.am): Update.
2206         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
2207         * modules/stdlib (Depends-on): Update.
2208
2209 2011-07-12  Bruno Haible  <bruno@clisp.org>
2210
2211         * NEWS: Mention the changes.
2212
2213         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
2214         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
2215         (Files, Makefile.am): Update.
2216         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
2217         * modules/arpa_inet (Depends-on): Update.
2218         * modules/ctype (Depends-on): Update.
2219         * modules/dirent (Depends-on): Update.
2220         * modules/fcntl-h (Depends-on): Update.
2221         * modules/glob (Depends-on): Update.
2222         * modules/iconv-h (Depends-on): Update.
2223         * modules/inttypes-incomplete (Depends-on): Update.
2224         * modules/langinfo (Depends-on): Update.
2225         * modules/locale (Depends-on): Update.
2226         * modules/math (Depends-on): Update.
2227         * modules/netdb (Depends-on): Update.
2228         * modules/poll-h (Depends-on): Update.
2229         * modules/pty (Depends-on): Update.
2230         * modules/search (Depends-on): Update.
2231         * modules/signal (Depends-on): Update.
2232         * modules/spawn (Depends-on): Update.
2233         * modules/stdio (Depends-on): Update.
2234         * modules/stdlib (Depends-on): Update.
2235         * modules/string (Depends-on): Update.
2236         * modules/strings (Depends-on): Update.
2237         * modules/sys_file (Depends-on): Update.
2238         * modules/sys_ioctl (Depends-on): Update.
2239         * modules/sys_select (Depends-on): Update.
2240         * modules/sys_socket (Depends-on): Update.
2241         * modules/sys_stat (Depends-on): Update.
2242         * modules/sys_time (Depends-on): Update.
2243         * modules/sys_times (Depends-on): Update.
2244         * modules/sys_utsname (Depends-on): Update.
2245         * modules/sys_wait (Depends-on): Update.
2246         * modules/termios (Depends-on): Update.
2247         * modules/time (Depends-on): Update.
2248         * modules/unistd (Depends-on): Update.
2249         * modules/wchar (Depends-on): Update.
2250         * modules/wctype-h (Depends-on): Update.
2251         * MODULES.html.sh (Support for building libraries and executables):
2252         Update.
2253
2254         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
2255         * modules/snippet/unused-parameter: Renamed from
2256         modules/unused-parameter.
2257         (Files, Makefile.am): Update.
2258         * build-aux/snippet/unused-parameter.h: Renamed from
2259         build-aux/unused-parameter.h.
2260         * modules/selinux-h (Depends-on): Update.
2261         * modules/unistr/base (Depends-on): Update.
2262         * MODULES.html.sh (Core language properties): Update.
2263
2264         Rename module 'link-warning' to 'snippet/link-warning'.
2265         * modules/snippet/link-warning: Renamed from modules/link-warning.
2266         (Files, Makefile.am): Update.
2267         * build-aux/snippet/link-warning.h: Renamed from
2268         build-aux/link-warning.h.
2269         * MODULES.html.sh (Support for building libraries and executables):
2270         Update.
2271
2272         Rename module 'c++defs' to 'snippet/c++defs'.
2273         * modules/snippet/c++defs: Renamed from modules/c++defs.
2274         (Files, Makefile.am): Update.
2275         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
2276         * modules/arpa_inet (Depends-on): Update.
2277         * modules/ctype (Depends-on): Update.
2278         * modules/dirent (Depends-on): Update.
2279         * modules/fcntl-h (Depends-on): Update.
2280         * modules/glob (Depends-on): Update.
2281         * modules/iconv-h (Depends-on): Update.
2282         * modules/langinfo (Depends-on): Update.
2283         * modules/locale (Depends-on): Update.
2284         * modules/math (Depends-on): Update.
2285         * modules/netdb (Depends-on): Update.
2286         * modules/poll-h (Depends-on): Update.
2287         * modules/pty (Depends-on): Update.
2288         * modules/search (Depends-on): Update.
2289         * modules/signal (Depends-on): Update.
2290         * modules/spawn (Depends-on): Update.
2291         * modules/stdio (Depends-on): Update.
2292         * modules/stdlib (Depends-on): Update.
2293         * modules/string (Depends-on): Update.
2294         * modules/strings (Depends-on): Update.
2295         * modules/sys_ioctl (Depends-on): Update.
2296         * modules/sys_select (Depends-on): Update.
2297         * modules/sys_socket (Depends-on): Update.
2298         * modules/sys_stat (Depends-on): Update.
2299         * modules/sys_time (Depends-on): Update.
2300         * modules/sys_wait (Depends-on): Update.
2301         * modules/termios (Depends-on): Update.
2302         * modules/time (Depends-on): Update.
2303         * modules/unistd (Depends-on): Update.
2304         * modules/wchar (Depends-on): Update.
2305         * modules/wctype-h (Depends-on): Update.
2306
2307         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
2308         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
2309         (Files, Makefile.am): Update.
2310         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
2311         * modules/argv-iter (Depends-on): Update.
2312         * modules/arpa_inet (Depends-on): Update.
2313         * modules/dirent (Depends-on): Update.
2314         * modules/fcntl-h (Depends-on): Update.
2315         * modules/fnmatch (Depends-on): Update.
2316         * modules/getopt-posix (Depends-on): Update.
2317         * modules/glob (Depends-on): Update.
2318         * modules/iconv-h (Depends-on): Update.
2319         * modules/inttypes-incomplete (Depends-on): Update.
2320         * modules/locale (Depends-on): Update.
2321         * modules/math (Depends-on): Update.
2322         * modules/netdb (Depends-on): Update.
2323         * modules/search (Depends-on): Update.
2324         * modules/signal (Depends-on): Update.
2325         * modules/spawn (Depends-on): Update.
2326         * modules/stdio (Depends-on): Update.
2327         * modules/stdlib (Depends-on): Update.
2328         * modules/string (Depends-on): Update.
2329         * modules/strings (Depends-on): Update.
2330         * modules/sys_socket (Depends-on): Update.
2331         * modules/sys_stat (Depends-on): Update.
2332         * modules/sys_time (Depends-on): Update.
2333         * modules/sys_times (Depends-on): Update.
2334         * modules/sys_utsname (Depends-on): Update.
2335         * modules/time (Depends-on): Update.
2336         * modules/unistd (Depends-on): Update.
2337         * modules/wchar (Depends-on): Update.
2338         * MODULES.html.sh (Support for building libraries and executables):
2339         Update.
2340
2341 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
2342
2343         Improvements on _Noreturn and related modules.
2344
2345         modules/_Exit-tests: test _Noreturn too
2346         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
2347         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
2348         (main): Use them.
2349
2350         stdnoreturn, stdnoreturn-tests: remove modules
2351         They're not needed here and a bit premature for use elsewhere.  See
2352         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
2353         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
2354         * tests/test-stdnoreturn.c: Remove files.
2355         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
2356         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
2357         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
2358         and using noreturn.
2359         * modules/openat, modules/sigpipe-die, modules/xalloc:
2360         * modules/xmemdup0, modules/xstrtol:
2361         Remove dependency on stdnoreturn.
2362
2363         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
2364         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
2365         Reparenthesize to avoid GCC warning.
2366         Support Microsoft's syntax.
2367         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
2368
2369         _Noreturn-tests: remove module
2370         * modules/_Noreturn-tests: Remove.
2371         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
2372         * tests/test-_Noreturn.c: Remove.
2373         * tests/test-stdnoreturn.c: Merge from the old
2374         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
2375
2376 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
2377
2378         _Noreturn, stdnoreturn, and related modules.
2379
2380         * top/maint.mk: Adjust to new noreturn support.
2381         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
2382         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
2383
2384         xalloc: use stdnoreturn.h
2385         * lib/xalloc.h: Include <stdnoreturn.h>.
2386         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2387         * modules/xalloc (Depends-on): Add stdnoreturn.
2388
2389         xstrtol: use stdnoreturn.h
2390         * lib/xstrtol.h: Include <stdnoreturn.h>.
2391         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2392         * modules/xstrtol (Depends-on): Add stdnoreturn.
2393
2394         xmemdup0: use stdnoreturn.h
2395         * lib/xmemdup0.h: Include <stdnoreturn.h>.
2396         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2397         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
2398
2399         sigpipe-die: use stdnoreturn.h
2400         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
2401         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2402         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
2403
2404         openat: use stdnoreturn.h
2405         * lib/openat.h: Include <stdnoreturn.h>.
2406         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2407         * modules/openat (Depends-on): Add stdnoreturn.
2408
2409         * lib/openat-die.c (openat_save_fail): Modernize comment.
2410
2411         * lib/xalloc-die.c (xalloc_die): Modernize comment.
2412
2413         * lib/glthread/thread.h: Modernize comment.
2414
2415         obstack: use _Noreturn
2416         * lib/obstack.c (__attribute__): Remove macro.
2417         (print_and_abort): Use _Noreturn.
2418
2419         c-stack: use _Noreturn
2420         * lib/c-stack.c (die, overflow_handler, segv_handler):
2421         Use _Noreturn rather than __attribute__((noreturn)).
2422
2423         argmatch-tests, exclude_tests: use _Noreturn
2424         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
2425         Remove.
2426         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
2427
2428         stdlib: use _Noreturn
2429         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
2430         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
2431         * modules/stdlib (Depends-on): Add _Noreturn.
2432         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
2433
2434         stdnoreturn-tests: new module
2435         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
2436
2437         stdnoreturn: new module
2438         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
2439         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
2440
2441         _Noreturn-tests: new module
2442         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
2443
2444         _Noreturn: new module
2445         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
2446         New section, mentioning it.
2447         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
2448
2449         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
2450
2451 2011-07-11  Eric Blake  <eblake@redhat.com>
2452
2453         ffs: new module
2454         * modules/ffs: New file.
2455         * m4/ffs.m4: Likewise.
2456         * lib/ffs.c: Likewise.
2457         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
2458         * modules/strings (Makefile.am): Substitute witness.
2459         (Depends-on): Add c++defs.
2460         * lib/strings.in.h (ffs): Declare.
2461         * modules/ffs-tests: New test file.
2462         * tests/test-ffs.c: Test new module.
2463         * MODULES.html.sh (Integer arithmetic functions): Mention it.
2464         * doc/posix-functions/ffs.texi (ffs): Likewise.
2465
2466         regex: avoid compiler warning
2467         * lib/regex.c (includes): Include <strings.h>, for use of
2468         strcasecmp in regcomp.c.
2469         Reported by Joachim Schmitz.
2470
2471 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
2472
2473         stdint: respect system's intmax_t if INTMAX_MAX
2474         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
2475         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
2476         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
2477         long but int64_t is long long, and where we will clash with the
2478         system intmax_t if we override it.  See
2479         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
2480         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
2481         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
2482         similarly for UINTMAX_C.
2483
2484 2011-07-08  Bruno Haible  <bruno@clisp.org>
2485
2486         pthread_sigmask tests: Avoid a compiler warning.
2487         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
2488         non-zero.
2489
2490         sigprocmask tests: A better way to avoid a compiler warning.
2491         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
2492         (main): Complain if system() returns non-zero.
2493         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
2494
2495 2011-07-08  Bruno Haible  <bruno@clisp.org>
2496
2497         pthread_sigmask: Work around IRIX bug.
2498         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
2499         bug.
2500         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
2501         there may be unblocked pending signals.
2502         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
2503
2504 2011-07-08  Bruno Haible  <bruno@clisp.org>
2505
2506         pthread_sigmask: Work around Cygwin bug.
2507         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
2508         bug.
2509         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
2510         the system's pthread_sigmask function.
2511         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
2512
2513 2011-07-08  Bruno Haible  <bruno@clisp.org>
2514
2515         pthread_sigmask: Work around bug in single-threaded implementation.
2516         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
2517         FreeBSD, HP-UX, Solaris bug.
2518         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
2519         * lib/pthread_sigmask.c: Include <stddef.h>.
2520         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
2521         the system's pthread_sigmask function.
2522         * modules/pthread_sigmask (configure.ac): Invoke
2523         gl_PREREQ_PTHREAD_SIGMASK.
2524         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
2525         HP-UX, Solaris.
2526
2527 2011-07-08  Eric Blake  <eblake@redhat.com>
2528
2529         test-sigprocmask: avoid compiler warning
2530         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
2531         * tests/test-sigprocmask.c (main): Use it to silence warning.
2532         Reported by Jim Meyering.
2533
2534         test-snprintf: avoid compiler warning
2535         * tests/test-snprintf.c (main): Avoid shadowed declaration.
2536         * tests/test-vsnprintf.c (main): Likewise.
2537         Reported by Jim Meyering.
2538
2539 2011-07-08  Bruno Haible  <bruno@clisp.org>
2540
2541         Tests for module 'pthread_sigmask'.
2542         * modules/pthread_sigmask-tests: New file.
2543         * tests/test-pthread_sigmask1.c: New file, based on
2544         tests/test-sigprocmask.c.
2545         * tests/test-pthread_sigmask2.c: New file.
2546
2547 2011-07-08  Jim Meyering  <meyering@redhat.com>
2548
2549         test-getopt.h: avoid warning about an unused variable
2550         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
2551
2552 2011-07-07  Jim Meyering  <meyering@redhat.com>
2553
2554         maint: reduce list of files exempt from sc_prohibit_leading_TABs
2555         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
2556         now that it no longer contains leading TABs.
2557         Remove unused "url=FIXME" statement.
2558
2559 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
2560
2561         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
2562         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
2563         When gl_THREADLIB is not in use, assume that the POSIX sematics
2564         are desired.  This is better for Emacs, which uses POSIX semantics
2565         on GNUish and/or POSIXish platforms, and does not use threads at
2566         all otherwise.
2567
2568         pthread_sigmask: fix typo when testing for libraries
2569         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
2570         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
2571
2572 2011-07-08  Eric Blake  <eblake@redhat.com>
2573
2574         fts: introduce FTS_NOATIME
2575         * lib/fts_.h (FTS_NOATIME): New bit flag.
2576         (FTS_OPTIONMASK): Adjust.
2577         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
2578         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
2579
2580 2011-07-08  Bruno Haible  <bruno@clisp.org>
2581
2582         Tests for module 'thread'.
2583         * modules/thread-tests: New file.
2584         * tests/test-thread_self.c: New file.
2585         * tests/test-thread_create.cc: New file.
2586
2587 2011-07-08  Bruno Haible  <bruno@clisp.org>
2588
2589         thread: Avoid gcc warnings when using gl_thread_self().
2590         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
2591         'void *'.
2592         (gl_thread_self_pointer): Update.
2593
2594 2011-07-07  Bruno Haible  <bruno@clisp.org>
2595
2596         signal-c++-tests: Check declaration of pthread_sigmask.
2597         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
2598         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
2599         $(LIB_PTHREAD_SIGMASK).
2600
2601 2011-07-07  Bruno Haible  <bruno@clisp.org>
2602
2603         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
2604         * lib/signal.in.h (pthread_sigmask): Override if
2605         REPLACE_PTHREAD_SIGMASK is 1.
2606         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2607         REPLACE_PTHREAD_SIGMASK.
2608         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
2609         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
2610         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
2611         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
2612         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
2613
2614 2011-07-07  Bruno Haible  <bruno@clisp.org>
2615
2616         pthread_sigmask: Ensure declaration in <signal.h>.
2617         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
2618         include <pthread.h>.
2619         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
2620         problem.
2621
2622 2011-07-07  Bruno Haible  <bruno@clisp.org>
2623
2624         pthread_sigmask: Document the module.
2625         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
2626
2627 2011-07-07  Bruno Haible  <bruno@clisp.org>
2628
2629         pthread_sigmask: Follow gnulib conventions.
2630         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
2631         gl_PTHREAD_SIGMASK.
2632         * modules/pthread_sigmask (configure.ac): Update.
2633
2634 2011-07-07  Bruno Haible  <bruno@clisp.org>
2635
2636         pthread_sigmask: Make declaration C++ safe.
2637         * lib/signal.in.h: In two special conditions, just do an #include_next.
2638         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
2639         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
2640         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2641         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
2642         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
2643         not REPLACE_PTHREAD_MASK.
2644         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
2645         not REPLACE_PTHREAD_MASK.
2646         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
2647
2648 2011-07-07  Bruno Haible  <bruno@clisp.org>
2649
2650         pthread_sigmask: Fix return value.
2651         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
2652         * lib/pthread_sigmask.c: New file.
2653         * modules/pthread_sigmask (Files): Add it.
2654         (configure.ac): Invoke AC_LIBOBJ.
2655
2656 2011-07-07  Eric Blake  <eblake@redhat.com>
2657
2658         getopt: more portable argv creation
2659         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
2660         const, use char arrays rather than strings.
2661         Suggested by Paul Eggert.
2662
2663 2011-07-07  Bruno Haible  <bruno@clisp.org>
2664
2665         Tests for module 'sigprocmask'.
2666         * modules/sigprocmask-tests: New file.
2667         * tests/test-sigprocmask.c: New file.
2668
2669 2011-07-07  Bruno Haible  <bruno@clisp.org>
2670
2671         float tests: Tweak.
2672         * tests/test-float.c (main): Tweak skip message.
2673
2674 2011-07-07  Eric Blake  <eblake@redhat.com>
2675
2676         getopt: avoid compiler warning during configure
2677         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
2678         assigning string literals to non-const pointer.
2679
2680         getopt-gnu: avoid crash in glibc getopt
2681         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
2682         * tests/test-getopt.h (test_getopt): Enhance test.
2683         * tests/test-getopt_long.h (test_getopt_long): Likewise.
2684         * doc/posix-functions/getopt.texi (getopt): Document it.
2685         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
2686         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2687         Likewise.
2688
2689 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
2690
2691         getopt: handle W; without long options in getopt [BZ #12922]
2692         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
2693         but no long options are defined, just return 'W'.
2694
2695 2011-07-07  Bruno Haible  <bruno@clisp.org>
2696
2697         Avoid literal tabs.
2698         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
2699         variable containing a tab instead of a literal tab.
2700         Reported by Jim Meyering.
2701
2702 2011-07-07  Bruno Haible  <bruno@clisp.org>
2703
2704         Comments.
2705         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
2706
2707 2011-07-06  Bruno Haible  <bruno@clisp.org>
2708
2709         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
2710         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
2711         <winsock2.h>.
2712         (rpl_fd_isset, FD_ISSET): New definitions, copied from
2713         lib/sys_socket.in.h.
2714         (close, gethostname): Hide declarations from <winsock2.h>.
2715         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
2716         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
2717         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
2718         (select): Don't override if gnulib's <sys/select.h> was already
2719         included.
2720         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
2721         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
2722         setsockopt, shutdown, select): Tweak indentation.
2723
2724 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2725
2726         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
2727         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
2728         in an application that does not use the sys_select module.
2729
2730 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
2731
2732         poll: do not return 0 on timeout=-1
2733         * lib/poll.c: Loop with yield if no events occured
2734
2735 2011-07-06  Eric Blake  <eblake@redhat.com>
2736
2737         pthread_sigmask: always replace when not using pthread
2738         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
2739         replacement when using some threading other than pthread.  Fix
2740         logic bug.
2741
2742 2011-07-06  Bruno Haible  <bruno@clisp.org>
2743
2744         Comments.
2745         * m4/printf.m4: Update comments about mingw.
2746
2747 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2748
2749         sys_select: define sigset_t more portably
2750         * lib/sys_select.in.h: Always include <sys/types.h>, since
2751         we now need sigset_t and mingw defines it there.
2752         Include <signal.h> before split inclusion guard, to avoid
2753         mishaps on Solaris, whose <signal.h> eventually includes us.
2754         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
2755         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
2756         which come from ...
2757         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
2758         gl_CHECK_TYPE_SIGSET_T.
2759         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
2760         does the real work.
2761         * modules/sys_select (Depends-on): Add 'signal'.
2762
2763         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
2764         Suggested by Bruno Haible.
2765
2766         pselect: Use pthread_sigmask, not sigprocmask.
2767         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
2768         multithreaded apps better than sigprocmask does.
2769         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
2770         sigprocmask directly.
2771
2772 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2773
2774         * lib/pselect.c (pselect): Use plain name, without "rpl_".
2775         Don't #undef,  since we don't need any underlying pselect.
2776         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
2777         (Depends-on): Add select.
2778         (Link): Add $(LIBSOCKET).
2779         These changes suggested by Bruno Haible.
2780
2781         pselect: document better
2782         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2783         * doc/posix-functions/pselect.texi (pselect): Document new module.
2784
2785         pthread_sigmask: new module
2786         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2787         * doc/posix-functions/pthread_sigmask.texi: Document new module.
2788         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
2789         This is done only as a macro; I don't know how well that'll
2790         work for C++.  Move <sys/types.h> include before the include_next,
2791         to avoid mishap on Solaris.
2792         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
2793         * modules/signal (Makefile.am): Substitute the check's results.
2794         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
2795
2796         test-pselect: new module
2797         * modules/pselect-tests, tests/test-pselect.c: New files.
2798         * tests/test-select.c, tests/test-sys_select-c++.cc:
2799         If TEST_PSELECT is defined, test pselect instead of testing select.
2800
2801         * tests/test-sys_select.c (sigset_t): Test for it, too.
2802         Suggested by Bruno Haible.
2803
2804 2011-07-05  Eric Blake  <eblake@redhat.com>
2805
2806         snprintf: guarantee %1$d, for libintl
2807         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
2808         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
2809         * doc/posix-functions/snprintf.texi (snprintf): Update.
2810         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
2811         * tests/test-snprintf.c (main): Enhance test.
2812         * tests/test-vsnprintf.c (main): Likewise.
2813
2814 2011-07-05  Jim Meyering  <meyering@redhat.com>
2815
2816         maint: exempt stdio-read.c and stdio-write.c from the cppi check
2817         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
2818         per Bruno's request, to accommodate this idiom (no space after "#")
2819         even when the function is inside an #if block:
2820         char *
2821         gets (char *s)
2822         #undef gets
2823         {
2824           ...
2825         }
2826
2827 2011-07-04  Jim Meyering  <meyering@redhat.com>
2828
2829         maint: indent with spaces, not TABs, and add a rule to check this
2830         * tests/test-userspec.c: Indent with spaces, not TABs.
2831         * tests/test-argp.c: Likewise.
2832         * tests/test-c-stack2.sh: Likewise.
2833         * tests/test-parse-duration.sh: Likewise
2834         * m4/strtod.m4: Likewise.
2835         * m4/alloca.m4: Likewise.
2836         * m4/pselect.m4: Likewise.
2837         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
2838
2839 2011-07-03  Jim Meyering  <meyering@redhat.com>
2840
2841         maint.mk: correct omissions in prohibit_argmatch_without_use check
2842         This rule would mistakenly report that argmatch.h is included without
2843         use even when both the argmatch and invalid_arg macro were used.
2844         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
2845         of argmatch and invalid_arg.
2846
2847 2011-07-03  Bruno Haible  <bruno@clisp.org>
2848
2849         Comments about EINTR.
2850         * lib/safe-read.h: Explain the purpose of this module.
2851         * lib/safe-write.h: Likewise.
2852         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
2853         module.
2854         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
2855         module.
2856         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2857
2858 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
2859
2860         xnanosleep: Rewrite to use new dtotimespec module.
2861         It has the conversion code that used to be in xnanosleep.
2862         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
2863         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
2864         (TIME_T_MAX): Remove.
2865         (xnanosleep): Rewrite in terms of dtotimespec.
2866         * modules/xnanosleep (Depends-on): Add dtotimespec.
2867         Remove intprops, stdbool.
2868
2869         timespec-add, timespec-sub: new modules
2870         * lib/timespec.h (timespec_add, timespec_sub): New decls.
2871         * lib/timespec-add.c, lib/timespec-sub.c:
2872         * modules/timespec-add, modules/timespec-sub: New files.
2873
2874         dtotimespec: new module
2875         * lib/timespec.h (dtotimespec): New decl.
2876         * lib/dtotimespec.c, modules/dtotimespec: New files.
2877
2878         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
2879
2880         pselect: new module
2881         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
2882         (pselect): New decls.
2883         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
2884         since the standard pselect decl uses 'restrict'.
2885         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
2886         HAVE_PSELECT, REPLACE_PSELECT.
2887         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
2888         HAVE_PSELECT, REPLACE_PSELECT.
2889         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
2890
2891         sys_select: don't depend on sys_socket
2892         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
2893         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
2894         This fix works on GNU and GNU-like platforms, but has not been tested
2895         on native Windows.
2896         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
2897         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
2898         gl_HEADER_SYS_SOCKET.
2899         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
2900         gl_PREREQ_SYS_H_WINSOCK2.
2901
2902 2011-06-29  Eric Blake  <eblake@redhat.com>
2903
2904         pipe2: fix C89 compile problem
2905         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
2906         Reported by Bruno Haible.
2907
2908         pipe, pipe2: don't corrupt fd on error
2909         * lib/pipe.c (pipe): Leave fd unchanged on error.
2910         * lib/pipe2.c (pipe2): Likewise.
2911         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
2912         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
2913
2914 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
2915
2916         mmap-anon: do not use regular expressions inadvertently
2917         * m4/mmap-anon.m4: Remove trailing period from strings sought
2918         in the output.
2919
2920 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
2921
2922         nanosleep: fix integer overflow problem
2923         * lib/nanosleep.c (my_usleep): Don't assume signed integer
2924         arithmetic wraps around on overflow.
2925
2926         nanosleep: simplify carrying
2927         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
2928         first call to the underyling nanosleep, not for the last one.
2929         This doesn't fix any bugs, but it simplifies the computation of
2930         the remaining delay.  Found while auditing integer overflow issues.
2931
2932         dup2: remove test for existence of fcntl
2933         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
2934         "#if HAVE_FCNTL", in the configure-time test program.
2935         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
2936         and therefore speeds up "configure" a bit.  Found while
2937         adding the dup2 module to Emacs.
2938
2939 2011-06-24  Eric Blake  <eblake@redhat.com>
2940
2941         maint.mk: enhance useless header checks
2942         * top/maint.mk (_sc_header_without_use): Check both include
2943         styles.
2944         (sc_prohibit_assert_without_use)
2945         (sc_prohibit_close_stream_without_use)
2946         (sc_prohibit_getopt_without_use)
2947         (sc_prohibit_quotearg_without_use)
2948         (sc_prohibit_quote_without_use)
2949         (sc_prohibit_long_options_without_use)
2950         (sc_prohibit_inttostr_without_use)
2951         (sc_prohibit_ignore_value_without_use)
2952         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
2953         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
2954         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
2955         (sc_prohibit_hash_pjw_without_use)
2956         (sc_prohibit_safe_read_without_use)
2957         (sc_prohibit_argmatch_without_use)
2958         (sc_prohibit_canonicalize_without_use)
2959         (sc_prohibit_root_dev_ino_without_use)
2960         (sc_prohibit_openat_without_use)
2961         (sc_prohibit_c_ctype_without_use)
2962         (sc_prohibit_signal_without_use)
2963         (sc_prohibit_stdio--_without_use)
2964         (sc_prohibit_stdio-safer_without_use)
2965         (sc_prohibit_strings_without_use)
2966         (sc_prohibit_intprops_without_use)
2967         (sc_prohibit_stddef_without_use)
2968         (sc_prohibit_xfreopen_without_use): Update clients.
2969
2970 2011-06-24  Jim Meyering  <meyering@redhat.com>
2971
2972         syntax-check: keep one maint.mk rule in sync with its header
2973         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
2974         of the bug Eric has just fixed, with today's commit 25e4c2ec.
2975         I prefer to avoid temporary files here, so use <(...), but that
2976         is not supported by /bin/sh, so...
2977         (SHELL): Define to /bin/bash.
2978
2979 2011-06-24  Eric Blake  <eblake@redhat.com>
2980
2981         maint.mk: update sc_prohibit_intprops_without_use
2982         * top/maint.mk (_intprops_names): Match recent changes.
2983
2984 2011-06-24  Bruno Haible  <bruno@clisp.org>
2985
2986         strerror-override: No-op tweak.
2987         * lib/strerror-override.h (strerror_override): Reorder conditions,
2988         for consistency with lib/strerror-override.c.
2989
2990 2011-06-23  Eric Blake  <eblake@redhat.com>
2991
2992         maint.mk: test further PATH_MAX issues
2993         * top/maint.mk (sc_prohibit_path_max_array): Rename...
2994         (sc_prohibit_path_max_allocation): ...and also test alloca.
2995         Suggested by Jim Meyering.
2996
2997 2011-06-22  Eric Blake  <eblake@redhat.com>
2998
2999         maint.mk: add syntax-check to avoid char[PATH_MAX]
3000         * top/maint.mk (sc_prohibit_path_max_array): New rule.
3001
3002         stat: be robust to PATH_MAX definition
3003         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
3004         * modules/stat (Depends-on): Add verify.
3005
3006         link: work around IRIX bug
3007         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
3008         * lib/link.c (rpl_link): Work around it.
3009         * tests/test-link.h (test_link): Enhance test.
3010         * doc/posix-functions/link.texi (link): Document the bug.
3011
3012         getopt: silence clang warning
3013         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
3014         dereference.
3015         Reported by Gustavo Martin Domato.
3016
3017 2011-06-22  Jim Meyering  <meyering@redhat.com>
3018
3019         bootstrap: do not insert a blank line into each .gitignore file
3020         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
3021
3022 2011-06-21  Eric Blake  <eblake@redhat.com>
3023
3024         perror: test for output mismatch
3025         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
3026         perror on IRIX.
3027
3028         strerror_r: fix OpenBSD behavior on out-of-range
3029         * lib/strerror_r.c (strerror_r): Always use maximal string.
3030         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
3031
3032         strerror_r: fix OpenBSD behavior on 0
3033         * lib/strerror-override.c (strerror_override): Also override 0
3034         when needed.
3035         * lib/strerror-override.h (strerror_override): Likewise.
3036         * lib/strerror.c (strerror): Simplify, now that 0 override is done
3037         earlier.
3038         * lib/strerror_r.c (strerror_r): Likewise.
3039         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
3040         behavior...
3041         (gl_FUNC_STRERROR_0): ...into new macro.
3042         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
3043         is overridden.
3044         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
3045         * modules/strerror-override (Files): Add strerror.m4.
3046         (configure.ac): Also provide override for 0 when needed.
3047         * doc/posix-functions/strerror.texi (strerror): Document this.
3048         * doc/posix-functions/perror.texi (perror): Likewise.
3049
3050         perror: adjust array size
3051         * modules/perror (Depends-on): Add strerror-override.
3052         * lib/perror.c (perror): Use it to avoid magic number.
3053
3054         strerror-override: reduce size
3055         * lib/strerror-override.c (strerror_override): Use fewer lines.
3056
3057 2011-06-20  Bruno Haible  <bruno@clisp.org>
3058
3059         pathmax: Ensure correct value for PATH_MAX on HP-UX.
3060         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
3061
3062 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
3063
3064         alloca: port to compilers that can optimize like GCC 4.6.0
3065         * lib/alloca.c (find_stack_direction): New signature, taken from
3066         Autoconf git.  This works with GCC 4.6.0.  This code should never
3067         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
3068         be used with other compilers that optimize as well as GCC 4.6.0 does.
3069         (alloca): Adjust to new signature.
3070         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
3071         New macro, which patches Autoconf in a similar way.
3072
3073         c-stack: stop worrying about stack direction
3074         * lib/c-stack.c (find_stack_direction): Remove.
3075         (segv_handler): Don't worry about stack direction growth, as it's
3076         too much of a pain to configure this correctly, given how compilers
3077         are optimizing-away our stack-growth detection code.  Instead, assume
3078         that any access to just before or just after the stack is OK.
3079         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
3080         Don't require AC_FUNC_ALLOCA; no longer needed.
3081
3082 2011-06-20  Eric Blake  <eblake@redhat.com>
3083
3084         test-stat: don't allocate PATH_MAX bytes
3085         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
3086         PATH_MAX-sized buffer.
3087         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
3088         * modules/stat-tests (Depends-on): Likewise.
3089         * tests/test-fstatat.c (includes): Drop pathmax.h.
3090         * tests/test-stat.c (includes): Likewise.
3091         Reported by Bruno Haible.
3092
3093 2011-06-20  Bruno Haible  <bruno@clisp.org>
3094
3095         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
3096         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
3097         * lib/float.c: New file.
3098         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
3099         REPLACE_FLOAT_LDBL.
3100         * modules/float (Files): Add lib/float.c.
3101         (configure.ac): Invoke AC_LIBOBJ.
3102         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
3103
3104 2011-06-20  Bruno Haible  <bruno@clisp.org>
3105
3106         Tests for module 'float'.
3107         * modules/float-tests: New file.
3108         * tests/test-float.c: New file.
3109
3110 2011-06-19  Bruno Haible  <bruno@clisp.org>
3111
3112         isinf: Coding style.
3113         * lib/isinf.c: Use GNU coding style.
3114
3115 2011-06-19  Bruno Haible  <bruno@clisp.org>
3116
3117         linkat test: Avoid test failure on AIX 7.1.
3118         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
3119         * tests/test-link.h (test_link): Likewise.
3120
3121 2011-06-19  Bruno Haible  <bruno@clisp.org>
3122
3123         pread test: Avoid test failure on OpenBSD 4.9.
3124         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
3125
3126 2011-06-19  Bruno Haible  <bruno@clisp.org>
3127
3128         sprintf-posix: Fix test failure on AIX 7.1.
3129         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
3130         * doc/posix-functions/dprintf.texi: Mention limited precision problem
3131         on AIX.
3132         * doc/posix-functions/fprintf.texi: Likewise.
3133         * doc/posix-functions/printf.texi: Likewise.
3134         * doc/posix-functions/snprintf.texi: Likewise.
3135         * doc/posix-functions/sprintf.texi: Likewise.
3136         * doc/posix-functions/vdprintf.texi: Likewise.
3137         * doc/posix-functions/vfprintf.texi: Likewise.
3138         * doc/posix-functions/vprintf.texi: Likewise.
3139         * doc/posix-functions/vsnprintf.texi: Likewise.
3140         * doc/posix-functions/vsprintf.texi: Likewise.
3141
3142 2011-06-19  Bruno Haible  <bruno@clisp.org>
3143
3144         roundl-ieee: Fix test failure on AIX 7.1.
3145         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
3146         * doc/posix-functions/roundl.texi: Mention problem with negative
3147         arguments.
3148
3149 2011-06-19  Bruno Haible  <bruno@clisp.org>
3150
3151         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
3152         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
3153         * doc/posix-functions/round.texi: Mention problem with negative
3154         arguments.
3155         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
3156
3157 2011-06-19  Bruno Haible  <bruno@clisp.org>
3158
3159         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
3160         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
3161         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
3162         * doc/posix-functions/roundf.texi: Mention problem with negative
3163         arguments.
3164         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
3165
3166 2011-06-19  Bruno Haible  <bruno@clisp.org>
3167
3168         ceilf-ieee: Work around bug on MacOS X 10.5.
3169         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
3170
3171         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
3172         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
3173         IEEE compliant, avoid compiler optimizations.
3174         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
3175         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3176         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
3177         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3178         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3179         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3180         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3181         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3182         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3183         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3184
3185 2011-06-19  Bruno Haible  <bruno@clisp.org>
3186
3187         ceilf-ieee: Work around bug on AIX 7.1.
3188         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
3189         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
3190
3191 2011-06-19  Bruno Haible  <bruno@clisp.org>
3192
3193         ceil-ieee: Work around bug on AIX 7.1.
3194         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
3195         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
3196
3197 2011-06-18  Bruno Haible  <bruno@clisp.org>
3198
3199         fsync test: Avoid test failure on MacOS X and AIX.
3200         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
3201         EINVAL.
3202
3203 2011-06-18  Bruno Haible  <bruno@clisp.org>
3204
3205         openat, fdopendir tests: Fix link errors.
3206         * modules/openat-tests (Depends-on): Add progname.
3207         * modules/fdopendir-tests (Depends-on): Likewise.
3208         * tests/test-fchownat.c: Include progname.h.
3209         (main): Call set_program_name.
3210         * tests/test-fstatat.c: Include progname.h.
3211         (main): Call set_program_name.
3212         * tests/test-mkdirat.c: Include progname.h.
3213         (main): Call set_program_name.
3214         * tests/test-openat.c: Include progname.h.
3215         (main): Call set_program_name.
3216         * tests/test-unlinkat.c: Include progname.h.
3217         (main): Call set_program_name.
3218         * tests/test-fdopendir.c: Include progname.h.
3219         (main): Call set_program_name.
3220
3221 2011-06-18  Bruno Haible  <bruno@clisp.org>
3222
3223         Doc update.
3224         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
3225         HP-UX.
3226         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
3227
3228 2011-06-18  Bruno Haible  <bruno@clisp.org>
3229
3230         getcwd tests: Avoid compilation error on HP-UX 11.31.
3231         * modules/getcwd-tests (Depends-on): Add pathmax.
3232         * tests/test-getcwd.c: Include pathmax.h.
3233
3234 2011-06-18  Bruno Haible  <bruno@clisp.org>
3235
3236         isfinite, isinf: Fix link error on AIX 6 and 7.
3237         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
3238         needed, also test the macro with a 'float' argument.
3239         * m4/isinf.m4 (gl_ISINF): Likewise.
3240
3241 2011-06-18  Bruno Haible  <bruno@clisp.org>
3242
3243         getloadavg: Don't clobber LIBS. Regression from previous commit.
3244         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
3245         AC_CHECK_LIB from here...
3246         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
3247         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
3248         gl_func_getloadavg_done.
3249         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3250
3251 2011-06-18  Bruno Haible  <bruno@clisp.org>
3252
3253         clean-temp: Improve documentation.
3254         * lib/clean-temp.h: Explain better how to use this module.
3255         Reported by John Darrington <john@darrington.wattle.id.au>.
3256
3257 2011-06-17  Bruno Haible  <bruno@clisp.org>
3258
3259         pread, pwrite: Avoid cc warning on AIX.
3260         * lib/unistd.in.h (pread): Undefine before defining as a macro.
3261         (pwrite): Likewise.
3262
3263 2011-06-17  Bruno Haible  <bruno@clisp.org>
3264
3265         spawn-pipe tests: Fix link error.
3266         * tests/test-spawn-pipe-child.c: Undefine fprintf.
3267         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3268
3269 2011-06-17  Bruno Haible  <bruno@clisp.org>
3270
3271         Tests: Remove unnecessary dependency.
3272         * modules/canonicalize-tests (Depends-on): Remove progname.
3273         * modules/chown-tests (Depends-on): Likewise.
3274         * modules/dirname-tests (Depends-on): Likewise.
3275         * modules/fdopendir-tests (Depends-on): Likewise.
3276         * modules/fdutimensat-tests (Depends-on): Likewise.
3277         * modules/hash-tests (Depends-on): Likewise.
3278         * modules/lchown-tests (Depends-on): Likewise.
3279         * modules/linkat-tests (Depends-on): Likewise.
3280         * modules/renameat-tests (Depends-on): Likewise.
3281         * modules/spawn-pipe-tests (Depends-on): Likewise.
3282         * modules/utimensat-tests (Depends-on): Likewise.
3283
3284 2011-06-17  Bruno Haible  <bruno@clisp.org>
3285
3286         spawn-pipe tests: Fix link error.
3287         * tests/test-spawn-pipe-child.c: Undefine fflush.
3288
3289 2011-06-17  Bruno Haible  <bruno@clisp.org>
3290
3291         Fix tests link errors.
3292         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
3293         * modules/chown-tests (Makefile.am): Don't link test-chown with
3294         LIBINTL.
3295         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
3296         LIBINTL.
3297         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
3298         LIBINTL.
3299         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
3300         LIBINTL.
3301
3302 2011-06-16  Bruno Haible  <bruno@clisp.org>
3303
3304         crypto/gc-sha1: Fix recent regression.
3305         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
3306         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
3307
3308         crypto/gc-md5: Fix recent regression.
3309         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
3310
3311         crypto/gc-md4: Fix recent regression.
3312         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
3313         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
3314
3315         crypto/gc-arctwo: Fix recent regression.
3316         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
3317         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
3318
3319         crypto/gc-rijndael: Fix recent regression.
3320         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
3321         (configure.ac): Invoke AC_LIBOBJ here.
3322         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
3323         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3324
3325         crypto/gc-hmac-sha1: Fix recent regression.
3326         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
3327         (configure.ac): Invoke AC_LIBOBJ here.
3328         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
3329         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3330
3331         crypto/gc-hmac-md5: Fix recent regression.
3332         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
3333         (configure.ac): Invoke AC_LIBOBJ here.
3334         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
3335         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3336
3337         crypto/gc-des: Fix recent regression.
3338         * modules/crypto/gc-des (Files): Remove m4/des.m4.
3339         (configure.ac): Invoke AC_LIBOBJ here.
3340         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
3341         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3342
3343         crypto/gc-arcfour: Fix recent regression.
3344         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
3345         (configure.ac): Invoke AC_LIBOBJ here.
3346         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
3347         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3348
3349 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
3350
3351         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
3352         After the 2011-05-21 change, this macro requires
3353         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
3354         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
3355
3356 2011-06-16  Bruno Haible  <bruno@clisp.org>
3357
3358         fprintftime: Move AC_LIBOBJ invocations to module description.
3359         * m4/fprintftime.m4: Remove file.
3360         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
3361         (configure.ac): Remove gl_FPRINTFTIME call.
3362         (Makefile.am): Augment lib_SOURCES.
3363         Reported by Jim Meyering.
3364
3365 2011-06-16  Bruno Haible  <bruno@clisp.org>
3366
3367         tmpfile-safer: Finish 2011-05-23 commit.
3368         * m4/stdio-safer.m4: Really remove file.
3369         Reported by Jim Meyering.
3370
3371 2011-06-16  Bruno Haible  <bruno@clisp.org>
3372
3373         syntax-check: Fix typo.
3374         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
3375         printf-posix.m4.
3376         Reported by Jim Meyering.
3377
3378 2011-06-13  Jim Meyering  <meyering@redhat.com>
3379
3380         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
3381         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
3382
3383 2011-05-23  Bruno Haible  <bruno@clisp.org>
3384
3385         yesno: Move AC_LIBOBJ invocations to module description.
3386         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
3387         * modules/yesno (Makefile.am): Augment lib_SOURCES.
3388
3389 2011-05-23  Bruno Haible  <bruno@clisp.org>
3390
3391         xstrtol: Move AC_LIBOBJ invocations to module description.
3392         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
3393         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
3394
3395 2011-05-23  Bruno Haible  <bruno@clisp.org>
3396
3397         xstrtold: Move AC_LIBOBJ invocations to module description.
3398         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
3399         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
3400
3401 2011-05-23  Bruno Haible  <bruno@clisp.org>
3402
3403         xstrtod: Move AC_LIBOBJ invocations to module description.
3404         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
3405         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
3406
3407 2011-05-23  Bruno Haible  <bruno@clisp.org>
3408
3409         xnanosleep: Move AC_LIBOBJ invocations to module description.
3410         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
3411         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
3412
3413 2011-05-23  Bruno Haible  <bruno@clisp.org>
3414
3415         xgetcwd: Move AC_LIBOBJ invocations to module description.
3416         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
3417         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
3418
3419 2011-05-23  Bruno Haible  <bruno@clisp.org>
3420
3421         xalloc: Move AC_LIBOBJ invocations to module description.
3422         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
3423         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
3424
3425 2011-05-23  Bruno Haible  <bruno@clisp.org>
3426
3427         write-any-file: Move AC_LIBOBJ invocations to module description.
3428         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
3429         invocation.
3430         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
3431
3432 2011-05-23  Bruno Haible  <bruno@clisp.org>
3433
3434         utimens: Move AC_LIBOBJ invocations to module description.
3435         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
3436         * modules/utimens (Makefile.am): Augment lib_SOURCES.
3437
3438 2011-05-23  Bruno Haible  <bruno@clisp.org>
3439
3440         utimecmp: Move AC_LIBOBJ invocations to module description.
3441         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
3442         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
3443
3444 2011-05-23  Bruno Haible  <bruno@clisp.org>
3445
3446         userspec: Move AC_LIBOBJ invocations to module description.
3447         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
3448         * modules/userspec (Makefile.am): Augment lib_SOURCES.
3449
3450 2011-05-23  Bruno Haible  <bruno@clisp.org>
3451
3452         unlinkdir: Move AC_LIBOBJ invocations to module description.
3453         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
3454         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
3455
3456 2011-05-23  Bruno Haible  <bruno@clisp.org>
3457
3458         unistd-safer: Move AC_LIBOBJ invocations to module description.
3459         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
3460         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
3461
3462 2011-05-23  Bruno Haible  <bruno@clisp.org>
3463
3464         tempname: Move AC_LIBOBJ invocations to module description.
3465         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
3466         * modules/tempname (Makefile.am): Augment lib_SOURCES.
3467
3468 2011-05-23  Bruno Haible  <bruno@clisp.org>
3469
3470         strftime: Move AC_LIBOBJ invocations to module description.
3471         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
3472         * modules/strftime (Makefile.am): Augment lib_SOURCES.
3473
3474 2011-05-23  Bruno Haible  <bruno@clisp.org>
3475
3476         stdlib-safer: Move AC_LIBOBJ invocations to module description.
3477         * m4/stdlib-safer.m4: Remove file.
3478         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
3479         (configure.ac): Remove gl_STDLIB_SAFER call.
3480         (Makefile.am): Augment lib_SOURCES.
3481
3482 2011-05-23  Bruno Haible  <bruno@clisp.org>
3483
3484         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
3485         * m4/stdio-safer.m4: Remove file.
3486         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
3487         (configure.ac): Remove gl_TMPFILE_SAFER call.
3488         (Makefile.am): Augment lib_SOURCES.
3489
3490 2011-05-23  Bruno Haible  <bruno@clisp.org>
3491
3492         popen-safer: Move AC_LIBOBJ invocations to module description.
3493         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
3494         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
3495         (configure.ac): Remove gl_POPEN_SAFER call.
3496         (Makefile.am): Augment lib_SOURCES.
3497
3498 2011-05-23  Bruno Haible  <bruno@clisp.org>
3499
3500         freopen-safer: Move AC_LIBOBJ invocations to module description.
3501         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
3502         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
3503         (configure.ac): Remove gl_FREOPEN_SAFER call.
3504         (Makefile.am): Augment lib_SOURCES.
3505
3506 2011-05-23  Bruno Haible  <bruno@clisp.org>
3507
3508         fopen-safer: Move AC_LIBOBJ invocations to module description.
3509         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
3510         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
3511         (configure.ac): Remove gl_FOPEN_SAFER call.
3512         (Makefile.am): Augment lib_SOURCES.
3513
3514 2011-05-23  Bruno Haible  <bruno@clisp.org>
3515
3516         crypto/sha512: Move AC_LIBOBJ invocations to module description.
3517         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
3518         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
3519
3520 2011-05-23  Bruno Haible  <bruno@clisp.org>
3521
3522         crypto/sha256: Move AC_LIBOBJ invocations to module description.
3523         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
3524         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
3525
3526 2011-05-23  Bruno Haible  <bruno@clisp.org>
3527
3528         crypto/sha1: Move AC_LIBOBJ invocations to module description.
3529         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
3530         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
3531
3532 2011-05-23  Bruno Haible  <bruno@clisp.org>
3533
3534         settime: Move AC_LIBOBJ invocations to module description.
3535         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
3536         * modules/settime (Makefile.am): Augment lib_SOURCES.
3537
3538 2011-05-23  Bruno Haible  <bruno@clisp.org>
3539
3540         savedir: Move AC_LIBOBJ invocations to module description.
3541         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
3542         * modules/savedir (Makefile.am): Augment lib_SOURCES.
3543
3544 2011-05-23  Bruno Haible  <bruno@clisp.org>
3545
3546         save-cwd: Move AC_LIBOBJ invocations to module description.
3547         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
3548         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
3549
3550 2011-05-23  Bruno Haible  <bruno@clisp.org>
3551
3552         same: Move AC_LIBOBJ invocations to module description.
3553         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
3554         * modules/same (Makefile.am): Augment lib_SOURCES.
3555
3556 2011-05-23  Bruno Haible  <bruno@clisp.org>
3557
3558         safe-write: Move AC_LIBOBJ invocations to module description.
3559         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
3560         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
3561         instead of gl_SAFE_WRITE.
3562         (Makefile.am): Augment lib_SOURCES.
3563
3564 2011-05-23  Bruno Haible  <bruno@clisp.org>
3565
3566         safe-read: Move AC_LIBOBJ invocations to module description.
3567         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
3568         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
3569         of gl_SAFE_READ.
3570         (Makefile.am): Augment lib_SOURCES.
3571
3572 2011-05-23  Bruno Haible  <bruno@clisp.org>
3573
3574         safe-alloc: Move AC_LIBOBJ invocations to module description.
3575         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
3576         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
3577
3578 2011-05-23  Bruno Haible  <bruno@clisp.org>
3579
3580         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
3581         * m4/rijndael.m4: Remove file.
3582         * modules/crypto/rijndael (Files): Remove it.
3583         (configure.ac): Remove gl_RIJNDAEL call.
3584         (Makefile.am): Augment lib_SOURCES.
3585
3586 2011-05-23  Bruno Haible  <bruno@clisp.org>
3587
3588         readtokens: Move AC_LIBOBJ invocations to module description.
3589         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
3590         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
3591
3592 2011-05-23  Bruno Haible  <bruno@clisp.org>
3593
3594         read-file: Move AC_LIBOBJ invocations to module description.
3595         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
3596         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
3597         of gl_FUNC_READ_FILE.
3598         (Makefile.am): Augment lib_SOURCES.
3599
3600 2011-05-23  Bruno Haible  <bruno@clisp.org>
3601
3602         quotearg: Move AC_LIBOBJ invocations to module description.
3603         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
3604         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
3605
3606 2011-05-23  Bruno Haible  <bruno@clisp.org>
3607
3608         quote: Move AC_LIBOBJ invocations to module description.
3609         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
3610         * modules/quote (Makefile.am): Augment lib_SOURCES.
3611
3612 2011-05-23  Bruno Haible  <bruno@clisp.org>
3613
3614         posixver: Move AC_LIBOBJ invocations to module description.
3615         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
3616         * modules/posixver (Makefile.am): Augment lib_SOURCES.
3617
3618 2011-05-23  Bruno Haible  <bruno@clisp.org>
3619
3620         posixtm: Move AC_LIBOBJ invocations to module description.
3621         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
3622         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
3623
3624 2011-05-23  Bruno Haible  <bruno@clisp.org>
3625
3626         physmem: Move AC_LIBOBJ invocations to module description.
3627         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
3628         * modules/physmem (Makefile.am): Augment lib_SOURCES.
3629
3630 2011-05-23  Bruno Haible  <bruno@clisp.org>
3631
3632         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
3633         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
3634         invocation.
3635         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
3636
3637 2011-05-23  Bruno Haible  <bruno@clisp.org>
3638
3639         mpsort: Move AC_LIBOBJ invocations to module description.
3640         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
3641         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
3642
3643 2011-05-23  Bruno Haible  <bruno@clisp.org>
3644
3645         modechange: Move AC_LIBOBJ invocations to module description.
3646         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
3647         * modules/modechange (Makefile.am): Augment lib_SOURCES.
3648
3649 2011-05-23  Bruno Haible  <bruno@clisp.org>
3650
3651         mkdir-p: Move AC_LIBOBJ invocations to module description.
3652         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
3653         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
3654
3655 2011-05-23  Bruno Haible  <bruno@clisp.org>
3656
3657         mkancesdirs: Move AC_LIBOBJ invocations to module description.
3658         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
3659         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
3660
3661 2011-05-23  Bruno Haible  <bruno@clisp.org>
3662
3663         mgetgroups: Move AC_LIBOBJ invocations to module description.
3664         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
3665         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
3666
3667 2011-05-23  Bruno Haible  <bruno@clisp.org>
3668
3669         memxor: Move AC_LIBOBJ invocations to module description.
3670         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
3671         * modules/memxor (Makefile.am): Augment lib_SOURCES.
3672
3673 2011-05-23  Bruno Haible  <bruno@clisp.org>
3674
3675         memcoll: Move AC_LIBOBJ invocations to module description.
3676         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
3677         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
3678
3679 2011-05-23  Bruno Haible  <bruno@clisp.org>
3680
3681         memcasecmp: Move AC_LIBOBJ invocations to module description.
3682         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
3683         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
3684
3685 2011-05-23  Bruno Haible  <bruno@clisp.org>
3686
3687         crypto/md5: Move AC_LIBOBJ invocations to module description.
3688         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
3689         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
3690
3691 2011-05-23  Bruno Haible  <bruno@clisp.org>
3692
3693         crypto/md4: Move AC_LIBOBJ invocations to module description.
3694         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
3695         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
3696
3697 2011-05-23  Bruno Haible  <bruno@clisp.org>
3698
3699         crypto/md2: Move AC_LIBOBJ invocations to module description.
3700         * m4/md2.m4: Remove file.
3701         * modules/crypto/md2 (Files): Remove it.
3702         (configure.ac): Remove gl_MD2 call.
3703         (Makefile.am): Augment lib_SOURCES.
3704
3705 2011-05-23  Bruno Haible  <bruno@clisp.org>
3706
3707         long-options: Move AC_LIBOBJ invocations to module description.
3708         * m4/long-options.m4: Remove file.
3709         * modules/long-options (Files): Remove it.
3710         (configure.ac): Remove gl_LONG_OPTIONS call.
3711         (Makefile.am): Augment lib_SOURCES.
3712
3713 2011-05-23  Bruno Haible  <bruno@clisp.org>
3714
3715         i-ring: Move AC_LIBOBJ invocations to module description.
3716         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
3717         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
3718
3719 2011-05-23  Bruno Haible  <bruno@clisp.org>
3720
3721         idcache: Move AC_LIBOBJ invocations to module description.
3722         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
3723         * modules/idcache (Makefile.am): Augment lib_SOURCES.
3724
3725 2011-05-23  Bruno Haible  <bruno@clisp.org>
3726
3727         human: Move AC_LIBOBJ invocations to module description.
3728         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
3729         * modules/human (Makefile.am): Augment lib_SOURCES.
3730
3731 2011-05-23  Bruno Haible  <bruno@clisp.org>
3732
3733         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
3734         * m4/hmac-sha1.m4: Remove file.
3735         * modules/crypto/hmac-sha1 (Files): Remove it.
3736         (configure.ac): Remove gl_HMAC_SHA1 call.
3737         (Makefile.am): Augment lib_SOURCES.
3738
3739 2011-05-23  Bruno Haible  <bruno@clisp.org>
3740
3741         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
3742         * m4/hmac-md5.m4: Remove file.
3743         * modules/crypto/hmac-md5 (Files): Remove it.
3744         (configure.ac): Remove gl_HMAC_MD5 call.
3745         (Makefile.am): Augment lib_SOURCES.
3746
3747 2011-05-23  Bruno Haible  <bruno@clisp.org>
3748
3749         hash: Move AC_LIBOBJ invocations to module description.
3750         * m4/hash.m4: Remove file.
3751         * modules/hash (Files): Remove it.
3752         (configure.ac): Remove gl_HASH call.
3753         (Makefile.am): Augment lib_SOURCES.
3754
3755 2011-05-23  Bruno Haible  <bruno@clisp.org>
3756
3757         hard-locale: Move AC_LIBOBJ invocations to module description.
3758         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
3759         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
3760
3761 2011-05-23  Bruno Haible  <bruno@clisp.org>
3762
3763         getugroups: Move AC_LIBOBJ invocations to module description.
3764         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
3765         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
3766
3767 2011-05-23  Bruno Haible  <bruno@clisp.org>
3768
3769         gettime: Move AC_LIBOBJ invocations to module description.
3770         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
3771         * modules/gettime (Makefile.am): Augment lib_SOURCES.
3772
3773 2011-05-23  Bruno Haible  <bruno@clisp.org>
3774
3775         getndelim2: Move AC_LIBOBJ invocations to module description.
3776         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
3777         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
3778
3779 2011-05-23  Bruno Haible  <bruno@clisp.org>
3780
3781         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
3782         * m4/gc-pbkdf2-sha1.m4: Remove file.
3783         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
3784         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
3785         (Makefile.am): Augment lib_SOURCES.
3786
3787 2011-05-23  Bruno Haible  <bruno@clisp.org>
3788
3789         fts: Move AC_LIBOBJ invocations to module description.
3790         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
3791         * modules/fts (configure.ac): ... to here.
3792
3793 2011-05-23  Bruno Haible  <bruno@clisp.org>
3794
3795         file-type: Move AC_LIBOBJ invocations to module description.
3796         * m4/file-type.m4: Remove file.
3797         * modules/file-type (Files): Remove it.
3798         (configure.ac): Remove gl_FILE_TYPE call.
3799         (Makefile.am): Augment lib_SOURCES.
3800
3801 2011-05-23  Bruno Haible  <bruno@clisp.org>
3802
3803         filenamecat*: Respect rules for use of AC_LIBOBJ.
3804         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
3805         Remove AC_LIBOBJ invocation.
3806         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
3807         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
3808
3809 2011-05-23  Bruno Haible  <bruno@clisp.org>
3810
3811         filemode: Move AC_LIBOBJ invocations to module description.
3812         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
3813         * modules/filemode (Makefile.am): Augment lib_SOURCES.
3814
3815 2011-05-23  Bruno Haible  <bruno@clisp.org>
3816
3817         openat-safer: Move AC_LIBOBJ invocations to module description.
3818         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
3819         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
3820
3821 2011-05-23  Bruno Haible  <bruno@clisp.org>
3822
3823         fcntl-safer: Move AC_LIBOBJ invocations to module description.
3824         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
3825         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
3826
3827 2011-05-23  Bruno Haible  <bruno@clisp.org>
3828
3829         exclude: Move AC_LIBOBJ invocations to module description.
3830         * m4/exclude.m4: Remove file.
3831         * modules/exclude (Files): Remove it.
3832         (configure.ac): Remove gl_EXCLUDE call.
3833         (Makefile.am): Augment lib_SOURCES.
3834
3835 2011-05-23  Bruno Haible  <bruno@clisp.org>
3836
3837         dirname*: Respect rules for use of AC_LIBOBJ.
3838         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
3839         invocations.
3840         * modules/dirname (Makefile.am): Augment lib_SOURCES.
3841         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
3842
3843 2011-05-23  Bruno Haible  <bruno@clisp.org>
3844
3845         dirent-safer: Move AC_LIBOBJ invocations to module description.
3846         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
3847         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
3848
3849 2011-05-23  Bruno Haible  <bruno@clisp.org>
3850
3851         crypto/des: Move AC_LIBOBJ invocations to module description.
3852         * m4/des.m4: Remove file.
3853         * modules/crypto/des (Files): Remove it.
3854         (configure.ac): Remove gl_DES call.
3855         (Makefile.am): Augment lib_SOURCES.
3856
3857 2011-05-23  Bruno Haible  <bruno@clisp.org>
3858
3859         cycle-check: Move AC_LIBOBJ invocations to module description.
3860         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
3861         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
3862
3863 2011-05-23  Bruno Haible  <bruno@clisp.org>
3864
3865         c-strtold: Move AC_LIBOBJ invocations to module description.
3866         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
3867         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
3868
3869 2011-05-23  Bruno Haible  <bruno@clisp.org>
3870
3871         c-strtod: Move AC_LIBOBJ invocations to module description.
3872         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
3873         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
3874
3875 2011-05-23  Bruno Haible  <bruno@clisp.org>
3876
3877         crc: Move AC_LIBOBJ invocations to module description.
3878         * m4/crc.m4: Remove file.
3879         * modules/crc (Files): Remove it.
3880         (configure.ac): Remove gl_CRC call.
3881         (Makefile.am): Augment lib_SOURCES.
3882
3883 2011-05-23  Bruno Haible  <bruno@clisp.org>
3884
3885         close-stream: Move AC_LIBOBJ invocations to module description.
3886         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
3887         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
3888
3889 2011-05-23  Bruno Haible  <bruno@clisp.org>
3890
3891         closeout: Move AC_LIBOBJ invocations to module description.
3892         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
3893         * modules/closeout (Makefile.am): Augment lib_SOURCES.
3894
3895 2011-05-23  Bruno Haible  <bruno@clisp.org>
3896
3897         closein: Move AC_LIBOBJ invocations to module description.
3898         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
3899         * modules/closein (Makefile.am): Augment lib_SOURCES.
3900
3901 2011-05-23  Bruno Haible  <bruno@clisp.org>
3902
3903         cloexec: Move AC_LIBOBJ invocations to module description.
3904         * m4/cloexec.m4: Remove file.
3905         * modules/cloexec (Files): Remove it.
3906         (configure.ac): Remove gl_CLOEXEC call.
3907         (Makefile.am): Augment lib_SOURCES.
3908
3909 2011-05-23  Bruno Haible  <bruno@clisp.org>
3910
3911         check-version: Move AC_LIBOBJ invocations to module description.
3912         * m4/check-version.m4: Remove file.
3913         * modules/check-version (Files): Remove it.
3914         (configure.ac): Remove gl_CHECK_VERSION call.
3915         (Makefile.am): Augment lib_SOURCES.
3916
3917 2011-05-23  Bruno Haible  <bruno@clisp.org>
3918
3919         chdir-safer: Move AC_LIBOBJ invocations to module description.
3920         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
3921         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
3922
3923 2011-05-23  Bruno Haible  <bruno@clisp.org>
3924
3925         canonicalize: Move AC_LIBOBJ invocations to module description.
3926         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
3927         AC_LIBOBJ invocation.
3928         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
3929
3930 2011-05-23  Bruno Haible  <bruno@clisp.org>
3931
3932         canon-host: Move AC_LIBOBJ invocations to module description.
3933         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
3934         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
3935         instead of gl_CANON_HOST.
3936         (Makefile.am): Augment lib_SOURCES.
3937
3938 2011-05-23  Bruno Haible  <bruno@clisp.org>
3939
3940         backupfile: Move AC_LIBOBJ invocations to module description.
3941         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
3942         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
3943
3944 2011-05-23  Bruno Haible  <bruno@clisp.org>
3945
3946         argmatch: Move AC_LIBOBJ invocations to module description.
3947         * m4/argmatch.m4: Remove file.
3948         * modules/argmatch (Files): Remove it.
3949         (configure.ac): Remove gl_ARGMATCH call.
3950         (Makefile.am): Augment lib_SOURCES.
3951
3952 2011-05-23  Bruno Haible  <bruno@clisp.org>
3953
3954         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
3955         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
3956         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
3957
3958 2011-05-23  Bruno Haible  <bruno@clisp.org>
3959
3960         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
3961         * m4/arcfour.m4: Remove file.
3962         * modules/crypto/arcfour (Files): Remove it.
3963         (configure.ac): Remove gl_ARCFOUR call.
3964         (Makefile.am): Augment lib_SOURCES.
3965
3966 2011-05-22  Bruno Haible  <bruno@clisp.org>
3967
3968         write: Move AC_LIBOBJ invocations to module description.
3969         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
3970         * modules/write (configure.ac): ... to here.
3971
3972 2011-05-22  Bruno Haible  <bruno@clisp.org>
3973
3974         wmemset: Move AC_LIBOBJ invocations to module description.
3975         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
3976         here...
3977         * modules/wmemset (configure.ac): ... to here.
3978
3979 2011-05-22  Bruno Haible  <bruno@clisp.org>
3980
3981         wmemmove: Move AC_LIBOBJ invocations to module description.
3982         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
3983         here...
3984         * modules/wmemmove (configure.ac): ... to here.
3985
3986 2011-05-22  Bruno Haible  <bruno@clisp.org>
3987
3988         wmemcpy: Move AC_LIBOBJ invocations to module description.
3989         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
3990         here...
3991         * modules/wmemcpy (configure.ac): ... to here.
3992
3993 2011-05-22  Bruno Haible  <bruno@clisp.org>
3994
3995         wmemcmp: Move AC_LIBOBJ invocations to module description.
3996         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
3997         here...
3998         * modules/wmemcmp (configure.ac): ... to here.
3999
4000 2011-05-22  Bruno Haible  <bruno@clisp.org>
4001
4002         wmemchr: Move AC_LIBOBJ invocations to module description.
4003         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
4004         here...
4005         * modules/wmemchr (configure.ac): ... to here.
4006
4007 2011-05-22  Bruno Haible  <bruno@clisp.org>
4008
4009         wcswidth: Move AC_LIBOBJ invocations to module description.
4010         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
4011         here...
4012         * modules/wcswidth (configure.ac): ... to here.
4013
4014 2011-05-22  Bruno Haible  <bruno@clisp.org>
4015
4016         wcwidth: Respect rules for use of AC_LIBOBJ.
4017         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
4018         invocation from here...
4019         * modules/wcwidth (configure.ac): ... to here.
4020         (Depends-on): Update conditions.
4021
4022 2011-05-22  Bruno Haible  <bruno@clisp.org>
4023
4024         wctype: Move AC_LIBOBJ invocations to module description.
4025         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
4026         invocation from here...
4027         * modules/wctype (configure.ac): ... to here.
4028         (Depends-on): Update conditions.
4029
4030 2011-05-22  Bruno Haible  <bruno@clisp.org>
4031
4032         wctrans: Move AC_LIBOBJ invocations to module description.
4033         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
4034         invocation from here...
4035         * modules/wctrans (configure.ac): ... to here.
4036
4037 2011-05-22  Bruno Haible  <bruno@clisp.org>
4038
4039         wctomb: Move AC_LIBOBJ invocations to module description.
4040         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
4041         invocations from here...
4042         * modules/wctomb (configure.ac): ... to here.
4043
4044 2011-05-22  Bruno Haible  <bruno@clisp.org>
4045
4046         wctob: Move AC_LIBOBJ invocations to module description.
4047         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
4048         gl_PREREQ_WCTOB invocations from here...
4049         * modules/wctob (configure.ac): ... to here.
4050         (Depends-on): Update conditions.
4051
4052 2011-05-22  Bruno Haible  <bruno@clisp.org>
4053
4054         wcsxfrm: Move AC_LIBOBJ invocations to module description.
4055         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
4056         here...
4057         * modules/wcsxfrm (configure.ac): ... to here.
4058
4059 2011-05-22  Bruno Haible  <bruno@clisp.org>
4060
4061         wcstok: Move AC_LIBOBJ invocations to module description.
4062         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
4063         * modules/wcstok (configure.ac): ... to here.
4064
4065 2011-05-22  Bruno Haible  <bruno@clisp.org>
4066
4067         wcsstr: Move AC_LIBOBJ invocations to module description.
4068         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
4069         * modules/wcsstr (configure.ac): ... to here.
4070
4071 2011-05-22  Bruno Haible  <bruno@clisp.org>
4072
4073         wcsspn: Move AC_LIBOBJ invocations to module description.
4074         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
4075         * modules/wcsspn (configure.ac): ... to here.
4076
4077 2011-05-22  Bruno Haible  <bruno@clisp.org>
4078
4079         wcsrtombs: Move AC_LIBOBJ invocations to module description.
4080         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
4081         gl_PREREQ_WCSRTOMBS invocations from here...
4082         * modules/wcsrtombs (configure.ac): ... to here.
4083
4084 2011-05-22  Bruno Haible  <bruno@clisp.org>
4085
4086         wcsrchr: Move AC_LIBOBJ invocations to module description.
4087         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
4088         here...
4089         * modules/wcsrchr (configure.ac): ... to here.
4090
4091 2011-05-22  Bruno Haible  <bruno@clisp.org>
4092
4093         wcspbrk: Move AC_LIBOBJ invocations to module description.
4094         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
4095         here...
4096         * modules/wcspbrk (configure.ac): ... to here.
4097
4098 2011-05-22  Bruno Haible  <bruno@clisp.org>
4099
4100         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
4101         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
4102         gl_PREREQ_WCSNRTOMBS invocations from here...
4103         * modules/wcsnrtombs (configure.ac): ... to here.
4104
4105 2011-05-22  Bruno Haible  <bruno@clisp.org>
4106
4107         wcsnlen: Move AC_LIBOBJ invocations to module description.
4108         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
4109         here...
4110         * modules/wcsnlen (configure.ac): ... to here.
4111
4112 2011-05-22  Bruno Haible  <bruno@clisp.org>
4113
4114         wcsncpy: Move AC_LIBOBJ invocations to module description.
4115         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
4116         here...
4117         * modules/wcsncpy (configure.ac): ... to here.
4118
4119 2011-05-22  Bruno Haible  <bruno@clisp.org>
4120
4121         wcsncmp: Move AC_LIBOBJ invocations to module description.
4122         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
4123         here...
4124         * modules/wcsncmp (configure.ac): ... to here.
4125
4126 2011-05-22  Bruno Haible  <bruno@clisp.org>
4127
4128         wcsncat: Move AC_LIBOBJ invocations to module description.
4129         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
4130         here...
4131         * modules/wcsncat (configure.ac): ... to here.
4132
4133 2011-05-22  Bruno Haible  <bruno@clisp.org>
4134
4135         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
4136         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
4137         from here...
4138         * modules/wcsncasecmp (configure.ac): ... to here.
4139
4140 2011-05-22  Bruno Haible  <bruno@clisp.org>
4141
4142         wcslen: Move AC_LIBOBJ invocations to module description.
4143         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
4144         * modules/wcslen (configure.ac): ... to here.
4145
4146 2011-05-22  Bruno Haible  <bruno@clisp.org>
4147
4148         wcsdup: Move AC_LIBOBJ invocations to module description.
4149         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
4150         * modules/wcsdup (configure.ac): ... to here.
4151
4152 2011-05-22  Bruno Haible  <bruno@clisp.org>
4153
4154         wcscspn: Move AC_LIBOBJ invocations to module description.
4155         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
4156         here...
4157         * modules/wcscspn (configure.ac): ... to here.
4158
4159 2011-05-22  Bruno Haible  <bruno@clisp.org>
4160
4161         wcscpy: Move AC_LIBOBJ invocations to module description.
4162         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
4163         * modules/wcscpy (configure.ac): ... to here.
4164
4165 2011-05-22  Bruno Haible  <bruno@clisp.org>
4166
4167         wcscoll: Move AC_LIBOBJ invocations to module description.
4168         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
4169         here...
4170         * modules/wcscoll (configure.ac): ... to here.
4171
4172 2011-05-22  Bruno Haible  <bruno@clisp.org>
4173
4174         wcscmp: Move AC_LIBOBJ invocations to module description.
4175         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
4176         * modules/wcscmp (configure.ac): ... to here.
4177
4178 2011-05-22  Bruno Haible  <bruno@clisp.org>
4179
4180         wcschr: Move AC_LIBOBJ invocations to module description.
4181         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
4182         * modules/wcschr (configure.ac): ... to here.
4183
4184 2011-05-22  Bruno Haible  <bruno@clisp.org>
4185
4186         wcscat: Move AC_LIBOBJ invocations to module description.
4187         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
4188         * modules/wcscat (configure.ac): ... to here.
4189
4190 2011-05-22  Bruno Haible  <bruno@clisp.org>
4191
4192         wcscasecmp: Move AC_LIBOBJ invocations to module description.
4193         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
4194         here...
4195         * modules/wcscasecmp (configure.ac): ... to here.
4196
4197 2011-05-22  Bruno Haible  <bruno@clisp.org>
4198
4199         wcrtomb: Move AC_LIBOBJ invocations to module description.
4200         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
4201         invocations from here...
4202         * modules/wcrtomb (configure.ac): ... to here.
4203
4204 2011-05-22  Bruno Haible  <bruno@clisp.org>
4205
4206         wcpncpy: Move AC_LIBOBJ invocations to module description.
4207         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
4208         here...
4209         * modules/wcpncpy (configure.ac): ... to here.
4210
4211 2011-05-22  Bruno Haible  <bruno@clisp.org>
4212
4213         wcpcpy: Move AC_LIBOBJ invocations to module description.
4214         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
4215         * modules/wcpcpy (configure.ac): ... to here.
4216
4217 2011-05-22  Bruno Haible  <bruno@clisp.org>
4218
4219         waitpid: Move AC_LIBOBJ invocations to module description.
4220         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
4221         invocation from here...
4222         * modules/waitpid (configure.ac): ... to here.
4223
4224 2011-05-22  Bruno Haible  <bruno@clisp.org>
4225
4226         utimensat: Move AC_LIBOBJ invocations to module description.
4227         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
4228         here...
4229         * modules/utimensat (configure.ac): ... to here.
4230
4231 2011-05-22  Bruno Haible  <bruno@clisp.org>
4232
4233         usleep: Move AC_LIBOBJ invocations to module description.
4234         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
4235         here...
4236         * modules/usleep (configure.ac): ... to here.
4237
4238 2011-05-22  Bruno Haible  <bruno@clisp.org>
4239
4240         unlockpt: Move AC_LIBOBJ invocations to module description.
4241         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
4242         gl_PREREQ_UNLOCKPT invocations from here...
4243         * modules/unlockpt (configure.ac): ... to here.
4244
4245 2011-05-22  Bruno Haible  <bruno@clisp.org>
4246
4247         unlink: Respect rules for use of AC_LIBOBJ.
4248         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
4249         * modules/unlink (configure.ac): ... to here.
4250
4251 2011-05-22  Bruno Haible  <bruno@clisp.org>
4252
4253         uname: Move AC_LIBOBJ invocations to module description.
4254         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
4255         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
4256         here...
4257         * modules/uname (configure.ac): ... to here.
4258
4259 2011-05-22  Bruno Haible  <bruno@clisp.org>
4260
4261         ttyname_r: Move AC_LIBOBJ invocations to module description.
4262         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
4263         gl_PREREQ_TTYNAME_R invocations from here...
4264         * modules/ttyname_r (configure.ac): ... to here.
4265
4266 2011-05-22  Bruno Haible  <bruno@clisp.org>
4267
4268         tsearch: Move AC_LIBOBJ invocations to module description.
4269         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
4270         invocations from here...
4271         * modules/tsearch (configure.ac): ... to here.
4272
4273 2011-05-22  Bruno Haible  <bruno@clisp.org>
4274
4275         towctrans: Move AC_LIBOBJ invocations to module description.
4276         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
4277         AC_LIBOBJ invocation from here...
4278         * modules/towctrans (configure.ac): ... to here.
4279
4280 2011-05-22  Bruno Haible  <bruno@clisp.org>
4281
4282         tmpfile: Move AC_LIBOBJ invocations to module description.
4283         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
4284         invocations from here...
4285         * modules/tmpfile (configure.ac): ... to here.
4286
4287 2011-05-22  Bruno Haible  <bruno@clisp.org>
4288
4289         times: Move AC_LIBOBJ invocations to module description.
4290         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
4291         * modules/times (configure.ac): ... to here.
4292
4293 2011-05-22  Bruno Haible  <bruno@clisp.org>
4294
4295         time_r: Move AC_LIBOBJ invocations to module description.
4296         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
4297         invocations from here...
4298         * modules/time_r (configure.ac): ... to here.
4299
4300 2011-05-22  Bruno Haible  <bruno@clisp.org>
4301
4302         timegm: Move AC_LIBOBJ invocations to module description.
4303         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
4304         invocations from here...
4305         * modules/timegm (configure.ac): ... to here.
4306
4307 2011-05-22  Bruno Haible  <bruno@clisp.org>
4308
4309         tcgetsid: Move AC_LIBOBJ invocations to module description.
4310         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
4311         and gl_PREREQ_TCGETSID invocations from here...
4312         * modules/tcgetsid (configure.ac): ... to here.
4313         (Depends-on): Update conditions.
4314
4315 2011-05-22  Bruno Haible  <bruno@clisp.org>
4316
4317         symlinkat: Move AC_LIBOBJ invocations to module description.
4318         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
4319         here...
4320         * modules/symlinkat (configure.ac): ... to here.
4321
4322 2011-05-22  Bruno Haible  <bruno@clisp.org>
4323
4324         symlink: Move AC_LIBOBJ invocations to module description.
4325         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
4326         here...
4327         * modules/symlink (configure.ac): ... to here.
4328
4329 2011-05-22  Bruno Haible  <bruno@clisp.org>
4330
4331         strverscmp: Move AC_LIBOBJ invocations to module description.
4332         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
4333         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
4334         from here...
4335         * modules/strverscmp (configure.ac): ... to here.
4336
4337 2011-05-22  Bruno Haible  <bruno@clisp.org>
4338
4339         strtok_r: Move AC_LIBOBJ invocations to module description.
4340         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
4341         and gl_PREREQ_STRTOK_R invocations from here...
4342         * modules/strtok_r (configure.ac): ... to here.
4343         (Depends-on): Update conditions.
4344
4345 2011-05-22  Bruno Haible  <bruno@clisp.org>
4346
4347         strtoumax: Move AC_LIBOBJ invocations to module description.
4348         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
4349         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
4350         from here...
4351         * modules/strtoumax (configure.ac): ... to here.
4352
4353 2011-05-22  Bruno Haible  <bruno@clisp.org>
4354
4355         strtoimax: Move AC_LIBOBJ invocations to module description.
4356         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
4357         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
4358         from here...
4359         * modules/strtoimax (configure.ac): ... to here.
4360
4361 2011-05-22  Bruno Haible  <bruno@clisp.org>
4362
4363         strtoull: Move AC_LIBOBJ invocations to module description.
4364         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
4365         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
4366         from here...
4367         * modules/strtoull (configure.ac): ... to here.
4368
4369 2011-05-22  Bruno Haible  <bruno@clisp.org>
4370
4371         strtoll: Move AC_LIBOBJ invocations to module description.
4372         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
4373         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
4374         here...
4375         * modules/strtoll (configure.ac): ... to here.
4376
4377 2011-05-22  Bruno Haible  <bruno@clisp.org>
4378
4379         strtoul: Move AC_LIBOBJ invocations to module description.
4380         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
4381         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
4382         * modules/strtoul (configure.ac): ... to here.
4383
4384 2011-05-22  Bruno Haible  <bruno@clisp.org>
4385
4386         strtol: Move AC_LIBOBJ invocations to module description.
4387         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
4388         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
4389         * modules/strtol (configure.ac): ... to here.
4390
4391 2011-05-22  Bruno Haible  <bruno@clisp.org>
4392
4393         strtod: Move AC_LIBOBJ invocations to module description.
4394         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
4395         invocations from here...
4396         * modules/strtod (configure.ac): ... to here.
4397
4398 2011-05-22  Bruno Haible  <bruno@clisp.org>
4399
4400         strstr*: Move AC_LIBOBJ invocations to module description.
4401         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
4402         invocations from here...
4403         * modules/strstr-simple (configure.ac): ... to here.
4404         * modules/strstr (configure.ac): ... and here.
4405
4406 2011-05-22  Bruno Haible  <bruno@clisp.org>
4407
4408         strsignal: Move AC_LIBOBJ invocations to module description.
4409         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
4410         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
4411         * modules/strsignal (configure.ac): ... to here.
4412         (Depends-on): Update conditions.
4413
4414 2011-05-22  Bruno Haible  <bruno@clisp.org>
4415
4416         strsep: Move AC_LIBOBJ invocations to module description.
4417         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
4418         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
4419         here...
4420         * modules/strsep (configure.ac): ... to here.
4421
4422 2011-05-22  Bruno Haible  <bruno@clisp.org>
4423
4424         strptime: Move AC_LIBOBJ invocations to module description.
4425         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
4426         gl_PREREQ_STRPTIME invocations from here...
4427         * modules/strptime (configure.ac): ... to here.
4428
4429 2011-05-22  Bruno Haible  <bruno@clisp.org>
4430
4431         strpbrk: Move AC_LIBOBJ invocations to module description.
4432         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
4433         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
4434         here...
4435         * modules/strpbrk (configure.ac): ... to here.
4436
4437 2011-05-22  Bruno Haible  <bruno@clisp.org>
4438
4439         strnlen: Move AC_LIBOBJ invocations to module description.
4440         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
4441         invocations from here...
4442         * modules/strnlen (configure.ac): ... to here.
4443
4444 2011-05-22  Bruno Haible  <bruno@clisp.org>
4445
4446         strndup: Move AC_LIBOBJ invocations to module description.
4447         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
4448         invocations from here...
4449         * modules/strndup (configure.ac): ... to here.
4450         (Depends-on): Update conditions.
4451
4452 2011-05-22  Bruno Haible  <bruno@clisp.org>
4453
4454         strncat: Move AC_LIBOBJ invocations to module description.
4455         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
4456         invocations from here...
4457         * modules/strncat (configure.ac): ... to here.
4458
4459 2011-05-22  Bruno Haible  <bruno@clisp.org>
4460
4461         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
4462         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
4463         invocations from here...
4464         * modules/strdup (configure.ac): ... to here.
4465         * modules/strdup-posix (configure.ac): ... and here.
4466
4467 2011-05-22  Bruno Haible  <bruno@clisp.org>
4468
4469         strcspn: Move AC_LIBOBJ invocations to module description.
4470         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
4471         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
4472         here...
4473         * modules/strcspn (configure.ac): ... to here.
4474
4475 2011-05-22  Bruno Haible  <bruno@clisp.org>
4476
4477         strchrnul: Move AC_LIBOBJ invocations to module description.
4478         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
4479         gl_PREREQ_STRCHRNUL invocations from here...
4480         * modules/strchrnul (configure.ac): ... to here.
4481
4482 2011-05-22  Bruno Haible  <bruno@clisp.org>
4483
4484         strcasestr*: Move AC_LIBOBJ invocations to module description.
4485         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
4486         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
4487         * modules/strcasestr-simple (configure.ac): ... to here.
4488         * modules/strcasestr (configure.ac): ... and here.
4489
4490 2011-05-22  Bruno Haible  <bruno@clisp.org>
4491
4492         strcase: Move AC_LIBOBJ invocations to module description.
4493         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
4494         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
4495         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
4496         gl_PREREQ_STRNCASECMP invocations from here...
4497         * modules/strcase (configure.ac): ... to here.
4498
4499 2011-05-22  Bruno Haible  <bruno@clisp.org>
4500
4501         stpncpy: Move AC_LIBOBJ invocations to module description.
4502         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
4503         here...
4504         * modules/stpncpy (configure.ac): ... to here.
4505
4506 2011-05-22  Bruno Haible  <bruno@clisp.org>
4507
4508         stpcpy: Move AC_LIBOBJ invocations to module description.
4509         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
4510         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
4511         here...
4512         * modules/stpcpy (configure.ac): ... to here.
4513
4514 2011-05-21  Bruno Haible  <bruno@clisp.org>
4515
4516         stat: Move AC_LIBOBJ invocations to module description.
4517         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
4518         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
4519         here...
4520         * modules/stat (configure.ac): ... to here.
4521
4522 2011-05-21  Bruno Haible  <bruno@clisp.org>
4523
4524         sleep: Move AC_LIBOBJ invocations to module description.
4525         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
4526         * modules/sleep (configure.ac): ... to here.
4527
4528 2011-05-21  Bruno Haible  <bruno@clisp.org>
4529
4530         signbit: Move AC_LIBOBJ invocations to module description.
4531         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
4532         * modules/signbit (configure.ac): ... to here.
4533
4534 2011-05-21  Bruno Haible  <bruno@clisp.org>
4535
4536         sigprocmask: Move AC_LIBOBJ invocations to module description.
4537         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
4538         gl_PREREQ_SIGPROMASK invocations from here...
4539         * modules/sigprocmask (configure.ac): ... to here.
4540
4541 2011-05-21  Bruno Haible  <bruno@clisp.org>
4542
4543         sigaction: Move AC_LIBOBJ invocations to module description.
4544         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
4545         gl_PREREQ_SIGACTION invocations from here...
4546         * modules/sigaction (configure.ac): ... to here.
4547
4548 2011-05-21  Bruno Haible  <bruno@clisp.org>
4549
4550         sig2str: Move AC_LIBOBJ invocations to module description.
4551         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
4552         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
4553         here...
4554         * modules/sig2str (configure.ac): ... to here.
4555
4556 2011-05-21  Bruno Haible  <bruno@clisp.org>
4557
4558         setlocale: Move AC_LIBOBJ invocations to module description.
4559         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
4560         gl_PREREQ_SETLOCALE invocations from here...
4561         * modules/setlocale (configure.ac): ... to here.
4562
4563 2011-05-21  Bruno Haible  <bruno@clisp.org>
4564
4565         unsetenv: Move AC_LIBOBJ invocations to module description.
4566         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
4567         and gl_PREREQ_UNSETENV invocations from here...
4568         * modules/unsetenv (configure.ac): ... to here.
4569         (Depends-on): Update.
4570
4571 2011-05-21  Bruno Haible  <bruno@clisp.org>
4572
4573         setenv: Move AC_LIBOBJ invocations to module description.
4574         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
4575         here...
4576         * modules/setenv (configure.ac): ... to here.
4577
4578 2011-05-21  Bruno Haible  <bruno@clisp.org>
4579
4580         selinux-h: Move AC_LIBOBJ invocations to module description.
4581         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
4582         AC_LIBOBJ invocation from here...
4583         * modules/selinux-h (configure.ac): ... to here.
4584
4585 2011-05-21  Bruno Haible  <bruno@clisp.org>
4586
4587         select: Respect rules for use of AC_LIBOBJ.
4588         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
4589         here...
4590         * modules/select (configure.ac): ... to here.
4591
4592 2011-05-21  Bruno Haible  <bruno@clisp.org>
4593
4594         scandir: Move AC_LIBOBJ invocations to module description.
4595         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
4596         invocations from here...
4597         * modules/scandir (configure.ac): ... to here.
4598
4599 2011-05-21  Bruno Haible  <bruno@clisp.org>
4600
4601         rpmatch: Move AC_LIBOBJ invocations to module description.
4602         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
4603         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
4604         here...
4605         * modules/rpmatch (configure.ac): ... to here.
4606
4607 2011-05-21  Bruno Haible  <bruno@clisp.org>
4608
4609         rmdir: Respect rules for use of AC_LIBOBJ.
4610         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
4611         * modules/rmdir (configure.ac): ... to here.
4612
4613 2011-05-21  Bruno Haible  <bruno@clisp.org>
4614
4615         renameat: Move AC_LIBOBJ invocations to module description.
4616         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
4617         here...
4618         * modules/renameat (configure.ac): ... to here.
4619
4620 2011-05-21  Bruno Haible  <bruno@clisp.org>
4621
4622         rename: Respect rules for use of AC_LIBOBJ.
4623         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
4624         here...
4625         * modules/rename (configure.ac): ... to here.
4626
4627 2011-05-21  Bruno Haible  <bruno@clisp.org>
4628
4629         remove: Move AC_LIBOBJ invocations to module description.
4630         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
4631         here...
4632         * modules/remove (configure.ac): ... to here.
4633
4634 2011-05-21  Bruno Haible  <bruno@clisp.org>
4635
4636         relocatable-lib: Move AC_LIBOBJ invocations to module description.
4637         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
4638         macro.
4639         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
4640         * modules/relocatable-lib (configure.ac): ... to here.
4641         * modules/relocatable-prog-wrapper (configure.ac): Invoke
4642         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
4643
4644 2011-05-21  Bruno Haible  <bruno@clisp.org>
4645
4646         relocatable-prog: Move AC_LIBOBJ invocations to module description.
4647         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
4648         here...
4649         * modules/relocatable-prog (configure.ac): ... to here.
4650
4651 2011-05-21  Bruno Haible  <bruno@clisp.org>
4652
4653         regex: Move AC_LIBOBJ invocations to module description.
4654         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
4655         invocations from here...
4656         * modules/regex (configure.ac): ... to here.
4657
4658 2011-05-21  Bruno Haible  <bruno@clisp.org>
4659
4660         realloc-*: Move AC_LIBOBJ invocations to module description.
4661         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
4662         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
4663         AC_LIBOBJ invocations from here...
4664         * modules/realloc-gnu (configure.ac): ... to here.
4665         * modules/realloc-posix (configure.ac): ... and here.
4666
4667 2011-05-21  Bruno Haible  <bruno@clisp.org>
4668
4669         readutmp: Move AC_LIBOBJ invocations to module description.
4670         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
4671         * modules/readutmp (configure.ac): ... to here.
4672
4673 2011-05-21  Bruno Haible  <bruno@clisp.org>
4674
4675         readlinkat: Move AC_LIBOBJ invocations to module description.
4676         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
4677         here...
4678         * modules/readlinkat (configure.ac): ... to here.
4679
4680 2011-05-21  Bruno Haible  <bruno@clisp.org>
4681
4682         readlink: Move AC_LIBOBJ invocations to module description.
4683         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
4684         gl_PREREQ_READLINK invocations from here...
4685         * modules/readlink (configure.ac): ... to here.
4686
4687 2011-05-21  Bruno Haible  <bruno@clisp.org>
4688
4689         readline: Move AC_LIBOBJ invocations to module description.
4690         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
4691         gl_PREREQ_READLINE invocations from here...
4692         * modules/readline (configure.ac): ... to here.
4693
4694 2011-05-21  Bruno Haible  <bruno@clisp.org>
4695
4696         read: Move AC_LIBOBJ invocations to module description.
4697         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
4698         * modules/read (configure.ac): ... to here.
4699
4700 2011-05-21  Bruno Haible  <bruno@clisp.org>
4701
4702         rawmemchr: Move AC_LIBOBJ invocations to module description.
4703         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
4704         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
4705         from here...
4706         * modules/rawmemchr (configure.ac): ... to here.
4707
4708 2011-05-21  Bruno Haible  <bruno@clisp.org>
4709
4710         random_r: Move AC_LIBOBJ invocations to module description.
4711         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
4712         gl_PREREQ_RANDOM_R invocations from here...
4713         * modules/random_r (configure.ac): ... to here.
4714
4715 2011-05-21  Bruno Haible  <bruno@clisp.org>
4716
4717         pwrite: Move AC_LIBOBJ invocations to module description.
4718         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
4719         * modules/pwrite (configure.ac): ... to here.
4720
4721 2011-05-21  Bruno Haible  <bruno@clisp.org>
4722
4723         putenv: Move AC_LIBOBJ invocations to module description.
4724         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
4725         * modules/putenv (configure.ac): ... to here.
4726
4727 2011-05-21  Bruno Haible  <bruno@clisp.org>
4728
4729         login_tty: Move AC_LIBOBJ invocations to module description.
4730         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
4731         * modules/login_tty (configure.ac): ... to here.
4732
4733 2011-05-21  Bruno Haible  <bruno@clisp.org>
4734
4735         openpty: Move AC_LIBOBJ invocations to module description.
4736         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
4737         * modules/openpty (configure.ac): ... to here.
4738
4739 2011-05-21  Bruno Haible  <bruno@clisp.org>
4740
4741         forkpty: Move AC_LIBOBJ invocations to module description.
4742         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
4743         * modules/forkpty (configure.ac): ... to here.
4744
4745 2011-05-21  Bruno Haible  <bruno@clisp.org>
4746
4747         ptsname: Move AC_LIBOBJ invocations to module description.
4748         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
4749         invocations from here...
4750         * modules/ptsname (configure.ac): ... to here.
4751
4752 2011-05-21  Bruno Haible  <bruno@clisp.org>
4753
4754         pread: Move AC_LIBOBJ invocations to module description.
4755         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
4756         * modules/pread (configure.ac): ... to here.
4757
4758 2011-05-21  Bruno Haible  <bruno@clisp.org>
4759
4760         posix_spawn*: Move AC_LIBOBJ invocations to module description.
4761         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
4762         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
4763         * modules/posix_spawn (configure.ac): ... to here.
4764         * modules/posix_spawnp (configure.ac): ... and here.
4765
4766 2011-05-21  Bruno Haible  <bruno@clisp.org>
4767
4768         popen: Move AC_LIBOBJ invocations to module description.
4769         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
4770         invocations from here...
4771         * modules/popen (configure.ac): ... to here.
4772
4773 2011-05-21  Bruno Haible  <bruno@clisp.org>
4774
4775         poll: Move AC_LIBOBJ invocations to module description.
4776         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
4777         invocations from here...
4778         * modules/poll (configure.ac): ... to here.
4779
4780 2011-05-21  Bruno Haible  <bruno@clisp.org>
4781
4782         pipe-posix: Move AC_LIBOBJ invocations to module description.
4783         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
4784         * modules/pipe-posix (configure.ac): ... to here.
4785
4786 2011-05-21  Bruno Haible  <bruno@clisp.org>
4787
4788         openat: Respect rules for use of AC_LIBOBJ.
4789         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
4790         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
4791         * modules/openat (configure.ac): ... to here.
4792
4793 2011-05-21  Bruno Haible  <bruno@clisp.org>
4794
4795         obstack-printf*: Move AC_LIBOBJ invocations to module description.
4796         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
4797         invocation from here...
4798         * modules/obstack-printf (configure.ac): ... to here.
4799         * modules/obstack-printf-posix (configure.ac): ... and here.
4800
4801 2011-05-21  Bruno Haible  <bruno@clisp.org>
4802
4803         nl_langinfo: Move AC_LIBOBJ invocations to module description.
4804         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
4805         from here...
4806         * modules/nl_langinfo (configure.ac): ... to here.
4807
4808 2011-05-21  Bruno Haible  <bruno@clisp.org>
4809
4810         nanosleep: Move AC_LIBOBJ invocations to module description.
4811         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
4812         gl_PREREQ_NANOSLEEP invocations from here...
4813         * modules/nanosleep (configure.ac): ... to here.
4814
4815 2011-05-21  Bruno Haible  <bruno@clisp.org>
4816
4817         mountlist: Move AC_LIBOBJ invocations to module description.
4818         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
4819         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
4820         * modules/mountlist (configure.ac): ... to here.
4821
4822 2011-05-21  Bruno Haible  <bruno@clisp.org>
4823
4824         mktime: Respect rules for use of AC_LIBOBJ.
4825         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
4826         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
4827         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
4828         (gl_FUNC_MKTIME_INTERNAL): ... and here...
4829         * modules/mktime (configure.ac): ... to here.
4830         * modules/mktime-internal (configure.ac): ... and here.
4831         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
4832
4833 2011-05-21  Bruno Haible  <bruno@clisp.org>
4834
4835         mkstemps: Move AC_LIBOBJ invocations to module description.
4836         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
4837         here...
4838         * modules/mkstemps (configure.ac): ... to here.
4839
4840 2011-05-21  Bruno Haible  <bruno@clisp.org>
4841
4842         mkstemp: Move AC_LIBOBJ invocations to module description.
4843         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
4844         gl_PREREQ_MKSTEMP invocations from here...
4845         * modules/mkstemp (configure.ac): ... to here.
4846
4847 2011-05-21  Bruno Haible  <bruno@clisp.org>
4848
4849         mkostemps: Move AC_LIBOBJ invocations to module description.
4850         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
4851         here...
4852         * modules/mkostemps (configure.ac): ... to here.
4853
4854 2011-05-21  Bruno Haible  <bruno@clisp.org>
4855
4856         mkostemp: Move AC_LIBOBJ invocations to module description.
4857         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
4858         gl_PREREQ_MKOSTEMP invocations from here...
4859         * modules/mkostemp (configure.ac): ... to here.
4860
4861 2011-05-21  Bruno Haible  <bruno@clisp.org>
4862
4863         mknod: Move AC_LIBOBJ invocations to module description.
4864         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
4865         * modules/mknod (configure.ac): ... to here.
4866
4867 2011-05-21  Bruno Haible  <bruno@clisp.org>
4868
4869         mkfifoat: Move AC_LIBOBJ invocations to module description.
4870         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
4871         here...
4872         * modules/mkfifoat (configure.ac): ... to here.
4873
4874 2011-05-21  Bruno Haible  <bruno@clisp.org>
4875
4876         mkfifo: Respect rules for use of AC_LIBOBJ.
4877         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
4878         here...
4879         * modules/mkfifo (configure.ac): ... to here.
4880
4881 2011-05-21  Bruno Haible  <bruno@clisp.org>
4882
4883         mkdtemp: Move AC_LIBOBJ invocations to module description.
4884         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
4885         invocations from here...
4886         * modules/mkdtemp (configure.ac): ... to here.
4887
4888 2011-05-21  Bruno Haible  <bruno@clisp.org>
4889
4890         mkdir: Move AC_LIBOBJ invocations to module description.
4891         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
4892         * modules/mkdir (configure.ac): ... to here.
4893
4894 2011-05-21  Bruno Haible  <bruno@clisp.org>
4895
4896         memset: Move AC_LIBOBJ invocations to module description.
4897         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
4898         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
4899         here...
4900         * modules/memset (configure.ac): ... to here.
4901
4902 2011-05-21  Bruno Haible  <bruno@clisp.org>
4903
4904         memrchr: Move AC_LIBOBJ invocations to module description.
4905         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
4906         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
4907         here...
4908         * modules/memrchr (configure.ac): ... to here.
4909
4910 2011-05-21  Bruno Haible  <bruno@clisp.org>
4911
4912         mempcpy: Move AC_LIBOBJ invocations to module description.
4913         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
4914         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
4915         here...
4916         * modules/mempcpy (configure.ac): ... to here.
4917
4918 2011-05-21  Bruno Haible  <bruno@clisp.org>
4919
4920         memmove: Move AC_LIBOBJ invocations to module description.
4921         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
4922         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
4923         here...
4924         * modules/memmove (configure.ac): ... to here.
4925
4926 2011-05-21  Bruno Haible  <bruno@clisp.org>
4927
4928         memmem*: Move AC_LIBOBJ invocations to module description.
4929         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
4930         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
4931         here...
4932         (gl_FUNC_MEMMEM): ... and here...
4933         * modules/memmem-simple (configure.ac): ... to here.
4934         * modules/memmem (configure.ac): ... and here.
4935
4936 2011-05-21  Bruno Haible  <bruno@clisp.org>
4937
4938         memcpy: Move AC_LIBOBJ invocations to module description.
4939         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
4940         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
4941         here...
4942         * modules/memcpy (configure.ac): ... to here.
4943
4944 2011-05-21  Bruno Haible  <bruno@clisp.org>
4945
4946         memcmp: Simplify autoconf macro.
4947         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
4948         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
4949         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
4950
4951 2011-05-21  Bruno Haible  <bruno@clisp.org>
4952
4953         memcmp: Move AC_LIBOBJ invocations to module description.
4954         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
4955         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
4956         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
4957         * modules/memcmp (configure.ac): ... to here.
4958         (Depends-on): Update conditions.
4959
4960 2011-05-21  Bruno Haible  <bruno@clisp.org>
4961
4962         memchr: Respect rules for use of AC_LIBOBJ.
4963         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
4964         invocations from here...
4965         * modules/memchr (configure.ac): ... to here.
4966
4967 2011-05-21  Bruno Haible  <bruno@clisp.org>
4968
4969         mbtowc: Move AC_LIBOBJ invocations to module description.
4970         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
4971         invocations from here...
4972         * modules/mbtowc (configure.ac): ... to here.
4973
4974 2011-05-21  Bruno Haible  <bruno@clisp.org>
4975
4976         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
4977         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
4978         gl_PREREQ_MBSRTOWCS invocations from here...
4979         * modules/mbsrtowcs (configure.ac): ... to here.
4980
4981 2011-05-21  Bruno Haible  <bruno@clisp.org>
4982
4983         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
4984         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
4985         gl_PREREQ_MBSNRTOWCS invocations from here...
4986         * modules/mbsnrtowcs (configure.ac): ... to here.
4987
4988 2011-05-21  Bruno Haible  <bruno@clisp.org>
4989
4990         mbsinit: Move AC_LIBOBJ invocations to module description.
4991         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
4992         invocations from here...
4993         * modules/mbsinit (configure.ac): ... to here.
4994
4995 2011-05-21  Bruno Haible  <bruno@clisp.org>
4996
4997         mbrlen: Move AC_LIBOBJ invocations to module description.
4998         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
4999         invocations from here...
5000         * modules/mbrlen (configure.ac): ... to here.
5001
5002 2011-05-21  Bruno Haible  <bruno@clisp.org>
5003
5004         mbrtowc: Respect rules for use of AC_LIBOBJ.
5005         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
5006         invocations from here...
5007         * modules/mbrtowc (configure.ac): ... to here.
5008
5009 2011-05-21  Bruno Haible  <bruno@clisp.org>
5010
5011         malloc-*: Move AC_LIBOBJ invocations to module description.
5012         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
5013         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
5014         AC_LIBOBJ invocations from here...
5015         * modules/malloc-gnu (configure.ac): ... to here.
5016         * modules/malloc-posix (configure.ac): ... and here.
5017
5018 2011-05-21  Bruno Haible  <bruno@clisp.org>
5019
5020         lstat, openat: Respect rules for use of AC_LIBOBJ.
5021         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
5022         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
5023         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
5024         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
5025         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
5026         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
5027         here.
5028         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
5029
5030 2011-05-21  Bruno Haible  <bruno@clisp.org>
5031
5032         lseek: Move AC_LIBOBJ invocations to module description.
5033         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
5034         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
5035         * modules/lseek (configure.ac): ... to here.
5036
5037 2011-05-21  Bruno Haible  <bruno@clisp.org>
5038
5039         linkat: Move AC_LIBOBJ invocations to module description.
5040         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
5041         here...
5042         * modules/linkat (configure.ac): ... to here.
5043
5044 2011-05-21  Bruno Haible  <bruno@clisp.org>
5045
5046         link: Respect rules for use of AC_LIBOBJ.
5047         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
5048         * modules/link (configure.ac): ... to here.
5049
5050 2011-05-21  Bruno Haible  <bruno@clisp.org>
5051
5052         lchown: Move AC_LIBOBJ invocations to module description.
5053         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
5054         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
5055         * modules/lchown (configure.ac): ... to here.
5056
5057 2011-05-21  Bruno Haible  <bruno@clisp.org>
5058
5059         iswctype: Move AC_LIBOBJ invocations to module description.
5060         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
5061         here...
5062         * modules/iswctype (configure.ac): ... to here.
5063
5064 2011-05-21  Bruno Haible  <bruno@clisp.org>
5065
5066         iswblank: Move AC_LIBOBJ invocations to module description.
5067         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
5068         here...
5069         * modules/iswblank (configure.ac): ... to here.
5070
5071 2011-05-21  Bruno Haible  <bruno@clisp.org>
5072
5073         atanl: Move AC_LIBOBJ invocations to module description.
5074         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
5075         * modules/atanl (configure.ac): ... to here.
5076
5077 2011-05-21  Bruno Haible  <bruno@clisp.org>
5078
5079         acosl: Move AC_LIBOBJ invocations to module description.
5080         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
5081         * modules/acosl (configure.ac): ... to here.
5082
5083 2011-05-21  Bruno Haible  <bruno@clisp.org>
5084
5085         asinl: Respect rules for use of AC_LIBOBJ.
5086         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
5087         * modules/asinl (configure.ac): ... to here.
5088
5089 2011-05-21  Bruno Haible  <bruno@clisp.org>
5090
5091         tanl: Move AC_LIBOBJ invocations to module description.
5092         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
5093         * modules/tanl (configure.ac): ... to here.
5094
5095 2011-05-21  Bruno Haible  <bruno@clisp.org>
5096
5097         cosl: Move AC_LIBOBJ invocations to module description.
5098         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
5099         * modules/cosl (configure.ac): ... to here.
5100
5101 2011-05-21  Bruno Haible  <bruno@clisp.org>
5102
5103         sinl: Move AC_LIBOBJ invocations to module description.
5104         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
5105         * modules/sinl (configure.ac): ... to here.
5106
5107 2011-05-21  Bruno Haible  <bruno@clisp.org>
5108
5109         logl: Move AC_LIBOBJ invocations to module description.
5110         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
5111         * modules/logl (configure.ac): ... to here.
5112
5113 2011-05-21  Bruno Haible  <bruno@clisp.org>
5114
5115         expl: Move AC_LIBOBJ invocations to module description.
5116         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
5117         * modules/expl (configure.ac): ... to here.
5118
5119 2011-05-21  Bruno Haible  <bruno@clisp.org>
5120
5121         roundl: Move AC_LIBOBJ invocations to module description.
5122         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
5123         * modules/roundl (configure.ac): ... to here.
5124
5125 2011-05-21  Bruno Haible  <bruno@clisp.org>
5126
5127         round: Move AC_LIBOBJ invocations to module description.
5128         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
5129         * modules/round (configure.ac): ... to here.
5130
5131 2011-05-21  Bruno Haible  <bruno@clisp.org>
5132
5133         roundf: Move AC_LIBOBJ invocations to module description.
5134         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
5135         * modules/roundf (configure.ac): ... to here.
5136
5137 2011-05-21  Bruno Haible  <bruno@clisp.org>
5138
5139         truncl: Move AC_LIBOBJ invocations to module description.
5140         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
5141         * modules/truncl (configure.ac): ... to here.
5142
5143 2011-05-21  Bruno Haible  <bruno@clisp.org>
5144
5145         trunc: Move AC_LIBOBJ invocations to module description.
5146         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
5147         * modules/trunc (configure.ac): ... to here.
5148
5149 2011-05-21  Bruno Haible  <bruno@clisp.org>
5150
5151         truncf: Move AC_LIBOBJ invocations to module description.
5152         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
5153         * modules/truncf (configure.ac): ... to here.
5154
5155 2011-05-21  Bruno Haible  <bruno@clisp.org>
5156
5157         ceill: Move AC_LIBOBJ invocations to module description.
5158         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
5159         * modules/ceill (configure.ac): ... to here.
5160
5161 2011-05-21  Bruno Haible  <bruno@clisp.org>
5162
5163         ceil: Move AC_LIBOBJ invocations to module description.
5164         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
5165         * modules/ceil (configure.ac): ... to here.
5166
5167 2011-05-21  Bruno Haible  <bruno@clisp.org>
5168
5169         ceilf: Move AC_LIBOBJ invocations to module description.
5170         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
5171         * modules/ceilf (configure.ac): ... to here.
5172
5173 2011-05-21  Bruno Haible  <bruno@clisp.org>
5174
5175         floorl: Respect rules for use of AC_LIBOBJ.
5176         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
5177         * modules/floorl (configure.ac): ... to here.
5178
5179 2011-05-21  Bruno Haible  <bruno@clisp.org>
5180
5181         floor: Respect rules for use of AC_LIBOBJ.
5182         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
5183         * modules/floor (configure.ac): ... to here.
5184
5185 2011-05-21  Bruno Haible  <bruno@clisp.org>
5186
5187         floorf: Move AC_LIBOBJ invocations to module description.
5188         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
5189         * modules/floorf (configure.ac): ... to here.
5190
5191 2011-05-20  Bruno Haible  <bruno@clisp.org>
5192
5193         sqrtl: Respect rules for use of AC_LIBOBJ.
5194         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
5195         * modules/sqrtl (configure.ac): ... to here.
5196
5197 2011-05-20  Bruno Haible  <bruno@clisp.org>
5198
5199         ldexpl: Respect rules for use of AC_LIBOBJ.
5200         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
5201         * modules/ldexpl (configure.ac): ... to here.
5202
5203 2011-05-20  Bruno Haible  <bruno@clisp.org>
5204
5205         frexpl*: Respect rules for use of AC_LIBOBJ.
5206         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
5207         invocation from here...
5208         * modules/frexpl (configure.ac): ... to here.
5209         * modules/frexpl-nolibm (configure.ac): ... and here.
5210
5211 2011-05-20  Bruno Haible  <bruno@clisp.org>
5212
5213         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
5214         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
5215         invocation from here...
5216         * modules/frexp (configure.ac): ... to here.
5217         * modules/frexp-nolibm (configure.ac): ... and here.
5218
5219 2011-05-20  Bruno Haible  <bruno@clisp.org>
5220
5221         isnan: Respect rules for use of AC_LIBOBJ.
5222         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
5223         invocations here.
5224         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
5225         REPLACE_ISNAN.
5226         * modules/isnand (configure.ac): Likewise.
5227         * modules/isnanl (configure.ac): Likewise.
5228
5229 2011-05-20  Bruno Haible  <bruno@clisp.org>
5230
5231         isnanl*: Respect rules for use of AC_LIBOBJ.
5232         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
5233         invocation from here...
5234         * modules/isnanl (configure.ac): ... to here.
5235         * modules/isnanl-nolibm (configure.ac): ... and here.
5236
5237 2011-05-20  Bruno Haible  <bruno@clisp.org>
5238
5239         isnand*: Move AC_LIBOBJ invocations to module description.
5240         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
5241         invocation from here...
5242         * modules/isnand (configure.ac): ... to here.
5243         * modules/isnand-nolibm (configure.ac): ... and here.
5244
5245 2011-05-20  Bruno Haible  <bruno@clisp.org>
5246
5247         isnanf*: Move AC_LIBOBJ invocations to module description.
5248         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
5249         invocation from here...
5250         * modules/isnanf (configure.ac): ... to here.
5251         * modules/isnanf-nolibm (configure.ac): ... and here.
5252
5253 2011-05-20  Bruno Haible  <bruno@clisp.org>
5254
5255         isnan*: Separate the AC_LIBOBJ invocations.
5256         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
5257         AC_LIBOBJ invocation.
5258         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
5259         here.
5260         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
5261         AC_LIBOBJ invocation.
5262         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
5263         here.
5264         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
5265         AC_LIBOBJ invocation.
5266         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
5267         here.
5268         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
5269
5270 2011-05-08  Bruno Haible  <bruno@clisp.org>
5271
5272         isinf: Move AC_LIBOBJ invocations to module description.
5273         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
5274         * modules/isinf (configure.ac): ... to here.
5275
5276 2011-05-08  Bruno Haible  <bruno@clisp.org>
5277
5278         isfinite: Move AC_LIBOBJ invocations to module description.
5279         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
5280         * modules/isfinite (configure.ac): ... to here.
5281
5282 2011-05-08  Bruno Haible  <bruno@clisp.org>
5283
5284         isblank: Move AC_LIBOBJ invocations to module description.
5285         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
5286         here...
5287         * modules/isblank (configure.ac): ... to here.
5288
5289 2011-05-08  Bruno Haible  <bruno@clisp.org>
5290
5291         isapipe: Move AC_LIBOBJ invocations to module description.
5292         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
5293         gl_PREREQ_ISAPIPE invocations from here...
5294         * modules/isapipe (configure.ac): ... to here.
5295         (Depends-on): Update condition.
5296
5297 2011-05-08  Bruno Haible  <bruno@clisp.org>
5298
5299         ioctl: Move AC_LIBOBJ invocations to module description.
5300         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
5301         invocations from here...
5302         * modules/ioctl (configure.ac): ... to here.
5303         (Depends-on): Update condition.
5304
5305 2011-05-08  Bruno Haible  <bruno@clisp.org>
5306
5307         imaxdiv: Move AC_LIBOBJ invocations to module description.
5308         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
5309         invocations from here...
5310         * modules/imaxdiv (configure.ac): ... to here.
5311
5312 2011-05-08  Bruno Haible  <bruno@clisp.org>
5313
5314         imaxabs: Move AC_LIBOBJ invocations to module description.
5315         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
5316         invocations from here...
5317         * modules/imaxabs (configure.ac): ... to here.
5318
5319 2011-05-08  Bruno Haible  <bruno@clisp.org>
5320
5321         getaddrinfo: Move AC_LIBOBJ invocations to module description.
5322         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
5323         AC_LIBOBJ invocations from here...
5324         * modules/getaddrinfo (configure.ac): ... to here.
5325         (Depends-on): Add conditions.
5326
5327 2011-05-08  Bruno Haible  <bruno@clisp.org>
5328
5329         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
5330         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
5331         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
5332         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
5333         (gl_PREREQ_INET_PTON): ... from here.
5334         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
5335         gl_PREREQ_INET_PTON here.
5336         (Depends-on): Update condition.
5337
5338 2011-05-08  Bruno Haible  <bruno@clisp.org>
5339
5340         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
5341         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
5342         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
5343         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
5344         (gl_PREREQ_INET_NTOP): ... from here.
5345         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
5346         gl_PREREQ_INET_NTOP here.
5347         (Depends-on): Update condition.
5348
5349 2011-05-08  Bruno Haible  <bruno@clisp.org>
5350
5351         iconv_open: Move AC_LIBOBJ invocations to module description.
5352         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
5353         AC_LIBOBJ invocations from here...
5354         * modules/iconv_open (configure.ac): ... to here.
5355
5356 2011-05-08  Bruno Haible  <bruno@clisp.org>
5357
5358         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
5359         If module 'iconv_open' is among the main modules and module
5360         'iconv_open-utf' is among the tests dependencies, then
5361         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
5362         return the special iconv_t values. Therefore iconv() and iconv_close()
5363         must support these special iconv_t values, already in lib, not only in
5364         tests.
5365         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
5366         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
5367         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
5368         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
5369         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
5370         (Depends-on): Add the dependencies of iconv_open-utf.
5371         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
5372         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
5373         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
5374
5375 2011-05-08  Bruno Haible  <bruno@clisp.org>
5376
5377         group-member: Move AC_LIBOBJ invocations to module description.
5378         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
5379         gl_PREREQ_GROUP_MEMBER invocations from here...
5380         * modules/group-member (configure.ac): ... to here.
5381
5382 2011-05-08  Bruno Haible  <bruno@clisp.org>
5383
5384         grantpt: Move AC_LIBOBJ invocations to module description.
5385         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
5386         invocations from here...
5387         * modules/grantpt (configure.ac): ... to here.
5388
5389 2011-05-08  Bruno Haible  <bruno@clisp.org>
5390
5391         glob: Move AC_LIBOBJ invocations to module description.
5392         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
5393         from here...
5394         * modules/glob (configure.ac): ... to here.
5395
5396 2011-05-08  Bruno Haible  <bruno@clisp.org>
5397
5398         getusershell: Move AC_LIBOBJ invocations to module description.
5399         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
5400         Move AC_LIBOBJ invocation from here...
5401         * modules/getusershell (configure.ac): ... to here.
5402         (Depends-on): Update condition.
5403
5404 2011-05-08  Bruno Haible  <bruno@clisp.org>
5405
5406         gettimeofday: Move AC_LIBOBJ invocations to module description.
5407         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
5408         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
5409         gl_PREREQ_GETTIMEOFDAY invocations from here...
5410         * modules/gettimeofday (configure.ac): ... to here.
5411
5412 2011-05-08  Bruno Haible  <bruno@clisp.org>
5413
5414         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
5415         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
5416         just gl_FUNC_TZSET.
5417         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
5418         (gl_FUNC_TZSET_CLOBBER): Remove actions.
5419         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
5420         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
5421
5422 2011-05-08  Bruno Haible  <bruno@clisp.org>
5423
5424         getsubopt: Move AC_LIBOBJ invocations to module description.
5425         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
5426         gl_PREREQ_GETSUBOPT invocations from here...
5427         * modules/getsubopt (configure.ac): ... to here.
5428
5429 2011-05-08  Bruno Haible  <bruno@clisp.org>
5430
5431         getpass-gnu: Move AC_LIBOBJ invocations to module description.
5432         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
5433         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
5434         * modules/getpass-gnu (configure.ac): ... to here.
5435
5436 2011-05-08  Bruno Haible  <bruno@clisp.org>
5437
5438         getpass: Move AC_LIBOBJ invocations to module description.
5439         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
5440         gl_PREREQ_GETPASS invocations from here...
5441         * modules/getpass (configure.ac): ... to here.
5442
5443 2011-05-08  Bruno Haible  <bruno@clisp.org>
5444
5445         getpagesize: Move AC_LIBOBJ invocations to module description.
5446         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
5447         from here...
5448         * modules/getpagesize (configure.ac): ... to here.
5449
5450 2011-05-08  Bruno Haible  <bruno@clisp.org>
5451
5452         getopt: Move AC_LIBOBJ invocations to module description.
5453         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
5454         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
5455         invocations from here...
5456         * modules/getopt-gnu (configure.ac): ... to here.
5457         * modules/getopt-posix (configure.ac): ... and here.
5458         (Depends-on): Update condition.
5459
5460 2011-05-08  Bruno Haible  <bruno@clisp.org>
5461
5462         getopt, argp: Respect rules for use of AC_LIBOBJ.
5463         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
5464         (gl_REPLACE_GETOPT_ALWAYS): New macro.
5465         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
5466         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
5467
5468 2011-05-08  Bruno Haible  <bruno@clisp.org>
5469
5470         getlogin_r: Move AC_LIBOBJ invocations to module description.
5471         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
5472         gl_PREREQ_GETLOGIN_R invocations from here...
5473         * modules/getlogin_r (configure.ac): ... to here.
5474
5475 2011-05-08  Bruno Haible  <bruno@clisp.org>
5476
5477         getlogin: Move AC_LIBOBJ invocations to module description.
5478         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
5479         here...
5480         * modules/getlogin (configure.ac): ... to here.
5481
5482 2011-05-08  Bruno Haible  <bruno@clisp.org>
5483
5484         getloadavg: Move AC_LIBOBJ invocations to module description.
5485         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
5486         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
5487         * modules/getloadavg (configure.ac): ... to here.
5488
5489 2011-05-08  Bruno Haible  <bruno@clisp.org>
5490
5491         gethrxtime: Move AC_LIBOBJ invocations to module description.
5492         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
5493         LIB_GETHRXTIME from here...
5494         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
5495         invocations from here...
5496         * modules/gethrxtime (configure.ac): ... to here.
5497
5498 2011-05-08  Bruno Haible  <bruno@clisp.org>
5499
5500         gethostname: Move AC_LIBOBJ invocations to module description.
5501         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
5502         gl_PREREQ_GETHOSTNAME invocations from here...
5503         * modules/gethostname (configure.ac): ... to here.
5504
5505 2011-05-08  Bruno Haible  <bruno@clisp.org>
5506
5507         getgroups: Move AC_LIBOBJ invocations to module description.
5508         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
5509         here...
5510         * modules/getgroups (configure.ac): ... to here.
5511
5512 2011-05-08  Bruno Haible  <bruno@clisp.org>
5513
5514         getdtablesize: Move AC_LIBOBJ invocations to module description.
5515         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
5516         invocation from here...
5517         * modules/getdtablesize (configure.ac): ... to here.
5518
5519 2011-05-08  Bruno Haible  <bruno@clisp.org>
5520
5521         getdomainname: Move AC_LIBOBJ invocations to module description.
5522         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
5523         gl_PREREQ_GETDOMAINNAME invocations from here...
5524         * modules/getdomainname (configure.ac): ... to here.
5525
5526 2011-05-08  Bruno Haible  <bruno@clisp.org>
5527
5528         getline: Move AC_LIBOBJ invocations to module description.
5529         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
5530         invocations from here...
5531         * modules/getline (configure.ac): ... to here.
5532
5533 2011-05-08  Bruno Haible  <bruno@clisp.org>
5534
5535         getline: Simplify.
5536         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
5537         It's already handled through the module dependency.
5538
5539 2011-05-08  Bruno Haible  <bruno@clisp.org>
5540
5541         getdelim: Move AC_LIBOBJ invocations to module description.
5542         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
5543         and gl_PREREQ_GETDELIM invocations from here...
5544         * modules/getdelim (configure.ac): ... to here.
5545         (Depends-on): Fix condition.
5546
5547 2011-05-08  Bruno Haible  <bruno@clisp.org>
5548
5549         getcwd: Move AC_LIBOBJ invocations to module description.
5550         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
5551         invocations from here...
5552         * modules/getcwd (configure.ac): ... to here.
5553
5554 2011-05-08  Bruno Haible  <bruno@clisp.org>
5555
5556         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
5557         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
5558         here...
5559         * modules/getcwd-lgpl (configure.ac): ... to here.
5560
5561 2011-05-07  Bruno Haible  <bruno@clisp.org>
5562
5563         crypto/gc: Move AC_LIBOBJ invocations to module description.
5564         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
5565         * modules/crypto/gc (configure.ac): ... to here.
5566
5567 2011-05-07  Bruno Haible  <bruno@clisp.org>
5568
5569         fwriting: Move AC_LIBOBJ invocations to module description.
5570         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
5571         here...
5572         * modules/fwriting (configure.ac): ... to here.
5573
5574 2011-05-07  Bruno Haible  <bruno@clisp.org>
5575
5576         fwritable: Move AC_LIBOBJ invocations to module description.
5577         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
5578         here...
5579         * modules/fwritable (configure.ac): ... to here.
5580
5581 2011-05-07  Bruno Haible  <bruno@clisp.org>
5582
5583         futimens: Move AC_LIBOBJ invocations to module description.
5584         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
5585         here...
5586         * modules/futimens (configure.ac): ... to here.
5587
5588 2011-05-07  Bruno Haible  <bruno@clisp.org>
5589
5590         ftruncate: Move AC_LIBOBJ invocations to module description.
5591         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
5592         gl_PREREQ_FTRUNCATE invocations from here...
5593         * modules/ftruncate (configure.ac): ... to here.
5594
5595 2011-05-07  Bruno Haible  <bruno@clisp.org>
5596
5597         fsync: Move AC_LIBOBJ invocations to module description.
5598         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
5599         invocations from here...
5600         * modules/fsync (configure.ac): ... to here.
5601
5602 2011-05-07  Bruno Haible  <bruno@clisp.org>
5603
5604         fsusage: Move AC_LIBOBJ invocations to module description.
5605         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
5606         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
5607         * modules/fsusage (configure.ac): ... to here.
5608
5609 2011-05-07  Bruno Haible  <bruno@clisp.org>
5610
5611         freopen: Move AC_LIBOBJ invocations to module description.
5612         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
5613         invocations from here...
5614         * modules/freopen (configure.ac): ... to here.
5615
5616 2011-05-07  Bruno Haible  <bruno@clisp.org>
5617
5618         free: Move AC_LIBOBJ invocations to module description.
5619         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
5620         invocations from here...
5621         * modules/free (configure.ac): ... to here.
5622
5623 2011-05-07  Bruno Haible  <bruno@clisp.org>
5624
5625         freadable: Move AC_LIBOBJ invocations to module description.
5626         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
5627         here...
5628         * modules/freadable (configure.ac): ... to here.
5629
5630 2011-05-07  Bruno Haible  <bruno@clisp.org>
5631
5632         fpurge: Move AC_LIBOBJ invocations to module description.
5633         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
5634         invocations from here...
5635         * modules/fpurge (configure.ac): ... to here.
5636
5637 2011-05-07  Bruno Haible  <bruno@clisp.org>
5638
5639         fpending: Move AC_LIBOBJ invocations to module description.
5640         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
5641         gl_FUNC_FPENDING.
5642         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
5643         invocations from here...
5644         * modules/fpending (configure.ac): ... to here.
5645
5646 2011-05-07  Bruno Haible  <bruno@clisp.org>
5647
5648         fopen: Move AC_LIBOBJ invocations to module description.
5649         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
5650         invocations from here...
5651         * modules/fopen (configure.ac): ... to here.
5652
5653 2011-05-07  Bruno Haible  <bruno@clisp.org>
5654
5655         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
5656         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
5657         gl_FUNC_FNMATCH_POSIX.
5658         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
5659         invocations from here...
5660         * modules/fnmatch (configure.ac): ... to here.
5661         * modules/fnmatch-gnu (configure.ac): ... and here.
5662
5663 2011-05-07  Bruno Haible  <bruno@clisp.org>
5664
5665         flock: Move AC_LIBOBJ invocations to module description.
5666         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
5667         invocations from here...
5668         * modules/flock (configure.ac): ... to here.
5669
5670 2011-05-07  Bruno Haible  <bruno@clisp.org>
5671
5672         fileblocks: Move AC_LIBOBJ invocations to module description.
5673         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
5674         gl_PREREQ_FILEBLOCKS invocations from here...
5675         * modules/fileblocks (configure.ac): ... to here.
5676
5677 2011-05-06  Bruno Haible  <bruno@clisp.org>
5678
5679         fflush: Move AC_LIBOBJ invocations to module description.
5680         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
5681         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
5682         invocations from here...
5683         * modules/fflush (configure.ac): ... to here.
5684
5685 2011-05-06  Bruno Haible  <bruno@clisp.org>
5686
5687         fdopendir: Move AC_LIBOBJ invocations to module description.
5688         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
5689         here...
5690         * modules/fdopendir (configure.ac): ... to here.
5691         (Depends-on): Improve conditions.
5692
5693 2011-05-06  Bruno Haible  <bruno@clisp.org>
5694
5695         _Exit: Move AC_LIBOBJ invocations to module description.
5696         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
5697         invocations from here...
5698         * modules/_Exit (configure.ac): ... to here.
5699
5700 2011-05-21  Bruno Haible  <bruno@clisp.org>
5701
5702         euidaccess: Respect rules for use of AC_LIBOBJ.
5703         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
5704         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
5705         from here...
5706         * modules/euidaccess (configure.ac): ... to here.
5707
5708 2011-05-06  Bruno Haible  <bruno@clisp.org>
5709
5710         error: Move AC_LIBOBJ invocations to module description.
5711         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
5712         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
5713         invocations from here...
5714         * modules/error (configure.ac): ... to here.
5715
5716 2011-05-06  Bruno Haible  <bruno@clisp.org>
5717
5718         duplocale: Move AC_LIBOBJ invocations to module description.
5719         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
5720         gl_PREREQ_DUPLOCALE invocations from here...
5721         * modules/duplocale (configure.ac): ... to here.
5722
5723 2011-05-05  Bruno Haible  <bruno@clisp.org>
5724
5725         dirfd: Move AC_LIBOBJ invocations to module description.
5726         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
5727         gl_FUNC_DIRFD.
5728         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
5729         here...
5730         * modules/dirfd (configure.ac): ... to here.
5731         (Depends-on): Fix condition.
5732
5733 2011-05-05  Bruno Haible  <bruno@clisp.org>
5734
5735         chown: Respect rules for use of AC_LIBOBJ.
5736         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
5737         * modules/chown (configure.ac): ... to here.
5738
5739 2011-05-05  Bruno Haible  <bruno@clisp.org>
5740
5741         chdir-long: Move AC_LIBOBJ invocations to module description.
5742         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
5743         gl_PREREQ_CHDIR_LONG invocations from here...
5744         * modules/chdir-long (configure.ac): ... to here.
5745
5746 2011-05-05  Bruno Haible  <bruno@clisp.org>
5747
5748         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
5749         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
5750         from here...
5751         * modules/canonicalize-lgpl (configure.ac): ... to here.
5752
5753 2011-05-05  Bruno Haible  <bruno@clisp.org>
5754
5755         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
5756         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
5757         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
5758         REPLACE_CALLOC.
5759         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
5760         * modules/calloc-gnu (configure.ac): Likewise.
5761
5762 2011-05-05  Bruno Haible  <bruno@clisp.org>
5763
5764         btowc: Move AC_LIBOBJ invocations to module description.
5765         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
5766         invocations from here...
5767         * modules/btowc (configure.ac): ... to here.
5768
5769 2011-05-21  Bruno Haible  <bruno@clisp.org>
5770
5771         atexit: Move AC_LIBOBJ invocations to module description.
5772         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
5773         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
5774         here...
5775         * modules/atexit (configure.ac): ... to here.
5776
5777 2011-05-05  Bruno Haible  <bruno@clisp.org>
5778
5779         atoll: Move AC_LIBOBJ invocations to module description.
5780         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
5781         invocations from here...
5782         * modules/atoll (configure.ac): ... to here.
5783
5784 2011-05-05  Bruno Haible  <bruno@clisp.org>
5785
5786         argz: Move AC_LIBOBJ invocations to module description.
5787         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
5788         * modules/argz (configure.ac): ... to here.
5789
5790 2011-05-05  Bruno Haible  <bruno@clisp.org>
5791
5792         alphasort: Move AC_LIBOBJ invocations to module description.
5793         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
5794         gl_PREREQ_ALPHASORT invocations from here...
5795         * modules/alphasort (configure.ac): ... to here.
5796
5797 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
5798
5799         verify: new macro verify_expr; verify_true deprecated
5800         * NEWS: Mention this.
5801         * doc/verify.texi (Compile-time Assertions): Document this.
5802         * lib/verify.h (verify_true): Deprecate.
5803         (verify_expr): New macro.
5804         * tests/test-verify.c (function): Test verify_expr.
5805
5806 2011-06-14  Jim Meyering  <meyering@redhat.com>
5807
5808         init.sh: give more portable redirection-related advice in a comment
5809         * tests/init.sh (stderr_fileno_): Update the advice in comments.
5810         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
5811         for lots of discussion.  Stefano Lattarini suggested the solution
5812         of putting "9>&2" after the command.  Reported by Bruno Haible.
5813
5814 2011-06-13  Bruno Haible  <bruno@clisp.org>
5815
5816         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
5817         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
5818         'none'.
5819
5820 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
5821
5822         ftoastr: use strtof only if HAVE_STRTOF
5823         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
5824         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
5825         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
5826         * modules/ftoastr (configure.ac): Check for strtof.
5827
5828 2011-06-13  Bruno Haible  <bruno@clisp.org>
5829
5830         gnulib-tool: Addendum to 2011-06-08 commit.
5831         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
5832         and --witness-c-macro have been given, augment AM_CPPFLAGS.
5833
5834 2011-06-13  Bruno Haible  <bruno@clisp.org>
5835
5836         fseeko: Provide a non-inline replacement of fseek().
5837         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
5838         * modules/fseeko (Depends-on): Add fseek.
5839         * modules/fseek (License): Change to LGPLv2+.
5840
5841 2011-06-13  Bruno Haible  <bruno@clisp.org>
5842
5843         ftello: Provide a non-inline replacement of ftell().
5844         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
5845         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
5846         not have ftello() (such as on mingw).
5847         * modules/ftello (Depends-on): Add ftell.
5848         * modules/ftell (License): Change to LGPLv2+.
5849
5850 2011-05-07  Bruno Haible  <bruno@clisp.org>
5851
5852         ftell: Move AC_LIBOBJ invocations to module description.
5853         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
5854         * modules/ftell (configure.ac): ... to here.
5855
5856 2011-05-07  Bruno Haible  <bruno@clisp.org>
5857
5858         ftello: Respect rules for use of AC_LIBOBJ.
5859         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
5860         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
5861         here...
5862         * modules/ftello (configure.ac): ... to here.
5863
5864 2011-05-07  Bruno Haible  <bruno@clisp.org>
5865
5866         fseeko: Simplify.
5867         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
5868         (gl_FUNC_FSEEKO): Inline it here.
5869
5870 2011-05-07  Bruno Haible  <bruno@clisp.org>
5871
5872         fseek: Move AC_LIBOBJ invocations to module description.
5873         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
5874         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
5875         * modules/fseek (configure.ac): ... to here.
5876
5877 2011-05-07  Bruno Haible  <bruno@clisp.org>
5878
5879         fseek: Respect rules for use of AC_LIBOBJ.
5880         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
5881         here...
5882         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
5883
5884 2011-05-07  Bruno Haible  <bruno@clisp.org>
5885
5886         fseeko: Respect rules for use of AC_LIBOBJ.
5887         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
5888         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
5889         here...
5890         * modules/fseeko (configure.ac): ... to here.
5891
5892 2011-06-13  Bruno Haible  <bruno@clisp.org>
5893
5894         gnulib-tool: Allow comments in the 'Depends-on' section.
5895         * doc/gnulib.texi (Module description): Mention comment syntax in the
5896         Depends-on section.
5897         * gnulib-tool (func_get_dependencies): Filter out comment lines.
5898
5899 2011-06-13  Bruno Haible  <bruno@clisp.org>
5900
5901         file-set.h: guard __attibute__ use, now that it's not always defined
5902         * lib/file-set.h (record_file): Use __attribute__ only with compiler
5903         versions that support it.  This fixes a coreutils build failure with
5904         the vendor cc on HP-UX 11.31.
5905
5906 2011-06-12  Bruno Haible  <bruno@clisp.org>
5907
5908         acl: Add support for HP-UX >= 11.11 JFS ACLs.
5909         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
5910         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
5911         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
5912         (acl, aclsort): New declarations.
5913         (aclv_nontrivial): New declaration.
5914         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
5915         (file_has_acl): Read also the second kind of HP-UX ACLs.
5916         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
5917         kind of HP-UX ACLs if the first kind fails.
5918         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
5919         second kind of HP-UX ACLs.
5920         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
5921         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
5922         agree.
5923         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
5924         hpuxjfs.
5925         Handle hpuxjfs.
5926         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
5927         hpuxjfs.
5928         Handle hpuxjfs.
5929         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
5930         (func_test_same_acls): Use both lsacl and getacl.
5931         Handle hpuxjfs.
5932         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
5933         (func_test_same_acls): Use both lsacl and getacl.
5934         Handle hpuxjfs.
5935
5936 2011-06-12  Bruno Haible  <bruno@clisp.org>
5937
5938         acl: Complete the 2010-08-10 fix.
5939         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
5940         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
5941         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
5942         explicitly.
5943         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
5944         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
5945
5946 2011-06-12  Bruno Haible  <bruno@clisp.org>
5947
5948         spawn-pipe tests: Comments.
5949         * tests/test-spawn-pipe-child.c (main): Update comment.
5950         Reported by James Youngman <jay@gnu.org>.
5951
5952 2011-06-11  James Youngman  <jay@gnu.org>
5953
5954         New module 'stat-size'.
5955         * modules/stat-size: New module.  Provides macros for accessing
5956         file size information in instances of struct stat.  Depends on the
5957         fileblocks module because it calls st_blocks.
5958         * lib/stat-size.h: New file, adapted from coreutils' system.h.
5959         * doc/gnulib.texi: Include stat-size.texi.
5960         * doc/stat-size.texi: Documentation for this module.
5961         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
5962         * m4/fileblocks.m4: Mention that stat-size depends on the call to
5963         AC_STRUCT_ST_BLOCKS.
5964
5965 2011-06-09  Bruno Haible  <bruno@clisp.org>
5966
5967         thread: Support pthreads-win32.
5968         * lib/glthread/thread.h (gl_thread_self): Define differently on
5969         pthreads-win32.
5970         (gl_null_thread): New declaration.
5971         (gl_thread_self_pointer): New macro.
5972         * lib/glthread/thread.c (gl_null_thread): New constant.
5973         * tests/test-lock.c: Use gl_thread_self_pointer instead of
5974         gl_thread_self.
5975         * tests/test-tls.c: Likewise.
5976         Suggested by Paul Eggert. Reported by Eric Blake.
5977
5978 2011-06-09  Bruno Haible  <bruno@clisp.org>
5979
5980         thread: Fix confusion between NULL and 0.
5981         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
5982         Reported by Paul Eggert.
5983
5984 2011-06-09  Bruno Haible  <bruno@clisp.org>
5985
5986         spawn-pipe tests: Avoid test failure on HP-UX 11.
5987         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
5988         is closed.
5989
5990 2011-06-09  Bruno Haible  <bruno@clisp.org>
5991
5992         acl tests: Fix compilation error on HP-UX 11.
5993         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
5994
5995 2011-06-09  Bruno Haible  <bruno@clisp.org>
5996
5997         rmdir: Avoid test failure on HP-UX 10.20.
5998         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
5999         EEXIST.
6000
6001 2011-06-08  Eric Blake  <eblake@redhat.com>
6002
6003         perror: fix test on mingw
6004         * modules/perror-tests (Depends-on): Add dup2.
6005
6006         strerror_r-posix: fix on MacOS
6007         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
6008         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
6009         logic bug.
6010         * lib/strerror_r.c (strerror_r): Fix the bug.
6011         * lib/strerror.c (strerror): Likewise.
6012         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
6013         problem.
6014         * doc/posix-functions/strerror.texi (strerror): Likewise.
6015         * doc/posix-functions/perror.texi (perror): Likewise.
6016         * tests/test-strerror.c (main): Enhance test.
6017         * tests/test-strerror_r.c (main): Likewise.
6018
6019 2011-06-08  Bruno Haible  <bruno@clisp.org>
6020
6021         gnulib-tool: Better isolation between different gnulib-tool invocations.
6022         * gnulib-tool: New option --witness-c-macro.
6023         (witness_c_macro): New variable.
6024         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
6025         AM_CPPFLAGS define it as a C macro.
6026         (func_emit_tests_Makefile_am): Likewise.
6027         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
6028         read it from there.
6029         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
6030         m4_define, not AC_DEFUN.
6031         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
6032         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
6033         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
6034         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
6035         s|...|...|, to substitute the values of the GNULIB_* module indicator
6036         variables.
6037         * modules/dirent (Makefile.am): Likewise.
6038         * modules/fcntl-h (Makefile.am): Likewise.
6039         * modules/iconv-h (Makefile.am): Likewise.
6040         * modules/langinfo (Makefile.am): Likewise.
6041         * modules/locale (Makefile.am): Likewise.
6042         * modules/math (Makefile.am): Likewise.
6043         * modules/netdb (Makefile.am): Likewise.
6044         * modules/poll-h (Makefile.am): Likewise.
6045         * modules/pty (Makefile.am): Likewise.
6046         * modules/search (Makefile.am): Likewise.
6047         * modules/signal (Makefile.am): Likewise.
6048         * modules/spawn (Makefile.am): Likewise.
6049         * modules/stdio (Makefile.am): Likewise.
6050         * modules/stdlib (Makefile.am): Likewise.
6051         * modules/string (Makefile.am): Likewise.
6052         * modules/sys_ioctl (Makefile.am): Likewise.
6053         * modules/sys_select (Makefile.am): Likewise.
6054         * modules/sys_socket (Makefile.am): Likewise.
6055         * modules/sys_stat (Makefile.am): Likewise.
6056         * modules/sys_times (Makefile.am): Likewise.
6057         * modules/sys_utsname (Makefile.am): Likewise.
6058         * modules/sys_wait (Makefile.am): Likewise.
6059         * modules/termios (Makefile.am): Likewise.
6060         * modules/time (Makefile.am): Likewise.
6061         * modules/unistd (Makefile.am): Likewise.
6062         * modules/wchar (Makefile.am): Likewise.
6063
6064 2011-06-08  Eric Blake  <eblake@redhat.com>
6065
6066         strerror: simplify replacement
6067         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
6068         * modules/strerror (configure.ac): No prereqs needed here...
6069         * modules/strerror-override (configure.ac): ...but this needs it.
6070         (Files): Add file for needed prereq macro.
6071
6072 2011-06-08  Bruno Haible  <bruno@clisp.org>
6073
6074         strerror_r-posix: Tweaks.
6075         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
6076         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
6077         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
6078         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
6079         (gl_FUNC_STRERROR_R): ... to here.
6080         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
6081
6082 2011-06-07  Eric Blake  <eblake@redhat.com>
6083
6084         perror: document fixed bugs
6085         * doc/posix-functions/perror.texi (perror): Document recent
6086         patches.
6087
6088 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
6089
6090         stat-time: get_stat_birthtime failure is better-defined
6091         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
6092         return a timestamp whose tv_sec and tv_nsec values are both -1.
6093         Previously, the spec said only that the tv_nsec value was negative.
6094         This upward-compatible change simplifies GNU tar a bit.
6095
6096 2011-06-07  Eric Blake  <eblake@redhat.com>
6097
6098         strerror_r-posix: work around cygwin 1.7.9
6099         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
6100         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
6101         bug without replacing strerror_r.
6102         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
6103         strerror_r is buggy, but without requiring strerror_r compilation.
6104         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
6105
6106         test-perror: relax test to ignore cygwin bug
6107         * tests/test-perror2.c (main): Relax test on requiring detection
6108         of stream errors, and use unbuffered stream.
6109         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
6110         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
6111         * doc/posix-functions/fputc.texi (fputc): Likewise.
6112         * doc/posix-functions/fputs.texi (fputs): Likewise.
6113         * doc/posix-functions/fputws.texi (fputws): Likewise.
6114         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
6115         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
6116         * doc/posix-functions/getopt.texi (getopt): Likewise.
6117         * doc/posix-functions/perror.texi (perror): Likewise.
6118         * doc/posix-functions/printf.texi (printf): Likewise.
6119         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
6120         * doc/posix-functions/psignal.texi (psignal): Likewise.
6121         * doc/posix-functions/putc.texi (putc): Likewise.
6122         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
6123         Likewise.
6124         * doc/posix-functions/putchar.texi (putchar): Likewise.
6125         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
6126         Likewise.
6127         * doc/posix-functions/puts.texi (puts): Likewise.
6128         * doc/posix-functions/putwc.texi (putwc): Likewise.
6129         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
6130         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
6131         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
6132         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
6133         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6134         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
6135         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
6136         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
6137
6138 2011-05-22  Bruno Haible  <bruno@clisp.org>
6139
6140         strerror: Move AC_LIBOBJ invocations to module description.
6141         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
6142         gl_PREREQ_STRERROR invocations from here...
6143         * modules/strerror (configure.ac): ... to here.
6144
6145 2011-05-21  Bruno Haible  <bruno@clisp.org>
6146
6147         perror: Use common idiom.
6148         * modules/perror (configure.ac): Reorder statements.
6149
6150 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
6151
6152         tests: fix usage message in 'mktempd_'
6153         * tests/init.sh (mktempd_): In the usage message, use literal
6154         'mktempd_', not '$ME' (which is even undefined), as the name of
6155         the subroutine.
6156
6157 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
6158
6159         tests init: new function 'fatal_', for hard errors
6160         Before this patch, the only way offered by tests/init.sh to
6161         properly signal a hard error was the `framework_failure_'
6162         function.  But the error message issued by that function,
6163         as its name would suggest, refers to a set-up failure in the
6164         testsuite, while hard errors can obviously also be due to
6165         other reasons.  The best way to fix this inconsistency is to
6166         introduce a new function with a more general error message.
6167         * tests/init.sh (fatal_): New function.
6168
6169 2011-06-06  Eric Blake  <eblake@redhat.com>
6170
6171         canonicalize-lgpl: use common idiom
6172         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
6173         over newer POSIX -Rf.
6174         Reported by Bruno Haible.
6175
6176         canonicalize-lgpl: work around AIX realpath bug
6177         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
6178         * doc/posix-functions/realpath.texi (realpath): Document it.
6179         Reported by Bruno Haible.
6180
6181         strerror: work around FreeBSD bug
6182         * lib/strerror.c (strerror): Special case 0.
6183         Reported by Bruno Haible.
6184
6185         strerror-override: avoid bloating errno module
6186         * modules/errno (Files, configure.ac): Move replacement strings...
6187         * modules/strerror-override: ...to new module.
6188         * modules/strerror (Depends-on): Add strerror-override.
6189         * modules/strerror_r-posix (Depends-on): Likewise.
6190         * MODULES.html.sh: Document new module.
6191         Reported by Bruno Haible.
6192
6193 2011-06-06  Bruno Haible  <bruno@clisp.org>
6194
6195         spawn-pipe tests: Rename program.
6196         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
6197         * tests/test-spawn-pipe-child.c: Update comment.
6198         * tests/test-spawn-pipe.sh: Update.
6199         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
6200
6201         spawn-pipe tests: Link the child program only against libc.
6202         * tests/test-spawn-pipe-child.c: New file, extracted from
6203         tests/test-spawn-pipe.c.
6204         (main): Expect only one argument.
6205         (is_open): New function, copied from tests/test-pipe.c.
6206         * tests/test-spawn-pipe.c: Don't include <errno.h>.
6207         (child_main): Remove function.
6208         (test_pipe): Pass only one argument to the child program.
6209         (main): Remove child process code. Expect the child program's name as
6210         first argument.
6211         * tests/test-spawn-pipe.sh: Pass the child program's name as first
6212         argument.
6213         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
6214         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
6215         test-spawn-pipe-child against no libraries.
6216
6217 2011-06-06  Bruno Haible  <bruno@clisp.org>
6218
6219         careadlinkat: Avoid mismatch between ssize_t and int.
6220         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
6221         * lib/careadlinkat.c (careadlinkatcwd): Define always.
6222
6223 2011-06-06  Jim Meyering  <meyering@redhat.com>
6224
6225         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
6226         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
6227         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
6228
6229 2011-06-05  Bruno Haible  <bruno@clisp.org>
6230
6231         ansi-c++-opt: Interoperability with libtool.
6232         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
6233         set the variable to "no", not to ":".
6234         * NEWS: Mention the change.
6235
6236 2011-06-05  Bruno Haible  <bruno@clisp.org>
6237
6238         acl: Fix test failure on AIX 7.
6239         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
6240         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
6241
6242 2011-06-05  Bruno Haible  <bruno@clisp.org>
6243
6244         pipe-filter-ii: Fix test failure on AIX and IRIX.
6245         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
6246         with EAGAIN, retry with a smaller buffer size.
6247
6248 2011-06-05  Bruno Haible  <bruno@clisp.org>
6249
6250         localename: Fix link dependencies.
6251         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
6252         * modules/localename-tests (Makefile.am): Link test-localename with
6253         $(LIBTHREAD).
6254
6255 2011-06-05  Bruno Haible  <bruno@clisp.org>
6256
6257         error: Avoid gcc warning.
6258         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
6259
6260 2011-06-05  Bruno Haible  <bruno@clisp.org>
6261
6262         unsetenv: Avoid gcc warning.
6263         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
6264
6265 2011-06-05  Bruno Haible  <bruno@clisp.org>
6266
6267         setenv: Avoid gcc warning.
6268         * lib/setenv.c (setenv): Provide declaration if system lacks it.
6269
6270 2011-06-05  Bruno Haible  <bruno@clisp.org>
6271
6272         sys_select: Ensure memset is declared also on AIX 7.
6273         * lib/sys_select.in.h: Include <string.h> also on AIX.
6274         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
6275         self-contained also on AIX 7.1.
6276
6277 2011-06-04  Jim Meyering  <meyering@redhat.com>
6278
6279         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
6280         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
6281         function name, "error".
6282         (_gl_translatable_diag_func_re): New configurable variable.
6283
6284 2011-06-04  Bruno Haible  <bruno@clisp.org>
6285
6286         getopt: Avoid gcc warning.
6287         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
6288
6289 2011-06-04  Bruno Haible  <bruno@clisp.org>
6290
6291         strerror_r: Fix comments.
6292         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
6293         commit.
6294
6295 2011-06-04  Bruno Haible  <bruno@clisp.org>
6296
6297         perror: Fix compilation error.
6298         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
6299         Undefine fprintf, not sprintf.
6300         * modules/perror (Depends-on): Remove intprops, verify.
6301
6302 2011-06-04  Bruno Haible  <bruno@clisp.org>
6303
6304         setlocale: Enable replacement on Cygwin 1.5.
6305         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
6306         Cygwin 1.5.x.
6307         * doc/posix-functions/setlocale.texi: Mention that the problem with the
6308         LC_CTYPE category also exists on Cygwin 1.5.x.
6309
6310 2011-06-04  Bruno Haible  <bruno@clisp.org>
6311
6312         strerror-override: Don't disable symbol renamings.
6313         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
6314         * lib/strerror-override.c: Include config.h.
6315         (strerror_override): Don't undefine.
6316
6317 2011-06-03  Bruno Haible  <bruno@clisp.org>
6318
6319         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
6320         * lib/localename.h: Update copyright header.
6321         * lib/localename.c: Likewise.
6322         * lib/relocatable.h: Likewise.
6323         * lib/relocatable.c: Likewise.
6324
6325 2011-06-02  Bruno Haible  <bruno@clisp.org>
6326
6327         doc: Fix a module name.
6328         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
6329
6330 2011-06-02  Bruno Haible  <bruno@clisp.org>
6331
6332         pipe2: Remove dependency on 'nonblocking' module.
6333         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
6334         O_NONBLOCK is defined by gnulib.
6335         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
6336         is zero.
6337         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
6338         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
6339         defined by gnulib.
6340         (get_nonblocking_flag): New function.
6341         (main): Test O_NONBLOCK flag only if it is nonzero.
6342         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
6343
6344 2011-06-03  Jim Meyering  <meyering@redhat.com>
6345
6346         maint: three new prohibit-header-without-use rules
6347         Prohibit use of cloexec.h, posixver.h, same.h without use.
6348         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
6349         (sc_prohibit_posixver_without_use): Likewise.
6350         (sc_prohibit_same_without_use): Likewise.
6351
6352 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
6353
6354         allocator: 'die' routine is now given requested size
6355         * lib/allocator.h (struct allocator.die): New size arg.
6356         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
6357         If the actual problem is an ssize_t limitation, not a size_t or
6358         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
6359
6360 2011-06-01  Eric Blake  <eblake@redhat.com>
6361
6362         strerror: drop strerror_r dependency
6363         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
6364         * lib/strerror-override.c (strerror_override): ...to new file.
6365         * lib/strerror-override.h: Add prototype.
6366         * lib/strerror-impl.h: Delete.
6367         * lib/strerror.c (strerror): New implementation.
6368         * modules/errno (Files): Add new files.
6369         (configure.ac): Compile new file as appropriate.
6370         * modules/strerror (Files): Drop unused file.
6371         (Depends-on): Drop strerror_r-posix.
6372         * MODULES.html.sh: Document strerror_r-posix.
6373         Requested by Sam Steingold.
6374
6375         perror: call strerror_r directly
6376         * modules/perror (Files): Drop strerror-impl.h.
6377         * lib/perror.c (perror): Use our own stack buffer, rather than
6378         calling a wrapper that uses static storage.
6379         * doc/posix-functions/perror.texi (perror): Document a limitation
6380         of our replacement.
6381
6382         strerror_r: fix includes for FreeBSD
6383         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
6384         since we use abort on some platforms.
6385         Reported by Matthias Bolte.
6386
6387 2011-05-31  Bruno Haible  <bruno@clisp.org>
6388
6389         Fix link errors in tests: openat-die uses gettext-h.
6390         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
6391         against $(LIBINTL).
6392         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
6393         against $(LIBINTL).
6394         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
6395         $(LIBINTL).
6396         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
6397         against $(LIBINTL).
6398         * modules/linkat-tests (Makefile.am): Link test-linkat against
6399         $(LIBINTL).
6400         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
6401         $(LIBINTL).
6402         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
6403         against $(LIBINTL).
6404         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
6405         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
6406         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
6407         $(LIBINTL).
6408         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
6409         $(LIBINTL).
6410         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
6411         $(LIBINTL).
6412         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6413
6414 2011-05-31  Bruno Haible  <bruno@clisp.org>
6415
6416         Fix link errors in tests: wait-process uses gettext-h.
6417         * modules/nonblocking-pipe-tests (Makefile.am): Set
6418         test_nonblocking_pipe_main_LDADD.
6419         * modules/nonblocking-socket-tests (Makefile.am): Link
6420         test-nonblocking-socket-main against $(LIBINTL).
6421         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6422
6423 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
6424
6425         assert-h: work around 'verify' incompatibility
6426         * lib/verify.h: Use @...@ directives, not ifdef.
6427         * modules/assert-h (assert.h): Implement the directives.
6428         (assert.h): Substitute the symbol-prefix more consistently.
6429
6430 2011-05-29  Jim Meyering  <meyering@redhat.com>
6431
6432         trim: remove three superfluous assignments
6433         * lib/trim.c (trim2): Remove three superfluous assignments
6434         and correct brace positioning.
6435
6436 2011-05-29  Bruno Haible  <bruno@clisp.org>
6437
6438         wctype-h: Avoid namespace pollution on Solaris 2.6.
6439         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
6440         identifiers.
6441         * doc/posix-headers/wctype.texi: Mention the problem.
6442         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6443
6444 2011-05-28  Jim Meyering  <meyering@redhat.com>
6445
6446         parse-datetime.y: accommodate -Wstrict-overflow
6447         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
6448         placate -Wstrict-overflow.
6449
6450         trim: avoid a warning from -O2 -Wstrict-overflow
6451         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
6452
6453 2011-05-29  Bruno Haible  <bruno@clisp.org>
6454
6455         gnulib-tool: Fix bug in yesterday's commit.
6456         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
6457         twice.
6458
6459 2011-05-29  Bruno Haible  <bruno@clisp.org>
6460
6461         Allow multiple gnulib generated include files to be combined.
6462         * gnulib-tool (func_compute_include_guard_prefix): New function.
6463         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
6464         ${gl_include_guard_prefix} references.
6465         (func_import, func_create_testdir): Invoke
6466         func_compute_include_guard_prefix.
6467         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
6468         * lib/ctype.in.h: Likewise.
6469         * lib/dirent.in.h: Likewise.
6470         * lib/errno.in.h: Likewise.
6471         * lib/fcntl.in.h: Likewise.
6472         * lib/float.in.h: Likewise.
6473         * lib/getopt.in.h: Likewise.
6474         * lib/iconv.in.h: Likewise.
6475         * lib/langinfo.in.h: Likewise.
6476         * lib/locale.in.h: Likewise.
6477         * lib/math.in.h: Likewise.
6478         * lib/netdb.in.h: Likewise.
6479         * lib/netinet_in.in.h: Likewise.
6480         * lib/poll.in.h: Likewise.
6481         * lib/pthread.in.h: Likewise.
6482         * lib/pty.in.h: Likewise.
6483         * lib/sched.in.h: Likewise.
6484         * lib/se-selinux.in.h: Likewise.
6485         * lib/search.in.h: Likewise.
6486         * lib/signal.in.h: Likewise.
6487         * lib/spawn.in.h: Likewise.
6488         * lib/stdarg.in.h: Likewise.
6489         * lib/stddef.in.h: Likewise.
6490         * lib/stdint.in.h: Likewise.
6491         * lib/stdio.in.h: Likewise.
6492         * lib/stdlib.in.h: Likewise.
6493         * lib/string.in.h: Likewise.
6494         * lib/strings.in.h: Likewise.
6495         * lib/sys_file.in.h: Likewise.
6496         * lib/sys_ioctl.in.h: Likewise.
6497         * lib/sys_select.in.h: Likewise.
6498         * lib/sys_socket.in.h: Likewise.
6499         * lib/sys_stat.in.h: Likewise.
6500         * lib/sys_time.in.h: Likewise.
6501         * lib/sys_times.in.h: Likewise.
6502         * lib/sys_uio.in.h: Likewise.
6503         * lib/sys_utsname.in.h: Likewise.
6504         * lib/sys_wait.in.h: Likewise.
6505         * lib/sysexits.in.h: Likewise.
6506         * lib/termios.in.h: Likewise.
6507         * lib/time.in.h: Likewise.
6508         * lib/unistd.in.h: Likewise.
6509         * lib/wchar.in.h: Likewise.
6510         * lib/wctype.in.h: Likewise.
6511         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
6512         * modules/ctype (Makefile.am): Likewise.
6513         * modules/dirent (Makefile.am): Likewise.
6514         * modules/errno (Makefile.am): Likewise.
6515         * modules/fcntl-h (Makefile.am): Likewise.
6516         * modules/float (Makefile.am): Likewise.
6517         * modules/getopt-posix (Makefile.am): Likewise.
6518         * modules/iconv-h (Makefile.am): Likewise.
6519         * modules/langinfo (Makefile.am): Likewise.
6520         * modules/locale (Makefile.am): Likewise.
6521         * modules/math (Makefile.am): Likewise.
6522         * modules/netdb (Makefile.am): Likewise.
6523         * modules/netinet_in (Makefile.am): Likewise.
6524         * modules/poll-h (Makefile.am): Likewise.
6525         * modules/pthread (Makefile.am): Likewise.
6526         * modules/pty (Makefile.am): Likewise.
6527         * modules/sched (Makefile.am): Likewise.
6528         * modules/search (Makefile.am): Likewise.
6529         * modules/selinux-h (Makefile.am): Likewise.
6530         * modules/signal (Makefile.am): Likewise.
6531         * modules/spawn (Makefile.am): Likewise.
6532         * modules/stdarg (Makefile.am): Likewise.
6533         * modules/stddef (Makefile.am): Likewise.
6534         * modules/stdint (Makefile.am): Likewise.
6535         * modules/stdio (Makefile.am): Likewise.
6536         * modules/stdlib (Makefile.am): Likewise.
6537         * modules/string (Makefile.am): Likewise.
6538         * modules/strings (Makefile.am): Likewise.
6539         * modules/sys_file (Makefile.am): Likewise.
6540         * modules/sys_ioctl (Makefile.am): Likewise.
6541         * modules/sys_select (Makefile.am): Likewise.
6542         * modules/sys_socket (Makefile.am): Likewise.
6543         * modules/sys_stat (Makefile.am): Likewise.
6544         * modules/sys_time (Makefile.am): Likewise.
6545         * modules/sys_times (Makefile.am): Likewise.
6546         * modules/sys_uio (Makefile.am): Likewise.
6547         * modules/sys_utsname (Makefile.am): Likewise.
6548         * modules/sys_wait (Makefile.am): Likewise.
6549         * modules/sysexits (Makefile.am): Likewise.
6550         * modules/termios (Makefile.am): Likewise.
6551         * modules/time (Makefile.am): Likewise.
6552         * modules/unistd (Makefile.am): Likewise.
6553         * modules/wchar (Makefile.am): Likewise.
6554         * modules/wctype-h (Makefile.am): Likewise.
6555         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
6556
6557 2011-05-29  Bruno Haible  <bruno@clisp.org>
6558
6559         assert-h: Allow multiple gnulib generated replacements to coexist.
6560         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
6561
6562 2011-05-29  Bruno Haible  <bruno@clisp.org>
6563
6564         argp: Allow coexistence with strerror_r-posix module.
6565         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
6566         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
6567         by gnulib's <string.h> replacement), assume it has the POSIX signature,
6568         not the glibc signature.
6569
6570 2011-05-28  Bruno Haible  <bruno@clisp.org>
6571
6572         gnulib-tool: Alternative structure of testdirs, similar to --import.
6573         * gnulib-tool: New option --single-configure.
6574         (func_usage): Document it.
6575         (single_configure): New variable.
6576         (func_modules_transitive_closure_separately,
6577         func_modules_transitive_closure_separately,
6578         func_determine_use_libtests, func_modules_add_dummy_separately,
6579         func_modules_to_filelist_separately): New functions, extracted from
6580         func_import.
6581         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
6582         (func_import): Use the new functions.
6583         (func_create_testdir): Set final_modules. Handle $single_configure =
6584         true case.
6585
6586 2011-05-28  Bruno Haible  <bruno@clisp.org>
6587
6588         getloadavg: Remove an unreliable safety check.
6589         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
6590         getloadavg.c is in place.
6591         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
6592         Reported by Sam Steingold <sds@gnu.org>.
6593
6594 2011-05-28  Bruno Haible  <bruno@clisp.org>
6595
6596         doc: Cleanup yet another file produced by texinfo.tex.
6597         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
6598
6599 2011-05-28  Bruno Haible  <bruno@clisp.org>
6600
6601         Finish the conditional dependencies mechanism.
6602         * gnulib-tool: New option --no-conditional-dependencies.
6603         (func_usage): Document it. Don't mark --conditional-dependencies as
6604         experimental.
6605         (cond_dependencies): The possible values can now be true, false, empty.
6606         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
6607         (func_import): Store setting in gnulib-cache.m4 and read it from there.
6608         * doc/gnulib-tool.texi (Conditional dependencies): New section.
6609
6610 2011-05-28  Bruno Haible  <bruno@clisp.org>
6611
6612         doc: Use a recent texinfo.tex.
6613         * doc/Makefile (tex_opts): New variable.
6614         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
6615
6616 2011-05-28  Jim Meyering  <meyering@redhat.com>
6617
6618         intprops.h: adjust comment to match code change
6619         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
6620         only once, it *may* have side effects.  Also fix an unrelated typo.
6621         (_GL_INT_SIGNED): Likewise.
6622
6623 2011-05-26  Simon Josefsson  <simon@josefsson.org>
6624
6625         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
6626
6627 2011-05-26  Bruno Haible  <bruno@clisp.org>
6628
6629         mbsrchr: Avoid collision with system function on Interix.
6630         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
6631         Reported by Markus Duft <mduft@gentoo.org>.
6632
6633 2011-05-15  James Youngman  <jay@gnu.org>
6634
6635         getopt: for ambiguous options, enumerate the possibilities.
6636         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
6637         the ambiguous options when an ambiguous prefix is given. This was
6638         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
6639         glibc change was
6640         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
6641
6642 2011-05-25  Eric Blake  <eblake@redhat.com>
6643
6644         getcwd: work around mingw bug
6645         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
6646         * doc/posix-functions/getcwd.texi (getcwd): Document it.
6647         Reported by Matthias Bolte.
6648
6649 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
6650
6651         test-intprops: disable -Wtype-limits diagnostics
6652         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
6653         diagnostics.  Otherwise, the integer overflow macros generate many
6654         diagnostics.  Reported by Jim Meyering in
6655         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
6656
6657         intprops: shorten, to pacify gcc -Woverlength-strings
6658         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
6659         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
6660         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
6661         likely to run afoul of C compiler limits for string constant lengths.
6662         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
6663
6664 2011-05-24  Eric Blake  <eblake@redhat.com>
6665
6666         docs: document recently fixed glibc printf bug
6667         * doc/posix-functions/fprintf.texi (fprintf): Document it.
6668         * doc/posix-functions/printf.texi (printf): Likewise.
6669         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
6670         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6671
6672         closein-tests: convert to init.sh
6673         * modules/closein-tests (Files): Add init.sh
6674         * tests/test-closein.sh Use it.
6675
6676         yesno-tests: convert to init.sh
6677         * modules/yesno-tests (Files): Add init.sh.
6678         * tests/test-yesno.sh: Use it.
6679
6680         atexit-tests: ensure reliable exit status
6681         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
6682         Reported by Bruno Haible.
6683
6684 2011-05-24  Bruno Haible  <bruno@clisp.org>
6685
6686         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
6687         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
6688         gl_PREREQ_STRERROR_R invocations from here...
6689         * modules/strerror_r-posix (configure.ac): ... to here.
6690
6691 2011-05-24  Eric Blake  <eblake@redhat.com>
6692
6693         strerror_r: fix missing header
6694         * lib/strerror_r.c: Avoid compiler warning about snprintf.
6695
6696         strerror_r: fix AIX test failures
6697         * lib/strerror_r.c (strerror_r): Convert silent truncation to
6698         ERANGE failure.
6699
6700         strerror_r: fix Solaris test failures
6701         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
6702         failures.
6703         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6704
6705         strerror_r: enforce POSIX recommendations
6706         * lib/strerror_r.c (safe_copy): New helper method.
6707         (strerror_r): Guarantee a non-empty string.
6708         * tests/test-strerror_r.c (main): Enhance tests to incorporate
6709         recent POSIX rulings and to match our strerror guarantees.
6710         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6711
6712 2011-05-24  Jim Meyering  <meyering@redhat.com>
6713
6714         test-perror2.c: avoid warning about unused variable
6715         * tests/test-perror2.c (main): Remove declaration of unused "fp".
6716
6717 2011-05-24  Eric Blake  <eblake@redhat.com>
6718
6719         perror: avoid spurious test failure on HP-UX
6720         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
6721
6722         tests: fix logic bug in init.sh
6723         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
6724         shell.
6725
6726 2011-05-24  Jim Meyering  <meyering@redhat.com>
6727
6728         utimensat: do not reference an out-of-scope buffer
6729         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
6730         declared in an inner scope, yet "times" would be dereferenced outside
6731         the scope in which "ts" was valid.
6732         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
6733         of ts[2] "out/up", so that the use of aliased "times" (via
6734         "times = ts;") does not end up referencing an out-of-scope "ts"
6735
6736         opendir-safer.c: don't clobber errno; don't close negative FD
6737         * lib/opendir-safer.c (opendir_safer):
6738         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
6739         file descriptor, and more importantly, don't clobber the
6740         offending errno value with EINVAL.  Before, upon failure
6741         of dup_safer, we would pass the negative file descriptor to
6742         fdopendir, which would clobber errno.
6743
6744 2011-05-23  Bruno Haible  <bruno@clisp.org>
6745
6746         idcache: Fix module description.
6747         * modules/idcache (Include): Set to "idcache.h".
6748
6749 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6750
6751         gnulib-tool: fix portability problem with MacOS sed
6752         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
6753         before the "}".  Problem reported by Leo in
6754         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
6755         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
6756         sed_extract_condition1, sed_extract_condition2.
6757
6758 2011-05-23  Bruno Haible  <bruno@clisp.org>
6759
6760         hash: Simplify autoconf macro.
6761         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
6762
6763 2011-05-23  Bruno Haible  <bruno@clisp.org>
6764
6765         getugroups: Fix module description.
6766         * modules/getugroups (Include): Set to "getugroups.h".
6767
6768 2011-05-23  Bruno Haible  <bruno@clisp.org>
6769
6770         linkat: Simplify autoconf macro.
6771         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
6772
6773 2011-05-23  Bruno Haible  <bruno@clisp.org>
6774             Eric Blake  <eblake@redhat.com>
6775
6776         linkat, renameat: Update dependencies.
6777         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
6778         * modules/linkat (Depends-on): Likewise. Remove also readlink,
6779         symlinkat.
6780
6781 2011-05-23  Jim Meyering  <meyering@redhat.com>
6782
6783         maint.mk: more tight_scope improvements
6784         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
6785         (_gl_TS_headers): Define only in if-0'd block.
6786         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
6787         sometimes we must *not* use it.  Adjust uses accordingly.
6788         (sc_tight_scope): Use much simpler grep-based test to determine
6789         whether we skip this rule.
6790
6791         maint.mk: generalize/improve the tight-scope rule
6792         * top/maint.mk: Emit a warning when the test is skipped.
6793         (_gl_TS_dir): Add $(srcdir)/ prefix.
6794         (_gl_TS_function_match): Simplify, rather than trying
6795         to enumerate common types.  Otherwise, it would fail to match an
6796         "extern unsigned char const *" declaration in idutils.
6797         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
6798         a way to support use of that type of macro.
6799         (_gl_TS_var_match): Simplify regexp.
6800         (_gl_TS_obj_files): New configurable variable.
6801         (_gl_TS_headers): Likewise.
6802
6803 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
6804
6805         verify: fix bug when gnulib <assert.h> is also included
6806         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
6807         is defined, not if _GL_STATIC_ASSERT_H is not defined.
6808         Perhaps there's a better way, but this fixes the immediate problem.
6809         Problem reported by Bruno Haible in
6810         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
6811
6812 2011-05-22  Bruno Haible  <bruno@clisp.org>
6813
6814         xgetcwd: Simplify autoconf macro.
6815         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
6816
6817 2011-05-22  Bruno Haible  <bruno@clisp.org>
6818
6819         New module 'mktime-internal'.
6820         * modules/mktime-internal: New file.
6821         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
6822         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
6823         mktime_internal as a C macro if libc has __mktime_internal.
6824         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
6825         conditions.
6826         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
6827
6828 2011-05-22  Bruno Haible  <bruno@clisp.org>
6829
6830         timegm: Correct mktime replacement statements.
6831         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
6832         defining mktime as a C macro. This completes a 2009-07-28 commit.
6833
6834 2011-05-22  Bruno Haible  <bruno@clisp.org>
6835
6836         timegm: Simplify autoconf macro.
6837         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
6838
6839 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
6840
6841         clock-time: change to LGPLv2+.
6842         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
6843         BSD-like but we have no mark for that; this is good enough for now.
6844
6845 2011-05-21  Bruno Haible  <bruno@clisp.org>
6846
6847         strerror_r: Fix comments.
6848         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
6849
6850 2011-05-21  Bruno Haible  <bruno@clisp.org>
6851
6852         relocatable-prog-wrapper: Fix possible link error.
6853         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
6854         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
6855         (gl_FUNC_SETENV): ... to here.
6856         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
6857         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
6858
6859 2011-05-21  Bruno Haible  <bruno@clisp.org>
6860
6861         relocatable-prog-wrapper: Assume strerror() exists.
6862         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
6863         m4/strerror.m4.
6864         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
6865         * lib/relocwrapper.c: Remove mention of strerror module.
6866         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
6867         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
6868         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
6869         C macro.
6870
6871 2011-05-21  Bruno Haible  <bruno@clisp.org>
6872
6873         select: Simplify replacement idiom.
6874         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
6875         Win32 platforms.
6876         * lib/sys_select.in.h (select): Simplify accordingly.
6877         * modules/select (Depends-on): Likewise.
6878
6879 2011-05-21  Bruno Haible  <bruno@clisp.org>
6880
6881         mkdir-p: Simplify autoconf macro.
6882         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
6883         gl_FUNC_LCHOWN.
6884
6885 2011-05-21  Eric Blake  <eblake@redhat.com>
6886
6887         strerror_r: avoid clobbering strerror on cygwin
6888         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
6889         fall back instead to sys_errlist.
6890         * modules/strerror (configure.ac): Add witness.
6891         * tests/test-strerror_r.c (main): Enhance test.
6892         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6893         * tests/test-perror2.c (main): Free memory before exit.
6894
6895 2011-05-21  Bruno Haible  <bruno@clisp.org>
6896
6897         mkdtemp: Use gnulib naming conventions.
6898         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
6899         * modules/mkdtemp (configure.ac): Update.
6900
6901 2011-05-20  Eric Blake  <eblake@redhat.com>
6902
6903         strerror_r: avoid corrupting errno on Solaris
6904         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
6905         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6906
6907         strerror_r: avoid compiler warning
6908         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
6909
6910         strerror_r: simplify AIX code
6911         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
6912
6913         test-perror: avoid spurious failure on FreeBSD
6914         * modules/perror-tests (Depends-on): Add strerror, now that
6915         strerror_r no longer pulls it in.
6916
6917 2011-05-20  Bruno Haible  <bruno@clisp.org>
6918
6919         strerror_r-posix: Remove unused dependencies.
6920         * modules/strerror_r-posix (Depends-on): Remove strerror.
6921         Reported by Eric Blake.
6922
6923 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
6924
6925         intprops: remove assumption about A|B representation
6926         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
6927         is a valid integer if both A and B are.  Although this is true for
6928         all known practical hosts, the C standard doesn't guarantee it,
6929         and the code need not assume it.  Also, this change may work around
6930         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
6931         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
6932
6933 2011-05-20  Eric Blake  <eblake@redhat.com>
6934
6935         perror: work around FreeBSD bug
6936         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
6937         is broken.  Move AC_LIBOBJ...
6938         * modules/perror (configure.ac): Here.
6939         * doc/posix-functions/perror.texi (perror): Document this.
6940         * tests/test-perror2.c (main): Enhance test.
6941
6942         test-perror: check for strerror interactions
6943         * tests/macros.h (STREQ): Add macro.
6944         * modules/perror-tests (Files): Add second test.
6945         * tests/test-perror2.c (main): New file.
6946         * doc/posix-functions/perror.texi (perror): Document glibc bug.
6947
6948         test-perror: rewrite to use init script
6949         * modules/perror-tests (Files): Add init.sh.
6950         * tests/test-perror.sh: Use temporary directory.
6951
6952 2011-05-20  Jim Meyering  <meyering@redhat.com>
6953
6954         maint: replace misused "a" with "an"
6955         * doc/intprops.texi: "a integer"
6956         * doc/regex.texi: "a explanation"
6957         * lib/alignof.h: "a object"
6958         * lib/argmatch.h: "a explanation"
6959         * lib/argp-help.c: "a option" and "a OPTION_DOC"
6960         * lib/stdint.in.h: "a integer"
6961         * lib/userspec.c: "a owner"
6962         * doc/gnulib.texi: Fix "a idea", and reword.
6963
6964 2011-05-19  Jim Meyering  <meyering@redhat.com>
6965
6966         maint: correct misuse of "a" and "an"
6967         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
6968         * lib/argp-help.c: "an docum...": s/an/a/
6969         * lib/argp-parse.c: "An vector": s/An/A/
6970         * lib/execute.c: "an native": s/an/a/
6971         * lib/spawn-pipe.c: Likewise.
6972         * lib/gc.h: "an Gc_rc": s/an/a/
6973         * lib/unigbrk.in.h: "an grapheme": s/an/a/
6974         * lib/fts.c: "an stat.st_dev": s/an/a/
6975
6976 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6977
6978         intprops-tests: work around HP-UX 11.23 cc bug with constants
6979         * tests/test-intprops.c (VERIFY): New macro.
6980         (main): Use it, instead of verify, to work around the compiler bug; see
6981         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6982
6983         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
6984         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
6985         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
6986         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
6987         (_GL_REMAINDER_OVERFLOW): Use it.
6988
6989         intprops-tests: revert unsigned part of previous change
6990         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
6991         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
6992         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
6993         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
6994
6995 2011-05-19  Bruno Haible  <bruno@clisp.org>
6996
6997         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
6998         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
6999         strerror_r() returned without filling the buffer.
7000         Reported by Eric Blake.
7001
7002 2011-05-19  Eric Blake  <eblake@redhat.com>
7003
7004         strerror_r: guarantee unchanged errno
7005         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
7006         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
7007         failure.
7008         * tests/test-strerror_r.c (main): Enhance test.
7009
7010 2011-05-19  Bruno Haible  <bruno@clisp.org>
7011
7012         strerror_r: Reorder #if blocks.
7013         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
7014         for consistency with the previous commit.
7015
7016 2011-05-19  Bruno Haible  <bruno@clisp.org>
7017
7018         perror: Avoid clobbering the strerror buffer when possible.
7019         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
7020         * lib/strerror.c: Include it.
7021         * modules/strerror (Files): Add lib/strerror-impl.h.
7022         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
7023         (my_strerror): New function, defined through lib/strerror-impl.h.
7024         (perror): Use it instead of strerror.
7025         * modules/perror (Files): Add lib/strerror-impl.h.
7026         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
7027
7028 2011-05-19  Eric Blake  <eblake@redhat.com>
7029
7030         strerror_r: fix on newer cygwin
7031         * lib/strerror_r.c (strerror_r): Cygwin now has
7032         __xpg_strerror_r, use it.
7033
7034 2011-05-19  Bruno Haible  <bruno@clisp.org>
7035
7036         strerror_r: Avoid clobbering the strerror buffer when possible.
7037         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
7038         (sys_nerr, sys_errlist): New declarations.
7039         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
7040         HP-UX, native Win32, IRIX, and 32-bit Solaris.
7041         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
7042
7043 2011-05-19  Bruno Haible  <bruno@clisp.org>
7044
7045         strerror_r: Fix test failure on mingw.
7046         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
7047         EXTEND_STRERROR_R.
7048         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
7049         macros from errno.in.h instead.
7050
7051 2011-05-19  Eric Blake  <eblake@redhat.com>
7052
7053         strerror: relax test for Solaris
7054         * tests/test-strerror.c (main): Permit Solaris behavior.
7055         * tests/test-strerror_r.c (main): Likewise.
7056
7057         strerror: enforce POSIX ruling on strerror(0)
7058         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
7059         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
7060         * lib/strerror_r.c (rpl_strerror_r): Work around it.
7061         * doc/posix-functions/strerror.texi (strerror): Document it.
7062         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
7063         * tests/test-strerror.c (main): Strengthen test.
7064         * tests/test-strerror_r.c (main): Likewise.
7065
7066 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7067
7068         intprop-tests: port to older and more-pedantic compilers
7069         * modules/intprops-tests (Files): Add tests/macros.h.
7070         * tests/test-intprops.c: Include macros.h.
7071         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
7072         it's no longer documented to expand to an integer constant expression.
7073         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
7074         argument is floating point, as it's no longer documented to expand
7075         to an integer constant expression in that case.
7076         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
7077         compiler bugs reported by Bruno Haible.  See
7078         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7079         (U0, U1): New constants, to work around the same bugs.  Also,
7080         in tests, use e.g., "(unsigned int) 39" rather than "39u".
7081
7082         intprops: work around C compiler bugs
7083         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
7084         bug in Sun C 5.11 2010/08/13 and other compilers; see
7085         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7086
7087         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
7088         * doc/intprops.texi (Integer Type Determination): Fix
7089         documentation for TYPE_IS_INTEGER: it returns an constant
7090         expression, not an integer constant expression.  Fix doc for
7091         TYPE_SIGNED: it returns an integer constant expression only if its
7092         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
7093         hardly worth documented that way....)
7094
7095 2011-05-18  Bruno Haible  <bruno@clisp.org>
7096
7097         strerror_r: Avoid clobbering the strerror buffer when possible.
7098         * lib/strerror_r.c (strerror_r): Merge the three implementations.
7099         Handle gnulib defined errno values here. When strerror() returns NULL
7100         or an empty string, return EINVAL.
7101         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
7102         gnulib defined errno values here.
7103         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
7104
7105 2011-05-18  Eric Blake  <eblake@redhat.com>
7106
7107         fnmatch: avoid compiler warning
7108         * lib/fnmatch_loop.c (FCT): Use correct type.
7109         Reported by Matthias Bolte.
7110
7111 2011-05-13  Jim Meyering  <meyering@redhat.com>
7112
7113         maint.mk: three new prohibit_<HDR>_without_use rules
7114         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
7115         (sc_prohibit_stdio-safer_without_use): Likewise.
7116         (sc_prohibit_xfreopen_without_use): Likewise.
7117
7118 2011-05-17  Jim Meyering  <meyering@redhat.com>
7119
7120         announce-gen: fail if the NEWS delta is empty
7121         If there's nothing noteworthy in NEWS, then either you forgot
7122         or you shouldn't be releasing.
7123         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
7124
7125 2011-05-17  Pádraig Brady <P@draigBrady.com>
7126
7127         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
7128         reserved symbols starting with double underscore from the check.
7129
7130 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
7131
7132         intprops: add doc
7133         * doc/intprops.texi: New file, documenting intprops.
7134         * doc/gnulib.texi (Particular Modules): Include it.
7135
7136         verify: add doc to gnulib manual and fix example
7137         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
7138         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
7139         (Compile-time Assertions): Fix example so it can't overflow.
7140
7141 2011-05-17  Jim Meyering  <meyering@redhat.com>
7142
7143         warnings.m4: don't usurp save_CPPFLAGS variable name
7144         * m4/warnings.m4: Prefix local temporary variable name with gl_.
7145
7146         doc: fix typo
7147         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
7148
7149 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7150             Bruno Haible  <bruno@clisp.org>
7151
7152         doc: Tweak recent change.
7153         * README (Portability guidelines): Tweak new text.
7154         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
7155         Interix 6.1.
7156
7157 2011-05-16  Eric Blake  <eblake@redhat.com>
7158
7159         inttypes: avoid autoconf warning
7160         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
7161         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7162
7163 2011-05-16  Sam Steingold <sds@gnu.org>
7164         and Eric Blake  <eblake@redhat.com>
7165
7166         vc-list-files: accept multiple directory operands
7167         * build-aux/vc-list-files: Iterate over all remaining operands.
7168
7169 2011-05-16  Bruno Haible  <bruno@clisp.org>
7170
7171         Fix confusion regarding deprecated modules.
7172         * modules/calloc (Status, Notice): Mark module as deprecated, not
7173         obsolete.
7174         * modules/fnmatch-posix (Status, Notice): Likewise.
7175         * modules/getdate (Status, Notice): Likewise.
7176         * modules/getopt (Status, Notice): Likewise.
7177         * modules/malloc (Status, Notice): Likewise.
7178         * modules/pipe (Status, Notice): Likewise.
7179         * modules/realloc (Status, Notice): Likewise.
7180         * modules/rename-dest-slash (Status, Notice): Likewise.
7181         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
7182         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
7183         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
7184         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
7185         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
7186
7187 2011-05-16  Bruno Haible  <bruno@clisp.org>
7188
7189         doc: List the target platforms.
7190         * doc/gnulib-intro.texi (Target Platforms): New section.
7191         * doc/gnulib.texi (Introduction): Update menu.
7192         * README (Portability guidelines): Refer to the new section. Update
7193         statement about oldest supported environment. Remove rationale why
7194         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
7195         unportable C89 function.
7196         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
7197         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
7198
7199 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7200
7201         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
7202
7203 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
7204
7205         intprops-tests: new module
7206         * modules/intprops-tests, tests/test-intprops.c: New files.
7207
7208         intprops: add safe, portable integer overflow checking
7209         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
7210         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
7211         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
7212         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
7213         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
7214         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
7215         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
7216         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
7217         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
7218         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
7219         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
7220
7221 2011-05-12  James Youngman  <jay@gnu.org>
7222
7223         Add a test for glibc's Bugzilla bug #12378.
7224         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
7225         doesn't allow the literal matching of a lone "[" (which is
7226         required by POSIX).
7227         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
7228
7229 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
7230
7231         Sync glibc change fixing Bugzilla bug #12378.
7232         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
7233         beginning and fall back to matching as normal character if the
7234         string ends before the matching ']' is found.  This is what POSIX
7235         requires.
7236
7237 2011-05-13  Eric Blake  <eblake@redhat.com>
7238
7239         getcwd-lgpl: relax test for FreeBSD
7240         * doc/posix-functions/getcwd.texi (getcwd): Document portability
7241         issue.
7242         * tests/test-getcwd-lgpl.c (main): Relax test.
7243         Reported by Matthias Bolte.
7244
7245 2011-05-11  Eric Blake  <eblake@redhat.com>
7246
7247         test-fflush: silence compiler warning
7248         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
7249
7250 2011-05-11  Bruno Haible  <bruno@clisp.org>
7251
7252         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
7253         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
7254         * modules/canonicalize (Depends-on): Add 'nocrash'.
7255         * modules/canonicalize-lgpl (Depends-on): Likewise.
7256         * doc/posix-functions/realpath.texi: Update platforms list.
7257         Reported by Ryan Schmidt <ryandesign@macports.org>.
7258
7259 2011-05-11  Bruno Haible  <bruno@clisp.org>
7260
7261         group-member: Declare function in <unistd.h>.
7262         * lib/unistd.in.h (group_member): New declaration.
7263         * lib/group-member.h: Remove file.
7264         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
7265         * tests/test-unistd-c++.cc: Check signature of group_member.
7266         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
7267         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
7268         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
7269         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
7270         HAVE_GROUP_MEMBER.
7271         * modules/group-member (Files): Remove lib/group-member.h.
7272         (Depends-on): Add unistd. Specify conditions.
7273         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
7274         (Include): Change to <unistd.h>.
7275         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
7276         HAVE_GROUP_MEMBER.
7277         * NEWS: Mention the change.
7278         * lib/euidaccess.c: Don't include group-member.h.
7279
7280 2011-05-11  Bruno Haible  <bruno@clisp.org>
7281
7282         group-member: Document module.
7283         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
7284         module.
7285
7286 2011-05-11  Bruno Haible  <bruno@clisp.org>
7287
7288         fclose: Fix mistake earlier today.
7289         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
7290
7291 2011-05-11  Eric Blake  <eblake@redhat.com>
7292
7293         fclose: preserve fflush errors
7294         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
7295         Reported by Jim Meyering.
7296
7297         bootstrap: support a prereq of 'rpcgen -' on RHEL5
7298         * build-aux/bootstrap (check_versions): When no specific version
7299         is required, merely check that the app produces an exit status
7300         that indicates its existence.
7301
7302         maint.mk: drop redundant check
7303         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
7304         the same but better.
7305
7306 2011-05-11  Bruno Haible  <bruno@clisp.org>
7307
7308         fclose: Fix possible link error.
7309         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
7310         unregister_shadow_fd. Improve comments.
7311         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
7312         Eric Blake.
7313
7314 2011-05-11  Jim Meyering  <meyering@redhat.com>
7315
7316         maint.mk: improve "can not" detection and generalize rule name
7317         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
7318         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
7319         Use the same technique as in sc_prohibit_doubled_word, so that
7320         we recognize "can not" also when the words are separated by a newline.
7321         Suggested by Eric Blake.
7322         (perl_filename_lineno_text_): Define.  Factored out of...
7323         (prohibit_doubled_word_): ...here.  Use the new definition.
7324         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
7325         (prohibit_undesirable_word_seq_RE_): New overridable variable.
7326         (ignore_undesirable_word_sequence_RE_): New overridable variable.
7327
7328 2011-05-10  Eric Blake  <eblake@redhat.com>
7329
7330         fclose: avoid double close race when possible
7331         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
7332         all but WINDOWS_SOCKETS.
7333
7334 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
7335
7336         openat: correct new comment
7337         * lib/openat-proc.c (openat_proc_name): Correct the comment.
7338
7339 2011-05-10  Jim Meyering  <meyering@redhat.com>
7340
7341         openat: add comments
7342         * lib/openat-proc.c (openat_proc_name): Add comments,
7343         mostly from Eric Blake.
7344
7345 2011-05-09  Eric Blake  <eblake@redhat.com>
7346
7347         openat: reduce syscalls in first probe of /proc
7348         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
7349         be a directory.  Simplify the probe for .. bugs.
7350         * modules/openat (Depends-on): Drop same-inode.
7351         Reported by Bastien ROUCARIES.
7352
7353 2011-05-09  Jim Meyering  <meyering@redhat.com>
7354
7355         maint.mk: change semantics/name of tight_scope variables
7356         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
7357         Rename variables to align with semantics that make them more useful.
7358
7359         maint.mk: tweak new rule's name not to impinge
7360         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
7361         (sc_tight_scope): Use new rule name rather than $@-0.
7362
7363         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
7364         * top/maint.mk (sc_tight_scope): New rule.
7365         (sc_tight_scope-0): New rule, ifdef'd out.
7366         (_gl_TS_dir): Default.
7367         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
7368         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
7369
7370 2011-05-09  Simon Josefsson  <simon@josefsson.org>
7371
7372         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
7373         Haible <bruno@clisp.org>.
7374
7375 2011-05-08  Bruno Haible  <bruno@clisp.org>
7376
7377         Comments.
7378         * m4/isnanf.m4: Add comment.
7379         * m4/isnanl.m4: Likewise.
7380
7381 2011-05-08  Bruno Haible  <bruno@clisp.org>
7382
7383         glob: Remove obsolete macro.
7384         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
7385
7386 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
7387
7388         intprops: Sun C 5.11 supports __typeof__
7389         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
7390         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
7391         which is new.
7392         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
7393
7394         intprops: switch to usual gnulib indenting and naming
7395         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
7396         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
7397
7398         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
7399
7400 2011-05-08  Jim Meyering  <meyering@redhat.com>
7401
7402         maint.mk: suppress "Entering/Leaving directory" diag in announcement
7403         * top/maint.mk (release-prep): Use make's --no-print-directory
7404         option when generating the announcement.  This eliminates the
7405         pesky "make[2]: Entering/Leaving directory" diagnostics in the
7406         generated announcement template.
7407
7408 2011-05-08  Bruno Haible  <bruno@clisp.org>
7409
7410         tzset: Fix gettimeofday wrapper on Solaris 2.6.
7411         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
7412         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
7413
7414 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
7415
7416         ignore-value, verify: Omit include files from lib_SOURCES.
7417         * modules/ignore-value, modules/verify (Makefile.am):
7418         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
7419         that leads Automake to duplicate use of am__objects_... variables
7420         in Makefile.in.  See
7421         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
7422
7423 2011-05-07  Bruno Haible  <bruno@clisp.org>
7424
7425         fclose: Simplify autoconf macro.
7426         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
7427         defined.
7428
7429 2011-05-07  Bruno Haible  <bruno@clisp.org>
7430
7431         canonicalize-lgpl: Fix autoconf macro ordering bug.
7432         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
7433         gl_STDLIB_H_DEFAULTS.
7434
7435 2011-05-06  Eric Blake  <eblake@redhat.com>
7436
7437         maintainer-makefile: make sc_po_check easier to tune
7438         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
7439         to probe for strings, such as an alternate location for gnulib.
7440
7441         fclose: guarantee behavior on seekable stdin
7442         * modules/fclose (Depends-on): Add fflush.
7443         * doc/posix-functions/fclose.texi (fclose): Document this.
7444         * tests/test-fclose.c (main): Make test for this unconditional.
7445
7446 2011-05-06  Bruno Haible  <bruno@clisp.org>
7447
7448         fflush, fpurge: Relicense under LGPLv2+.
7449         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
7450         * modules/fpurge (License): Likewise.
7451         With permission from Eric Blake and Jim Meyering.
7452         Suggested by Eric Blake.
7453
7454 2011-05-06  Karl Berry  <karl@gnu.org>
7455
7456         * MODULES.html.sh (func_all_modules): remove exit.
7457
7458 2011-05-06  Jim Meyering  <meyering@redhat.com>
7459
7460         maint.mk: use info-gnu@ as the default only for a stable release
7461         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
7462         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
7463         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
7464         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
7465
7466 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
7467
7468         assert-h: new module, which supports C1X-style static_assert
7469         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
7470         * lib/verify.h: Revamp so that this can be copied into assert.h,
7471         while retaining the ability to use it standalone as before.
7472         Rename private identifiers so as not to encroach on the
7473         standard C namespace, since this is now used by assert.h.
7474         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
7475         the old verify_true.
7476         (_GL_VERIFY_TRUE): New macro, with much of the contents of
7477         the old verify_true.  Use _GL_VERIFY_TYPE.
7478         (_GL_VERIFY): New macro, with much of the contents of the old verify.
7479         (static_assert): New macro, if _GL_STATIC_ASSERT_H
7480         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
7481         defined when this file is copied into the replacement assert.h.
7482         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
7483         and _Static_assert is not built in.
7484         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
7485         defined, and use the new macros mentioned above.
7486         * doc/posix-headers/assert.texi: Document this.
7487
7488 2011-05-05  Bruno Haible  <bruno@clisp.org>
7489
7490         fclose, fflush: Respect rules for use of AC_LIBOBJ.
7491         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
7492         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
7493         gl_REPLACE_FCLOSE here.
7494         * modules/fflush (Depends-on): Remove fclose.
7495         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
7496         combination with module 'fclose'.
7497
7498 2011-05-05  Bruno Haible  <bruno@clisp.org>
7499
7500         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
7501         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
7502         gl_FUNC_FFLUSH.
7503         (gl_FUNC_FFLUSH): Use it.
7504         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
7505         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
7506         gl_REPLACE_FSEEKO here.
7507
7508 2011-05-05  Bruno Haible  <bruno@clisp.org>
7509
7510         tzset: Relicense under LGPL.
7511         * modules/tzset (License): Change to LGPL.
7512         No agreement needed; it's a no-op.
7513
7514         strtoimax, strtoumax: Relicense under LGPL.
7515         * modules/strtoimax (License): Change to LGPL.
7516         * modules/strtoumax (License): Likewise.
7517         With permission from Jim Meyering, Paul Eggert:
7518         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
7519         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
7520
7521         getgroups: Relicense under LGPL.
7522         * modules/getgroups (License): Change to LGPL.
7523         With permission from Jim Meyering, Paul Eggert, Eric Blake:
7524         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
7525         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
7526         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7527
7528         nanosleep: Relicense under LGPL.
7529         * modules/nanosleep (License): Change to LGPL.
7530         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
7531         Haible:
7532         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
7533         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
7534         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7535         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
7536
7537         futimens: Relicense under LGPL.
7538         * modules/futimens (License): Change to LGPL.
7539         With permission from Eric Blake:
7540         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7541
7542         fflush: Relicense under LGPL.
7543         * modules/fflush (License): Change to LGPL.
7544         With permission from Eric Blake, Bruno Haible, Jim Meyering:
7545         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7546         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
7547         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
7548
7549         tmpfile: Relicense under LGPL.
7550         * modules/tmpfile (License): Change to LGPL.
7551         With permission from Ben Pfaff:
7552         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
7553
7554         isfinite: Relicense under LGPL.
7555         * modules/isfinite (License): Change to LGPL.
7556         With permission from Ben Pfaff, Bruno Haible:
7557         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
7558         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
7559
7560         acosl..tanl: Relicense under LGPL.
7561         * modules/acosl (License): Change to LGPL.
7562         * modules/asinl (License): Likewise.
7563         * modules/atanl (License): Likewise.
7564         * modules/cosl (License): Likewise.
7565         * modules/expl (License): Likewise.
7566         * modules/logl (License): Likewise.
7567         * modules/sinl (License): Likewise.
7568         * modules/sqrtl (License): Likewise.
7569         * modules/tanl (License): Likewise.
7570         Source code originally from glibc and Paolo Bonzini. Agreements:
7571         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
7572         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
7573
7574 2011-05-05  Bruno Haible  <bruno@clisp.org>
7575
7576         signal: Define sighandler_t.
7577         * lib/signal.in.h (sighandler_t): New type.
7578         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
7579         whether sighandler_t is defined.
7580         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
7581         * modules/signal (Depends-on): Add extensions.
7582         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
7583         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
7584         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
7585
7586 2011-05-05  Eric Blake  <eblake@redhat.com>
7587
7588         maint: remove useless REPLACE_*_H macros
7589         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
7590         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
7591         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
7592         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
7593         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
7594         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
7595         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
7596         * m4/btowc.m4: Update callers.
7597         * m4/dirfd.m4: Likewise.
7598         * m4/duplocale.m4: Likewise.
7599         * m4/fchdir.m4: Likewise.
7600         * m4/fdopendir.m4: Likewise.
7601         * m4/inet_ntop.m4: Likewise.
7602         * m4/inet_pton.m4: Likewise.
7603         * m4/ioctl.m4: Likewise.
7604         * m4/mbrlen.m4: Likewise.
7605         * m4/mbrtowc.m4: Likewise.
7606         * m4/mbsinit.m4: Likewise.
7607         * m4/mbsnrtowcs.m4: Likewise.
7608         * m4/mbsrtowcs.m4: Likewise.
7609         * m4/poll.m4: Likewise.
7610         * m4/setlocale.m4: Likewise.
7611         * m4/wcrtomb.m4: Likewise.
7612         * m4/wcsnrtombs.m4: Likewise.
7613         * m4/wcsrtombs.m4: Likewise.
7614         * m4/wctob.m4: Likewise.
7615         * m4/wcwidth.m4: Likewise.
7616         * modules/posix_spawn: Likewise.
7617         * modules/posix_spawn_file_actions_addclose: Likewise.
7618         * modules/posix_spawn_file_actions_adddup2: Likewise.
7619         * modules/posix_spawn_file_actions_addopen: Likewise.
7620         * modules/posix_spawn_file_actions_destroy: Likewise.
7621         * modules/posix_spawn_file_actions_init: Likewise.
7622         * modules/posix_spawnattr_destroy: Likewise.
7623         * modules/posix_spawnattr_getflags: Likewise.
7624         * modules/posix_spawnattr_getpgroup: Likewise.
7625         * modules/posix_spawnattr_getschedparam: Likewise.
7626         * modules/posix_spawnattr_getschedpolicy: Likewise.
7627         * modules/posix_spawnattr_getsigdefault: Likewise.
7628         * modules/posix_spawnattr_getsigmask: Likewise.
7629         * modules/posix_spawnattr_init: Likewise.
7630         * modules/posix_spawnattr_setflags: Likewise.
7631         * modules/posix_spawnattr_setpgroup: Likewise.
7632         * modules/posix_spawnattr_setschedparam: Likewise.
7633         * modules/posix_spawnattr_setschedpolicy: Likewise.
7634         * modules/posix_spawnattr_setsigdefault: Likewise.
7635         * modules/posix_spawnattr_setsigmask: Likewise.
7636         * modules/posix_spawnp: Likewise.
7637
7638 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
7639
7640         Add option to do-release-commit-and-tag to specify branch.
7641         * build-aux/do-release-commit-and-tag: Add --branch.
7642
7643 2011-05-03  Bruno Haible  <bruno@clisp.org>
7644
7645         Avoid unnecessary compilation units, through conditional dependencies.
7646         * modules/accept (Depends-on): Add conditions to the dependencies.
7647         * modules/acosl (Depends-on): Likewise.
7648         * modules/argz (Depends-on): Likewise.
7649         * modules/asinl (Depends-on): Likewise.
7650         * modules/atanl (Depends-on): Likewise.
7651         * modules/atoll (Depends-on): Likewise.
7652         * modules/bind (Depends-on): Likewise.
7653         * modules/btowc (Depends-on): Likewise.
7654         * modules/canonicalize-lgpl (Depends-on): Likewise.
7655         * modules/ceil (Depends-on): Likewise.
7656         * modules/ceilf (Depends-on): Likewise.
7657         * modules/ceill (Depends-on): Likewise.
7658         * modules/chdir-long (Depends-on): Likewise.
7659         * modules/chown (Depends-on): Likewise.
7660         * modules/close (Depends-on): Likewise.
7661         * modules/connect (Depends-on): Likewise.
7662         * modules/cosl (Depends-on): Likewise.
7663         * modules/dirfd (Depends-on): Likewise.
7664         * modules/dprintf (Depends-on): Likewise.
7665         * modules/dprintf-posix (Depends-on): Likewise.
7666         * modules/error (Depends-on): Likewise.
7667         * modules/euidaccess (Depends-on): Likewise.
7668         * modules/expl (Depends-on): Likewise.
7669         * modules/faccessat (Depends-on): Likewise.
7670         * modules/fchdir (Depends-on): Likewise.
7671         * modules/fclose (Depends-on): Likewise.
7672         * modules/fcntl (Depends-on): Likewise.
7673         * modules/fdopendir (Depends-on): Likewise.
7674         * modules/fflush (Depends-on): Likewise.
7675         * modules/floor (Depends-on): Likewise.
7676         * modules/floorf (Depends-on): Likewise.
7677         * modules/floorl (Depends-on): Likewise.
7678         * modules/fnmatch (Depends-on): Likewise.
7679         * modules/fopen (Depends-on): Likewise.
7680         * modules/fprintf-posix (Depends-on): Likewise.
7681         * modules/frexp (Depends-on): Likewise.
7682         * modules/frexp-nolibm (Depends-on): Likewise.
7683         * modules/frexpl (Depends-on): Likewise.
7684         * modules/frexpl-nolibm (Depends-on): Likewise.
7685         * modules/fseek (Depends-on): Likewise.
7686         * modules/fsusage (Depends-on): Likewise.
7687         * modules/ftell (Depends-on): Likewise.
7688         * modules/ftello (Depends-on): Likewise.
7689         * modules/futimens (Depends-on): Likewise.
7690         * modules/getcwd (Depends-on): Likewise.
7691         * modules/getcwd-lgpl (Depends-on): Likewise.
7692         * modules/getdelim (Depends-on): Likewise.
7693         * modules/getdomainname (Depends-on): Likewise.
7694         * modules/getgroups (Depends-on): Likewise.
7695         * modules/gethostname (Depends-on): Likewise.
7696         * modules/getline (Depends-on): Likewise.
7697         * modules/getlogin_r (Depends-on): Likewise.
7698         * modules/getopt-posix (Depends-on): Likewise.
7699         * modules/getpeername (Depends-on): Likewise.
7700         * modules/getsockname (Depends-on): Likewise.
7701         * modules/getsockopt (Depends-on): Likewise.
7702         * modules/getsubopt (Depends-on): Likewise.
7703         * modules/getusershell (Depends-on): Likewise.
7704         * modules/glob (Depends-on): Likewise.
7705         * modules/grantpt (Depends-on): Likewise.
7706         * modules/iconv_open (Depends-on): Likewise.
7707         * modules/iconv_open-utf (Depends-on): Likewise.
7708         * modules/inet_ntop (Depends-on): Likewise.
7709         * modules/inet_pton (Depends-on): Likewise.
7710         * modules/ioctl (Depends-on): Likewise.
7711         * modules/isapipe (Depends-on): Likewise.
7712         * modules/isfinite (Depends-on): Likewise.
7713         * modules/isinf (Depends-on): Likewise.
7714         * modules/lchown (Depends-on): Likewise.
7715         * modules/ldexpl (Depends-on): Likewise.
7716         * modules/link (Depends-on): Likewise.
7717         * modules/linkat (Depends-on): Likewise.
7718         * modules/listen (Depends-on): Likewise.
7719         * modules/logl (Depends-on): Likewise.
7720         * modules/lstat (Depends-on): Likewise.
7721         * modules/mbrlen (Depends-on): Likewise.
7722         * modules/mbrtowc (Depends-on): Likewise.
7723         * modules/mbsinit (Depends-on): Likewise.
7724         * modules/mbsnrtowcs (Depends-on): Likewise.
7725         * modules/mbsrtowcs (Depends-on): Likewise.
7726         * modules/mbtowc (Depends-on): Likewise.
7727         * modules/memcmp (Depends-on): Likewise.
7728         * modules/mkdir (Depends-on): Likewise.
7729         * modules/mkdtemp (Depends-on): Likewise.
7730         * modules/mkfifo (Depends-on): Likewise.
7731         * modules/mkfifoat (Depends-on): Likewise.
7732         * modules/mknod (Depends-on): Likewise.
7733         * modules/mkostemp (Depends-on): Likewise.
7734         * modules/mkostemps (Depends-on): Likewise.
7735         * modules/mkstemp (Depends-on): Likewise.
7736         * modules/mkstemps (Depends-on): Likewise.
7737         * modules/mktime (Depends-on): Likewise.
7738         * modules/nanosleep (Depends-on): Likewise.
7739         * modules/open (Depends-on): Likewise.
7740         * modules/openat (Depends-on): Likewise.
7741         * modules/perror (Depends-on): Likewise.
7742         * modules/poll (Depends-on): Likewise.
7743         * modules/popen (Depends-on): Likewise.
7744         * modules/posix_spawn (Depends-on): Likewise.
7745         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
7746         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
7747         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
7748         * modules/posix_spawnp (Depends-on): Likewise.
7749         * modules/pread (Depends-on): Likewise.
7750         * modules/printf-posix (Depends-on): Likewise.
7751         * modules/ptsname (Depends-on): Likewise.
7752         * modules/putenv (Depends-on): Likewise.
7753         * modules/pwrite (Depends-on): Likewise.
7754         * modules/readline (Depends-on): Likewise.
7755         * modules/readlink (Depends-on): Likewise.
7756         * modules/readlinkat (Depends-on): Likewise.
7757         * modules/recv (Depends-on): Likewise.
7758         * modules/recvfrom (Depends-on): Likewise.
7759         * modules/regex (Depends-on): Likewise.
7760         * modules/remove (Depends-on): Likewise.
7761         * modules/rename (Depends-on): Likewise.
7762         * modules/renameat (Depends-on): Likewise.
7763         * modules/rmdir (Depends-on): Likewise.
7764         * modules/round (Depends-on): Likewise.
7765         * modules/roundf (Depends-on): Likewise.
7766         * modules/roundl (Depends-on): Likewise.
7767         * modules/rpmatch (Depends-on): Likewise.
7768         * modules/select (Depends-on): Likewise.
7769         * modules/send (Depends-on): Likewise.
7770         * modules/sendto (Depends-on): Likewise.
7771         * modules/setenv (Depends-on): Likewise.
7772         * modules/setlocale (Depends-on): Likewise.
7773         * modules/setsockopt (Depends-on): Likewise.
7774         * modules/shutdown (Depends-on): Likewise.
7775         * modules/sigaction (Depends-on): Likewise.
7776         * modules/signbit (Depends-on): Likewise.
7777         * modules/sigprocmask (Depends-on): Likewise.
7778         * modules/sinl (Depends-on): Likewise.
7779         * modules/sleep (Depends-on): Likewise.
7780         * modules/snprintf (Depends-on): Likewise.
7781         * modules/snprintf-posix (Depends-on): Likewise.
7782         * modules/socket (Depends-on): Likewise.
7783         * modules/sprintf-posix (Depends-on): Likewise.
7784         * modules/sqrtl (Depends-on): Likewise.
7785         * modules/stat (Depends-on): Likewise.
7786         * modules/strchrnul (Depends-on): Likewise.
7787         * modules/strdup-posix (Depends-on): Likewise.
7788         * modules/strerror (Depends-on): Likewise.
7789         * modules/strerror_r-posix (Depends-on): Likewise.
7790         * modules/strndup (Depends-on): Likewise.
7791         * modules/strnlen (Depends-on): Likewise.
7792         * modules/strptime (Depends-on): Likewise.
7793         * modules/strsep (Depends-on): Likewise.
7794         * modules/strsignal (Depends-on): Likewise.
7795         * modules/strstr-simple (Depends-on): Likewise.
7796         * modules/strtod (Depends-on): Likewise.
7797         * modules/strtoimax (Depends-on): Likewise.
7798         * modules/strtok_r (Depends-on): Likewise.
7799         * modules/strtoumax (Depends-on): Likewise.
7800         * modules/symlink (Depends-on): Likewise.
7801         * modules/symlinkat (Depends-on): Likewise.
7802         * modules/tanl (Depends-on): Likewise.
7803         * modules/tcgetsid (Depends-on): Likewise.
7804         * modules/tmpfile (Depends-on): Likewise.
7805         * modules/trunc (Depends-on): Likewise.
7806         * modules/truncf (Depends-on): Likewise.
7807         * modules/truncl (Depends-on): Likewise.
7808         * modules/uname (Depends-on): Likewise.
7809         * modules/unlink (Depends-on): Likewise.
7810         * modules/unlockpt (Depends-on): Likewise.
7811         * modules/unsetenv (Depends-on): Likewise.
7812         * modules/usleep (Depends-on): Likewise.
7813         * modules/utimensat (Depends-on): Likewise.
7814         * modules/vasprintf (Depends-on): Likewise.
7815         * modules/vdprintf (Depends-on): Likewise.
7816         * modules/vdprintf-posix (Depends-on): Likewise.
7817         * modules/vfprintf-posix (Depends-on): Likewise.
7818         * modules/vprintf-posix (Depends-on): Likewise.
7819         * modules/vsnprintf (Depends-on): Likewise.
7820         * modules/vsnprintf-posix (Depends-on): Likewise.
7821         * modules/vsprintf-posix (Depends-on): Likewise.
7822         * modules/wcrtomb (Depends-on): Likewise.
7823         * modules/wcscasecmp (Depends-on): Likewise.
7824         * modules/wcscspn (Depends-on): Likewise.
7825         * modules/wcsdup (Depends-on): Likewise.
7826         * modules/wcsncasecmp (Depends-on): Likewise.
7827         * modules/wcsnrtombs (Depends-on): Likewise.
7828         * modules/wcspbrk (Depends-on): Likewise.
7829         * modules/wcsrtombs (Depends-on): Likewise.
7830         * modules/wcsspn (Depends-on): Likewise.
7831         * modules/wcsstr (Depends-on): Likewise.
7832         * modules/wcstok (Depends-on): Likewise.
7833         * modules/wcswidth (Depends-on): Likewise.
7834         * modules/wctob (Depends-on): Likewise.
7835         * modules/wctomb (Depends-on): Likewise.
7836         * modules/wctype (Depends-on): Likewise.
7837         * modules/wcwidth (Depends-on): Likewise.
7838         * modules/write (Depends-on): Likewise.
7839
7840 2011-05-03  Bruno Haible  <bruno@clisp.org>
7841
7842         Support for conditional dependencies.
7843         * doc/gnulib.texi (Module description): Document the syntax of
7844         conditional dependencies.
7845         * gnulib-tool: New option --conditional-dependencies.
7846         (func_usage): Document it.
7847         (cond_dependencies): New variable.
7848         (func_get_automake_snippet_conditional,
7849         func_get_automake_snippet_unconditional): New functions, extracted from
7850         func_get_automake_snippet.
7851         (func_get_automake_snippet): Use them.
7852         (sed_first_32_chars): New variable.
7853         (func_module_shellfunc_name): New function.
7854         (func_module_shellvar_name): New function.
7855         (func_module_conditional_name): New function.
7856         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
7857         func_cond_module_condition): New functions.
7858         (func_modules_transitive_closure): Add support for conditional
7859         dependencies.
7860         (func_emit_lib_Makefile_am): For a conditional module, enclose the
7861         conditional automake snippet in an automake conditional.
7862         (func_emit_autoconf_snippets): Emit shell functions that contain the
7863         code for conditional modules.
7864         (func_import, func_create_testdir): Update specification.
7865
7866 2011-05-03  Eric Blake  <eblake@redhat.com>
7867
7868         test-getaddrinfo: report error information
7869         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
7870
7871 2011-05-03  Jim Meyering  <meyering@redhat.com>
7872
7873         bootstrap: avoid build failure when $GZIP is set
7874         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
7875         program name.  If defined at all, it is supposed to list gzip options.
7876         Reported by Alan Curry in http://debbugs.gnu.org/8609
7877
7878 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
7879
7880         readme-release: new module with release instructions
7881         * modules/readme-release: New module.
7882         * top/README-release: New file, from coreutils, grep, diffutils.
7883         * MODULES.html.sh (Support for maintaining and releasing): Add it.
7884
7885 2011-05-02  Eric Blake  <eblake@redhat.com>
7886
7887         fflush: also replace fclose when fixing fflush
7888         * modules/fflush (Depends-on): Add fclose.
7889         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
7890         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
7891         memstreams with no backing fd.
7892         * doc/posix-functions/fclose.texi (fclose): Document the use of
7893         fflush module to fix the bug.
7894         * tests/test-fclose.c (main): Relax test when fclose is used in
7895         isolation.
7896
7897         fclose: add some tests
7898         * modules/fclose-tests: New test module.
7899         * tests/test-fclose.c: New file.
7900         * doc/posix-functions/fclose.texi (fclose): Document the bug.
7901
7902         fclose: reduced dependencies
7903         * modules/fclose (Depends-on): Switch from fflush/fseeko to
7904         simpler lseek.
7905         * lib/fclose.c (rpl_fclose): Likewise.
7906         Reported by Simon Josefsson.
7907
7908         exit: drop remaining clients
7909         * modules/argmatch (Depends-on): Replace exit with stdlib.
7910         * modules/copy-file (Depends-on): Likewise.
7911         * modules/execute (Depends-on): Likewise.
7912         * modules/exitfail (Depends-on): Likewise.
7913         * modules/obstack (Depends-on): Likewise.
7914         * modules/pagealign_alloc (Depends-on): Likewise.
7915         * modules/pipe-filter-gi (Depends-on): Likewise.
7916         * modules/pipe-filter-ii (Depends-on): Likewise.
7917         * modules/savewd (Depends-on): Likewise.
7918         * modules/spawn-pipe (Depends-on): Likewise.
7919         * modules/wait-process (Depends-on): Likewise.
7920         * modules/xsetenv (Depends-on): Likewise.
7921         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
7922         * modules/git-merge-changelog (Depends-on): Likewise.
7923         * modules/long-options (Depends-on): Likewise.
7924         * modules/pt_chown (Depends-on): Likewise.
7925         * modules/sysexits (Depends-on): Likewise.
7926
7927         freading: relax license from LGPLv3+ to LGPLv2+
7928         * modules/freading (License): Relax LGPL version.
7929
7930 2011-05-02  Bruno Haible  <bruno@clisp.org>
7931
7932         fchdir: Remove unused dependencies.
7933         * modules/fchdir (Depends-on): Remove include_next.
7934
7935 2011-05-02  Bruno Haible  <bruno@clisp.org>
7936
7937         gnulib-tool: Refactor.
7938         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
7939         from func_emit_autoconf_snippets.
7940         (func_emit_autoconf_snippets): Use it.
7941
7942 2011-05-02  Simon Josefsson  <simon@josefsson.org>
7943
7944         * NEWS: Document removal of 'exit'.
7945         * modules/exit: Remove file.
7946
7947 2011-05-01  Bruno Haible  <bruno@clisp.org>
7948
7949         Update DEPENDENCIES.
7950         * DEPENDENCIES (gettext): Recommend the newest release.
7951         Reported by Simon Josefsson.
7952
7953 2011-05-01  Bruno Haible  <bruno@clisp.org>
7954
7955         gnulib-tool: Reduce code duplication.
7956         * gnulib-tool (func_emit_autoconf_snippets): New function.
7957         (func_import, func_create_testdir): Use it.
7958
7959 2011-04-30  Eric Blake  <eblake@redhat.com>
7960
7961         fclose: don't fail on non-seekable input stream
7962         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
7963         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
7964         since fflush is allowed to fail in that case.
7965
7966 2011-04-30  Bruno Haible  <bruno@clisp.org>
7967
7968         dup3: cleanup
7969         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
7970
7971 2011-04-30  Bruno Haible  <bruno@clisp.org>
7972
7973         netdb: Make it work in C++ mode.
7974         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
7975         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
7976         module.
7977         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
7978         gl_MODULE_INDICATOR_FOR_TESTS.
7979         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
7980         * modules/netdb-c++-tests: New file.
7981         * tests/test-netdb-c++.cc: New file.
7982
7983 2011-04-30  Bruno Haible  <bruno@clisp.org>
7984
7985         New modules 'vfscanf', 'vscanf'.
7986         * modules/vfscanf: New file.
7987         * modules/vscanf: New file.
7988         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
7989         here.
7990         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
7991         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
7992
7993 2011-04-30  Bruno Haible  <bruno@clisp.org>
7994
7995         passfd: Add comments.
7996         * lib/passfd.c: Add comments about platforms.
7997
7998 2011-04-30  Bruno Haible  <bruno@clisp.org>
7999
8000         sys_uio: Make <sys/uio.h> self-contained.
8001         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
8002         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
8003
8004 2011-04-30  Bruno Haible  <bruno@clisp.org>
8005
8006         sys_socket: Ensure 'struct iovec' definition.
8007         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
8008         <sys/socket.h>.
8009         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
8010
8011 2011-04-30  Bruno Haible  <bruno@clisp.org>
8012
8013         sys_uio: Protect definition of 'struct iovec'.
8014         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
8015         it as a C struct.
8016
8017 2011-04-30  Bruno Haible  <bruno@clisp.org>
8018
8019         manywarnings: fix indentation
8020         * m4/manywarnings.m4: Indent by 2 spaces consistently.
8021
8022 2011-04-30  Pádraig Brady <P@draigBrady.com>
8023
8024         manywarnings: add -Wno-missing-field-initializers if needed.
8025         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
8026         option if it's needed to allow initialization with { 0, }
8027
8028 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
8029
8030         announce-gen: cosmetic improvement
8031         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
8032
8033 2011-04-29  Jim Meyering  <meyering@redhat.com>
8034
8035         vc-list-files: indent with spaces, not TABs
8036         * build-aux/vc-list-files: Convert leading TABs to spaces,
8037         to match the style of most other files in gnulib.
8038
8039         announce-gen: indent with spaces, not TABs
8040         * build-aux/announce-gen: Convert all TABs to spaces, to match
8041         the style of most other files in gnulib.
8042
8043 2011-04-29  Eric Blake  <eblake@redhat.com>
8044
8045         quotearg: avoid uninitialized variable use
8046         * lib/quotearg.c (quoting_options_from_style): Initialize
8047         remaining fields, and ensure that custom styles are only used via
8048         quoting_options rather than quoting_style.
8049
8050 2011-04-29  Jim Meyering  <meyering@redhat.com>
8051
8052         maint.mk: remove unused VC-tag variable
8053         * top/maint.mk (VC-tag): Remove unused variable.
8054
8055 2011-04-29  Bruno Haible  <bruno@clisp.org>
8056
8057         netdb: fix gai_strerror replacements
8058         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
8059         * modules/netdb: Substitute it.
8060
8061 2011-04-29  Jim Meyering  <meyering@redhat.com>
8062
8063         test-getcwd.c: avoid new set-but-not-used warning
8064         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
8065         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
8066         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
8067         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
8068
8069         test-hash.c: avoid a new shadowing warning
8070         * tests/test-hash.c (main): Don't shadow "dup".
8071
8072 2011-04-28  Eric Blake  <eblake@redhat.com>
8073
8074         getaddrinfo: fix gai_strerror signature
8075         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
8076         and work around mingw with UNICODE defined.
8077         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
8078         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
8079         * modules/netdb (Makefile.am): Substitute it.
8080         * lib/netdb.in.h (gai_strerror): Declare replacement.
8081         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
8082         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
8083         the fix.
8084
8085         getsockopt: avoid compiler warning
8086         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
8087         Reported by Matthias Bolte.
8088
8089         tests: drop unused link dependency
8090         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
8091         * modules/dirent-safer-tests (Makefile.am): Likewise.
8092         * modules/fdopendir-tests (Makefile.am): Likewise.
8093         * modules/mkfifoat-tests (Makefile.am): Likewise.
8094         * modules/openat-safer-tests (Makefile.am): Likewise.
8095         * modules/openat-tests (Makefile.am): Likewise.
8096         * modules/readlinkat-tests (Makefile.am): Likewise.
8097         * modules/symlinkat-tests (Makefile.am): Likewise.
8098         * modules/linkat-tests (Makefile.am): Likewise.
8099         (Depends-on): Switch to filenamecat-lgpl.
8100         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
8101         LIBINTL.
8102         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
8103         * tests/test-linkat.c (main): Don't require xalloc.
8104
8105         hash, mgetgroups: drop xalloc dependency
8106         * lib/hash.c (includes): Adjust includes.
8107         * lib/mgetgroups.c (includes): Likewise.
8108         (xgetgroups): Move...
8109         * lib/xgetgroups.c: ...to new file.
8110         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
8111         * modules/xgetgroups: New file, split from...
8112         * modules/mgetgroups: ...here.
8113         (Depends-on): Add xalloc-oversized.
8114         * modules/hash (Depends-on): Likewise.
8115         * modules/hash-tests (Depends-on): Drop xalloc.
8116         (test_hash_LDADD): Drop unused library.
8117         * tests/test-hash.c (main): Break xalloc dependency.
8118         (includes): Drop unused include.
8119
8120         xalloc-oversized: new module
8121         * modules/xalloc-oversized: New module.
8122         * modules/xalloc (Depends-on): Add it.
8123         * lib/xalloc.h (xalloc_oversized): Move...
8124         * lib/xalloc-oversized.h: ...into new file.
8125
8126         utimecmp: drop dependency on xmalloc
8127         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
8128         due to memory pressure.
8129         * modules/utimecmp (Depends-on): Drop xalloc.
8130
8131 2011-04-27  Eric Blake  <eblake@redhat.com>
8132
8133         getcwd: fix mingw bugs
8134         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
8135         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
8136         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
8137
8138 2011-04-27  Bruno Haible  <bruno@clisp.org>
8139
8140         mkstemps: Ensure declaration on MacOS X 10.5.
8141         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
8142         * doc/glibc-functions/mkstemps.texi: Document header file problem on
8143         MacOS X.
8144
8145 2011-04-27  Bruno Haible  <bruno@clisp.org>
8146
8147         mkstemp: More documentation.
8148         * doc/posix-functions/mkstemp.texi: Document header file problem on
8149         MacOS X.
8150
8151 2011-04-27  Bruno Haible  <bruno@clisp.org>
8152
8153         mkstemp: Tweak configure message when cross-compiling.
8154         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
8155         result as a guess.
8156
8157 2011-04-27  Bruno Haible  <bruno@clisp.org>
8158
8159         clean-temp: Clarify what it does.
8160         * lib/clean-temp.h: Add more comments.
8161         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
8162         module.
8163         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
8164         * doc/glibc-functions/mkstemps.texi: Likewise.
8165         * doc/glibc-functions/mkostemps.texi: Likewise.
8166
8167 2011-04-27  Eric Blake  <eblake@redhat.com>
8168
8169         fchdir: avoid extra chdir and fix test
8170         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
8171         getcwd-lgpl.
8172         * lib/fchdir.c (get_name): Any absolute name will do; it does not
8173         have to be canonical.
8174         (canonicalize_file_name): Drop unused macro.
8175         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
8176
8177         filenamecat-lgpl: fix licence
8178         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
8179         when it was first created.
8180
8181         linkat, renameat: add missing dependency
8182         * modules/linkat (Depends-on): Require getcwd-lgpl.
8183         * modules/renameat (Depends-on): Likewise.
8184
8185         tests: reduce dependencies
8186         * tests/test-linkat.c (main): Use lighter-weight getcwd.
8187         * tests/test-renameat.c (main): Likewise.
8188         * modules/linkat-tests (Depends-on): Relax dependency.
8189         * modules/renameat-tests (Depends-on): Likewise.
8190         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
8191         dependency explicit.
8192
8193         save-cwd: reduce default dependency
8194         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
8195         * lib/save-cwd.c: Update comments.
8196         * NEWS: Document the semantic change.
8197
8198         getcwd: enhance tests
8199         * tests/test-getcwd-lgpl.c: New file, taken from...
8200         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
8201         repeat long path stress tests from m4 probe.
8202         * modules/getcwd-lgpl-tests: New module.
8203         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
8204         * m4/getcwd-abort-bug.m4: Update comment.
8205         * m4/getcwd-path-max.m4: Likewise.
8206
8207         getcwd-lgpl: new module
8208         * modules/getcwd-lgpl: New module.
8209         * lib/getcwd-lgpl.c: New file.
8210         * doc/posix-functions/getcwd.texi (getcwd): Document it.
8211         * MODULES.html.sh (lacking POSIX:2008): Likewise.
8212         * modules/getcwd (configure.ac): Set C witness.
8213         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
8214
8215         getcwd: tweak comments
8216         * m4/getcwd-abort-bug.m4: Fix comments.
8217         * m4/getcwd-path-max.m4: Likewise.
8218         * m4/getcwd.m4: Likewise.
8219
8220 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
8221         and Eric Blake  <eblake@redhat.com>
8222
8223         mkstemp: replace if system version uses wrong permissions
8224         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
8225         read/write mode bits set in file created by mkstemp.
8226         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
8227
8228 2011-04-27  Eric Blake  <eblake@redhat.com>
8229
8230         passfd: avoid compiler warning
8231         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
8232         Reported by Laine Stump.
8233
8234 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
8235
8236         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
8237         required by the NetBSD (and perhaps other 4.4BSD derived) join.
8238
8239 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
8240         and Eric Blake  <eblake@redhat.com>
8241
8242         mkstemp: mention clean-temp module
8243         * lib/mkstemp.c: Add comment.
8244         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
8245
8246 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
8247
8248         inttypes: also provide default values for 32-bit tests
8249         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
8250         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
8251
8252 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
8253
8254         strtoumax: remove dependency on strtoimax
8255         This is like the strtoull change of yesterday.
8256         * modules/strtoumax (Files): Add lib/strtoimax.c.
8257         (Depends-on): Remove strtoimax and add verify.
8258
8259         inttypes-incomplete: new module
8260         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
8261         all but the PRI* and SCN* parts of gl_INTTYPES_H.
8262         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
8263         of gl_INTTYPES_H.
8264         (gl_INTTYPES_H): Rewrite in terms of these new macros.
8265         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
8266         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
8267         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
8268         * modules/strtoumax, modules/xstrtol (Depends-on):
8269         Depend on inttypes-incomplete, not inttypes.
8270         * modules/inttypes-incomplete: New module, containing the contents
8271         of the old modules/inttypes module, except that the Files: section
8272         omits m4/inttypes-pri.m4, and the configure.ac section invokes
8273         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
8274         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
8275         (Depends-on): Depend only on inttypes-incomplete.
8276         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
8277
8278         inttypes: omit now-redundant strtoimax and strtoumax work
8279         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
8280         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
8281
8282         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
8283         This supports apps that need pointers to strtoimax and strtoumax,
8284         and ports to HP-UX 11.00 64.bit, which has macros that expand to
8285         nonexistent functions.  See
8286         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
8287         et seq.
8288         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
8289         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
8290         a macro.
8291         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
8292
8293 2011-04-25  Simon Josefsson  <simon@josefsson.org>
8294
8295         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
8296
8297 2011-04-25  Bruno Haible  <bruno@clisp.org>
8298
8299         strtol, strtoul: Mark modules as obsolete.
8300         * modules/strtol (Status, Notice): New sections.
8301         * modules/strtoul (Status, Notice): New sections.
8302
8303 2011-04-25  Bruno Haible  <bruno@clisp.org>
8304
8305         strtod: Remove check for strtod, unless supporting old platforms.
8306         * modules/strtod-obsolete: New file.
8307         * m4/strtod-obsolete.m4: New file.
8308         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
8309         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
8310         * modules/strtod (Depends-on): Add strtod-obsolete.
8311         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
8312
8313 2011-04-25  Bruno Haible  <bruno@clisp.org>
8314
8315         strcase: Make module obsolete.
8316         * modules/strcase (Status, Notice): New sections.
8317
8318 2011-04-25  Bruno Haible  <bruno@clisp.org>
8319
8320         dup2: Remove check for dup2, unless supporting old obsolete platforms.
8321         * modules/dup2-obsolete: New file.
8322         * m4/dup2-obsolete.m4: New file.
8323         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
8324         gl_FUNC_DUP2_OBSOLETE is not also defined.
8325         * modules/dup2 (Depends-on): Add dup2-obsolete.
8326         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
8327
8328 2011-04-25  Bruno Haible  <bruno@clisp.org>
8329
8330         strnlen: Avoid memchr related link error on old obsolete platforms.
8331         * modules/memchr-obsolete: New file.
8332         * m4/memchr-obsolete.m4: New file.
8333         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
8334         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
8335         * modules/memchr (Depends-on): Add memchr-obsolete.
8336         * modules/strnlen (Depends-on): Likewise.
8337         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
8338
8339 2011-04-25  Jim Meyering  <meyering@redhat.com>
8340
8341         maint.mk: makefile_at_at_check extend and clean up
8342         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
8343         in addition to */Makefile.am.
8344         Exempt legitimate uses of @VAR@ notation, e.g.,
8345         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
8346         Remove obsolete coreutils-specific comment.
8347         Prompted by discussion here:
8348         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
8349
8350 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
8351
8352         strtoul: remove dependency on strtol
8353         This is so that 'configure' need not check for strtol merely because
8354         the application needs strtoul.
8355         * modules/strtoul (Files): Add lib/strtol.c.
8356         (Depends-on): Remove strtol.
8357
8358         strtoull: remove dependency on strtoul
8359         This is like the strtoll change.
8360         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
8361         (Depends-on): Remove strtoul.
8362
8363         strtoll: remove dependency on strtol
8364         This is so that 'configure' need not check for strtol merely because
8365         the application needs strtoll.
8366         * modules/strtoll (Files): Add lib/strtol.c.
8367         (Depends-on): Remove strtol.
8368
8369 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8370
8371         inttypes: Move some configure check to module 'imaxdiv'.
8372         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
8373         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
8374         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
8375
8376 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8377
8378         inttypes: Move some configure check to module 'imaxabs'.
8379         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
8380         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
8381         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
8382
8383 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8384
8385         inttypes: Remove configure tests that are not needed since 2009-12-31.
8386         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
8387         gl_cv_header_working_inttypes_h.
8388
8389 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8390
8391         * modules/strnlen (Depends-on): Remove memchr.
8392         The strnlen implementation doesn't need the memchr module's fixes; see
8393         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
8394
8395         strtol: remove dependency on wchar
8396         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
8397         * modules/strtol (Depends-on): Remove wchar.
8398
8399 2011-04-21  Eric Blake  <eblake@redhat.com>
8400
8401         passfd: fix test regression on Linux
8402         * modules/passfd-tests (configure.ac): Correct socketpair check.
8403
8404         passfd: speed up configure and drop unused code
8405         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
8406         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
8407         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
8408         Instead of probing at configure for unix_scm_rights_bsd44_way,
8409         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
8410         check to a struct member probe.
8411         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
8412         (sendfd, recvfd): Update preprocessor checks.
8413         * modules/passfd (Files): Reflect rename, and drop unused file.
8414         (Depends-on): Drop unused dependency.
8415
8416         passfd: allow compilation on mingw
8417         * modules/sys_socket (Depends-on): Add sys_uio.
8418         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
8419         iovec and a minimal struct msghdr.
8420         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
8421         * tests/test-sys_socket.c (main): Enhance test.
8422         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
8423         guaranteed to provide what we need.
8424         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
8425         * modules/passfd-tests (Depends-on): Add sys_wait.
8426         * tests/test-passfd.c (main): Skip test on mingw, for now.
8427         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
8428         partial 'struct msghdr' implementation.
8429
8430         sys_uio: new module
8431         * modules/sys_uio: New module.
8432         * modules/sys_uio-tests: Likewise.
8433         * lib/sys_uio.in.h: New file.
8434         * m4/sys_uio_h.m4: Likewise.
8435         * tests/test-sys_uio.c: Likewise.
8436         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
8437         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
8438
8439 2011-04-20  Jim Meyering  <meyering@redhat.com>
8440
8441         useless-if-before-free: avoid false-positive
8442         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
8443         disjunct so that it too requires a terminating ";".  Without that,
8444         this script would identify as useless one statement from gcc that
8445         was not:
8446           if (aligned_ptr)
8447             free (((void **) aligned_ptr) [-1]);
8448
8449 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
8450
8451         doc: update users.txt.
8452         * users.txt: Add barcode.
8453
8454 2011-04-19  Bruno Haible  <bruno@clisp.org>
8455
8456         ioctl: Remove link dependency on native Windows.
8457         * lib/fd-hook.h: Renamed from lib/close-hook.h.
8458         (gl_close_fn, gl_ioctl_fn): New types.
8459         (struct fd_hook): Renamed from struct close_hook. Change type of
8460         private_close_fn field. Add private_ioctl_fn field.
8461         (close_hook_fn): Add parameter for primary close method.
8462         (execute_close_hooks, execute_all_close_hooks): Likewise.
8463         (ioctl_hook_fn): New type.
8464         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
8465         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
8466         argument.
8467         (unregister_fd_hook): Renamed from unregister_close_hook.
8468         * lib/fd-hook.c: Renamed from lib/close-hook.c.
8469         Don't include <unistd.h>.
8470         (close): Remove undef.
8471         (anchor): Update.
8472         (execute_close_hooks): Add argument for primary close method.
8473         (execute_all_close_hooks): Likewise.
8474         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
8475         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
8476         argument. Allow each argument to be NULL.
8477         (unregister_fd_hook): Renamed from unregister_close_hook.
8478         * lib/close.c (rpl_close): Pass 'close' function pointer to
8479         execute_all_close_hooks.
8480         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
8481         (primary_ioctl): New function.
8482         (ioctl): Don't call ioctlsocket here. Instead, call
8483         execute_all_ioctl_hooks.
8484         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
8485         close method.
8486         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
8487         (fd_sockets_hook): Renamed from close_sockets_hook.
8488         (gl_sockets_startup, gl_sockets_cleanup): Update.
8489         * modules/fd-hook: Renamed from modules/close-hook. Update.
8490         * modules/close (Depends-on): Add fd-hook, remove close-hook.
8491         * modules/sockets (Depends-on): Likewise.
8492         * modules/ioctl (Depends-on): Add fd-hook.
8493         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
8494         GNULIB_SOCKET.
8495
8496 2011-04-19  Bruno Haible  <bruno@clisp.org>
8497
8498         Move the support of O_NONBLOCK in open() to the 'open' module.
8499         * modules/nonblocking (Depends-on): Remove 'open'.
8500         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
8501         gl_cv_have_open_O_NONBLOCK.
8502         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
8503         O_NONBLOCK support.
8504         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
8505
8506 2011-04-17  Bruno Haible  <bruno@clisp.org>
8507
8508         pipe2: Simplify code.
8509         * lib/pipe2.c (pipe2): Reduce code duplication.
8510
8511 2011-04-17  Bruno Haible  <bruno@clisp.org>
8512
8513         nonblocking: Add comment.
8514         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
8515
8516 2011-04-17  Bruno Haible  <bruno@clisp.org>
8517
8518         nonblocking: Add tests for sockets.
8519         * tests/test-nonblocking-socket.sh: New file.
8520         * tests/test-nonblocking-socket-main.c: New file.
8521         * tests/test-nonblocking-socket-child.c: New file.
8522         * tests/test-nonblocking-socket.h: New file.
8523         * tests/socket-server.h: New file.
8524         * tests/socket-client.h: New file.
8525         * modules/nonblocking-socket-tests: New file.
8526         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
8527
8528 2011-04-17  Bruno Haible  <bruno@clisp.org>
8529
8530         nonblocking: Add tests for pipes.
8531         * tests/test-nonblocking-pipe.sh: New file.
8532         * tests/test-nonblocking-pipe-main.c: New file.
8533         * tests/test-nonblocking-pipe-child.c: New file.
8534         * tests/test-nonblocking-pipe.h: New file.
8535         * tests/test-nonblocking-writer.h: New file.
8536         * tests/test-nonblocking-reader.h: New file.
8537         * tests/test-nonblocking-misc.h: New file.
8538         * modules/nonblocking-pipe-tests: New file.
8539         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
8540
8541 2011-04-16  Bruno Haible  <bruno@clisp.org>
8542
8543         gettext: Clarify the needed programmer actions.
8544         * modules/gettext (Notice): New field.
8545         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
8546
8547 2011-04-16  Bruno Haible  <bruno@clisp.org>
8548
8549         strchrnul: Tweak last commit.
8550         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
8551         bug.
8552         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
8553         as in _GL_FUNCDECL_SYS.
8554         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
8555         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
8556
8557 2011-04-15  Eric Blake  <eblake@redhat.com>
8558
8559         strchrnul: work around cygwin bug
8560         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
8561         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
8562         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
8563         * modules/string (Makefile.am): Substitute it.
8564         * lib/string.in.h (strchrnul): Use it.
8565
8566 2011-04-15  Bruno Haible  <bruno@clisp.org>
8567
8568         Don't require lib/stdio-write.c when only module 'stdio' is used.
8569         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
8570         invocation.
8571         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
8572
8573 2011-04-14  Bruno Haible  <bruno@clisp.org>
8574
8575         Support non-blocking pipe I/O in read() on native Windows.
8576         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
8577         (read): New declaration.
8578         * lib/read.c: New file.
8579         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
8580         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
8581         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
8582         vscanf): New declarations.
8583         * lib/stdio-read.c: New file.
8584         * m4/read.m4: New file.
8585         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
8586         REPLACE_READ.
8587         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
8588         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8589         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
8590         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
8591         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
8592         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8593         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
8594         * modules/read: New file.
8595         * modules/nonblocking (Files): Add lib/stdio-read.c.
8596         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
8597         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
8598         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8599         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
8600         * modules/pread (Depends-on): Add read.
8601         * modules/safe-read (Depends-on): Likewise.
8602         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
8603         gets, scanf, vfscanf, vscanf): Verify signatures.
8604         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
8605         problem with non-blocking pipes.
8606         * doc/posix-functions/fgetc.texi: Likewise.
8607         * doc/posix-functions/fgets.texi: Likewise.
8608         * doc/posix-functions/fread.texi: Likewise.
8609         * doc/posix-functions/fscanf.texi: Likewise.
8610         * doc/posix-functions/getc.texi: Likewise.
8611         * doc/posix-functions/getchar.texi: Likewise.
8612         * doc/posix-functions/gets.texi: Likewise.
8613         * doc/posix-functions/scanf.texi: Likewise.
8614         * doc/posix-functions/vfscanf.texi: Likewise.
8615         * doc/posix-functions/vscanf.texi: Likewise.
8616
8617 2011-04-14  Bruno Haible  <bruno@clisp.org>
8618
8619         Support non-blocking pipe I/O in write() on native Windows.
8620         * lib/write.c (rpl_write): Split a write request that failed merely
8621         because the byte count was larger than the pipe buffer's size.
8622         * doc/posix-functions/write.texi: Mention the problem with large byte
8623         counts.
8624
8625 2011-04-14  Bruno Haible  <bruno@clisp.org>
8626
8627         wchar: Ensure that wchar_t gets defined on uClibc.
8628         * lib/wchar.in.h: On uClibc, include <stddef.h>.
8629         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
8630
8631 2011-04-13  Bruno Haible  <bruno@clisp.org>
8632
8633         safe-write, full-read: Avoid unnecessary compilation units.
8634         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
8635         (Depends-on): Remove safe-read. Add ssize_t.
8636         * modules/full-read (Files): Add lib/full-write.c.
8637         (Depends-on): Add full-write.
8638
8639 2011-04-13  Bruno Haible  <bruno@clisp.org>
8640
8641         Support non-blocking pipe I/O and SIGPIPE in pwrite().
8642         * modules/pwrite (Depends-on): Add 'write'.
8643
8644 2011-04-13  Bruno Haible  <bruno@clisp.org>
8645
8646         Support non-blocking pipe I/O in write() on native Windows.
8647         * lib/unistd.in.h (write): Enable replacement also if
8648         GNULIB_UNISTD_H_NONBLOCKING is 1.
8649         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
8650         (rpl_write): When failing to write on a non-blocking pipe, change
8651         errno from ENOSPC to EAGAIN.
8652         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
8653         putchar, puts, vfprintf, vprintf): Enable replacement also if
8654         GNULIB_STDIO_H_NONBLOCKING is 1.
8655         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
8656         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
8657         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
8658         CALL_WITH_SIGPIPE_EMULATION.
8659         (CALL_WITH_SIGPIPE_EMULATION): Use them.
8660         * m4/nonblocking.m4: New file.
8661         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
8662         for non-blocking I/O support.
8663         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8664         GNULIB_UNISTD_H_NONBLOCKING.
8665         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
8666         required for non-blocking I/O support.
8667         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
8668         * modules/nonblocking (Files): Add m4/nonblocking.m4,
8669         lib/stdio-write.c, m4/asm-underscore.m4.
8670         (Depends-on): Add stdio, unistd.
8671         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
8672         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
8673         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
8674         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
8675         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
8676         problem with non-blocking pipes.
8677         * doc/posix-functions/fputc.texi: Likewise.
8678         * doc/posix-functions/fputs.texi: Likewise.
8679         * doc/posix-functions/fwrite.texi: Likewise.
8680         * doc/posix-functions/printf.texi: Likewise.
8681         * doc/posix-functions/putc.texi: Likewise.
8682         * doc/posix-functions/putchar.texi: Likewise.
8683         * doc/posix-functions/puts.texi: Likewise.
8684         * doc/posix-functions/vfprintf.texi: Likewise.
8685         * doc/posix-functions/vprintf.texi: Likewise.
8686         * doc/posix-functions/write.texi: Likewise.
8687
8688 2011-04-10  Jim Meyering  <meyering@redhat.com>
8689
8690         maint.mk: prohibit doubled words
8691         Detect them also when they're separated by a newline.
8692         There are 3 ways to customize it:
8693           - disable the test on a per file basis, as usual with rules using
8694             $(VC_LIST_EXCEPT)
8695           - replace the default doubled-word-selecting regexp (affects all files)
8696           - ignore a particular file-vs-doubled-word match
8697         I nearly used that last one to ignore the "is is" match in
8698         coreutils' NEWS file, since the text was "ls -is is ..."
8699         To do that, I would have added this line to cfg.mk:
8700           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
8701         but it would have ignored any "is is" match in NEWS.
8702         Low probability, but still...
8703         Instead, I changed the text, slightly:
8704           -  ls -is is now consistent with ls -lis in ignoring values returned
8705           +  "ls -is" is now consistent with ls -lis in ignoring values returned
8706         * top/maint.mk (prohibit_double_word_RE_): Provide default.
8707         (prohibit_doubled_word_): Define.
8708         (sc_prohibit_doubled_word): New rule.
8709         (sc_prohibit_the_the): Remove.  Subsumed by the above.
8710
8711 2011-04-10  Jim Meyering  <meyering@redhat.com>
8712
8713         maint: fix doubled-word typo in comment
8714         * m4/gethostname.m4: s/is is/it is/
8715         * m4/getdomainname.m4: Likewise.
8716
8717 2011-04-10  Jim Meyering  <meyering@redhat.com>
8718
8719         maint: remove doubled word: s/it it/it/
8720         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
8721
8722 2011-04-10  Jim Meyering  <meyering@redhat.com>
8723
8724         maint.mk: remove useless semicolon and backslash
8725         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
8726         semicolon and backslash.
8727
8728 2011-04-10  Bruno Haible  <bruno@clisp.org>
8729
8730         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
8731         * modules/stdint-tests (Depends-on): Add wchar.
8732
8733 2011-04-10  Jim Meyering  <meyering@redhat.com>
8734
8735         maint: remove doubled words in comments, e.g., s/a a/a/
8736         * lib/strptime.c (day_of_the_week): s/the the/the/
8737         * tests/test-chown.h (test_chown): s/a a/a/
8738
8739         test-chown.h: correct a cast
8740         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
8741         when the destination is a stat.st_gid.
8742
8743 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
8744
8745         getaddrinfo: Fix test for sa_len member.
8746         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
8747         include <sys/types.h> before <sys/socket.h>.
8748
8749 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8750
8751         maint: change "can not" to "cannot"
8752         * doc/posix-functions/iconv.texi (iconv): This one crossed line
8753         boundaries.
8754
8755 2011-04-09  Jim Meyering  <meyering@redhat.com>
8756
8757         maint: change "a a" to "a"
8758         * tests/test-lchown.h (test_lchown): s/a a/a/
8759
8760         maint.mk: prohibit \<the the\>
8761         * top/maint.mk (sc_prohibit_the_the): New rule.
8762
8763         maint: fix "the the" in comment
8764         * lib/count-one-bits.h: s/the the/the/
8765
8766         maint: change "can not" to "cannot"
8767         But do not change the occurrences in maintain.texi or in
8768         build-aux/po/Makefile.in.in, which I presume comes from gettext.
8769         * doc/gnulib-tool.texi: s/can not/cannot/
8770         * doc/posix-functions/accept.texi (accept): Likewise.
8771         * doc/posix-functions/socket.texi (socket): Likewise.
8772         * lib/mbrtowc.c: Likewise.
8773
8774         maint.mk: prohibit use of "can not"
8775         * top/maint.mk (sc_prohibit_can_not): New rule.
8776         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
8777
8778 2011-04-09  Bruno Haible  <bruno@clisp.org>
8779
8780         careadlinkat: Guard against misuse of careadlinkatcwd.
8781         * lib/careadlinkat.c: Include <stdlib.h>.
8782         (careadlinkatcwd): Check that the fd argument is as expected.
8783
8784 2011-04-09  Bruno Haible  <bruno@clisp.org>
8785
8786         careadlinkat: Use common coding style.
8787         * lib/careadlinkat.c: Move gnulib includes after system includes.
8788
8789 2011-04-09  Bruno Haible  <bruno@clisp.org>
8790
8791         careadlinkat: Clarify specification.
8792         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
8793         (careadlinkatcwd): Add comment.
8794         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
8795
8796 2011-04-09  Bruno Haible  <bruno@clisp.org>
8797
8798         areadlinkat: Avoid link error on many platforms.
8799         * modules/areadlinkat (Depends-on): Add areadlink.
8800
8801 2011-04-09  Bruno Haible  <bruno@clisp.org>
8802
8803         allocator, careadlinkat: Fix double-inclusion guard.
8804         * lib/allocator.h: Fix double-inclusion guard.
8805         * lib/careadlinkat.h: Likewise.
8806
8807 2011-04-09  Bruno Haible  <bruno@clisp.org>
8808
8809         relocatable-prog-wrapper: Update after module 'areadlink' changed.
8810         * lib/relocwrapper.c: Update dependencies hierarchy.
8811         * build-aux/install-reloc: Update list of files to be compiled.
8812         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
8813         lib/allocator.[hc].
8814
8815 2011-04-08  Eric Blake  <eblake@redhat.com>
8816
8817         strftime: silence gnulib-tool warning
8818         * modules/strftime-tests (Depends-on): Drop automatic dependency.
8819
8820 2011-04-08  Bruno Haible  <bruno@clisp.org>
8821
8822         verify: Fix syntax error with GCC 4.6 in C++ mode.
8823         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
8824         (HAVE_STATIC_ASSERT): New macro.
8825         (verify_true, verify): Use 'static_assert' if it is supported and
8826         '_Static_assert' is not supported.
8827
8828 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
8829
8830         allocator: New module.
8831         * modules/allocator, lib/allocator.c: New files.
8832         * lib/allocator.h (stdlib_allocator): New decl.
8833         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
8834         Remove.  Do not include <stdlib.h>.
8835         (careadlinkat): Use stdlib_allocator instead of rolling our own.
8836         * modules/careadlinkat (Files): Remove lib/allocator.h.
8837         (Depends-on): Add allocator.
8838
8839         stdlib: let modules use system malloc, realloc
8840         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
8841         if !_GL_USE_STDLIB_ALLOC.
8842         (malloc, realloc): Limit this change to a smaller scope.
8843
8844         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
8845         (malloc, realloc): Don't #undef; no longer needed.
8846         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8847         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8848         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
8849         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8850         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8851         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8852         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8853         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
8854
8855         careadlinkat: rename members to avoid problem
8856         * lib/allocator.h (struct allocator): Rename members from
8857         malloc/realloc to allocate/reallocate, to avoid problems if malloc
8858         and realloc are #define'd.  Reported by Eric Blake in
8859         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
8860         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
8861
8862 2011-04-08  Eric Blake  <eblake@redhat.com>
8863
8864         nonblocking: reduce dependency
8865         * tests/test-nonblocking.c: Only test sockets when in use.
8866         * modules/nonblocking-tests (Depends-on): Drop socket.
8867         (Makefile.am): Link even if sockets are not present.
8868         * modules/pipe2-tests (Makefile.am): Likewise.
8869         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
8870
8871         pipe2: fix O_NONBLOCK support on mingw
8872         * modules/pipe2 (Depends-on): Add nonblocking.
8873         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
8874         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
8875         * tests/test-nonblocking.c (main): Likewise.
8876         * modules/pipe2-tests (Makefile.am): Avoid link failure.
8877
8878         fcntl-h: fix O_ACCMODE on cygwin
8879         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
8880         * lib/fcntl.in.h (O_ACCMODE): Fix it.
8881
8882         pipe-filter: drop O_NONBLOCK workarounds
8883         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
8884         * modules/pipe-filter-ii (Depends-on): Likewise.
8885         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
8886
8887         nonblocking: provide O_NONBLOCK for mingw
8888         * modules/nonblocking (Depends-on): Add open.
8889         (configure.ac): Set new witness macro.
8890         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
8891         * modules/fcntl-h (Makefile.am): Substitute it.
8892         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
8893         nonblocking module is in use.
8894         * lib/nonblocking.c: Adjust portability test.
8895         * lib/open.c (open): Don't let native open see gnulib flag.
8896         * tests/test-fcntl-h.c (main): Enhance test.
8897         * tests/test-open.h (test_open): Likewise.
8898         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
8899
8900         careadlinkat: fix compilation error on mingw
8901         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
8902         within struct allocator.
8903
8904 2011-04-06  Eric Blake  <eblake@redhat.com>
8905
8906         binary-io: relicense under LGPLv2+
8907         * modules/binary-io (License): Relax to LGPLv2+.
8908         Requested for libvirt, and required by pipe2.
8909
8910 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
8911
8912         verify: use _Static_assert if available
8913         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
8914         (verify_true, verify): Use it if available.  This generates better
8915         diagnostics with GCC 4.6.0 and later.
8916
8917 2011-04-05  Bruno Haible  <bruno@clisp.org>
8918
8919         Remove leftover generated .h files after config.status changed.
8920
8921         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
8922         GL_GENERATE_ALLOCA_H.
8923         * modules/alloca-opt (Makefile.am): Remove alloca.h if
8924         GL_GENERATE_ALLOCA_H evaluates to false.
8925
8926         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
8927         GL_GENERATE_ARGZ_H.
8928         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
8929         evaluates to false.
8930
8931         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
8932         GL_GENERATE_BYTESWAP_H.
8933         * modules/byteswap (Makefile.am): Remove byteswap.h if
8934         GL_GENERATE_BYTESWAP_H evaluates to false.
8935
8936         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
8937         GL_GENERATE_ERRNO_H.
8938         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
8939         evaluates to false.
8940
8941         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
8942         GL_GENERATE_FLOAT_H.
8943         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
8944         evaluates to false.
8945
8946         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
8947         GL_GENERATE_FNMATCH_H.
8948         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
8949         GL_GENERATE_FNMATCH_H evaluates to false.
8950
8951         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
8952         GL_GENERATE_GLOB_H.
8953         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
8954         evaluates to false.
8955
8956         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
8957         automake conditional GL_GENERATE_ICONV_H.
8958         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
8959         evaluates to false.
8960
8961         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
8962         GL_GENERATE_NETINET_IN_H.
8963         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
8964         GL_GENERATE_NETINET_IN_H evaluates to false.
8965
8966         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
8967         conditional GL_GENERATE_PTHREAD_H.
8968         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
8969         * modules/pthread (Makefile.am): Remove pthread.h if
8970         GL_GENERATE_PTHREAD_H evaluates to false.
8971
8972         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
8973         GL_GENERATE_SCHED_H.
8974         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
8975         evaluates to false.
8976
8977         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
8978         conditional GL_GENERATE_SELINUX_CONTEXT_H.
8979         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
8980         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
8981
8982         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
8983         GL_GENERATE_STDARG_H.
8984         * modules/stdarg (Makefile.am): Remove stdarg.h if
8985         GL_GENERATE_STDARG_H evaluates to false.
8986
8987         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
8988         GL_GENERATE_STDBOOL_H.
8989         * modules/stdbool (Makefile.am): Remove stdbool.h if
8990         GL_GENERATE_STDBOOL_H evaluates to false.
8991
8992         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
8993         conditional GL_GENERATE_STDDEF_H.
8994         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
8995         * modules/stddef (Makefile.am): Remove stddef.h if
8996         GL_GENERATE_STDDEF_H evaluates to false.
8997
8998         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
8999         GL_GENERATE_STDINT_H.
9000         * modules/stdint (Makefile.am): Remove stdint.h if
9001         GL_GENERATE_STDINT_H evaluates to false.
9002
9003         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
9004         GL_GENERATE_SYSEXITS_H.
9005         * modules/sysexits (Makefile.am): Remove sysexits.h if
9006         GL_GENERATE_SYSEXITS_H evaluates to false.
9007
9008         Reported by Karl Berry and Ralf Wildenhues.
9009
9010 2011-04-05  Bruno Haible  <bruno@clisp.org>
9011
9012         Ensure to rebuild generated .h files when config.status has changed.
9013         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
9014         config.status.
9015         * modules/ctype (Makefile.am): Likewise.
9016         * modules/dirent (Makefile.am): Likewise.
9017         * modules/errno (Makefile.am): Likewise.
9018         * modules/fcntl-h (Makefile.am): Likewise.
9019         * modules/float (Makefile.am): Likewise.
9020         * modules/getopt-posix (Makefile.am): Likewise.
9021         * modules/glob (Makefile.am): Likewise.
9022         * modules/iconv-h (Makefile.am): Likewise.
9023         * modules/inttypes (Makefile.am): Likewise.
9024         * modules/langinfo (Makefile.am): Likewise.
9025         * modules/locale (Makefile.am): Likewise.
9026         * modules/math (Makefile.am): Likewise.
9027         * modules/netdb (Makefile.am): Likewise.
9028         * modules/netinet_in (Makefile.am): Likewise.
9029         * modules/poll-h (Makefile.am): Likewise.
9030         * modules/pthread (Makefile.am): Likewise.
9031         * modules/pty (Makefile.am): Likewise.
9032         * modules/sched (Makefile.am): Likewise.
9033         * modules/search (Makefile.am): Likewise.
9034         * modules/selinux-h (Makefile.am): Likewise.
9035         * modules/signal (Makefile.am): Likewise.
9036         * modules/spawn (Makefile.am): Likewise.
9037         * modules/stdarg (Makefile.am): Likewise.
9038         * modules/stdbool (Makefile.am): Likewise.
9039         * modules/stddef (Makefile.am): Likewise.
9040         * modules/stdint (Makefile.am): Likewise.
9041         * modules/stdio (Makefile.am): Likewise.
9042         * modules/stdlib (Makefile.am): Likewise.
9043         * modules/string (Makefile.am): Likewise.
9044         * modules/strings (Makefile.am): Likewise.
9045         * modules/sys_file (Makefile.am): Likewise.
9046         * modules/sys_ioctl (Makefile.am): Likewise.
9047         * modules/sys_select (Makefile.am): Likewise.
9048         * modules/sys_socket (Makefile.am): Likewise.
9049         * modules/sys_stat (Makefile.am): Likewise.
9050         * modules/sys_time (Makefile.am): Likewise.
9051         * modules/sys_times (Makefile.am): Likewise.
9052         * modules/sys_utsname (Makefile.am): Likewise.
9053         * modules/sys_wait (Makefile.am): Likewise.
9054         * modules/sysexits (Makefile.am): Likewise.
9055         * modules/termios (Makefile.am): Likewise.
9056         * modules/time (Makefile.am): Likewise.
9057         * modules/unistd (Makefile.am): Likewise.
9058         * modules/wchar (Makefile.am): Likewise.
9059         * modules/wctype-h (Makefile.am): Likewise.
9060         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
9061
9062 2011-04-05  Bruno Haible  <bruno@clisp.org>
9063
9064         pipe2: Relicense under LGPLv2+.
9065         * modules/pipe2 (License): Change to LGPLv2+.
9066         Requested by Eric Blake, for libvirt.
9067
9068 2011-04-05  Bruce Korb  <bkorb@gnu.org>
9069
9070         bootstrap: compute gnulib_extra_files after updating build_aux
9071         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
9072         change build_aux or also supply gnulib_extra_files.  Handle correctly.
9073
9074 2011-04-05  Eric Blake  <eblake@redhat.com>
9075
9076         bootstrap: preserve git whitelist item sorting
9077         * build-aux/bootstrap (sort_patterns): New function.
9078         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
9079
9080 2011-04-05  Simon Josefsson  <simon@josefsson.org>
9081
9082         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
9083         sc_space_tab check.
9084
9085 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
9086
9087         areadlink, areadlinkat: rewrite in terms of careadlinkat
9088         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
9089         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
9090         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
9091         (malloc, realloc): Remove #undefs.
9092         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
9093         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
9094         readlink, ssize_t, stdint, unistd.
9095         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
9096         areadlink, stdint.
9097
9098         careadlinkat: new module
9099         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
9100         * modules/careadlinkat: New files, written by me with
9101         a review and feedback from Ben Pfaff in
9102         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
9103
9104 2011-04-01  Bruno Haible  <bruno@clisp.org>
9105
9106         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
9107         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
9108         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
9109         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
9110         Reported by Bruce Korb <bruce.korb@gmail.com>.
9111
9112 2011-04-01  Bruno Haible  <bruno@clisp.org>
9113
9114         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
9115         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
9116         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
9117         * modules/wcpcpy (Depends-on): Add extensions.
9118         * modules/wcpncpy (Depends-on): Likewise.
9119         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
9120         systems.
9121         * doc/posix-functions/wcpncpy.texi: Likewise.
9122         * doc/posix-functions/wcwidth.texi: Likewise.
9123
9124 2011-03-31  Eric Blake  <eblake@redhat.com>
9125
9126         nonblocking: fix mingw test failures
9127         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
9128         non-blocking flag on regular file.
9129         (get_nonblocking_flag): Set errno on invalid fd.
9130         * tests/test-nonblocking.c (main): Avoid test failure on
9131         directories if fchdir is not active.
9132         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
9133
9134 2011-03-31  Bruno Haible  <bruno@clisp.org>
9135
9136         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
9137         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
9138         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
9139         Reported by Simon Josefsson <simon@josefsson.org>.
9140
9141 2011-03-31  Bruno Haible  <bruno@clisp.org>
9142         and Eric Blake  <eblake@redhat.com>
9143
9144         nonblocking: new module
9145         * modules/nonblocking: New module.
9146         * modules/nonblocking-tests: Likewise.
9147         * lib/nonblocking.h: New file.
9148         * lib/nonblocking.c: Likewise.
9149         * tests/test-nonblocking.c: New test.
9150         * lib/ioctl.c (ioctl) [mingw]: Update comment.
9151
9152 2011-03-30  Bruno Haible  <bruno@clisp.org>
9153
9154         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
9155         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
9156         instead of 'printf' format for GCC >= 4.4.
9157         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
9158         (fprintf, printf, vfprintf, vprintf): Declare with
9159         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
9160         the system's vfprintf() function.
9161         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
9162
9163 2011-03-30  Eric Blake  <eblake@redhat.com>
9164
9165         passfd: fix scoping bug
9166         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
9167         before sendmsg/recvmsg.
9168
9169         passfd: standardize coding conventions
9170         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
9171         can be learned at compile time.
9172         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
9173         ifdefs.
9174         (sendfd, recvfd): Follow gnulib code conventions.
9175
9176         passfd: fix incorrect sendmsg arguments
9177         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
9178         incorrect msg_controllen value.
9179         * modules/passfd-tests (Depends-on): Check for alarm.
9180         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
9181         Reported by Bastien ROUCARIES.
9182
9183 2011-03-30  Bruno Haible  <bruno@clisp.org>
9184
9185         c-strcasestr: Relicense under LGPLv2+.
9186         * modules/c-strcasestr (License): Change to LGPLv2+.
9187         Requested by Eric Blake, for libvirt.
9188
9189 2011-03-30  Simon Josefsson  <simon@josefsson.org>
9190
9191         * users.txt: Add libidn2.  Fix libtasn1 link.
9192
9193 2011-03-30  Jim Meyering  <meyering@redhat.com>
9194
9195         tests: readlink* ("",... fails with EINVAL on newer kernels
9196         readlink and readlinkat have typically failed with ENOENT for
9197         the invalid, empty file name,  "".  However, with the advent
9198         of linux-2.6.39, they fail with EINVAL.
9199         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
9200         when operating on the empty file name.
9201         * tests/test-readlink.h (test_readlink): Likewise.
9202
9203 2011-03-29  Bruno Haible  <bruno@clisp.org>
9204
9205         Relicense some modules under LGPLv2+, for libidn2.
9206         * modules/array-mergesort (License): Change to LGPLv2+.
9207         * modules/c-strcaseeq (License): Likewise.
9208         * modules/striconveh (License): Likewise.
9209         * modules/striconveha (License): Likewise.
9210         * modules/uniconv/base (License): Likewise.
9211         * modules/uniconv/u8-conv-from-enc (License): Likewise.
9212         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
9213         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
9214         * modules/unictype/base (License): Likewise.
9215         * modules/unictype/bidiclass-of (License): Likewise.
9216         * modules/unictype/category-M (License): Likewise.
9217         * modules/unictype/category-none (License): Likewise.
9218         * modules/unictype/category-of (License): Likewise.
9219         * modules/unictype/category-test (License): Likewise.
9220         * modules/unictype/category-test-withtable (License): Likewise.
9221         * modules/unictype/combining-class (License): Likewise.
9222         * modules/unictype/joiningtype-of (License): Likewise.
9223         * modules/unictype/scripts (License): Likewise.
9224         * modules/uninorm/base (License): Likewise.
9225         * modules/uninorm/canonical-decomposition (License): Likewise.
9226         * modules/uninorm/composition (License): Likewise.
9227         * modules/uninorm/decompose-internal (License): Likewise.
9228         * modules/uninorm/decomposition-table (License): Likewise.
9229         * modules/uninorm/nfc (License): Likewise.
9230         * modules/uninorm/nfd (License): Likewise.
9231         * modules/uninorm/u32-normalize (License): Likewise.
9232         * modules/unistr/base (License): Likewise.
9233         * modules/unistr/u32-cpy (License): Likewise.
9234         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
9235         * modules/unistr/u32-to-u8 (License): Likewise.
9236         * modules/unistr/u32-uctomb (License): Likewise.
9237         * modules/unistr/u8-check (License): Likewise.
9238         * modules/unistr/u8-mblen (License): Likewise.
9239         * modules/unistr/u8-mbtouc (License): Likewise.
9240         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
9241         * modules/unistr/u8-mbtoucr (License): Likewise.
9242         * modules/unistr/u8-prev (License): Likewise.
9243         * modules/unistr/u8-strlen (License): Likewise.
9244         * modules/unistr/u8-to-u32 (License): Likewise.
9245         * modules/unistr/u8-uctomb (License): Likewise.
9246         * modules/unitypes (License): Likewise.
9247         Requested by Simon Josefsson.
9248
9249 2011-03-29  Simon Josefsson  <simon@josefsson.org>
9250
9251         lib-symbol-visibility: Add a notice.
9252         * modules/lib-symbol-visibility (Notice): New field.
9253
9254 2011-03-29  Bruno Haible  <bruno@clisp.org>
9255
9256         getaddrinfo: Doc fix.
9257         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
9258         section "fixed in Gnulib".
9259
9260 2011-03-28  Simon Josefsson  <simon@josefsson.org>
9261
9262         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
9263         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
9264
9265 2011-03-26  Bruno Haible  <bruno@clisp.org>
9266
9267         unictype/property-byname: Reduce the number of load-time relocations.
9268         * lib/unictype/pr_byname.c: Include <stdlib.h>.
9269         (UC_PROPERTY_INDEX_*): New enumeration values.
9270         (uc_property_byname): Convert an index from the lookup table to an
9271         uc_property_t.
9272         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
9273         values.
9274
9275 2011-03-26  Bruno Haible  <bruno@clisp.org>
9276
9277         unictype/property-byname: Allow omitted word separators and aliases.
9278         * lib/unictype/pr_byname.gperf: Add property names without word
9279         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
9280         for 'space'.
9281
9282 2011-03-26  Bruno Haible  <bruno@clisp.org>
9283
9284         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
9285         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
9286         also hyphens to space.
9287         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
9288         without spaces.
9289         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
9290
9291 2011-03-26  Bruno Haible  <bruno@clisp.org>
9292
9293         unictype/joiningtype-byname: Recognize long names as well.
9294         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
9295         a long name.
9296         * lib/unictype/joiningtype_byname.c: Include <string.h>,
9297         unictype/joiningtype_byname.h.
9298         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
9299         * lib/unictype/joiningtype_byname.gperf: New file.
9300         * modules/unictype/joiningtype-byname (Files): Add
9301         lib/unictype/joiningtype_byname.gperf.
9302         (Depends-on): Add gperf.
9303         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
9304         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
9305         long names.
9306
9307         Tests for module 'unictype/joiningtype-longname'.
9308         * modules/unictype/joiningtype-longname-tests: New file.
9309         * tests/unictype/test-joiningtype_longname.c: New file.
9310
9311         New module 'unictype/joiningtype-longname'.
9312         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
9313         * lib/unictype/joiningtype_longname.c: New file.
9314         * modules/unictype/joiningtype-longname: New file.
9315         * modules/unictype/joiningtype-all (Depends-on): Add
9316         unictype/joiningtype-longname.
9317
9318 2011-03-26  Bruno Haible  <bruno@clisp.org>
9319
9320         unictype/bidiclass-byname: Recognize long names as well.
9321         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
9322         name.
9323         * lib/unictype/bidi_byname.c: Include <string.h>,
9324         unictype/bidi_byname.h.
9325         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
9326         * lib/unictype/bidi_byname.gperf: New file.
9327         * modules/unictype/bidiclass-byname (Files): Add
9328         lib/unictype/bidi_byname.gperf.
9329         (Depends-on): Add gperf.
9330         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
9331         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
9332         long names.
9333
9334         Tests for module 'unictype/bidiclass-longname'.
9335         * modules/unictype/bidiclass-longname-tests: New file.
9336         * tests/unictype/test-bidi_longname.c: New file.
9337
9338         New module 'unictype/bidiclass-longname'.
9339         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
9340         * lib/unictype/bidi_longname.c: New file.
9341         * modules/unictype/bidiclass-longname: New file.
9342         * modules/unictype/bidiclass-all (Depends-on): Add
9343         unictype/bidiclass-longname.
9344
9345 2011-03-26  Bruno Haible  <bruno@clisp.org>
9346
9347         unictype/bidi*: Rename modules.
9348         * modules/unictype/bidiclass-all: Renamed from
9349         modules/unictype/bidicategory-all.
9350         * modules/unictype/bidiclass-name: Renamed from
9351         modules/unictype/bidiclass-name.
9352         (Description): Update.
9353         * modules/unictype/bidiclass-name-tests: Renamed from
9354         modules/unictype/bidicategory-name-tests.
9355         * modules/unictype/bidiclass-byname: Renamed from
9356         modules/unictype/bidicategory-byname.
9357         (Description): Update.
9358         * modules/unictype/bidiclass-byname-tests: Renamed from
9359         modules/unictype/bidicategory-byname-tests.
9360         * modules/unictype/bidiclass-of: Renamed from
9361         modules/unictype/bidicategory-of.
9362         (Description): Update.
9363         * modules/unictype/bidiclass-of-tests: Renamed from
9364         modules/unictype/bidicategory-of-tests.
9365         * modules/unictype/bidiclass-test: Renamed from
9366         modules/unictype/bidicategory-test.
9367         (Description): Update.
9368         * modules/unictype/bidiclass-test-tests: Renamed from
9369         modules/unictype/bidicategory-test-tests.
9370         * modules/unictype/bidicategory-all: New file, a simple redirection.
9371         * modules/unictype/bidicategory-name: Likewise.
9372         * modules/unictype/bidicategory-byname: Likewise.
9373         * modules/unictype/bidicategory-of: Likewise.
9374         * modules/unictype/bidicategory-test: Likewise.
9375         * modules/unictype/property-bidi-* (Dependencies): Update.
9376         * lib/unictype/bidi_*.c: Update comment.
9377
9378 2011-03-26  Bruno Haible  <bruno@clisp.org>
9379
9380         unictype/bidi*: Rename functions, part 2.
9381         * modules/unictype/bidicategory-name (configure.ac): Update required
9382         libunistring version.
9383         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
9384
9385 2011-03-25  Bruno Haible  <bruno@clisp.org>
9386
9387         New module 'unictype/combining-class-all'.
9388         * modules/unictype/combining-class-all: New file.
9389
9390         Tests for module 'unictype/combining-class-byname'.
9391         * modules/unictype/combining-class-byname-tests: New file.
9392         * tests/unictype/test-combiningclass_byname.c: New file.
9393
9394         New module 'unictype/combining-class-byname'.
9395         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
9396         * lib/unictype/combiningclass_byname.c: New file.
9397         * lib/unictype/combiningclass_byname.gperf: New file.
9398         * modules/unictype/combining-class-byname: New file.
9399
9400         Tests for module 'unictype/combining-class-longname'.
9401         * modules/unictype/combining-class-longname-tests: New file.
9402         * tests/unictype/test-combiningclass_longname.c: New file.
9403
9404         New module 'unictype/combining-class-longname'.
9405         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
9406         * lib/unictype/combiningclass_longname.c: New file.
9407         * modules/unictype/combining-class-longname: New file.
9408
9409         Tests for module 'unictype/combining-class-name'.
9410         * modules/unictype/combining-class-name-tests: New file.
9411         * tests/unictype/test-combiningclass_name.c: New file.
9412
9413         New module 'unictype/combining-class-name'.
9414         * lib/unictype.in.h (uc_combining_class_name): New declaration.
9415         * lib/unictype/combiningclass_name.c: New file.
9416         * modules/unictype/combining-class-name: New file.
9417
9418 2011-03-25  Bruno Haible  <bruno@clisp.org>
9419
9420         unictype/combining-class: Rename source files.
9421         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
9422         of unictype/combining.h.
9423         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
9424         Update.
9425         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
9426         * modules/unictype/combining-class (Description): Fix.
9427         (Files, Makefile.am): Update.
9428         * tests/unictype/test-combiningclass.c: Renamed from
9429         tests/unictype/test-combining.c.
9430         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
9431
9432 2011-03-25  Bruno Haible  <bruno@clisp.org>
9433
9434         unictype: Update list of canonical combining classes.
9435         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
9436
9437 2011-03-25  Bruno Haible  <bruno@clisp.org>
9438
9439         unictype/category-byname: Recognize long names as well.
9440         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
9441         a long name.
9442         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
9443         unictype/categ_byname.h.
9444         (UC_CATEGORY_INDEX_*): New enumeration values.
9445         (uc_general_category_byname): Use uc_general_category_lookup and
9446         convert from index to value.
9447         * lib/unictype/categ_byname.gperf: New file.
9448         * modules/unictype/category-byname (Files): Add
9449         lib/unictype/categ_byname.gperf.
9450         (Depends-on): Add gperf.
9451         (Makefile.am): Add rule for generating unictype/categ_byname.h.
9452         * tests/unictype/test-categ_byname.c (main): Test the recognition of
9453         long names.
9454
9455         Tests for module 'unictype/category-longname'.
9456         * modules/unictype/category-longname-tests: New file.
9457         * tests/unictype/test-categ_longname.c: New file.
9458
9459         New module 'unictype/category-longname'.
9460         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
9461         * lib/unictype/categ_longname.c: New file.
9462         * modules/unictype/category-longname: New file.
9463         * modules/unictype/category-all (Depends-on): Add it.
9464
9465 2011-03-25  Bruno Haible  <bruno@clisp.org>
9466
9467         Tests for module 'unictype/category-LC'.
9468         * modules/unictype/category-LC-tests: New file.
9469         * tests/unictype/test-categ_LC.c: New file, automatically generated.
9470
9471         New module 'unictype/category-LC'.
9472         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
9473         (UC_CATEGORY_LC): New declaration.
9474         (UC_CASED_LETTER): New macro.
9475         * lib/gen-uni-tables.c (is_category_LC): New function.
9476         (output_categories): Also handle category LC.
9477         (UC_CATEGORY_MASK_LC): New enumeration value.
9478         (general_category_byname): Also handle category LC.
9479         * lib/unictype/categ_LC.c: New file.
9480         * lib/unictype/categ_LC.h: New file, automatically generated.
9481         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
9482         category LC.
9483         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
9484         * modules/unictype/category-LC: New file.
9485         * modules/unictype/category-byname (Depends-on): Add
9486         unictype/category-LC.
9487         * modules/unictype/category-all (Depends-on): Likewise.
9488
9489 2011-03-25  Eric Blake  <eblake@redhat.com>
9490
9491         xmalloc: revert yesterday's regression
9492         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
9493         realloc's underlying behavior (allowing allocation of zero-size
9494         objects, especially if malloc-gnu is also in use).
9495
9496 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
9497
9498         maint.mk: add missing version to VC-tag
9499         * top/maint.mk: git tag was missing actual tag name; add it.
9500
9501         valgrind: do leak checking, and exit with code 1 on error (not 0)
9502         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
9503         to VALGRIND.
9504
9505 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
9506
9507         posix-modules: say what it does.
9508         * posix-modules: Add a line to the --help output saying what it does.
9509
9510 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
9511
9512         xmalloc: Do not leak if underlying realloc is C99 compatible.
9513         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
9514         This avoids a leak on C99-based systems.  See
9515         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
9516
9517 2011-03-24  Eric Blake  <eblake@redhat.com>
9518
9519         realloc: document portability problem
9520         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
9521         passing 0 size to realloc.
9522
9523 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
9524
9525         doc: update users.txt
9526         * users.txt: Add cvsps, tmpwatch
9527
9528 2011-03-23  Matt Rice  <ratmice@gmail.com>
9529
9530         doc: update users.txt
9531         * users.txt: Add gdb.
9532
9533 2011-03-23  Jim Meyering  <meyering@redhat.com>
9534
9535         doc: update users.txt
9536         Looking through matches up to the following URL (there are still
9537         several more pages), I found several projects that use gnulib:
9538         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
9539         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
9540         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
9541
9542 2011-03-22  Bruno Haible  <bruno@clisp.org>
9543
9544         unictype/bidi*: Rename functions.
9545         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
9546         uc_bidi_class, uc_is_bidi_class): New declarations.
9547         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
9548         uc_bidi_category_byname.
9549         (uc_bidi_category_byname): New function.
9550         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
9551         u_bidi_category_name.
9552         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
9553         (uc_bidi_category_name): New function.
9554         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
9555         uc_bidi_category.
9556         (uc_bidi_category): New function.
9557         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
9558         uc_is_bidi_category. Invoke uc_bidi_class.
9559         (uc_is_bidi_category): New function.
9560         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
9561         instead of uc_bidi_category_byname.
9562         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
9563         instead of uc_bidi_category_name.
9564         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
9565         uc_bidi_category.
9566         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
9567         instead of uc_is_bidi_category.
9568
9569 2011-03-21  Bruno Haible  <bruno@clisp.org>
9570
9571         New module 'unictype/joininggroup-all'.
9572         * modules/unictype/joininggroup-all: New file.
9573
9574         Tests for module 'unictype/joininggroup-of'.
9575         * modules/unictype/joininggroup-of-tests: New file.
9576         * tests/unictype/test-joininggroup_of.c: New file.
9577         * tests/unictype/test-joininggroup_of.h: New file, automatically
9578         generated by gen-uni-tables.
9579
9580         New module 'unictype/joininggroup-of'.
9581         * modules/unictype/joininggroup-of: New file.
9582         * lib/unictype/joininggroup_of.c: New file.
9583         * lib/unictype/joininggroup_of.h: New file, automatically generated by
9584         gen-uni-tables.
9585
9586         Tests for module 'unictype/joininggroup-byname'.
9587         * modules/unictype/joininggroup-byname-tests: New file.
9588         * tests/unictype/test-joininggroup_byname.c: New file.
9589
9590         New module 'unictype/joininggroup-byname'.
9591         * modules/unictype/joininggroup-byname: New file.
9592         * lib/unictype/joininggroup_byname.c: New file.
9593         * lib/unictype/joininggroup_byname.gperf: New file.
9594
9595         Tests for module 'unictype/joininggroup-name'.
9596         * modules/unictype/joininggroup-name-tests: New file.
9597         * tests/unictype/test-joininggroup_name.c: New file.
9598
9599         New module 'unictype/joininggroup-name'.
9600         * modules/unictype/joininggroup-name: New file.
9601         * lib/unictype/joininggroup_name.c: New file.
9602         * lib/unictype/joininggroup_name.h: New file.
9603
9604         New module 'unictype/joiningtype-all'.
9605         * modules/unictype/joiningtype-all: New file.
9606
9607         Tests for module 'unictype/joiningtype-of'.
9608         * modules/unictype/joiningtype-of-tests: New file.
9609         * tests/unictype/test-joiningtype_of.c: New file.
9610         * tests/unictype/test-joiningtype_of.h: New file, automatically
9611         generated by gen-uni-tables.
9612
9613         New module 'unictype/joiningtype-of'.
9614         * modules/unictype/joiningtype-of: New file.
9615         * lib/unictype/joiningtype_of.c: New file.
9616         * lib/unictype/joiningtype_of.h: New file, automatically generated by
9617         gen-uni-tables.
9618
9619         Tests for module 'unictype/joiningtype-byname'.
9620         * modules/unictype/joiningtype-byname-tests: New file.
9621         * tests/unictype/test-joiningtype_byname.c: New file.
9622
9623         New module 'unictype/joiningtype-byname'.
9624         * modules/unictype/joiningtype-byname: New file.
9625         * lib/unictype/joiningtype_byname.c: New file.
9626
9627         Tests for module 'unictype/joiningtype-name'.
9628         * modules/unictype/joiningtype-name-tests: New file.
9629         * tests/unictype/test-joiningtype_name.c: New file.
9630
9631         New module 'unictype/joiningtype-name'.
9632         * modules/unictype/joiningtype-name: New file.
9633         * lib/unictype/joiningtype_name.c: New file.
9634
9635         unictype: Add support for Arabic shaping properties.
9636         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
9637         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
9638         declarations.
9639         (UC_JOINING_GROUP_*): New enumeration values.
9640         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
9641         declarations.
9642         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
9643         (unicode_joining_type): New variable.
9644         (UC_JOINING_GROUP_*): New enumeration values.
9645         (unicode_joining_group): New variable.
9646         (fill_arabicshaping, joining_type_as_c_identifier,
9647         output_joining_type_test, output_joining_type,
9648         joining_group_as_c_identifier, output_joining_group_test,
9649         output_joining_group): New functions.
9650         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
9651         fill_arabicshaping and output_joining_type_test, output_joining_type,
9652         output_joining_group_test, output_joining_group.
9653         Reported by Simon Josefsson.
9654
9655 2011-03-21  Jim Meyering  <meyering@redhat.com>
9656
9657         strftime: fix a bug in yesterday's change
9658         * lib/strftime.c (add): Accommodate width's initial value of -1.
9659         Otherwise, nstrftime would copy uninitialized data into
9660         the result buffer.
9661
9662 2011-03-21  Jim Meyering  <meyering@redhat.com>
9663
9664         tests: add strftime-tests module
9665         * tests/test-strftime.c: New file.
9666         * modules/strftime-tests: New module.
9667
9668 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9669
9670         strftime: don't assume a byte count fits in 'int'
9671         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
9672         found this problem by static analysis, using gcc -Wstrict-overflow
9673         (GCC 4.5.2, x86-64).  This reported an optimization that depended
9674         on an integer overflow having undefined behavior, but it turns out
9675         that the argument is a size, which might not fit in 'int' anyway,
9676
9677 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9678
9679         stdio: don't require ignore_value around fwrite
9680
9681         This patch works around libc bug 11959
9682         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
9683         Without this patch, applications must often write
9684         ignore_value (fwrite (...)) even though the ignore_value is
9685         not helpful here.  It's common to write many objects, using
9686         fwrite/printf/etc., and then use ferror to detect output error.
9687
9688         I considered making this patch optional, but decided against it,
9689         because libc is obviously being inconsistent here: there is no
9690         reason libc should insist that user code must inspect fwrite
9691         return's value without also insisting that it inspect printf's,
9692         putchar's, etc.  If user code wants to have a strict style where
9693         all these functions' values are checked (so that ferror need not
9694         be checked), we could add support for that style in a new gnulib
9695         module, but in the meantime it's better to be consistent and to
9696         support common usage.
9697
9698         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
9699         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
9700         that we are compiling in checking mode, and if not C++, and
9701         if not already wrapping fwrite for some other reason.
9702         (fwrite): #define to rpl_fwrite if the latter is defined.
9703
9704 2011-03-20  Bruno Haible  <bruno@clisp.org>
9705
9706         verror: Fix compilation error introduced on 2011-02-13.
9707         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
9708         instead of __attribute__.
9709         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9710
9711 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9712             Bruno Haible  <bruno@clisp.org>
9713
9714         socklen: do not depend on sys_socket
9715         While trying to modify Emacs to use gnulib's socklen module,
9716         I discovered a circular dependency: socklen depends on sys_socket
9717         and vice versa.  Emacs can use socklen, but it does not need
9718         sys_socket because it has its own substitute for sys/socket.h.
9719         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
9720         gl_TYPE_SOCKLEN_T.
9721         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
9722         gl_PREREQ_SYS_H_SOCKET.
9723         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
9724         gl_PREREQ_SYS_H_SOCKET.
9725         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
9726         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
9727         * modules/socklen (Depends-on): Do not depend on sys_socket.
9728         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
9729
9730 2011-03-20  Jim Meyering  <meyering@redhat.com>
9731
9732         maint.mk: sort file names *after* new transformation
9733         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
9734         prefix would have led to an unwarranted failure in GNU parted.
9735         Sort after that transformation.
9736
9737 2011-03-19  Jim Meyering  <meyering@redhat.com>
9738
9739         maint.mk: fix po-file syntax-check rule
9740         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
9741         Patch by Bruno Haible.
9742
9743 2011-03-19  Bruno Haible  <bruno@clisp.org>
9744
9745         socklen: Update comment.
9746         * m4/socklen.m4: Update comment about platforms.
9747
9748 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9749             Bruno Haible  <bruno@clisp.org>
9750
9751         inet_ntop, inet_pton: Simplify.
9752         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
9753         documented to provide socklen_t and we already depend on sys_socket.
9754         * modules/inet_pton (Depends-on): Likewise.
9755         * lib/arpa_inet.in.h: Adjust comment.
9756
9757 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9758             Bruno Haible  <bruno@clisp.org>
9759
9760         netdb: Simplify.
9761         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
9762         documented to provide socklen_t and we already depend on sys_socket.
9763         * lib/netdb.in.h: Adjust comment.
9764
9765 2011-03-19  Bruno Haible  <bruno@clisp.org>
9766
9767         sys_socket, netdb: Document problem with socklen_t.
9768         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
9769         platforms.
9770         * doc/posix-headers/netdb.texi: Likewise.
9771
9772 2011-03-18  Eric Blake  <eblake@redhat.com>
9773
9774         maint.mk: let po check work in VPATH build
9775         * top/maint.mk (po_file): Allow cfg.mk override.
9776         (sc_po_check): Allow VPATH use.
9777         Reported by Jiri Denemark.
9778
9779 2011-03-16  Jim Meyering  <meyering@redhat.com>
9780
9781         maint.mk: allow fine-grained syntax-check exclusion via Make variables
9782         Before, you would have had to create one .x-sc_ file per rule in order
9783         to exempt offending files.  Now, you may instead use a Make variable --
9784         usually defined in cfg.mk -- whose name identifies the affected rule.
9785         * top/maint.mk (_sc_excl): Define.
9786         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
9787         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
9788
9789 2011-03-13  Bruno Haible  <bruno@clisp.org>
9790
9791         ignore-value tests: Avoid warnings.
9792         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
9793         empty for gcc < 3.4.
9794
9795 2011-03-13  Bruno Haible  <bruno@clisp.org>
9796
9797         passfd: Fix link error on Solaris.
9798         * modules/passfd (Description): Correct.
9799         (Depends-on): Add socketlib.
9800         (Link): New section.
9801         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
9802
9803 2011-03-13  Bruno Haible  <bruno@clisp.org>
9804
9805         passfd: Fix link error on AIX 5.2.
9806         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
9807
9808 2011-03-13  Bruno Haible  <bruno@clisp.org>
9809
9810         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
9811         * lib/sys_socket.in.h: Include <stddef.h>.
9812         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
9813         CMSG_FIRSTHDR. Remove unused variable.
9814
9815 2011-03-13  Bruno Haible  <bruno@clisp.org>
9816
9817         passfd: Fix compilation error on OpenBSD.
9818         * lib/passfd.c: Include <sys/uio.h>.
9819
9820 2011-03-13  Bruno Haible  <bruno@clisp.org>
9821
9822         passfd test: Fix warnings.
9823         * tests/test-passfd.c: Include <sys/wait.h>.
9824         (main): Fix typo.
9825
9826 2011-03-13  Bruno Haible  <bruno@clisp.org>
9827
9828         passfd module, part 4, tweaks.
9829         * tests/test-passfd.c: Reorder includes.
9830         (main): Fix perror and printf calls.
9831
9832 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9833
9834         passfd module, part 4.
9835         * modules/passfd-tests: New file.
9836         * tests/test-passfd.c: New file.
9837
9838 2011-03-13  Jim Meyering  <meyering@redhat.com>
9839
9840         Makefile: rely on GNU make; derive syntax-check rule names
9841         Rather than requiring that each sc_ rule be listed as a dependent
9842         of "check", use features of GNU make to derive the list.
9843         * Makefile (syntax-check-rules): Define.
9844         (check): Depend on the new variable, not the hard-coded list.
9845
9846 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
9847             Bruno Haible  <bruno@clisp.org>
9848
9849         passfd module, part 3.
9850         * lib/passfd.h (recvfd): Add a flags argument.
9851         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
9852         (recvfd): Add a flags argument.
9853         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
9854         exists.
9855         * modules/passfd (Depends-on): Add cloexec.
9856         Suggested by Eric Blake.
9857
9858 2011-03-13  Bruno Haible  <bruno@clisp.org>
9859
9860         passfd module, part 2, tweaks.
9861         * modules/passfd (Files): Reorder.
9862         (Depends-on): Remove errno.
9863         (Include): Remove <sys/socket.h>, <sys/un.h>.
9864         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
9865         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
9866         specification header. Include <sys/socket.h> always. Don't include
9867         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
9868         (sendfd): Clarify that it sets errno when it fails.
9869         (recvfd): Fix specification.
9870
9871 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9872
9873         passfd module, part 2.
9874         * modules/passfd: New file.
9875         * lib/passfd.h: New file.
9876         * lib/passfd.c: New file.
9877
9878 2011-03-12  Bruno Haible  <bruno@clisp.org>
9879
9880         wcswidth, mbswidth: Avoid integer overflow.
9881         * lib/wcswidth.c: Include <limits.h>.
9882         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
9883         * lib/mbswidth.c: Include <limits.h>.
9884         (mbsnwidth): Avoid 'int' overflow.
9885         Reported by Jim Meyering.
9886
9887 2011-03-12  Bruno Haible  <bruno@clisp.org>
9888
9889         futimens, utimensat: Avoid endless recursion on Solaris 10.
9890         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
9891         Solaris.
9892         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
9893         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
9894
9895 2011-03-11  Jim Meyering  <meyering@redhat.com>
9896
9897         maint.mk: relax a regexp to accommodate other formatting styles
9898         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
9899         between "ngettext" and the following "(".
9900
9901 2011-03-11  Pádraig Brady <P@draigBrady.com>
9902
9903         maint.mk: suppress a false positive warning
9904         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
9905         diagnostics are marked with ngettext.
9906
9907 2011-03-10  Eric Blake  <eblake@redhat.com>
9908
9909         wchar: add explicit dependencies, for Tru64
9910         * modules/mbmemcasecoll (Depends-on): Add wchar.
9911         * modules/mbtowc (Depends-on): Likewise.
9912         * modules/vasnprintf (Depends-on): Likewise.
9913         * modules/unistdio/u-printf-args (Depends-on): Likewise.
9914         * modules/wctomb (Depends-on): Likewise.
9915         Reported by Peter O'Gorman.
9916
9917 2011-03-08  Bruno Haible  <bruno@clisp.org>
9918
9919         passfd module, part 1, tweaks.
9920         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
9921         Improve indentation. Improve AC_MSG_CHECKING messages.
9922         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
9923         gl_SOCKET_FAMILIES.
9924
9925 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9926
9927         passfd module, part 1.
9928         * m4/afunix.m4: New file.
9929         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
9930         sockets.
9931
9932 2011-03-08  Bruno Haible  <bruno@clisp.org>
9933
9934         regex-quote: New API.
9935         * lib/regex-quote.h: Include <stdbool.h>.
9936         (struct regex_quote_spec): New type.
9937         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
9938         New declarations.
9939         (regex_quote_length, regex_quote_copy, regex_quote): Take a
9940         'const struct regex_quote_spec *' argument.
9941         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
9942         (pcre_special): New constant.
9943         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
9944         New functions.
9945         (regex_quote_length, regex_quote_copy, regex_quote): Take a
9946         'const struct regex_quote_spec *' argument.
9947         * modules/regex-quote (Depends-on): Add stdbool.
9948         * tests/test-regex-quote.c (check): Update for new API. Add test for
9949         anchored results.
9950         * NEWS: Mention the API change.
9951         Reported by Reuben Thomas and Eric Blake.
9952
9953 2011-03-06  Bruno Haible  <bruno@clisp.org>
9954
9955         regex-quote: Fix creation of POSIX extended regular expressions.
9956         * lib/regex-quote.c (ere_special): Add grouping and alternation
9957         operators.
9958
9959 2011-03-05  Bruno Haible  <bruno@clisp.org>
9960
9961         doc: Improve doc regarding autopoint vs. gnulib.
9962         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
9963         disable autopoint while running autoreconf.
9964         Suggested by Ralf Wildenhues.
9965
9966 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9967
9968         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
9969         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
9970
9971 2011-03-03  Bruce Korb  <bkorb@gnu.org>
9972
9973         parse-duration: remove xalloc.h dependency
9974         * lib/parse-duration.c (parse_period): handle NULL return from
9975         strdup instead of calling xstrdup().
9976         * modules/parse-duration: remove "xalloc" dependency
9977
9978 2011-03-03  Matthew Booth  <mbooth@redhat.com>
9979
9980         bootstrap: honor m4_base when running aclocal
9981         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
9982
9983 2011-03-02  Jim Meyering  <meyering@redhat.com>
9984
9985         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
9986         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
9987         on request from Matt Booth.
9988
9989 2011-03-01  Eric Blake  <eblake@redhat.com>
9990
9991         test-link: work on Hurd
9992         * tests/test-link.h (test_link): Hurd rejects linking directories
9993         with EISDIR instead of the POSIX-mandated EPERM.
9994
9995 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
9996
9997         stdio: simplify by moving files to printf-posix, sigpipe
9998         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
9999         since this symbol is needed only if printf is replaced.
10000         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
10001         Require gl_ASM_SYMBOL_PREFIX.
10002         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
10003         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
10004         (Depends-on): Add 'raise'.
10005         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
10006         * modules/stdio (Files): Remove lib/stdio-write.c,
10007         m4/asm-underscore.m4.
10008         (Depends-on): Remove 'raise'.
10009
10010         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
10011         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
10012         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
10013         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
10014
10015 2011-02-28  Bruno Haible  <bruno@clisp.org>
10016
10017         localcharset: Assume ANSI C behaviour of free().
10018         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
10019         calling free().
10020         Suggested by Simon Josefsson <simon@josefsson.org>.
10021
10022 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
10023             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
10024             Bruno Haible  <bruno@clisp.org>  (tiny change)
10025
10026         On Cygwin, use /proc file system instead of win32 API.
10027         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
10028         Win32 file names.
10029         (DllMain): Simplify by removing Cygwin specific code.
10030         (find_shared_library_fullname): Use Linux specific implementation also
10031         for Cygwin.
10032         (get_shared_library_fullname): Update accordingly.
10033         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
10034         Win32 file names.
10035         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
10036         Cygwin specific code.
10037
10038 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
10039             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
10040
10041         Fix OpenMP flag detection for various Fortran compilers.
10042         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
10043         OpenMP-conditional compilation construct, to force compile
10044         failure with missing OpenMP flag.
10045         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
10046
10047 2011-02-25  Eric Blake  <eblake@redhat.com>
10048
10049         strstr: expand test coverage
10050         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
10051         compilation.
10052         * tests/test-memmem.c (main): Duplicate tests.
10053         * tests/test-strcasestr.c (main): Likewise.
10054         * tests/test-c-strcasestr.c (main): Likewise.
10055
10056 2011-02-25  Jim Meyering  <meyering@redhat.com>
10057
10058         maint.mk: detect missing-NL-at-EOF, too
10059         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
10060         it also detects when a file lacks a newline at EOF.
10061         (require_exactly_one_NL_at_EOF_): Renamed from
10062         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
10063         since people may well have .x-sc_... file names tied to the
10064         existing name.  Suggested by Eric Blake.
10065
10066 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
10067
10068         dirname: move m4/dos.m4 functionality into lib/dosname.h
10069
10070         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
10071         extracts symbols from it, puts them into config.h; but it's much
10072         easier to use the symbols directly.  filename.h already does this,
10073         but it disagrees with dos.m4 in some respects.  This patch
10074         introduces a different include file dosname.h that packages up
10075         dos.m4, and then later we can work on merging filename.h and
10076         dosname.h.  Applications that need only the easy-to-configure
10077         symbols should consider including dosname.h rather than dirname.h.
10078         * NEWS: Mention incompatible changes.
10079         * m4/dos.m4: Remove.
10080         * lib/dosname.h, modules/dosname: New files.
10081         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
10082         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
10083         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
10084         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
10085         Include dosname.h, not dirname.h.
10086         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
10087         Include dosname.h, for definitions of symbols like ISSLASH
10088         that used to be in config.h.
10089         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
10090         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
10091         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10092         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10093         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
10094         * modules/rmdir (Files): Likewise.
10095         * modules/stat (Files): Likewise.
10096         * modules/unlink (Files): Likewise.
10097         * modules/dirname-lgpl (Depends-on): Add dosname.
10098         * modules/lstat (Depends-on): Likewise.
10099         * modules/openat (Depends-on): Likewise.
10100         * modules/rmdir (Depends-on): Likewise.
10101         * modules/savewd (Depends-on): Likewise.
10102         * modules/stat (Depends-on): Likewise.
10103         * modules/unlink (Depends-on): Likewise.
10104         * modules/openat (Depends-on): Remove dirname-lgpl.
10105         * modules/savewd (Depends-on): Likewise.
10106         * tests/test-dirname.c: Do not use removed symbols like
10107         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
10108         the remaining symbols, e.g., ISSLASH ('\\').
10109
10110 2011-02-25  Eric Blake  <eblake@redhat.com>
10111
10112         strstr: revert patches that introduced bug and pessimization
10113         * lib/str-two-way.h: Add another reference.
10114         (two_way_short_needle, two_way_long_needle): Revert changes from
10115         2011-02-24; they pessimize search speed.
10116         (critical_factorization): Partially revert changes from
10117         2010-06-22; they violate the requirement that the left half of the
10118         needle be smaller than the period of the needle.
10119
10120 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
10121
10122         filenamecat: remove unnecessary dependency on dirname-lgpl
10123         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
10124         is no direct dependency, just an indirect one via filenamecat-lgpl.
10125
10126         remove: remove unnecessary use of m4/dos.m4
10127         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
10128         * modules/remove (FILES): Remove m4/dos.m4.
10129
10130         * lib/openat-proc.c: Don't include dirname.h; not needed.
10131
10132         backupfile: remove unnecessary use of m4/dos.m4
10133         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
10134         of its symbols are used by the backupfile code.  backupfile.c does
10135         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
10136         for the rare case of programs that want all their backup file
10137         names to live within 8+3 limits, and dos.m4 doesn't address that.
10138         * modules/backupfile (Files): Remove m4/dos.m4.
10139
10140 2011-02-24  Jim Meyering  <meyering@redhat.com>
10141
10142         strstr: fix a bug whereby strstr would mistakenly return NULL
10143         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
10144         in period calculation.
10145         (two_way_long_needle): Likewise.
10146         The original problem was reported by Mike Stump in
10147         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
10148         Ralf Wildenhues provided the short needle and haystack.
10149         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
10150         Add a more involved test to trigger the bug in two_way_long_needle.
10151
10152 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
10153
10154         gnulib-tool: remove use of bold display in help screen
10155         * gnulib-tool (func_usage): Do not use bold display anymore in the
10156         help screen.  That was just meant to be a temporary emphasis for a
10157         backward-incompatible change.
10158
10159 2011-02-23  Bruno Haible  <bruno@clisp.org>
10160
10161         Fix misindentation of preprocessor directives.
10162         * lib/argp-namefrob.h: Reindent preprocessor directives.
10163         * lib/getopt_int.h (struct _getopt_data): Likewise.
10164         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
10165         * lib/vasnprintf.c (decode_long_double): Likewise.
10166         * tests/test-argmatch.c: Insert blank lines, for clarity.
10167         * tests/test-exclude.c: Likewise.
10168
10169 2011-02-22  Bruno Haible  <bruno@clisp.org>
10170
10171         ioctl: Fix for MacOS X in 64-bit mode.
10172         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
10173         value.
10174         Suggested by Eric Blake.
10175         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
10176
10177 2011-02-22  Jim Meyering  <meyering@redhat.com>
10178
10179         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
10180         * Makefile (sc_cpp_indent_check): Don't limit the check to files
10181         in lib/.
10182
10183 2011-02-22  Eric Blake  <eblake@redhat.com>
10184
10185         maint: avoid any CDPATH issue
10186         * Makefile (sc_cpp_indent_check): Anchor cd argument.
10187
10188         maint: adjust cpp indentation for my modules, as well
10189         * Makefile (sc_cpp_indent_check): Add my name.
10190         * lib/fbufmode.c: Filter through cppi.
10191         * lib/fpurge.c: Likewise.
10192         * lib/freadable.c: Likewise.
10193         * lib/freading.c: Likewise.
10194         * lib/fwritable.c: Likewise.
10195         * lib/fwriting.c: Likewise.
10196         * lib/sigaction.c: Likewise.
10197
10198 2011-02-22  Jim Meyering  <meyering@redhat.com>
10199
10200         maint: adjust cpp indentation to reflect nesting depth
10201         I.e., in a block of code that begins with an unnested "#if",
10202         put one space between the "#" in column 1 and following token.
10203         For example,
10204         -#include <sys/vfs.h>
10205         +# include <sys/vfs.h>
10206         Do this only in .c files that are part of a module I maintain.
10207         * lib/linkat.c: Filter through cppi.
10208         * lib/nanosleep.c: Likewise.
10209         * lib/openat.c: Likewise.
10210         * lib/openat-die.c: Likewise.
10211         * lib/dup3.c: Likewise.
10212         * lib/fchownat.c: Likewise.
10213         * lib/flock.c: Likewise.
10214         * lib/fsync.c: Likewise.
10215         * lib/fts.c: Likewise.
10216         * lib/getpass.c: Likewise.
10217         * lib/gettimeofday.c: Likewise.
10218         * lib/userspec.c: Likewise.
10219         * Makefile (sc_cpp_indent_check): New rule, to check this.
10220
10221 2011-02-22  Bruno Haible  <bruno@clisp.org>
10222
10223         New module 'wctomb'.
10224         * lib/stdlib.in.h (wctomb): New declaration.
10225         * lib/wctomb.c: New file.
10226         * lib/wctomb-impl.h: New file.
10227         * m4/wctomb.m4: New file.
10228         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
10229         REPLACE_WCTOMB.
10230         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
10231         REPLACE_WCTOMB.
10232         * modules/wctomb: New file.
10233         * tests/test-stdlib-c++.cc: Test signature of wctomb.
10234         * doc/posix-functions/wctomb.texi: Mention the new module.
10235         * modules/wctob (Depends-on): Add wctomb.
10236
10237 2011-02-22  Bruno Haible  <bruno@clisp.org>
10238
10239         New module 'mbtowc'.
10240         * lib/stdlib.in.h (mbtowc): New declaration.
10241         * lib/mbtowc.c: New file.
10242         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
10243         * m4/mbtowc.m4: New file.
10244         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
10245         REPLACE_MBTOWC.
10246         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
10247         REPLACE_MBTOWC.
10248         * modules/mbtowc: New file.
10249         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
10250         * doc/posix-functions/mbtowc.texi: Mention the new module.
10251         * modules/btowc (Depends-on): Add mbtowc.
10252
10253 2011-02-22  Bruno Haible  <bruno@clisp.org>
10254
10255         wcrtomb: Add more tests for native Windows platforms.
10256         * tests/test-wcrtomb-w32-1.sh: New file.
10257         * tests/test-wcrtomb-w32-2.sh: New file.
10258         * tests/test-wcrtomb-w32-3.sh: New file.
10259         * tests/test-wcrtomb-w32-4.sh: New file.
10260         * tests/test-wcrtomb-w32-5.sh: New file.
10261         * tests/test-wcrtomb-w32.c: New file.
10262         * modules/wcrtomb-tests (Files): Add them.
10263         (Makefile.am): Arrange to run these tests.
10264         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
10265         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
10266
10267 2011-02-20  Bruno Haible  <bruno@clisp.org>
10268
10269         wcrtomb: Enhance test.
10270         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
10271
10272 2011-02-20  Bruno Haible  <bruno@clisp.org>
10273
10274         mbrtowc: Tiny optimization.
10275         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
10276
10277 2011-02-20  Jim Meyering  <meyering@redhat.com>
10278
10279         test-exclude.c: remove unmatched #endif
10280         * tests/test-exclude.c: Remove stray #endif, left over from
10281         the change of a week ago.
10282
10283 2011-02-19  Jim Meyering  <meyering@redhat.com>
10284
10285         git-version-gen: skip "-dirty" check when appropriate
10286         * build-aux/git-version-gen: Don't run any git commands when the
10287         version string comes from .tarball-version.  Prior to this, we
10288         would run git update-index --refresh even from a just-unpacked
10289         tarball directory, and that could affect a .git/ directory in a
10290         parent of the build directory.  Reported by Mike Frysinger.
10291
10292 2011-02-19  Bruno Haible  <bruno@clisp.org>
10293
10294         unictype/property-byname: Reduce the size of the 'data' segment.
10295         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
10296
10297 2011-02-19  Bruno Haible  <bruno@clisp.org>
10298
10299         unictype/scripts: Reduce the size of the 'data' segment.
10300         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
10301         '%pic'.
10302         * lib/unictype/scripts_byname.gperf: Regenerated.
10303
10304 2011-02-19  Bruno Haible  <bruno@clisp.org>
10305
10306         stdint: Update documentation.
10307         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
10308
10309 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
10310
10311         stdint: omit redundant check for wchar.h
10312         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
10313         always tests whether wchar.h exists, so remove the now-redundant test.
10314
10315 2011-02-18  Bruno Haible  <bruno@clisp.org>
10316
10317         stdint: Cut dependency to module 'wchar'.
10318         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
10319         include the necessary prerequisites.
10320         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
10321         * modules/stdint (Depends-on): Remove wchar.
10322         (Makefile.am): Substitute HAVE_WCHAR_H.
10323         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
10324
10325 2011-02-18  Eric Blake  <eblake@redhat.com>
10326
10327         longlong: skip, rather than fail, on cross-compilation
10328         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
10329         when cross-compiling; regression from 2011-02-16.
10330
10331 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
10332
10333         * NEWS: Mention 2011-02-08 change to stdlib.
10334
10335 2011-02-17  Bruno Haible  <bruno@clisp.org>
10336
10337         getloadavg: Add comments about platforms.
10338         * m4/getloadavg.m4: Add comment.
10339         * lib/getloadavg.c: Likewise.
10340
10341 2011-02-17  Bruno Haible  <bruno@clisp.org>
10342
10343         getloadavg: Fix link error on Solaris 2.6.
10344         * modules/getloadavg (Link): New section.
10345         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
10346         linking test-getloadavg.
10347         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
10348         getloadavg.
10349
10350 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
10351
10352         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
10353         It was 'int', but this doesn't match the IRIX 6.5 manual.
10354         Suggested by Bruno Haible in
10355         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
10356
10357 2011-02-17  Bruno Haible  <bruno@clisp.org>
10358
10359         havelib: Fix comments.
10360         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
10361         change.
10362
10363 2011-02-17  Bruno Haible  <bruno@clisp.org>
10364
10365         havelib: Update config.rpath.
10366         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
10367
10368 2011-02-17  Bruno Haible  <bruno@clisp.org>
10369
10370         getloadavg test: Add some plausibility checks.
10371         * tests/test-getloadavg.c (check_avg): Print a warning when the value
10372         is improbable.
10373
10374 2011-02-16  Eric Blake  <eblake@redhat.com>
10375
10376         maintainer-makefile: make syntax-check a no-op from tarballs
10377         * top/maint.mk (no-vc-detected): New rule.
10378         (local-checks-available): Use it to avoid hanging if someone tries
10379         'make syntax-check' from a tarball.  Also append to any non-syntax
10380         checks already defined in cfg.mk.
10381
10382 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
10383
10384         longlong: tune, particularly for common case of c99
10385
10386         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
10387         or running anything if c99, or if unsigned long long int does not
10388         work.  In either case, we know the answer without further tests.
10389         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
10390         it at most once, and use its results for both long long int and
10391         unsigned long long int.  This is more likely to be efficient in
10392         the common case where the program wants to check for both long
10393         long int and unsigned long long int.
10394         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
10395         since the answer is already known.
10396
10397 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
10398
10399         getloadavg: set errno
10400         * lib/getloadavg.c: Set errno when returning -1.  If no other
10401         error number looks appropriate, set it to ENOSYS if the getloadavg
10402         looks like it can't possibly ever work, ENOTSUP otherwise.
10403         Suggested by Bruno Haible in
10404         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
10405
10406         getloadavg: trim unused parts and speed up 'configure'
10407         * NEWS: Document this.
10408         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
10409         always compiled if getloadavg is absent.
10410         Move test code to ...
10411         * tests/test-getloadavg.c: New file, containing previous
10412         contents of test from lib/getloadavg.c.  It also contains
10413         suggestions by Bruno Haible in
10414         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
10415         * modules/getloadavg-tests: New file.
10416         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
10417         Do tests in the same order as they're needed for getloadavg.c.
10418         Omit setgid-related tests that generate symbols KMEM_GROUP,
10419         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
10420         Do only the tests that are needed to see whether the system has
10421         getloadavg, moving the other tests into ...
10422         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
10423         NLIST_NAME_UNION; nobody should be using it.  Do not define
10424         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
10425         relevant, as the user of this module shouldn't care how getloadavg
10426         is implemented.
10427
10428         getloadavg: omit unused var
10429         * lib/getloadavg.c (getloadavg): Omit unused local variable.
10430
10431 2011-02-15  Jim Meyering  <meyering@redhat.com>
10432
10433         doc: update users.txt
10434         * users.txt: Update iwhd's URL.
10435
10436 2011-02-13  Bruno Haible  <bruno@clisp.org>
10437
10438         Consistent macro naming for macros that use GCC __attribute__.
10439         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
10440         _ATTRIBUTE_NONNULL_.
10441         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
10442         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
10443         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
10444         ATTRIBUTE_DEPRECATED.
10445         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
10446         ATTRIBUTE_NORETURN.
10447         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10448         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10449         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10450         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10451         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
10452         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
10453         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
10454         ATTRIBUTE_SENTINEL.
10455         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
10456         ATTRIBUTE_RETURN_CHECK.
10457         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
10458         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
10459         ATTRIBUTE_NORETURN.
10460         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
10461         Reported by Paul Eggert.
10462
10463 2011-02-13  Bruno Haible  <bruno@clisp.org>
10464
10465         Don't interfere with a program's definition of __attribute__.
10466         * lib/argp.h (__attribute__): Remove definition.
10467         (_GL_ATTRIBUTE_FORMAT): New macro.
10468         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
10469         * lib/argp-fmtstream.h (__attribute__): Remove definition.
10470         (_GL_ATTRIBUTE_FORMAT): New macro.
10471         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
10472         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
10473         GCC 3 or newer.
10474         * lib/error.h (__attribute__): Remove definition.
10475         (_GL_ATTRIBUTE_FORMAT): New macro.
10476         (error, error_at_line): Use it.
10477         * lib/hash.h (__attribute__): Remove definition.
10478         (ATTRIBUTE_WUR): Update definition. Define always.
10479         * lib/openat.h (__attribute__): Remove definition.
10480         (ATTRIBUTE_NORETURN): Update definition. Define always.
10481         * lib/sigpipe-die.h (__attribute__): Remove definition.
10482         (ATTRIBUTE_NORETURN): Update definition. Define always.
10483         * lib/vasnprintf.h (__attribute__): Remove definition.
10484         (_GL_ATTRIBUTE_FORMAT): New macro.
10485         (asnprintf, vasnprintf): Use it.
10486         * lib/xalloc.h (__attribute__): Remove definition.
10487         (ATTRIBUTE_NORETURN): Update definition. Define always.
10488         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
10489         * lib/xmemdup0.h (__attribute__): Remove definition.
10490         (ATTRIBUTE_NORETURN): Update definition. Define always.
10491         * lib/xprintf.h (__attribute__): Remove definition.
10492         (_GL_ATTRIBUTE_FORMAT): New macro.
10493         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
10494         * lib/xstrtol.h (__attribute__): Remove definition.
10495         (ATTRIBUTE_NORETURN): Update definition. Define always.
10496         * lib/xvasprintf.h (__attribute__): Remove definition.
10497         (_GL_ATTRIBUTE_FORMAT): New macro.
10498         (xasprintf, xvasprintf): Use it.
10499         * tests/test-argmatch.c (__attribute__): Remove definition.
10500         (ATTRIBUTE_NORETURN): Update definition. Define always.
10501         * tests/test-exclude.c (__attribute__): Remove definition.
10502         (ATTRIBUTE_NORETURN): Update definition. Define always.
10503         Reported by Paul Eggert.
10504
10505 2011-02-13  Bruno Haible  <bruno@clisp.org>
10506
10507         mbrtowc: Add more tests for native Windows platforms.
10508         * tests/test-mbrtowc-w32-1.sh: New file.
10509         * tests/test-mbrtowc-w32-2.sh: New file.
10510         * tests/test-mbrtowc-w32-3.sh: New file.
10511         * tests/test-mbrtowc-w32-4.sh: New file.
10512         * tests/test-mbrtowc-w32-5.sh: New file.
10513         * tests/test-mbrtowc-w32.c: New file.
10514         * modules/mbrtowc-tests (Files): Add them.
10515         (Makefile.am): Arrange to run these tests.
10516         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
10517         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
10518
10519 2011-02-13  Bruno Haible  <bruno@clisp.org>
10520
10521         mbrtowc: Work around native Windows bug.
10522         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
10523         guess when no suitable locale for testing was found.
10524         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
10525
10526 2011-02-13  Bruno Haible  <bruno@clisp.org>
10527
10528         mbsinit: Work around mingw bug.
10529         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
10530         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
10531         Windows.
10532         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
10533
10534 2011-02-13  Bruno Haible  <bruno@clisp.org>
10535
10536         mbsinit: Don't crash for a NULL argument.
10537         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
10538         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
10539
10540 2011-02-13  Bruno Haible  <bruno@clisp.org>
10541
10542         Don't interfere with a program's definition of __attribute__.
10543         * lib/stdio.in.h (__attribute__): Remove definition.
10544         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
10545         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
10546         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
10547         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
10548         * lib/string.in.h (__attribute__): Remove definition.
10549         Reported by Paul Eggert.
10550
10551 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10552
10553         stdlib: don't get in the way of non-GCC __attribute__
10554         See thread starting at
10555         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
10556         Revert previous stdlib change, installing the following instead:
10557         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
10558         to get in the way of a non-GCC compiler that supports __attribute__.
10559         (_GL_ATTRIBUTE_RETURN): New macro.
10560         (_Exit): Use it instead of __attribute__.
10561
10562 2011-02-12  Bruno Haible  <bruno@clisp.org>
10563
10564         quotearg test: Avoid test failure on mingw.
10565         * tests/test-quotearg.sh: Convert the locale identifier from native
10566         Windows syntax to Unix syntax.
10567
10568 2011-02-12  Bruno Haible  <bruno@clisp.org>
10569
10570         setlocale: Prefer gnulib's override over libintl's override.
10571         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
10572         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
10573         GNULIB_defined_setlocale is set.
10574
10575 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10576
10577         stdlib: support non-GCC __attribute__
10578
10579         Fix a serious and tricky problem encountered when attempting to
10580         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
10581         5.5, but it crashed due to memory corruption on Solaris 10 with
10582         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
10583         bits that are otherwise zero.  This tagging is optional inside
10584         Emacs but is preferred and is used when __attribute__ ((__aligned
10585         (8))) works, as it does with both recent-enough GCC and with Sun C
10586         5.11.  However, Sun C 5.11 is not GCC and does not #define
10587         __GNUC__ and __GNUC_MINOR__.
10588
10589         When I added the getloadavg module to Emacs, it brought in
10590         stdlib.in.h, which contained this fragment:
10591
10592            #ifndef __attribute__
10593            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
10594            #  define __attribute__(Spec)   /* empty */
10595            # endif
10596            #endif
10597
10598         When files that include <stdlib.h> were compiled with Sun C 5.11,
10599         the above code disabled __attribute__ ((__aligned (8))), which
10600         caused variables to not be properly aligned, which eventually led
10601         to the pointer corruption mentioned above.  (This was a bit hard
10602         to diagnose, unfortunately.)
10603
10604         Several "#define __attribute__(X) /* empty */" code snippets need
10605         to be eradicated from Gnulib to work with non-GCC compilers that
10606         support __attribute__.  The Autoconf way to do this is to test for
10607         each kind of attribute that we want support for, and selectively
10608         enable that in source code.
10609
10610         Fix this problem just for stdlib.h, by adding a test for the
10611         __noreturn__ attribute, and change stdlib.in.h to use that test
10612         when needed.  This technique can be easily generalized to the
10613         other *.in.h files and attributes, and a similar technique can be
10614         used for *.h and *.c files.  This patch is enough to solve the
10615         problem for Emacs + getloadavg, and I thought I'd publish it for
10616         feedback before undertaking further, similar fixes in other
10617         modules.
10618
10619         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
10620         because it's not needed for stdlib.h.  It merely substitutes the
10621         value directly into stdlib.h.  We may well need to #define it, or
10622         similar symbols, for other modules, but it's nice to also have an
10623         option to not #define it for applications like Emacs that do not
10624         need it.
10625
10626         * lib/stdlib.in.h (__attribute__): Do not #define.
10627         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
10628         be defined only if the _Exit module is also used.
10629         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
10630         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
10631         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
10632         platforms.
10633         * modules/_Exit (Files): Add m4/attribute.m4.
10634         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
10635         * m4/attribute.m4: New file.
10636
10637 2011-02-12  Bruno Haible  <bruno@clisp.org>
10638
10639         wcsrtombs: Work around bug on native Windows.
10640         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
10641         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
10642         instead of len.
10643         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
10644
10645 2011-02-12  Bruno Haible  <bruno@clisp.org>
10646
10647         mbsrtowcs: Work around bug on native Windows.
10648         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
10649         against mingw bug.
10650         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
10651
10652 2011-02-12  Bruno Haible  <bruno@clisp.org>
10653
10654         Avoid setlocale bugs in tests.
10655         * modules/btowc (Dependencies): Add setlocale.
10656         * modules/c-strcase (Dependencies): Likewise.
10657         * modules/mbmemcasecmp (Dependencies): Likewise.
10658         * modules/mbmemcasecoll (Dependencies): Likewise.
10659         * modules/mbrtowc (Dependencies): Likewise.
10660         * modules/mbscasecmp (Dependencies): Likewise.
10661         * modules/mbscasestr (Dependencies): Likewise.
10662         * modules/mbschr (Dependencies): Likewise.
10663         * modules/mbscspn (Dependencies): Likewise.
10664         * modules/mbsinit (Dependencies): Likewise.
10665         * modules/mbsncasecmp (Dependencies): Likewise.
10666         * modules/mbsnrtowcs (Dependencies): Likewise.
10667         * modules/mbspbrk (Dependencies): Likewise.
10668         * modules/mbspcasecmp (Dependencies): Likewise.
10669         * modules/mbsrchr (Dependencies): Likewise.
10670         * modules/mbsrtowcs (Dependencies): Likewise.
10671         * modules/mbsspn (Dependencies): Likewise.
10672         * modules/mbsstr (Dependencies): Likewise.
10673         * modules/nl_langinfo (Dependencies): Likewise.
10674         * modules/quotearg (Dependencies): Likewise.
10675         * modules/unicase/locale-language (Dependencies): Likewise.
10676         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
10677         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
10678         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
10679         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
10680         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
10681         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
10682         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
10683         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
10684         * modules/vasnprintf-posix (Dependencies): Likewise.
10685         * modules/wcrtomb (Dependencies): Likewise.
10686         * modules/wcsnrtombs (Dependencies): Likewise.
10687         * modules/wcsrtombs (Dependencies): Likewise.
10688
10689 2011-02-12  Bruno Haible  <bruno@clisp.org>
10690
10691         setlocale: Workaround native Windows bug.
10692         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
10693         succeeds but sets LC_CTYPE to "C", report a failure.
10694         * tests/test-setlocale2.sh: New file.
10695         * tests/test-setlocale2.c: New file.
10696         * modules/setlocale-tests (Files): Add the new files.
10697         (Makefile.am): Enable test-setlocale2.sh test.
10698         * doc/posix-functions/setlocale.texi: Mention workaround.
10699
10700 2011-02-11  Bruno Haible  <bruno@clisp.org>
10701
10702         Tests for module 'setlocale'.
10703         * modules/setlocale-tests: New file.
10704         * tests/test-setlocale1.sh: New file.
10705         * tests/test-setlocale1.c: New file.
10706
10707         New module 'setlocale'.
10708         * lib/locale.in.h (setlocale): New declaration.
10709         * lib/setlocale.c: New file, based on
10710         gettext/gettext-runtime/intl/setlocale.c.
10711         * m4/setlocale.m4: New file.
10712         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
10713         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
10714         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
10715         REPLACE_SETLOCALE.
10716         * modules/setlocale: New file.
10717         * tests/test-locale-c++.cc: Test the declaration of setlocale.
10718         * doc/posix-functions/setlocale.texi: Mention the new module.
10719
10720 2011-02-11  Bruno Haible  <bruno@clisp.org>
10721
10722         Prepare for locale dependent tests on mingw.
10723         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
10724         because it has the wrong locale encoding.
10725         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
10726         French_France.1252 instead of "fr".
10727         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
10728         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
10729         because it has the wrong locale encoding.
10730         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
10731         native Windows, try Turkish_Turkey.65001.
10732         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
10733         Chinese_China.54936.
10734
10735         Prepare for locale dependent tests on mingw.
10736         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
10737         differently.
10738         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
10739         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
10740         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
10741         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10742
10743 2011-02-11  Eric Blake  <eblake@redhat.com>
10744
10745         strptime: avoid compiler warnings
10746         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
10747         compiler warnings about dead code.
10748         Reported by Daniel P. Berrange.
10749
10750 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
10751
10752         doc: update users.txt
10753         * users.txt: Add rcs.
10754
10755 2011-02-10  John W. Eaton  <jwe@gnu.org>
10756
10757         doc: update users.txt
10758         * users.txt: Add octave.
10759
10760 2011-02-10  Jim Meyering  <meyering@redhat.com>
10761
10762         doc: update users.txt
10763         * users.txt: Add iwhd.
10764
10765 2011-02-09  Bruno Haible  <bruno@clisp.org>
10766
10767         gnulib-tool: Make copyright notice adjustment more robust.
10768         * gnulib-tool (func_import): In sed_transform_main_lib_file,
10769         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
10770         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
10771         License".
10772         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
10773
10774 2011-02-06  Bruno Haible  <bruno@clisp.org>
10775
10776         New module 'towctrans'.
10777         * modules/towctrans: New file.
10778         * lib/wctype.in.h (towctrans): New declaration.
10779         * lib/towctrans.c: New file.
10780         * lib/towctrans-impl.h: New file.
10781         * m4/towctrans.m4: New file.
10782         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
10783         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
10784         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
10785         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
10786         * doc/posix-functions/towctrans.texi: Mention the new module.
10787
10788 2011-02-06  Bruno Haible  <bruno@clisp.org>
10789
10790         New module 'wctrans'.
10791         * modules/wctrans: New file.
10792         * lib/wctype.in.h (wctrans): New declaration.
10793         * lib/wctrans.c: New file.
10794         * lib/wctrans-impl.h: New file.
10795         * m4/wctrans.m4: New file.
10796         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
10797         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
10798         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
10799         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
10800         * doc/posix-functions/wctrans.texi: Mention the new module.
10801
10802 2011-02-06  Bruno Haible  <bruno@clisp.org>
10803
10804         New module 'iswctype'.
10805         * modules/iswctype: New file.
10806         * lib/wctype.in.h (iswctype): New declaration.
10807         * lib/iswctype.c: New file.
10808         * lib/iswctype-impl.h: New file.
10809         * m4/iswctype.m4: New file.
10810         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
10811         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
10812         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
10813         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
10814         * doc/posix-functions/iswctype.texi: Mention the new module and the
10815         HP-UX 11.00 problem.
10816
10817 2011-02-06  Bruno Haible  <bruno@clisp.org>
10818
10819         New module 'wctype'.
10820         * modules/wctype: Change to represent the wctype() substitute.
10821         * lib/wctype.in.h (wctype): New declaration.
10822         * lib/wctype.c: New file.
10823         * lib/wctype-impl.h: New file.
10824         * m4/wctype.m4: New file.
10825         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
10826         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
10827         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
10828         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
10829         * doc/posix-functions/wctype.texi: Mention the new module and the
10830         HP-UX 11.00 problem.
10831
10832 2011-02-06  Bruno Haible  <bruno@clisp.org>
10833
10834         wctype-h: Ensure wctype_t and wctrans_t are defined.
10835         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
10836         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
10837         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
10838         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
10839         HAVE_WCTRANS_T.
10840         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
10841
10842 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
10843
10844         flock: fix license typo
10845
10846         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
10847         omitted.
10848
10849 2011-02-08  Bruno Haible  <bruno@clisp.org>
10850
10851         Split large sed scripts, for HP-UX sed.
10852         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
10853         to avoid HP-UX limit of 99 commands, in the near future.
10854         * modules/stdlib (Makefile.am): Likewise.
10855         * modules/unistd (Makefile.am): Likewise.
10856         * modules/wchar (Makefile.am): Likewise.
10857         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10858         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
10859         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
10860
10861 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10862             Bruno Haible  <bruno@clisp.org>
10863
10864         stdlib: improve random_r modularization
10865         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
10866         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
10867         you also need the random_r module to get this material right.
10868         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
10869         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
10870         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
10871
10872 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10873
10874         stdlib: don't depend on stdint
10875         * lib/stdlib.in.h: Don't include <stdint.h> merely because
10876         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
10877         be independent of whether stdint.h is needed.
10878         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
10879         here, instead of ...
10880         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
10881         struct random_data should be using the random_r module, not just
10882         the stdlib module (which wouldn't make sense: what package needs
10883         just struct random_data without also needing random_r?).
10884         * modules/stdlib (Depends-on): Remove stdint.
10885
10886         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
10887         See the thread rooted at
10888         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
10889         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
10890         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
10891         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
10892         __VMS)); previously it was always included (via fcntl--.h).
10893         (getloadavg): Do not use c_strtod.  Instead, approximate it by
10894         hand; this is good enough for load averages.  Also, do not use
10895         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
10896         flags directly if available and don't bother otherwise.  (Packages
10897         that need the extra reliability should use the modules that define
10898         these flags on older platforms that lack them.)
10899         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
10900         fcntl-safer.
10901
10902 2011-02-08  Jim Meyering  <meyering@redhat.com>
10903
10904         di-set.h, ino-map.h: add multiple-inclusion guard
10905         Technically, the guard is required only for ino-map.h, due to its
10906         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
10907         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
10908         * lib/ino-map.h: Likewise.
10909
10910 2011-02-06  Bruno Haible  <bruno@clisp.org>
10911
10912         iswblank: Ensure declaration on glibc systems.
10913         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
10914         * modules/iswblank (Dependencies): Add 'extensions'.
10915         * doc/posix-functions/iswblank.texi: Document the glibc problem.
10916
10917 2011-02-06  Bruno Haible  <bruno@clisp.org>
10918
10919         New module 'iswblank'.
10920         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
10921         * modules/iswblank: New file.
10922         * modules/wctype-h (Files): Remove lib/iswblank.c.
10923         (Makefile.am): Substitute GNULIB_ISWBLANK.
10924         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
10925         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
10926         (gl_WCTYPE_H_DEFAULTS): New macro.
10927         (gl_WCTYPE_H): Require it. Remove iswblank related code.
10928         * modules/iswblank-tests: New file.
10929         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
10930         * tests/test-wctype-h.c (main): Remove iswblank tests.
10931         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
10932         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
10933         of 'wctype-h'.
10934         * NEWS: Mention the change.
10935         * modules/mbchar (Depends-on): Add iswblank.
10936
10937 2011-02-08  Bruno Haible  <bruno@clisp.org>
10938
10939         di-set tests: Refactor.
10940         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
10941         unnecessary includes.
10942         (ASSERT): Remove macro.
10943         (main): Make C90 compliant by avoiding variable declaration after
10944         statement.
10945         * modules/di-set-tests (Files): Add tests/macros.h.
10946
10947 2011-02-08  Bruno Haible  <bruno@clisp.org>
10948
10949         ino-map tests: Refactor.
10950         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
10951         unnecessary includes.
10952         (ASSERT): Remove macro.
10953         (main): Make C90 compliant by avoiding variable declaration after
10954         statement.
10955         * modules/ino-map-tests (Files): Add tests/macros.h.
10956
10957 2011-02-08  Jim Meyering  <meyering@redhat.com>
10958
10959         di-set: add "const" to a cast
10960         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
10961         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
10962
10963 2011-02-06  Bruno Haible  <bruno@clisp.org>
10964
10965         Rename module 'wctype' to 'wctype-h'.
10966         * modules/wctype-h: Renamed from modules/wctype.
10967         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
10968         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
10969         (Files, Depends-on, Makefile.am): Update.
10970         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
10971         (Files, Makefile.am): Update.
10972         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
10973         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
10974         * doc/posix-headers/wctype.texi: Update.
10975         * doc/posix-functions/iswalnum.texi: Update.
10976         * doc/posix-functions/iswalpha.texi: Update.
10977         * doc/posix-functions/iswblank.texi: Update.
10978         * doc/posix-functions/iswcntrl.texi: Update.
10979         * doc/posix-functions/iswdigit.texi: Update.
10980         * doc/posix-functions/iswgraph.texi: Update.
10981         * doc/posix-functions/iswlower.texi: Update.
10982         * doc/posix-functions/iswprint.texi: Update.
10983         * doc/posix-functions/iswpunct.texi: Update.
10984         * doc/posix-functions/iswspace.texi: Update.
10985         * doc/posix-functions/iswupper.texi: Update.
10986         * doc/posix-functions/iswxdigit.texi: Update.
10987         * doc/posix-functions/towlower.texi: Update.
10988         * doc/posix-functions/towupper.texi: Update.
10989         * NEWS: Mention the change.
10990         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
10991         * modules/mbchar (Dependencies): Likewise.
10992         * modules/mbswidth (Dependencies): Likewise.
10993         * modules/quotearg (Dependencies): Likewise.
10994         * modules/regex (Dependencies): Likewise.
10995         * modules/wcscasecmp (Dependencies): Likewise.
10996         * modules/wcsncasecmp (Dependencies): Likewise.
10997         * modules/wcwidth (Dependencies): Likewise.
10998
10999 2011-02-06  Bruno Haible  <bruno@clisp.org>
11000
11001         New module 'wcswidth'.
11002         * modules/wcswidth: New file.
11003         * lib/wchar.in.h (wcswidth): New declaration.
11004         * lib/wcswidth.c: New file.
11005         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
11006         * m4/wcswidth.m4: New file.
11007         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
11008         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
11009         REPLACE_WCSWIDTH.
11010         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
11011         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
11012         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
11013         * doc/posix-functions/wcswidth.texi: Mention the new module.
11014
11015 2011-02-06  Bruno Haible  <bruno@clisp.org>
11016
11017         New module 'wcstok'.
11018         * modules/wcstok: New file.
11019         * lib/wchar.in.h (wcstok): New declaration.
11020         * lib/wcstok.c: New file.
11021         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
11022         * m4/wcstok.m4: New file.
11023         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
11024         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
11025         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
11026         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
11027         * doc/posix-functions/wcstok.texi: Mention the new module.
11028
11029 2011-02-06  Bruno Haible  <bruno@clisp.org>
11030
11031         New module 'wcsstr'.
11032         * modules/wcsstr: New file.
11033         * lib/wchar.in.h (wcsstr): New declaration.
11034         * lib/wcsstr.c: New file.
11035         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
11036         * m4/wcsstr.m4: New file.
11037         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
11038         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
11039         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
11040         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
11041         * doc/posix-functions/wcsstr.texi: Mention the new module.
11042
11043 2011-02-06  Bruno Haible  <bruno@clisp.org>
11044
11045         New module 'wcspbrk'.
11046         * modules/wcspbrk: New file.
11047         * lib/wchar.in.h (wcspbrk): New declaration.
11048         * lib/wcspbrk.c: New file.
11049         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
11050         * m4/wcspbrk.m4: New file.
11051         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
11052         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
11053         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
11054         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
11055         * doc/posix-functions/wcspbrk.texi: Mention the new module.
11056
11057 2011-02-06  Bruno Haible  <bruno@clisp.org>
11058
11059         New module 'wcsspn'.
11060         * modules/wcsspn: New file.
11061         * lib/wchar.in.h (wcsspn): New declaration.
11062         * lib/wcsspn.c: New file.
11063         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
11064         * m4/wcsspn.m4: New file.
11065         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
11066         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
11067         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
11068         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
11069         * doc/posix-functions/wcsspn.texi: Mention the new module.
11070
11071 2011-02-06  Bruno Haible  <bruno@clisp.org>
11072
11073         New module 'wcscspn'.
11074         * modules/wcscspn: New file.
11075         * lib/wchar.in.h (wcscspn): New declaration.
11076         * lib/wcscspn.c: New file.
11077         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
11078         * m4/wcscspn.m4: New file.
11079         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
11080         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
11081         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
11082         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
11083         * doc/posix-functions/wcscspn.texi: Mention the new module.
11084
11085 2011-02-06  Bruno Haible  <bruno@clisp.org>
11086
11087         New module 'wcsrchr'.
11088         * modules/wcsrchr: New file.
11089         * lib/wchar.in.h (wcsrchr): New declaration.
11090         * lib/wcsrchr.c: New file.
11091         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
11092         * m4/wcsrchr.m4: New file.
11093         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
11094         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
11095         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
11096         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
11097         * doc/posix-functions/wcsrchr.texi: Mention the new module.
11098
11099 2011-02-06  Bruno Haible  <bruno@clisp.org>
11100
11101         New module 'wcschr'.
11102         * modules/wcschr: New file.
11103         * lib/wchar.in.h (wcschr): New declaration.
11104         * lib/wcschr.c: New file.
11105         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
11106         * m4/wcschr.m4: New file.
11107         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
11108         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
11109         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
11110         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
11111         * doc/posix-functions/wcschr.texi: Mention the new module.
11112
11113 2011-02-06  Bruno Haible  <bruno@clisp.org>
11114
11115         New module 'wcsdup'.
11116         * modules/wcsdup: New file.
11117         * lib/wchar.in.h (wcsdup): New declaration.
11118         * lib/wcsdup.c: New file.
11119         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
11120         * m4/wcsdup.m4: New file.
11121         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
11122         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
11123         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
11124         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
11125         * doc/posix-functions/wcsdup.texi: Mention the new module.
11126
11127 2011-02-06  Bruno Haible  <bruno@clisp.org>
11128
11129         New module 'wcsxfrm'.
11130         * modules/wcsxfrm: New file.
11131         * lib/wchar.in.h (wcsxfrm): New declaration.
11132         * lib/wcsxfrm.c: New file.
11133         * lib/wcsxfrm-impl.h: New file.
11134         * m4/wcsxfrm.m4: New file.
11135         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
11136         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
11137         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
11138         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
11139         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
11140
11141 2011-02-06  Bruno Haible  <bruno@clisp.org>
11142
11143         New module 'wcscoll'.
11144         * modules/wcscoll: New file.
11145         * lib/wchar.in.h (wcscoll): New declaration.
11146         * lib/wcscoll.c: New file.
11147         * lib/wcscoll-impl.h: New file.
11148         * m4/wcscoll.m4: New file.
11149         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
11150         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
11151         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
11152         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
11153         * doc/posix-functions/wcscoll.texi: Mention the new module.
11154
11155 2011-02-06  Bruno Haible  <bruno@clisp.org>
11156
11157         New module 'wcsncasecmp'.
11158         * modules/wcsncasecmp: New file.
11159         * lib/wchar.in.h (wcsncasecmp): New declaration.
11160         * lib/wcsncasecmp.c: New file.
11161         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
11162         * m4/wcsncasecmp.m4: New file.
11163         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
11164         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
11165         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
11166         HAVE_WCSNCASECMP.
11167         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
11168         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
11169
11170 2011-02-06  Bruno Haible  <bruno@clisp.org>
11171
11172         New module 'wcscasecmp'.
11173         * modules/wcscasecmp: New file.
11174         * lib/wchar.in.h (wcscasecmp): New declaration.
11175         * lib/wcscasecmp.c: New file.
11176         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
11177         * m4/wcscasecmp.m4: New file.
11178         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
11179         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
11180         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
11181         HAVE_WCSCASECMP.
11182         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
11183         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
11184
11185 2011-02-05  Bruno Haible  <bruno@clisp.org>
11186
11187         New module 'wcsncmp'.
11188         * modules/wcsncmp: New file.
11189         * lib/wchar.in.h (wcsncmp): New declaration.
11190         * lib/wcsncmp.c: New file.
11191         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
11192         * m4/wcsncmp.m4: New file.
11193         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
11194         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
11195         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
11196         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
11197         * doc/posix-functions/wcsncmp.texi: Mention the new module.
11198
11199 2011-02-05  Bruno Haible  <bruno@clisp.org>
11200
11201         New module 'wcscmp'.
11202         * modules/wcscmp: New file.
11203         * lib/wchar.in.h (wcscmp): New declaration.
11204         * lib/wcscmp.c: New file.
11205         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
11206         * m4/wcscmp.m4: New file.
11207         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
11208         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
11209         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
11210         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
11211         * doc/posix-functions/wcscmp.texi: Mention the new module.
11212
11213 2011-02-05  Bruno Haible  <bruno@clisp.org>
11214
11215         New module 'wcsncat'.
11216         * modules/wcsncat: New file.
11217         * lib/wchar.in.h (wcsncat): New declaration.
11218         * lib/wcsncat.c: New file.
11219         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
11220         * m4/wcsncat.m4: New file.
11221         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
11222         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
11223         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
11224         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
11225         * doc/posix-functions/wcsncat.texi: Mention the new module.
11226
11227 2011-02-05  Bruno Haible  <bruno@clisp.org>
11228
11229         New module 'wcscat'.
11230         * modules/wcscat: New file.
11231         * lib/wchar.in.h (wcscat): New declaration.
11232         * lib/wcscat.c: New file.
11233         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
11234         * m4/wcscat.m4: New file.
11235         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
11236         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
11237         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
11238         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
11239         * doc/posix-functions/wcscat.texi: Mention the new module.
11240
11241 2011-02-05  Bruno Haible  <bruno@clisp.org>
11242
11243         New module 'wcpncpy'.
11244         * modules/wcpncpy: New file.
11245         * lib/wchar.in.h (wcpncpy): New declaration.
11246         * lib/wcpncpy.c: New file.
11247         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
11248         * m4/wcpncpy.m4: New file.
11249         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
11250         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
11251         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
11252         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
11253         * doc/posix-functions/wcpncpy.texi: Mention the new module.
11254
11255 2011-02-05  Bruno Haible  <bruno@clisp.org>
11256
11257         New module 'wcsncpy'.
11258         * modules/wcsncpy: New file.
11259         * lib/wchar.in.h (wcsncpy): New declaration.
11260         * lib/wcsncpy.c: New file.
11261         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
11262         * m4/wcsncpy.m4: New file.
11263         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
11264         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
11265         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
11266         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
11267         * doc/posix-functions/wcsncpy.texi: Mention the new module.
11268
11269 2011-02-05  Bruno Haible  <bruno@clisp.org>
11270
11271         New module 'wcpcpy'.
11272         * modules/wcpcpy: New file.
11273         * lib/wchar.in.h (wcpcpy): New declaration.
11274         * lib/wcpcpy.c: New file.
11275         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
11276         * m4/wcpcpy.m4: New file.
11277         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
11278         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
11279         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
11280         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
11281         * doc/posix-functions/wcpcpy.texi: Mention the new module.
11282
11283 2011-02-05  Bruno Haible  <bruno@clisp.org>
11284
11285         New module 'wcscpy'.
11286         * modules/wcscpy: New file.
11287         * lib/wchar.in.h (wcscpy): New declaration.
11288         * lib/wcscpy.c: New file.
11289         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
11290         * m4/wcscpy.m4: New file.
11291         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
11292         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
11293         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
11294         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
11295         * doc/posix-functions/wcscpy.texi: Mention the new module.
11296
11297 2011-02-05  Bruno Haible  <bruno@clisp.org>
11298
11299         New module 'wcsnlen'.
11300         * modules/wcsnlen: New file.
11301         * lib/wchar.in.h (wcsnlen): New declaration.
11302         * lib/wcsnlen.c: New file.
11303         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
11304         * m4/wcsnlen.m4: New file.
11305         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
11306         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
11307         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
11308         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
11309         * doc/posix-functions/wcsnlen.texi: Mention the new module.
11310
11311 2011-02-05  Bruno Haible  <bruno@clisp.org>
11312
11313         New module 'wcslen'.
11314         * modules/wcslen: New file.
11315         * lib/wchar.in.h (wcslen): New declaration.
11316         * lib/wcslen.c: New file.
11317         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
11318         * m4/wcslen.m4: New file.
11319         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
11320         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
11321         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
11322         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
11323         * doc/posix-functions/wcslen.texi: Mention the new module.
11324
11325 2011-02-05  Bruno Haible  <bruno@clisp.org>
11326
11327         New module 'wmemset'.
11328         * modules/wmemset: New file.
11329         * lib/wchar.in.h (wmemset): New declaration.
11330         * lib/wmemset.c: New file.
11331         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
11332         * m4/wmemset.m4: New file.
11333         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
11334         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
11335         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
11336         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
11337         * doc/posix-functions/wmemset.texi: Mention the new module.
11338
11339 2011-02-05  Bruno Haible  <bruno@clisp.org>
11340
11341         New module 'wmemmove'.
11342         * modules/wmemmove: New file.
11343         * lib/wchar.in.h (wmemmove): New declaration.
11344         * lib/wmemmove.c: New file.
11345         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
11346         * m4/wmemmove.m4: New file.
11347         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
11348         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
11349         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
11350         HAVE_WMEMMOVE.
11351         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
11352         * doc/posix-functions/wmemmove.texi: Mention the new module.
11353
11354 2011-02-05  Bruno Haible  <bruno@clisp.org>
11355
11356         New module 'wmemcpy'.
11357         * modules/wmemcpy: New file.
11358         * lib/wchar.in.h (wmemcpy): New declaration.
11359         * lib/wmemcpy.c: New file.
11360         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
11361         * m4/wmemcpy.m4: New file.
11362         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
11363         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
11364         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
11365         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
11366         * doc/posix-functions/wmemcpy.texi: Mention the new module.
11367
11368 2011-02-05  Bruno Haible  <bruno@clisp.org>
11369
11370         New module 'wmemcmp'.
11371         * modules/wmemcmp: New file.
11372         * lib/wchar.in.h (wmemcmp): New declaration.
11373         * lib/wmemcmp.c: New file.
11374         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
11375         * m4/wmemcmp.m4: New file.
11376         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
11377         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
11378         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
11379         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
11380         * doc/posix-functions/wmemcmp.texi: Mention the new module.
11381
11382 2011-02-07  Jim Meyering  <meyering@redhat.com>
11383
11384         di-set, ino-map: new modules, from coreutils
11385         * lib/di-set.c: New file.
11386         * lib/di-set.h: Likewise.
11387         * lib/ino-map.c: Likewise.
11388         * lib/ino-map.h: Likewise.
11389         * modules/di-set: Likewise.
11390         * modules/di-set-tests: Likewise.
11391         * modules/ino-map: Likewise.
11392         * modules/ino-map-tests: Likewise.
11393         * tests/test-di-set.c: Likewise.
11394         * tests/test-ino-map.c: Likewise.
11395
11396 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
11397
11398         getloadavg: merge minor changes from Emacs
11399
11400         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
11401         (getloadavg): Use memset, not bzero.
11402
11403         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
11404         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
11405         clash (bug#86).
11406
11407 2010-11-14  Bruno Haible  <bruno@clisp.org>
11408
11409         Allow multiple gnulib generated replacements to coexist.
11410         * lib/getopt.in.h (struct option): Avoid identical redefinition.
11411         * lib/inttypes.in.h (imaxdiv_t): Likewise.
11412         * lib/langinfo.in.h (nl_item): Likewise.
11413         * lib/math.in.h (_NaN, NAN): Likewise.
11414         * lib/netdb.in.h (struct addrinfo): Likewise.
11415         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
11416         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
11417         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
11418         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
11419         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
11420         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
11421         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
11422         pthread_mutexattr_init, pthread_mutexattr_settype,
11423         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
11424         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
11425         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
11426         pthread_spin_trylock, pthread_spin_unlock): Likewise.
11427         * lib/sched.in.h (struct sched_param): Likewise.
11428         * lib/se-selinux.in.h (security_class_t, security_context_t,
11429         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
11430         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
11431         lsetfilecon, fsetfilecon, security_check_context,
11432         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
11433         Likewise.
11434         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
11435         Likewise.
11436         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
11437         _gl_function_taking_int_returning_void_t, union sigval,
11438         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
11439         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
11440         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
11441         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
11442         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
11443         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
11444         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
11445         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
11446         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
11447         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
11448         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
11449         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
11450         socklen_t, rpl_fd_isset): Likewise.
11451         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
11452         * lib/sys_time.in.h (struct timeval): Likewise.
11453         * lib/sys_times.in.h (struct tms): Likewise.
11454         * lib/sys_utsname.in.h (struct utsname):
11455         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
11456         * lib/unistd.in.h (getpagesize): Likewise.
11457         * lib/wchar.in.h (mbstate_t): Likewise.
11458         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
11459         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
11460         towlower, towupper): Likewise.
11461         Reported by Sam Steingold <sds@gnu.org>.
11462
11463 2011-02-05  Eric Blake  <eblake@redhat.com>
11464
11465         unsetenv: work around Haiku issues
11466         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
11467         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
11468
11469 2010-12-30  Bruce Korb  <bkorb@gnu.org>
11470
11471         libposix: avoid calling error() within libposix
11472         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
11473         is defined.
11474
11475 2011-02-05  Eric Blake  <eblake@redhat.com>
11476
11477         strerror_r-posix: port to cygwin
11478         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
11479         implementation.
11480         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
11481         * tests/test-strerror_r.c (main): Fix test.
11482         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
11483         issue.
11484
11485 2011-02-05  Bruno Haible  <bruno@clisp.org>
11486
11487         New module 'wmemchr'.
11488         * modules/wmemchr: New file.
11489         * lib/wchar.in.h (wmemchr): New declaration.
11490         * lib/wmemchr.c: New file.
11491         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
11492         * m4/wmemchr.m4: New file.
11493         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
11494         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
11495         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
11496         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
11497         * doc/posix-functions/wmemchr.texi: Mention the new module.
11498
11499 2011-02-04  Eric Blake  <eblake@redhat.com>
11500
11501         fdopendir: detect FreeBSD bug
11502         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
11503         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
11504
11505 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
11506
11507         stdbool: do not define HAVE_STDBOOL_H
11508         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
11509         AC_HEADER_STDBOOL.  All uses changed.  Do not define
11510         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
11511         imported from the latest Autoconf git.  It was motivated by Emacs,
11512         which uses gnulib but does not need HAVE_STDBOOL_H.
11513
11514 2011-02-04  Bruno Haible  <bruno@clisp.org>
11515
11516         wcsnrtombs: Prepare for new module wwcsnrtombs.
11517         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
11518         * lib/wcsnrtombs.c: Include it.
11519         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
11520
11521         wcsrtombs: Prepare for new module wwcsrtombs.
11522         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
11523         * lib/wcsrtombs.c: Include it.
11524         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
11525
11526         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
11527         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
11528         * lib/mbsnrtowcs.c: Include it.
11529         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
11530
11531         mbsrtowcs: Prepare for new module mbsrtowwcs.
11532         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
11533         * lib/mbsrtowcs.c: Include it.
11534         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
11535
11536 2011-02-04  Bruno Haible  <bruno@clisp.org>
11537
11538         vasnprintf: Reduce use of malloc for small format strings.
11539         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
11540         (arguments): Add room for the first 7 arguments.
11541         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
11542         (char_directives, u8_directives, u16_directives, u32_directives): Add
11543         room for the first 7 directives.
11544         * lib/printf-parse.c: Include <string.h>.
11545         (PRINTF_PARSE): Change memory handling code so that it uses the first
11546         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
11547         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
11548         Reported by Pádraig Brady <P@draigbrady.com>.
11549
11550 2011-01-31  Eric Blake  <eblake@redhat.com>
11551
11552         dup2: work around Haiku bug
11553         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
11554         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
11555         * doc/posix-functions/dup2.texi (dup2): Document the bug.
11556         * tests/test-dup2.c (main): Enhance test.
11557
11558 2011-01-31  Simon Josefsson  <simon@josefsson.org>
11559
11560         doc: off_t is not available in eglibc 2.11.2 stdio.h.
11561         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
11562         declared by eglibc 2.11.2.
11563         * lib/stdio.in.h: Likewise.
11564
11565 2011-01-31  Eric Blake  <eblake@redhat.com>
11566
11567         ignore-value: add missing test dependency
11568         * tests/test-ignore-value.c: Revert previous change; stdio.h
11569         provides off_t.
11570         * modules/ignore-value-tests (Depends-on): Add missing dependency.
11571
11572 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
11573
11574         mktime: clarify long_int width checking
11575         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
11576         the top level, to make it clearer that the assumption about
11577         long_int width is being checked.  See
11578         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
11579
11580 2011-01-30  Simon Josefsson  <simon@josefsson.org>
11581
11582         ignore-value: Fix self-test.
11583         * tests/test-ignore-value.c: Include sys/types.h for off_t.
11584
11585 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
11586
11587         TYPE_MAXIMUM: avoid theoretically undefined behavior
11588         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
11589         negative number, which the C Standard says has undefined behavior.
11590         In practice this is not a problem, but might as well do it by the book.
11591         Reported by Rich Felker and Eric Blake; see
11592         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
11593         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
11594         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
11595         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
11596         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
11597         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11598         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
11599
11600         mktime: #undef mktime before #defining it
11601         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
11602
11603         mktime: systematically normalize tm_isdst comparisons
11604         * lib/mktime.c (isdst_differ): New function.
11605         (__mktime_internal): Use it systematically for all isdst comparisons.
11606         This completes the fix for libc BZ #6723, and removes the need for
11607         normalizing tm_isdst.  See
11608         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
11609         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
11610
11611         mktime: fix some integer overflow issues and sidestep the rest
11612
11613         This was prompted by a bug report by Benjamin Lindner for MinGW
11614         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
11615         His bug is due to signed integer overflow (0 - INT_MIN), and I
11616         I scanned through mktime.c looking for other integer overflow
11617         problems, fixing all the bugs I found.
11618
11619         Although the C Standard says the resulting code is still not safe
11620         in the presence of integer overflow, in practice it should be good
11621         enough for all real-world two's-complement implementations, except
11622         for debugging environments that deliberately trap on integer
11623         overflow (e.g., gcc -ftrapv).
11624
11625         * lib/mktime.c (WRAPV): New macro.
11626         (SHR): Also check that long_int and time_t shift right in the
11627         usual way, before using the fast-but-unportable method.
11628         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
11629         used.  The code already assumed two's complement, so there's
11630         no need to test for alternatives.  All uses removed.
11631         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
11632         the C standard.  Problem reported by Rich Felker in
11633         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
11634         (twos_complement_arithmetic): Also check long_int and time_t.
11635         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
11636         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
11637         (__mktime_internal): Avoid integer overflow with unary subtraction
11638         in two instances where -1 - X is an adequate replacement for -X,
11639         since the calculations are approximate.
11640
11641 2011-01-29  Eric Blake  <eblake@redhat.com>
11642
11643         mktime: avoid infinite loop
11644         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
11645         type; behavior is still undefined but portable to all known targets.
11646         Reported by Rich Felker.
11647
11648 2011-01-29  Simon Josefsson  <simon@josefsson.org>
11649
11650         rename, unlink, same-inode: Relicense.
11651         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
11652         * modules/unlink (License): Likewise.
11653         * modules/same-inode (License): Likewise.
11654
11655 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
11656
11657         mktime: avoid problems on NetBSD 5 / i386
11658         * lib/mktime.c (long_int): New type.  This works around a problem
11659         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
11660         but time_t is 64 bits, and where I expect the existing code is
11661         wrong in some cases.
11662         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
11663         (ydhms_diff): Bring back the compile-time check for wide-enough
11664         year and yday.
11665
11666         mktime: fix misspelling in comment
11667         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
11668         This merges all recent glibc changes of importance.
11669
11670 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11671
11672         move-if-change: cope with concurrent mv of identical file.
11673         * build-aux/move-if-change (CMPPROG): Accept environment
11674         variable as an override for `cmp'.
11675         (usage): Document CMPPROG.
11676         Adjust comparison to drop stdout.  Cope with failure of mv if
11677         the target file exists and is identical to the source, for
11678         parallel builds.
11679         Report from H.J. Lu against binutils in PR binutils/12283.
11680
11681 2011-01-28  Bruce Korb  <bkorb@gnu.org>
11682
11683         * users.txt: Mention sharutils.
11684
11685 2011-01-28  Simon Josefsson  <simon@josefsson.org>
11686
11687         * users.txt: Mention OATH Toolkit.
11688
11689 2011-01-27  Bruno Haible  <bruno@clisp.org>
11690
11691         Prepare for supporting FreeBSD 10.
11692         * build-aux/config.libpath: Remove handling of freebsd1*.
11693
11694 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
11695
11696         Prepare for supporting FreeBSD 10.
11697         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
11698         match FreeBSD 10.0.
11699
11700 2011-01-27  Bruno Haible  <bruno@clisp.org>
11701
11702         vma-iter, get-rusage-as: Add OpenBSD support.
11703         * modules/vma-iter (configure.ac): Test for mquery.
11704         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
11705         * lib/vma-iter.c: Include <sys/mman.h>.
11706         (vma_iterate): Add an implementation based on mquery().
11707         * lib/resource-ext.h (get_rusage_as): Update comments.
11708         * lib/get-rusage-as.c: Likewise.
11709         * lib/get-rusage-data.c: Likewise.
11710
11711 2011-01-26  Karl Berry  <karl@gnu.org>
11712
11713         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
11714         variables to make it easier to override the makeinfo program used.
11715
11716 2011-01-26  Eric Blake  <eblake@redhat.com>
11717
11718         fcntl: work around Haiku F_DUPFD bugs
11719         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
11720         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
11721         cloexec bit on duplication.
11722         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
11723
11724 2011-01-26  Bruno Haible  <bruno@clisp.org>
11725
11726         Enable memory leak tests on AIX.
11727         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
11728         * tests/test-fprintf-posix3.c (main): Likewise.
11729
11730 2011-01-26  Bruno Haible  <bruno@clisp.org>
11731
11732         Tests for module 'get-rusage-data'.
11733         * modules/get-rusage-data-tests: New file.
11734         * tests/test-get-rusage-data.c: New file.
11735
11736         New module 'get-rusage-data'.
11737         * lib/resource-ext.h (get_rusage_data): New declaration.
11738         * lib/get-rusage-data.c: New file.
11739         * modules/get-rusage-data: New file.
11740
11741 2011-01-25  Bruno Haible  <bruno@clisp.org>
11742
11743         get-rusage-as: Allow for easier testing.
11744         * lib/resource-ext.h (get_rusage_as): Add comment.
11745         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
11746         (main): New function for interactive testing.
11747
11748 2011-01-25  Bruno Haible  <bruno@clisp.org>
11749
11750         vma-iter: Treat Haiku like BeOS.
11751         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
11752         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
11753
11754 2011-01-25  Eric Blake  <eblake@redhat.com>
11755
11756         c-stack: fix regression on cygwin when libsigsegv is present
11757         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
11758
11759 2011-01-24  Bruno Haible  <bruno@clisp.org>
11760
11761         vma-iter: Avoid empty intervals.
11762         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
11763         on an empty interval.
11764
11765 2011-01-24  Jim Meyering  <meyering@redhat.com>
11766
11767         u64: remove unnecessary #include
11768         * lib/u64.h: Don't include <stddef.h>.  It was not used.
11769
11770 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
11771
11772         Allow the user to avoid the HAVE_RAW_DECL_* macros.
11773         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
11774
11775 2011-01-23  Bruno Haible  <bruno@clisp.org>
11776
11777         New module 'vma-iter'.
11778         * lib/vma-iter.h: New file.
11779         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
11780         * modules/vma-iter: New file.
11781         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
11782         for get_rusage_as_via_iterator.
11783         (vma_iterate_callback): New function.
11784         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
11785         * modules/get-rusage-as (Depends-on): Add vma-iter.
11786
11787 2011-01-23  Bruno Haible  <bruno@clisp.org>
11788
11789         uninorm: Tweak includes.
11790         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
11791         Reported by Jim Meyering.
11792
11793 2011-01-23  Bruno Haible  <bruno@clisp.org>
11794
11795         get-rusage-as: Improve on NetBSD.
11796         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
11797         /proc, like on FreeBSD.
11798
11799 2011-01-23  Jim Meyering  <meyering@redhat.com>
11800
11801         xreadlink.h: remove unnecessary #include
11802         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
11803
11804         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
11805         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
11806
11807 2011-01-23  Bruno Haible  <bruno@clisp.org>
11808
11809         get-rusage-as: Fix bug.
11810         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
11811         original limit when aborting the first loop.
11812
11813 2011-01-23  Bruno Haible  <bruno@clisp.org>
11814
11815         wctype: Ensure valid C syntax.
11816         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
11817         unconditionally, instead of gl_NEXT_HEADERS conditionally.
11818
11819 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
11820
11821         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
11822         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
11823         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
11824         as they are needed only for configure's test case.
11825         This removes two unnecessary symbols from config.h.
11826
11827         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
11828         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
11829         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
11830         AC_CHECK_HEADERS_ONCE on a header that we also invoke
11831         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
11832         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
11833         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
11834         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
11835         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
11836         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11837         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
11838         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11839         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11840         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11841         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
11842         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11843         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
11844         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
11845
11846 2011-01-21  Eric Blake  <eblake@redhat.com>
11847
11848         maintainer-makefile: work with older git for submodule check
11849         * top/maint.mk (public-submodule-commit): Rewrite to avoid
11850         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
11851         Reported by Matthias Bolte.
11852
11853         bootstrap: minor portability fixes
11854         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
11855         (usage): Omit leading capital and trailing . on help phrases, per
11856         GNU Coding Standards.
11857         (check_versions, top level): Prefix messages with script name.
11858
11859 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
11860
11861         bootstrap: support --no-git option
11862         * build-aux/bootstrap: Add --no-git option, to be used when
11863         --gnulib-srcdir points to the exact desired checkout.
11864
11865 2011-01-21  Eric Blake  <eblake@redhat.com>
11866
11867         strerror_r-posix: work with glibc 2.13
11868         * lib/strerror_r.c (strerror_r): Fix return type.
11869
11870 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11871             Bruno Haible  <bruno@clisp.org>
11872
11873         uN_strstr: New unit tests.
11874         * modules/unistr/u8-strstr-tests: New file.
11875         * modules/unistr/u16-strstr-tests: New file.
11876         * modules/unistr/u32-strstr-tests: New file.
11877         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
11878         * tests/unistr/test-u8-strstr.c: New file.
11879         * tests/unistr/test-u16-strstr.c: New file.
11880         * tests/unistr/test-u32-strstr.c: New file.
11881
11882 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11883             Bruno Haible  <bruno@clisp.org>
11884
11885         Make uN_strstr functions O(n) worst-case.
11886         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
11887         16-bit and 32-bit unit cases, use the unibyte algorithm from
11888         lib/mbsstr.c.
11889         * lib/unistr/u8-strstr.c: Include <string.h>.
11890         (UNIT_IS_UINT8_T): New macro.
11891         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
11892         (U_STRLEN, U_STRNLEN): New macros.
11893         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
11894         (U_STRLEN, U_STRNLEN): New macros.
11895         * modules/unistr/u8-strstr (Depends-on): Add strstr.
11896         (configure.ac): Update required libunistring version.
11897         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
11898         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
11899         malloca.
11900         (configure.ac): Update required libunistring version.
11901         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
11902         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
11903         malloca.
11904         (configure.ac): Update required libunistring version.
11905
11906 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11907             Bruno Haible  <bruno@clisp.org>
11908
11909         Prepare for faster uN_strstr functions.
11910         * lib/str-kmp.h: Support definable UNITs.
11911         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
11912         needle_len argument.
11913         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
11914         * lib/mbscasestr.c (mbscasestr): Likewise.
11915
11916 2011-01-21  Pádraig Brady <P@draigBrady.com>
11917
11918         malloca-tests: make faster by unsetting MALLOC_PERTURB_
11919         * tests/test-malloca.c (main): Unset the environment variable
11920         to greatly speed up the test.
11921         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
11922         * modules/malloca-tests: Depend on unsetenv.
11923
11924 2011-01-21  Pádraig Brady <P@draigBrady.com>
11925
11926         ignore-value: remove stdint dependency
11927         * lib/ignore-value.h: Remove <stdint.h>
11928         * modules/ignore-value: Remove stdint dependency.
11929
11930 2011-01-21  Jim Meyering  <meyering@redhat.com>
11931
11932         maint.mk: adjust variable name to be consistent with other gl_ vars
11933         * top/maint.mk (gl_public_submodule_commit): Rename the variable
11934         to be lower case.
11935
11936 2011-01-20  Jim Meyering  <meyering@redhat.com>
11937
11938         maint.mk: make "check" depend on public-submodule-commit by default
11939         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
11940
11941 2011-01-20  Bruno Haible  <bruno@clisp.org>
11942
11943         mbfile, mbiter: Complete change from 2008-12-21.
11944         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
11945         * m4/mbiter.m4 (gl_MBITER): Likewise.
11946
11947 2011-01-20  Jim Meyering  <meyering@redhat.com>
11948
11949         init.sh: insert space between each function name and "()"
11950         * tests/init.sh: Make it a little easier to see that a function's
11951         name is "warn_", and not "warn" when looking at the first part of
11952         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
11953
11954 2011-01-20  Jim Meyering  <meyering@redhat.com>
11955
11956         mountlist: clean up code formatting
11957         * lib/mountlist.c (read_file_system_list): Split a long line,
11958         correct bracing style, use NULL in place of "(struct statfs *)0",
11959         don't parenthesize return value, add spaces around "=" and after
11960         ";-in-for-stmt".
11961
11962 2011-01-14  Markus Duft <mduft@gentoo.org>
11963
11964         mountlist: add support for Interix
11965         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
11966         Apply statvfs to all entries of /dev/fs.
11967         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
11968         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
11969
11970 2011-01-20  Jim Meyering  <meyering@redhat.com>
11971
11972         maint.mk: improve the public-submodule-commit rule
11973         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
11974         to suppress printing of its commands... unless V=1.
11975         Add git submodule's --quiet option to suppress printing of e.g.,
11976         "Entering gnulib" output.
11977         "cd" into $(srcdir) before running git submodule.
11978
11979 2011-01-20  Bruno Haible  <bruno@clisp.org>
11980
11981         include_next: Fix bug introduced on 2011-01-18.
11982         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
11983         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
11984         ac_cv_header_... variable if the second argument is not 'check'.
11985         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
11986         gl_NEXT_HEADERS_INTERNAL.
11987
11988 2011-01-20  Bruno Haible  <bruno@clisp.org>
11989
11990         Allow the user to avoid the GNULIB_TEST_* macros.
11991         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
11992         Suggested by Paul Eggert.
11993
11994 2011-01-14  Jim Meyering  <meyering@redhat.com>
11995
11996         bootstrap: avoid failure when there is no .gitmodules file
11997         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
11998         has been assigned to, even when its value is the empty string.
11999         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
12000         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
12001         Reported by John W. Eaton <jwe@gnu.org>.
12002
12003 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
12004
12005         assume <ctype.h>, ..., <time.h> exist
12006         For years gnulib has been assuming the existence of the headers
12007         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
12008         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
12009         them, since they don't appear to be needed.
12010         * README (Portability guidelines): Document this.
12011         * lib/flock.c: Assume <fcntl.h> exists.
12012         * lib/regex_internal.h: Assume <locale.h> exists.
12013         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
12014         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
12015         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
12016         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
12017         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
12018         * m4/regex.m4 (gl_REGEX): Likewise.
12019         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
12020         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
12021         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
12022         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
12023         * tests/test-argp.c: Likewise.
12024         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
12025
12026         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
12027         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
12028         AA_APPLE_UNIVERSAL_BUILD.  See
12029         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
12030         * NEWS: Document this.
12031
12032 2011-01-19  Eric Blake  <eblake@redhat.com>
12033
12034         c-stack: assume stack overflow if SA_SIGINFO unsupported
12035         * lib/c-stack.c (SIGACTION_WORKS): Rename...
12036         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
12037         sigaction will work.
12038         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
12039         behavior match Linux.
12040         * tests/test-c-stack.c (main): Prefer NULL for pointers.
12041
12042         stdbool-tests: accomodate Haiku
12043         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
12044
12045         binary-io: fix O_TEXT on Haiku
12046         * modules/binary-io (Depends-on): Add fcntl-h.
12047         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
12048         than blindly undefining O_TEXT.
12049         Reported by Scott McCreary.
12050
12051 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12052
12053         include_next: do not check for standard headers like stddef.h
12054
12055         I found this problem when modifying Emacs to use gnulib.
12056         I noticed that it added HAVE_STDDEF_H to config.h, even though
12057         gnulib always assumes <stddef.h> exists as per README and this
12058         symbol is unnecessary.
12059         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
12060         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
12061         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
12062         faster for headers like stddef.h that are known to exist.
12063         (gl_CHECK_NEXT_HEADERS): Use it.
12064         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
12065         rather than gl_CHECK_NEXT_HEADERS.
12066         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
12067         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
12068
12069 2011-01-18  Eric Blake  <eblake@redhat.com>
12070
12071         ansi-c++-opt: skip C++ dependency style if C++ is unused
12072         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
12073         tests when we know C++ compilation is not desired.
12074         Reported by Scott McCreary.
12075
12076 2011-01-18  Bruno Haible  <bruno@clisp.org>
12077
12078         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
12079         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
12080         (main): Perform test also when getrlimit and setrlimit don't exist or
12081         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
12082         limiting the address space size using setrlimit, compare the address
12083         space size before and after the the test.
12084         * tests/test-dprintf-posix2.c: Likewise.
12085         * tests/test-fprintf-posix3.sh: Update skip messages.
12086         * tests/test-dprintf-posix2.sh: Likewise.
12087         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
12088         * modules/dprintf-posix-tests (Depends-on): Likewise.
12089         Reported by Bruce Korb <bkorb@gnu.org> and
12090         Gary V. Vaughan <gary@gnu.org>.
12091
12092 2011-01-18  Bruno Haible  <bruno@clisp.org>
12093
12094         get-rusage-as: Improvement for Cygwin.
12095         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
12096         areas that are merely reserved.
12097
12098 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12099
12100         strftime: remove dependencies on multibyte modules
12101
12102         strftime depended on mbrlen, mbsinit, and wchar, but these modules
12103         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
12104         only if __osf__ is defined, and I suspect OSF doesn't need these
12105         other modules.  If my guess is wrong, we'll need to come up with a
12106         variant of strftime that doesn't need the multibyte modules.
12107
12108         I discovered this problem when attempting modify Emacs to use the
12109         strftime module.  With the previous gnulib, this caused Emacs to
12110         need 31 new files, ranging from lib/config.charset to
12111         m4/wint_t.m4.  This was overkill and I expect would be offputting
12112         to the Emacs maintainers.  After this change, only 6 new files are
12113         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
12114         stdbool.m4, and tm_gmtoff.m4.
12115
12116         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
12117         Suggested by Bruno Haible in
12118         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
12119         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
12120         and do not check for wchar.h.
12121         * modules/strftime (Files): Remove m4/mbstate_t.m4.
12122         (Depends-on): Remove mbrlen, mbsinit, wchar.
12123
12124 2011-01-18  Bruno Haible  <bruno@clisp.org>
12125
12126         Tests for module 'get-rusage-as'.
12127         * modules/get-rusage-as-tests: New file.
12128         * tests/test-get-rusage-as.c: New file.
12129
12130         New module 'get-rusage-as'.
12131         * modules/get-rusage-as: New file.
12132         * lib/resource-ext.h: New file.
12133         * lib/get-rusage-as.c: New file.
12134
12135 2011-01-17  Eric Blake  <eblake@redhat.com>
12136
12137         sigaction: relax license from LGPLv3+ to LGPLv2+
12138         * modules/sigaction (License): Relax to LGPLv2+.
12139
12140 2011-01-14  Bruno Haible  <bruno@clisp.org>
12141
12142         filemode: Make function declarations usable in C++ mode.
12143         * lib/filemode.h: Enclose function declarations in extern "C" block.
12144         Reported by John W. Eaton <jwe@gnu.org>.
12145
12146 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
12147
12148         save-cwd: no longer include "xgetcwd.h"
12149         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
12150         This avoids a compilation failure in projects that use save-cwd
12151         without also using the xgetcwd module.
12152
12153 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
12154
12155         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
12156         This is so that a program like Emacs, which needs only dtoastr,
12157         does not have to bother with distributing and compiling ftoastr
12158         and ldtoastr.
12159         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
12160         * modules/dtoastr, modules/ldtoastr: New files.
12161         * modules/ftoastr: Now works just for 'float'.
12162         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
12163         (Makefile.am): Remove ftoastr.h (not needed and no effect),
12164         dtoastr.c, ldtoastr.c.
12165
12166 2011-01-11  Jim Meyering  <meyering@redhat.com>
12167
12168         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
12169         There is no need to work around the lack of the fchdir function,
12170         since gnulib can now provide a replacement when required.
12171         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
12172         * modules/save-cwd (Depends-on): Add fchdir.
12173
12174 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
12175
12176         openat, save-cwd: avoid xmalloc
12177
12178         This removes a direct (but undocumented) dependency of openat on
12179         xalloc, along with an indirect dependency via save-cwd.  It also
12180         removes a dependency of save-cwd on xgetcwd, and thereby
12181         indirectly on xalloc.  This change causes the openat substitute
12182         to fall back on save_cwd when memory is tight, and for save_cwd to
12183         fail instead of dying when memory is tight, but that's good enough.
12184         Problem and initial idea for fix reported by Bastien Roucaries in
12185         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
12186
12187         * lib/openat-proc.c: Include stdlib.h (for malloc), not
12188         xalloc.h (for xmalloc).
12189         (openat_proc_name): Use malloc, not xmalloc.
12190         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
12191         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
12192
12193         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
12194         This avoids heap allocation for file names whose lengths are in
12195         the range 512..1023, with the upper bound increasing to at most
12196         4031 depending on the platform's PATH_MAX.  (We do not want
12197         pathmax.h here as it might supply a non-constant PATH_MAX.)
12198         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
12199         Perhaps they should be moved to malloca.h?
12200         (OPENAT_BUFFER_SIZE): Use them.
12201
12202 2011-01-10  Bruno Haible  <bruno@clisp.org>
12203
12204         doc: Update users.txt.
12205         * users.txt: Add recutils.
12206
12207 2011-01-09  Karl Berry  <karl@gnu.org>
12208
12209         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
12210
12211         * doc/configmake.texi: New file.
12212         * doc/gnulib.texi: Include it.
12213         * modules/configmake: Move documentation from here.
12214
12215 2011-01-09  Bruno Haible  <bruno@clisp.org>
12216
12217         Update to Unicode 6.0.0.
12218         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
12219         (get_lbp): Update for Unicode 6.0.0.
12220         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
12221         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
12222         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
12223         U+11001, U+11038..U+11046. Remove U+06DE.
12224         (uc_width): Fix bounds of planes.
12225         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12226         lib/uniwidth/width.c.
12227         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
12228         trailing whitespace removed.
12229         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
12230         without comments, but with the original copyright notice.
12231         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
12232         * lib/unicase/ignorable.h: Likewise.
12233         * lib/unicase/tocasefold.h: Likewise.
12234         * lib/unicase/tolower.h: Likewise.
12235         * lib/unicase/totitle.h: Likewise.
12236         * lib/unicase/toupper.h: Likewise.
12237         * lib/unictype/bidi_of.h: Likewise.
12238         * lib/unictype/blocks.h: Likewise.
12239         * lib/unictype/categ_C.h: Likewise.
12240         * lib/unictype/categ_Cn.h: Likewise.
12241         * lib/unictype/categ_L.h: Likewise.
12242         * lib/unictype/categ_Ll.h: Likewise.
12243         * lib/unictype/categ_Lm.h: Likewise.
12244         * lib/unictype/categ_Lo.h: Likewise.
12245         * lib/unictype/categ_Lu.h: Likewise.
12246         * lib/unictype/categ_M.h: Likewise.
12247         * lib/unictype/categ_Mc.h: Likewise.
12248         * lib/unictype/categ_Me.h: Likewise.
12249         * lib/unictype/categ_Mn.h: Likewise.
12250         * lib/unictype/categ_N.h: Likewise.
12251         * lib/unictype/categ_Nd.h: Likewise.
12252         * lib/unictype/categ_No.h: Likewise.
12253         * lib/unictype/categ_P.h: Likewise.
12254         * lib/unictype/categ_Po.h: Likewise.
12255         * lib/unictype/categ_S.h: Likewise.
12256         * lib/unictype/categ_Sc.h: Likewise.
12257         * lib/unictype/categ_Sk.h: Likewise.
12258         * lib/unictype/categ_Sm.h: Likewise.
12259         * lib/unictype/categ_So.h: Likewise.
12260         * lib/unictype/categ_of.h: Likewise.
12261         * lib/unictype/combining.h: Likewise.
12262         * lib/unictype/ctype_alnum.h: Likewise.
12263         * lib/unictype/ctype_alpha.h: Likewise.
12264         * lib/unictype/ctype_graph.h: Likewise.
12265         * lib/unictype/ctype_lower.h: Likewise.
12266         * lib/unictype/ctype_print.h: Likewise.
12267         * lib/unictype/ctype_punct.h: Likewise.
12268         * lib/unictype/ctype_upper.h: Likewise.
12269         * lib/unictype/decdigit.h: Likewise.
12270         * lib/unictype/digit.h: Likewise.
12271         * lib/unictype/numeric.h: Likewise.
12272         * lib/unictype/pr_alphabetic.h: Likewise.
12273         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
12274         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
12275         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
12276         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
12277         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
12278         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
12279         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
12280         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
12281         * lib/unictype/pr_case_ignorable.h: Likewise.
12282         * lib/unictype/pr_cased.h: Likewise.
12283         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
12284         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
12285         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
12286         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
12287         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
12288         * lib/unictype/pr_combining.h: Likewise.
12289         * lib/unictype/pr_composite.h: Likewise.
12290         * lib/unictype/pr_currency_symbol.h: Likewise.
12291         * lib/unictype/pr_decimal_digit.h: Likewise.
12292         * lib/unictype/pr_deprecated.h: Likewise.
12293         * lib/unictype/pr_format_control.h: Likewise.
12294         * lib/unictype/pr_grapheme_base.h: Likewise.
12295         * lib/unictype/pr_grapheme_extend.h: Likewise.
12296         * lib/unictype/pr_grapheme_link.h: Likewise.
12297         * lib/unictype/pr_id_continue.h: Likewise.
12298         * lib/unictype/pr_id_start.h: Likewise.
12299         * lib/unictype/pr_ideographic.h: Likewise.
12300         * lib/unictype/pr_lowercase.h: Likewise.
12301         * lib/unictype/pr_math.h: Likewise.
12302         * lib/unictype/pr_numeric.h: Likewise.
12303         * lib/unictype/pr_other_alphabetic.h: Likewise.
12304         * lib/unictype/pr_other_id_continue.h: Likewise.
12305         * lib/unictype/pr_other_math.h: Likewise.
12306         * lib/unictype/pr_punctuation.h: Likewise.
12307         * lib/unictype/pr_sentence_terminal.h: Likewise.
12308         * lib/unictype/pr_terminal_punctuation.h: Likewise.
12309         * lib/unictype/pr_unassigned_code_value.h: Likewise.
12310         * lib/unictype/pr_unified_ideograph.h: Likewise.
12311         * lib/unictype/pr_uppercase.h: Likewise.
12312         * lib/unictype/pr_xid_continue.h: Likewise.
12313         * lib/unictype/pr_xid_start.h: Likewise.
12314         * lib/unictype/scripts.h: Likewise.
12315         * lib/unictype/scripts_byname.gperf: Likewise.
12316         * lib/unictype/sy_java_ident.h: Likewise.
12317         * lib/unigbrk/gbrkprop.h: Likewise.
12318         * lib/unilbrk/lbrkprop1.h: Likewise.
12319         * lib/unilbrk/lbrkprop2.h: Likewise.
12320         * lib/uninorm/decomposition-table2.h: Likewise.
12321         * lib/uniwbrk/wbrkprop.h: Likewise.
12322         * tests/unicase/test-cased.c: Likewise.
12323         * tests/unicase/test-ignorable.c: Likewise.
12324         * tests/unicase/test-uc_tolower.c: Likewise.
12325         * tests/unicase/test-uc_totitle.c: Likewise.
12326         * tests/unicase/test-uc_toupper.c: Likewise.
12327         * tests/unictype/test-categ_C.c: Likewise.
12328         * tests/unictype/test-categ_Cn.c: Likewise.
12329         * tests/unictype/test-categ_L.c: Likewise.
12330         * tests/unictype/test-categ_Ll.c: Likewise.
12331         * tests/unictype/test-categ_Lm.c: Likewise.
12332         * tests/unictype/test-categ_Lo.c: Likewise.
12333         * tests/unictype/test-categ_Lu.c: Likewise.
12334         * tests/unictype/test-categ_M.c: Likewise.
12335         * tests/unictype/test-categ_Mc.c: Likewise.
12336         * tests/unictype/test-categ_Me.c: Likewise.
12337         * tests/unictype/test-categ_Mn.c: Likewise.
12338         * tests/unictype/test-categ_N.c: Likewise.
12339         * tests/unictype/test-categ_Nd.c: Likewise.
12340         * tests/unictype/test-categ_No.c: Likewise.
12341         * tests/unictype/test-categ_P.c: Likewise.
12342         * tests/unictype/test-categ_Po.c: Likewise.
12343         * tests/unictype/test-categ_S.c: Likewise.
12344         * tests/unictype/test-categ_Sc.c: Likewise.
12345         * tests/unictype/test-categ_Sk.c: Likewise.
12346         * tests/unictype/test-categ_Sm.c: Likewise.
12347         * tests/unictype/test-categ_So.c: Likewise.
12348         * tests/unictype/test-ctype_alnum.c: Likewise.
12349         * tests/unictype/test-ctype_alpha.c: Likewise.
12350         * tests/unictype/test-ctype_graph.c: Likewise.
12351         * tests/unictype/test-ctype_lower.c: Likewise.
12352         * tests/unictype/test-ctype_print.c: Likewise.
12353         * tests/unictype/test-ctype_punct.c: Likewise.
12354         * tests/unictype/test-ctype_upper.c: Likewise.
12355         * tests/unictype/test-decdigit.h: Likewise.
12356         * tests/unictype/test-digit.h: Likewise.
12357         * tests/unictype/test-numeric.h: Likewise.
12358         * tests/unictype/test-pr_alphabetic.c: Likewise.
12359         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
12360         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
12361         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
12362         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
12363         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
12364         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
12365         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
12366         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
12367         * tests/unictype/test-pr_case_ignorable.c: Likewise.
12368         * tests/unictype/test-pr_cased.c: Likewise.
12369         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
12370         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
12371         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
12372         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
12373         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
12374         * tests/unictype/test-pr_combining.c: Likewise.
12375         * tests/unictype/test-pr_composite.c: Likewise.
12376         * tests/unictype/test-pr_currency_symbol.c: Likewise.
12377         * tests/unictype/test-pr_decimal_digit.c: Likewise.
12378         * tests/unictype/test-pr_deprecated.c: Likewise.
12379         * tests/unictype/test-pr_format_control.c: Likewise.
12380         * tests/unictype/test-pr_grapheme_base.c: Likewise.
12381         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
12382         * tests/unictype/test-pr_grapheme_link.c: Likewise.
12383         * tests/unictype/test-pr_id_continue.c: Likewise.
12384         * tests/unictype/test-pr_id_start.c: Likewise.
12385         * tests/unictype/test-pr_ideographic.c: Likewise.
12386         * tests/unictype/test-pr_lowercase.c: Likewise.
12387         * tests/unictype/test-pr_math.c: Likewise.
12388         * tests/unictype/test-pr_numeric.c: Likewise.
12389         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
12390         * tests/unictype/test-pr_other_id_continue.c: Likewise.
12391         * tests/unictype/test-pr_other_math.c: Likewise.
12392         * tests/unictype/test-pr_punctuation.c: Likewise.
12393         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
12394         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
12395         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
12396         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
12397         * tests/unictype/test-pr_uppercase.c: Likewise.
12398         * tests/unictype/test-pr_xid_continue.c: Likewise.
12399         * tests/unictype/test-pr_xid_start.c: Likewise.
12400         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
12401         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
12402         changes.
12403         * lib/unictype/categ_Cc.h: Likewise.
12404         * lib/unictype/categ_Cf.h: Likewise.
12405         * lib/unictype/categ_Co.h: Likewise.
12406         * lib/unictype/categ_Cs.h: Likewise.
12407         * lib/unictype/categ_Lt.h: Likewise.
12408         * lib/unictype/categ_Nl.h: Likewise.
12409         * lib/unictype/categ_Pc.h: Likewise.
12410         * lib/unictype/categ_Pd.h: Likewise.
12411         * lib/unictype/categ_Pe.h: Likewise.
12412         * lib/unictype/categ_Pf.h: Likewise.
12413         * lib/unictype/categ_Pi.h: Likewise.
12414         * lib/unictype/categ_Ps.h: Likewise.
12415         * lib/unictype/categ_Z.h: Likewise.
12416         * lib/unictype/categ_Zl.h: Likewise.
12417         * lib/unictype/categ_Zp.h: Likewise.
12418         * lib/unictype/categ_Zs.h: Likewise.
12419         * lib/unictype/ctype_blank.h: Likewise.
12420         * lib/unictype/ctype_cntrl.h: Likewise.
12421         * lib/unictype/ctype_digit.h: Likewise.
12422         * lib/unictype/ctype_space.h: Likewise.
12423         * lib/unictype/ctype_xdigit.h: Likewise.
12424         * lib/unictype/mirror.h: Likewise.
12425         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
12426         * lib/unictype/pr_bidi_block_separator.h: Likewise.
12427         * lib/unictype/pr_bidi_common_separator.h: Likewise.
12428         * lib/unictype/pr_bidi_control.h: Likewise.
12429         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
12430         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
12431         * lib/unictype/pr_bidi_european_digit.h: Likewise.
12432         * lib/unictype/pr_bidi_pdf.h: Likewise.
12433         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
12434         * lib/unictype/pr_bidi_whitespace.h: Likewise.
12435         * lib/unictype/pr_dash.h: Likewise.
12436         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
12437         * lib/unictype/pr_diacritic.h: Likewise.
12438         * lib/unictype/pr_extender.h: Likewise.
12439         * lib/unictype/pr_hex_digit.h: Likewise.
12440         * lib/unictype/pr_hyphen.h: Likewise.
12441         * lib/unictype/pr_ids_binary_operator.h: Likewise.
12442         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
12443         * lib/unictype/pr_ignorable_control.h: Likewise.
12444         * lib/unictype/pr_iso_control.h: Likewise.
12445         * lib/unictype/pr_join_control.h: Likewise.
12446         * lib/unictype/pr_left_of_pair.h: Likewise.
12447         * lib/unictype/pr_line_separator.h: Likewise.
12448         * lib/unictype/pr_logical_order_exception.h: Likewise.
12449         * lib/unictype/pr_non_break.h: Likewise.
12450         * lib/unictype/pr_not_a_character.h: Likewise.
12451         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
12452         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
12453         * lib/unictype/pr_other_id_start.h: Likewise.
12454         * lib/unictype/pr_other_lowercase.h: Likewise.
12455         * lib/unictype/pr_other_uppercase.h: Likewise.
12456         * lib/unictype/pr_paired_punctuation.h: Likewise.
12457         * lib/unictype/pr_paragraph_separator.h: Likewise.
12458         * lib/unictype/pr_pattern_syntax.h: Likewise.
12459         * lib/unictype/pr_pattern_white_space.h: Likewise.
12460         * lib/unictype/pr_private_use.h: Likewise.
12461         * lib/unictype/pr_quotation_mark.h: Likewise.
12462         * lib/unictype/pr_radical.h: Likewise.
12463         * lib/unictype/pr_soft_dotted.h: Likewise.
12464         * lib/unictype/pr_space.h: Likewise.
12465         * lib/unictype/pr_titlecase.h: Likewise.
12466         * lib/unictype/pr_variation_selector.h: Likewise.
12467         * lib/unictype/pr_white_space.h: Likewise.
12468         * lib/unictype/pr_zero_width.h: Likewise.
12469         * lib/unictype/sy_c_ident.h: Likewise.
12470         * lib/unictype/sy_c_whitespace.h: Likewise.
12471         * lib/unictype/sy_java_whitespace.h: Likewise.
12472         * lib/uninorm/composition-table.gperf: Likewise.
12473         * lib/uninorm/decomposition-table1.h: Likewise.
12474         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
12475         LB8.
12476         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12477         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12478         * modules/unictype/*: Bump version number of expected libunistring
12479         version.
12480
12481 2011-01-09  Bruno Haible  <bruno@clisp.org>
12482
12483         Update to Unicode 5.2.0.
12484         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
12485         trailing whitespace removed.
12486
12487 2011-01-09  Bruno Haible  <bruno@clisp.org>
12488
12489         New Unicode character properties, from Unicode 5.2.0.
12490         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
12491         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
12492         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
12493         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
12494         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
12495         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
12496         uc_is_property_cased, uc_is_property_case_ignorable,
12497         uc_is_property_changes_when_lowercased,
12498         uc_is_property_changes_when_uppercased,
12499         uc_is_property_changes_when_titlecased,
12500         uc_is_property_changes_when_casefolded,
12501         uc_is_property_changes_when_casemapped): New declarations.
12502         * lib/unictype/pr_byname.gperf: Add the new properties.
12503         * modules/unictype/property-byname (Depends-on): Depend on the new
12504         properties modules.
12505         * modules/unictype/property-all (Depends-on): Likewise.
12506         * MODULES.html.sh (Unicode string functions): Add
12507         unictype/property-case-ignorable, unictype/property-cased,
12508         unictype/property-changes-when-casefolded,
12509         unictype/property-changes-when-casemapped,
12510         unictype/property-changes-when-lowercased,
12511         unictype/property-changes-when-titlecased,
12512         unictype/property-changes-when-uppercased.
12513
12514         New module 'unictype/property-changes-when-casemapped'.
12515         * modules/unictype/property-changes-when-casemapped: New file.
12516         * lib/unictype/pr_changes_when_casemapped.c: New file.
12517         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
12518         generated by gen-uni-tables.
12519         * modules/unictype/property-changes-when-casemapped-tests: New file.
12520         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
12521         automatically generated by gen-uni-tables.
12522
12523         New module 'unictype/property-changes-when-casefolded'.
12524         * modules/unictype/property-changes-when-casefolded: New file.
12525         * lib/unictype/pr_changes_when_casefolded.c: New file.
12526         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
12527         generated by gen-uni-tables.
12528         * modules/unictype/property-changes-when-casefolded-tests: New file.
12529         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
12530         automatically generated by gen-uni-tables.
12531
12532         New module 'unictype/property-changes-when-titlecased'.
12533         * modules/unictype/property-changes-when-titlecased: New file.
12534         * lib/unictype/pr_changes_when_titlecased.c: New file.
12535         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
12536         generated by gen-uni-tables.
12537         * modules/unictype/property-changes-when-titlecased-tests: New file.
12538         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
12539         automatically generated by gen-uni-tables.
12540
12541         New module 'unictype/property-changes-when-uppercased'.
12542         * modules/unictype/property-changes-when-uppercased: New file.
12543         * lib/unictype/pr_changes_when_uppercased.c: New file.
12544         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
12545         generated by gen-uni-tables.
12546         * modules/unictype/property-changes-when-uppercased-tests: New file.
12547         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
12548         automatically generated by gen-uni-tables.
12549
12550         New module 'unictype/property-changes-when-lowercased'.
12551         * modules/unictype/property-changes-when-lowercased: New file.
12552         * lib/unictype/pr_changes_when_lowercased.c: New file.
12553         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
12554         generated by gen-uni-tables.
12555         * modules/unictype/property-changes-when-lowercased-tests: New file.
12556         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
12557         automatically generated by gen-uni-tables.
12558
12559         New module 'unictype/property-case-ignorable'.
12560         * modules/unictype/property-case-ignorable: New file.
12561         * lib/unictype/pr_case_ignorable.c: New file.
12562         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
12563         by gen-uni-tables.
12564         * modules/unictype/property-case-ignorable-tests: New file.
12565         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
12566         generated by gen-uni-tables.
12567
12568         New module 'unictype/property-cased'.
12569         * modules/unictype/property-cased: New file.
12570         * lib/unictype/pr_cased.c: New file.
12571         * lib/unictype/pr_cased.h: New file, automatically generated by
12572         gen-uni-tables.
12573         * modules/unictype/property-cased-tests: New file.
12574         * tests/unictype/test-pr_cased.c: New file, automatically generated by
12575         gen-uni-tables.
12576
12577 2011-01-09  Bruno Haible  <bruno@clisp.org>
12578
12579         Update to Unicode 5.2.0.
12580         * lib/gen-uni-tables.c (output_predicate, output_category,
12581         output_combclass, output_bidi_category, output_decimal_digit_test,
12582         output_decimal_digit, output_digit_test, output_digit,
12583         output_numeric_test, output_numeric, output_mirror, output_scripts,
12584         output_scripts_byname, output_blocks, output_ident_category): Fix
12585         comment header.
12586         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
12587         get_wbp.
12588         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
12589         items.
12590         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
12591         Changes_When_Lowercased, Changes_When_Uppercased,
12592         Changes_When_Titlecased, Changes_When_Casefolded,
12593         Changes_When_Casemapped.
12594         (is_property_alphabetic, is_property_default_ignorable_code_point):
12595         Update for Unicode 5.2.0.
12596         (is_property_cased, is_property_case_ignorable,
12597         is_property_changes_when_lowercased,
12598         is_property_changes_when_uppercased,
12599         is_property_changes_when_titlecased,
12600         is_property_changes_when_casefolded,
12601         is_property_changes_when_casemapped): New functions.
12602         (output_properties): Output also the properties cased, case_ignorable,
12603         changes_when_lowercased, changes_when_uppercased,
12604         changes_when_titlecased, changes_when_casefolded,
12605         changes_when_casemapped.
12606         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
12607         Unicode TR#11 revision 17 -> 19.
12608         (LBP_CP): New enumeration value.
12609         (LBP_*): Adjust values accordingly.
12610         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
12611         TR#14 revision 22 -> 24.
12612         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
12613         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
12614         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
12615         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
12616         is_WBP_MIDLETTER.
12617         (output_composition_tables): Allow for 24 bits instead of 16 bits in
12618         the code1 and code2 of each composition rule.
12619         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
12620         * lib/unicase/ignorable.h: Likewise.
12621         * lib/unicase/tocasefold.h: Likewise.
12622         * lib/unicase/tolower.h: Likewise.
12623         * lib/unicase/totitle.h: Likewise.
12624         * lib/unicase/toupper.h: Likewise.
12625         * lib/unictype/bidi_of.h: Likewise.
12626         * lib/unictype/blocks.h: Likewise.
12627         * lib/unictype/categ_C.h: Likewise.
12628         * lib/unictype/categ_Cf.h: Likewise.
12629         * lib/unictype/categ_Cn.h: Likewise.
12630         * lib/unictype/categ_L.h: Likewise.
12631         * lib/unictype/categ_Ll.h: Likewise.
12632         * lib/unictype/categ_Lm.h: Likewise.
12633         * lib/unictype/categ_Lo.h: Likewise.
12634         * lib/unictype/categ_Lu.h: Likewise.
12635         * lib/unictype/categ_M.h: Likewise.
12636         * lib/unictype/categ_Mc.h: Likewise.
12637         * lib/unictype/categ_Mn.h: Likewise.
12638         * lib/unictype/categ_N.h: Likewise.
12639         * lib/unictype/categ_Nd.h: Likewise.
12640         * lib/unictype/categ_Nl.h: Likewise.
12641         * lib/unictype/categ_No.h: Likewise.
12642         * lib/unictype/categ_P.h: Likewise.
12643         * lib/unictype/categ_Pd.h: Likewise.
12644         * lib/unictype/categ_Po.h: Likewise.
12645         * lib/unictype/categ_S.h: Likewise.
12646         * lib/unictype/categ_Sc.h: Likewise.
12647         * lib/unictype/categ_So.h: Likewise.
12648         * lib/unictype/categ_of.h: Likewise.
12649         * lib/unictype/combining.h: Likewise.
12650         * lib/unictype/ctype_alnum.h: Likewise.
12651         * lib/unictype/ctype_alpha.h: Likewise.
12652         * lib/unictype/ctype_graph.h: Likewise.
12653         * lib/unictype/ctype_lower.h: Likewise.
12654         * lib/unictype/ctype_print.h: Likewise.
12655         * lib/unictype/ctype_punct.h: Likewise.
12656         * lib/unictype/ctype_upper.h: Likewise.
12657         * lib/unictype/decdigit.h: Likewise.
12658         * lib/unictype/digit.h: Likewise.
12659         * lib/unictype/numeric.h: Likewise.
12660         * lib/unictype/pr_alphabetic.h: Likewise.
12661         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
12662         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
12663         * lib/unictype/pr_bidi_european_digit.h: Likewise.
12664         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
12665         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
12666         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
12667         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
12668         * lib/unictype/pr_combining.h: Likewise.
12669         * lib/unictype/pr_composite.h: Likewise.
12670         * lib/unictype/pr_currency_symbol.h: Likewise.
12671         * lib/unictype/pr_dash.h: Likewise.
12672         * lib/unictype/pr_decimal_digit.h: Likewise.
12673         * lib/unictype/pr_deprecated.h: Likewise.
12674         * lib/unictype/pr_diacritic.h: Likewise.
12675         * lib/unictype/pr_extender.h: Likewise.
12676         * lib/unictype/pr_grapheme_base.h: Likewise.
12677         * lib/unictype/pr_grapheme_extend.h: Likewise.
12678         * lib/unictype/pr_grapheme_link.h: Likewise.
12679         * lib/unictype/pr_id_continue.h: Likewise.
12680         * lib/unictype/pr_id_start.h: Likewise.
12681         * lib/unictype/pr_ideographic.h: Likewise.
12682         * lib/unictype/pr_ignorable_control.h: Likewise.
12683         * lib/unictype/pr_logical_order_exception.h: Likewise.
12684         * lib/unictype/pr_lowercase.h: Likewise.
12685         * lib/unictype/pr_numeric.h: Likewise.
12686         * lib/unictype/pr_other_alphabetic.h: Likewise.
12687         * lib/unictype/pr_punctuation.h: Likewise.
12688         * lib/unictype/pr_sentence_terminal.h: Likewise.
12689         * lib/unictype/pr_terminal_punctuation.h: Likewise.
12690         * lib/unictype/pr_unassigned_code_value.h: Likewise.
12691         * lib/unictype/pr_unified_ideograph.h: Likewise.
12692         * lib/unictype/pr_uppercase.h: Likewise.
12693         * lib/unictype/pr_xid_continue.h: Likewise.
12694         * lib/unictype/pr_xid_start.h: Likewise.
12695         * lib/unictype/pr_zero_width.h: Likewise.
12696         * lib/unictype/scripts.h: Likewise.
12697         * lib/unictype/scripts_byname.gperf: Likewise.
12698         * lib/unictype/sy_java_ident.h: Likewise.
12699         * lib/unigbrk/gbrkprop.h: Likewise.
12700         * lib/unilbrk/lbrkprop1.h: Likewise.
12701         * lib/unilbrk/lbrkprop2.h: Likewise.
12702         * lib/unilbrk/lbrktables.h: Likewise.
12703         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
12704         LBP_CP. Implement rule LB30.
12705         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
12706         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
12707         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
12708         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
12709         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
12710         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
12711         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
12712         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
12713         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
12714         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
12715         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
12716         bits instead of 16 bits in the code1 and code2 of each composition
12717         rule.
12718         (uc_composition): Update for Unicode 5.2.0.
12719         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
12720         * lib/uninorm/decomposition-table2.h: Likewise.
12721         * lib/uniwbrk/wbrkprop.h: Likewise.
12722         * tests/unicase/test-cased.c: Likewise.
12723         * tests/unicase/test-ignorable.c: Likewise.
12724         * tests/unicase/test-uc_tolower.c: Likewise.
12725         * tests/unicase/test-uc_totitle.c: Likewise.
12726         * tests/unicase/test-uc_toupper.c: Likewise.
12727         * tests/unictype/test-categ_C.c: Likewise.
12728         * tests/unictype/test-categ_Cf.c: Likewise.
12729         * tests/unictype/test-categ_Cn.c: Likewise.
12730         * tests/unictype/test-categ_L.c: Likewise.
12731         * tests/unictype/test-categ_Ll.c: Likewise.
12732         * tests/unictype/test-categ_Lm.c: Likewise.
12733         * tests/unictype/test-categ_Lo.c: Likewise.
12734         * tests/unictype/test-categ_Lu.c: Likewise.
12735         * tests/unictype/test-categ_M.c: Likewise.
12736         * tests/unictype/test-categ_Mc.c: Likewise.
12737         * tests/unictype/test-categ_Mn.c: Likewise.
12738         * tests/unictype/test-categ_N.c: Likewise.
12739         * tests/unictype/test-categ_Nd.c: Likewise.
12740         * tests/unictype/test-categ_Nl.c: Likewise.
12741         * tests/unictype/test-categ_No.c: Likewise.
12742         * tests/unictype/test-categ_P.c: Likewise.
12743         * tests/unictype/test-categ_Pd.c: Likewise.
12744         * tests/unictype/test-categ_Po.c: Likewise.
12745         * tests/unictype/test-categ_S.c: Likewise.
12746         * tests/unictype/test-categ_Sc.c: Likewise.
12747         * tests/unictype/test-categ_So.c: Likewise.
12748         * tests/unictype/test-ctype_alnum.c: Likewise.
12749         * tests/unictype/test-ctype_alpha.c: Likewise.
12750         * tests/unictype/test-ctype_graph.c: Likewise.
12751         * tests/unictype/test-ctype_lower.c: Likewise.
12752         * tests/unictype/test-ctype_print.c: Likewise.
12753         * tests/unictype/test-ctype_punct.c: Likewise.
12754         * tests/unictype/test-ctype_upper.c: Likewise.
12755         * tests/unictype/test-decdigit.h: Likewise.
12756         * tests/unictype/test-digit.h: Likewise.
12757         * tests/unictype/test-numeric.h: Likewise.
12758         * tests/unictype/test-pr_alphabetic.c: Likewise.
12759         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
12760         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
12761         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
12762         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
12763         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
12764         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
12765         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
12766         * tests/unictype/test-pr_combining.c: Likewise.
12767         * tests/unictype/test-pr_composite.c: Likewise.
12768         * tests/unictype/test-pr_currency_symbol.c: Likewise.
12769         * tests/unictype/test-pr_dash.c: Likewise.
12770         * tests/unictype/test-pr_decimal_digit.c: Likewise.
12771         * tests/unictype/test-pr_deprecated.c: Likewise.
12772         * tests/unictype/test-pr_diacritic.c: Likewise.
12773         * tests/unictype/test-pr_extender.c: Likewise.
12774         * tests/unictype/test-pr_grapheme_base.c: Likewise.
12775         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
12776         * tests/unictype/test-pr_grapheme_link.c: Likewise.
12777         * tests/unictype/test-pr_id_continue.c: Likewise.
12778         * tests/unictype/test-pr_id_start.c: Likewise.
12779         * tests/unictype/test-pr_ideographic.c: Likewise.
12780         * tests/unictype/test-pr_ignorable_control.c: Likewise.
12781         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
12782         * tests/unictype/test-pr_lowercase.c: Likewise.
12783         * tests/unictype/test-pr_numeric.c: Likewise.
12784         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
12785         * tests/unictype/test-pr_punctuation.c: Likewise.
12786         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
12787         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
12788         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
12789         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
12790         * tests/unictype/test-pr_uppercase.c: Likewise.
12791         * tests/unictype/test-pr_xid_continue.c: Likewise.
12792         * tests/unictype/test-pr_xid_start.c: Likewise.
12793         * tests/unictype/test-pr_zero_width.c: Likewise.
12794         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
12795         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
12796         changed behaviour: line breaking is now disallowed between a letter
12797         or '=' and '('.
12798         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12799         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12800         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
12801         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
12802         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12803         lib/uniwidth/width.c.
12804         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
12805         without comments, but with the original copyright notice.
12806         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
12807         changes.
12808         * lib/unictype/categ_Cc.h: Likewise.
12809         * lib/unictype/categ_Co.h: Likewise.
12810         * lib/unictype/categ_Cs.h: Likewise.
12811         * lib/unictype/categ_Lt.h: Likewise.
12812         * lib/unictype/categ_Me.h: Likewise.
12813         * lib/unictype/categ_Pc.h: Likewise.
12814         * lib/unictype/categ_Pe.h: Likewise.
12815         * lib/unictype/categ_Pf.h: Likewise.
12816         * lib/unictype/categ_Pi.h: Likewise.
12817         * lib/unictype/categ_Ps.h: Likewise.
12818         * lib/unictype/categ_Sk.h: Likewise.
12819         * lib/unictype/categ_Sm.h: Likewise.
12820         * lib/unictype/categ_Z.h: Likewise.
12821         * lib/unictype/categ_Zl.h: Likewise.
12822         * lib/unictype/categ_Zp.h: Likewise.
12823         * lib/unictype/categ_Zs.h: Likewise.
12824         * lib/unictype/ctype_blank.h: Likewise.
12825         * lib/unictype/ctype_cntrl.h: Likewise.
12826         * lib/unictype/ctype_digit.h: Likewise.
12827         * lib/unictype/ctype_space.h: Likewise.
12828         * lib/unictype/ctype_xdigit.h: Likewise.
12829         * lib/unictype/mirror.h: Likewise.
12830         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
12831         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
12832         * lib/unictype/pr_bidi_block_separator.h: Likewise.
12833         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
12834         * lib/unictype/pr_bidi_common_separator.h: Likewise.
12835         * lib/unictype/pr_bidi_control.h: Likewise.
12836         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
12837         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
12838         * lib/unictype/pr_bidi_pdf.h: Likewise.
12839         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
12840         * lib/unictype/pr_bidi_whitespace.h: Likewise.
12841         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
12842         * lib/unictype/pr_format_control.h: Likewise.
12843         * lib/unictype/pr_hex_digit.h: Likewise.
12844         * lib/unictype/pr_hyphen.h: Likewise.
12845         * lib/unictype/pr_ids_binary_operator.h: Likewise.
12846         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
12847         * lib/unictype/pr_iso_control.h: Likewise.
12848         * lib/unictype/pr_join_control.h: Likewise.
12849         * lib/unictype/pr_left_of_pair.h: Likewise.
12850         * lib/unictype/pr_line_separator.h: Likewise.
12851         * lib/unictype/pr_math.h: Likewise.
12852         * lib/unictype/pr_non_break.h: Likewise.
12853         * lib/unictype/pr_not_a_character.h: Likewise.
12854         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
12855         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
12856         * lib/unictype/pr_other_id_continue.h: Likewise.
12857         * lib/unictype/pr_other_id_start.h: Likewise.
12858         * lib/unictype/pr_other_lowercase.h: Likewise.
12859         * lib/unictype/pr_other_math.h: Likewise.
12860         * lib/unictype/pr_other_uppercase.h: Likewise.
12861         * lib/unictype/pr_paired_punctuation.h: Likewise.
12862         * lib/unictype/pr_paragraph_separator.h: Likewise.
12863         * lib/unictype/pr_pattern_syntax.h: Likewise.
12864         * lib/unictype/pr_pattern_white_space.h: Likewise.
12865         * lib/unictype/pr_private_use.h: Likewise.
12866         * lib/unictype/pr_quotation_mark.h: Likewise.
12867         * lib/unictype/pr_radical.h: Likewise.
12868         * lib/unictype/pr_soft_dotted.h: Likewise.
12869         * lib/unictype/pr_space.h: Likewise.
12870         * lib/unictype/pr_titlecase.h: Likewise.
12871         * lib/unictype/pr_variation_selector.h: Likewise.
12872         * lib/unictype/pr_white_space.h: Likewise.
12873         * lib/unictype/sy_c_ident.h: Likewise.
12874         * lib/unictype/sy_c_whitespace.h: Likewise.
12875         * lib/unictype/sy_java_whitespace.h: Likewise.
12876         * modules/uni*/*: Bump version number of expected libunistring version.
12877         Reported by Simon Josefsson.
12878
12879 2011-01-09  Karl Heuer  <kwzh@gnu.org>
12880
12881         useless-if-before-free: fix typo in --help and make the internal,
12882         automatic version date update process work once again.
12883         --help output contained a NUL character instead of the
12884         backslash-zero that was intended.  Also, the "must lie within
12885         the first 8 lines" line is on line 9, and hence not getting
12886         automatically updated.
12887         * build-aux/useless-if-before-free: Fix the former by adding a
12888         backslash, and the latter by condensing the three lines of what-it-does
12889         to a single line, leaving one line of slack for the future.
12890
12891 2011-01-09  Bruno Haible  <bruno@clisp.org>
12892
12893         uniwidth/width: Fix width of U+1D173..U+1D17A.
12894         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
12895         symbolic_width, output_width_property_test): New functions.
12896         (main): Invoke output_nonspacing_property, output_width_property_test.
12897         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
12898         U+1D173..U+1D17A.
12899         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
12900         1.
12901         * modules/uniwidth/*: Bump version number of expected libunistring
12902         version.
12903         * modules/unilbrk/*: Likewise.
12904
12905 2011-01-08  Bruno Haible  <bruno@clisp.org>
12906
12907         uninorm tests: Preserve copyright of Unicode data file.
12908         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
12909         Mention modifications.
12910
12911 2011-01-08  Bruno Haible  <bruno@clisp.org>
12912
12913         gen-uni-tables: Prepare for Unicode 5.2.0.
12914         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
12915         (debug_output_lbp, output_lbp): Update.
12916
12917 2011-01-08  Bruno Haible  <bruno@clisp.org>
12918
12919         unilbrk: Clarify gen-uni-tables.c code.
12920         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
12921         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
12922         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
12923
12924 2011-01-07  Bruno Haible  <bruno@clisp.org>
12925
12926         strtod: Restore errno when successfully parsing Infinity or NaN.
12927         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
12928         restore the original errno.
12929
12930 2011-01-07  Bruno Haible  <bruno@clisp.org>
12931
12932         remove test: Avoid failure on HP-UX 11.
12933         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
12934
12935 2011-01-07  Bruno Haible  <bruno@clisp.org>
12936
12937         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
12938         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
12939         error code.
12940
12941 2011-01-07  Pádraig Brady <P@draigBrady.com>
12942
12943         ignore-value: fixup comments, and add Eric Blake
12944         as an author since he rewrote the macros.
12945         * lib/ignore-value.h (ignore_value):  State that
12946         we now support aggregates.  Also specify exactly
12947         when the GCC warn_unused_result feature was added.
12948
12949 2011-01-06  Eric Blake  <eblake@redhat.com>
12950
12951         ignore-value: support aggregate types
12952         * lib/ignore-value.h (ignore_value): Provide separate gcc
12953         definition.
12954         * modules/ignore-value-tests: New test module.
12955         * tests/test-ignore-value.c: New test.
12956
12957         maint.mk: improve sc_prohibit_strcmp regex
12958         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
12959         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
12960         definition of STRNEQ.
12961
12962         signal: work around Haiku issue with SIGBUS
12963         * lib/siglist.h: Add comment.
12964         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
12965         strsignal's favoring of SIGSEGV.
12966         * tests/test-signal.c (main): Avoid test failure.
12967         * doc/posix-headers/signal.texi (signal.h): Document the issue.
12968         Reported by Scott McCreary.
12969
12970         maint.mk: add pre-release check to ensure submodule commits are public
12971         * top/maint.mk (public-submodule-commit): New rule.
12972         (submodule-checks): New variable.
12973         (alpha beta stable): Depend on the variable.
12974
12975 2011-01-05  Pádraig Brady <P@draigBrady.com>
12976         and Jim Meyering  <meyering@redhat.com>
12977
12978         ignore-value: make ignore_value more generic; deprecate ignore_ptr
12979         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
12980         (ATTRIBUTE_DEPRECATED): Define.
12981         (_ignore_case): New function.
12982         (ignore_value): New macro, to replace the old function.
12983         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
12984         * modules/ignore-value (Depends-on): Add stdint.
12985
12986 2011-01-04  Eric Blake  <eblake@redhat.com>
12987
12988         doc: regenerate INSTALL
12989         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
12990         @firstparagraphindent support, now that autoconf dropped it.
12991         (INSTALL_PRELUDE): Reinstate old macro.
12992         * doc/install.texi: Resync from autoconf.
12993         * doc/INSTALL: Reflect recent autoconf update.
12994         * doc/INSTALL.ISO: Likewise.
12995         * doc/INSTALL.UTF-8: Likewise.
12996         Reported by Karl Berry.
12997
12998 2011-01-04  Bruce Korb  <address@hidden>
12999
13000         git-version-gen: avoid a sub-shell
13001         * build-aux/git-version-gen: Redirect stderr in `...` via
13002         "exec 2>...", rather than via an added sub-shell.
13003
13004 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
13005
13006         git-version-gen: use (...) rather than sh -c '...'
13007         * build-aux/git-version-gen: Rather than hard-coding a shell's name
13008         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
13009
13010 2011-01-03  Jim Meyering  <meyering@redhat.com>
13011
13012         git-version-gen: convert leading TABs to spaces
13013         * build-aux/git-version-gen: Expand leading TABs.
13014
13015         git-version-gen: handle failed "git rev-list"
13016         * build-aux/git-version-gen: Rather than leaking a "fatal" error
13017         from git and proceeding as if it had succeeded but printed no SHA1
13018         checksums, suppress the diagnostic and handle the failure.
13019         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
13020
13021         git-version-gen: include command name in one more diagnostic
13022         * build-aux/git-version-gen: When the required .tarball-version file
13023         was missing or unreadable, you might see the diagnostic from "cat",
13024         but no trace of the name of the invoking script.  Now, you still see
13025         the diagnostic from cat, but also get one from "git-version-gen: ".
13026         Inspired by a patch from Bruce Korb.
13027
13028         update-copyright: adjust test to match changed code
13029         * tests/test-update-copyright.sh: Change test's expected output
13030         to match new actual output.
13031
13032 2011-01-02  Bruno Haible  <bruno@clisp.org>
13033
13034         getlogin_r: Avoid test failure on HP-UX 11.
13035         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
13036         ERANGE when the second argument is zero.
13037         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
13038         portability problem.
13039
13040 2011-01-02  Bruce Korb  <bkorb@gnu.org>
13041
13042         * build-aux/update-copyright: doc Simon's changes
13043
13044 2011-01-02  Simon Josefsson  <simon@josefsson.org>
13045
13046         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
13047         environment variable.
13048
13049 2011-01-02  Bruno Haible  <bruno@clisp.org>
13050
13051         unigbrk: Avoid gcc warnings.
13052         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
13053         unused variable.
13054         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
13055         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
13056         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
13057         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
13058         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
13059         Change type of first argument to 'const char *'.
13060         (main): Remove unused variable.
13061         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
13062         type of first argument to 'const char *'.
13063         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
13064         Likewise.
13065         (main): Change type of variable 's'.
13066         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
13067         to 'int'.
13068
13069 2011-01-02  Bruno Haible  <bruno@clisp.org>
13070
13071         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
13072         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
13073         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
13074         bug.
13075         * lib/pwrite.c: Undo 2010-12-31 patch.
13076         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
13077
13078 2011-01-02  Bruno Haible  <bruno@clisp.org>
13079
13080         pread: Fix test whether it works.
13081         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
13082
13083 2011-01-02  Bruno Haible  <bruno@clisp.org>
13084
13085         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
13086         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
13087         ends in "6". Don't require a specific month name. Try also the locale
13088         names found on HP-UX 11 and Solaris 7.
13089
13090 2011-01-02  Bruno Haible  <bruno@clisp.org>
13091
13092         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
13093         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
13094         C linkage.
13095         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
13096
13097 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13098
13099         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
13100         for consistency, since the "cluster" term is not used elsewhere.
13101         * lib/unigbrk.in.h: Update name.
13102         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
13103         * lib/unigbrk/u16-grapheme-next.c: Update name.
13104         * lib/unigbrk/u16-grapheme-prev.c: Update name.
13105         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
13106         * lib/unigbrk/u32-grapheme-next.c: Update name.
13107         * lib/unigbrk/u32-grapheme-prev.c: Update name.
13108         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
13109         * lib/unigbrk/u8-grapheme-next.c: Update name.
13110         * lib/unigbrk/u8-grapheme-prev.c: Update name.
13111         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
13112         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
13113         Suggested by Bruno Haible.
13114
13115 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13116
13117         Remove module 'u8-grapheme-len' as too redundant with
13118         'u8-grapheme-next'.
13119         * modules/unigbrk/u8-grapheme-len: Delete file.
13120         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
13121         * lib/unigbrk.in.h: Remove prototype for deleted function.
13122         * lib/unigbrk/u8-grapheme-len.c: Delete file.
13123         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
13124
13125         Remove module 'u16-grapheme-len' as too redundant with
13126         'u16-grapheme-next'.
13127         * modules/unigbrk/u16-grapheme-len: Delete file.
13128         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
13129         * lib/unigbrk.in.h: Remove prototype for deleted function.
13130         * lib/unigbrk/u16-grapheme-len.c: Delete file.
13131         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
13132
13133         Remove module 'u32-grapheme-len' as too redundant with
13134         'u32-grapheme-next'.
13135         * modules/unigbrk/u32-grapheme-len: Delete file.
13136         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
13137         * lib/unigbrk.in.h: Remove prototype for deleted function.
13138         * lib/unigbrk/u32-grapheme-len.c: Delete file.
13139         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
13140
13141         Suggested by Bruno Haible.
13142
13143 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13144
13145         * unigbrk.in.h: Fix typo: "ben" => "been".
13146         Reported by Bruno Haible.
13147
13148 2011-01-01  Jim Meyering  <meyering@redhat.com>
13149
13150         maint: update almost all copyright ranges to include 2011
13151         Run the new "make update-copyright" rule.
13152
13153 2011-01-01  Jim Meyering  <meyering@redhat.com>
13154
13155         maint: update-copyright: exempt doc/INSTALL*
13156         * Makefile (update-copyright): Also exclude doc/INSTALL*,
13157         since they are generated.  Suggested by Bruno Haible.
13158
13159 2011-01-01  Jim Meyering  <meyering@redhat.com>
13160
13161         maint: refine the update-copyright rule
13162         * Makefile (update-copyright): Also exclude any file that includes
13163         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
13164         code that merely generates the comment.
13165
13166 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
13167
13168         New module 'u8-grapheme-len'.
13169         * modules/unigbrk/u8-grapheme-len: New file.
13170         * modules/unigbrk/u8-grapheme-len-tests: New file.
13171         * lib/unigbrk.in.h: Add prototype for new function.
13172         * lib/unigbrk/u8-grapheme-len.c: New file.
13173         * tests/unigbrk/test-u8-grapheme-len.c: New file.
13174
13175         New module 'u16-grapheme-len'.
13176         * modules/unigbrk/u16-grapheme-len: New file.
13177         * modules/unigbrk/u16-grapheme-len-tests: New file.
13178         * lib/unigbrk.in.h: Add prototype for new function.
13179         * lib/unigbrk/u16-grapheme-len.c: New file.
13180         * tests/unigbrk/test-u16-grapheme-len.c: New file.
13181
13182         New module 'u32-grapheme-len'.
13183         * modules/unigbrk/u32-grapheme-len: New file.
13184         * modules/unigbrk/u32-grapheme-len-tests: New file.
13185         * lib/unigbrk.in.h: Add prototype for new function.
13186         * lib/unigbrk/u32-grapheme-len.c: New file.
13187         * tests/unigbrk/test-u32-grapheme-len.c: New file.
13188
13189         New module 'u8-grapheme-next'.
13190         * modules/unigbrk/u8-grapheme-next: New file.
13191         * modules/unigbrk/u8-grapheme-next-tests: New file.
13192         * lib/unigbrk.in.h: Add prototype for new function.
13193         * lib/unigbrk/u8-grapheme-next.c: New file.
13194         * tests/unigbrk/test-u8-grapheme-next.c: New file.
13195
13196         New module 'u16-grapheme-next'.
13197         * modules/unigbrk/u16-grapheme-next: New file.
13198         * modules/unigbrk/u16-grapheme-next-tests: New file.
13199         * lib/unigbrk.in.h: Add prototype for new function.
13200         * lib/unigbrk/u16-grapheme-next.c: New file.
13201         * tests/unigbrk/test-u16-grapheme-next.c: New file.
13202
13203         New module 'u32-grapheme-next'.
13204         * modules/unigbrk/u32-grapheme-next: New file.
13205         * modules/unigbrk/u32-grapheme-next-tests: New file.
13206         * lib/unigbrk.in.h: Add prototype for new function.
13207         * lib/unigbrk/u32-grapheme-next.c: New file.
13208         * tests/unigbrk/test-u32-grapheme-next.c: New file.
13209
13210         New module 'u8-grapheme-prev'.
13211         * modules/unigbrk/u8-grapheme-prev: New file.
13212         * modules/unigbrk/u8-grapheme-prev-tests: New file.
13213         * lib/unigbrk.in.h: Add prototype for new function.
13214         * lib/unigbrk/u8-grapheme-prev.c: New file.
13215         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
13216
13217         New module 'u16-grapheme-prev'.
13218         * modules/unigbrk/u16-grapheme-prev: New file.
13219         * modules/unigbrk/u16-grapheme-prev-tests: New file.
13220         * lib/unigbrk.in.h: Add prototype for new function.
13221         * lib/unigbrk/u16-grapheme-prev.c: New file.
13222         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
13223
13224         New module 'u32-grapheme-prev'.
13225         * modules/unigbrk/u32-grapheme-prev: New file.
13226         * modules/unigbrk/u32-grapheme-prev-tests: New file.
13227         * lib/unigbrk.in.h: Add prototype for new function.
13228         * lib/unigbrk/u32-grapheme-prev.c: New file.
13229         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
13230
13231         New module 'u8-grapheme-breaks'.
13232         * modules/unigbrk/u8-grapheme-breaks: New file.
13233         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
13234         * lib/unigbrk.in.h: Add prototype for new function.
13235         * lib/unigbrk/u8-grapheme-breaks.c: New file.
13236         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
13237
13238         New module 'u16-grapheme-breaks'.
13239         * modules/unigbrk/u16-grapheme-breaks: New file.
13240         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
13241         * lib/unigbrk.in.h: Add prototype for new function.
13242         * lib/unigbrk/u16-grapheme-breaks.c: New file.
13243         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
13244
13245         New module 'u32-grapheme-breaks'.
13246         * modules/unigbrk/u32-grapheme-breaks: New file.
13247         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
13248         * lib/unigbrk.in.h: Add prototype for new function.
13249         * lib/unigbrk/u32-grapheme-breaks.c: New file.
13250         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
13251
13252         New module 'ulc-grapheme-breaks'.
13253         * modules/unigbrk/ulc-grapheme-breaks: New file.
13254         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
13255         * m4/locale-ar.m4: New file.
13256         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
13257         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
13258         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
13259
13260 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
13261
13262         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
13263         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
13264         modified how this file was generated before I initially submitted
13265         the module, but failed to regenerate it.  This meant that several
13266         of the level2 entries were wrong.
13267         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
13268         Remove the division-by-2 that is folded into the table now that
13269         gbrkprop.h has been regenerated properly.  Now -1 entries are
13270         handled correctly.
13271
13272         New module 'unigbrk/uc-gbrk-prop-tests'.
13273         * modules/unigbrk/uc-gbrk-prop-tests: New file.
13274         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
13275         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
13276         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
13277
13278 2011-01-01  Bruno Haible  <bruno@clisp.org>
13279
13280         Avoid use of hexadecimal escapes.
13281         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
13282         instead of hexadecimal escapes.
13283
13284 2011-01-01  Jim Meyering  <meyering@redhat.com>
13285
13286         maint: new rule to update copyright year ranges
13287         * Makefile (update-copyright): New rule.
13288
13289         maint: indent with TABs in Makefile
13290         * Makefile: Expand leading sequences of spaces to TABs
13291
13292         version-etc: update the copyright year it reports
13293         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
13294
13295 2010-12-31  Bruno Haible  <bruno@clisp.org>
13296
13297         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
13298         * lib/isfinite.c (zerof, zerod, zerol): New variables.
13299         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
13300         zero.
13301
13302 2010-12-31  Bruno Haible  <bruno@clisp.org>
13303
13304         pwrite: Work around HP-UX 11.11 bug.
13305         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
13306         works and set REPLACE_PWRITE if not.
13307         * lib/pwrite.c (pwrite): Add an implementation that uses the system
13308         function.
13309         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
13310
13311 2010-12-31  Bruno Haible  <bruno@clisp.org>
13312
13313         pread: Work around HP-UX 11 bugs.
13314         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
13315         and set REPLACE_PREAD if not.
13316         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
13317
13318 2010-12-31  Eric Blake  <eblake@redhat.com>
13319
13320         nl_langinfo: fix YESEXPR on Irix 6.5
13321         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
13322         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
13323         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
13324         it.
13325
13326 2010-12-31  Bruno Haible  <bruno@clisp.org>
13327
13328         iconv: Document HP-UX 11 bug.
13329         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
13330
13331 2010-12-31  Bruno Haible  <bruno@clisp.org>
13332
13333         ldexpl: Fix link error on HP-UX 11.
13334         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
13335         LDEXPL_LIBM, using $ISNANL_LIBM.
13336
13337 2010-12-31  Eric Blake  <eblake@redhat.com>
13338
13339         ftello: avoid compilation failure with SunStudio c89
13340         * lib/ftello.c (ftello): Use lseek, not llseek.
13341
13342         tests: avoid failing coreutils tests on cygwin
13343         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
13344         (create_exe_shims_): Return 0 when skipping.
13345
13346 2010-12-31  Bruno Haible  <bruno@clisp.org>
13347
13348         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
13349         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
13350
13351 2010-12-31  Bruno Haible  <bruno@clisp.org>
13352
13353         waitpid: Fix link error in C++ mode.
13354         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
13355
13356 2010-12-31  Bruno Haible  <bruno@clisp.org>
13357
13358         isnan: Use GCC built-ins when possible.
13359         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
13360         __builtin_isnan.
13361         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
13362         (isnan): Define using GCC built-ins for GCC >= 4.0.
13363
13364 2010-12-31  Bruno Haible  <bruno@clisp.org>
13365
13366         isnand: Fix mistake.
13367         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
13368         __builtin_isnand.
13369
13370 2010-12-31  Bruno Haible  <bruno@clisp.org>
13371
13372         open: Avoid C++ error on HP-UX 11.
13373         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
13374
13375 2010-12-31  Bruno Haible  <bruno@clisp.org>
13376
13377         time_r: Add missing declarations on HP-UX 11.
13378         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
13379         instead of HAVE_LOCALTIME_R.
13380         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
13381         HAVE_LOCALTIME_R always.
13382         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
13383         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
13384         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
13385         HAVE_LOCALTIME_R.
13386         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
13387         * doc/posix-functions/localtime_r.texi: Likewise.
13388
13389 2010-12-29  Eric Blake  <eblake@redhat.com>
13390
13391         mountlist: tweak previous commit
13392         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
13393         Reported by Paul Eggert.
13394
13395         mountlist: fix local drive detection on cygwin
13396         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
13397         that works for cygwin.
13398
13399 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
13400
13401         ftoastr, snprintf: ftoastr + snprintf module
13402         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
13403         since the snprintf module now should be good enough here.
13404         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
13405         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
13406         and gl_MODULE_INDICATOR([snprintf]), but the former enables
13407         GNULIB_SNPRINTF only for the test directory, and the latter
13408         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
13409         seems to suffice by itself.
13410
13411 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
13412
13413         alloca: one step towards thread-safety
13414         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
13415         need for a static variable.  All callers changed.  This does not
13416         make the alloca replacement thread-safe, but it's one step.
13417
13418         tests: minor indenting change
13419         * tests/init.sh: Sync from coreutils housekeeping patch
13420         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
13421         to keep lines within 80 columns.
13422
13423 2010-12-28  Jim Meyering  <meyering@redhat.com>
13424
13425         regex: don't infloop on persistent failing calloc
13426         * lib/regexec.c (build_trtable): Return failure indication upon
13427         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
13428         In glibc, this was fixed for version 2.13:
13429         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
13430
13431 2010-12-28  Bruno Haible  <bruno@clisp.org>
13432             Paul Eggert <eggert@cs.ucla.edu>
13433
13434         linkat: Make implementation robust against system behaviour variations.
13435         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
13436         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
13437         way, and to -2 if it needs a generic runtime test.
13438         * lib/linkat.c (solaris_optimized_link_immediate,
13439         solaris_optimized_link_follow): New functions.
13440         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
13441         (check_same_link): Use it.
13442
13443 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
13444
13445         New module 'unigbrk/base'.
13446         * modules/unigbrk/base: New file.
13447         * lib/unigbrk.in.h: New file.
13448
13449         New module 'unigbrk/uc-gbrk-prop'.
13450         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
13451         * modules/unigbrk/uc-gbrk-prop: New file.
13452         * lib/unigbrk/gbrkprop.h: New file.
13453         * lib/unigbrk/uc-gbrk-prop.c: New file.
13454
13455         New module 'unigbrk/uc-is-grapheme-break'.
13456         * modules/unigbrk/uc-is-grapheme-break: New file.
13457         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
13458         * lib/unigbrk/uc-is-grapheme-break.c: New file.
13459         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
13460         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
13461         * tests/unigbrk/GraphemeBreakTest.txt: New file.
13462
13463         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
13464
13465 2010-12-27  Bruno Haible  <bruno@clisp.org>
13466
13467         linkat test: Avoid failure on Solaris 11 2010-11.
13468         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
13469
13470 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13471
13472         utimens: work around glibc rounding bug on more platforms
13473         * lib/utimens.c (fdutimens): Work around rounding bug even if
13474         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
13475         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
13476
13477 2010-12-27  Bruno Haible  <bruno@clisp.org>
13478
13479         select tests: Improve comments.
13480         * tests/test-select.c (do_select): Add comments.
13481
13482 2010-12-27  Bruno Haible  <bruno@clisp.org>
13483
13484         select tests: Safer way of handling timeout.
13485         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
13486         at every invocation.
13487
13488 2010-12-27  Bruno Haible  <bruno@clisp.org>
13489
13490         select tests: Use 'bool' where appropriate.
13491         * tests/test-select.c (connect_to_socket): Change argument type to
13492         'bool'.
13493
13494 2010-12-27  Bruno Haible  <bruno@clisp.org>
13495
13496         select tests: Use existing modules.
13497         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
13498         (configure.ac): Don't test for unistd.h.
13499         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
13500         declared in <unistd.h>.
13501
13502 2010-12-27  Bruno Haible  <bruno@clisp.org>
13503
13504         mbrtowc: Work around a Solaris 7 bug.
13505         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
13506         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
13507         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
13508         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
13509         MBRTOWC_NULL_ARG1_BUG.
13510         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
13511         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
13512         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
13513         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
13514
13515 2010-12-27  Jim Meyering  <meyering@redhat.com>
13516
13517         read-file.c: tweak syntax
13518         * lib/read-file.c (fread_file): Remove space after "*" in function
13519         definitions.
13520
13521 2010-12-27  Bruno Haible  <bruno@clisp.org>
13522
13523         times test: Avoid gcc warnings on OSF/1.
13524         * tests/test-times.c (main): Cast printf arguments from clock_t to
13525         'long int'.
13526
13527 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13528
13529         utimens: work around glibc rounding bug on older Linux kernels
13530         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
13531         on Linux with a glibc whose utimes might not work, then work
13532         around a longstanding glibc bug involving rounding rather than
13533         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
13534         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
13535
13536 2010-12-26  Bruno Haible  <bruno@clisp.org>
13537
13538         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
13539         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
13540         _GL_CXXALIAS_SYS.
13541         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13542
13543 2010-12-26  Bruno Haible  <bruno@clisp.org>
13544
13545         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
13546         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
13547         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
13548         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
13549         looking for the declaration.
13550         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
13551         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
13552         problem.
13553         * doc/posix-functions/inet_pton.texi: Likewise.
13554
13555 2010-12-26  Bruno Haible  <bruno@clisp.org>
13556
13557         arpa_inet: Use the common idioms with C++ support.
13558         * lib/arpa_inet.in.h: Include c++defs.h.
13559         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
13560         support.
13561         * modules/arpa_inet (Depends-on): Add c++defs.
13562         (Makefile.am): Substitute the contents of c++defs.h.
13563         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
13564         * modules/arpa_inet-c++-tests: New file.
13565         * tests/test-arpa_inet-c++.cc: New file.
13566
13567 2010-12-25  Bruno Haible  <bruno@clisp.org>
13568
13569         Fix more C++ link errors on Solaris 8.
13570         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
13571         $(LIB_EACCESS).
13572         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
13573         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
13574         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
13575         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
13576         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
13577
13578 2010-12-25  Bruno Haible  <bruno@clisp.org>
13579
13580         printf-posix: Fix link error when a non-GCC compiler is used.
13581         * lib/stdio.in.h (printf): When not using GCC, override printf
13582         correctly.
13583         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13584
13585 2010-12-25  Bruno Haible  <bruno@clisp.org>
13586
13587         strerror_r-posix: Update doc.
13588         * doc/posix-functions/strerror_r.texi: Update doc about the return
13589         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
13590
13591 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
13592
13593         utimens: simplify the logic of the previous change
13594         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
13595         This should not affect whether the test succeeds or fails.
13596
13597         utimens: configure better on hosts with NFS clock skew
13598         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
13599         uses the clock of the local host.  It might use the clock of the
13600         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
13601         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
13602
13603 2010-12-25  Bruno Haible  <bruno@clisp.org>
13604
13605         ptsname test: Avoid failure on Solaris.
13606         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
13607         open a pseudo-terminal; don't use BSD-style ptys.
13608         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
13609
13610 2010-12-25  Bruno Haible  <bruno@clisp.org>
13611
13612         ptsname: Avoid ERANGE failure on some systems.
13613         * lib/ptsname.c (buffer): Increase size.
13614
13615 2010-12-25  Bruno Haible  <bruno@clisp.org>
13616
13617         rename, renameat: Avoid test failures at NFS mounted locations.
13618         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
13619         so that subsequent mkdir calls succeed.
13620
13621 2010-12-25  Bruno Haible  <bruno@clisp.org>
13622
13623         iswblank: Fix C++ link error on Solaris 8.
13624         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
13625         _GL_FUNCDECL_SYS.
13626
13627 2010-12-25  Bruno Haible  <bruno@clisp.org>
13628
13629         unistd: Fix C++ link error on Solaris 8.
13630         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
13631
13632 2010-12-25  Bruno Haible  <bruno@clisp.org>
13633
13634         readlink doc: Mention an old glibc bug.
13635         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
13636
13637 2010-12-25  Bruno Haible  <bruno@clisp.org>
13638
13639         fcntl-h: Fix for use of C++ on glibc systems.
13640         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
13641         also on glibc systems in C++ mode.
13642         Reported by Gary V. Vaughan <gary@gnu.org>.
13643
13644 2010-12-25  Bruno Haible  <bruno@clisp.org>
13645
13646         roundl-ieee: Make it work on OSF/1 5.1 with cc.
13647         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
13648
13649 2010-12-25  Bruno Haible  <bruno@clisp.org>
13650
13651         truncl-ieee: Make it work on OSF/1 5.1 with cc.
13652         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
13653         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
13654         test whether truncl works according to ISO C 99 with IEC 60559.
13655         * m4/truncl-ieee.m4: New file.
13656         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
13657         m4/signbit.m4.
13658         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
13659
13660 2010-12-25  Bruno Haible  <bruno@clisp.org>
13661
13662         ceill-ieee: Make it work on OSF/1 5.1 with cc.
13663         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
13664         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
13665         test whether ceill works according to ISO C 99 with IEC 60559.
13666         * m4/ceill-ieee.m4: New file.
13667         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
13668         m4/signbit.m4.
13669         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
13670
13671 2010-12-25  Bruno Haible  <bruno@clisp.org>
13672
13673         Ensure all prerequisites of <wchar.h> are included.
13674         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
13675         before <wchar.h>.
13676         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
13677         gl_MBRLEN_NUL_RETVAL): Likewise.
13678         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13679         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
13680         AC_FUNC_MBRTOWC): Likewise.
13681         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13682         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
13683         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13684         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
13685         Likewise.
13686         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13687         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
13688         (gl_WCHAR_H): Improve comments.
13689         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
13690
13691 2010-12-25  Bruno Haible  <bruno@clisp.org>
13692
13693         strtok_r: Fix C syntax error in autoconf macro.
13694         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
13695         characters in test program.
13696
13697 2010-12-24  Bruno Haible  <bruno@clisp.org>
13698
13699         ceil, trunc, round: Fix gcc warnings.
13700         * lib/ceil.c (MIN): Undefine before redefining.
13701         * lib/trunc.c (MIN): Likewise.
13702         * lib/round.c (MIN): Likewise.
13703         Include <math.h> first.
13704
13705 2010-12-24  Bruno Haible  <bruno@clisp.org>
13706
13707         select tests: Avoid failures on OSF/1 5.1.
13708         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
13709         failure of closing the last socket; it may fail with ECONNRESET.
13710
13711 2010-12-24  Eric Blake  <eblake@redhat.com>
13712
13713         stdint: avoid HP-UX 10.20 preprocessor bug
13714         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
13715         than #if.
13716         * tests/test-floor2.c (main): Likewise.
13717         Reported by Peter O'Gorman.
13718
13719         pipe: make obsoletion transition easier
13720         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
13721         * modules/pipe (Files): Include revived file.
13722         (Include): Drop reference, to mirror getdate's behavior.
13723
13724 2010-12-24  Bruno Haible  <bruno@clisp.org>
13725
13726         sys_socket: Hide mismatch of declarations on NonStop Kernel.
13727         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
13728         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
13729         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13730
13731 2010-12-24  Bruno Haible  <bruno@clisp.org>
13732
13733         gethostname: Ensure declaration on NonStop Kernel.
13734         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
13735         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13736
13737 2010-12-24  Bruno Haible  <bruno@clisp.org>
13738
13739         sys_select: Ensure all necessary types on NonStop Kernel.
13740         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
13741         include <sys/time.h>.
13742         * doc/posix-headers/sys_select.texi: Mention that it's missing on
13743         NonStop Kernel.
13744         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13745
13746 2010-12-24  Bruno Haible  <bruno@clisp.org>
13747
13748         sys_select: Remove unneeded include.
13749         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
13750         have <sys/select.h>.
13751
13752 2010-12-24  Bruno Haible  <bruno@clisp.org>
13753
13754         gethostname: Provide a fallback for HOST_NAME_MAX.
13755         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
13756         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
13757         instead.
13758         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13759
13760 2010-12-24  Bruno Haible  <bruno@clisp.org>
13761
13762         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
13763         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
13764         (SA_RESTART): Likewise.
13765         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13766
13767 2010-12-24  Bruno Haible  <bruno@clisp.org>
13768
13769         signal: Define NSIG.
13770         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
13771         * tests/test-signal.c (nsig): New variable.
13772         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13773
13774 2010-12-24  Bruno Haible  <bruno@clisp.org>
13775
13776         rename, renameat: Avoid test failures on OSF/1 5.1.
13777         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
13778         alternative error codes.
13779         * tests/test-renameat.c (main): Likewise.
13780
13781 2010-12-24  Bruno Haible  <bruno@clisp.org>
13782
13783         *printf: Detect large precisions bug on Solaris 10/SPARC.
13784         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
13785         by Paul Eggert.
13786         * tests/test-snprintf-posix.h (test_function): Add this test code here
13787         too.
13788         * tests/test-sprintf-posix.h (test_function): Likewise.
13789         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13790         * tests/test-vasprintf-posix.c (test_function): Likewise.
13791         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
13792         around by gnulib.
13793         * doc/posix-functions/printf.texi: Likewise.
13794         * doc/posix-functions/snprintf.texi: Likewise.
13795         * doc/posix-functions/sprintf.texi: Likewise.
13796         * doc/posix-functions/vfprintf.texi: Likewise.
13797         * doc/posix-functions/vprintf.texi: Likewise.
13798         * doc/posix-functions/vsnprintf.texi: Likewise.
13799         * doc/posix-functions/vsprintf.texi: Likewise.
13800         * doc/posix-functions/dprintf.texi: Undo last commit.
13801         * doc/posix-functions/vdprintf.texi: Likewise.
13802
13803 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
13804
13805         tests: port test-fdutimensat.c to Solaris 8
13806         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
13807         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
13808         On Solaris 8, it fails with errno == ENOSYS, because there is no
13809         futimens (so it can't use the fd), and there is no lutimens (so it
13810         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
13811
13812         vsnprintf: make more consistent with snprintf; doc fixes
13813
13814         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
13815         the byte count return problem was promoted from the snprintf-posix
13816         to the snprintf module.
13817         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13818         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
13819         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
13820         * tests/test-snprintf.c (main): Check the byte count returned.
13821         * tests/test-vsnprintf.c (main): Likewise.
13822
13823 2010-12-23  Eric Blake  <eblake@redhat.com>
13824
13825         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
13826         * modules/sigpipe (License): Relax license.
13827
13828 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13829
13830         doc: document Solaris printf bug with large float precisions
13831         * doc/posix-functions/dprintf.texi (dprintf):
13832         * doc/posix-functions/fprintf.texi (fprintf):
13833         * doc/posix-functions/printf.texi (printf):
13834         * doc/posix-functions/snprintf.texi (snprintf):
13835         * doc/posix-functions/sprintf.texi (sprintf):
13836         * doc/posix-functions/vdprintf.texi (vdprintf):
13837         * doc/posix-functions/vfprintf.texi (vfprintf):
13838         * doc/posix-functions/vprintf.texi (vprintf):
13839         * doc/posix-functions/vsnprintf.texi (vsnprintf):
13840         * doc/posix-functions/vsprintf.texi (vsprintf):
13841         Mention that these functions mishandle large floating point
13842         precisions on Solaris 10.  The same bug is also present in Solaris
13843         8, and I assume earlier.  This causes "cd gnulib-tests; make
13844         check" to fail on Solaris 8 (and I assume, later) when building
13845         the latest coreutils, in test-vasprintf-posix's call to
13846         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
13847         the wide flavors (e.g., wprintf) so this patch just updates the
13848         documentation for the narrow ones.
13849
13850         test-posixtm.c: add two tests
13851         * tests/test-posixtm.c: Add two tests, to highlight the
13852         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
13853         around this bug; this is merely to document it.
13854
13855 2010-12-22  Bruno Haible  <bruno@clisp.org>
13856
13857         getlogin_r: Work around portability problem on OSF/1.
13858         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
13859         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
13860         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
13861         test for a truncated result.
13862         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
13863         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
13864         * modules/getlogin_r (Depends-on): Add memchr.
13865         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
13866
13867 2010-12-22  Bruno Haible  <bruno@clisp.org>
13868
13869         ptsname: Avoid test failure on OSF/1 5.1.
13870         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
13871         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
13872         (same_slave): New function.
13873         (main): Use it to compare ptsname's result with the expected file name.
13874
13875 2010-12-22  Bruno Haible  <bruno@clisp.org>
13876
13877         Port extended stdio modules to HP NonStop Kernel.
13878         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
13879         macros.
13880         * lib/fbufmode.c: Update comments.
13881         * lib/fflush.c: Likewise.
13882         * lib/fpurge.c: Likewise.
13883         * lib/freadable.c: Likewise.
13884         * lib/freadahead.c: Likewise.
13885         * lib/freading.c: Likewise.
13886         * lib/freadptr.c: Likewise.
13887         * lib/freadseek.c: Likewise.
13888         * lib/fseeko.c: Likewise.
13889         * lib/fseterr.c: Likewise.
13890         * lib/fwritable.c: Likewise.
13891         * lib/fwriting.c: Likewise.
13892         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13893
13894 2010-12-22  Bruno Haible  <bruno@clisp.org>
13895
13896         ttyname_r: Work around bug on OSF/1 5.1.
13897         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
13898         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
13899         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
13900         present.
13901         * lib/ttyname_r.c (ttyname_r): Update comments.
13902
13903 2010-12-22  Bruno Haible  <bruno@clisp.org>
13904
13905         round: Implement result sign according to IEEE 754.
13906         * lib/round.c (MIN, MINUS_ZERO): New macros.
13907         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
13908         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
13909         * tests/test-round-ieee.c (main): Likewise.
13910         * tests/test-roundl-ieee.c (main): Likewise.
13911
13912         trunc: Implement result sign according to IEEE 754.
13913         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
13914         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
13915         * tests/test-trunc2.c: Include minus-zero.h.
13916         (MINUS_ZERO): New macro.
13917         (trunc_reference): Keep in sync with lib/trunc.c.
13918         * tests/test-truncf2.c: Include minus-zero.h.
13919         (MINUS_ZERO): New macro.
13920         (truncf_reference): Keep in sync with lib/trunc.c.
13921         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
13922         * tests/test-trunc-ieee.c (main): Likewise.
13923         * tests/test-truncl-ieee.c (main): Likewise.
13924
13925         ceil: Implement result sign according to IEEE 754.
13926         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
13927         (FUNC): Return -0.0 for -1 < x < 0.
13928         * tests/test-ceil2.c: Include minus-zero.h.
13929         (MINUS_ZERO): New macro.
13930         (ceil_reference): Keep in sync with lib/ceil.c.
13931         * tests/test-ceilf2.c: Include minus-zero.h.
13932         (MINUS_ZERO): New macro.
13933         (ceilf_reference): Keep in sync with lib/ceil.c.
13934         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
13935         * tests/test-ceil-ieee.c (main): Likewise.
13936         * tests/test-ceill-ieee.c (main): Likewise.
13937
13938         floor: Implement result sign according to IEEE 754.
13939         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
13940         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
13941         * tests/test-floorf2.c (floorf_reference): Likewise.
13942         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
13943         * tests/test-floor-ieee.c (main): Likewise.
13944         * tests/test-floorl-ieee.c (main): Likewise.
13945
13946 2010-12-22  Bruno Haible  <bruno@clisp.org>
13947
13948         getaddrinfo: Update doc.
13949         * doc/posix-functions/gai_strerror.texi: Return type is also different
13950         on AIX and HP-UX.
13951
13952 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13953
13954         getaddrinfo, inet_ntop: Update doc for Solaris.
13955         * doc/posix-functions/gai_strerror.texi: Return type is also an
13956         issue on Solaris 9 and earlier.
13957         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
13958         on Solaris 10 and earlier.
13959
13960 2010-12-21  Bruno Haible  <bruno@clisp.org>
13961
13962         New module 'roundl-ieee'.
13963         * modules/roundl-ieee: New file.
13964         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
13965         test whether roundl works according to ISO C 99 with IEC 60559.
13966         * m4/roundl-ieee.m4: New file.
13967         * modules/roundl-ieee-tests: New file.
13968         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
13969         * tests/test-roundl.c (main): Remove signbit tests.
13970         * modules/roundl-tests (Depends-on): Remove signbit.
13971         * doc/posix-functions/roundl.texi: Mention the new module.
13972
13973 2010-12-21  Bruno Haible  <bruno@clisp.org>
13974
13975         New module 'truncl-ieee'.
13976         * modules/truncl-ieee: New file.
13977         * modules/truncl-ieee-tests: New file.
13978         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
13979         * tests/test-truncl.c (main): Remove signbit tests.
13980         * modules/truncl-tests (Depends-on): Remove signbit.
13981         * doc/posix-functions/truncl.texi: Mention the new module.
13982
13983 2010-12-21  Bruno Haible  <bruno@clisp.org>
13984
13985         New module 'ceill-ieee'.
13986         * modules/ceill-ieee: New file.
13987         * modules/ceill-ieee-tests: New file.
13988         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
13989         * tests/test-ceill.c (main): Remove signbit tests.
13990         * modules/ceill-tests (Depends-on): Remove signbit.
13991         * doc/posix-functions/ceill.texi: Mention the new module.
13992
13993 2010-12-21  Bruno Haible  <bruno@clisp.org>
13994
13995         New module 'floorl-ieee'.
13996         * modules/floorl-ieee: New file.
13997         * modules/floorl-ieee-tests: New file.
13998         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
13999         * tests/test-floorl.c (main): Remove signbit tests.
14000         * modules/floorl-tests (Depends-on): Remove signbit.
14001         * doc/posix-functions/floorl.texi: Mention the new module.
14002
14003 2010-12-21  Bruno Haible  <bruno@clisp.org>
14004
14005         New module 'round-ieee'.
14006         * modules/round-ieee: New file.
14007         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
14008         whether round works according to ISO C 99 with IEC 60559.
14009         * m4/round-ieee.m4: New file.
14010         * modules/round-ieee-tests: New file.
14011         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
14012         * tests/test-round1.c (main): Remove signbit tests.
14013         * modules/round-tests (Depends-on): Remove 'signbit'.
14014         * doc/posix-functions/round.texi: Mention the new module.
14015
14016 2010-12-21  Bruno Haible  <bruno@clisp.org>
14017
14018         New module 'trunc-ieee'.
14019         * modules/trunc-ieee: New file.
14020         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
14021         whether trunc works according to ISO C 99 with IEC 60559.
14022         * m4/trunc-ieee.m4: New file.
14023         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
14024         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
14025         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
14026         * modules/trunc-ieee-tests: New file.
14027         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
14028         * tests/test-trunc1.c (main): Remove signbit tests.
14029         * modules/trunc-tests (Depends-on): Remove 'signbit'.
14030         * doc/posix-functions/trunc.texi: Mention the new module.
14031
14032 2010-12-21  Bruno Haible  <bruno@clisp.org>
14033
14034         New module 'ceil-ieee'.
14035         * modules/ceil-ieee: New file.
14036         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
14037         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
14038         ISO C 99 with IEC 60559.
14039         * m4/ceil-ieee.m4: New file.
14040         * modules/ceil (Files): Add lib/ceil.c.
14041         (Depends-on): Add 'float'.
14042         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
14043         * lib/math.in.h (ceil): New declaration.
14044         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
14045         REPLACE_CEIL.
14046         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
14047         * modules/ceil-ieee-tests: New file.
14048         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
14049         * tests/test-math-c++.cc: Check the signature of 'ceil'.
14050         * doc/posix-functions/ceil.texi: Mention the new module.
14051
14052 2010-12-21  Bruno Haible  <bruno@clisp.org>
14053
14054         New module 'floor-ieee'.
14055         * modules/floor-ieee: New file.
14056         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
14057         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
14058         ISO C 99 with IEC 60559.
14059         * m4/floor-ieee.m4: New file.
14060         * modules/floor (Files): Add lib/floor.c.
14061         (Depends-on): Add 'float'.
14062         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
14063         * lib/math.in.h (floor): New declaration.
14064         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
14065         REPLACE_FLOOR.
14066         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
14067         * modules/floor-ieee-tests: New file.
14068         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
14069         * tests/test-math-c++.cc: Check the signature of 'floor'.
14070         * doc/posix-functions/floor.texi: Mention the new module.
14071
14072 2010-12-21  Bruno Haible  <bruno@clisp.org>
14073
14074         New module 'roundf-ieee'.
14075         * modules/roundf-ieee: New file.
14076         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
14077         test whether roundf works according to ISO C 99 with IEC 60559.
14078         * m4/roundf-ieee.m4: New file.
14079         * modules/roundf-ieee-tests: New file.
14080         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
14081         * tests/test-roundf1.c (main): Remove signbit tests.
14082         * modules/roundf-tests (Depends-on): Remove 'signbit'.
14083         * doc/posix-functions/roundf.texi: Mention the new module.
14084
14085 2010-12-21  Bruno Haible  <bruno@clisp.org>
14086
14087         New module 'truncf-ieee'.
14088         * modules/truncf-ieee: New file.
14089         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
14090         test whether truncf works according to ISO C 99 with IEC 60559.
14091         * m4/truncf-ieee.m4: New file.
14092         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
14093         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
14094         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
14095         * modules/truncf-ieee-tests: New file.
14096         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
14097         * tests/test-truncf1.c (main): Remove signbit tests.
14098         * modules/truncf-tests (Depends-on): Remove 'signbit'.
14099         * doc/posix-functions/truncf.texi: Mention the new module.
14100
14101 2010-12-21  Bruno Haible  <bruno@clisp.org>
14102
14103         New module 'ceilf-ieee'.
14104         * modules/ceilf-ieee: New file.
14105         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
14106         test whether ceilf works according to ISO C 99 with IEC 60559.
14107         * m4/ceilf-ieee.m4: New file.
14108         * modules/ceilf-ieee-tests: New file.
14109         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
14110         * tests/test-ceilf1.c (main): Remove signbit tests.
14111         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
14112         * doc/posix-functions/ceilf.texi: Mention the new module.
14113
14114 2010-12-21  Bruno Haible  <bruno@clisp.org>
14115
14116         New module 'floorf-ieee'.
14117         * modules/floorf-ieee: New file.
14118         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
14119         test whether floorf works according to ISO C 99 with IEC 60559.
14120         * m4/floorf-ieee.m4: New file.
14121         * modules/floorf-ieee-tests: New file.
14122         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
14123         * tests/test-floorf1.c (main): Remove signbit tests.
14124         * modules/floorf-tests (Depends-on): Remove 'signbit'.
14125         * doc/posix-functions/floorf.texi: Mention the new module.
14126
14127 2010-12-21  Bruno Haible  <bruno@clisp.org>
14128
14129         Support for minus zero in autoconf macros.
14130         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
14131         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
14132         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
14133         * tests/minus-zero.h: Update comments.
14134
14135 2010-12-21  Bruno Haible  <bruno@clisp.org>
14136
14137         Tests for module 'ceil'.
14138         * modules/ceil-tests: New file.
14139         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
14140         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
14141
14142 2010-12-21  Bruno Haible  <bruno@clisp.org>
14143
14144         Tests for module 'floor'.
14145         * modules/floor-tests: New file.
14146         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
14147         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
14148
14149 2010-12-21  Bruno Haible  <bruno@clisp.org>
14150
14151         math: Fix indentation.
14152         * lib/math.in.h (floorf): Fix indentation.
14153
14154 2010-12-21  Bruno Haible  <bruno@clisp.org>
14155
14156         Fix cross-compilation guesses on Solaris.
14157         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
14158         not match "solaris2.10".
14159         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14160         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
14161         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
14162
14163 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
14164
14165         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
14166         This fixes a problem observed with the latest coreutils snapshot
14167         that caused a test to fail on Solaris 8.  src/csplit.c's call
14168         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
14169         earlier, instead of returning the number of bytes that would have
14170         been generated; this causes csplit to incorrectly report memory
14171         exhaustion.
14172         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
14173         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
14174         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
14175         comments to match.
14176         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
14177         Fix typo in matching older versions of Solaris: "solaris2.10"
14178         is matched by the shell pattern "solaris2.[0-9]*".  This matters
14179         only for guessing while cross-compiling.
14180         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
14181
14182 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
14183
14184         ftoastr: fix comment again
14185         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
14186         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
14187         Also, simplify example a bit by using flags = 0.
14188
14189 2010-12-20  Bruno Haible  <bruno@clisp.org>
14190
14191         round*, trunc*: Update documentation regarding glibc.
14192         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
14193         * doc/posix-functions/round.texi: Likewise.
14194         * doc/posix-functions/roundl.texi: Likewise.
14195         * doc/posix-functions/truncf.texi: Likewise.
14196         * doc/posix-functions/trunc.texi: Likewise.
14197         * doc/posix-functions/truncl.texi: Likewise.
14198
14199 2010-12-20  Bruno Haible  <bruno@clisp.org>
14200
14201         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
14202         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
14203         * doc/posix-functions/round.texi: Likewise.
14204         * doc/posix-functions/roundl.texi: Likewise.
14205
14206 2010-12-20  Bruno Haible  <bruno@clisp.org>
14207
14208         ttyname_r: Add missing declaration on HP-UX 11.
14209         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
14210         HAVE_TTYNAME_R.
14211         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
14212         declared. Set HAVE_TTYNAME_R always.
14213         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14214         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
14215         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
14216         HAVE_TTYNAME_R.
14217         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
14218
14219 2010-12-20  Bruno Haible  <bruno@clisp.org>
14220
14221         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
14222         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
14223         * doc/posix-functions/getlogin_r.texi: Likewise.
14224         * tests/test-getlogin.c: Include <errno.h>.
14225         (main): Avoid test failure on HP-UX 11.11.
14226         * tests/test-getlogin_r.c (main): Likewise.
14227
14228 2010-12-20  Bruno Haible  <bruno@clisp.org>
14229
14230         getlogin_r: Add missing declaration on HP-UX 11.
14231         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
14232         declared also when it exists as a function.
14233         * doc/posix-functions/getlogin_r.texi: Document this workaround.
14234
14235 2010-12-20  Bruno Haible  <bruno@clisp.org>
14236
14237         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
14238         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
14239         through wcrtomb.
14240
14241 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
14242
14243         ftoastr: fix comment
14244         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
14245         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
14246
14247 2010-12-19  Bruno Haible  <bruno@clisp.org>
14248
14249         isnan: Ensure it is a macro.
14250         * lib/math.in.h (isnan): Define as a macro if not already a macro.
14251         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
14252         Solaris.
14253
14254 2010-12-19  Bruno Haible  <bruno@clisp.org>
14255
14256         ldexpl test: Fix link error on OSF/1 5.1.
14257         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
14258
14259 2010-12-19  Bruno Haible  <bruno@clisp.org>
14260
14261         wctype: Make it work in C++ mode on OSF/1 5.1.
14262         * lib/wctype.in.h (iswblank): Declare but not define here.
14263         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
14264         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
14265         * modules/wctype (Files): Add lib/iswblank.c.
14266
14267 2010-12-19  Bruno Haible  <bruno@clisp.org>
14268
14269         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
14270         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
14271         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
14272
14273 2010-12-19  Bruno Haible  <bruno@clisp.org>
14274
14275         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
14276         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
14277         _POSIX_PII_SOCKET.
14278         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
14279         * doc/posix-functions/recvfrom.texi: Likewise.
14280         * doc/posix-functions/send.texi: Likewise.
14281         * doc/posix-functions/sendto.texi: Likewise.
14282
14283 2010-12-19  Bruno Haible  <bruno@clisp.org>
14284
14285         tcgetsid: Add missing declaration on OSF/1 5.1.
14286         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
14287         HAVE_TCGETSID.
14288         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
14289         Don't set HAVE_TCGETSID.
14290         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
14291         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
14292         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
14293         HAVE_TCGETSID.
14294         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
14295
14296 2010-12-19  Bruno Haible  <bruno@clisp.org>
14297
14298         stdio: Fix problem with popen() declaration on OSF/1 5.1.
14299         * lib/stdio.in.h: During the include_next statement, let recursive
14300         includes of this file include only the system header file.
14301
14302 2010-12-19  Bruno Haible  <bruno@clisp.org>
14303
14304         iconv_open: Fix regression from 2010-12-04.
14305         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
14306         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
14307
14308 2010-12-19  Bruno Haible  <bruno@clisp.org>
14309
14310         stdbool test: Avoid a gcc warning.
14311         * tests/test-stdbool.c (main): Fail if e1 is false.
14312         Reported by Jim Meyering.
14313
14314 2010-12-19  Jim Meyering  <meyering@redhat.com>
14315
14316         setenv: restore to working order
14317         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
14318         mistakenly removed.
14319         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
14320         HAVE_SETENV.
14321         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
14322         HAVE_SETENV.
14323
14324 2010-12-19  Bruno Haible  <bruno@clisp.org>
14325
14326         Document some different function declarations on OSF/1 5.1.
14327         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
14328         * doc/posix-functions/inet_ntop.texi: Likewise.
14329         * doc/posix-functions/gethostname.texi: Likewise.
14330         * lib/unistd.in.h (gethostname): Update comment.
14331
14332 2010-12-19  Bruno Haible  <bruno@clisp.org>
14333
14334         doc: Mention vasprintf-posix module.
14335         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
14336         the 'vasprintf-posix' module.
14337         * doc/glibc-functions/vasprintf.texi: Likewise.
14338
14339 2010-12-19  Bruno Haible  <bruno@clisp.org>
14340
14341         unsetenv: Add missing declaration on OSF/1 5.1.
14342         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
14343         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
14344         Don't set HAVE_UNSETENV. In the test program, set _BSD.
14345         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
14346         not HAVE_UNSETENV.
14347         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
14348         HAVE_UNSETENV.
14349         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
14350
14351 2010-12-19  Bruno Haible  <bruno@clisp.org>
14352
14353         setenv: Add missing declaration on OSF/1 5.1.
14354         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
14355         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
14356         declared. Don't set HAVE_SETENV.
14357         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
14358         not HAVE_SETENV.
14359         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
14360         HAVE_SETENV.
14361         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
14362
14363 2010-12-19  Bruno Haible  <bruno@clisp.org>
14364
14365         nl_langinfo tests: Avoid gcc warning.
14366         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
14367
14368 2010-12-19  Bruno Haible  <bruno@clisp.org>
14369
14370         mknod: Avoid error in C++ mode on OSF/1 with GCC.
14371         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
14372         _GL_CXXALIAS_SYS.
14373
14374 2010-12-19  Bruno Haible  <bruno@clisp.org>
14375
14376         stdbool: Relax test.
14377         * tests/test-stdbool.c (e): Don't require that casts from a variable's
14378         address to 'bool' work in static initializer, for compilers other than
14379         GCC.
14380
14381 2010-12-19  Bruno Haible  <bruno@clisp.org>
14382
14383         ftello: Add missing declaration on OSF/1 5.1.
14384         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
14385         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
14386         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
14387         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
14388         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
14389
14390 2010-12-19  Bruno Haible  <bruno@clisp.org>
14391
14392         fseeko: Add missing declaration on OSF/1 5.1.
14393         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
14394         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
14395         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
14396         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
14397         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
14398
14399 2010-12-19  Bruno Haible  <bruno@clisp.org>
14400
14401         fchdir: Add missing declaration on OSF/1 5.1.
14402         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
14403         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
14404         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
14405         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
14406         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
14407
14408 2010-12-19  Bruno Haible  <bruno@clisp.org>
14409
14410         relocatable-prog-wrapper: Separate from relocatable-prog.
14411         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
14412         uninstall-relocwrapper rule here.
14413         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
14414         Reported by Ian Beckwith <ianb@erislabs.net>.
14415
14416 2010-12-19  Bruno Haible  <bruno@clisp.org>
14417
14418         unistr/u8-mbsnlen: Add missing dependency.
14419         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
14420         Reported by Ian Beckwith <ianb@erislabs.net>.
14421
14422 2010-12-19  Bruno Haible  <bruno@clisp.org>
14423
14424         iconv: Make it possible again to use this module without 'iconv-h'.
14425         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
14426         if it is not defined.
14427         Reported by Ian Beckwith <ianb@erislabs.net>.
14428
14429 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
14430
14431         acl: port to Solaris 8 when copying from tmpfs to ufs
14432         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
14433         error number.  Problem observed on Solaris 8 with latest
14434         coreutils, with "mv A B", where A is on a tmpfs file system and B
14435         is on a ufs file system.  This caused coreutils' mv/part-symlink
14436         test to fail.
14437
14438         tests: set fail=0 at start
14439         * tests/init.sh (setup_): Move fail=0 initialization here ...
14440         (mktempd_): ... from here, so that tests can rely on fail being
14441         set to 0 initially.  This fixes a problem in coreutils; see:
14442         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
14443
14444 2010-12-18  Bruno Haible  <bruno@clisp.org>
14445
14446         memmem-simple: Stylistic changes.
14447         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
14448         Fix preprocessor directive indentation.
14449
14450 2010-12-15  Pádraig Brady <P@draigBrady.com>
14451
14452         memmem, memmem-simple: reorganize and expand empty needle check
14453         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
14454         functional checks to memmem-simple so that one has a fully functional
14455         memmem by using just this module.
14456         Restrict the performance only check to the memmem module.
14457         Also expand the empty needle check to ensure the correct
14458         pointer is returned, not just a non NULL pointer.
14459         * doc/glibc-functions/memmem.texi: Rearrange the portability
14460         documentation to correlate with the rearranged checks.
14461         Clarify exactly how the memmem and memmem-simple modules
14462         relate to each other.
14463
14464 2010-12-15  Pádraig Brady <P@draigBrady.com>
14465             Bruno Haible  <bruno@clisp.org>
14466
14467         Improve cross-compilation guesses for uClibc.
14468         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
14469         that uClibc does not have the glibc bug.
14470         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
14471         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
14472
14473 2010-12-14  Eric Blake  <eblake@redhat.com>
14474
14475         configmake: provide fallbacks for oldest supported autotools
14476         * m4/configmake.m4: New file.
14477         * modules/configmake (Files): Ship it.
14478         (configure.ac): Use it to guarantee fallbacks.
14479
14480 2010-12-13  Pádraig Brady <P@draigBrady.com>
14481
14482         read-file: Improve handling of large files
14483         * lib/read-file.c (fread_file): Minimize realloc()s
14484         for regular files, and better manage sizes around SIZE_MAX.
14485
14486 2010-12-13  Eric Blake  <eblake@redhat.com>
14487
14488         cloexec, fcntl: relax license
14489         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
14490         consent from all contributors.
14491         * modules/fcntl (License): Likewise.
14492
14493 2010-12-10  Bruno Haible  <bruno@clisp.org>
14494
14495         Tests for module 'pipe-posix'.
14496         * modules/pipe-posix-tests: New file.
14497         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
14498
14499 2010-12-10  Bruno Haible  <bruno@clisp.org>
14500
14501         pipe-posix: Make it work in C++ mode.
14502         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
14503         (pipe): Use common idiom, not a macro definition.
14504         * lib/pipe.c: New file.
14505         * m4/pipe.m4: New file.
14506         * modules/pipe-posix (Description): Enhance.
14507         (Files): Add lib/pipe.c, m4/pipe.m4.
14508         (configure.ac): Invoke gl_FUNC_PIPE.
14509         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
14510         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
14511         * tests/test-unistd-c++.cc: Check the signature of pipe.
14512
14513 2010-12-10  Bruno Haible  <bruno@clisp.org>
14514
14515         Rename module 'pipe' to 'spawn-pipe'.
14516         * modules/spawn-pipe: New file, renamed from modules/pipe.
14517         (Files, configure.ac, Makefile.am): Update.
14518         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
14519         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
14520         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
14521         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
14522         "spawn-pipe.h" instead of "pipe.h".
14523         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
14524         to gl_SPAWN_PIPE.
14525         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
14526         (Files, Makefile.am): Update.
14527         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
14528         Update.
14529         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
14530         Include "spawn-pipe.h" instead of "pipe.h".
14531         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
14532         * lib/javacomp.c: Likewise.
14533         * lib/javaversion.c: Likewise.
14534         * lib/pipe-filter-gi.c: Likewise.
14535         * lib/pipe-filter-ii.c: Likewise.
14536         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
14537         * modules/javacomp (Depends-on): Likewise.
14538         * modules/javaversion (Depends-on): Likewise.
14539         * modules/pipe-filter-gi (Depends-on): Likewise.
14540         * modules/pipe-filter-ii (Depends-on): Likewise.
14541         * MODULES.html.sh (Executing programs): Update.
14542         * NEWS: Mention the change.
14543
14544 2010-12-10  Eric Blake  <eblake@redhat.com>
14545
14546         pipe-posix: new module
14547         * modules/pipe-posix: New file.
14548         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
14549         (gl_UNISTD_H): Check for declaration.
14550         * modules/unistd (Makefile.am): Substitute it.
14551         * lib/unistd.in.h (pipe): Provide it for mingw.
14552         * doc/posix-functions/pipe.texi (pipe): Update documentation.
14553         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
14554
14555 2010-12-07  Bruno Haible  <bruno@clisp.org>
14556
14557         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
14558         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
14559         u8_strcmp_gnu.
14560         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
14561
14562 2010-12-06  Bruno Haible  <bruno@clisp.org>
14563
14564         Update internal documentation.
14565         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
14566
14567 2010-12-04  Bruno Haible  <bruno@clisp.org>
14568
14569         Put more information about failed tests into the test return codes.
14570         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
14571         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
14572         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
14573         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14574         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
14575         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14576         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14577         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
14578         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
14579         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14580         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
14581         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
14582         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14583         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14584         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
14585         returns a bit mask.
14586         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
14587         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
14588         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
14589         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
14590         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
14591         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
14592         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
14593         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
14594         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
14595         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
14596         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
14597         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
14598         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
14599         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
14600         * m4/link.m4 (gl_FUNC_LINK): Likewise.
14601         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
14602         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
14603         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
14604         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14605         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
14606         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
14607         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
14608         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
14609         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
14610         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14611         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
14612         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
14613         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
14614         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
14615         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
14616         gl_PRINTF_PRECISION): Likewise.
14617         * m4/regex.m4 (gl_REGEX): Likewise.
14618         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
14619         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14620         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
14621         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14622         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14623         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14624         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
14625         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
14626         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
14627         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14628         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
14629         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
14630         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
14631         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
14632         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14633         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14634         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
14635         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
14636         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14637         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
14638         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
14639         enumerated value.
14640         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
14641
14642 2010-12-04  Bruno Haible  <bruno@clisp.org>
14643
14644         Update for Solaris 11 2010-11.
14645         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
14646         Express, released in November 2010.
14647
14648 2010-12-04  Bruno Haible  <bruno@clisp.org>
14649
14650         nproc: Relax license.
14651         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
14652         and Paul Eggert.
14653         Requested by Ludovic Courtès <ludo@gnu.org>.
14654
14655 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
14656
14657         utimecmp: fine-grained src to nearby coarse-grained dest
14658
14659         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
14660         and the source is on a file system with higher-resolution time
14661         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
14662         not work, and the time stamps are close together, the algorithm to
14663         determine the exact resolution from the read-back mtime was buggy:
14664         it had a "!=" where it should have had an "==".  This bug has been
14665         in the code ever since it was introduced to gnulib.
14666         Problem reported by Dan Jacobson in
14667         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
14668
14669 2010-11-30  Bruno Haible  <bruno@clisp.org>
14670
14671         strerror_r-posix: Fix autoconf test.
14672         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
14673
14674 2010-11-28  Bruno Haible  <bruno@clisp.org>
14675             Paul Eggert  <eggert@cs.ucla.edu>
14676
14677         Tests for module 'getdomainname'.
14678         * modules/getdomainname-tests: New file.
14679         * tests/test-getdomainname.c: New file, based on
14680         tests/test-gethostname.c.
14681
14682 2010-11-28  Bruno Haible  <bruno@clisp.org>
14683             Paul Eggert  <eggert@cs.ucla.edu>
14684
14685         getdomainname: Use the system function when possible.
14686         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
14687         (getdomainname): Replace if needed. Provide the declaration if it is
14688         missing. Don't use _GL_CXXALIAS_SYS_CAST.
14689         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
14690         (getdomainname): When the system has getdomainname, call the system
14691         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
14692         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
14693         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
14694         found in libnsl. Look for the declaration also in <netdb.h>. Replace
14695         the function if its second argument is of type 'int' or if it is found
14696         in libnsl.
14697         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
14698         <sys/systeminfo.h> and sysinfo().
14699         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
14700         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14701         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
14702         HAVE_GETDOMAINNAME.
14703         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
14704         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
14705         * doc/glibc-functions/getdomainname.texi: Document the problems with
14706         the getdomainname declaration.
14707
14708 2010-11-28  Bruno Haible  <bruno@clisp.org>
14709
14710         sys_socket: Ensure ss_family field on AIX.
14711         * lib/sys_socket.in.h (ss_family): New macro definition.
14712         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
14713         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
14714         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
14715         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14716         * modules/sys_socket (Makefile.am): Substitute
14717         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14718         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
14719
14720 2010-11-27  Bruno Haible  <bruno@clisp.org>
14721
14722         readline: Improve configure output.
14723         * m4/readline.m4 (gl_FUNC_READLINE): Make the
14724         "checking for readline..." result understandable.
14725
14726 2010-11-27  Bruno Haible  <bruno@clisp.org>
14727
14728         *printf-posix: Detect a bug on Solaris 10/x86.
14729         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
14730         for floating-point output.
14731         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
14732         directive.
14733         * tests/test-snprintf-posix.h (test_function): Likewise.
14734         * tests/test-sprintf-posix.h (test_function): Likewise.
14735         * tests/test-vasprintf-posix.c (test_function): Likewise.
14736         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
14737         * doc/posix-functions/printf.texi: Likewise.
14738         * doc/posix-functions/snprintf.texi: Likewise.
14739         * doc/posix-functions/sprintf.texi: Likewise.
14740         * doc/posix-functions/vfprintf.texi: Likewise.
14741         * doc/posix-functions/vprintf.texi: Likewise.
14742         * doc/posix-functions/vsnprintf.texi: Likewise.
14743         * doc/posix-functions/vsprintf.texi: Likewise.
14744         * doc/glibc-functions/obstack_printf.texi: Likewise.
14745         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14746
14747 2010-11-27  Bruno Haible  <bruno@clisp.org>
14748
14749         Fix link error when module libunistring-optional is in use.
14750         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
14751         * modules/striconveha-tests (Makefile.am): Likewise.
14752
14753 2010-11-27  Bruno Haible  <bruno@clisp.org>
14754
14755         regex: Mention link dependencies.
14756         * modules/regex (Link): New section.
14757         * modules/rpmatch (Link): Likewise.
14758         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
14759
14760 2010-11-27  Bruno Haible  <bruno@clisp.org>
14761
14762         ftoastr: Fix compilation error on Solaris.
14763         * lib/ftoastr.c: Include <config.h>.
14764
14765 2010-11-27  Bruno Haible  <bruno@clisp.org>
14766
14767         getloadavg: Update documentation.
14768         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
14769
14770 2010-11-27  Bruno Haible  <bruno@clisp.org>
14771
14772         sys_socket: Fix test whether the functions are declared.
14773         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
14774         not <sys/select.h>.
14775
14776 2010-11-27  Bruno Haible  <bruno@clisp.org>
14777
14778         getpass: Make sure to get system declaration on some platforms.
14779         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
14780         gl_USE_SYSTEM_EXTENSIONS.
14781         * modules/getpass (Depends-on): Add extensions.
14782
14783 2010-11-26  Bruno Haible  <bruno@clisp.org>
14784
14785         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
14786         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
14787         'iconv' module is present.
14788         (ICONV_CONST): New macro.
14789         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
14790         ICONV_CONST.
14791         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
14792         set ICONV_CONST.
14793         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
14794         here.
14795         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
14796         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
14797         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
14798         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
14799         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
14800         present.
14801
14802 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
14803
14804         ftoastr: comment fix
14805         * lib/ftoastr.c: "little" -> "little or no" in comment
14806
14807 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
14808
14809         stdint: port to GCC 4.3 + OSX + Octave
14810         On this platform, stdint.h is buggy and defines int64_t to long
14811         long int.  The replacement defined it to long int, causing
14812         problems with C++ style name mangling.  Instead, trust the system
14813         definition if INT64_MAX is defined, and likewise for the unsigned
14814         variant.   Problem reported by Jarno Rajahalme in
14815         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
14816         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
14817         and don't mess with int64_t and INT64_MAX in this case.
14818         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
14819
14820 2010-11-24  Bruno Haible  <bruno@clisp.org>
14821
14822         doc: Corrections regarding MacOS X 10.4 and 10.5.
14823         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
14824         MacOS X.
14825         Reported by Simon Josefsson.
14826
14827 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
14828
14829         Uninstall ".bin" files installed by relocwrapper.
14830         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
14831         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
14832         unless it is already there.
14833
14834 2010-11-21  Bruno Haible  <bruno@clisp.org>
14835
14836         Update for NetBSD 5.0.
14837         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
14838         NetBSD; the test fails on NetBSD 5.0.
14839         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
14840         about NetBSD.
14841
14842 2010-11-21  Bruno Haible  <bruno@clisp.org>
14843
14844         Update for HP-UX 11.23 and HP-UX 11.31.
14845         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
14846         HP-UX.
14847
14848 2010-11-21  Bruno Haible  <bruno@clisp.org>
14849
14850         Update for MacOS X 10.5.
14851         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
14852         MacOS X; the test fails on MacOS X 10.5.8.
14853         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
14854         about MacOS X.
14855
14856 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
14857
14858         bootstrap: add bootstrap_sync option.
14859         See discussion at
14860         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
14861         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
14862         * build-aux/bootstrap: Accept --bootstrap-sync to update
14863         bootstrap if it is not identical to the local gnulib's
14864         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
14865         enable this by default.  Accept --no-bootstrap-sync to disable
14866         it.
14867
14868 2010-11-20  Bruno Haible  <bruno@clisp.org>
14869
14870         Ensure that <features.h> is included before __GLIBC__ is tested.
14871         * lib/printf-parse.h: Include <features.h>.
14872         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
14873         Reported by Mike Frysinger <vapier@gentoo.org>.
14874
14875         Ensure that <features.h> is included before __GLIBC__ is tested.
14876         * lib/wchar.in.h: Include <features.h>.
14877         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
14878         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
14879         Reported by Mike Frysinger <vapier@gentoo.org>.
14880
14881         Ensure that <features.h> is included before __GLIBC__ is tested.
14882         * lib/arpa_inet.in.h: Include <features.h>.
14883         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
14884         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
14885         Reported by Mike Frysinger <vapier@gentoo.org>.
14886
14887         Ensure that <features.h> is included before __GLIBC__ is tested.
14888         * build-aux/link-warning.h: Include <features.h>.
14889         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
14890         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
14891         Reported by Mike Frysinger <vapier@gentoo.org>.
14892
14893         Ensure that <features.h> is included before __GLIBC__ is tested.
14894         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
14895         Reported by Mike Frysinger <vapier@gentoo.org>.
14896
14897 2010-11-20  Bruno Haible  <bruno@clisp.org>
14898
14899         memmem: Fix autoconf test.
14900         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
14901
14902 2010-11-20  Bruno Haible  <bruno@clisp.org>
14903
14904         Port to uClibc.
14905         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
14906         * lib/fcntl.in.h: Likewise.
14907         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
14908         * lib/mbrtowc.c (mbrtowc): Likewise.
14909         * lib/relocatable.c (find_shared_library_fullname): Likewise.
14910         * lib/strerror_r.c: Likewise.
14911         * lib/unistr/u8-strnlen.c: Likewise.
14912         * lib/vasnprintf.c (decimal_point_char): Likewise.
14913         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
14914         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
14915         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
14916         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
14917         * tests/test-sigaction.c (handler, main): Likewise.
14918         * lib/freading.h: Treat uClibc like a non-glibc platform.
14919         * lib/freading.c: Likewise.
14920         * lib/gettext.h: Likewise.
14921         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
14922         Likewise.
14923         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
14924         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
14925         * lib/propername.c (proper_name_utf8): Likewise.
14926         * lib/spawn.in.h: Likewise.
14927         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
14928         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
14929         mem_cd_iconveh_internal): Likewise.
14930         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
14931         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
14932         strstr, strcasestr): Likewise.
14933         * lib/unicodeio.c (unicode_to_mb): Likewise.
14934         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
14935         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
14936         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
14937         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
14938         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
14939         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
14940         * lib/unistr/u8-stpncpy.c: Likewise.
14941         * lib/vasnprintf.c (VASNPRINTF): Likewise.
14942         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
14943         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14944         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14945         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
14946         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
14947         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
14948         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
14949         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
14950         Likewise.
14951         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
14952         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14953         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
14954         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14955         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
14956         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14957         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14958         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
14959         * tests/test-getopt.h (OPTIND_MIN): Likewise.
14960         * tests/test-striconveha.c (main): Likewise.
14961         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14962         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
14963         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
14964         * doc/posix-functions/getline.texi: Likewise.
14965         Reported by Mike Frysinger <vapier@gentoo.org>.
14966
14967 2010-11-20  Bruno Haible  <bruno@clisp.org>
14968
14969         nproc: Fix condition.
14970         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
14971         HAVE_PTHREAD_AFFINITY_NP.
14972
14973 2010-11-20  Bruno Haible  <bruno@clisp.org>
14974
14975         Fix a comment.
14976         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
14977
14978 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
14979
14980         ftoastr: don't assume snprintf
14981         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
14982         Implement a subset of snprintf here, by using sprintf safely.
14983         * modules/ftoastr (Depends-on): Remove snprintf.
14984
14985 2010-11-19  Jim Meyering  <meyering@redhat.com>
14986
14987         test-rename.h: fix compilation failure
14988         * tests/test-rename.h (test_rename): Add omitted "}".
14989
14990 2010-11-17  Jim Meyering  <meyering@redhat.com>
14991
14992         maint.mk: add a URL discussing the no-@acronym policy
14993         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
14994
14995 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
14996
14997         ftoastr: depend on snprintf, improve comments
14998         * lib/ftoastr.c: Also mention Loitsch's draft.
14999         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
15000         needed in the current implementation, but it might simplify
15001         speeding up the code later.
15002         * modules/ftoastr: Depend on snprintf; this improves portability.
15003         Suggested by Bruno Haible in the same email.
15004
15005         ftoastr: port to hosts lacking strtof and strtold
15006         Problem reported by Bruno Haible in
15007         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
15008         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
15009         environment and strtold (and presumably strtof) are not available.
15010         * modules/ftoastr (Files): Add m4/c-strtod.m4.
15011         (configure.ac): Require gl_C99_STRTOLD.
15012
15013 2010-11-18  Bruno Haible  <bruno@clisp.org>
15014
15015         c-strtold: Avoid link error on AIX 7.
15016         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
15017         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
15018         (gl_C_STRTOLD): Test whether strtold_l exists.
15019         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15020
15021 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
15022
15023         intprops: new macro INT_BITS_STRLEN_BOUND
15024         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
15025         ftoastr.h.  This exposes an internal of intprops.h that was formerly
15026         not exposed.  Also, it uses a slightly tighter bound than before;
15027         though this makes no practical difference, we might as well be as
15028         tight as we easily can.
15029
15030         ftoastr: new module, for lossless conversion of floats to short strings
15031         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
15032         * modules/ftoastr: New files.
15033
15034 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
15035
15036         bootstrap: port to Solaris sed
15037         * build-aux/bootstrap (get_version): Port to Solaris sed.
15038         See Ralf Wildenhues's note in
15039         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
15040
15041 2010-11-14  Jim Meyering  <meyering@redhat.com>
15042
15043         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
15044         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
15045         and move definition closer to sole use.
15046
15047 2010-11-13  Jim Meyering  <meyering@redhat.com>
15048
15049         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
15050         Now we require at least autoconf-2.59, which means the work-around
15051         is no longer needed.
15052         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
15053         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
15054         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
15055         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
15056         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
15057
15058 2010-11-13  Bruno Haible  <bruno@clisp.org>
15059
15060         rename, renameat: Avoid test failures at NFS mounted locations.
15061         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
15062         functions.
15063         (test_rename): Use assert_nonexistent.
15064         * tests/test-rename.c: Include <dirent.h>.
15065         * tests/test-renameat.c: Likewise.
15066         Reported by Gary V. Vaughan <gary@gnu.org>.
15067
15068         rename, renameat: Document Linux bug with NFS
15069         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
15070         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
15071         * doc/posix-functions/renameat.texi: Likewise.
15072         Suggested by Eric Blake.
15073
15074 2010-11-13  Bruno Haible  <bruno@clisp.org>
15075
15076         rename test: Add comments.
15077         * tests/test-rename.h (test_rename): Add structure and comments.
15078
15079 2010-11-13  Eric Blake  <eblake@redhat.com>
15080
15081         maintainer-makefile: cover a few more files
15082         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
15083         scripts generated within C files, for libvirt.
15084
15085 2010-11-13  Bruno Haible  <bruno@clisp.org>
15086
15087         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
15088         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
15089         character, return the number of bytes that belong together, not always
15090         1.
15091         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
15092         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
15093         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
15094         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
15095         number of bytes of an invalid character.
15096         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
15097         (main): Invoke it.
15098         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
15099         results.
15100         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
15101         malformed byte sequences.
15102         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
15103         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
15104         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
15105         Reported by Ben Pfaff and Paolo Bonzini.
15106
15107 2010-11-13  Bruno Haible  <bruno@clisp.org>
15108
15109         openat: Work around glibc bug with fchownat() and empty file names.
15110         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
15111         (gl_FUNC_FCHOWNAT): Invoke it.
15112         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
15113         * doc/posix-functions/fchownat.texi: Document the glibc bug.
15114         Reported by Gary V. Vaughan <gary@gnu.org>.
15115
15116 2010-11-13  Bruno Haible  <bruno@clisp.org>
15117
15118         openat: Ensure autoconf macro ordering.
15119         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
15120         gl_USE_SYSTEM_EXTENSIONS.
15121         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
15122
15123 2010-11-13  Bruno Haible  <bruno@clisp.org>
15124
15125         Update comments.
15126         * lib/unistr/u8-check.c: Update file name in comments.
15127         * lib/unistr/u8-mblen.c: Likewise.
15128         * lib/unistr/u8-prev.c: Likewise.
15129         * lib/unistr/u8-strmblen.c: Likewise.
15130         * lib/unistr/u8-strmbtouc.c: Likewise.
15131
15132 2010-11-13  Jim Meyering  <meyering@redhat.com>
15133
15134         tests: avoid test failure on Solaris 10 due to lack of PATH export
15135         * tests/test-update-copyright.sh: Don't forget to export PATH.
15136
15137         init.sh: ensure that IFS is defined, just in case...
15138         * tests/init.sh (setup_): Ensure that IFS is defined,
15139         so that saving and restoring it works as expected.  This
15140         appears to be useful at least for an old version of dash
15141         from a long time ago (RH 6).  See here for details:
15142         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
15143
15144         maint.mk: tighten "test a == b" check
15145         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
15146         test to files that contain something like #!/bin/sh.
15147         Without this, coreutils would get two false positives in
15148         the comments of C source files.
15149
15150 2010-11-12  Eric Blake  <eblake@redhat.com>
15151
15152         bootstrap: fix typo in previous attempt
15153         * build-aux/bootstrap (buildreq): Correct the grouping.
15154         Reported by Paul Eggert.
15155
15156         maintainer-makefile: prohibit test x == x
15157         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
15158         Based on a report by Matthias Bolte.
15159
15160         bootstrap: allow FreeBSD gzip
15161         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
15162         which has no '.' and goes to stderr.
15163         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
15164         Reported by Matthias Bolte.
15165
15166         maintainer-makefile: check for i18n setup
15167         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
15168         will likely work.
15169
15170 2010-11-12  Bruno Haible  <bruno@clisp.org>
15171
15172         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
15173         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
15174         * lib/nanosleep.c (nanosleep): Likewise.
15175
15176 2010-11-11  Bruno Haible  <bruno@clisp.org>
15177
15178         fcntl-h: Fix for use of C++ on glibc systems.
15179         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
15180         also on glibc systems in C++ mode.
15181         Reported by Gary V. Vaughan <gary@gnu.org>.
15182
15183 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
15184
15185         mknod: avoid false failure with dash
15186         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
15187
15188 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
15189
15190         unlink: Fix "is it should" typo in diagnostic.
15191         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
15192         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
15193
15194 2010-11-11  Bruno Haible  <bruno@clisp.org>
15195
15196         Tests for module 'strerror_r-posix'.
15197         * modules/strerror_r-posix-tests: New file.
15198         * tests/test-strerror_r.c: New file.
15199         * tests/test-string-c++.cc: Check the signature of strerror_r.
15200
15201         New module 'strerror_r-posix'.
15202         * lib/string.in.h (strerror_r): New declaration.
15203         * lib/strerror_r.c: New file.
15204         * m4/strerror_r.m4: New file.
15205         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
15206         of strerror_r.
15207         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
15208         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
15209         * modules/strerror_r-posix: New file.
15210         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
15211         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
15212         * doc/posix-functions/strerror_r.texi: Mention the new module and the
15213         portability problems.
15214
15215 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
15216
15217         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
15218         line is also considered for output. Quoted function name in shell
15219         command, so temporary files for functions like MyClass::operator()
15220         are removed correctly without errors.
15221
15222 2010-11-09  Bruno Haible  <bruno@clisp.org>
15223
15224         * doc/posix-functions/strerror.texi: List more failing platforms.
15225
15226         * doc/posix-functions/strerror.texi: Add a comment.
15227
15228 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
15229
15230         fdopendir: fix bug on MacOS X when low on file descriptors
15231
15232         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
15233         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
15234         All callers changed.
15235         (fdopendir): Invoke save_cwd at the top level, not after using
15236         multiple dup() calls to use up file descriptors.  Then retry
15237         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
15238         less than the maximum number of open file descriptors, because
15239         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
15240         on Mac OS X 10.6.4 for tar 1.24
15241         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
15242         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
15243         and for tar 1.25
15244         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
15245
15246 2010-11-07  Bruno Haible  <bruno@clisp.org>
15247
15248         vasnprintf: Support I flag on glibc systems.
15249         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
15250         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
15251         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
15252         snprintf function.
15253         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
15254         glibc systems.
15255         * tests/test-vasnprintf-posix3.c: New file.
15256         * modules/vasnprintf-posix-tests (Files): Add it.
15257         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
15258
15259 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
15260
15261         [html] Fix copy/paste bug: Use unique name for compiler warnings.
15262         * MODULES.html.sh: For compiler warnings, use name
15263         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
15264
15265 2010-11-05  Eric Blake  <eblake@redhat.com>
15266
15267         ceil, floor: avoid spurious failure with icc
15268         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
15269         [denormals-as-zero] when optimizing without -mieee-fp option.
15270         * tests/test-floorf2.c (floorf_reference): Likewise.
15271         * tests/test-ceilf1.c (dummy): New function.
15272         (main): Use it to outsmart icc's optimization.
15273         * tests/test-floorf1.c (dummy, main): Likewise.
15274
15275         tests: require working signbit
15276         * modules/ceilf-tests (Depends-on): Add signbit.
15277         * modules/ceill-tests (Depends-on): Likewise.
15278         * modules/floorf-tests (Depends-on): Likewise.
15279         * modules/floorl-tests (Depends-on): Likewise.
15280         * modules/round-tests (Depends-on): Likewise.
15281         * modules/roundf-tests (Depends-on): Likewise.
15282         * modules/roundl-tests (Depends-on): Likewise.
15283         * modules/trunc-tests (Depends-on): Likewise.
15284         * modules/truncf-tests (Depends-on): Likewise.
15285         * modules/truncl-tests (Depends-on): Likewise.
15286
15287         strtod: work around icc bug
15288         * lib/strtod.c (minus_zero): Define to working value.
15289         (strtod): Use it to avoid icc bug.
15290
15291         copysign: enhance tests
15292         * modules/copysign-tests (Files): Add minus-zero.h.
15293         * tests/test-copysign.c (main): Also test zeros.
15294
15295 2010-11-04  Eric Blake  <eblake@redhat.com>
15296
15297         ceil, floor, round, trunc: enhance tests of -0
15298         * tests/test-ceilf1.c (main): Ensure correct sign of result.
15299         * tests/test-ceill.c (main): Likewise.
15300         * tests/test-floorf1.c (main): Likewise.
15301         * tests/test-floorl.c (main): Likewise.
15302         * tests/test-round1.c (main): Likewise.
15303         * tests/test-roundf1.c (main): Likewise.
15304         * tests/test-roundl.c (main): Likewise.
15305         * tests/test-trunc1.c (main): Likewise.
15306         * tests/test-truncf1.c (main): Likewise.
15307         * tests/test-truncl.c (main): Likewise.
15308
15309 2010-11-04  Eric Blake  <eblake@redhat.com>
15310
15311         frexp, tests: work around ICC bug with -zero
15312         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
15313         works with more compilers.
15314         * tests/minus-zero.h: New file.
15315         * modules/ceilf-tests (Files): Include it.
15316         * modules/ceill-tests (Files): Likewise.
15317         * modules/floorf-tests (Files): Likewise.
15318         * modules/floorl-tests (Files): Likewise.
15319         * modules/frexp-nolibm-tests (Files): Likewise.
15320         * modules/frexp-tests (Files): Likewise.
15321         * modules/frexpl-nolibm-tests (Files): Likewise.
15322         * modules/frexpl-tests (Files): Likewise.
15323         * modules/isnan-tests (Files): Likewise.
15324         * modules/isnand-nolibm-tests (Files): Likewise.
15325         * modules/isnand-tests (Files): Likewise.
15326         * modules/isnanf-nolibm-tests (Files): Likewise.
15327         * modules/isnanf-tests (Files): Likewise.
15328         * modules/isnanl-nolibm-tests (Files): Likewise.
15329         * modules/isnanl-tests (Files): Likewise.
15330         * modules/round-tests (Files): Likewise.
15331         * modules/roundf-tests (Files): Likewise.
15332         * modules/roundl-tests (Files): Likewise.
15333         * modules/ldexpl-tests (Files): Likewise.
15334         * modules/signbit-tests (Files): Likewise.
15335         * modules/snprintf-posix-tests (Files): Likewise.
15336         * modules/sprintf-posix-tests (Files): Likewise.
15337         * modules/strtod-tests (Files): Likewise.
15338         * modules/trunc-tests (Files): Likewise.
15339         * modules/truncf-tests (Files): Likewise.
15340         * modules/truncl-tests (Files): Likewise.
15341         * modules/vsnprintf-posix-tests (Files): Likewise.
15342         * modules/vsprintf-posix-tests (Files): Likewise.
15343         * modules/vasnprintf-posix-tests (Files): Likewise.
15344         * modules/vasprintf-posix-tests (Files): Likewise.
15345         * tests/test-ceilf1.c (main): Use it.
15346         * tests/test-ceill.c (main): Likewise.
15347         * tests/test-floorf1.c (main): Likewise.
15348         * tests/test-floorl.c (main): Likewise.
15349         * tests/test-frexp.c (main): Likewise.
15350         * tests/test-frexpl.c (main): Likewise.
15351         * tests/test-isnan.c (main): Likewise.
15352         * tests/test-isnand.h (main): Likewise.
15353         * tests/test-isnanf.h (main): Likewise.
15354         * tests/test-isnanl.h (main): Likewise.
15355         * tests/test-ldexpl.c (main): Likewise.
15356         * tests/test-round.c (main): Likewise.
15357         * tests/test-roundf.c (main): Likewise.
15358         * tests/test-roundl.c (main): Likewise.
15359         * tests/test-signbit.c (test_signbitf, test_signbitd)
15360         (test_signbitl): Likewise.
15361         * tests/test-snprintf-posix.h (test_function): Likewise.
15362         * tests/test-sprintf-posix.h (test_function): Likewise.
15363         * tests/test-strtod.c (main): Likewise.
15364         * tests/test-trunc1.c (main): Likewise.
15365         * tests/test-truncf1.c (main): Likewise.
15366         * tests/test-truncl.c (main): Likewise.
15367
15368         isnanl: work around icc bug
15369         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
15370
15371 2010-11-03  Eric Blake  <eblake@redhat.com>
15372
15373         tests: fix compiler warnings
15374         * tests/test-getopt.h (test_getopt): Fix condition.
15375         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15376         * tests/test-pipe2.c (main): Likewise.
15377         * tests/test-quotearg-simple.c (main): Avoid icc warning.
15378
15379         utimens: fix broken m4 test
15380         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
15381
15382 2010-10-28  Bruno Haible  <bruno@clisp.org>
15383
15384         posix_spawn*, getdtablesize: Relax license.
15385         * modules/posix_spawn (License): Change to LGPLv2+.
15386         * modules/posix_spawnp (License): Likewise.
15387         * modules/posix_spawn-internal (License): Likewise.
15388         * modules/posix_spawnattr_init (License): Likewise.
15389         * modules/posix_spawnattr_getflags (License): Likewise.
15390         * modules/posix_spawnattr_setflags (License): Likewise.
15391         * modules/posix_spawnattr_getpgroup (License): Likewise.
15392         * modules/posix_spawnattr_setpgroup (License): Likewise.
15393         * modules/posix_spawnattr_getschedparam (License): Likewise.
15394         * modules/posix_spawnattr_setschedparam (License): Likewise.
15395         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
15396         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
15397         * modules/posix_spawnattr_getsigdefault (License): Likewise.
15398         * modules/posix_spawnattr_setsigdefault (License): Likewise.
15399         * modules/posix_spawnattr_getsigmask (License): Likewise.
15400         * modules/posix_spawnattr_setsigmask (License): Likewise.
15401         * modules/posix_spawnattr_destroy (License): Likewise.
15402         * modules/posix_spawn_file_actions_init (License): Likewise.
15403         * modules/posix_spawn_file_actions_addclose (License): Likewise.
15404         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
15405         * modules/posix_spawn_file_actions_addopen (License): Likewise.
15406         * modules/posix_spawn_file_actions_destroy (License): Likewise.
15407         * modules/getdtablesize (License): Likewise.
15408         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
15409
15410 2010-10-26  Bruno Haible  <bruno@clisp.org>
15411
15412         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
15413         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
15414         Cygwin and mingw.
15415         Suggested by Eric Blake.
15416
15417 2010-10-26  Bruno Haible  <bruno@clisp.org>
15418
15419         stdio: Work around compilation error due to renameat() on Solaris 10.
15420         * lib/stdio.in.h: Include <unistd.h> on Solaris.
15421         * lib/renameat.c: Don't include <unistd.h> here.
15422         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
15423         Reported by Paul Eggert and Eric Blake.
15424
15425 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
15426
15427         renameat: port to Solaris 10, which declares renameat in unistd.h
15428
15429         * lib/renameat.c: Include unistd.h before stdio.h, because
15430         Solaris 10 declares renameat in unistd.h.  Problem encountered
15431         when building GNU tar 1.24 on Solaris 10.
15432
15433 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
15434
15435         fdopendir: fix C89 compilation
15436         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
15437         compilers.
15438
15439 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
15440
15441         inttostr: simplify by removing unnecessary redundancy
15442         * lib/anytostr.c: Don't include verify.h.
15443         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
15444         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
15445         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
15446         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
15447         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
15448         Likewise.
15449         * modules/inttostr (Depends-on): Remove 'verify'.
15450
15451 2010-10-23  Bruno Haible  <bruno@clisp.org>
15452
15453         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
15454         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
15455         Reported by Eric Blake.
15456
15457 2010-10-23  Bruno Haible  <bruno@clisp.org>
15458
15459         Tests: Fix LOCALE_JA on MirBSD 10.
15460         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
15461         to an UTF-8 locale.
15462         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
15463         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15464         Reported by Eric Blake.
15465
15466 2010-10-21  Bruno Haible  <bruno@clisp.org>
15467
15468         nl_langinfo test: Avoid test failure on NetBSD 5.
15469         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
15470         Reported by Eric Blake.
15471
15472 2010-10-21  Eric Blake  <eblake@redhat.com>
15473
15474         c-stack: work around libsigsegv 2.8 bug
15475         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
15476         overflow on at least PowerPC64.
15477
15478 2010-10-17  Bruno Haible  <bruno@clisp.org>
15479
15480         userspec: Drop redundant file.
15481         * modules/userspec (Files): Remove lib/inttostr.h.
15482
15483 2010-10-17  Bruno Haible  <bruno@clisp.org>
15484
15485         nl_langinfo tests: Silence some warnings.
15486         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
15487         Reported by Jim Meyering.
15488
15489 2010-10-17  Bruno Haible  <bruno@clisp.org>
15490
15491         Make use of GCC's attribute __alloc_size__.
15492         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
15493         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
15494         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
15495         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
15496         __alloc_size__.
15497         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
15498         Suggested by Jim Meyering.
15499
15500 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
15501
15502         bootstrap: anchor .gitignore entries.
15503         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
15504         with...
15505         (insert_vc_ignore): ... this new function, which prepends `/' to
15506         all .gitignore entries before passing them to
15507         insert_sorted_if_absent.
15508
15509 2010-10-16  Bruno Haible  <bruno@clisp.org>
15510
15511         nextafter: Fix configure check.
15512         * modules/nextafter (configure.ac): Correct expected prototype.
15513
15514 2010-10-16  Bruno Haible  <bruno@clisp.org>
15515
15516         termios: Update documentation.
15517         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
15518
15519 2010-10-16  Bruno Haible  <bruno@clisp.org>
15520
15521         tests: Make them compile with TinyCC.
15522         * tests/test-strstr.c (main): Remove parentheses around array
15523         initializer.
15524
15525 2010-10-15  Eric Blake  <eblake@redhat.com>
15526
15527         ignore-value: make header idempotent
15528         * lib/ignore-value.h: Add double-inclusion guards.
15529         Reported by Stefan Berger.
15530
15531 2010-10-15  Jim Meyering  <meyering@redhat.com>
15532
15533         GNUmakefile: handle "stable" target, not "major"
15534         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
15535         lists in maint.mk and announce-gen.  Without this, "make stable"
15536         would fail to ensure that $(VERSION) is up to date.
15537
15538 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
15539
15540         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
15541         & co.
15542
15543 2010-10-14  Bruno Haible  <bruno@clisp.org>
15544
15545         vasnprintf: Don't set errno to 0.
15546         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
15547         block that sets it to 0.
15548         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
15549
15550 2010-10-14  Bruno Haible  <bruno@clisp.org>
15551
15552         socketlib: Fix.
15553         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
15554         gl_PREREQ_SYS_H_WINSOCK2.
15555         Reported by Ian Beckwith <ianb@erislabs.net>.
15556
15557 2010-10-13  Jim Meyering  <meyering@redhat.com>
15558
15559         test-select-stdin.c: avoid warn_unused_result warnings
15560         * tests/test-select-stdin.c: Include "macros.h".
15561         ASSERT that read and fflush succeed.
15562
15563 2010-10-13  Jim Meyering  <meyering@redhat.com>
15564
15565         git-version-gen: do require git-VC'd files in cwd
15566         * build-aux/git-version-gen: Reject a git version string
15567         if there are no commits associated with the current directory.
15568         This avoids an unlikely false-positive (unrelated dir whose parent
15569         repository also contains a tag matching v*), as pointed out
15570         by Giuseppe Scrivano in
15571         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
15572
15573 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
15574
15575         argv-iter: omit nonconforming declaration
15576         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
15577         enum arg_iter_err declaration, which doesn't conform to C99.
15578         Solaris 10 cc warns about this.
15579
15580 2010-10-13  Eric Blake  <eblake@redhat.com>
15581
15582         termios: fix compilation on mingw
15583         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
15584         (gl_TERMIOS_H): Adjust it on mingw.
15585         * modules/termios (Makefile.am): Substitute new key.
15586         * lib/termios.in.h (includes): Make include_next conditional.
15587         * doc/posix-headers/termios.texi (termios.h): Update
15588         documentation.
15589         Reported by Daniel P. Berrange.
15590
15591 2010-10-13  Jim Meyering  <meyering@redhat.com>
15592
15593         git-version-gen: don't require that .git/ be in the current dir
15594         * build-aux/git-version-gen: Adjust this script so that it works
15595         when run from any working directory beneath the top-level .git/-
15596         containing directory.  Inspired by a patch from Giuseppe Scrivano,
15597         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
15598
15599         test-select: avoid warn_unused_result warnings
15600         * tests/test-select.c: Include "macros.h".
15601         ASSERT that each call to read, write, and pipe succeeds.
15602         While not technically required, also check each "close".
15603         * modules/select-tests (Files): Add tests/macros.h.
15604
15605         test-symlinkat: remove declaration of unused local
15606         * tests/test-symlinkat.c (main): Remove unused local, "buf".
15607
15608         test-inttostr: avoid shadowing warnings
15609         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
15610         and use malloc rather than the stack for the same reason as
15611         mentioned in the comment justifying the other allocation.
15612
15613 2010-10-11  Bruno Haible  <bruno@clisp.org>
15614
15615         stdlib: Allow multiple gnulib generated replacements to coexist.
15616         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
15617         Reported by Sam Steingold <sds@gnu.org>.
15618
15619 2010-10-11  Jim Meyering  <meyering@redhat.com>
15620
15621         fix a documentation typo
15622         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
15623
15624 2010-10-11  Eric Blake  <eblake@redhat.com>
15625
15626         futimens: work around Solaris 11 bug
15627         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
15628         * tests/test-futimens.h (test_futimens): Enhance, rather than
15629         weaken test.
15630         * doc/posix-functions/futimens.texi (futimens): Document the bug.
15631
15632 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
15633
15634         Indentation.
15635         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
15636         higher-level operators more to the left.
15637
15638 2010-10-11  Jim Meyering  <meyering@redhat.com>
15639
15640         test-futimens: avoid unwarranted test failure on Solaris 5.11
15641         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
15642         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
15643         because it tries to dereference the NULL name argument.
15644
15645 2010-10-11  Bruno Haible  <bruno@clisp.org>
15646
15647         Indentation.
15648         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
15649         indentation.
15650
15651 2010-10-11  Jim Meyering  <meyering@redhat.com>
15652
15653         spawn.in.h: make indentation consistent with parentheses
15654         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
15655         Make indentation consistent with parentheses.
15656
15657 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
15658
15659         Fix mismatched parens in previous commit
15660         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
15661         parens.
15662
15663 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
15664
15665         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
15666
15667         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
15668         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
15669         * lib/malloca.c: Include "verify.h".
15670         (verify1): Remove, replacing with a verify call.
15671         * lib/relocwrapper.c (verify1): Likewise.
15672         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
15673         Likewise.
15674         * modules/malloca (Depends-on): Add 'verify'.
15675         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
15676         * modules/vasnprintf (Depends-on): Add 'verify'.
15677         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
15678         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
15679         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
15680         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
15681         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
15682         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
15683         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
15684
15685         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
15686
15687         Formerly the style was sometimes 2*X - 1, because the C standard
15688         was wrongly thought to disallow ?: in integral constant expressions.
15689         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
15690         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
15691         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15692         * lib/stdint.in.h (_verify_intmax_size): Likewise.
15693         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
15694         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
15695         verify that time_t cannot be floating.
15696
15697 2010-10-08  Eric Blake  <eblake@redhat.com>
15698
15699         time: enforce recent POSIX ruling that time_t is integral
15700         * lib/time.in.h (__time_t_must_be_integral): Detect any
15701         problematic systems, allowing the rest of gnulib to assume POSIX.
15702
15703 2010-10-08  Jim Meyering  <meyering@redhat.com>
15704
15705         fdopendir: fix a bug on systems lacking openat and /proc support
15706         OpenBSD 4.7 is one such system.  The most noticeable effect was
15707         failure of any application making nontrivial use of fts: rm, du,
15708         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
15709           ./rm: traversal failed: `a': Bad file descriptor
15710         Debugging that, you see that even though FD 6 was closed just
15711         prior to the opendir call in fd_clone_opendir, its resulting
15712         dir->dd_fd was 8, rather than the expected value of 6:
15713
15714         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
15715         93                close (fd);
15716         (gdb) n
15717         94                dir = fd_clone_opendir (dupfd);
15718         (gdb) n
15719         95                saved_errno = errno;
15720         (gdb) p dir->dd_fd
15721         $11 = 8
15722
15723         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
15724         The problem is that on OpenBSD, fd_clone_opendir has to resort
15725         to using the old-style save/restore CWD mechanism, due to its
15726         lack of openat/proc support, and *that* would steal the FD (6)
15727         that opendir was supposed to use.
15728
15729         The fix is to squirrel away the desired FD so that save_cwd uses a
15730         different one, and then free the dest FD right before calling opendir.
15731         That guarantees opendir will use the required file descriptor.
15732
15733         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
15734
15735 2010-10-08  Bruno Haible  <bruno@clisp.org>
15736
15737         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
15738         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
15739
15740 2010-10-08  Bruno Haible  <bruno@clisp.org>
15741
15742         nanosleep: Make replacement POSIX compliant.
15743         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
15744         is out of range.
15745         Reported by Jim Meyering.
15746
15747 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
15748
15749         bootstrap: add hook for altering gnulib.mk, for Bison
15750         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
15751         the Bison bootstrapping process can rewrite file names and variables
15752         in this file before later parts of 'bootstrap' use the file.
15753         Bison wants to include lib/gnulib.mk from the top-level makefile,
15754         so it needs the file names in this file to be relative to the top
15755         level, not relative to lib; plus it needs variable names to be
15756         rewritten.
15757         (slurp): Use the new function.
15758
15759         bootstrap: reformat for readability
15760         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
15761
15762 2010-10-08  Eric Blake  <eblake@redhat.com>
15763
15764         docs: update cygwin progress
15765         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
15766         1.7.7.
15767         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
15768         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
15769         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
15770         * doc/posix-functions/carg.texi (carg): Likewise.
15771         * doc/posix-functions/cargf.texi (cargf): Likewise.
15772         * doc/posix-functions/casin.texi (casin): Likewise.
15773         * doc/posix-functions/casinf.texi (casinf): Likewise.
15774         * doc/posix-functions/casinh.texi (casinh): Likewise.
15775         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
15776         * doc/posix-functions/catan.texi (catan): Likewise.
15777         * doc/posix-functions/catanf.texi (catanf): Likewise.
15778         * doc/posix-functions/catanh.texi (catanh): Likewise.
15779         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
15780         * doc/posix-functions/ccos.texi (ccos): Likewise.
15781         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
15782         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
15783         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
15784         * doc/posix-functions/cexp.texi (cexp): Likewise.
15785         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
15786         * doc/posix-functions/cimag.texi (cimag): Likewise.
15787         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
15788         * doc/posix-functions/clog.texi (clog): Likewise.
15789         * doc/posix-functions/clogf.texi (clogf): Likewise.
15790         * doc/posix-functions/conj.texi (conj): Likewise.
15791         * doc/posix-functions/conjf.texi (conjf): Likewise.
15792         * doc/posix-functions/cpow.texi (cpow): Likewise.
15793         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
15794         * doc/posix-functions/cproj.texi (cproj): Likewise.
15795         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
15796         * doc/posix-functions/creal.texi (creal): Likewise.
15797         * doc/posix-functions/crealf.texi (crealf): Likewise.
15798         * doc/posix-functions/csin.texi (csin): Likewise.
15799         * doc/posix-functions/csinf.texi (csinf): Likewise.
15800         * doc/posix-functions/csinh.texi (csinh): Likewise.
15801         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
15802         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
15803         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
15804         * doc/posix-functions/ctan.texi (ctan): Likewise.
15805         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
15806         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
15807         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
15808         * doc/posix-headers/complex.texi (complex.h): Likewise.
15809
15810 2010-10-07  Jim Meyering  <meyering@redhat.com>
15811
15812         parse-datetime: avoid compilation failure on OpenBSD 4.7
15813         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
15814         This works around a compilation failure on OpenBSD 4.7:
15815         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
15816
15817 2010-10-07  Eric Blake  <eblake@redhat.com>
15818
15819         docs: update cygwin progress
15820         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
15821         1.7.6.
15822         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
15823         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
15824         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
15825         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
15826         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
15827         Likewise.
15828         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
15829         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
15830         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
15831         Likewise.
15832         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
15833         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
15834         Likewise.
15835         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
15836         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
15837         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
15838         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
15839         Likewise.
15840         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
15841         Likewise.
15842         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
15843
15844         docs: update parse-datetime history
15845         * doc/parse-datetime.texi (Authors of parse_datetime): Better
15846         documentation of this function's history and alternatives.
15847
15848         cygwin: use more robust version check
15849         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
15850         exclude an eventual cygwin 1.9.1.
15851         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15852         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
15853         (gl_FUNC_STRCASESTR): Likewise.
15854         Reported by Bruno Haible.
15855
15856 2010-10-06  Bruno Haible  <bruno@clisp.org>
15857
15858         string, sys_select: Avoid #including large headers unless necessary.
15859         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
15860         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
15861         OSF/1, BeOS, Haiku.
15862         Reported by Jim Meyering.
15863
15864 2010-10-05  Eric Blake  <eblake@redhat.com>
15865
15866         memmem, strstr, strcasestr: fix bug with long periodic needle
15867         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
15868         periodic needle having false positive.
15869         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
15870         and cygwin 1.7.7.
15871         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
15872         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
15873         (gl_FUNC_STRCASESTR): Likewise.
15874         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15875         * tests/test-memmem.c (main): Expose the bug.
15876         * tests/test-strcasestr.c (main): Likewise.
15877         * tests/test-strstr.c (main): Likewise.
15878         * tests/test-c-strcasestr.c (main): Likewise.
15879         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
15880         * doc/posix-functions/strstr.texi (strstr): Likewise.
15881         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
15882         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
15883
15884 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
15885
15886         parse-datetime: do some more renaming
15887         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
15888         parse_datetime, not get_date.  Mention the renaming.
15889         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
15890         in comments.
15891         * m4/bison.m4: Likewise.
15892
15893 2010-10-05  Eric Blake  <eblake@redhat.com>
15894
15895         parse-datetime: better name than get_date
15896         * NEWS: Reword the deprecation notice.
15897         * modules/get_date: Rename to modules/parse-datetime.
15898         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
15899         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
15900         * lib/get_date.y: Rename to lib/parse-datetime.y.
15901         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
15902         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
15903         * doc/getdate.texi: Provide fallback wrapper.
15904         * lib/getdate.h: Move guts, and wrap...
15905         * lib/parse-datetime.h: ...new file.
15906         * lib/parse-datetime.y (get_date): Rename...
15907         (parse_datetime): ...to this.
15908         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
15909         (gl_PARSE_DATETIME): ...to this.
15910         * doc/posix-functions/getdate.texi (get_date): Provide fallback
15911         documentation.
15912         * modules/getdate (Files): Provide fallback docs and header.
15913         (Notice, Depends-on): Update references.
15914         * tests/test-parse-datetime.c: Likewise.
15915         * DEPENDENCIES: Likewise.
15916         * MODULES.html.sh (Date and time <time.h>): Likewise.
15917         * doc/parse-datetime.texi (Date input formats)
15918         (Authors of parse_datetime): Likewise.
15919         * modules/parse-datetime (Files, configure.ac, Makefile.am)
15920         (Include): Likewise.
15921         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
15922         * gnulib-tool: Likewise.
15923         * m4/bison.m4 (gl_BISON): Likewise.
15924         Suggested by Bruno Haible.
15925
15926 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
15927
15928         more ports to Solaris tr, which needs [] around ranges
15929         * gnulib-tool: Solaris tr needs [] around ranges.
15930         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
15931         * tests/test-pipe-filter-gi1.c (main): Likewise.
15932         * tests/test-pipe-filter-ii1.c (main): Likewise.
15933
15934 2010-10-05  Eric Blake  <eblake@redhat.com>
15935
15936         bootstrap: fix Solaris regression
15937         * build-aux/bootstrap (check_versions): Solaris tr still needs []
15938         around ranges.
15939         Reported by Pádraig Brady.
15940
15941         bootstrap: work with pkg-config
15942         * build-aux/bootstrap (check_versions): Also transliterate - in
15943         prerequisite name.
15944         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
15945         prerequisites that were already found, to avoid confusion.
15946         Reported by Justin Clift.
15947
15948         faccessat: remove unused wrappers
15949         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
15950         presence of these wrappers dragged in -lgen on Solaris.
15951         Reported by Clemens Brogi; fix suggested by Paul Eggert.
15952
15953 2010-10-05  Jim Meyering  <meyering@redhat.com>
15954
15955         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
15956         * Makefile (sc_pragma_columns): New syntax-check rule.
15957
15958 2010-10-04  Bruno Haible  <bruno@clisp.org>
15959
15960         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
15961         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
15962         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
15963         Reported by Bruce Korb and Eric Blake.
15964
15965 2010-10-04  Bruno Haible  <bruno@clisp.org>
15966
15967         threadlib: Make option --with-libpth-prefix work.
15968         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
15969         use $LIBPTH, not just -lpth.
15970
15971 2010-10-04  Bruno Haible  <bruno@clisp.org>
15972
15973         Avoid line length limitation from HP NonStop system header files.
15974         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
15975         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
15976         * lib/ctype.in.h: Likewise.
15977         * lib/dirent.in.h: Likewise.
15978         * lib/errno.in.h: Likewise.
15979         * lib/fcntl.in.h: Likewise.
15980         * lib/float.in.h: Likewise.
15981         * lib/getopt.in.h: Likewise.
15982         * lib/iconv.in.h: Likewise.
15983         * lib/inttypes.in.h: Likewise.
15984         * lib/langinfo.in.h: Likewise.
15985         * lib/locale.in.h: Likewise.
15986         * lib/math.in.h: Likewise.
15987         * lib/netdb.in.h: Likewise.
15988         * lib/netinet_in.in.h: Likewise.
15989         * lib/poll.in.h: Likewise.
15990         * lib/pthread.in.h: Likewise.
15991         * lib/pty.in.h: Likewise.
15992         * lib/sched.in.h: Likewise.
15993         * lib/se-selinux.in.h: Likewise.
15994         * lib/search.in.h: Likewise.
15995         * lib/signal.in.h: Likewise.
15996         * lib/spawn.in.h: Likewise.
15997         * lib/stdarg.in.h: Likewise.
15998         * lib/stddef.in.h: Likewise.
15999         * lib/stdint.in.h: Likewise.
16000         * lib/stdio.in.h: Likewise.
16001         * lib/stdlib.in.h: Likewise.
16002         * lib/string.in.h: Likewise.
16003         * lib/strings.in.h: Likewise.
16004         * lib/sys_file.in.h: Likewise.
16005         * lib/sys_ioctl.in.h: Likewise.
16006         * lib/sys_select.in.h: Likewise.
16007         * lib/sys_socket.in.h: Likewise.
16008         * lib/sys_stat.in.h: Likewise.
16009         * lib/sys_time.in.h: Likewise.
16010         * lib/sys_times.in.h: Likewise.
16011         * lib/sys_utsname.in.h: Likewise.
16012         * lib/sys_wait.in.h: Likewise.
16013         * lib/sysexits.in.h: Likewise.
16014         * lib/termios.in.h: Likewise.
16015         * lib/time.in.h: Likewise.
16016         * lib/unistd.in.h: Likewise.
16017         * lib/wchar.in.h: Likewise.
16018         * lib/wctype.in.h: Likewise.
16019         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
16020         * modules/ctype (Makefile.am): Likewise.
16021         * modules/dirent (Makefile.am): Likewise.
16022         * modules/errno (Makefile.am): Likewise.
16023         * modules/fcntl-h (Makefile.am): Likewise.
16024         * modules/float (Makefile.am): Likewise.
16025         * modules/getopt-posix (Makefile.am): Likewise.
16026         * modules/iconv-h (Makefile.am): Likewise.
16027         * modules/inttypes (Makefile.am): Likewise.
16028         * modules/langinfo (Makefile.am): Likewise.
16029         * modules/locale (Makefile.am): Likewise.
16030         * modules/math (Makefile.am): Likewise.
16031         * modules/netdb (Makefile.am): Likewise.
16032         * modules/netinet_in (Makefile.am): Likewise.
16033         * modules/poll-h (Makefile.am): Likewise.
16034         * modules/pthread (Makefile.am): Likewise.
16035         * modules/pty (Makefile.am): Likewise.
16036         * modules/sched (Makefile.am): Likewise.
16037         * modules/search (Makefile.am): Likewise.
16038         * modules/selinux-h (Makefile.am): Likewise.
16039         * modules/signal (Makefile.am): Likewise.
16040         * modules/spawn (Makefile.am): Likewise.
16041         * modules/stdarg (Makefile.am): Likewise.
16042         * modules/stddef (Makefile.am): Likewise.
16043         * modules/stdint (Makefile.am): Likewise.
16044         * modules/stdio (Makefile.am): Likewise.
16045         * modules/stdlib (Makefile.am): Likewise.
16046         * modules/string (Makefile.am): Likewise.
16047         * modules/strings (Makefile.am): Likewise.
16048         * modules/sys_file (Makefile.am): Likewise.
16049         * modules/sys_ioctl (Makefile.am): Likewise.
16050         * modules/sys_select (Makefile.am): Likewise.
16051         * modules/sys_socket (Makefile.am): Likewise.
16052         * modules/sys_stat (Makefile.am): Likewise.
16053         * modules/sys_time (Makefile.am): Likewise.
16054         * modules/sys_times (Makefile.am): Likewise.
16055         * modules/sys_utsname (Makefile.am): Likewise.
16056         * modules/sys_wait (Makefile.am): Likewise.
16057         * modules/sysexits (Makefile.am): Likewise.
16058         * modules/termios (Makefile.am): Likewise.
16059         * modules/time (Makefile.am): Likewise.
16060         * modules/unistd (Makefile.am): Likewise.
16061         * modules/wchar (Makefile.am): Likewise.
16062         * modules/wctype (Makefile.am): Likewise.
16063
16064 2010-10-04  Bruno Haible  <bruno@clisp.org>
16065
16066         read-file tests: Avoid a test failure on NonStop Kernel.
16067         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
16068         a regular file.
16069         Reported by Joachim Schmitz <schmitz@hp.com>.
16070
16071 2010-10-03  Bruno Haible  <bruno@clisp.org>
16072
16073         gnulib-tool: Fixes for --create-testdir with --libtool.
16074         * gnulib-tool (func_get_automake_snippet): Don't augment
16075         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
16076         an executable.
16077         (func_create_testdir): Handle module 'alloca' like func_import.
16078         Reported by Bruce Korb <bruce.korb@gmail.com>.
16079
16080 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
16081
16082         Avoid some lines longer than 80 characters.
16083         * lib/stdint.in.h: Break long comment lines.
16084         * lib/math.in.h: Likewise.
16085         (_GL_NUM_UINT_WORDS): New macro, for readability.
16086         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
16087         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
16088         * lib/stdlib.in.h: Likewise.
16089         * lib/spawn.in.h: Likewise.
16090         * lib/sys_socket.in.h: Update an URL.
16091         * lib/sys_stat.in.h: Break long line.
16092
16093 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
16094
16095         Improve pmccabe2html.
16096         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
16097         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
16098         when the sources change. Remove the line in the HTML about "Used
16099         ranges" (which implied that there might be other unused ranges),
16100         rename "Resume" to "Summary" (easier to understand for more users).
16101         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
16102         styles, and some unnecessary blank lines.
16103
16104 2010-10-03  Bruno Haible  <bruno@clisp.org>
16105             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
16106
16107         acl: Add support for ACLs on NonStop Kernel.
16108         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
16109         Check whether the function aclsort() exists.
16110         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
16111         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
16112         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16113         (acl_nontrivial [HAVE_ACLSORT]: New function.
16114         (file_has_acl): Implement for NonStop Kernel.
16115         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16116         (qset_acl): Implement for NonStop Kernel.
16117         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
16118         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16119         (main): Implement for NonStop Kernel.
16120         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
16121         Kernel. Handle this flavor.
16122         * tests/test-set-mode-acl.sh: Likewise.
16123         * tests/test-copy-acl.sh: Likewise.
16124         * tests/test-copy-file.sh: Likewise.
16125
16126 2010-10-03  Bruno Haible  <bruno@clisp.org>
16127
16128         Info about ACLs on NonStop Kernel.
16129         * doc/acl-resources.txt: Add info about NonStop Kernel.
16130         References by Joachim Schmitz <schmitz@hp.com>.
16131
16132 2010-10-02  Bruno Haible  <bruno@clisp.org>
16133
16134         Define missing EDQUOT on NonStop Kernel.
16135         * lib/errno.in.h (EDQUOT): Assign a value if missing.
16136         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
16137         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
16138         missing.
16139         * doc/posix-headers/errno.texi: Mention the NSK bug.
16140         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
16141         Reported by Joachim Schmitz <schmitz@hp.com>.
16142
16143 2010-10-02  Bruno Haible  <bruno@clisp.org>
16144
16145         Update doc for POSIX:2008.
16146         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
16147         Update URL of POSIX specification.
16148
16149 2010-10-02  Bruno Haible  <bruno@clisp.org>
16150
16151         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
16152         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
16153         from gnulib, not from Automake.
16154
16155 2010-10-02  Bruno Haible  <bruno@clisp.org>
16156
16157         New module 'system-posix'.
16158         * modules/system-posix: New file.
16159         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
16160         module is present.
16161         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
16162         GNULIB_SYSTEM_POSIX.
16163         * modules/stdlib (Depends-on): Remove sys_wait.
16164         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
16165         * doc/posix-functions/system.texi: Mention the new module.
16166         * doc/posix-headers/stdlib.texi: Likewise.
16167         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
16168         define test_sys_wait_macros to a no-op.
16169         Reported by Sam Steingold <sds@gnu.org>.
16170
16171 2010-09-30  Bruno Haible  <bruno@clisp.org>
16172
16173         More renaming from 'getdate' to 'get_date'.
16174         * doc/get_date.texi: Renamed from doc/getdate.texi.
16175         * modules/get_date (Files): Update.
16176         * MODULES.html.sh (Date and time <time.h>): Update.
16177         * DEPENDENCIES: Update.
16178         * gnulib-tool: Update comment.
16179         * m4/bison.m4 (gl_BISON): Likewise.
16180         * m4/get_date.m4 (gl_GET_DATE): Likewise.
16181
16182 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
16183
16184         bootstrap: support ACLOCAL_FLAGS during aclocal
16185         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
16186         can add additional -I dir for third-party .m4 files.
16187
16188 2010-09-30  Eric Blake  <eblake@redhat.com>
16189
16190         bootstrap: use glibtoolize on MacOS
16191         * build-aux/bootstrap (check_versions): Convert libtool into
16192         libtoolize.
16193         (tool search): Move libtool check earlier, and look for
16194         glibtoolize for MacOS.
16195         (gnulib_tool_options): Auto-add --libtool when appropriate.
16196         Reported by Justin Clift.
16197
16198         poll: fix typo that broke test on MacOS
16199         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
16200         Reported by Justin Clift.
16201
16202         getdate: rename to get_date
16203         Note: getdate.h is not renamed, to minimize client impact.
16204         * modules/getdate: Mark obsolete.  Move old contents...
16205         * modules/get_date: ...to new module name.
16206         * modules/getdate-tests: Move...
16207         * modules/get_date-tests: ...here.
16208         * m4/getdate.m4: Move...
16209         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
16210         * lib/getdate.y: Move...
16211         * lib/get_date.y: ...here.
16212         * tests/test-getdate.c: Move...
16213         * tests/test-get_date.c: ...here.
16214         * doc/posix-functions/getdate.texi (getdate): Update name.
16215         * NEWS: Mention the change.
16216
16217 2010-09-29  Bruno Haible  <bruno@clisp.org>
16218
16219         Separate the module 'waitpid' from the module 'sys_wait'.
16220         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
16221         present.
16222         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
16223         gl_MODULE_INDICATOR_FOR_TESTS.
16224         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
16225         * modules/sys_wait (Depends-on): Remove waitpid.
16226         (Makefile.am): Substitute GNULIB_WAITPID.
16227         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
16228         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
16229         signature only if the 'waitpid' module is present.
16230         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
16231         * NEWS: Mention the change.
16232         * modules/grantpt (Depends-on): Add waitpid.
16233         * modules/wait-process (Depends-on): Likewise.
16234
16235 2010-09-29  Bruno Haible  <bruno@clisp.org>
16236
16237         More tests for module 'sys_wait'.
16238         * modules/sys_wait-c++-tests: New file.
16239         * tests/test-sys_wait-c++.cc: New file.
16240         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
16241         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
16242
16243 2010-09-29  Bruno Haible  <bruno@clisp.org>
16244
16245         New module 'waitpid'.
16246         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
16247         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
16248         Don't include <process.h>.
16249         (waitpid): Declare only, using modern idiom.
16250         * m4/waitpid.m4: New file.
16251         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
16252         * modules/waitpid: New file.
16253         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
16254         (Makefile.am): Update.
16255         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
16256
16257 2010-09-28  Bruno Haible  <bruno@clisp.org>
16258
16259         poll: Assume ANSI C.
16260         * lib/poll.c (poll): Use an ANSI C declaration.
16261
16262 2010-09-28  Bruno Haible  <bruno@clisp.org>
16263
16264         poll-h: Create poll.h on all platforms.
16265         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
16266         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
16267         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
16268         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
16269         (gl_REPLACE_POLL_H): Don't set POLL_H.
16270         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
16271         * modules/poll-h (Depends-on): Add include_next.
16272         (Makefile.am): Create poll.h unconditionally. Substitute also
16273         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
16274
16275 2010-09-28  Bruno Haible  <bruno@clisp.org>
16276
16277         Tests for module 'poll-h'.
16278         * modules/poll-h-c++-tests: New file.
16279         * tests/test-poll-h-c++.cc: New file.
16280
16281         Tests for module 'poll-h'.
16282         * modules/poll-h-tests: New file.
16283         * tests/test-poll-h.c: New file.
16284
16285 2010-09-28  Bruno Haible  <bruno@clisp.org>
16286
16287         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
16288         * modules/poll-h (Depends-on): Add 'extensions'.
16289
16290 2010-09-28  Bruno Haible  <bruno@clisp.org>
16291
16292         New module 'poll-h'.
16293         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
16294         (poll): Use modern idiom.
16295         * modules/poll-h: New file.
16296         * modules/poll (Files): Remove lib/poll.in.h.
16297         (Depends-on): Add poll-h.
16298         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
16299         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
16300         * m4/poll_h.m4: New file.
16301         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
16302         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
16303         and invoke gl_REPLACE_POLL_H.
16304         * lib/poll.c: Use common idiom.
16305         * tests/test-poll.c: Likewise.
16306         * doc/posix-headers/poll.texi: Mention the poll-h module.
16307         Suggested by Eric Blake.
16308
16309 2010-09-26  Bruno Haible  <bruno@clisp.org>
16310
16311         sys_wait: Implement WSTOPSIG.
16312         * lib/sys_wait.in.h (WSTOPSIG): New macro.
16313         Reported by Simon Josefsson.
16314
16315 2010-09-26  Simon Josefsson  <simon@josefsson.org>
16316
16317         stdlib, sys_wait: Avoid compilation error on mingw.
16318         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
16319
16320 2010-09-26  Bruno Haible  <bruno@clisp.org>
16321
16322         stdlib tests: Avoid code duplication.
16323         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
16324         * modules/sys_wait-tests (Files): Likewise.
16325         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
16326         * tests/test-stdlib.c: Include test-sys_wait.h.
16327         (main): Invoke test_sys_wait_macros.
16328         * tests/test-sys_wait.c: Include test-sys_wait.h.
16329         (main): Invoke test_sys_wait_macros.
16330
16331 2010-09-25  Simon Josefsson  <simon@josefsson.org>
16332
16333         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
16334         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
16335         sure Windows sockets are working before calling getaddrinfo.
16336         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
16337         * doc/gnulib.texi (Windows sockets): Fix typo.
16338
16339 2010-09-25  Bruno Haible  <bruno@clisp.org>
16340
16341         Tests for module 'regex-quote'.
16342         * modules/regex-quote-tests: New file.
16343         * tests/test-regex-quote.c: New file.
16344
16345         New module 'regex-quote'.
16346         * lib/regex-quote.h: New file.
16347         * lib/regex-quote.c: New file.
16348         * modules/regex-quote: New file.
16349         Suggested by Reuben Thomas <rrt@sc3d.org>.
16350
16351 2010-09-24  Bruno Haible  <bruno@clisp.org>
16352
16353         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
16354         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
16355
16356 2010-09-23  Bruno Haible  <bruno@clisp.org>
16357
16358         setenv: Relax license.
16359         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
16360         Blake.
16361         Requested by Eric Blake.
16362
16363 2010-09-22  Bruno Haible  <bruno@clisp.org>
16364
16365         termios: Relax license.
16366         * modules/termios (License): Change to LGPLv2+.
16367         Requested by Eric Blake.
16368
16369 2010-09-22  Bruno Haible  <bruno@clisp.org>
16370
16371         threadlib: Allow the package to change the default to 'no'.
16372         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
16373         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
16374         Reported by Paul Eggert.
16375
16376 2010-09-22  Pádraig Brady  <P@draigbrady.com>
16377             Bruno Haible  <bruno@clisp.org>
16378
16379         Fix endless loop in mbmemcasecoll.
16380         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
16381         byte.
16382         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
16383
16384 2010-09-22  Bruno Haible  <bruno@clisp.org>
16385
16386         Tests for module 'memcoll'.
16387         * modules/memcoll-tests: New file.
16388         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
16389
16390         memcoll, xmemcoll: Clarify size vs. length.
16391         * modules/memcoll.c (memcoll0): Clarify specification.
16392         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
16393         passed to collate_error.
16394
16395 2010-09-22  Bruno Haible  <bruno@clisp.org>
16396
16397         Tests for module 'memcasecmp'.
16398         * modules/memcasecmp-tests: New file.
16399         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
16400
16401 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
16402
16403         * lib/pthread.in.h: Add split double-inclusion guard, and include
16404         system <pthread.h> if there is one.  Use @@-style as in other
16405         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
16406         pthread.h doesn't.
16407         (pthread_mutexattr_destroy, pthread_mutexattr_init):
16408         (pthread_mutexattr_settype, pthread_mutex_trylock):
16409         New static inline functions, if there's no system <pthread.h>.
16410         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
16411         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
16412         Approximate with mutexes if the system lacks spinlocks, as in
16413         MacOS.
16414         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
16415         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
16416         @@-style.  Check for spinlocks separately.
16417         (gl_PTHREAD_DEFAULTS): New macro.
16418         * modules/pthread: Redo to use a more typical style for in.h files.
16419
16420 2010-09-21  Eric Blake  <eblake@redhat.com>
16421
16422         net_if: enhance tests
16423         * tests/test-net_if.c (main): Move signature checks earlier.
16424         Print failures to stderr.
16425         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
16426         Document the bug that we do not yet fix.
16427
16428 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
16429
16430         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
16431         about gnulib, not GSS.
16432
16433 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
16434
16435         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
16436         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
16437         for Emacs.
16438         * build-aux/pmccabe2html: Make Makefile.am example code more
16439         cut-and-paste friendly.
16440
16441 2010-09-21  Simon Josefsson  <simon@josefsson.org>
16442
16443         * tests/test-net_if.c: New file.
16444         * modules/net_if-tests: New file.
16445
16446 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
16447
16448         pthread: add pthread_spin_destroy
16449         * lib/pthread.in.h (pthread_spin_destroy): New function.
16450
16451 2010-09-19  Bruno Haible  <bruno@clisp.org>
16452
16453         gnulib-tool: Fix --help output.
16454         * gnulib-tool (func_usage): Fix help message.
16455         Reported by Reuben Thomas <rrt@sc3d.org>.
16456
16457 2010-09-18  Jim Meyering  <meyering@redhat.com>
16458
16459         maint.mk: avoid unexpanded \n in two diagnostics
16460         * top/maint.mk (sc_prohibit_always_true_header_tests):
16461         Don't use a literal \n in a halt=... assignment.  It would not be
16462         expanded, and the two \n bytes would appear in the diagnostic output
16463         rather than the desired newline.  Use halt=$$(printf ... instead.
16464         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
16465
16466 2010-09-18  Bruno Haible  <bruno@clisp.org>
16467
16468         netinet_in: Doc tweak.
16469         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
16470         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16471
16472 2010-09-18  Jim Meyering  <meyering@redhat.com>
16473
16474         init.sh: correct an outdated comment
16475         * tests/init.sh (create_exe_shims_):  s/function/alias/
16476
16477         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
16478         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
16479         a file named "*.exe" is removed between the glob expansion and the
16480         processing of that oddly named file.
16481
16482 2010-09-17  Eric Blake  <eblake@redhat.com>
16483
16484         mirbsd: add some more support
16485         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
16486         in BSD family.
16487         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
16488         devices as OpenBSD.
16489         * m4/host-os.m4 (mirbsd): Add MirBSD.
16490
16491         tests: fix unportable assumption on sys/wait.h
16492         * tests/test-sys_wait.c (main): Relax test.
16493         * tests/test-stdlib.c (main): Likewise.
16494
16495         init.sh: accomodate directory with no .exes
16496         * tests/init.sh: Accomodate directory containing only scripts.
16497
16498         tests: avoid compiler warning
16499         * tests/test-stdlib.c (main): Use the variable.
16500
16501         fdutimens, fdutimensat: update signature, again
16502         * lib/utimens.h (gl_futimens): Delete, and move signature...
16503         (fdutimens): ...here.
16504         (fdutimensat): Rearrange signature.
16505         (lutimensat): Rename variable for clarity.
16506         * lib/fdutimensat.c (fdutimensat): Update signature.
16507         * lib/utimens.c (fdutimens): Likewise.
16508         (gl_futimens): Delete.
16509         (utimens, lutimens): Update callers.
16510         * lib/futimens.c (futimens): Likewise.
16511         * tests/test-fdutimensat.c: Likewise.
16512         * tests/test-utimens.c: Likewise.
16513         * tests/test-futimens.h: Update comment.
16514         * NEWS: Mention this.
16515         Suggested by Paul Eggert.
16516
16517 2010-09-17  Bruno Haible  <bruno@clisp.org>
16518
16519         Take over the maintenance of some older macros from Autoconf.
16520         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
16521         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
16522         GNU Autoconf.
16523         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
16524         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
16525
16526 2010-09-17  Eric Blake  <eblake@redhat.com>
16527
16528         fdutimensat: drop atflag validation
16529         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
16530         with valid fd, to close a race scenario where futimens is
16531         unsupported and FILE was replaced by a symlink.
16532         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
16533         accordingly.
16534         Suggested by Paul Eggert.
16535
16536 2010-09-16  Bruno Haible  <bruno@clisp.org>
16537
16538         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
16539         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
16540
16541 2010-09-16  Bruno Haible  <bruno@clisp.org>
16542
16543         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
16544         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
16545         login_tty exists.
16546         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16547
16548 2010-09-16  Bruno Haible  <bruno@clisp.org>
16549
16550         login_tty: Make the replacement code work on BSD systems.
16551         * lib/login_tty.c: Include <sys/ioctl.h>.
16552         (login_tty): Use ioctl TIOCSCTTY when available.
16553         * modules/login_tty (Depends-on): Add sys_ioctl.
16554         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16555
16556 2010-09-16  Bruno Haible  <bruno@clisp.org>
16557
16558         login_tty: Stricter unit test.
16559         * modules/login_tty-tests (Depends-on): Add tcgetsid.
16560         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
16561         and tcgetsid() after login_tty.
16562         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16563
16564 2010-09-16  Bruno Haible  <bruno@clisp.org>
16565
16566         New module 'tcgetsid'.
16567         * lib/tcgetsid.c: New file.
16568         * m4/tcgetsid.m4: New file.
16569         * modules/tcgetsid: New file.
16570         * modules/termios (Depends-on): Add c++defs, warn-on-use.
16571         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
16572         GNULIB_TCGETSID, HAVE_TCGETSID.
16573         * lib/termios.in.h: Include <sys/types.h>.
16574         (tcgetsid): New declaration.
16575         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
16576         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
16577         * doc/posix-functions/tcgetsid.texi: Mention the new module.
16578         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
16579
16580 2010-09-16  Bruno Haible  <bruno@clisp.org>
16581
16582         Tests for module 'termios'.
16583         * modules/termios-c++-tests: New file.
16584         * modules/termios-tests: New file.
16585         * tests/test-termios-c++.cc: New file.
16586         * tests/test-termios.c: New file.
16587
16588         New module 'termios'.
16589         * modules/termios: New file.
16590         * lib/termios.in.h: New file.
16591         * m4/termios_h.m4: New file.
16592         * doc/posix-headers/termios.texi: Mention the new module.
16593
16594 2010-09-16  Eric Blake  <eblake@redhat.com>
16595
16596         fdutimensat: add an atflag parameter
16597         * lib/fdutimensat.c (fdutimensat): Add new parameter.
16598         * lib/utimens.h (fdutimensat): Update prototype.
16599         * tests/test-fdutimensat.c: Adjust test to match.
16600         * NEWS: Document the change.
16601         Suggested by Paul Eggert.
16602
16603 2010-09-16  Bruno Haible  <bruno@clisp.org>
16604
16605         Fix typos in comments.
16606         * lib/striconveh.h: Fix typo in comment.
16607         * lib/login_tty.c (login_tty): Likewise.
16608
16609 2010-09-15  Bruno Haible  <bruno@clisp.org>
16610
16611         stdlib: clarify MirBSD WEXITSTATUS bug
16612         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
16613         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16614
16615 2010-09-15  Eric Blake  <eblake@redhat.com>
16616
16617         stdlib: work around MirBSD WEXITSTATUS bug
16618         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
16619         * modules/stdlib (Depends-on): Add sys_wait.
16620         * tests/test-sys_wait.c (main): Enhance test.
16621         * tests/test-stdlib.c (main): Likewise.
16622         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
16623
16624         docs: mention MacOS issue with WEXITSTATUS(constant)
16625         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
16626         issue.
16627         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16628
16629         strnlen: add tests
16630         * modules/strnlen-tests: New file.
16631         * tests/test-strnlen.c: Likewise.
16632
16633 2010-09-14  Bruno Haible  <bruno@clisp.org>
16634
16635         unistr/base: Avoid link errors when module 'libunistring' is also used.
16636         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
16637         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
16638         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
16639         Declare also when HAVE_LIBUNISTRING is set.
16640         Reported by Pádraig Brady <P@draigbrady.com>.
16641
16642 2010-09-14  Eric Blake  <eblake@redhat.com>
16643
16644         test-rawmemchr: make more robust
16645         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
16646         (Depends-on, configure.ac): Add needed prerequisites to use it.
16647         * modules/memchr-tests (Files, Depends-on, configure.ac):
16648         Likewise, to avoid implicit reliance on memchr module prereqs.
16649         * tests/test-memchr.c (main): Ensure proper masking.
16650         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
16651         reads.
16652
16653         memchr: detect glibc Alpha bug
16654         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
16655         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
16656         Alpha.
16657         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
16658         * tests/test-memchr.c (main): Enhance test.
16659         Reported by Nelson H. F. Beebe.
16660
16661 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16662
16663         fts, getcwd, glob: audit for dirfd returning -1
16664         * lib/fts.c (opendir): Remove #define; no longer used.
16665         (opendirat): New arg PDIR_FD.  All callers changed.
16666         (fts_build, _opendir2): Use new opendirat to avoid the need for
16667         dirfd, or for checking whether dirfd returns a negative value.
16668         Don't use opendir; always use openat followed by fdopendir.
16669         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
16670         it.
16671         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
16672         returns -1 here.
16673         * modules/fts (Depends-on): Remove dirfd.
16674         * modules/getcwd (Depends-on): Likewise.
16675
16676 2010-09-13  Eric Blake  <eblake@redhat.com>
16677
16678         float: fix broken MirBSD header
16679         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
16680         * doc/posix-headers/float.texi (float.h): Document it.
16681
16682 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16683
16684         fts: use O_NOFOLLOW to avoid race condition when opening a directory
16685         * lib/fts.c (opendirat): New arg extra_flags.
16686         (__opendir2): Use it to avoid following symlinks when opening
16687         a directory, if symlinks are not supposed to be followed.  See
16688         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
16689
16690         fdopendir: preserve argument fd before returning
16691         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
16692         (fdopendir_with_dup, fd_clone_opendir): New static functions.
16693         (fdopendir): Use them, arranging for FD to be open to the same
16694         directory that it was when it started.  (It might be temporarily
16695         closed while fdopendir is running, so this not thread- or
16696         signal-safe.)  Be careful to do the right thing even when file
16697         descriptors are scarce and dup fails with errno == EMFILE.  See
16698         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
16699
16700 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
16701
16702         regex: Pass the system regex if its only problem is 32-bit regoff_t.
16703         * NEWS: Document change.
16704         * m4/regex.m4: Disable test for regoff_t size.
16705
16706 2010-09-13  Jim Meyering  <meyering@redhat.com>
16707
16708         fts: don't operate on an invalid file descriptor after failed dup
16709         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
16710         negative file descriptor.
16711
16712 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
16713
16714         savedir: add streamsavedir, deprecate fdsavedir
16715         * NEWS: Mention deprecation of fdsavedir.
16716         * lib/savedir.c (streamsavedir): New extern function, whose name
16717         ends in "savedir" to be consistent with the others.  This differs
16718         from savedirstream in that it doesn't close its argument.  The
16719         next version of GNU tar will use this instead of fdsavedir, to
16720         avoid some race conditions and conserve file descriptors.
16721         (savedirstream): Reimplement as a wrapper around streamsavedir.
16722         (fdsavedir): Add a comment deprecating this function.  As far as
16723         I know, only GNU tar used it, and GNU tar doesn't need it any more.
16724         * lib/savedir.h (streamsavedir): New decl.
16725         (fdsavedir): Add a comment deprecating this.
16726
16727 2010-09-10  Bruno Haible  <bruno@clisp.org>
16728
16729         langinfo: Fix last commit.
16730         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
16731         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
16732         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16733
16734 2010-09-10  Bruno Haible  <bruno@clisp.org>
16735
16736         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
16737         * lib/progreloc.c (O_EXEC): Define fallback.
16738
16739 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
16740
16741         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
16742         * NEWS: Document recent changes to fcntl-h.
16743         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
16744         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
16745         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
16746         Similarly for O_SEARCH; this last was already true, but not documented.
16747         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
16748         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
16749         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
16750         Likewise.
16751         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
16752         is zero, not whether it is defined.
16753         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
16754         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
16755         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
16756
16757 2010-09-10  Bruno Haible  <bruno@clisp.org>
16758
16759         langinfo, nl_langinfo: Fix for IRIX 5.3.
16760         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
16761         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
16762         HAVE_LANGINFO_YESEXPR.
16763         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
16764         HAVE_LANGINFO_YESEXPR.
16765         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
16766         HAVE_LANGINFO_T_FMT_AMPM is 0.
16767         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
16768         HAVE_LANGINFO_YESEXPR is 0.
16769         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
16770         NOEXPR.
16771         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
16772         * doc/posix-functions/nl_langinfo.texi: Likewise.
16773         Reported by Eric Blake.
16774
16775 2010-09-10  Bruno Haible  <bruno@clisp.org>
16776
16777         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
16778         * doc/glibc-functions/login_tty.texi: Mention the include file problem
16779         on FreeBSD 8.0 and OpenBSD 4.6.
16780         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
16781         * m4/pty_h.m4 (gl_PTY_H): Likewise.
16782         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
16783         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
16784         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
16785         ac_includes_default.
16786         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16787
16788 2010-09-09  Eric Blake  <eblake@redhat.com>
16789
16790         strsignal: work around NetBSD bug
16791         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
16792         * lib/string.in.h (includes): Likewise.
16793         * doc/posix-functions/strsignal.texi (strsignal): Document the
16794         bug.
16795         Reported by Nelson H. F. Beebe.
16796
16797         gnulib-tool: work with NetBSD /bin/sh
16798         * gnulib-tool (func_cache_var, func_cache_lookup_module)
16799         (func_get_description, func_get_comment, func_get_status)
16800         (func_get_notice, func_get_applicability, func_get_filelist)
16801         (func_get_dependencies, func_get_autoconf_early_snippet)
16802         (func_get_autoconf_snippet, func_get_automake_snippet)
16803         (func_get_include_directive, func_get_link_directive)
16804         (func_get_license, func_get_maintainer, func_import): Avoid
16805         shell syntax errors from parsing syntax extensions.
16806
16807 2010-09-09  Bruno Haible  <bruno@clisp.org>
16808
16809         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
16810         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
16811         a reliable way to determine whether the 'alias' command works.
16812
16813 2010-09-08  Jim Meyering  <meyering@redhat.com>
16814
16815         init.sh: penalize a set-x-impaired shell; don't disqualify it
16816         * tests/init.sh: Too many shells corrupt application stderr when
16817         you set -x, so we can't afford to disqualify them, since at least
16818         on Irix-6.5, that would disqualify all bourne shells.
16819         Instead, use a two-pass approach.
16820         On the first pass, try to find a shell that meets the stricter
16821         condition that set -x does not corrupt stderr.
16822         If no shell meets the stricter condition, retest each candidate
16823         shell, but without that extra condition.  Finally, when
16824         VERBOSE=yes is requested and set -x might cause trouble, simply
16825         issue a warning and refrain from enabling debug output.
16826
16827 2010-09-08  Eric Blake  <eblake@redhat.com>
16828
16829         unsetenv: fix OpenBSD bug
16830         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
16831         * doc/posix-functions/unsetenv.texi (unsetenv): Update
16832         documentation.
16833         Reported by Jim Meyering.
16834
16835         strtod: work around IRIX 6.5 bug
16836         * lib/strtod.c (strtod): Reparse number on shorter string if
16837         exponent parse was invalid.
16838         * tests/test-strtod.c (main): Add check for "0x1p 2".
16839         Reported by Tom G. Christensen.
16840
16841         getopt: optimize previous patch
16842         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
16843         empty variable.  Speed up awk script.
16844         Reported by Paolo Bonzini.
16845
16846 2010-09-08  Jim Meyering  <meyering@redhat.com>
16847
16848         test.sh: disqualify shells for which set -x corrupts stderr
16849         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
16850         and OpenBSD 4.7.  They make it so with "set -x", environment settings
16851         appear in stderr output.  For example, this command:
16852             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
16853         prints "P=1" on those two systems:
16854
16855 2010-09-08  Bruno Haible  <bruno@clisp.org>
16856
16857         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
16858         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
16859         commands, because some shells ignore redirections when there is an
16860         error in the command lookup.
16861         Reported by Eric Blake.
16862
16863 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
16864
16865         * lib/regex.h: Fix a mention of `regex_compile' (should be
16866         `re_compile_pattern').
16867         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
16868         (re_set_registers): Correct name of parameter in comment.
16869
16870         * doc/regex.texi: Add documentation for missing syntax flags.
16871         Remove commented-out documentation of defunct syntax option
16872         RE_NO_EMPTY_ALTS.
16873         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
16874         Add documentation of re_set_registers.
16875         Document trick to re-use a pattern buffer by setting fastmap manually.
16876         Update documentation of struct re_pattern_buffer per public members.
16877         Uncomment documentation of equivalence class operators and
16878         collating symbol operators, since they are now implemented,
16879         Explain leftmost-longest matching in relation to alternatives.
16880         Tidy documentation of substring matching.
16881         Remove POSIX documentation, which is done better in
16882         glibc, and refer the reader there. Keep BSD API documentation, as
16883         that is not readily available elsewhere.
16884
16885 2010-09-07  Eric Blake  <eblake@redhat.com>
16886
16887         getopt: handle POSIXLY_CORRECT set but not exported
16888         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
16889         export state of POSIXLY_CORRECT, due to bash set -o posix.
16890         Reported by Dustin J. Mitchell.
16891
16892 2010-09-05  Bruno Haible  <bruno@clisp.org>
16893
16894         gnulib-tool: Highlight the changed options.
16895         * gnulib-tool (func_usage): Display the --import, --add-import,
16896         --remove-import explanations in bold font.
16897
16898 2010-09-06  Karl Berry  <karl@gnu.org>
16899
16900         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
16901
16902 2010-09-05  Bruno Haible  <bruno@clisp.org>
16903
16904         uniwidth/width: Update comment.
16905         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
16906         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
16907
16908 2010-09-05  Bruno Haible  <bruno@clisp.org>
16909
16910         isinf, isnan: Relax license.
16911         * modules/isinf (License): Change from GPL to LGPL, with consent from
16912         Ben Pfaff.
16913         * modules/isnan (License): Likewise.
16914         Requested by Ludovic Courtès.
16915
16916 2010-09-04  Bruno Haible  <bruno@clisp.org>
16917
16918         gnulib-tool: Help migration from --import to --add-import or --update.
16919         * gnulib-tool: Emit a verbose error message when --import is used
16920         without any module name.
16921
16922 2010-09-04  Bruno Haible  <bruno@clisp.org>
16923
16924         Update doc about gnulib-tool.
16925         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
16926         'gnulib-tool --update' in more detail.
16927         Reported by Eric Blake.
16928
16929 2010-09-04  Bruno Haible  <bruno@clisp.org>
16930
16931         gnulib-tool: Change --import. New options --add/remove-import.
16932         * gnulib-tool: New options --add-import, --remove-import.
16933         (func_usage): Document them.
16934         (have_associative): Define always.
16935         (func_import): In import mode, don't merge the specified settings with
16936         the cached settings. Implement remove-import mode.
16937         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
16938         Explain when to use them versus --import.
16939         (Simple update): Use --add-import instead of --import.
16940         * NEWS: Mention the change.
16941
16942 2010-09-04  Bruno Haible  <bruno@clisp.org>
16943
16944         * doc/gnulib-tool.texi (Initial import): Update paragraph about
16945         separate gnulib.mk.
16946
16947 2010-09-04  Bruno Haible  <bruno@clisp.org>
16948
16949         gnulib-tool: Don't talk about CVS any more.
16950         * gnulib-tool (func_usage, func_import): Write "version control"
16951         instead of CVS.
16952
16953 2010-09-04  Jim Meyering  <meyering@redhat.com>
16954
16955         maint.mk: avoid obscure sc_copyright_check failure in coreutils
16956         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
16957         false positives (whose names may be ill-chosen) when searching
16958         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
16959         would cause a false-positive.
16960
16961         avoid coreutils "make distcheck" failure
16962         Coreutils tests with an absolute build directory name that contains
16963         a space.  Not quoting this directory name caused a failure.
16964         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
16965         * tests/test-vc-list-files-cvs.sh: Likewise.
16966
16967 2010-09-04  Bruno Haible  <bruno@clisp.org>
16968
16969         gnulib-tool: Avoid error when run in a package without Makefile.am.
16970         * gnulib-tool: When collecting the m4dirs in a package that does not
16971         have a Makefile.am, eliminate those directories that contain no
16972         gnulib-cache.m4. Fix expression that counts these directories.
16973
16974 2010-09-04  Bruno Haible  <bruno@clisp.org>
16975
16976         update-copyright test: Improve output when perl is missing or too old.
16977         * tests/test-update-copyright.sh: Move test of Perl version down after
16978         the test whether Perl exists. Provide an explanation relating Perl's
16979         error message to Automake's SKIP: message.
16980
16981 2010-09-04  Bruno Haible  <bruno@clisp.org>
16982
16983         Don't augment PATH in TESTS_ENVIRONMENT.
16984         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
16985         set abs_aux_dir instead of augmenting PATH.
16986         * modules/vc-list-files-tests (Makefile.am): Likewise.
16987         * tests/test-update-copyright.sh: Augment PATH here.
16988         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
16989         path_prepend_.
16990         * tests/test-vc-list-files-git.sh: Likewise.
16991
16992 2010-09-04  Jim Meyering  <meyering@redhat.com>
16993
16994         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
16995         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
16996
16997 2010-09-04  Bruno Haible  <bruno@clisp.org>
16998
16999         strdup: Fix compilation error in C++ mode.
17000         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
17001         the macro.
17002
17003 2010-09-04  Bruno Haible  <bruno@clisp.org>
17004
17005         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
17006         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
17007         macro into a function.
17008         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17009
17010 2010-09-04  Bruno Haible  <bruno@clisp.org>
17011
17012         Set PATH_SEPARATOR the same way autoconf does.
17013         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
17014         the value of PATH_SEPARATOR the same way autoconf-generated configure
17015         scripts do.
17016         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
17017         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
17018
17019 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
17020
17021         Set PATH_SEPARATOR the same way autoconf does.
17022         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
17023         the same way autoconf-generated configure scripts do.
17024         * posix-modules: Likewise.
17025
17026 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17027
17028         hash: fix safe_hasher const typo
17029         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
17030         const; otherwise, there is a type error later.
17031
17032 2010-09-02  Jim Meyering  <meyering@redhat.com>
17033
17034         test-update-copyright.sh: require perl 5.8.0
17035         * tests/test-update-copyright.sh: Require 5.8.0,
17036         which Tom G. Christensen has confirmed is adequate,
17037         while 5.6.1 is not.
17038
17039 2010-09-02  Eric Blake  <eblake@redhat.com>
17040
17041         tests: init.sh improvements for re-exec'ing with zsh
17042         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
17043         -vx through shell re-exec.
17044         Reported by Tom G. Christensen.
17045
17046         wctype: fix typo in previous commit
17047         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
17048         Reported by Ludovic Courtès.
17049
17050 2010-09-02  Jim Meyering  <meyering@redhat.com>
17051
17052         test-update-copyright.sh: skip test if Perl is too old
17053         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
17054         Reported by Tom G. Christensen.
17055
17056 2010-09-02  Bruno Haible  <bruno@clisp.org>
17057
17058         wctype: Avoid compilation error on IRIX 6.5.30.
17059         * lib/wctype.in.h (iswblank): Declare with a replacement if
17060         REPLACE_ISWBLANK is set.
17061         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
17062         declared. Set REPLACE_ISWBLANK.
17063         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
17064         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
17065         * doc/posix-headers/wctype.texi: Likewise.
17066         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17067
17068 2010-09-01  Bruno Haible  <bruno@clisp.org>
17069
17070         New module 'socketlib'.
17071         * modules/socketlib: New file.
17072         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
17073         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
17074         * modules/sockets (Depends-on): Add socketlib.
17075         Suggested by Sam Steingold <sds@gnu.org>.
17076
17077 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
17078
17079         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
17080
17081         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
17082         when one needs search access to a directory but not read access.
17083         On systems where it is available, it works in some cases where
17084         O_RDONLY does not, namely on directories that are searchable but
17085         not readable, and which need only to be searchable.  If O_SEARCH
17086         is not available, fall back to the traditional method of using
17087         O_RDONLY.
17088
17089         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
17090         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
17091         when opening a directory that needs only to be searchable.
17092         * lib/chdir-safer.c (chdir_no_follow): Likewise.
17093         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
17094         * lib/openat-proc.c (openat_proc_name): Likewise.
17095         * lib/openat.c (openat_needs_fchdir): Likewise.
17096         * lib/save-cwd.c (save_cwd): Likewise.
17097         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
17098
17099 2010-08-28  Bruno Haible  <bruno@clisp.org>
17100
17101         New module 'host-cpu-c-abi'.
17102         * modules/host-cpu-c-abi: New file.
17103         * m4/host-cpu-c-abi.m4: New file, based on part of
17104         clisp/src/m4/general.m4.
17105         Requested by Sam Steingold <sds@gnu.org>.
17106
17107 2010-08-31  Eric Blake  <eblake@redhat.com>
17108         and Jim Meyering  <meyering@redhat.com>
17109
17110         hash: factor, and guard against misbehaving hasher function
17111         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
17112         of table->hasher's return value.  Also protect against a hash value
17113         so large that adding it to table->bucket results in a NULL pointer.
17114         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
17115         Use it in place of open-coded check-and-abort.
17116
17117 2010-08-30  Bruno Haible  <bruno@clisp.org>
17118
17119         hash: silence spurious clang warning
17120         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
17121         Reported by Eric Blake.
17122
17123 2010-08-30  Eric Blake  <eblake@redhat.com>
17124
17125         strstr, memmem, strcasestr: avoid leaked shell message
17126         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
17127         FreeBSD.
17128         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17129         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17130
17131         tests: silence clang warning
17132         * tests/test-malloca.c (do_allocation): Avoid dead store.
17133
17134 2010-08-29  Bruno Haible  <bruno@clisp.org>
17135
17136         gettext: Fix recent mistake.
17137         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
17138
17139 2010-08-29  Bruno Haible  <bruno@clisp.org>
17140
17141         selinux-h: Offer a --without-selinux option.
17142         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
17143         --without-selinux was specified, skip all tests and define
17144         HAVE_SELINUX_SELINUX_H to 0.
17145         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
17146         set LIB_SELINUX to empty.
17147         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
17148         gl_LIBSELINUX. If --without-selinux was specified, replace
17149         selinux/context.h.
17150         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
17151
17152 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17153             Bruno Haible  <bruno@clisp.org>
17154
17155         Make the module 'realloc-gnu' work again on AIX and OSF/1.
17156         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
17157         of HAVE_REALLOC.
17158         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
17159         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
17160         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
17161         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
17162
17163 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17164             Bruno Haible  <bruno@clisp.org>
17165
17166         Make the module 'calloc-gnu' work again on AIX and OSF/1.
17167         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
17168         HAVE_CALLOC.
17169         * lib/xmalloc.c: Update accordingly.
17170         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
17171         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
17172         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
17173
17174 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17175             Bruno Haible  <bruno@clisp.org>
17176
17177         Make the module 'malloc-gnu' work again on AIX and OSF/1.
17178         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
17179         HAVE_MALLOC.
17180         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
17181         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
17182         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
17183
17184 2010-08-29  Bruno Haible  <bruno@clisp.org>
17185
17186         Update modules list.
17187         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
17188         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
17189         (String handling <string.h>): Add astrxfrm.
17190         (File system functions): Add readlinkat.
17191
17192 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17193
17194         Tests for module 'realloc-gnu'.
17195         * modules/realloc-gnu-tests: New file.
17196         * tests/test-realloc-gnu.c: New file.
17197
17198         Tests for module 'calloc-gnu'.
17199         * modules/calloc-gnu-tests: New file.
17200         * tests/test-calloc-gnu.c: New file.
17201
17202         Tests for module 'malloc-gnu'.
17203         * modules/malloc-gnu-tests: New file.
17204         * tests/test-malloc-gnu.c: New file.
17205
17206 2010-08-28  Bruno Haible  <bruno@clisp.org>
17207
17208         Rename module 'realloc' -> 'realloc-gnu'.
17209         * modules/realloc-gnu: New file, copied from modules/realloc.
17210         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
17211         obsolete.
17212         * modules/mgetgroups (Depends-on): Update.
17213         * doc/posix-functions/realloc.texi: Update.
17214         * NEWS: Mention the change.
17215
17216         Rename module 'calloc' -> 'calloc-gnu'.
17217         * modules/calloc-gnu: New file, copied from modules/calloc.
17218         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
17219         obsolete.
17220         * doc/posix-functions/calloc.texi: Update.
17221         * NEWS: Mention the change.
17222
17223         Rename module 'malloc' -> 'malloc-gnu'.
17224         * modules/malloc-gnu: New file, copied from modules/malloc.
17225         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
17226         obsolete.
17227         * modules/argp (Depends-on): Update.
17228         * modules/regex (Depends-on): Update.
17229         * doc/posix-functions/malloc.texi: Update.
17230         * NEWS: Mention the change.
17231
17232 2010-08-28  Eric Blake  <eblake@redhat.com>
17233
17234         pread, pwrite: add missing dependency
17235         * modules/pread (Depends-on): Add extensions.
17236         * modules/pwrite (Depends-on): Likewise.
17237
17238 2010-08-28  Bruno Haible  <bruno@clisp.org>
17239
17240         unistr/u*-strchr: Fix tests dependencies.
17241         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
17242         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
17243         Reported by Ian Beckwith <ianb@erislabs.net>.
17244
17245 2010-08-28  Bruno Haible  <bruno@clisp.org>
17246
17247         read-file: Don't occupy too much unused memory.
17248         * lib/read-file.c (fread_file): Shrink the buffer at the end.
17249
17250 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
17251             Eric Blake  <eblake@redhat.com>
17252             Bruno Haible  <bruno@clisp.org>
17253
17254         read-file: Avoid memory reallocations with regular files.
17255         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
17256         (fread_file): With regular files, use the remaining length as the
17257         initial buffer size.  Check against overflow.
17258         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
17259         sys_stat.
17260
17261 2010-08-28  Bruno Haible  <bruno@clisp.org>
17262
17263         ftello: Relax license.
17264         * modules/ftello (License): Relax to LGPLv2+.
17265         Reported by Eric Blake.
17266
17267 2010-08-28  Bruno Haible  <bruno@clisp.org>
17268
17269         Avoid relocwrapper link errors due to gnulib replacement functions.
17270         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
17271         function.
17272         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17273
17274 2010-08-28  Bruno Haible  <bruno@clisp.org>
17275
17276         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
17277         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
17278         defined.
17279         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
17280         Suggested by Eric Blake.
17281
17282 2010-08-28  Bruno Haible  <bruno@clisp.org>
17283
17284         sys_socket, netdb: Ensure socklen_t gets defined.
17285         * modules/sys_socket (Depends-on): Add socklen.
17286         * modules/netdb (Depends-on): Likewise.
17287         * modules/getaddrinfo (Depends-on): Remove socklen.
17288         * modules/getsockopt (Depends-on): Likewise.
17289         * modules/setsockopt (Depends-on): Likewise.
17290         * tests/test-sys_socket.c: Check that socklen_t is defined.
17291         * tests/test-netdb.c: Likewise.
17292         * m4/socklen.m4: Update comments.
17293         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17294
17295 2010-08-27  Eric Blake  <eblake@redhat.com>
17296
17297         login_tty: add missing dependency
17298         * modules/login_tty (Depends-on): Add pty.
17299
17300 2010-08-26  Eric Blake  <eblake@redhat.com>
17301
17302         lib-symbol-versions: fix m4 quoting
17303         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
17304         format for AC_LINK_IFELSE.
17305
17306         glob: fix compile test
17307         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
17308
17309         btowc: fix missing file
17310         * modules/btowc (Files): Also ship locale-fr.m4.
17311
17312         lseek: fix link test
17313         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
17314         AC_LINK_IFELSE.
17315
17316         include_next: silence autoconf 2.68 warning
17317         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
17318         AC_COMPILE_IFELSE as special.
17319         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
17320         autoconf < 2.68.
17321
17322         acl: fix compilation test
17323         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
17324         AC_COMPILE_IFELSE.
17325
17326 2010-08-26  Bruno Haible  <bruno@clisp.org>
17327
17328         Modernize AC_TRY_RUN invocations.
17329         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
17330         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
17331         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
17332         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
17333         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
17334         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
17335         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
17336         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
17337         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17338         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17339         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
17340         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17341         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
17342         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17343         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
17344         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17345         gl_MBRLEN_NUL_RETVAL): Likewise.
17346         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17347         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
17348         Likewise.
17349         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17350         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17351         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
17352         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
17353         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
17354         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
17355         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
17356         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
17357         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
17358         Likewise.
17359         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
17360         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
17361         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17362         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17363         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17364         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
17365         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17366         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
17367         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17368         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17369
17370 2010-08-26  Bruno Haible  <bruno@clisp.org>
17371
17372         Modernize AC_TRY_LINK invocations.
17373         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
17374         AC_TRY_LINK.
17375         * m4/argp.m4 (gl_ARGP): Likewise.
17376         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
17377         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
17378         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
17379         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
17380         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
17381         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
17382         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
17383         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
17384         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
17385         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
17386         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
17387         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
17388         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
17389         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17390         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
17391         * m4/hostent.m4 (gl_HOSTENT): Likewise.
17392         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17393         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
17394         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
17395         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
17396         Likewise.
17397         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
17398         Likewise.
17399         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
17400         Likewise.
17401         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
17402         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
17403         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
17404         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
17405         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
17406         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
17407         * m4/servent.m4 (gl_SERVENT): Likewise.
17408         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
17409         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
17410         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
17411         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
17412         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17413         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
17414         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17415         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17416         * modules/tsearch-tests (configure.ac): Likewise.
17417
17418 2010-08-26  Bruno Haible  <bruno@clisp.org>
17419
17420         Modernize AC_TRY_COMPILE invocations.
17421         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
17422         AC_TRY_COMPILE.
17423         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
17424         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
17425         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
17426         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
17427         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
17428         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
17429         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
17430         * m4/lock.m4 (gl_LOCK): Likewise.
17431         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
17432         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17433         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
17434         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
17435         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
17436         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
17437         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
17438         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
17439         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
17440         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
17441         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
17442         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17443         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
17444         extraneous semicolon.
17445
17446 2010-08-26  Jim Meyering  <meyering@redhat.com>
17447
17448         stat-time: relax license LGPL
17449         * modules/stat-time (License): Change from GPL to LGPL,
17450         with consent from all contributors, for use in libguile.
17451         Requested by Ludovic Courtès.
17452
17453 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
17454
17455         poll: return immediately on POLLHUP.
17456         * lib/poll.c (poll): Always set timeout before wait_timeout is
17457         computed.
17458
17459 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17460
17461         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
17462         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
17463         rmdir ("dir/.//"), unlinkat.
17464
17465 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17466
17467         stdbool: avoid spurious failure with modern xlc
17468         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
17469
17470 2010-08-24  Bruno Haible  <bruno@clisp.org>
17471
17472         getloadavg: simplify code
17473         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
17474         gl_have_func. Update comments.
17475
17476 2010-08-24  Eric Blake  <eblake@redhat.com>
17477
17478         getloadavg: don't define SVR4 on cygwin
17479         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
17480         only define SVR4 when -lkvm is required.
17481         Reported by Yaakov Selkowitz.
17482
17483 2010-08-24  Bruno Haible  <bruno@clisp.org>
17484
17485         priv-set: fix comment
17486         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
17487
17488 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17489
17490         priv-set: fix comments
17491         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
17492         to match code, as suggested by David Bartley in:
17493         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
17494
17495 2010-08-23  Eric Blake  <eblake@redhat.com>
17496
17497         stdbool: avoid rejecting clang
17498         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
17499         * tests/test-stdbool.c: Enable more tests if using the system
17500         <stdbool.h> instead of the gnulib replacement.
17501         (main): Move xlc bug test to a runtime test for all compilers.
17502         Reported by Anders Kaseorg.
17503
17504         argz: fix shell quoting issue
17505         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
17506         Reported by Charles Wilson.
17507
17508 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
17509             Erik Faye-Lund <kusmabite@gmail.com>
17510
17511         poll, select: handle ERROR_BROKEN_PIPE.
17512         * lib/poll.c (win32_compute_revents): Return POLLHUP when
17513         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
17514         * lib/select.c (win32_compute_revents): Do not mark a pipe
17515         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
17516
17517 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
17518
17519         fts: allow compilation with C++
17520         * lib/fts_.h: Specify extern "C" linkage with C++.
17521
17522 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17523
17524         Fix gnulib-tool sed script de-commentation for AIX sed.
17525         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
17526         sed.
17527
17528 2010-08-17  Eric Blake  <eblake@redhat.com>
17529
17530         test-stddef: test for (some) offsetof bugs
17531         * tests/test-stddef.c: Enhance test to ensure correct type of
17532         offsetof.
17533         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
17534         that we are not fixing at this time.
17535
17536 2010-08-15  Bruno Haible  <bruno@clisp.org>
17537
17538         stpncpy: Allow stpncpy to be defined as a macro.
17539         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
17540         if it's already correctly declared.
17541         * lib/string.in.h (stpncpy): Undefine before redefining.
17542         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
17543
17544 2010-08-14  Bruno Haible  <bruno@clisp.org>
17545
17546         Rename module 'memxfrm' to 'amemxfrm'.
17547         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
17548         (amemxfrm): Renamed from memxfrm.
17549         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
17550         (amemxfrm): Renamed from memxfrm.
17551         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
17552         * NEWS: Mention the change.
17553         * MODULES.html.sh (String handling <string.h>): Update.
17554         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
17555         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
17556         * lib/unicase/u16-casexfrm.c: Likewise.
17557         * lib/unicase/u32-casexfrm.c: Likewise.
17558         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
17559         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
17560         * lib/uninorm/u16-normxfrm.c: Likewise.
17561         * lib/uninorm/u32-normxfrm.c: Likewise.
17562         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
17563         memxfrm.
17564         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
17565         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
17566         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
17567         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
17568         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
17569         Suggested by Paul Eggert.
17570
17571 2010-08-14  Bruno Haible  <bruno@clisp.org>
17572
17573         Tests for module 'astrxfrm'.
17574         * modules/astrxfrm-tests: New file.
17575         * tests/test-astrxfrm.c: New file.
17576
17577         New module 'astrxfrm'.
17578         * lib/astrxfrm.h: New file.
17579         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
17580         * modules/astrxfrm: New file.
17581
17582 2010-08-14  Reuben Thomas <rrt@sc3d.org>
17583
17584         regex: Tweak doc.
17585         * doc/regex.texi (Overview): Don't mention regex.c.
17586         (GNU Regular Expression Compiling): Likewise.
17587         (Match-end-of-line Operator): Mention 'not_eol'.
17588
17589 2010-08-14  Brian Gough  <bjg@gnu.org>
17590             Bruno Haible  <bruno@clisp.org>
17591
17592         git-merge-changelog: add doc relating to use with bzr and hg.
17593         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
17594
17595 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
17596
17597         pthread: fix pthread.h creation for srcdir != builddir
17598         * modules/pthread (Makefile.am): Fix the rule to work also in a
17599         non-srcdir build.
17600
17601 2010-08-13  Karl Berry  <karl@gnu.org>
17602
17603         * doc/regex.texi (Predefined Syntaxes): @smallexample.
17604         * doc/posix-*/*: force line break before @url of POSIX
17605         specifications.
17606         Suggested by Werner Lemberg.
17607
17608 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
17609
17610         strtod: fix const diagnostic
17611         * lib/strtod.c (strtod): Don't assign const char * to char *,
17612         as this elicits a warning from GCC when warnings are enabled.
17613
17614 2010-08-10  Pádraig Brady <P@draigbrady.com>
17615         and Eric Blake  <eblake@redhat.com>
17616
17617         copy-acl: ignore ENOTSUP on HP-UX
17618         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
17619         so that it is available for HP-UX.
17620         * lib/copy-acl.c (qcopy_acl): Use it.
17621         Reported by Patrick M. Callahan.
17622
17623 2010-08-10  Eric Blake  <eblake@redhat.com>
17624
17625         open, chown: relax license
17626         * modules/open (License): Change to LGPLv2+, with consent by all
17627         authors, for use in augeas.
17628         * modules/chown (License): Likewise.
17629         * modules/lchown (Likewise): Likewise.
17630         Requested by Adam Stokes.
17631
17632 2010-08-09  Karl Berry  <karl@gnu.org>
17633
17634         * build-aux/ar-lib: new file, import from Automake.
17635         * config/srclist.txt: autocheck for updates.
17636
17637 2010-08-09  Eric Blake  <eblake@redhat.com>
17638
17639         readlinkat: adjust client modules
17640         * modules/areadlinkat (Depends-on): Use readlinkat, not
17641         symlinkat.
17642         * modules/areadlinkat-with-size (Depends-on): Likewise.
17643
17644         mknod: be more vocal about danger of running tests as root
17645         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
17646         root, since that is just asking for problems.
17647         Suggested by Bruno Haible, based on a report by Rainer Tammer.
17648
17649         readlinkat: split into its own module
17650         * modules/symlinkat: Split readlinkat...
17651         * modules/readlinkat: ...into separate module.
17652         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
17653         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
17654         * lib/symlinkat.c (readlinkat): Move...
17655         * lib/readlinkat.c: ...into new file.
17656         * modules/symlinkat-tests: Split readlinkat test...
17657         * modules/readlinkat-tests: ...into separate module.
17658         * tests/test-symlinkat.c: Split...
17659         * tests/test-readlinkat.c: ...into new file.
17660         * NEWS: Document the split.
17661         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17662         * lib/unistd.in.h (readlinkat): Likewise.
17663         Suggested by Bruno Haible.
17664
17665 2010-08-08  Bruno Haible  <bruno@clisp.org>
17666
17667         memxfrm: Speed up.
17668         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
17669         that usually only one call to strxfrm is necessary for each string
17670         part.
17671         Reported by Paul Eggert <eggert@cs.ucla.edu>.
17672
17673 2010-08-07  Karl Berry  <karl@gnu.org>
17674
17675         * doc/posix-headers/limits.texi,
17676         * doc/posix-functions/malloc.texi,
17677         * doc/posix-functions/strsignal.texi: missing @item.
17678         * doc/ld-version-script.texi: spurious leading i.
17679         * doc/regex.texi (Interval Operators): no commas inside @var.
17680
17681 2010-08-01  Bruno Haible  <bruno@clisp.org>
17682
17683         Integrate the regex documentation.
17684         * doc/gnulib.texi: Define 'cn' index.
17685         (Regular expressions): New a chapter that includes regex.texi and
17686         regexprops-generic.texi.
17687         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
17688         syntax.
17689
17690         Whitespace cleanup.
17691         * doc/regex.texi: Remove trailing spaces.
17692
17693         Add regex documentation.
17694         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
17695         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
17696         Written by Kathy A. Hargreaves and Karl Berry.
17697
17698 2010-08-01  Bruno Haible  <bruno@clisp.org>
17699
17700         link: Update documentation.
17701         * doc/posix-functions/link.texi: Update regarding Solaris.
17702
17703 2010-07-31  Bruno Haible  <bruno@clisp.org>
17704
17705         Update modules list.
17706         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
17707         (String handling <string.h>): Add memcmp2, memxfrm.
17708         (Container data structures): Add xlist, xsublist, xoset.
17709         (Core language properties): Add alignof, unused-parameter.
17710         (Process control, Numeric conversion functions <stdlib.h>): Renamed
17711         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
17712         (Unibyte characters <ctype.h>): New section.
17713         (String handling <string.h>): New section.
17714         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
17715         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
17716         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
17717         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
17718         tan, tanh, tanl, y0, y1, yn.
17719         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
17720         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
17721         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
17722         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
17723         unlockpt, vdprintf, vdprintf-posix.
17724         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
17725         (File system functions): Add concat-filename, sys_file, sys_ioctl,
17726         xconcat-filename.
17727         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
17728         getdtablesize, pipe2, pipe2-safer.
17729         (Security): New section.
17730         (Networking functions): Add accept4.
17731         (Signal handling): Add sigpipe.
17732         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
17733         mbmemcasecoll.
17734         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
17735         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
17736         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
17737         pipe-filter-ii.
17738         (Misc): Add argp-version-etc, login_tty, parse-duration.
17739
17740 2010-07-31  Bruno Haible  <bruno@clisp.org>
17741
17742         Improve doc in MODULES.html.
17743         * modules/linkat (Description): Add the word "function".
17744         * modules/mkfifo (Description): Likewise.
17745         * modules/mknod (Description): Likewise.
17746         * modules/remove (Description): Likewise.
17747         * modules/renameat (Description): Likewise.
17748         * modules/stat (Description): Likewise.
17749         * modules/symlink (Description): Likewise.
17750         * modules/unlink (Description): Likewise.
17751
17752 2010-07-31  Bruno Haible  <bruno@clisp.org>
17753
17754         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
17755         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
17756         option --enable/disable-c++ instead of --enable/disable-cxx.
17757         * NEWS: Mention the change.
17758
17759 2010-07-31  Bruno Haible  <bruno@clisp.org>
17760
17761         readlink, areadlink: Relax test a bit.
17762         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
17763         alternative to ENOTDIR.
17764         * tests/test-areadlink.h (test_areadlink): Likewise.
17765         Reported by Rainer Tammer.
17766
17767 2010-07-31  Bruno Haible  <bruno@clisp.org>
17768
17769         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
17770         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
17771         character, perform the search using U_STRCHR.
17772         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
17773         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
17774         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
17775         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
17776         Suggested by Paolo Bonzini.
17777
17778 2010-07-31  Bruno Haible  <bruno@clisp.org>
17779
17780         unistr/u*-strstr: Fix dependencies.
17781         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
17782         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
17783         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
17784
17785 2010-07-31  Bruno Haible  <bruno@clisp.org>
17786
17787         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
17788         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
17789         the beginning of the loop.
17790         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
17791         cases in 'switch' statement.
17792
17793         unistr/u8-strchr: Fix several bugs.
17794         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
17795         the string. When not found, return NULL, not a pointer near the end.
17796
17797         More tests for unistr/u8-strchr.
17798         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
17799         that the function does not read past the first occurrence of the byte
17800         being searched.
17801         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
17802         * tests/unistr/test-u16-strchr.c (main): New function.
17803         * tests/unistr/test-u32-strchr.c (main): New function.
17804
17805 2010-07-31  Bruno Haible  <bruno@clisp.org>
17806
17807         posix-modules: Ignore backup files of documentation files.
17808         * posix-modules: grep only through files named *.texi.
17809
17810 2010-07-31  Bruno Haible  <bruno@clisp.org>
17811
17812         symlinkat: Fix documentation.
17813         * doc/posix-functions/readlinkat.texi: Fix module name.
17814
17815 2010-07-31  Bruno Haible  <bruno@clisp.org>
17816
17817         fchownat: Replace also when chown has the trailing slash bug.
17818         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
17819         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
17820         introduced on 2010-04-10.
17821         Reported by Rainer Tammer.
17822
17823 2010-07-31  Bruno Haible  <bruno@clisp.org>
17824
17825         linkat: Work around AIX 7.1 bug.
17826         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
17827         whether linkat handles trailing slash correctly. If not, replace linkat
17828         and define LINKAT_TRAILING_SLASH_BUG.
17829         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
17830         check whether (fd1,file1) points to a directory if file1 or file2 ends
17831         in a slash. Code taken from lib/link.c.
17832         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
17833         Reported by Rainer Tammer.
17834
17835 2010-07-31  Bruno Haible  <bruno@clisp.org>
17836
17837         Correctly determine whether pow is available in libc on AIX 7 with xlc.
17838         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
17839         This disables an xlc optimization that was causing wrong test results.
17840         Reported by Rainer Tammer.
17841
17842 2010-07-31  Bruno Haible  <bruno@clisp.org>
17843
17844         iconv: Work around AIX 6.1..7.1 bug.
17845         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
17846         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
17847         cross-compiling, guess no on all versions of AIX.
17848         Reported by Rainer Tammer.
17849
17850 2010-07-31  Bruno Haible  <bruno@clisp.org>
17851
17852         readlink: Relax test a bit.
17853         * tests/test-readlink.h (test_readlink): Allow different errno value
17854         when readlink is called with a file name that ends in / and refers to
17855         a file.
17856         Suggested by Eric Blake.
17857         Reported by Rainer Tammer.
17858
17859 2010-07-31  Bruno Haible  <bruno@clisp.org>
17860
17861         copysign: Does not require -lm on glibc systems.
17862         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
17863         gl_COMMON_DOUBLE_MATHFUNC.
17864         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
17865
17866 2010-07-31  Bruno Haible  <bruno@clisp.org>
17867
17868         duplocale: Work around AIX 7.1 bug.
17869         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
17870         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
17871         * lib/duplocale.c (rpl_duplocale): Update comment.
17872         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
17873         Reported by Rainer Tammer.
17874
17875 2010-07-30  Bruno Haible  <bruno@clisp.org>
17876
17877         dirfd: Avoid link error on AIX 7.1.
17878         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
17879         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
17880         exist, set REPLACE_DIRFD.
17881         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
17882         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
17883         * doc/posix-functions/dirfd.texi: Update.
17884         Reported by Rainer Tammer.
17885
17886 2010-07-30  Eric Blake  <eblake@redhat.com>
17887
17888         strtod: next round of AIX fixes
17889         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
17890         exponent.
17891         * tests/test-strtod.c (main): Enhance tests.
17892         * doc/posix-functions/strtod.texi (strtod): Document next bug.
17893         Reported by Rainer Tammer.
17894
17895         futimens: fix configure check
17896         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
17897         Reported by Bruno Haible.
17898
17899 2010-07-30  Bruno Haible  <bruno@clisp.org>
17900
17901         getline: Update regarding AIX.
17902         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
17903         Reported by Rainer Tammer.
17904
17905 2010-07-30  Bruno Haible  <bruno@clisp.org>
17906
17907         wcwidth: Drop replacement on AIX 7.
17908         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
17909         AIX 7.
17910         Reported by Rainer Tammer.
17911
17912 2010-07-30  Bruno Haible  <bruno@clisp.org>
17913
17914         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
17915         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
17916         a 'char *'.
17917         Reported by Rainer Tammer.
17918
17919 2010-07-30  Bruno Haible  <bruno@clisp.org>
17920
17921         unlink: Update regarding AIX.
17922         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
17923         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
17924         Reported by Rainer Tammer.
17925
17926 2010-07-30  Bruno Haible  <bruno@clisp.org>
17927
17928         symlink: Update regarding AIX.
17929         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
17930         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
17931         Reported by Rainer Tammer.
17932
17933 2010-07-30  Bruno Haible  <bruno@clisp.org>
17934
17935         strndup: Update regarding AIX.
17936         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
17937         AIX 7.
17938         Reported by Rainer Tammer.
17939
17940 2010-07-30  Bruno Haible  <bruno@clisp.org>
17941
17942         stat: Update regarding AIX.
17943         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
17944         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
17945         Reported by Rainer Tammer.
17946
17947 2010-07-30  Bruno Haible  <bruno@clisp.org>
17948
17949         truncl: Fix autoconf test.
17950         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
17951         whether truncl works.
17952         Reported by Rainer Tammer.
17953
17954 2010-07-30  Bruno Haible  <bruno@clisp.org>
17955
17956         round: Update regarding AIX.
17957         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
17958         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
17959         Reported by Rainer Tammer.
17960
17961 2010-07-30  Bruno Haible  <bruno@clisp.org>
17962
17963         rename: Update regarding AIX.
17964         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
17965         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
17966         Reported by Rainer Tammer.
17967
17968 2010-07-30  Bruno Haible  <bruno@clisp.org>
17969
17970         printf.m4: Update regarding AIX.
17971         * m4/printf.m4: Update comments regarding AIX.
17972         Reported by Rainer Tammer.
17973
17974 2010-07-30  Bruno Haible  <bruno@clisp.org>
17975
17976         iconv: Update regarding AIX.
17977         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
17978         AIX 7.
17979         Reported by Rainer Tammer.
17980
17981 2010-07-30  Bruno Haible  <bruno@clisp.org>
17982
17983         getopt: Update regarding AIX.
17984         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
17985         no on AIX.
17986         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
17987         Reported by Rainer Tammer.
17988
17989 2010-07-30  Bruno Haible  <bruno@clisp.org>
17990
17991         ldexpl; Update regarding AIX.
17992         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
17993         on AIX 7.
17994         Reported by Rainer Tammer.
17995
17996 2010-07-30  Bruno Haible  <bruno@clisp.org>
17997
17998         frexpl: Update regarding AIX.
17999         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
18000         on AIX 7.
18001         Reported by Rainer Tammer.
18002
18003 2010-07-30  Bruno Haible  <bruno@clisp.org>
18004
18005         open, fopen: Update regarding AIX.
18006         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
18007         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
18008         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
18009         * doc/posix-functions/fopen.texi: Likewise.
18010         Reported by Rainer Tammer.
18011
18012 2010-07-30  Bruno Haible  <bruno@clisp.org>
18013
18014         chown: Update doc regarding AIX.
18015         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
18016         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
18017         Reported by Rainer Tammer.
18018
18019 2010-07-30  Eric Blake  <eblake@redhat.com>
18020
18021         strtod: fix bug in replacement function on AIX
18022         * lib/strtod.c (strtod): Special case broken "0x" parse in
18023         underlying strtod.
18024         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
18025         * doc/posix-functions/strtod.texi (strtod): Likewise.
18026         Reported by Rainer Tammer.
18027
18028 2010-07-30  Bruno Haible  <bruno@clisp.org>
18029
18030         mbrlen: Fix cross-compilation guess for AIX.
18031         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
18032         guess. Leftover from 2008-12-22.
18033
18034 2010-07-30  Bruno Haible  <bruno@clisp.org>
18035
18036         mbrtowc: Fix cross-compilation guess for AIX.
18037         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
18038         guess. Leftover from 2008-12-21.
18039
18040 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
18041
18042         init.sh: work around trap limitation of some shells
18043         * tests/init.sh (setup_): Move exit trap outside of shell function.
18044
18045 2010-07-29  Eric Blake  <eblake@redhat.com>
18046
18047         strtod: aid debugging
18048         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
18049         understanding why strtod is rejected.
18050
18051 2010-07-28  Bruno Haible  <bruno@clisp.org>
18052
18053         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
18054         * lib/unistr/u8-chr.c: Include <string.h>.
18055         * tests/unistr/test-u8-chr.c: Likewise.
18056         * tests/unistr/test-u16-chr.c: Likewise.
18057         * tests/unistr/test-u32-chr.c: Likewise.
18058         * tests/unistr/test-u8-strchr.c: Likewise.
18059         * tests/unistr/test-u16-strchr.c: Likewise.
18060         * tests/unistr/test-u32-strchr.c: Likewise.
18061         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
18062         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
18063         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
18064         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
18065
18066 2010-07-28  Bruno Haible  <bruno@clisp.org>
18067
18068         Use spaces for indentation, not tabs.
18069         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
18070
18071 2010-07-27  Bruno Haible  <bruno@clisp.org>
18072
18073         mbspcasecmp: Fix function specification.
18074         * lib/string.in.h (mbspcasecmp): Fix specification comment.
18075         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
18076         Reported by Eric Blake <eblake@redhat.com>.
18077
18078 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
18079
18080         timespec: use cast and not conditional, as truncation isn't possible
18081         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
18082         instead of a conditional.  Comment about the situation in more detail.
18083         This undoes most of the 2009-10-29 patch.
18084
18085 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
18086
18087         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
18088         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
18089         * lib/unistr/u8-strchr.c: Likewise.
18090         * modules/unistr/u8-chr: Depend on memchr.
18091
18092         unistr/u*-strchr: add tests
18093         * modules/unistr/u8-strchr-tests: New file.
18094         * modules/unistr/u16-strchr-tests: New file.
18095         * modules/unistr/u32-strchr-tests: New file.
18096         * tests/unistr/test-strchr.h: New file.
18097         * tests/unistr/test-u8-strchr.c: New file.
18098         * tests/unistr/test-u16-strchr.c: New file.
18099         * tests/unistr/test-u32-strchr.c: New file.
18100
18101         unistr/u*-chr: test multibyte sequences more
18102         * tests/unistr/test-chr.h: Do complete testing of the characters in the
18103         test vector.
18104         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
18105         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
18106         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
18107
18108         unistr/u*-chr: test multibyte sequences
18109         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
18110
18111         unistr/u*-chr: prepare for multibyte tests
18112         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
18113         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
18114         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
18115         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
18116         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
18117         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
18118
18119 2010-07-18  Bruno Haible  <bruno@clisp.org>
18120
18121         unistr/u8-strchr: Optimize non-ASCII argument case.
18122         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
18123         because the first byte often matches anyway.
18124         Reported by Pádraig Brady <P@draigbrady.com>.
18125
18126 2010-07-15  Karl Berry  <karl@gnu.org>
18127
18128         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
18129
18130 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
18131
18132         getcwd: on Solaris, work better if ancestors are inaccessible
18133         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
18134         buffer and size, try again with a large buffer.  This works better
18135         on Solaris, since its getcwd succeeds even if the path to the root
18136         is inaccessible, and this is helpful in common cases such as .zfs
18137         hidden directories.  Problem reported by J Chapman Flack in
18138         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
18139         Use system getcwd if it's declared, not merely if it's partly
18140         working; use the partly-working test only to avoid needless effort
18141         if the system getcwd fails.
18142         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
18143         comment that was already obsolete and is now even more obsolete.
18144         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
18145         now might call strdup.
18146
18147 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
18148
18149         pthread: Add enough so that coreutils/src/sort.c compiles.
18150         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
18151         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
18152         gnulib. Include <sched.h> and <time.h>, as per POSIX.
18153         Include <sys/types.h>, in case it defines pthread_t.
18154         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
18155         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
18156         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
18157         (pthread_rwlockattr_t, pthread_spinlock_t):
18158         New typedefs, if HAVE_PTHREAD_T is not defined.
18159         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
18160         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
18161         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
18162         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
18163         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
18164         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
18165         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
18166         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
18167         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
18168         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
18169         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
18170         New macros.
18171         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
18172         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
18173         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
18174         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
18175         (pthread_spin_unlock): New dummy functions.
18176         (pthread_create): Return EAGAIN; don't set errno.
18177         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
18178         require AC_C_INLINE.
18179         * modules/pthread (Depends-on): Add sched, time.
18180         (pthread.h): Use AM_V_GEN.
18181
18182 2010-07-13  Bruno Haible  <bruno@clisp.org>
18183
18184         striconveh: Don't malloc memory if the result buffer is sufficient.
18185         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
18186         buffer if its size is sufficient.
18187         Reported by Ludovic Courtès <ludo@gnu.org>.
18188
18189 2010-07-13  Bruno Haible  <bruno@clisp.org>
18190
18191         strtod: Add safety check.
18192         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
18193
18194 2010-07-12  Bruno Haible  <bruno@clisp.org>
18195
18196         Unify tests that set gl_cv_func_ldexpl_no_libm.
18197         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
18198         gl_FUNC_LDEXPL.
18199         (gl_FUNC_LDEXPL): Invoke it.
18200         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
18201
18202 2010-07-12  Bruno Haible  <bruno@clisp.org>
18203
18204         Unify tests that set gl_cv_func_ldexp_no_libm.
18205         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
18206         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
18207         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
18208         (configure.ac): Simply invoke gl_FUNC_LDEXP.
18209         * modules/strtod (Files): Add m4/ldexp.m4.
18210
18211 2010-07-12  Bruno Haible  <bruno@clisp.org>
18212
18213         Unify tests that set gl_cv_func_frexpl_no_libm.
18214         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
18215         gl_FUNC_FREXPL_NO_LIBM.
18216         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
18217         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
18218
18219 2010-07-12  Bruno Haible  <bruno@clisp.org>
18220
18221         Unify tests that set gl_cv_func_frexp_no_libm.
18222         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
18223         gl_FUNC_FREXP_NO_LIBM.
18224         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
18225         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
18226
18227 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
18228
18229         memcoll: clarify sizes versus lengths, document better, and tweak perf
18230         * lib/memcoll.c (strcoll_loop, memcoll0):
18231         Improve quality of descriptive comments.  Name variables
18232         consistently as to whether they are lengths (which do not include
18233         terminating null) versus sizes (which do).
18234         * lib/xmemcoll.c (xmemcoll0): Likewise.
18235         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
18236         returned when s1size == 0; this is easier to compile and saves
18237         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
18238
18239 2010-07-12  Bruno Haible  <bruno@clisp.org>
18240
18241         Tests for module '_Exit'.
18242         * modules/_Exit-tests: New file.
18243         * tests/test-_Exit.sh: New file.
18244         * tests/test-_Exit.c: New file.
18245
18246         New module '_Exit'.
18247         * lib/stdlib.in.h (__attribute__): New macro.
18248         (_Exit): New declaration.
18249         * lib/_Exit.c: New file.
18250         * m4/_Exit.m4: New file.
18251         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
18252         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
18253         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
18254         * modules/_Exit: New file.
18255         * tests/test-stdlib-c++.cc (_Exit): Check signature.
18256         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
18257
18258 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
18259
18260         strtod: make it more-accurate typically, and don't require libm
18261         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
18262         Include limits.h.  Don't include string.h.
18263         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
18264         (locale_isspace): New function, so that no casts are needed to
18265         check whether *s is a space.
18266         (ldexp): Provide an unused dummy if not available.
18267         (scale_radix_exp, parse_number, underlying_strtod): New functions.
18268         (strtod): Use them.  This implementation prefers to use the
18269         underlying strtod if available, falling back on our own code
18270         only to fix known bugs.  This is more likely to produce an
18271         accurate result.  Also, it avoids the use of libm functions.
18272         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
18273         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
18274         was absent, but it caused a test failure with coreutils.
18275         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
18276         with libm.
18277         * modules/strtod (Makefile.am, Link): libm is no longer needed.
18278         * modules/strtod-tests (Makefile.am): Likewise.
18279
18280 2010-07-11  Pádraig Brady  <P@draigBrady.com>
18281             Bruno Haible  <bruno@clisp.org>
18282
18283         unistr/u8-strchr: Optimize ASCII argument case.
18284         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
18285
18286 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
18287
18288         (x)memcoll: minor tweaks
18289         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
18290         is after the type that it qualifies.
18291         (memcoll0): Likewise.
18292         * lib/memcoll.h (memcoll0): Likewise.
18293         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
18294         * lib/xmemcoll.h (xmemcoll0): Likewise.
18295         * lib/memcoll.c (memcoll0): Correct the comment.  This function
18296         differs from memcoll in that the NUL byte is part of the argument.
18297         Omit the abort-checks, as performance is a real issue here.  Plus,
18298         the checks were wrong anyway (an off-by-one error).  Omit local
18299         variable 'diff', as it's a bit clearer that way.
18300         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
18301         no longer needed.
18302
18303 2010-07-08  Chen Guo <chenguo4@yahoo.com>
18304
18305         (x)memcoll: speedup when input is known to be NUL delimited
18306         * lib/memcoll.c: Include stdlib.
18307         (memcoll0): New function.
18308         (strcoll_loop): New function, refactored for use in both memcoll
18309         and memcoll0.
18310         * lib/memcoll.h (memcoll0): Add prototype.
18311         * lib/xmemcoll.c (xmemcoll0): New function.
18312         (collate_error): New function, refactored for use in both xmemcoll
18313         and xmemcoll0.
18314         * lib/xmemcoll.h (xmemcoll0): Add prototype.
18315         * m4/memcoll.m4: add inline invocation.
18316
18317 2010-07-06  Pádraig Brady  <P@draigBrady.com>
18318
18319         * build-aux/bootstrap: Remove any local translations
18320         from the translation project synchronization directory,
18321         so that local only translations are not distributed.
18322
18323 2010-07-04  Bruno Haible  <bruno@clisp.org>
18324
18325         fsusage: Clarify which code applies to which platforms.
18326         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
18327         platform.
18328         * lib/fsusage.c (get_fs_usage): Likewise.
18329
18330 2010-07-04  Bruno Haible  <bruno@clisp.org>
18331
18332         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
18333         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
18334         Reported by Martin Lambers <marlam@marlam.de>.
18335
18336 2010-07-04  Jim Meyering  <meyering@redhat.com>
18337
18338         hash: once again explicitly disallow insertion of NULL
18339         * lib/hash.c (hash_insert0): Reinstate just-removed test:
18340         inserting a NULL pointer cannot work with these functions.
18341         Add a comment with details.
18342         This reverts part of the 2010-07-01 commit, 5bef1a35
18343         "hash: extend module to deal with non-pointer keys".
18344
18345 2010-07-01  Bruno Haible  <bruno@clisp.org>
18346
18347         stdbool: Update doc.
18348         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
18349         Info from Christian Weisgerber <naddy@mips.inka.de>.
18350
18351 2010-07-01  Jim Meyering  <meyering@redhat.com>
18352
18353         hash: extend module to deal with non-pointer keys
18354         * lib/hash.c (hash_insert0): New interface, much like hash_insert
18355         but that allows insertion of non-pointer entries.
18356         Do not disallow an ENTRY value of NULL.
18357         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
18358         * lib/hash.h (hash_insert0): Declare.
18359
18360 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18361
18362         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
18363         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
18364         not present (i.e. with autoconf 2.59 and when using gettextize, not
18365         gnulib), require AC_GNU_SOURCE instead.
18366
18367 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
18368
18369         idpriv-drop: Fix tests.
18370         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
18371         not to the test-idpriv-droptemp program.
18372
18373 2010-06-29  Bruno Haible  <bruno@clisp.org>
18374
18375         string: Fix syntax error with g++ 2.96.
18376         * lib/string.in.h (__pure__): Remove definition.
18377         (_GL_ATTRIBUTE_PURE): New macro.
18378         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
18379         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
18380         Reported by Christian Weisgerber <naddy@mips.inka.de>.
18381
18382 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
18383
18384         unitypes: Fix bug introduced on 2010-05-18.
18385         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
18386
18387 2010-06-22  Eric Blake  <eblake@redhat.com>
18388
18389         memmem: slight optimization
18390         * lib/str-two-way.h (critical_factorization): Update comments.
18391         Reduce work during factorization phase.
18392         Reported by Carlos Bueno <carlos@bueno.org>.
18393
18394 2010-06-21  Bruno Haible  <bruno@clisp.org>
18395
18396         Fix HAVE_CALLOC_POSIX misnomer.
18397         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
18398         !HAVE_CALLOC_POSIX.
18399         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
18400         HAVE_CALLOC_POSIX.
18401         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
18402         instead of HAVE_CALLOC_POSIX.
18403         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
18404         HAVE_CALLOC_POSIX.
18405
18406         Use modern idiom for calloc() replacement.
18407         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
18408         AC_FUNC_CALLOC.
18409         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
18410         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
18411         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18412         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
18413         (gl_REPLACE_CALLOC): New macro.
18414
18415 2010-06-21  Bruno Haible  <bruno@clisp.org>
18416
18417         Fix HAVE_REALLOC_POSIX misnomer.
18418         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
18419         !HAVE_REALLOC_POSIX.
18420         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
18421         HAVE_REALLOC_POSIX.
18422         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
18423         instead of HAVE_REALLOC_POSIX.
18424         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
18425         HAVE_REALLOC_POSIX.
18426
18427         Use modern idiom for realloc() replacement.
18428         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
18429         AC_FUNC_REALLOC.
18430         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
18431         Autoconf's AC_FUNC_REALLOC.
18432         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18433         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
18434         (gl_REPLACE_REALLOC): New macro.
18435         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
18436
18437 2010-06-21  Bruno Haible  <bruno@clisp.org>
18438
18439         Fix HAVE_MALLOC_POSIX misnomer.
18440         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
18441         !HAVE_MALLOC_POSIX.
18442         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
18443         HAVE_MALLOC_POSIX.
18444         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
18445         instead of HAVE_MALLOC_POSIX.
18446         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
18447         HAVE_MALLOC_POSIX.
18448
18449         Use modern idiom for malloc() replacement.
18450         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
18451         AC_FUNC_MALLOC.
18452         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
18453         Autoconf's AC_FUNC_MALLOC.
18454         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18455         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
18456         (gl_REPLACE_MALLOC): New macro.
18457         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
18458
18459 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
18460
18461         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
18462         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
18463         This macro takes 3 arguments, not 4.
18464
18465 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
18466
18467         ipv6: fix detection under mingw
18468         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
18469         in6_addr.
18470
18471 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
18472
18473         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
18474         that strtod() works when cross-compiling to a glibc version known
18475         to work.
18476
18477 2010-06-15  Bruno Haible  <bruno@clisp.org>
18478
18479         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
18480
18481 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
18482
18483         select: Correct timeout.
18484         * lib/select.c (rpl_select): Compute wait_timeout correctly.
18485
18486 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18487
18488         git-version-gen: init shell var to avoid env var influence
18489         * build-aux/git-version-gen (v): Init shell var to empty.
18490
18491 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
18492
18493         priv-set: Don't assume that priv.h exists merely because getppriv does.
18494         See Jan Andersen's bug report about AIX 5L in
18495         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
18496         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
18497         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
18498         * lib/priv-set.h: Likewise.
18499         * tests/test-priv-set.c: Likewise.
18500
18501 2010-06-13  Bruno Haible  <bruno@clisp.org>
18502
18503         relocatable: Make it easier to test whether to install wrappers.
18504         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
18505         RELOCATABLE_VIA_WRAPPER.
18506
18507 2010-06-13  Bruno Haible  <bruno@clisp.org>
18508
18509         gnulib-tool: Display specified modules and dependencies differently.
18510         * gnulib-tool (func_show_module_list): New function.
18511         (func_import, func_create_testdir): Invoke it.
18512         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
18513
18514 2010-06-13  Bruno Haible  <bruno@clisp.org>
18515
18516         gnulib-tool: Align code of func_import and func_create_testdir.
18517         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
18518         specified_modules.
18519
18520 2010-06-12  Jim Meyering  <meyering@redhat.com>
18521
18522         test-inttostr: avoid spurious failure on Solaris 9
18523         * tests/test-inttostr.c (main): Skip the test when snprintf fails
18524         to accept "%ju".  Reported by Bruno Haible.
18525
18526 2010-06-11  Jim Meyering  <meyering@redhat.com>
18527
18528         test-sys_socket: mark variables as used more readably
18529         * tests/test-sys_socket.c (main): Mark otherwise unused variables
18530         as "used" explicitly via (void) statement casts.  This is more
18531         readable than using them in an artificial return expression.
18532         Suggestion from Bruno Haible.
18533
18534 2010-06-11  Bruno Haible  <bruno@clisp.org>
18535
18536         Avoid some more warnings from "gcc -Wwrite-strings".
18537         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
18538         to 'const char *'.
18539         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
18540         * tests/test-c-strcasestr.c (main): Likewise.
18541         * tests/test-mbscasestr1.c (main): Likewise.
18542         * tests/test-mbscasestr2.c (main): Likewise.
18543         * tests/test-memmem.c (main): Likewise.
18544         * tests/test-strstr.c (main): Likewise.
18545         * tests/test-strcasestr.c (main): Likewise.
18546
18547 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18548
18549         init.sh: change framework_failure_ to fail with status 99, not 1
18550         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
18551         automake's parallel-tests rule that this is an unexpected failure,
18552         even if the test is listed in XFAIL_TESTS.
18553
18554 2010-06-11  Jim Meyering  <meyering@redhat.com>
18555
18556         test-inttostr: avoid warnings about 4-6KB literal strings
18557         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
18558         Include "macros.h", for its definition of ASSERT.
18559         (CK): s/assert/ASSERT/
18560         * modules/inttostr-tests (Files): Add macros.h.
18561
18562         init.sh: don't use $ME_ or skip_ before they are defined
18563         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
18564         their first uses.  Also hoist their companions: warn_, fail_,
18565         framework_failure_, $stderr_fileno.  Prompted by a patch from
18566         Stefano Lattarini.
18567
18568         test-sys_socket: avoid set-but-not-used warnings from gcc
18569         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
18570         avoid warning about set-but-not-used variables.
18571
18572         test-xvasprintf: avoid 'const' discard warnings
18573         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
18574         "const" when assigning from literal strings.
18575         (test_xasprintf): Add "void" in function argument list to placate
18576         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
18577
18578         tests: avoid compilation warnings in argmatch and exclude tests...
18579         in packages that define ARGMATCH_DIE_DECL, like coreutils.
18580         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
18581         Since it always exits, declare with the "noreturn" attribute.
18582         * tests/test-argmatch.c: Likewise.
18583
18584         tests: avoid 'const' discard warnings in mbsstr tests
18585         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
18586         * tests/test-mbsstr2.c (main): Likewise.
18587
18588         test-verify: avoid warning from gcc's -Wmissing-declarations
18589         * tests/test-verify.c (function): Declare to be static.
18590
18591         test-inttostr.c: include <string.h> for use of strcmp
18592         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
18593
18594         test-linkat: avoid failed assertion on "other" architectures
18595         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
18596         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
18597         sparc: https://bugs.launchpad.net/bugs/591968
18598
18599 2010-06-11  Jim Meyering  <meyering@redhat.com>
18600
18601         printf.m4: avoid autoconf's "Expanded Before Required" warning
18602         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
18603         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
18604         autoconf warning.
18605
18606 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
18607
18608         Replacement header templates are now named with ".in", not "_".
18609         * doc/gnulib-intro.texi: Correct.
18610
18611 2010-06-10  Jim Meyering  <meyering@redhat.com>
18612
18613         inttostr-tests: depend on snprintf, not snprintf-posix
18614         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
18615         snprintf-posix, to avoid this aclocal failure:
18616           missing file gnulib-tests/vasnprintf.c
18617           configure.ac:45: error: expected source file, required through \
18618           AC_LIBSOURCES, not found
18619
18620 2010-06-10  Jim Meyering  <meyering@redhat.com>
18621
18622         inttostr: add a new function, inttostr, and tests
18623         The namesake function was not available.  The existence of the
18624         template file, inttostr.c makes its addition nontrivial.
18625         * lib/anytostr.c: Rename from inttostr.c.
18626         (anytostr): Rename from inttostr.
18627         * lib/inttostr.c: New file.
18628         * modules/inttostr (Files): Add anytostr.c.
18629         (Makefile.am): Set lib_SOURCES instead of ...
18630         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
18631         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
18632         * lib/offtostr.c: Likewise.
18633         * lib/uinttostr.c: Likewise.
18634         * lib/umaxtostr.c: Likewise.
18635         * modules/inttostr-tests: New file.
18636         * tests/test-inttostr.c: New file.  Test these functions.
18637
18638 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
18639             Bruno Haible  <bruno@clisp.org>
18640
18641         Add "Extending Gnulib" chapter to manual.
18642         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
18643         chapter.
18644         (Extending Gnulib): New chapter.
18645         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
18646         chapter.
18647
18648 2010-06-09  Bruno Haible  <bruno@clisp.org>
18649
18650         Avoid relocwrapper link errors due to gnulib replacement functions.
18651         * lib/areadlink.c: Use the system's malloc, realloc functions.
18652         (areadlink): Set errno to ENOMEM explicitly.
18653         * modules/areadlink (Depends-on): Remove malloc-posix.
18654         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18655
18656 2010-06-09  Bruno Haible  <bruno@clisp.org>
18657
18658         Avoid relocwrapper link errors due to gnulib replacement functions.
18659         * lib/canonicalize-lgpl.c: Use the system's malloc function.
18660         * lib/malloca.c: Likewise.
18661         * lib/relocatable.c: Likewise.
18662         * lib/progreloc.c: Use the system's malloc, sprintf functions.
18663         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
18664         * lib/setenv.c: Use the system's malloc, realloc functions.
18665         * lib/strerror.c: Use the system's sprintf function.
18666         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18667
18668 2010-06-04  Bruno Haible  <bruno@clisp.org>
18669
18670         Prefer documented low-level autoconf macro names.
18671         * m4/lib-link.m4: Use m4_translit instead of translit.
18672         * m4/environ.m4: Likewise.
18673         * m4/mathfunc.m4: Likewise.
18674         * m4/onceonly.m4: Likewise.
18675         * m4/stdint.m4: Likewise.
18676         Suggested by Eric Blake.
18677
18678 2010-06-04  Martin Lambers  <marlam@marlam.de>
18679             Bruno Haible  <bruno@clisp.org>
18680
18681         havelib: Allow library names with '+' characters.
18682         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
18683         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
18684
18685 2010-06-09  Bruno Haible  <bruno@clisp.org>
18686
18687         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
18688         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
18689         realloc failed.
18690
18691 2010-06-08  Peter Simons  <simons@cryp.to>
18692
18693         maint.mk: make the news-check rule more configurable
18694         * top/maint.mk (news-check-lines-spec): New variable.
18695         (news-check): Use "sed -n 1,10p" in place of "head".
18696
18697 2010-06-07  Jim Meyering  <meyering@redhat.com>
18698
18699         do-release-commit-and-tag: fix typo in --help
18700         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
18701
18702         regex: avoid new dead-code warning with gcc-4.6.0
18703         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
18704         if-block containing a while-loop.  It's been unused for at least
18705         5 years.
18706
18707 2010-06-05  Bruno Haible  <bruno@clisp.org>
18708
18709         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
18710         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
18711
18712 2010-06-04  Bruno Haible  <bruno@clisp.org>
18713
18714         Update to GNU gettext 0.18.1.
18715         * modules/gettext (configure.ac): Require gettext infrastructure from
18716         version 0.18.1.
18717
18718 2010-06-03  Bruno Haible  <bruno@clisp.org>
18719
18720         Don't use AC_LIBOBJ with file names in subdirectories.
18721         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
18722         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
18723         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
18724         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
18725         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
18726         gl_LIBUNISTRING_LIBSOURCE.
18727         (Makefile.am): Augment lib_SOURCES here, conditionally.
18728         * NEWS: Drop requirement for Automake option 'subdir-objects'.
18729
18730 2010-06-03  Bruno Haible  <bruno@clisp.org>
18731
18732         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
18733         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
18734         expansion does not end with a newline.
18735         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
18736         unnecessary newline.
18737
18738 2010-06-03  Bruno Haible  <bruno@clisp.org>
18739
18740         Reduce dependencies.
18741         * tests/test-quotearg.h: New file, extracted from
18742         tests/test-quotearg.c.
18743         * tests/test-quotearg-simple.c: New file, extracted from
18744         tests/test-quotearg.c.
18745         * tests/test-quotearg.c: Don't include <ctype.h>.
18746         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
18747         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
18748         use_quote_double_quotes, use_quotearg_colon): Moved to
18749         tests/test-quotearg.h.
18750         (results_g, flag_results, custom_quotes, custom_results): Moved
18751         to tests/test-quotearg-simple.c.
18752         (main): Moved the part that does not depend on gettext to
18753         tests/test-quotearg-simple.c. Return 77 if the test cannot be
18754         performed.
18755         * modules/quotearg-simple: New file.
18756         * modules/quotearg-simple-tests: New file.
18757         * modules/quotearg (Depends-on): Add quotearg-simple.
18758         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
18759         (Files): Add tests/test-quotearg.h.
18760         Reported by Paolo Bonzini.
18761
18762 2010-06-03  Bruno Haible  <bruno@clisp.org>
18763
18764         Reduce dependencies.
18765         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
18766
18767 2010-06-03  Bruno Haible  <bruno@clisp.org>
18768
18769         time: Undefine more broken macros.
18770         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
18771         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
18772         Reported by Eric Blake.
18773
18774 2010-06-03  Bruno Haible  <bruno@clisp.org>
18775
18776         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
18777         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
18778         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
18779         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
18780         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
18781         Reported by Ludovic Courtès <ludo@gnu.org>.
18782
18783 2010-06-02  Eric Blake  <eblake@redhat.com>
18784
18785         time: work with mingw + pthreads-win32 library
18786         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
18787         if timespec is defined only in pthread.h.
18788         * modules/time (Makefile.am): Substitute it.
18789         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
18790         <pthread.h>, when needed.
18791         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
18792         from the library.
18793
18794 2010-05-31  Bruno Haible  <bruno@clisp.org>
18795
18796         Avoid expanding two macros in the wrong order.
18797         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
18798         gl_LIBUNISTRING if it is defined.
18799         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
18800         autoconf >= 2.64.
18801         Reported by Ludovic Courtès <ludo@gnu.org>.
18802
18803 2010-05-27  Jim Meyering  <meyering@redhat.com>
18804
18805         maint.mk: also prohibit "#undef" of always-defined symbols
18806         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
18807         Allow more than one space before the symbol name.
18808         (sc_prohibit_always-defined_macros): Use grep's -E, now that
18809         the regexp uses alternation.
18810
18811 2010-05-26  Eric Blake  <eblake@redhat.com>
18812
18813         maint.mk: avoid echo -e
18814         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
18815         Convert all uses of echo -* to printf.
18816         Reported by Matthias Bolte.
18817
18818 2010-05-25  Bruno Haible  <bruno@clisp.org>
18819
18820         Update to GNU gettext 0.18, part 2.
18821         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
18822         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
18823
18824 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18825
18826         Add missing include in test-pwrite.c.
18827         * tests/test-pwrite.c: Include string.h, for strcmp.
18828
18829 2010-05-24  Bruno Haible  <bruno@clisp.org>
18830
18831         * NEWS: Mention requirement for Automake option 'subdir-objects'.
18832
18833 2010-05-24  Bruno Haible  <bruno@clisp.org>
18834
18835         Don't use conversion with transliteration in u{8,16,32}_strcoll.
18836         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
18837         iconveh_error argument.
18838         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
18839         U_STRCONV_TO_LOCALE.
18840         * lib/unistr/u16-strcoll.c: Likewise.
18841         * lib/unistr/u32-strcoll.c: Likewise.
18842         * modules/unistr/u8-strcoll (Depends-on): Add
18843         uniconv/u8-strconv-to-enc, localcharset. Remove
18844         uniconv/u8-strconv-to-locale.
18845         (configure.ac): Bump version number.
18846         * modules/unistr/u16-strcoll (Depends-on): Add
18847         uniconv/u16-strconv-to-enc, localcharset. Remove
18848         uniconv/u16-strconv-to-locale.
18849         (configure.ac): Bump version number.
18850         * modules/unistr/u32-strcoll (Depends-on): Add
18851         uniconv/u32-strconv-to-enc, localcharset. Remove
18852         uniconv/u32-strconv-to-locale.
18853         (configure.ac): Bump version number.
18854
18855 2010-05-24  Bruno Haible  <bruno@clisp.org>
18856
18857         Avoid a test failure on NetBSD 5.0.
18858         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
18859         an iconv() bug.
18860
18861 2010-05-24  Bruno Haible  <bruno@clisp.org>
18862
18863         Adjust #include directive style.
18864         * modules/regex (Includes): Recommend to write <regex.h>.
18865
18866 2010-05-24  Bruno Haible  <bruno@clisp.org>
18867
18868         regex: Don't require alloca.
18869         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
18870         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
18871         only inside if (0).
18872
18873 2010-05-23  Jim Meyering  <meyering@redhat.com>
18874
18875         test-renameat.c: include <sys/stat.h>
18876         * tests/test-renameat.c: Include <sys/stat.h>; required for
18877         definition of S_IS* macros.
18878
18879 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
18880
18881         Update maintainer documentation for 'relocatable-prog' module.
18882         * doc/relocatable-maint.texi: Update.
18883         Comments by Bruno Haible.
18884
18885 2010-05-23  Bruno Haible  <bruno@clisp.org>
18886
18887         git-merge-changelog: Enable --split-merged-entry by default.
18888         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
18889         (usage): Don't mention this option any more.
18890         Reported by Ralf Wildenhues.
18891
18892 2010-05-23  Jim Meyering  <meyering@redhat.com>
18893
18894         test-pwrite: do not leave behind a test file named "out"
18895         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
18896         The trivial-looking use of init.sh is really necessary.
18897         It ensures that the temporary file, "out", is created in
18898         a temporary directory, and removed upon termination.
18899         * tests/test-pwrite.sh: Re-add file.
18900         * modules/pwrite-tests: Reference it.
18901
18902 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18903
18904         Fix output redirection buglet in init.sh.
18905         * tests/init.sh: Fix redirection of stderr.
18906
18907 2010-05-20  Simon Josefsson  <simon@josefsson.org>
18908
18909         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
18910
18911 2010-05-17  Simon Josefsson  <simon@josefsson.org>
18912
18913         * modules/valgrind-tests: New file.
18914         * m4/valgrind-tests.m4: New file.
18915         * doc/valgrind-tests.texi: New file.
18916         * doc/gnulib.texi (Running self-tests under valgrind): New
18917         section.
18918
18919 2010-05-19  Bruno Haible  <bruno@clisp.org>
18920
18921         Clean up dead code in recent commit.
18922         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
18923         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
18924         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
18925         Suggested by Paolo Bonzini.
18926
18927 2010-05-19  Bruno Haible  <bruno@clisp.org>
18928
18929         Avoid valgrind error reports from libunistring.
18930         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
18931         * modules/libunistring (Files): Add it.
18932         * modules/libunistring-optional (Files): Likewise.
18933
18934 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
18935             Bruno Haible  <bruno@clisp.org>
18936
18937         New module 'libunistring-optional'.
18938         * modules/libunistring-optional: New file.
18939         * m4/libunistring-base.m4: New file.
18940         * m4/libunistring-optional.m4: New file.
18941         * lib/unicase.in.h: Renamed from lib/unicase.h.
18942         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
18943         * lib/unictype.in.h: Renamed from lib/unictype.h.
18944         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
18945         * lib/uniname.in.h: Renamed from lib/uniname.h.
18946         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
18947         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
18948         * lib/unistr.in.h: Renamed from lib/unistr.h.
18949         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
18950         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
18951         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
18952         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
18953         gl_LIBUNISTRING. If the library was found, determine the installed
18954         version and set LIBUNISTRING_VERSION.
18955         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
18956         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
18957         handle a configuration option --with-included-libunistring.
18958         * modules/libunistring (Files): Add m4/absolute-header.m4.
18959         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
18960         Add m4/libunistring-base.m4.
18961         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18962         (Makefile.am): Build unicase.h from unicase.in.h.
18963         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
18964         Add m4/libunistring-base.m4.
18965         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18966         (Makefile.am): Build uniconv.h from uniconv.in.h.
18967         * modules/unictype/base (Files): Use unictype.in.h instead of
18968         unictype.h. Add m4/libunistring-base.m4.
18969         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18970         (Makefile.am): Build unictype.h from unictype.in.h.
18971         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
18972         Add m4/libunistring-base.m4.
18973         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18974         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
18975         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
18976         Add m4/libunistring-base.m4.
18977         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18978         (Makefile.am): Build uniname.h from uniname.in.h.
18979         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
18980         Add m4/libunistring-base.m4.
18981         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18982         (Makefile.am): Build uninorm.h from uninorm.in.h.
18983         * modules/unistdio/base (Files): Use unistdio.in.h instead of
18984         unistdio.h. Add m4/libunistring-base.m4.
18985         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18986         (Makefile.am): Build unistdio.h from unistdio.in.h.
18987         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
18988         Add m4/libunistring-base.m4.
18989         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18990         (Makefile.am): Build unistr.h from unistr.in.h.
18991         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
18992         Add m4/libunistring-base.m4.
18993         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18994         (Makefile.am): Build unitypes.h from unitypes.in.h.
18995         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
18996         Add m4/libunistring-base.m4.
18997         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18998         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
18999         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
19000         uniwidth.h. Add m4/libunistring-base.m4.
19001         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19002         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
19003         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
19004         instead of augmenting lib_SOURCES.
19005         * modules/unicase/empty-suffix-context: Likewise.
19006         * modules/unicase/locale-language: Likewise.
19007         * modules/unicase/tolower: Likewise.
19008         * modules/unicase/totitle: Likewise.
19009         * modules/unicase/toupper: Likewise.
19010         * modules/unicase/u8-casecmp: Likewise.
19011         * modules/unicase/u8-casecoll: Likewise.
19012         * modules/unicase/u8-casefold: Likewise.
19013         * modules/unicase/u8-casexfrm: Likewise.
19014         * modules/unicase/u8-ct-casefold: Likewise.
19015         * modules/unicase/u8-ct-tolower: Likewise.
19016         * modules/unicase/u8-ct-totitle: Likewise.
19017         * modules/unicase/u8-ct-toupper: Likewise.
19018         * modules/unicase/u8-is-cased: Likewise.
19019         * modules/unicase/u8-is-casefolded: Likewise.
19020         * modules/unicase/u8-is-lowercase: Likewise.
19021         * modules/unicase/u8-is-titlecase: Likewise.
19022         * modules/unicase/u8-is-uppercase: Likewise.
19023         * modules/unicase/u8-prefix-context: Likewise.
19024         * modules/unicase/u8-suffix-context: Likewise.
19025         * modules/unicase/u8-tolower: Likewise.
19026         * modules/unicase/u8-totitle: Likewise.
19027         * modules/unicase/u8-toupper: Likewise.
19028         * modules/unicase/u16-casecmp: Likewise.
19029         * modules/unicase/u16-casecoll: Likewise.
19030         * modules/unicase/u16-casefold: Likewise.
19031         * modules/unicase/u16-casexfrm: Likewise.
19032         * modules/unicase/u16-ct-casefold: Likewise.
19033         * modules/unicase/u16-ct-tolower: Likewise.
19034         * modules/unicase/u16-ct-totitle: Likewise.
19035         * modules/unicase/u16-ct-toupper: Likewise.
19036         * modules/unicase/u16-is-cased: Likewise.
19037         * modules/unicase/u16-is-casefolded: Likewise.
19038         * modules/unicase/u16-is-lowercase: Likewise.
19039         * modules/unicase/u16-is-titlecase: Likewise.
19040         * modules/unicase/u16-is-uppercase: Likewise.
19041         * modules/unicase/u16-prefix-context: Likewise.
19042         * modules/unicase/u16-suffix-context: Likewise.
19043         * modules/unicase/u16-tolower: Likewise.
19044         * modules/unicase/u16-totitle: Likewise.
19045         * modules/unicase/u16-toupper: Likewise.
19046         * modules/unicase/u32-casecmp: Likewise.
19047         * modules/unicase/u32-casecoll: Likewise.
19048         * modules/unicase/u32-casefold: Likewise.
19049         * modules/unicase/u32-casexfrm: Likewise.
19050         * modules/unicase/u32-ct-casefold: Likewise.
19051         * modules/unicase/u32-ct-tolower: Likewise.
19052         * modules/unicase/u32-ct-totitle: Likewise.
19053         * modules/unicase/u32-ct-toupper: Likewise.
19054         * modules/unicase/u32-is-cased: Likewise.
19055         * modules/unicase/u32-is-casefolded: Likewise.
19056         * modules/unicase/u32-is-lowercase: Likewise.
19057         * modules/unicase/u32-is-titlecase: Likewise.
19058         * modules/unicase/u32-is-uppercase: Likewise.
19059         * modules/unicase/u32-prefix-context: Likewise.
19060         * modules/unicase/u32-suffix-context: Likewise.
19061         * modules/unicase/u32-tolower: Likewise.
19062         * modules/unicase/u32-totitle: Likewise.
19063         * modules/unicase/u32-toupper: Likewise.
19064         * modules/unicase/ulc-casecmp: Likewise.
19065         * modules/unicase/ulc-casecoll: Likewise.
19066         * modules/unicase/ulc-casexfrm: Likewise.
19067         * modules/uniconv/u8-conv-from-enc: Likewise.
19068         * modules/uniconv/u8-conv-to-enc: Likewise.
19069         * modules/uniconv/u8-strconv-from-enc: Likewise.
19070         * modules/uniconv/u8-strconv-from-locale: Likewise.
19071         * modules/uniconv/u8-strconv-to-enc: Likewise.
19072         * modules/uniconv/u8-strconv-to-locale: Likewise.
19073         * modules/uniconv/u16-conv-from-enc: Likewise.
19074         * modules/uniconv/u16-conv-to-enc: Likewise.
19075         * modules/uniconv/u16-strconv-from-enc: Likewise.
19076         * modules/uniconv/u16-strconv-from-locale: Likewise.
19077         * modules/uniconv/u16-strconv-to-enc: Likewise.
19078         * modules/uniconv/u16-strconv-to-locale: Likewise.
19079         * modules/uniconv/u32-conv-from-enc: Likewise.
19080         * modules/uniconv/u32-conv-to-enc: Likewise.
19081         * modules/uniconv/u32-strconv-from-enc: Likewise.
19082         * modules/uniconv/u32-strconv-from-locale: Likewise.
19083         * modules/uniconv/u32-strconv-to-enc: Likewise.
19084         * modules/uniconv/u32-strconv-to-locale: Likewise.
19085         * modules/unictype/bidicategory-byname: Likewise.
19086         * modules/unictype/bidicategory-name: Likewise.
19087         * modules/unictype/bidicategory-of: Likewise.
19088         * modules/unictype/bidicategory-test: Likewise.
19089         * modules/unictype/block-list: Likewise.
19090         * modules/unictype/block-test: Likewise.
19091         * modules/unictype/category-C: Likewise.
19092         * modules/unictype/category-Cc: Likewise.
19093         * modules/unictype/category-Cf: Likewise.
19094         * modules/unictype/category-Cn: Likewise.
19095         * modules/unictype/category-Co: Likewise.
19096         * modules/unictype/category-Cs: Likewise.
19097         * modules/unictype/category-L: Likewise.
19098         * modules/unictype/category-Ll: Likewise.
19099         * modules/unictype/category-Lm: Likewise.
19100         * modules/unictype/category-Lo: Likewise.
19101         * modules/unictype/category-Lt: Likewise.
19102         * modules/unictype/category-Lu: Likewise.
19103         * modules/unictype/category-M: Likewise.
19104         * modules/unictype/category-Mc: Likewise.
19105         * modules/unictype/category-Me: Likewise.
19106         * modules/unictype/category-Mn: Likewise.
19107         * modules/unictype/category-N: Likewise.
19108         * modules/unictype/category-Nd: Likewise.
19109         * modules/unictype/category-Nl: Likewise.
19110         * modules/unictype/category-No: Likewise.
19111         * modules/unictype/category-P: Likewise.
19112         * modules/unictype/category-Pc: Likewise.
19113         * modules/unictype/category-Pd: Likewise.
19114         * modules/unictype/category-Pe: Likewise.
19115         * modules/unictype/category-Pf: Likewise.
19116         * modules/unictype/category-Pi: Likewise.
19117         * modules/unictype/category-Po: Likewise.
19118         * modules/unictype/category-Ps: Likewise.
19119         * modules/unictype/category-S: Likewise.
19120         * modules/unictype/category-Sc: Likewise.
19121         * modules/unictype/category-Sk: Likewise.
19122         * modules/unictype/category-Sm: Likewise.
19123         * modules/unictype/category-So: Likewise.
19124         * modules/unictype/category-Z: Likewise.
19125         * modules/unictype/category-Zl: Likewise.
19126         * modules/unictype/category-Zp: Likewise.
19127         * modules/unictype/category-Zs: Likewise.
19128         * modules/unictype/category-and: Likewise.
19129         * modules/unictype/category-and-not: Likewise.
19130         * modules/unictype/category-byname: Likewise.
19131         * modules/unictype/category-name: Likewise.
19132         * modules/unictype/category-none: Likewise.
19133         * modules/unictype/category-of: Likewise.
19134         * modules/unictype/category-or: Likewise.
19135         * modules/unictype/category-test: Likewise.
19136         * modules/unictype/combining-class: Likewise.
19137         * modules/unictype/ctype-alnum: Likewise.
19138         * modules/unictype/ctype-alpha: Likewise.
19139         * modules/unictype/ctype-blank: Likewise.
19140         * modules/unictype/ctype-cntrl: Likewise.
19141         * modules/unictype/ctype-digit: Likewise.
19142         * modules/unictype/ctype-graph: Likewise.
19143         * modules/unictype/ctype-lower: Likewise.
19144         * modules/unictype/ctype-print: Likewise.
19145         * modules/unictype/ctype-punct: Likewise.
19146         * modules/unictype/ctype-space: Likewise.
19147         * modules/unictype/ctype-upper: Likewise.
19148         * modules/unictype/ctype-xdigit: Likewise.
19149         * modules/unictype/decimal-digit: Likewise.
19150         * modules/unictype/digit: Likewise.
19151         * modules/unictype/mirror: Likewise.
19152         * modules/unictype/numeric: Likewise.
19153         * modules/unictype/property-alphabetic: Likewise.
19154         * modules/unictype/property-ascii-hex-digit: Likewise.
19155         * modules/unictype/property-bidi-arabic-digit: Likewise.
19156         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
19157         * modules/unictype/property-bidi-block-separator: Likewise.
19158         * modules/unictype/property-bidi-boundary-neutral: Likewise.
19159         * modules/unictype/property-bidi-common-separator: Likewise.
19160         * modules/unictype/property-bidi-control: Likewise.
19161         * modules/unictype/property-bidi-embedding-or-override: Likewise.
19162         * modules/unictype/property-bidi-eur-num-separator: Likewise.
19163         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
19164         * modules/unictype/property-bidi-european-digit: Likewise.
19165         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
19166         * modules/unictype/property-bidi-left-to-right: Likewise.
19167         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
19168         * modules/unictype/property-bidi-other-neutral: Likewise.
19169         * modules/unictype/property-bidi-pdf: Likewise.
19170         * modules/unictype/property-bidi-segment-separator: Likewise.
19171         * modules/unictype/property-bidi-whitespace: Likewise.
19172         * modules/unictype/property-byname: Likewise.
19173         * modules/unictype/property-combining: Likewise.
19174         * modules/unictype/property-composite: Likewise.
19175         * modules/unictype/property-currency-symbol: Likewise.
19176         * modules/unictype/property-dash: Likewise.
19177         * modules/unictype/property-decimal-digit: Likewise.
19178         * modules/unictype/property-default-ignorable-code-point: Likewise.
19179         * modules/unictype/property-deprecated: Likewise.
19180         * modules/unictype/property-diacritic: Likewise.
19181         * modules/unictype/property-extender: Likewise.
19182         * modules/unictype/property-format-control: Likewise.
19183         * modules/unictype/property-grapheme-base: Likewise.
19184         * modules/unictype/property-grapheme-extend: Likewise.
19185         * modules/unictype/property-grapheme-link: Likewise.
19186         * modules/unictype/property-hex-digit: Likewise.
19187         * modules/unictype/property-hyphen: Likewise.
19188         * modules/unictype/property-id-continue: Likewise.
19189         * modules/unictype/property-id-start: Likewise.
19190         * modules/unictype/property-ideographic: Likewise.
19191         * modules/unictype/property-ids-binary-operator: Likewise.
19192         * modules/unictype/property-ids-trinary-operator: Likewise.
19193         * modules/unictype/property-ignorable-control: Likewise.
19194         * modules/unictype/property-iso-control: Likewise.
19195         * modules/unictype/property-join-control: Likewise.
19196         * modules/unictype/property-left-of-pair: Likewise.
19197         * modules/unictype/property-line-separator: Likewise.
19198         * modules/unictype/property-logical-order-exception: Likewise.
19199         * modules/unictype/property-lowercase: Likewise.
19200         * modules/unictype/property-math: Likewise.
19201         * modules/unictype/property-non-break: Likewise.
19202         * modules/unictype/property-not-a-character: Likewise.
19203         * modules/unictype/property-numeric: Likewise.
19204         * modules/unictype/property-other-alphabetic: Likewise.
19205         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
19206         * modules/unictype/property-other-grapheme-extend: Likewise.
19207         * modules/unictype/property-other-id-continue: Likewise.
19208         * modules/unictype/property-other-id-start: Likewise.
19209         * modules/unictype/property-other-lowercase: Likewise.
19210         * modules/unictype/property-other-math: Likewise.
19211         * modules/unictype/property-other-uppercase: Likewise.
19212         * modules/unictype/property-paired-punctuation: Likewise.
19213         * modules/unictype/property-paragraph-separator: Likewise.
19214         * modules/unictype/property-pattern-syntax: Likewise.
19215         * modules/unictype/property-pattern-white-space: Likewise.
19216         * modules/unictype/property-private-use: Likewise.
19217         * modules/unictype/property-punctuation: Likewise.
19218         * modules/unictype/property-quotation-mark: Likewise.
19219         * modules/unictype/property-radical: Likewise.
19220         * modules/unictype/property-sentence-terminal: Likewise.
19221         * modules/unictype/property-soft-dotted: Likewise.
19222         * modules/unictype/property-space: Likewise.
19223         * modules/unictype/property-terminal-punctuation: Likewise.
19224         * modules/unictype/property-test: Likewise.
19225         * modules/unictype/property-titlecase: Likewise.
19226         * modules/unictype/property-unassigned-code-value: Likewise.
19227         * modules/unictype/property-unified-ideograph: Likewise.
19228         * modules/unictype/property-uppercase: Likewise.
19229         * modules/unictype/property-variation-selector: Likewise.
19230         * modules/unictype/property-white-space: Likewise.
19231         * modules/unictype/property-xid-continue: Likewise.
19232         * modules/unictype/property-xid-start: Likewise.
19233         * modules/unictype/property-zero-width: Likewise.
19234         * modules/unictype/scripts: Likewise.
19235         * modules/unictype/syntax-c-ident: Likewise.
19236         * modules/unictype/syntax-c-whitespace: Likewise.
19237         * modules/unictype/syntax-java-ident: Likewise.
19238         * modules/unictype/syntax-java-whitespace: Likewise.
19239         * modules/unilbrk/u8-possible-linebreaks: Likewise.
19240         * modules/unilbrk/u8-width-linebreaks: Likewise.
19241         * modules/unilbrk/u16-possible-linebreaks: Likewise.
19242         * modules/unilbrk/u16-width-linebreaks: Likewise.
19243         * modules/unilbrk/u32-possible-linebreaks: Likewise.
19244         * modules/unilbrk/u32-width-linebreaks: Likewise.
19245         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
19246         * modules/unilbrk/ulc-width-linebreaks: Likewise.
19247         * modules/uniname/uniname: Likewise.
19248         * modules/uninorm/canonical-decomposition: Likewise.
19249         * modules/uninorm/composition: Likewise.
19250         * modules/uninorm/decomposing-form: Likewise.
19251         * modules/uninorm/decomposition: Likewise.
19252         * modules/uninorm/filter: Likewise.
19253         * modules/uninorm/nfc: Likewise.
19254         * modules/uninorm/nfd: Likewise.
19255         * modules/uninorm/nfkc: Likewise.
19256         * modules/uninorm/nfkd: Likewise.
19257         * modules/uninorm/u8-normalize: Likewise.
19258         * modules/uninorm/u8-normcmp: Likewise.
19259         * modules/uninorm/u8-normcoll: Likewise.
19260         * modules/uninorm/u8-normxfrm: Likewise.
19261         * modules/uninorm/u16-normalize: Likewise.
19262         * modules/uninorm/u16-normcmp: Likewise.
19263         * modules/uninorm/u16-normcoll: Likewise.
19264         * modules/uninorm/u16-normxfrm: Likewise.
19265         * modules/uninorm/u32-normalize: Likewise.
19266         * modules/uninorm/u32-normcmp: Likewise.
19267         * modules/uninorm/u32-normcoll: Likewise.
19268         * modules/uninorm/u32-normxfrm: Likewise.
19269         * modules/unistdio/u8-asnprintf: Likewise.
19270         * modules/unistdio/u8-asprintf: Likewise.
19271         * modules/unistdio/u8-snprintf: Likewise.
19272         * modules/unistdio/u8-sprintf: Likewise.
19273         * modules/unistdio/u8-u8-asnprintf: Likewise.
19274         * modules/unistdio/u8-u8-asprintf: Likewise.
19275         * modules/unistdio/u8-u8-snprintf: Likewise.
19276         * modules/unistdio/u8-u8-sprintf: Likewise.
19277         * modules/unistdio/u8-u8-vasnprintf: Likewise.
19278         * modules/unistdio/u8-u8-vasprintf: Likewise.
19279         * modules/unistdio/u8-u8-vsnprintf: Likewise.
19280         * modules/unistdio/u8-u8-vsprintf: Likewise.
19281         * modules/unistdio/u8-vasnprintf: Likewise.
19282         * modules/unistdio/u8-vasprintf: Likewise.
19283         * modules/unistdio/u8-vsnprintf: Likewise.
19284         * modules/unistdio/u8-vsprintf: Likewise.
19285         * modules/unistdio/u16-asnprintf: Likewise.
19286         * modules/unistdio/u16-asprintf: Likewise.
19287         * modules/unistdio/u16-snprintf: Likewise.
19288         * modules/unistdio/u16-sprintf: Likewise.
19289         * modules/unistdio/u16-u16-asnprintf: Likewise.
19290         * modules/unistdio/u16-u16-asprintf: Likewise.
19291         * modules/unistdio/u16-u16-snprintf: Likewise.
19292         * modules/unistdio/u16-u16-sprintf: Likewise.
19293         * modules/unistdio/u16-u16-vasnprintf: Likewise.
19294         * modules/unistdio/u16-u16-vasprintf: Likewise.
19295         * modules/unistdio/u16-u16-vsnprintf: Likewise.
19296         * modules/unistdio/u16-u16-vsprintf: Likewise.
19297         * modules/unistdio/u16-vasnprintf: Likewise.
19298         * modules/unistdio/u16-vasprintf: Likewise.
19299         * modules/unistdio/u16-vsnprintf: Likewise.
19300         * modules/unistdio/u16-vsprintf: Likewise.
19301         * modules/unistdio/u32-asnprintf: Likewise.
19302         * modules/unistdio/u32-asprintf: Likewise.
19303         * modules/unistdio/u32-snprintf: Likewise.
19304         * modules/unistdio/u32-sprintf: Likewise.
19305         * modules/unistdio/u32-u32-asnprintf: Likewise.
19306         * modules/unistdio/u32-u32-asprintf: Likewise.
19307         * modules/unistdio/u32-u32-snprintf: Likewise.
19308         * modules/unistdio/u32-u32-sprintf: Likewise.
19309         * modules/unistdio/u32-u32-vasnprintf: Likewise.
19310         * modules/unistdio/u32-u32-vasprintf: Likewise.
19311         * modules/unistdio/u32-u32-vsnprintf: Likewise.
19312         * modules/unistdio/u32-u32-vsprintf: Likewise.
19313         * modules/unistdio/u32-vasnprintf: Likewise.
19314         * modules/unistdio/u32-vasprintf: Likewise.
19315         * modules/unistdio/u32-vsnprintf: Likewise.
19316         * modules/unistdio/u32-vsprintf: Likewise.
19317         * modules/unistdio/ulc-asnprintf: Likewise.
19318         * modules/unistdio/ulc-asprintf: Likewise.
19319         * modules/unistdio/ulc-fprintf: Likewise.
19320         * modules/unistdio/ulc-snprintf: Likewise.
19321         * modules/unistdio/ulc-sprintf: Likewise.
19322         * modules/unistdio/ulc-vasnprintf: Likewise.
19323         * modules/unistdio/ulc-vasprintf: Likewise.
19324         * modules/unistdio/ulc-vfprintf: Likewise.
19325         * modules/unistdio/ulc-vsnprintf: Likewise.
19326         * modules/unistdio/ulc-vsprintf: Likewise.
19327         * modules/unistr/u8-check: Likewise.
19328         * modules/unistr/u8-chr: Likewise.
19329         * modules/unistr/u8-cmp: Likewise.
19330         * modules/unistr/u8-cmp2: Likewise.
19331         * modules/unistr/u8-cpy: Likewise.
19332         * modules/unistr/u8-cpy-alloc: Likewise.
19333         * modules/unistr/u8-endswith: Likewise.
19334         * modules/unistr/u8-mblen: Likewise.
19335         * modules/unistr/u8-mbsnlen: Likewise.
19336         * modules/unistr/u8-mbtouc: Likewise.
19337         * modules/unistr/u8-mbtouc-unsafe: Likewise.
19338         * modules/unistr/u8-mbtoucr: Likewise.
19339         * modules/unistr/u8-move: Likewise.
19340         * modules/unistr/u8-next: Likewise.
19341         * modules/unistr/u8-prev: Likewise.
19342         * modules/unistr/u8-set: Likewise.
19343         * modules/unistr/u8-startswith: Likewise.
19344         * modules/unistr/u8-stpcpy: Likewise.
19345         * modules/unistr/u8-stpncpy: Likewise.
19346         * modules/unistr/u8-strcat: Likewise.
19347         * modules/unistr/u8-strchr: Likewise.
19348         * modules/unistr/u8-strcmp: Likewise.
19349         * modules/unistr/u8-strcoll: Likewise.
19350         * modules/unistr/u8-strcpy: Likewise.
19351         * modules/unistr/u8-strcspn: Likewise.
19352         * modules/unistr/u8-strdup: Likewise.
19353         * modules/unistr/u8-strlen: Likewise.
19354         * modules/unistr/u8-strmblen: Likewise.
19355         * modules/unistr/u8-strmbtouc: Likewise.
19356         * modules/unistr/u8-strncat: Likewise.
19357         * modules/unistr/u8-strncmp: Likewise.
19358         * modules/unistr/u8-strncpy: Likewise.
19359         * modules/unistr/u8-strnlen: Likewise.
19360         * modules/unistr/u8-strpbrk: Likewise.
19361         * modules/unistr/u8-strrchr: Likewise.
19362         * modules/unistr/u8-strspn: Likewise.
19363         * modules/unistr/u8-strstr: Likewise.
19364         * modules/unistr/u8-strtok: Likewise.
19365         * modules/unistr/u8-to-u16: Likewise.
19366         * modules/unistr/u8-to-u32: Likewise.
19367         * modules/unistr/u8-uctomb: Likewise.
19368         * modules/unistr/u16-check: Likewise.
19369         * modules/unistr/u16-chr: Likewise.
19370         * modules/unistr/u16-cmp: Likewise.
19371         * modules/unistr/u16-cmp2: Likewise.
19372         * modules/unistr/u16-cpy: Likewise.
19373         * modules/unistr/u16-cpy-alloc: Likewise.
19374         * modules/unistr/u16-endswith: Likewise.
19375         * modules/unistr/u16-mblen: Likewise.
19376         * modules/unistr/u16-mbsnlen: Likewise.
19377         * modules/unistr/u16-mbtouc: Likewise.
19378         * modules/unistr/u16-mbtouc-unsafe: Likewise.
19379         * modules/unistr/u16-mbtoucr: Likewise.
19380         * modules/unistr/u16-move: Likewise.
19381         * modules/unistr/u16-next: Likewise.
19382         * modules/unistr/u16-prev: Likewise.
19383         * modules/unistr/u16-set: Likewise.
19384         * modules/unistr/u16-startswith: Likewise.
19385         * modules/unistr/u16-stpcpy: Likewise.
19386         * modules/unistr/u16-stpncpy: Likewise.
19387         * modules/unistr/u16-strcat: Likewise.
19388         * modules/unistr/u16-strchr: Likewise.
19389         * modules/unistr/u16-strcmp: Likewise.
19390         * modules/unistr/u16-strcoll: Likewise.
19391         * modules/unistr/u16-strcpy: Likewise.
19392         * modules/unistr/u16-strcspn: Likewise.
19393         * modules/unistr/u16-strdup: Likewise.
19394         * modules/unistr/u16-strlen: Likewise.
19395         * modules/unistr/u16-strmblen: Likewise.
19396         * modules/unistr/u16-strmbtouc: Likewise.
19397         * modules/unistr/u16-strncat: Likewise.
19398         * modules/unistr/u16-strncmp: Likewise.
19399         * modules/unistr/u16-strncpy: Likewise.
19400         * modules/unistr/u16-strnlen: Likewise.
19401         * modules/unistr/u16-strpbrk: Likewise.
19402         * modules/unistr/u16-strrchr: Likewise.
19403         * modules/unistr/u16-strspn: Likewise.
19404         * modules/unistr/u16-strstr: Likewise.
19405         * modules/unistr/u16-strtok: Likewise.
19406         * modules/unistr/u16-to-u32: Likewise.
19407         * modules/unistr/u16-to-u8: Likewise.
19408         * modules/unistr/u16-uctomb: Likewise.
19409         * modules/unistr/u32-check: Likewise.
19410         * modules/unistr/u32-chr: Likewise.
19411         * modules/unistr/u32-cmp: Likewise.
19412         * modules/unistr/u32-cmp2: Likewise.
19413         * modules/unistr/u32-cpy: Likewise.
19414         * modules/unistr/u32-cpy-alloc: Likewise.
19415         * modules/unistr/u32-endswith: Likewise.
19416         * modules/unistr/u32-mblen: Likewise.
19417         * modules/unistr/u32-mbsnlen: Likewise.
19418         * modules/unistr/u32-mbtouc: Likewise.
19419         * modules/unistr/u32-mbtouc-unsafe: Likewise.
19420         * modules/unistr/u32-mbtoucr: Likewise.
19421         * modules/unistr/u32-move: Likewise.
19422         * modules/unistr/u32-next: Likewise.
19423         * modules/unistr/u32-prev: Likewise.
19424         * modules/unistr/u32-set: Likewise.
19425         * modules/unistr/u32-startswith: Likewise.
19426         * modules/unistr/u32-stpcpy: Likewise.
19427         * modules/unistr/u32-stpncpy: Likewise.
19428         * modules/unistr/u32-strcat: Likewise.
19429         * modules/unistr/u32-strchr: Likewise.
19430         * modules/unistr/u32-strcmp: Likewise.
19431         * modules/unistr/u32-strcoll: Likewise.
19432         * modules/unistr/u32-strcpy: Likewise.
19433         * modules/unistr/u32-strcspn: Likewise.
19434         * modules/unistr/u32-strdup: Likewise.
19435         * modules/unistr/u32-strlen: Likewise.
19436         * modules/unistr/u32-strmblen: Likewise.
19437         * modules/unistr/u32-strmbtouc: Likewise.
19438         * modules/unistr/u32-strncat: Likewise.
19439         * modules/unistr/u32-strncmp: Likewise.
19440         * modules/unistr/u32-strncpy: Likewise.
19441         * modules/unistr/u32-strnlen: Likewise.
19442         * modules/unistr/u32-strpbrk: Likewise.
19443         * modules/unistr/u32-strrchr: Likewise.
19444         * modules/unistr/u32-strspn: Likewise.
19445         * modules/unistr/u32-strstr: Likewise.
19446         * modules/unistr/u32-strtok: Likewise.
19447         * modules/unistr/u32-to-u16: Likewise.
19448         * modules/unistr/u32-to-u8: Likewise.
19449         * modules/unistr/u32-uctomb: Likewise.
19450         * modules/uniwbrk/u8-wordbreaks: Likewise.
19451         * modules/uniwbrk/u16-wordbreaks: Likewise.
19452         * modules/uniwbrk/u32-wordbreaks: Likewise.
19453         * modules/uniwbrk/ulc-wordbreaks: Likewise.
19454         * modules/uniwbrk/wordbreak-property: Likewise.
19455         * modules/uniwidth/u8-strwidth: Likewise.
19456         * modules/uniwidth/u8-width: Likewise.
19457         * modules/uniwidth/u16-strwidth: Likewise.
19458         * modules/uniwidth/u16-width: Likewise.
19459         * modules/uniwidth/u32-strwidth: Likewise.
19460         * modules/uniwidth/u32-width: Likewise.
19461         * modules/uniwidth/width: Likewise.
19462         * modules/unicase/cased-tests (Makefile.am): Link all test programs
19463         with $(LIBUNISTRING).
19464         * modules/unicase/ignorable-tests: Likewise.
19465         * modules/unicase/locale-language-tests: Likewise.
19466         * modules/unicase/tolower-tests: Likewise.
19467         * modules/unicase/totitle-tests: Likewise.
19468         * modules/unicase/toupper-tests: Likewise.
19469         * modules/unicase/u8-casecmp-tests: Likewise.
19470         * modules/unicase/u8-casecoll-tests: Likewise.
19471         * modules/unicase/u8-casefold-tests: Likewise.
19472         * modules/unicase/u8-is-cased-tests: Likewise.
19473         * modules/unicase/u8-is-casefolded-tests: Likewise.
19474         * modules/unicase/u8-is-lowercase-tests: Likewise.
19475         * modules/unicase/u8-is-titlecase-tests: Likewise.
19476         * modules/unicase/u8-is-uppercase-tests: Likewise.
19477         * modules/unicase/u8-tolower-tests: Likewise.
19478         * modules/unicase/u8-totitle-tests: Likewise.
19479         * modules/unicase/u8-toupper-tests: Likewise.
19480         * modules/unicase/u16-casecmp-tests: Likewise.
19481         * modules/unicase/u16-casecoll-tests: Likewise.
19482         * modules/unicase/u16-casefold-tests: Likewise.
19483         * modules/unicase/u16-is-cased-tests: Likewise.
19484         * modules/unicase/u16-is-casefolded-tests: Likewise.
19485         * modules/unicase/u16-is-lowercase-tests: Likewise.
19486         * modules/unicase/u16-is-titlecase-tests: Likewise.
19487         * modules/unicase/u16-is-uppercase-tests: Likewise.
19488         * modules/unicase/u16-tolower-tests: Likewise.
19489         * modules/unicase/u16-totitle-tests: Likewise.
19490         * modules/unicase/u16-toupper-tests: Likewise.
19491         * modules/unicase/u32-casecmp-tests: Likewise.
19492         * modules/unicase/u32-casecoll-tests: Likewise.
19493         * modules/unicase/u32-casefold-tests: Likewise.
19494         * modules/unicase/u32-is-cased-tests: Likewise.
19495         * modules/unicase/u32-is-casefolded-tests: Likewise.
19496         * modules/unicase/u32-is-lowercase-tests: Likewise.
19497         * modules/unicase/u32-is-titlecase-tests: Likewise.
19498         * modules/unicase/u32-is-uppercase-tests: Likewise.
19499         * modules/unicase/u32-tolower-tests: Likewise.
19500         * modules/unicase/u32-totitle-tests: Likewise.
19501         * modules/unicase/u32-toupper-tests: Likewise.
19502         * modules/unicase/ulc-casecmp-tests: Likewise.
19503         * modules/unicase/ulc-casecoll-tests: Likewise.
19504         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
19505         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
19506         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
19507         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
19508         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
19509         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
19510         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
19511         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
19512         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
19513         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
19514         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
19515         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
19516         * modules/unictype/bidicategory-byname-tests: Likewise.
19517         * modules/unictype/bidicategory-name-tests: Likewise.
19518         * modules/unictype/bidicategory-of-tests: Likewise.
19519         * modules/unictype/bidicategory-test-tests: Likewise.
19520         * modules/unictype/block-list-tests: Likewise.
19521         * modules/unictype/block-of-tests: Likewise.
19522         * modules/unictype/block-test-tests: Likewise.
19523         * modules/unictype/category-C-tests: Likewise.
19524         * modules/unictype/category-Cc-tests: Likewise.
19525         * modules/unictype/category-Cf-tests: Likewise.
19526         * modules/unictype/category-Cn-tests: Likewise.
19527         * modules/unictype/category-Co-tests: Likewise.
19528         * modules/unictype/category-Cs-tests: Likewise.
19529         * modules/unictype/category-L-tests: Likewise.
19530         * modules/unictype/category-Ll-tests: Likewise.
19531         * modules/unictype/category-Lm-tests: Likewise.
19532         * modules/unictype/category-Lo-tests: Likewise.
19533         * modules/unictype/category-Lt-tests: Likewise.
19534         * modules/unictype/category-Lu-tests: Likewise.
19535         * modules/unictype/category-M-tests: Likewise.
19536         * modules/unictype/category-Mc-tests: Likewise.
19537         * modules/unictype/category-Me-tests: Likewise.
19538         * modules/unictype/category-Mn-tests: Likewise.
19539         * modules/unictype/category-N-tests: Likewise.
19540         * modules/unictype/category-Nd-tests: Likewise.
19541         * modules/unictype/category-Nl-tests: Likewise.
19542         * modules/unictype/category-No-tests: Likewise.
19543         * modules/unictype/category-P-tests: Likewise.
19544         * modules/unictype/category-Pc-tests: Likewise.
19545         * modules/unictype/category-Pd-tests: Likewise.
19546         * modules/unictype/category-Pe-tests: Likewise.
19547         * modules/unictype/category-Pf-tests: Likewise.
19548         * modules/unictype/category-Pi-tests: Likewise.
19549         * modules/unictype/category-Po-tests: Likewise.
19550         * modules/unictype/category-Ps-tests: Likewise.
19551         * modules/unictype/category-S-tests: Likewise.
19552         * modules/unictype/category-Sc-tests: Likewise.
19553         * modules/unictype/category-Sk-tests: Likewise.
19554         * modules/unictype/category-Sm-tests: Likewise.
19555         * modules/unictype/category-So-tests: Likewise.
19556         * modules/unictype/category-Z-tests: Likewise.
19557         * modules/unictype/category-Zl-tests: Likewise.
19558         * modules/unictype/category-Zp-tests: Likewise.
19559         * modules/unictype/category-Zs-tests: Likewise.
19560         * modules/unictype/category-and-not-tests: Likewise.
19561         * modules/unictype/category-and-tests: Likewise.
19562         * modules/unictype/category-byname-tests: Likewise.
19563         * modules/unictype/category-name-tests: Likewise.
19564         * modules/unictype/category-none-tests: Likewise.
19565         * modules/unictype/category-of-tests: Likewise.
19566         * modules/unictype/category-or-tests: Likewise.
19567         * modules/unictype/category-test-withtable-tests: Likewise.
19568         * modules/unictype/combining-class-tests: Likewise.
19569         * modules/unictype/ctype-alnum-tests: Likewise.
19570         * modules/unictype/ctype-alpha-tests: Likewise.
19571         * modules/unictype/ctype-blank-tests: Likewise.
19572         * modules/unictype/ctype-cntrl-tests: Likewise.
19573         * modules/unictype/ctype-digit-tests: Likewise.
19574         * modules/unictype/ctype-graph-tests: Likewise.
19575         * modules/unictype/ctype-lower-tests: Likewise.
19576         * modules/unictype/ctype-print-tests: Likewise.
19577         * modules/unictype/ctype-punct-tests: Likewise.
19578         * modules/unictype/ctype-space-tests: Likewise.
19579         * modules/unictype/ctype-upper-tests: Likewise.
19580         * modules/unictype/ctype-xdigit-tests: Likewise.
19581         * modules/unictype/decimal-digit-tests: Likewise.
19582         * modules/unictype/digit-tests: Likewise.
19583         * modules/unictype/mirror-tests: Likewise.
19584         * modules/unictype/numeric-tests: Likewise.
19585         * modules/unictype/property-alphabetic-tests: Likewise.
19586         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
19587         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
19588         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
19589         * modules/unictype/property-bidi-block-separator-tests: Likewise.
19590         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
19591         * modules/unictype/property-bidi-common-separator-tests: Likewise.
19592         * modules/unictype/property-bidi-control-tests: Likewise.
19593         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
19594         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
19595         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
19596         * modules/unictype/property-bidi-european-digit-tests: Likewise.
19597         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
19598         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
19599         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
19600         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
19601         * modules/unictype/property-bidi-pdf-tests: Likewise.
19602         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
19603         * modules/unictype/property-bidi-whitespace-tests: Likewise.
19604         * modules/unictype/property-byname-tests: Likewise.
19605         * modules/unictype/property-combining-tests: Likewise.
19606         * modules/unictype/property-composite-tests: Likewise.
19607         * modules/unictype/property-currency-symbol-tests: Likewise.
19608         * modules/unictype/property-dash-tests: Likewise.
19609         * modules/unictype/property-decimal-digit-tests: Likewise.
19610         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
19611         * modules/unictype/property-deprecated-tests: Likewise.
19612         * modules/unictype/property-diacritic-tests: Likewise.
19613         * modules/unictype/property-extender-tests: Likewise.
19614         * modules/unictype/property-format-control-tests: Likewise.
19615         * modules/unictype/property-grapheme-base-tests: Likewise.
19616         * modules/unictype/property-grapheme-extend-tests: Likewise.
19617         * modules/unictype/property-grapheme-link-tests: Likewise.
19618         * modules/unictype/property-hex-digit-tests: Likewise.
19619         * modules/unictype/property-hyphen-tests: Likewise.
19620         * modules/unictype/property-id-continue-tests: Likewise.
19621         * modules/unictype/property-id-start-tests: Likewise.
19622         * modules/unictype/property-ideographic-tests: Likewise.
19623         * modules/unictype/property-ids-binary-operator-tests: Likewise.
19624         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
19625         * modules/unictype/property-ignorable-control-tests: Likewise.
19626         * modules/unictype/property-iso-control-tests: Likewise.
19627         * modules/unictype/property-join-control-tests: Likewise.
19628         * modules/unictype/property-left-of-pair-tests: Likewise.
19629         * modules/unictype/property-line-separator-tests: Likewise.
19630         * modules/unictype/property-logical-order-exception-tests: Likewise.
19631         * modules/unictype/property-lowercase-tests: Likewise.
19632         * modules/unictype/property-math-tests: Likewise.
19633         * modules/unictype/property-non-break-tests: Likewise.
19634         * modules/unictype/property-not-a-character-tests: Likewise.
19635         * modules/unictype/property-numeric-tests: Likewise.
19636         * modules/unictype/property-other-alphabetic-tests: Likewise.
19637         * modules/unictype/property-other-default-ignorable-code-point-tests:
19638         Likewise.
19639         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
19640         * modules/unictype/property-other-id-continue-tests: Likewise.
19641         * modules/unictype/property-other-id-start-tests: Likewise.
19642         * modules/unictype/property-other-lowercase-tests: Likewise.
19643         * modules/unictype/property-other-math-tests: Likewise.
19644         * modules/unictype/property-other-uppercase-tests: Likewise.
19645         * modules/unictype/property-paired-punctuation-tests: Likewise.
19646         * modules/unictype/property-paragraph-separator-tests: Likewise.
19647         * modules/unictype/property-pattern-syntax-tests: Likewise.
19648         * modules/unictype/property-pattern-white-space-tests: Likewise.
19649         * modules/unictype/property-private-use-tests: Likewise.
19650         * modules/unictype/property-punctuation-tests: Likewise.
19651         * modules/unictype/property-quotation-mark-tests: Likewise.
19652         * modules/unictype/property-radical-tests: Likewise.
19653         * modules/unictype/property-sentence-terminal-tests: Likewise.
19654         * modules/unictype/property-soft-dotted-tests: Likewise.
19655         * modules/unictype/property-space-tests: Likewise.
19656         * modules/unictype/property-terminal-punctuation-tests: Likewise.
19657         * modules/unictype/property-test-tests: Likewise.
19658         * modules/unictype/property-titlecase-tests: Likewise.
19659         * modules/unictype/property-unassigned-code-value-tests: Likewise.
19660         * modules/unictype/property-unified-ideograph-tests: Likewise.
19661         * modules/unictype/property-uppercase-tests: Likewise.
19662         * modules/unictype/property-variation-selector-tests: Likewise.
19663         * modules/unictype/property-white-space-tests: Likewise.
19664         * modules/unictype/property-xid-continue-tests: Likewise.
19665         * modules/unictype/property-xid-start-tests: Likewise.
19666         * modules/unictype/property-zero-width-tests: Likewise.
19667         * modules/unictype/scripts-tests: Likewise.
19668         * modules/unictype/syntax-c-ident-tests: Likewise.
19669         * modules/unictype/syntax-c-whitespace-tests: Likewise.
19670         * modules/unictype/syntax-java-ident-tests: Likewise.
19671         * modules/unictype/syntax-java-whitespace-tests: Likewise.
19672         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
19673         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
19674         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
19675         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
19676         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
19677         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
19678         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
19679         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
19680         * modules/uniname/uniname-tests: Likewise.
19681         * modules/uninorm/canonical-decomposition-tests: Likewise.
19682         * modules/uninorm/compat-decomposition-tests: Likewise.
19683         * modules/uninorm/composition-tests: Likewise.
19684         * modules/uninorm/decomposing-form-tests: Likewise.
19685         * modules/uninorm/decomposition-tests: Likewise.
19686         * modules/uninorm/filter-tests: Likewise.
19687         * modules/uninorm/nfc-tests: Likewise.
19688         * modules/uninorm/nfd-tests: Likewise.
19689         * modules/uninorm/nfkc-tests: Likewise.
19690         * modules/uninorm/nfkd-tests: Likewise.
19691         * modules/uninorm/u8-normcmp-tests: Likewise.
19692         * modules/uninorm/u8-normcoll-tests: Likewise.
19693         * modules/uninorm/u16-normcmp-tests: Likewise.
19694         * modules/uninorm/u16-normcoll-tests: Likewise.
19695         * modules/uninorm/u32-normcmp-tests: Likewise.
19696         * modules/uninorm/u32-normcoll-tests: Likewise.
19697         * modules/unistdio/u8-asnprintf-tests: Likewise.
19698         * modules/unistdio/u8-vasnprintf-tests: Likewise.
19699         * modules/unistdio/u8-vasprintf-tests: Likewise.
19700         * modules/unistdio/u8-vsnprintf-tests: Likewise.
19701         * modules/unistdio/u8-vsprintf-tests: Likewise.
19702         * modules/unistdio/u16-asnprintf-tests: Likewise.
19703         * modules/unistdio/u16-vasnprintf-tests: Likewise.
19704         * modules/unistdio/u16-vasprintf-tests: Likewise.
19705         * modules/unistdio/u16-vsnprintf-tests: Likewise.
19706         * modules/unistdio/u16-vsprintf-tests: Likewise.
19707         * modules/unistdio/u32-asnprintf-tests: Likewise.
19708         * modules/unistdio/u32-vasnprintf-tests: Likewise.
19709         * modules/unistdio/u32-vasprintf-tests: Likewise.
19710         * modules/unistdio/u32-vsnprintf-tests: Likewise.
19711         * modules/unistdio/u32-vsprintf-tests: Likewise.
19712         * modules/unistdio/ulc-asnprintf-tests: Likewise.
19713         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
19714         * modules/unistdio/ulc-vasprintf-tests: Likewise.
19715         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
19716         * modules/unistdio/ulc-vsprintf-tests: Likewise.
19717         * modules/unistr/u8-check-tests: Likewise.
19718         * modules/unistr/u8-chr-tests: Likewise.
19719         * modules/unistr/u8-cmp-tests: Likewise.
19720         * modules/unistr/u8-cmp2-tests: Likewise.
19721         * modules/unistr/u8-cpy-alloc-tests: Likewise.
19722         * modules/unistr/u8-cpy-tests: Likewise.
19723         * modules/unistr/u8-mblen-tests: Likewise.
19724         * modules/unistr/u8-mbsnlen-tests: Likewise.
19725         * modules/unistr/u8-mbtouc-tests: Likewise.
19726         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
19727         * modules/unistr/u8-mbtoucr-tests: Likewise.
19728         * modules/unistr/u8-move-tests: Likewise.
19729         * modules/unistr/u8-next-tests: Likewise.
19730         * modules/unistr/u8-prev-tests: Likewise.
19731         * modules/unistr/u8-set-tests: Likewise.
19732         * modules/unistr/u8-stpcpy-tests: Likewise.
19733         * modules/unistr/u8-stpncpy-tests: Likewise.
19734         * modules/unistr/u8-strcat-tests: Likewise.
19735         * modules/unistr/u8-strcmp-tests: Likewise.
19736         * modules/unistr/u8-strcoll-tests: Likewise.
19737         * modules/unistr/u8-strcpy-tests: Likewise.
19738         * modules/unistr/u8-strdup-tests: Likewise.
19739         * modules/unistr/u8-strlen-tests: Likewise.
19740         * modules/unistr/u8-strmblen-tests: Likewise.
19741         * modules/unistr/u8-strmbtouc-tests: Likewise.
19742         * modules/unistr/u8-strncat-tests: Likewise.
19743         * modules/unistr/u8-strncmp-tests: Likewise.
19744         * modules/unistr/u8-strncpy-tests: Likewise.
19745         * modules/unistr/u8-strnlen-tests: Likewise.
19746         * modules/unistr/u8-to-u16-tests: Likewise.
19747         * modules/unistr/u8-to-u32-tests: Likewise.
19748         * modules/unistr/u8-uctomb-tests: Likewise.
19749         * modules/unistr/u16-check-tests: Likewise.
19750         * modules/unistr/u16-chr-tests: Likewise.
19751         * modules/unistr/u16-cmp-tests: Likewise.
19752         * modules/unistr/u16-cmp2-tests: Likewise.
19753         * modules/unistr/u16-cpy-alloc-tests: Likewise.
19754         * modules/unistr/u16-cpy-tests: Likewise.
19755         * modules/unistr/u16-mblen-tests: Likewise.
19756         * modules/unistr/u16-mbsnlen-tests: Likewise.
19757         * modules/unistr/u16-mbtouc-tests: Likewise.
19758         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
19759         * modules/unistr/u16-mbtoucr-tests: Likewise.
19760         * modules/unistr/u16-move-tests: Likewise.
19761         * modules/unistr/u16-next-tests: Likewise.
19762         * modules/unistr/u16-prev-tests: Likewise.
19763         * modules/unistr/u16-set-tests: Likewise.
19764         * modules/unistr/u16-stpcpy-tests: Likewise.
19765         * modules/unistr/u16-stpncpy-tests: Likewise.
19766         * modules/unistr/u16-strcat-tests: Likewise.
19767         * modules/unistr/u16-strcmp-tests: Likewise.
19768         * modules/unistr/u16-strcoll-tests: Likewise.
19769         * modules/unistr/u16-strcpy-tests: Likewise.
19770         * modules/unistr/u16-strdup-tests: Likewise.
19771         * modules/unistr/u16-strlen-tests: Likewise.
19772         * modules/unistr/u16-strmblen-tests: Likewise.
19773         * modules/unistr/u16-strmbtouc-tests: Likewise.
19774         * modules/unistr/u16-strncat-tests: Likewise.
19775         * modules/unistr/u16-strncmp-tests: Likewise.
19776         * modules/unistr/u16-strncpy-tests: Likewise.
19777         * modules/unistr/u16-strnlen-tests: Likewise.
19778         * modules/unistr/u16-to-u32-tests: Likewise.
19779         * modules/unistr/u16-to-u8-tests: Likewise.
19780         * modules/unistr/u16-uctomb-tests: Likewise.
19781         * modules/unistr/u32-check-tests: Likewise.
19782         * modules/unistr/u32-chr-tests: Likewise.
19783         * modules/unistr/u32-cmp-tests: Likewise.
19784         * modules/unistr/u32-cmp2-tests: Likewise.
19785         * modules/unistr/u32-cpy-alloc-tests: Likewise.
19786         * modules/unistr/u32-cpy-tests: Likewise.
19787         * modules/unistr/u32-mblen-tests: Likewise.
19788         * modules/unistr/u32-mbsnlen-tests: Likewise.
19789         * modules/unistr/u32-mbtouc-tests: Likewise.
19790         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
19791         * modules/unistr/u32-mbtoucr-tests: Likewise.
19792         * modules/unistr/u32-move-tests: Likewise.
19793         * modules/unistr/u32-next-tests: Likewise.
19794         * modules/unistr/u32-prev-tests: Likewise.
19795         * modules/unistr/u32-set-tests: Likewise.
19796         * modules/unistr/u32-stpcpy-tests: Likewise.
19797         * modules/unistr/u32-stpncpy-tests: Likewise.
19798         * modules/unistr/u32-strcat-tests: Likewise.
19799         * modules/unistr/u32-strcmp-tests: Likewise.
19800         * modules/unistr/u32-strcoll-tests: Likewise.
19801         * modules/unistr/u32-strcpy-tests: Likewise.
19802         * modules/unistr/u32-strdup-tests: Likewise.
19803         * modules/unistr/u32-strlen-tests: Likewise.
19804         * modules/unistr/u32-strmblen-tests: Likewise.
19805         * modules/unistr/u32-strmbtouc-tests: Likewise.
19806         * modules/unistr/u32-strncat-tests: Likewise.
19807         * modules/unistr/u32-strncmp-tests: Likewise.
19808         * modules/unistr/u32-strncpy-tests: Likewise.
19809         * modules/unistr/u32-strnlen-tests: Likewise.
19810         * modules/unistr/u32-to-u16-tests: Likewise.
19811         * modules/unistr/u32-to-u8-tests: Likewise.
19812         * modules/unistr/u32-uctomb-tests: Likewise.
19813         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
19814         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
19815         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
19816         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
19817         * modules/uniwidth/u8-strwidth-tests: Likewise.
19818         * modules/uniwidth/u8-width-tests: Likewise.
19819         * modules/uniwidth/u16-strwidth-tests: Likewise.
19820         * modules/uniwidth/u16-width-tests: Likewise.
19821         * modules/uniwidth/u32-strwidth-tests: Likewise.
19822         * modules/uniwidth/u32-width-tests: Likewise.
19823         * modules/uniwidth/width-tests: Likewise.
19824
19825 2010-05-18  Richard Jones  <rjones@redhat.com>
19826
19827         doc: users.txt: list hivex
19828         * users.txt: Add hivex.
19829
19830 2010-05-18  Richard Jones  <rjones@redhat.com>
19831
19832         doc: users.txt: list febootstrap
19833         * users.txt: Add febootstrap.
19834
19835 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
19836
19837         bootstrap: fix an error when gnulib is not used as a git submodule
19838         * build-aux/bootstrap (gnulib_path): If its length is zero then
19839         assign "gnulib" to it.
19840         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
19841
19842 2010-05-16  Bruno Haible  <bruno@clisp.org>
19843
19844         Avoid autoconf warnings about AM_ICONV.
19845         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
19846         2.64.
19847
19848 2010-05-16  Bruno Haible  <bruno@clisp.org>
19849
19850         absolute-header: Make the macro usable in more situations.
19851         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
19852         from gl_ABSOLUTE_HEADER.
19853         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
19854
19855 2010-05-16  James Youngman  <jay@gnu.org>
19856
19857         doc: update users.txt
19858         * users.txt: Add CSSC.
19859
19860 2010-05-16  Jim Meyering  <meyering@redhat.com>
19861
19862         init.sh: fix an error in the previous change; add more comments
19863         * tests/init.sh: Compare exit code in loop against 9, not 2.
19864         Patch by Bruno Haible.
19865         Make the two tests more similar by adding an empty "then" clause.
19866         Add comments.
19867
19868         init.sh: avoid unnecessary shell re-exec
19869         * tests/init.sh: Improve the re-exec-required check to first test the
19870         current shell.  If it passes the test, do not search for a shell that
19871         does pass, and do not re-exec.  This test is particularly contorted to
19872         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
19873         of $(...) evokes a syntax error and causes immediate shell exit with
19874         status 2.  Bruno Haible reported that the re-exec made it impossible
19875         to single-step through any init.sh-using script.
19876
19877 2010-05-16  Bruno Haible  <bruno@clisp.org>
19878
19879         Fix collision between gnulib's and libintl's printf replacements.
19880         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
19881         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
19882         (printf): When using GNU C, map the __printf__ function to rpl_printf
19883         via __asm__. When not using GNU C, define rpl_printf instead of
19884         __printf__.
19885         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
19886         commit.
19887         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
19888         commit.
19889         * m4/asm-underscore.m4: New file.
19890         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
19891         * modules/stdio (Files): Add m4/asm-underscore.m4.
19892         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
19893         Reported by Ben Pfaff.
19894
19895 2010-05-16  Bruno Haible  <bruno@clisp.org>
19896
19897         verify: Avoid skipping the test on openSUSE 11.0.
19898         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
19899
19900 2010-05-13  Bruno Haible  <bruno@clisp.org>
19901
19902         Avoid useless warnings from G++.
19903         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
19904         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
19905         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19906
19907 2010-05-11  Jim Meyering  <meyering@redhat.com>
19908
19909         maint.mk: tweak preceding change
19910         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
19911         regexps tighter by anchoring at EOL, and make the new group "shy"
19912         for slightly decreased overhead.
19913
19914 2010-05-11  Eric Blake  <eblake@redhat.com>
19915
19916         maint.mk: gnulib doesn't guarantee NSIG
19917         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
19918
19919 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
19920
19921         test-pwrite.c: Remove unused variable declaration.
19922         * tests/test-pwrite.c (main): Remove read_buf declaration.
19923
19924         Remove useless test-pwrite.sh file.
19925         * tests/test-pwrite.sh: Delete file.
19926         * modules/pwrite-tests: Remove references.
19927         Reported by Bruno Haible.
19928
19929 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
19930
19931         init.sh: fix a typo
19932         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
19933
19934 2010-05-10  Jim Meyering  <meyering@redhat.com>
19935
19936         maint.mk: avoid using a temporary file in the always-defined-macros check
19937         * top/maint.mk (.re-defmac): Remove rule.
19938         (gl_trap_): Remove definition.
19939         (sc_prohibit_always-defined_macros): Rewrite not to create and
19940         depend on a temporary file.  Instead, depend on GNU grep's ability
19941         to read a list of regular expressions from stdin when given "-f -".
19942
19943 2010-05-09  Bruno Haible  <bruno@clisp.org>
19944
19945         Update to GNU gettext 0.18, part 1.
19946         * m4/gettext.m4: Update to GNU gettext 0.18.
19947         * m4/intl.m4: Likewise.
19948         * m4/po.m4: Likewise.
19949         * modules/gettext (Files): Add m4/fcntl-o.m4.
19950         (configure.ac): Require gettext infrastructure from version 0.18.
19951
19952 2010-05-09  Jim Meyering  <meyering@redhat.com>
19953
19954         init.sh: enable MALLOC_PERTURB_
19955         * tests/init.sh: Enable glibc's malloc-perturbing option.
19956
19957         maint.mk: improve sc_cross_check_PATH_usage_in_tests
19958         With my recent change in init.sh from the two-line form:
19959             -#   : ${srcdir=.}
19960             -#   . "$srcdir/init.sh"; path_prepend_ .
19961             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
19962         I noticed that using the one-line form would cause this test
19963         to fail with a false-positive, or to stop working altogether,
19964         depending on whether help-version changed or all the tests did.
19965         * top/maint.mk (_hv_regex): Remove this definition.
19966         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
19967         (_hv_regex_strong): Use a stronger regex to check for conformance.
19968         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
19969         Give a separate diagnostic for lack of conforming use.
19970
19971         maint.mk: prohibit definition of symbols defined by gnulib
19972         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
19973         definition of symbols defined by gnulib.
19974
19975 2010-05-09  Bruno Haible  <bruno@clisp.org>
19976
19977         acl: Avoid test failure on Cygwin-hosted mingw.
19978         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
19979
19980 2010-05-09  Bruno Haible  <bruno@clisp.org>
19981
19982         error: Use system's fcntl function.
19983         * lib/error.c (fcntl): Undefine.
19984
19985 2010-05-09  Jim Meyering  <meyering@redhat.com>
19986
19987         verify: adjust formatting to be more consistent
19988         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
19989         argument-list '('s, and after one comma.
19990
19991 2010-05-09  Bruno Haible  <bruno@clisp.org>
19992
19993         error: More reliable output on mingw.
19994         * lib/error.c: Include <windows.h>.
19995         (is_open): New function.
19996         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
19997         defined.
19998
19999 2010-05-09  Bruno Haible  <bruno@clisp.org>
20000
20001         vasnprintf: Fix syntax errors in libintl build on mingw.
20002         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
20003         pad_ourselves and prec_ourselves after use.
20004
20005 2010-05-08  Bruno Haible  <bruno@clisp.org>
20006
20007         * lib/config.charset: Update comments for Cygwin 1.7.
20008         * lib/localcharset.c: Likewise.
20009
20010 2010-05-07  Jim Meyering  <meyering@redhat.com>
20011
20012         init.sh: improve comments
20013         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
20014         . "${srcdir=.}/init.sh"; path_prepend_ .
20015         Add a note about path_prepend_ and the alternative of using
20016         TESTS_ENVIRONMENT.
20017
20018 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
20019
20020         exclude: Unescape hashed patterns in wildcard mode.
20021         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
20022         to the hash list.
20023         * tests/test-exclude8.sh: New test case.
20024         * modules/exclude-tests: Add new test.
20025
20026 2010-05-05  Eric Blake  <eblake@redhat.com>
20027
20028         verify: automate tests
20029         * modules/verify-tests: New module.
20030         * tests/test-verify.sh: New file.
20031         * tests/test-verify.c: Guard each negative test with a unique id.
20032         Also avoid warning about unused left hand of comma expressions.
20033
20034 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20035
20036         Further improvements to verify.h, suggested by Eric Blake.
20037         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
20038         the GL_* versions, to avoid collision with OpenGL.
20039         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
20040         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
20041         than testing merely whether it's defined.
20042
20043         Modify verify.h to pacify gcc -Wredundant_decls.
20044         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
20045         These use the prefix "GL_" since they're likely to be useful elsewhere.
20046         We may need to break them out into a different .h file.
20047         (__COUNTER__): Define to 0 if the compiler doesn't support it.
20048         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
20049         of verify_function__.
20050
20051 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
20052
20053         Tests for module pwrite.
20054         * modules/pwrite-tests: New file.
20055         * tests/test-pwrite.sh: New file.
20056         * tests/test-pwrite.c: New file.
20057
20058         New module pwrite.
20059         * lib/unistd.in.h (pwrite): New declaration.
20060         * lib/pwrite.c: New file, from glibc with modifications.
20061         * m4/pwrite.m4: New file.
20062         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
20063         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
20064         REPLACE_PWRITE.
20065         * modules/pwrite: New file.
20066         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
20067         REPLACE_PWRITE.
20068         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
20069         * doc/posix-functions/pwrite.texi: Mention the new module.
20070
20071 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
20072
20073         pread: Update documentation.
20074         * doc/posix-functions/pread.texi: Mention the 'pread' module.
20075
20076 2010-05-04  Eric Blake  <eblake@redhat.com>
20077
20078         docs: update cygwin progress
20079         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
20080         this bug.
20081         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
20082         Added in cygwin 1.7.2.
20083         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
20084         Likewise.
20085         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
20086         Likewise.
20087         * doc/glibc-functions/dup3.texi (dup3): Likewise.
20088         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
20089         * doc/glibc-functions/accept4.texi (accept4): Likewise.
20090         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
20091         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
20092         Mention nproc module.
20093         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
20094         bug in cygwin 1.7.5 addition.
20095         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
20096         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
20097         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
20098         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
20099         1.7.5.
20100         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
20101         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
20102         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
20103         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
20104         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
20105         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
20106         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
20107         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
20108         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
20109         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
20110         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
20111         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
20112         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
20113         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
20114         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
20115         Likewise.
20116         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
20117         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
20118         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
20119         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
20120         Likewise.
20121         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
20122         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
20123         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
20124         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
20125         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
20126         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
20127         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
20128         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
20129         Likewise.
20130         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
20131         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
20132         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
20133         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
20134         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
20135         Likewise.
20136         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
20137         Likewise.
20138         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
20139         Likewise.
20140         * doc/glibc-functions/xdrrec_endofrecord.texi
20141         (xdrrec_endofrecord): Likewise.
20142         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
20143         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
20144         Likewise.
20145         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
20146         Likewise.
20147
20148 2010-05-04  Jim Meyering  <meyering@redhat.com>
20149
20150         gendocs.sh: make its "-s FILE" option more useful
20151         * build-aux/gendocs.sh: When honoring the -s FILE option, update
20152         $PACKAGE to reflect the probably-different basename of "FILE".
20153
20154 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
20155
20156         bootstrap: don't ignore download_po_files failure
20157         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
20158         failure.
20159
20160 2010-05-03  Jim Meyering  <meyering@redhat.com>
20161
20162         maint.mk: allow to pass options to gendocs.sh
20163         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
20164         (gendocs_options_): New overridable variable.
20165
20166         gnu-web-doc-update: don't ignore configure or build failure
20167         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
20168
20169         announce-gen: backslash-escape '@'s in --help output
20170         * build-aux/announce-gen: Fix syntax errors.
20171
20172         maint.mk, announce-gen: allow project-specific announcement mail headers
20173         * top/maint.mk (translation_project_): Define default.
20174         (announcement_Cc_, announcement_mail_headers_): Likewise.
20175         (announcement): Invoke announce-gen with new --mail-headers option.
20176         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
20177
20178         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
20179         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
20180         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
20181         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
20182         line in the "err2" output file when running "make check" in verbose
20183         mode (i.e., with set -x enabled).
20184
20185 2010-05-03  Bruno Haible  <bruno@clisp.org>
20186
20187         wctob: Fix for weird platforms.
20188         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
20189         argument value.
20190
20191 2010-05-03  Jim Meyering  <meyering@redhat.com>
20192
20193         maint.mk: prohibit unwarranted use of <strings.h>
20194         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
20195         strings.h in a file that does not also use strcasecmp, strncasecmp,
20196         ffs or ffsll.
20197
20198         maint.mk: remove obsolete comments
20199         * top/maint.mk: Remove stale, commented-out rules.
20200
20201 2010-05-02  Bruno Haible  <bruno@clisp.org>
20202
20203         wcwidth: Declare also when it's aliased.
20204         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
20205         macro.
20206
20207 2010-05-02  Bruno Haible  <bruno@clisp.org>
20208
20209         Fix regression from 2010-04-25.
20210         * gnulib-tool (func_modules_transitive_closure): Check the status of
20211         all modules, not only of the tests that are of the form foo-tests where
20212         foo is a module.
20213
20214 2010-05-02  Bruno Haible  <bruno@clisp.org>
20215
20216         wctob: Work around nasty Cygwin 1.7.2 bug.
20217         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
20218         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
20219
20220 2010-05-01  Bruno Haible  <bruno@clisp.org>
20221
20222         fpurge: Sharper test.
20223         * tests/test-fpurge.c (main): Add one more ftell check.
20224         * modules/fpurge-tests (Depends-on): Add ftell.
20225         Suggested by Eric Blake.
20226
20227 2010-05-01  Bruno Haible  <bruno@clisp.org>
20228
20229         ftello: Another test.
20230         * tests/test-ftello3.c: New file.
20231         * modules/ftello-tests (Files): Add it.
20232         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
20233         MOSTLYCLEANFILES.
20234
20235         ftell: Another test.
20236         * tests/test-ftell3.c: New file.
20237         * modules/ftell-tests (Files): Add it.
20238         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
20239         MOSTLYCLEANFILES.
20240
20241 2010-05-01  Bruno Haible  <bruno@clisp.org>
20242
20243         ftell, ftello: Work around Solaris bug.
20244         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
20245         * lib/ftello.c: Include stdio-impl.h.
20246         (ftello): On Solaris, when _IOWRT is set, compute the result without
20247         looking at _IOREAD.
20248         * modules/ftello (Files): Add lib/stdio-impl.h.
20249         * doc/posix-functions/ftell.texi: Mention Solaris bug.
20250         * doc/posix-functions/ftello.texi: Likewise.
20251         Reported by Eric Blake.
20252
20253 2010-05-01  Bruno Haible  <bruno@clisp.org>
20254
20255         freading: Adapt to special meaning of _IOREAD flag on Solaris.
20256         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
20257         the _IOWRT flag is also set.
20258
20259 2010-05-01  Bruno Haible  <bruno@clisp.org>
20260
20261         Fix doc about a HP-UX stdio bug.
20262         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
20263         * doc/posix-functions/ftello.texi: Likewise.
20264
20265 2010-05-01  Bruno Haible  <bruno@clisp.org>
20266
20267         lseek test: Fix failure on Solaris.
20268         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
20269         output.
20270
20271 2010-04-30  Jim Meyering  <meyering@redhat.com>
20272
20273         bootstrap: don't ignore failure to generate po*/Makevars
20274         * build-aux/bootstrap (with_gettext): Don't ignore failure
20275         to create po/Makevars or runtime-po/Makevars.
20276
20277 2010-04-29  Eric Blake  <eblake@redhat.com>
20278
20279         headers: relax license to LGPLv2+
20280         * modules/fcntl-h (License): Relax license.
20281         * modules/getopt-posix (License): Likewise.
20282         * modules/locale (License): Likewise.
20283         * modules/math (License): Likewise.
20284         * modules/pty (License): Likewise.
20285         * modules/sched (License): Likewise.
20286         * modules/search (License): Likewise.
20287         * modules/spawn (License): Likewise.
20288         * modules/stdarg (License): Likewise.
20289         * modules/sysexits (License): Likewise.
20290
20291 2010-04-29  Jim Meyering  <meyering@redhat.com>
20292
20293         inttypes: relax license to LGPLv2+
20294         * modules/inttypes (License): Relax license.
20295
20296 2010-04-29  Simon Josefsson  <simon@josefsson.org>
20297
20298         * top/maint.mk (indent): Run twice to produce idempotent results.
20299
20300 2010-04-28  Bruno Haible  <bruno@clisp.org>
20301
20302         getdate: Generate getdate.c in the source directory.
20303         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
20304         MOSTLYCLEANFILES.
20305         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
20306
20307 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
20308
20309         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
20310         is not declared as a const *; avoid warnings in that case.
20311
20312 2010-04-28  Eric Blake  <eblake@redhat.com>
20313
20314         canonicalize-lgpl: avoid compiler warning
20315         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
20316         declaration' / 'extraneous semicolon' warning with some compilers.
20317         Reported by Andreas Gruenbacher.
20318
20319 2010-04-28  Jim Meyering  <meyering@redhat.com>
20320
20321         init.sh: ensure a more reliable exit status when exiting via trap
20322         * tests/init.sh (setup_): Don't rely on $? in signal handler.
20323         Inspired by patches from Dmitry V. Levin.
20324         Also trap on signal 3 (SIGQUIT).
20325
20326 2010-04-27  Bruno Haible  <bruno@clisp.org>
20327
20328         Update doc about utimes().
20329         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
20330         'utimens' module.
20331         Reported by Andreas Gruenbacher <agruen@suse.de>.
20332
20333 2010-04-27  Eric Blake  <eblake@redhat.com>
20334
20335         full-read, full-write: relax license
20336         * modules/full-read (License): Drop to LGPLv2+.
20337         * modules/full-write (License): Likewise.
20338         * modules/safe-read (License): Likewise.
20339         * modules/safe-write (License): Likewise.
20340
20341         pthread: mention library for linking
20342         * modules/pthread (Link): Mention $(LIB_PTHREAD).
20343
20344 2010-04-27  Jim Meyering  <meyering@redhat.com>
20345
20346         maint.mk: fix a bug introduced in last change
20347         * top/maint.mk (gl_assured_headers_): Now that all names are on
20348         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
20349         is not anchored to end of word, it should be adequate.
20350
20351         maint.mk: avoid side-effect in latest syntax-check
20352         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
20353         to run commands via $(shell...), and hence to incur cost only when
20354         the new rule is actually run.
20355
20356         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
20357         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
20358         and use that to create a regexp used to detect all #if HAVE_..._H uses.
20359         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
20360         (gl_assured_headers_, az_, AZ_): Define.
20361         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
20362
20363 2010-04-26  Jim Meyering  <jim@meyering.net>
20364             Bruno Haible  <bruno@clisp.org>
20365
20366         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
20367         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
20368         Prompted by an exchange with Gilles Espinasse.
20369
20370 2010-04-26  Jim Meyering  <meyering@redhat.com>
20371
20372         git-version-gen: aesthetic tweak
20373         * build-aux/git-version-gen: Use "$nl" rather than a literal,
20374         so that the command remains on a single line.
20375
20376 2010-04-26  Eric Blake  <eblake@redhat.com>
20377
20378         git-version-gen: allow use on EBCDIC hosts
20379         * build-aux/git-version-gen (dirty): Use literal rather than tying
20380         ourselves to ascii.
20381         Reported by Steve Goetze.
20382
20383 2010-04-25  Bruno Haible  <bruno@clisp.org>
20384
20385         netdb: Add support for GNULIB_POSIXCHECK.
20386         * lib/netdb.in.h: Include warn-on-use.h.
20387         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
20388         functions are used when GNULIB_POSIXCHECK is defined and the
20389         getaddrinfo module is not in use.
20390         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
20391         freeaddrinfo, gai_strerror, getnameinfo are declared.
20392         * modules/netdb (Depends-on): Add warn-on-use.
20393         (Makefile.am): Include warn-on-use.h in netdb.h.
20394
20395 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
20396
20397         build: avoid "make check" failure without .git/ directory
20398         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
20399         there is no .git/ directory.
20400
20401 2010-04-25  Bruno Haible  <bruno@clisp.org>
20402
20403         ptsname: Fix misuse of ttyname_r.
20404         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
20405         of errno.
20406
20407 2010-04-25  Bruno Haible  <bruno@clisp.org>
20408
20409         ttyname_r: Make it work on Solaris 10.
20410         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
20411         if the system function has the POSIX declaration. Test whether the
20412         function fails if the buffer is less than 128 bytes large.
20413         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
20414         system's ttyname_r function. Provide a reasonably large buffer.
20415         * modules/ttyname_r (Depends-on): Add extensions.
20416         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
20417
20418 2010-04-25  Bruno Haible  <bruno@clisp.org>
20419
20420         Use the 'extensions' module for some more functions on Solaris.
20421         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
20422         module.
20423         * doc/posix-functions/ctime_r.texi: Likewise.
20424         * doc/posix-functions/getgrgid_r.texi: Likewise.
20425         * doc/posix-functions/getgrnam_r.texi: Likewise.
20426         * doc/posix-functions/getpwnam_r.texi: Likewise.
20427         * doc/posix-functions/getpwuid_r.texi: Likewise.
20428         * doc/posix-functions/readdir_r.texi: Likewise.
20429         * doc/posix-functions/sigwait.texi: Likewise.
20430         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
20431         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
20432
20433 2010-04-25  Bruno Haible  <bruno@clisp.org>
20434
20435         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
20436         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
20437         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
20438         * lib/ttyname_r.c: Include <limits.h>.
20439         (ttyname_r): Define using the system's ttyname_r function, if it exists
20440         and not on Solaris.
20441         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
20442         set.
20443         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
20444         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
20445         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
20446         Reported by Simon Josefsson.
20447
20448 2010-04-25  Bruno Haible  <bruno@clisp.org>
20449
20450         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
20451         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
20452         * doc/posix-functions/ctime_r.texi: Likewise.
20453         * doc/posix-functions/getgrgid_r.texi: Likewise.
20454         * doc/posix-functions/getgrnam_r.texi: Likewise.
20455         * doc/posix-functions/getlogin_r.texi: Likewise.
20456         * doc/posix-functions/getpwnam_r.texi: Likewise.
20457         * doc/posix-functions/getpwuid_r.texi: Likewise.
20458         * doc/posix-functions/readdir_r.texi: Likewise.
20459         * doc/posix-functions/sigwait.texi: Likewise.
20460         * doc/posix-functions/ttyname_r.texi: Likewise.
20461         Reported by Simon Josefsson.
20462
20463 2010-04-25  Bruno Haible  <bruno@clisp.org>
20464
20465         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
20466         * gnulib-tool (func_usage): Document that --with-*-tests options apply
20467         also to --create-testdir.
20468         (func_acceptable): Don't consider the status of *-tests modules here.
20469         (func_modules_transitive_closure): Consider it here, before including a
20470         test module.
20471         (func_import, func_create_testdir): Set inc_all_direct_tests,
20472         inc_all_indirect_tests.
20473         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
20474         --create-testdir and --create-megatestdir.
20475
20476 2010-04-25  Bruno Haible  <bruno@clisp.org>
20477
20478         gnulib-tool: Add --without-*-tests options.
20479         * gnulib-tool (func_usage): Document the --without-*-tests options.
20480         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
20481         excl_unportable_tests): New variables.
20482         Fail if they are specified with --import or --update.
20483         (func_acceptable): Respect the excl_*_tests variables.
20484         (func_import): Set the excl_*_tests variables to empty.
20485
20486 2010-04-25  Simon Josefsson  <simon@josefsson.org>
20487             Bruno Haible  <bruno@clisp.org>
20488
20489         Work around a MacOS X 10.4 bug with openpty.
20490         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
20491         * tests/test-openpty.c (main): Close the master side explicitly.
20492
20493 2010-04-25  Bruno Haible  <bruno@clisp.org>
20494
20495         strnlen: Fix a C++ test error on MacOS X and Solaris.
20496         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
20497         the function is not declared.
20498         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
20499         Simon Josefsson.
20500
20501 2010-04-24  Bruno Haible  <bruno@clisp.org>
20502
20503         Avoid a gcc warning.
20504         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
20505         of correct type for %08lx directive.
20506         Reported by Eric Blake.
20507
20508 2010-04-24  Bruno Haible  <bruno@clisp.org>
20509
20510         vasnprintf: Correct errno value in case of out-of-memory.
20511         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
20512         or sprintf. Use the errno value from SNPRINTF or sprintf.
20513         Reported by Ian Beckwith <ianb@erislabs.net>.
20514
20515 2010-04-24  Bruno Haible  <bruno@clisp.org>
20516
20517         ansi-c++-opt: Find correct compiler when cross-compiling.
20518         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
20519         AC_CHECK_PROGS.
20520         Reported by Simon Josefsson.
20521
20522 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
20523
20524         vc-list-files: Add support for subversion
20525         * build-aux/vc-list-files: Use "svn list" to generate the list of
20526         files controlled by subversion.
20527
20528 2010-04-23  Jim Meyering  <meyering@redhat.com>
20529
20530         vc-list-files tests: convert to use init.sh
20531         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
20532         path_prepend_.
20533         Use Exit, not exit.
20534         Use skip_ rather than open coding it.
20535         Remove trap set-up and compare definitions.
20536         * tests/test-vc-list-files-git.sh: Likewise.
20537         * modules/vc-list-files-tests (Files): Add tests/init.sh.
20538
20539 2010-04-22  Simon Josefsson  <simon@josefsson.org>
20540
20541         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
20542         backup files.
20543
20544 2010-04-21  Simon Josefsson  <simon@josefsson.org>
20545
20546         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
20547
20548 2010-04-20  Eric Blake  <eblake@redhat.com>
20549
20550         tests: be robust to ignored SIGPIPE
20551         * tests/test-select-in.sh: Consume all output.
20552         * tests/test-lseek.sh: Check correct exit status, while avoiding
20553         EPIPE.
20554
20555 2010-04-20  Simon Josefsson  <simon@josefsson.org>
20556             Bruno Haible  <bruno@clisp.org>
20557
20558         visibility: Don't use -fvisibility if it leads to a warning.
20559         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
20560         yes, don't pretend that visibility works if it leads to a warning.
20561         Reported by Mike Gran <spk121@yahoo.com>.
20562
20563 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
20564
20565         * build-aux/bootstrap: Use "git -h" for testing for supported options
20566         instead of "git --help".  The short-form option only shows a summary,
20567         and doesn't layout the full man page.  Grep for the full option name
20568         in the summary, too.
20569
20570 2010-04-19  Bruno Haible  <bruno@clisp.org>
20571
20572         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
20573         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
20574         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
20575         mention of RELOCATABLE_STRIP.
20576         Reported by Sylvain Beucler <beuc@beuc.net>.
20577
20578 2010-04-19  Bruno Haible  <bruno@clisp.org>
20579
20580         * lib/diffseq.h: Fix typo in comment.
20581         Reported by Eric Blake.
20582
20583 2010-04-19  Bruno Haible  <bruno@clisp.org>
20584
20585         ioctl: Move autoconf macro to a .m4 file.
20586         * m4/ioctl.m4: New file, extracted from modules/ioctl.
20587         * modules/ioctl (Files): Add it.
20588         (configure.ac): Simply invoke gl_FUNC_IOCTL.
20589         Reported by Ian Beckwith <ianb@erislabs.net>.
20590
20591 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
20592             Bruno Haible  <bruno@clisp.org>
20593
20594         diffseq: Accommodate use-case with abstract arrays.
20595         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
20596         is not defined.
20597         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
20598         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
20599
20600 2010-04-18  Bruno Haible  <bruno@clisp.org>
20601
20602         * doc/posix-headers/stdbool.texi: More precise wording.
20603
20604 2010-04-17  Jim Meyering  <meyering@redhat.com>
20605
20606         maint.mk: use gnu-style indentation in an embedded perl script
20607         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
20608         Rename variable: s/two/last_two_bytes/
20609
20610 2010-04-16  Eric Blake  <eblake@redhat.com>
20611
20612         test-stdbool: skip test that fails with Solaris CC
20613         * tests/test-stdbool.c (f): Skip test that causes compilation
20614         error under buggy C++ compiler.
20615         * lib/stdbool.in.h: Document the limitation.
20616         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
20617
20618         setenv: allow compilation with C++
20619         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
20620         register keyword.
20621
20622         stdint: allow test to pass with C++
20623         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
20624
20625         getopt: allow compilation with C++
20626         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
20627         struct.
20628         * lib/getopt.c (_getopt_internal_r): Use correct type.
20629         Reported by Dagobert Michelson, via Joel E. Denny.
20630
20631 2010-04-16  Bruno Haible  <bruno@clisp.org>
20632
20633         Override netdb.h always.
20634         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
20635         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
20636         Reported by Ludovic Courtès <ludo@gnu.org>.
20637
20638 2010-04-15  Bruno Haible  <bruno@clisp.org>
20639
20640         openpty: Fix mistake from 2010-03-21.
20641         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
20642         Reported by Simon Josefsson.
20643
20644 2010-04-15  Eric Blake  <eblake@redhat.com>
20645
20646         test-forkpty: fix expected signature
20647         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
20648         Reported by Simon Josefsson.
20649
20650 2010-04-15  Jim Meyering  <meyering@redhat.com>
20651
20652         maint.mk: texinfo_suffix_re_: correct the default regexp
20653         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
20654
20655         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
20656         make it configurable via texinfo_suffix_re_.
20657
20658 2010-04-14  Eric Blake  <eblake@redhat.com>
20659
20660         strtok_r: relax license to LGPLv2+
20661         * modules/strtok_r (License): Relax license.
20662         Reported by Matthias Bolte.
20663
20664 2010-04-14  Simon Josefsson  <simon@josefsson.org>
20665
20666         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
20667         version 1.4.4 by default instead of requiring the libgcrypt
20668         version used during build.  This makes it possible to use the
20669         application with older but still binary compatible libgcrypt
20670         versions.
20671
20672 2010-04-13  Eric Blake  <eblake@redhat.com>
20673
20674         getopt-gnu: match recent glibc fixes and posix ruling
20675         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
20676         '+' handling, when requesting extensions.
20677         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
20678         'W;' handling.
20679         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
20680         * doc/posix-functions/getopt.texi (getopt): Document this.
20681         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
20682         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20683         Likewise.
20684
20685         getopt: merge bug fixes from glibc
20686         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
20687         diagnostics.  Honor '+:' correctly.  Reject ';'.
20688
20689         getopt-posix: detect MacOS bug
20690         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
20691         optind when missing a required argument.
20692         * doc/posix-functions/getopt.texi (getopt): Document the bug.
20693         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
20694         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20695         Likewise.
20696
20697         getopt-posix: avoid spurious failure on Solaris
20698         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
20699         an indicator that setting optind=1 is sufficient for reset.
20700
20701         getopt-posix: avoid spurious failure on FreeBSD
20702         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
20703         in POSIX mode, since the m4 test uses it.
20704
20705         gnulib-tool: silence warning on BSD sh
20706         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
20707
20708 2010-04-13  Jim Meyering  <meyering@redhat.com>
20709
20710         doc: users.txt: GNU patch now uses gnulib
20711         * users.txt: Add patch.
20712
20713 2010-04-12  Jim Meyering  <meyering@redhat.com>
20714
20715         maint.mk: generate more concise timing data for syntax-check rules
20716         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
20717         " done" from each line that reports a syntax-check test duration.
20718
20719 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
20720
20721         git-version-gen: use "git update-index..." rather than "git status"
20722         * build-aux/git-version-gen: Use git update-index --refresh, not
20723         "git status".  With some versions of git, "git status" would fail
20724         to update the index and result in an unwarranted "-dirty" suffix.
20725
20726 2010-04-11  Jim Meyering  <meyering@redhat.com>
20727
20728         openat: correct formatting (no semantic change)
20729         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
20730         Suggested by Bruno Haible.
20731
20732 2010-04-11  Bruno Haible  <bruno@clisp.org>
20733
20734         Stricter declaration checking in testdirs.
20735         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20736         If for_tests is true, augment AM_CPPFLAGS to define
20737         GNULIB_STRICT_CHECKING.
20738         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
20739         GNULIB_STRICT_CHECKING is defined, verify that the function is
20740         declared.
20741
20742 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
20743             Bruno Haible  <bruno@clisp.org>
20744
20745         libunistring: Improve configure output.
20746         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
20747         Don't say "consider installing GNU libunistring" when checking again
20748         with libiconv.
20749
20750 2010-04-11  Bruno Haible  <bruno@clisp.org>
20751
20752         libunistring: Correct value of $LTLIBUNISTRING.
20753         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
20754         correct the value of $LTLIBUNISTRING.
20755
20756 2010-04-11  Bruno Haible  <bruno@clisp.org>
20757
20758         havelib: Add static libraries to LIBS in the right order.
20759         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
20760         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
20761
20762 2010-04-11  Bruno Haible  <bruno@clisp.org>
20763
20764         libunistring: Detect libunistring also when it depends on libiconv.
20765         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
20766         the second AC_LIB_HAVE_LINKFLAGS invocation.
20767
20768 2010-04-11  James Youngman  <jay@gnu.org>
20769
20770         close-stream: declare local scalars to be "const"
20771         * lib/close-stream.c (close_stream): Make boolean variables const
20772         to document the fact that we set but do not change them.
20773
20774 2010-04-11  Bruno Haible  <bruno@clisp.org>
20775
20776         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
20777
20778 2010-04-11  Jim Meyering  <meyering@redhat.com>
20779
20780         maint.mk: don't include dist-check.mk
20781         * top/maint.mk: Remove bogus include directive.
20782
20783         maint.mk: improve empty-line-at-EOF check
20784         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
20785         solution, rather than tail+Perl-based one.  The latter would read
20786         a few kilobytes from the end of each file, and did not handle empty
20787         files properly.
20788
20789         maint.mk: print the elapsed time for each syntax-check rule
20790         * top/maint.mk (sc_m_rules_): Save start time in a file.
20791         (sc_z_rules_): New rules: remove temp file and print elapsed time.
20792         (local-check): Interpose the .z rules
20793
20794 2010-04-11  Jim Meyering  <meyering@redhat.com>
20795
20796         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
20797         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
20798         empty file with one that ends in an empty line.
20799
20800 2010-04-10  Bruno Haible  <bruno@clisp.org>
20801
20802         mkdir: Make it work on mingw64.
20803         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
20804         * lib/mkdir.c: Update comment.
20805         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
20806
20807 2010-04-10  Bruno Haible  <bruno@clisp.org>
20808
20809         Don't override improved macro from newer autoconf.
20810         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
20811         autoconf >= 2.62.
20812         Reported by Joel E. Denny <jdenny@clemson.edu>.
20813
20814 2010-04-10  Jim Meyering  <meyering@redhat.com>
20815
20816         maint.mk: new syntax-check rule: prohibit empty lines at end of file
20817         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
20818
20819         maint.mk: correct a diagnostic
20820         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
20821         in diagnostic; now use $prohibit.
20822
20823 2010-04-10  Bruno Haible  <address@hidden>
20824
20825         fchownat: Fix a C++ test error on Solaris 8.
20826         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
20827         the function does not exist.
20828
20829 2010-04-10  Bruno Haible  <bruno@clisp.org>
20830
20831         vasnprintf: Add more tests.
20832         * tests/test-vasnprintf-posix.c: Include <errno.h>.
20833         (test_function): Test converting an invalid wide string.
20834
20835         vasnprintf: Correct handling of unconvertible wide string arguments.
20836         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
20837         VASNPRINTF.
20838         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
20839         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
20840         smaller than the expected maximum need for the directive. Set errno to
20841         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
20842         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
20843         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
20844         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
20845         * modules/vasnprintf (Files): Add m4/printf.m4.
20846         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20847
20848 2010-04-10  Bruno Haible  <bruno@clisp.org>
20849
20850         vasnprintf: Fix crash in %ls directive.
20851         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
20852         string is passed as argument to %ls, with no precision and no width.
20853         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20854
20855 2010-04-10  Bruno Haible  <bruno@clisp.org>
20856
20857         vasnprintf: Fix multiple test failures on mingw.
20858         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
20859         _snprintf, or snwprintf, not _snwprintf.
20860
20861 2010-04-10  Bruno Haible  <bruno@clisp.org>
20862
20863         write: Fix a C++ test error on mingw.
20864         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
20865
20866 2010-04-10  Bruno Haible  <bruno@clisp.org>
20867
20868         vasnprintf test: Reduce code duplication.
20869         * tests/test-vasnprintf.c (test_function): New function, extracted from
20870         test_vasnprintf.
20871         (test_vasnprintf, test_asnprintf): Invoke it.
20872
20873 2010-04-10  Bruno Haible  <bruno@clisp.org>
20874
20875         strnlen: Fix warning in C++ mode on MacOS X.
20876         * lib/string.in.h (strnlen): Use the modern idiom.
20877         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
20878         defining strnlen as a macro already in <config.h>.
20879         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20880         REPLACE_STRNLEN.
20881         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
20882         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20883
20884 2010-04-08  James Youngman  <jay@gnu.org>
20885
20886         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
20887         the example.
20888
20889 2010-04-09  Jim Meyering  <meyering@redhat.com>
20890
20891         maint.mk: print better diagnostic when there is no $(_hv_file)
20892         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
20893         announce that when $(_hv_file) (aka help-version) does not exist.
20894
20895         init.sh: run tr in the "C" locale to avoid multibyte interpretation
20896         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
20897         not try to interpret its random input bytes.  Jarno Rajahalme reported
20898         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
20899         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
20900         (mktempd_): Likewise, just in case.
20901
20902         ftruncate: add two years to projected module removal date: 2012
20903         * m4/ftruncate.m4: Adjust comments.
20904
20905         ftruncate: mark module as obsolete; even MinGW provides it, now
20906         * modules/ftruncate (Status): Obsolete.
20907         (Notice): Say that.
20908         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
20909         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
20910
20911 2010-04-08  Bruno Haible  <bruno@clisp.org>
20912
20913         Fix side effects from tests-related modules.
20914         * modules/dprintf-posix (Comment): New section.
20915         * modules/fprintf-posix (Comment): Likewise.
20916         * modules/obstack-printf-posix (Comment): Likewise.
20917         * modules/printf-posix (Comment): Likewise.
20918         * modules/snprintf-posix (Comment): Likewise.
20919         * modules/sprintf-posix (Comment): Likewise.
20920         * modules/vasnprintf-posix (Comment): Likewise.
20921         * modules/vasprintf-posix (Comment): Likewise.
20922         * modules/vdprintf-posix (Comment): Likewise.
20923         * modules/vfprintf-posix (Comment): Likewise.
20924         * modules/vprintf-posix (Comment): Likewise.
20925         * modules/vsnprintf-posix (Comment): Likewise.
20926         * modules/vsprintf-posix (Comment): Likewise.
20927         * modules/xprintf-posix (Comment): Likewise.
20928         * modules/xvasprintf-posix (Comment): Likewise.
20929         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
20930         * modules/floorf-tests (Depends-on): Likewise.
20931         * modules/round-tests (Depends-on): Likewise.
20932         * modules/roundf-tests (Depends-on): Likewise.
20933         * modules/trunc-tests (Depends-on): Likewise.
20934         * modules/truncf-tests (Depends-on): Likewise.
20935         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
20936         'fprintf-posix' module is not present.
20937         * tests/test-floorf2.c (check): Likewise.
20938         * tests/test-trunc2.c (check): Likewise.
20939         * tests/test-truncf2.c (check): Likewise.
20940         * tests/test-round2.c (equal): Likewise.
20941         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20942
20943 2010-04-07  Karl Berry  <karl@gnu.org>
20944
20945         * config/srclist.txt,
20946         * config/srclistvars.sh,
20947         * config/srclist-update: doc fixes.
20948
20949 2010-04-07  Jim Meyering  <meyering@redhat.com>
20950
20951         maint.mk: add a PATH crosschecking syntax-check rule
20952         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
20953         Useful if you use a test like the one in help-version (coreutils,
20954         diffutils, grep, gzip) that ensures $(VERSION) matches what is
20955         printed by prog --version.
20956
20957 2010-04-06  Bruno Haible  <bruno@clisp.org>
20958
20959         Fix link error on mingw.
20960         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
20961         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
20962
20963 2010-04-06  Bruno Haible  <bruno@clisp.org>
20964
20965         Assume rmdir exists.
20966         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
20967
20968 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
20969
20970         doc: update users.txt
20971         * users.txt: Add gcal.
20972
20973 2010-04-06  Jim Meyering  <meyering@redhat.com>
20974
20975         init.sh: simply unset TMPDIR rather than risking env -i
20976         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
20977         although it probably works fine on all Unix-based systems, some
20978         systems (Cygwin?) cannot tolerate a totally cleared environment.
20979         Suggestion from Eric Blake.
20980
20981 2010-04-06  Jim Meyering  <meyering@redhat.com>
20982
20983         init.sh: portability fix: use env's POSIX-specified -i option not -u
20984         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
20985         than unportable env -u.  Solaris 5.11's env lacks support for -u.
20986
20987 2010-04-05  Bruno Haible  <bruno@clisp.org>
20988
20989         btowc: Work around Cygwin 1.7.2 bug.
20990         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
20991         does not map NUL to 0.
20992         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
20993
20994 2010-04-05  Bruno Haible  <bruno@clisp.org>
20995
20996         Make the multithread modules work on Cygwin 1.7.2.
20997         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
20998         imported symbols can be declared weak, so that it returns "no" on
20999         Cygwin 1.7.2.
21000
21001 2010-04-05  Bruno Haible  <bruno@clisp.org>
21002
21003         Use the module 'strncat'.
21004         * modules/unistr/u8-strncat (Depends-on): Add strncat.
21005
21006         Tests for module 'strncat'.
21007         * modules/strncat-tests: New file.
21008         * tests/test-strncat.c: New file.
21009
21010         New module 'strncat'.
21011         * lib/string.in.h (strncat): New declaration.
21012         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
21013         * m4/strncat.m4: New file, based on m4/memchr.m4.
21014         * modules/strncat: New file.
21015         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
21016         is declared.
21017         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
21018         REPLACE_STRNCAT.
21019         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
21020         REPLACE_STRNCAT.
21021         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
21022         module.
21023         * tests/test-string-c++.cc: Check signature of strncat.
21024
21025 2010-04-05  Jim Meyering  <meyering@redhat.com>
21026
21027         xstrtoumax-tests: convert to use init.sh
21028         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
21029         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21030         Use Exit, not exit.
21031         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21032
21033         xstrtoimax-tests: convert to use init.sh
21034         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
21035         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21036         Use Exit, not exit.
21037         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21038
21039 2010-04-05  Bruno Haible  <bruno@clisp.org>
21040
21041         sys_socket: Avoid #define replacements in C++ mode.
21042         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
21043         warning to the function if possible, rather than #defining the symbol
21044         to a dysfunctional alias.
21045
21046 2010-04-05  Bruno Haible  <bruno@clisp.org>
21047
21048         fseeko: Fix C++ test error on mingw.
21049         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
21050         gl_FUNC_FSEEKO.
21051         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
21052         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
21053         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
21054         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
21055
21056 2010-04-05  Bruno Haible  <bruno@clisp.org>
21057
21058         duplocale: Improve test output.
21059         * tests/test-duplocale.c (main): Print reason for skipped test.
21060
21061 2010-04-05  Bruno Haible  <bruno@clisp.org>
21062
21063         Assume rmdir exists.
21064         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
21065         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
21066
21067 2010-04-05  Bruno Haible  <bruno@clisp.org>
21068
21069         Fix link error on Solaris 8 with cc.
21070         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
21071
21072 2010-04-05  Bruno Haible  <bruno@clisp.org>
21073
21074         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
21075         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
21076
21077 2010-04-05  Bruno Haible  <bruno@clisp.org>
21078
21079         vasprintf: Update documentation.
21080         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
21081
21082 2010-04-05  Bruno Haible  <bruno@clisp.org>
21083
21084         ptsname: Improve test.
21085         * tests/test-ptsname.c (main): Also try the various master names of BSD
21086         systems.
21087
21088 2010-04-05  Bruno Haible  <bruno@clisp.org>
21089
21090         memchr: Avoid a possible C++ test error.
21091         * lib/string.in.h (memchr): Provide declaration if function is missing.
21092         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
21093         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
21094         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
21095         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
21096
21097 2010-04-05  Bruno Haible  <bruno@clisp.org>
21098
21099         strtok_r: Improve idiom.
21100         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
21101         AC_LIBOBJ is used.
21102
21103 2010-04-05  Bruno Haible  <bruno@clisp.org>
21104
21105         strdup: Improve idiom.
21106         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
21107         AC_LIBOBJ is used.
21108         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
21109         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
21110         when AC_LIBOBJ is used.
21111
21112 2010-04-05  Bruno Haible  <bruno@clisp.org>
21113
21114         mbsinit, mbrtowc, wcrtomb: Improve idioms.
21115         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
21116         don't set REPLACE_MBSINIT to 1.
21117         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
21118         don't set REPLACE_MBRTOWC to 1.
21119         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
21120         exist, don't set REPLACE_MBSRTOWCS to 1.
21121         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
21122         exist, don't set REPLACE_MBSNRTOWCS to 1.
21123         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
21124         don't set REPLACE_WCRTOMB to 1.
21125         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
21126         exist, don't set REPLACE_WCSRTOMBS to 1.
21127         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
21128         exist, don't set REPLACE_WCSNRTOMBS to 1.
21129
21130 2010-04-05  Bruno Haible  <bruno@clisp.org>
21131
21132         ldexpl: Improve idiom.
21133         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
21134         make sure to set HAVE_DECL_LDEXPL to 0.
21135
21136 2010-04-05  Jim Meyering  <meyering@redhat.com>
21137
21138         xstrtol-tests: convert to use init.sh
21139         * modules/xstrtol-tests (Files): Add tests/init.sh.
21140         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21141         Use Exit, not exit.
21142         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21143
21144         atexit-tests: convert to use init.sh
21145         * modules/atexit-tests (Files): Add tests/init.sh.
21146         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21147         Use Exit, not exit.
21148         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21149
21150         init.sh: fix typo
21151         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
21152
21153         init.sh: make it easier for a test script to write to the tty, ...
21154         when using automake's parallel-tests mode.
21155         * tests/init.sh (stderr_fileno_): Define overridable variable.
21156         (warn_): New function, to use it.
21157         (fail_, skip_, framework_failure_): Use warn_.
21158
21159 2010-04-04  Bruno Haible  <bruno@clisp.org>
21160
21161         btowc: Avoid warning.
21162         * lib/btowc.c: Include <stdlib.h>.
21163         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
21164
21165 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
21166             Bruno Haible  <bruno@clisp.org>
21167
21168         wchar: Port to NetBSD 1.5.
21169         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
21170         * lib/wctype.in.h (WEOF): Likewise.
21171
21172 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
21173             Bruno Haible  <bruno@clisp.org>
21174
21175         Port extended stdio to NetBSD 1.5.
21176         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
21177         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
21178         older.
21179
21180 2010-04-04  Bruno Haible  <bruno@clisp.org>
21181
21182         string: Remove unused substitution.
21183         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
21184         HAVE_DECL_STRERROR.
21185         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
21186
21187 2010-04-04  Bruno Haible  <bruno@clisp.org>
21188
21189         strtod: Avoid a possible C++ test error.
21190         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
21191         set REPLACE_STRTOD.
21192
21193 2010-04-04  Bruno Haible  <bruno@clisp.org>
21194
21195         strerror: Update documentation.
21196         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
21197
21198 2010-04-04  Bruno Haible  <bruno@clisp.org>
21199
21200         stdio: Fix some C++ test errors on Solaris 8 with GCC.
21201         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
21202         _GL_CXXALIAS_SYS_CAST.
21203
21204 2010-04-04  Bruno Haible  <bruno@clisp.org>
21205
21206         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
21207         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
21208         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
21209         REPLACE_FREXPL to 1.
21210         * doc/posix-functions/frexpl.texi: Update documentation.
21211
21212 2010-04-04  Bruno Haible  <bruno@clisp.org>
21213
21214         math: Fix some C++ test errors on Solaris 8 and Cygwin.
21215         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
21216
21217 2010-04-04  Bruno Haible  <bruno@clisp.org>
21218
21219         Implement nanosleep for native Windows.
21220         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
21221
21222 2010-04-04  Bruno Haible  <bruno@clisp.org>
21223
21224         math: Fix some C++ test errors on Solaris 8.
21225         * lib/math.in.h (truncf, trunc): Use simpler idiom.
21226
21227 2010-04-04  Bruno Haible  <bruno@clisp.org>
21228
21229         math: Fix some C++ test errors on Cygwin.
21230         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
21231         truncl): Provide declaration if the system does not have it.
21232         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
21233         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
21234         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
21235         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
21236         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
21237         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
21238         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
21239         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
21240         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
21241         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
21242         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
21243         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
21244         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
21245         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
21246         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
21247         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
21248         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
21249         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
21250         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
21251         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
21252         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
21253         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
21254
21255 2010-04-04  Bruno Haible  <bruno@clisp.org>
21256
21257         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
21258         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
21259         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
21260         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
21261         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
21262         * m4/isinf.m4 (gl_ISINF): Likewise.
21263         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21264
21265 2010-04-04  Bruno Haible  <bruno@clisp.org>
21266
21267         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
21268         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21269
21270 2010-04-04  Bruno Haible  <bruno@clisp.org>
21271
21272         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
21273         * modules/tmpfile (configure.ac): Update.
21274
21275         tmpfile: Fix C++ test error on mingw.
21276         * lib/stdio.in.h (tmpfile): New declaration.
21277         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
21278         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
21279         * modules/tmpfile (Depends-on): Add stdio.
21280         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
21281         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
21282         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
21283         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
21284         REPLACE_TMPFILE.
21285         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
21286
21287 2010-04-04  Bruno Haible  <bruno@clisp.org>
21288
21289         ioctl: Fix C++ test error on mingw.
21290         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
21291         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
21292         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
21293
21294 2010-04-03  Bruno Haible  <bruno@clisp.org>
21295
21296         wcwidth: Fix C++ test error on mingw.
21297         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
21298         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
21299         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
21300
21301 2010-04-03  Bruno Haible  <bruno@clisp.org>
21302
21303         nanosleep: Fix C++ test error on mingw.
21304         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
21305         * lib/time.in.h (nanosleep): Use modern idiom.
21306         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
21307         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
21308         REPLACE_NANOSLEEP to 1.
21309         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
21310         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
21311
21312 2010-04-03  Bruno Haible  <bruno@clisp.org>
21313
21314         strptime: Fix C++ test error on mingw.
21315         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
21316         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
21317         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
21318         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
21319         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
21320         not REPLACE_STRPTIME.
21321         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
21322         REPLACE_STRPTIME.
21323
21324 2010-04-03  Bruno Haible  <bruno@clisp.org>
21325
21326         timegm: Fix C++ test error on mingw.
21327         * lib/time.in.h (timegm): Use modern idiom.
21328         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
21329         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
21330         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
21331         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
21332
21333 2010-04-03  Bruno Haible  <bruno@clisp.org>
21334
21335         timegm: Assume declaration if function exists.
21336         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
21337         if it exists. Don't clobber ac_cv_func_timegm.
21338
21339 2010-04-03  Bruno Haible  <bruno@clisp.org>
21340
21341         time_r: Fix C++ test error on mingw.
21342         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
21343         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
21344         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
21345         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
21346         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
21347
21348 2010-04-03  Bruno Haible  <bruno@clisp.org>
21349
21350         time_r: Minor updates.
21351         * modules/time_r (Description): Mention the provided functions.
21352         * lib/time_r.c: Don't include <string.h>.
21353         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
21354         * doc/posix-functions/localtime_r.texi: Likewise.
21355
21356 2010-04-03  Bruno Haible  <bruno@clisp.org>
21357
21358         time: Fix regression introduced on 2010-03-08.
21359         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
21360         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
21361
21362 2010-04-03  Jim Meyering  <meyering@redhat.com>
21363
21364         maint.mk: don't silently disable project-specific syntax-check rules
21365         * top/maint.mk (_prohibit_regexp): Define, to help people realize
21366         that they need to convert their project-specific syntax-check rules
21367         to use the new _sc_search_regexp.
21368
21369 2010-04-03  Bruno Haible  <bruno@clisp.org>
21370
21371         fchdir: Fix regression introduced on 2010-03-08.
21372         * lib/unistd.in.h (fchdir): Fix declaration.
21373         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
21374         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
21375         REPLACE_FCHDIR.
21376         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
21377         REPLACE_FCHDIR.
21378
21379 2010-04-03  Bruno Haible  <bruno@clisp.org>
21380
21381         getpagesize: Fix C++ test error on mingw.
21382         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
21383         system does not declare the function.
21384         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
21385         declared.
21386         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21387         HAVE_DECL_GETPAGESIZE.
21388         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
21389
21390 2010-04-03  Bruno Haible  <bruno@clisp.org>
21391
21392         stdio: Make C++ tests work on mingw.
21393         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
21394         does not declare the function.
21395
21396 2010-04-03  Bruno Haible  <bruno@clisp.org>
21397
21398         ftello: Fix C++ test error on mingw.
21399         * lib/stdio.in.h (ftello): Use modern idiom.
21400         * lib/ftello.c (ftello): Renamed from rpl_ftello.
21401         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
21402         is missing and that it needs to be replaced.
21403         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
21404         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
21405         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
21406
21407 2010-04-03  Bruno Haible  <bruno@clisp.org>
21408
21409         fseeko: Fix C++ test error on mingw.
21410         * lib/stdio.in.h (fseeko): Use modern idiom.
21411         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
21412         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
21413         is missing and that it needs to be replaced.
21414         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
21415         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
21416         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
21417
21418 2010-04-03  Bruno Haible  <bruno@clisp.org>
21419
21420         mkstemp: Fix C++ test error on mingw.
21421         * lib/stdlib.in.h (mkstemp): Use modern idiom.
21422         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
21423         function is missing and that it needs to be replaced.
21424         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
21425         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
21426
21427 2010-04-03  Bruno Haible  <bruno@clisp.org>
21428
21429         stpncpy: Fix C++ test error on mingw.
21430         * lib/string.in.h (stpncpy): Use modern idiom.
21431         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
21432         function is missing and that it needs to be replaced.
21433         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21434         REPLACE_STPNCPY.
21435         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
21436
21437 2010-04-03  Bruno Haible  <bruno@clisp.org>
21438
21439         sys_stat: Fix C++ test error on mingw.
21440         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
21441         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
21442
21443 2010-04-03  Bruno Haible  <bruno@clisp.org>
21444
21445         pty: Update doc.
21446         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
21447
21448 2010-04-03  Bruno Haible  <bruno@clisp.org>
21449
21450         unistd: Fix C++ test error on mingw.
21451         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
21452
21453 2010-04-03  Bruno Haible  <bruno@clisp.org>
21454
21455         Update doc regarding mingw.
21456         * doc/glibc-functions/openpty.texi: Update regarding mingw.
21457         * doc/glibc-functions/login_tty.texi: Likewise.
21458         * doc/glibc-functions/forkpty.texi: Likewise.
21459
21460 2010-04-03  Bruno Haible  <bruno@clisp.org>
21461
21462         stdlib: Avoid compilation failure of c-strtold on mingw.
21463         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
21464
21465 2010-04-03  Bruno Haible  <bruno@clisp.org>
21466
21467         locale: Make C++ tests work on Cygwin and mingw.
21468         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
21469         cannot provide the function.
21470         Reported by Simon Josefsson.
21471
21472 2010-04-03  Bruno Haible  <bruno@clisp.org>
21473
21474         localename: Port to MacOS X 10.6.
21475         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
21476         memory layout of the locales in MacOS X 10.6 as well.
21477         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
21478
21479 2010-04-02  Bruno Haible  <bruno@clisp.org>
21480
21481         gnulib-tool: Ensure that long-running tests are executed last.
21482         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
21483         running tests after the one for the other tests.
21484
21485 2010-04-02  Bruno Haible  <bruno@clisp.org>
21486
21487         gnulib-tool: Ensure the tests in the main directory are executed first.
21488         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
21489         start with the current directory.
21490
21491 2010-04-02  Bruno Haible  <bruno@clisp.org>
21492
21493         Tests for module 'havelib', moved here from GNU gettext.
21494         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
21495         modifications.
21496         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
21497         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
21498         with modifications.
21499         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
21500         modifications.
21501         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
21502         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
21503         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
21504         with modifications.
21505         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
21506         with modifications.
21507         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
21508         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
21509         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
21510         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
21511         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
21512         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
21513         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
21514         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
21515         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
21516         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
21517         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
21518         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
21519         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
21520         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
21521         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
21522         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
21523         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
21524         with modifications.
21525         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
21526         with modifications.
21527         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
21528         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
21529         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
21530         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
21531         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
21532         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
21533         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
21534         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
21535         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
21536         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
21537         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
21538         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
21539         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
21540         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
21541         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
21542         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
21543         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
21544         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
21545         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
21546         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
21547         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
21548         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
21549         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
21550         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
21551         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
21552         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
21553         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
21554         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
21555         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
21556         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
21557         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
21558         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
21559         * tests/havelib/rpathx/rpathx.c: New file, from
21560         gettext/autoconf-lib-link.
21561         * tests/havelib/rpathx/Makefile.am: New file, from
21562         gettext/autoconf-lib-link.
21563         * tests/havelib/rpathx/configure.ac: New file, from
21564         gettext/autoconf-lib-link with modifications.
21565         * tests/havelib/rpathy/rpathy.c: New file, from
21566         gettext/autoconf-lib-link.
21567         * tests/havelib/rpathy/Makefile.am: New file, from
21568         gettext/autoconf-lib-link.
21569         * tests/havelib/rpathy/configure.ac: New file, from
21570         gettext/autoconf-lib-link with modifications.
21571         * tests/havelib/rpathz/rpathz.c: New file, from
21572         gettext/autoconf-lib-link.
21573         * tests/havelib/rpathz/Makefile.am: New file, from
21574         gettext/autoconf-lib-link.
21575         * tests/havelib/rpathz/configure.ac: New file, from
21576         gettext/autoconf-lib-link with modifications.
21577         * tests/havelib/rpathlx/usex.c: New file, from
21578         gettext/autoconf-lib-link.
21579         * tests/havelib/rpathlx/Makefile.am: New file, from
21580         gettext/autoconf-lib-link.
21581         * tests/havelib/rpathlx/configure.ac: New file, from
21582         gettext/autoconf-lib-link with modifications.
21583         * tests/havelib/rpathly/usey.c: New file, from
21584         gettext/autoconf-lib-link.
21585         * tests/havelib/rpathly/Makefile.am: New file, from
21586         gettext/autoconf-lib-link.
21587         * tests/havelib/rpathly/configure.ac: New file, from
21588         gettext/autoconf-lib-link with modifications.
21589         * tests/havelib/rpathlz/usez.c: New file, from
21590         gettext/autoconf-lib-link.
21591         * tests/havelib/rpathlz/Makefile.am: New file, from
21592         gettext/autoconf-lib-link.
21593         * tests/havelib/rpathlz/configure.ac: New file, from
21594         gettext/autoconf-lib-link with modifications.
21595         * tests/havelib/rpathlyx/usey.c: New file, from
21596         gettext/autoconf-lib-link.
21597         * tests/havelib/rpathlyx/Makefile.am: New file, from
21598         gettext/autoconf-lib-link.
21599         * tests/havelib/rpathlyx/configure.ac: New file, from
21600         gettext/autoconf-lib-link with modifications.
21601         * tests/havelib/rpathlzyx/usez.c: New file, from
21602         gettext/autoconf-lib-link.
21603         * tests/havelib/rpathlzyx/Makefile.am: New file, from
21604         gettext/autoconf-lib-link.
21605         * tests/havelib/rpathlzyx/configure.ac: New file, from
21606         gettext/autoconf-lib-link with modifications.
21607         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
21608         with modifications.
21609
21610 2010-04-02  Bruno Haible  <bruno@clisp.org>
21611
21612         gnulib-tool: Create distributed built sources also for the tests.
21613         * gnulib-tool (func_create_testdir): Also generate distributed built
21614         sources in the tests directory.
21615
21616 2010-04-02  Bruno Haible  <bruno@clisp.org>
21617
21618         gnulib-tool: Obey user's environment variables.
21619         * gnulib-tool (func_create_testdir): When creating built sources,
21620         respect the environment variables for autoconf, automake, etc. given by
21621         the user.
21622
21623 2010-04-02  Bruno Haible  <bruno@clisp.org>
21624
21625         gnulib-tool: Provide the value of --m4-base to modules.
21626         * gnulib-tool (func_import, func_create_testdir): Emit a definition
21627         of gl_m4_base.
21628
21629 2010-04-02  Eric Blake  <eblake@redhat.com>
21630
21631         maint.mk: fix some fallout
21632         * NEWS: Document the incompatible change, and its effect on cfg.mk.
21633         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
21634
21635 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
21636
21637         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
21638         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
21639         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
21640         (sc_cast_of_x_alloc_return_value): Likewise.
21641         (sc_cast_of_alloca_return_value): Likewise.
21642         (sc_space_tab): Likewise.
21643         (sc_prohibit_atoi_atof): Likewise.
21644         (sc_prohibit_magic_number_exit): Likewise.
21645         (sc_error_exit_success): Likewise.
21646         (sc_file_system): Likewise.
21647         (sc_prohibit_have_config_h): Likewise.
21648         (sc_require_config_h): Likewise.
21649         (sc_prohibit_HAVE_MBRTOWC): Likewise.
21650         (sc_obsolete_symbols): Likewise.
21651         (sc_changelog): Likewise.
21652         (sc_program_name): Likewise.
21653         (sc_the_the): Likewise.
21654         (sc_trailing_blank): Likewise.
21655         (sc_two_space_separator_in_usage): Likewise.
21656         (sc_useless_cpp_parens): Likewise.
21657         (sc_GPL_version): Likewise.
21658         (sc_GFDL_version): Likewise.
21659         (sc_texinfo_acronym): Likewise.
21660         (sc_prohibit_cvs_keyword): Likewise.
21661         (sc_prohibit_stat_st_blocks): Likewise.
21662         (sc_prohibit_S_IS_definition): Likewise.
21663         (sc_redundant_const): Likewise.
21664         (sc_makefile_TAB_only_indentation): Likewise.
21665         (sc_m4_quote_check): Likewise.
21666         (sc_makefile_path_separator_check): Likewise.
21667         (sc_copyright_check): Likewise.
21668         (sc_Wundef_boolean): Likewise.
21669         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
21670
21671         maint.mk: match 0 or more whitespace-before-function-call '('
21672         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
21673         that have zero or two-and-more spaces between the function name
21674         and the open parenthesis.
21675         (sc_error_message_warn_fatal): Likewise.
21676         (sc_error_message_uppercase): Likewise.
21677         (sc_error_message_period): Likewise.
21678
21679 2010-03-31  Eric Blake  <eblake@redhat.com>
21680
21681         maint.mk: check for [ as well as test
21682         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
21683         Based on a libvirt report by Matthias Bolte.
21684
21685         gnumakefile: don't squelch _version output
21686         * top/GNUmakefile (_version): Create one-shot dependency rather
21687         than using $(shell) when version must be regenerated.
21688         (_autoreconf): Run verbosely, by default.
21689
21690         sys_time: avoid compiler warnings
21691         * lib/sys_time.in.h (includes): Ensure gcc pragma is
21692         unconditional, fixing regression from 2010-03-29.
21693         Reported by Simon Josefsson.
21694
21695 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
21696
21697         maint.mk: s/_header_without_use/_sc_header_without_use/
21698         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
21699         (sc_prohibit_assert_without_use): Use the new name.
21700         (sc_prohibit_close_stream_without_use): Likewise.
21701         (sc_prohibit_getopt_without_use): Likewise.
21702         (sc_prohibit_quotearg_without_use): Likewise.
21703         (sc_prohibit_quote_without_use): Likewise.
21704         (sc_prohibit_long_options_without_use): Likewise.
21705         (sc_prohibit_inttostr_without_use): Likewise.
21706         (sc_prohibit_ignore_value_without_use): Likewise.
21707         (sc_prohibit_error_without_use): Likewise.
21708         (sc_prohibit_xalloc_without_use): Likewise.
21709         (sc_prohibit_hash_without_use): Likewise.
21710         (sc_prohibit_hash_pjw_without_use): Likewise.
21711         (sc_prohibit_safe_read_without_use): Likewise.
21712         (sc_prohibit_argmatch_without_use): Likewise.
21713         (sc_prohibit_canonicalize_without_use): Likewise.
21714         (sc_prohibit_root_dev_ino_without_use): Likewise.
21715         (sc_prohibit_openat_without_use): Likewise.
21716         (sc_prohibit_c_ctype_without_use): Likewise.
21717         (sc_prohibit_signal_without_use): Likewise.
21718         (sc_prohibit_intprops_without_use): Likewise.
21719
21720 2010-03-30  Eric Blake  <eblake@redhat.com>
21721
21722         maint: improve module indicators
21723         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
21724         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
21725         columns, and avoid extra macro expansion.
21726
21727         fdopendir: work around FreeBSD bug
21728         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
21729         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
21730         * modules/dirent (Makefile.am): Substitute it.
21731         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
21732         declaration.
21733         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
21734         fix.
21735         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21736
21737 2010-03-29  Bruno Haible  <bruno@clisp.org>
21738
21739         Emit #pragma system_header after the inclusion guard, not before.
21740         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
21741         guard that spans the entire file, not before. This enables an
21742         optimization in GCC's preprocessor.
21743         * lib/ctype.in.h: Likewise.
21744         * lib/dirent.in.h: Likewise.
21745         * lib/errno.in.h: Likewise.
21746         * lib/float.in.h: Likewise.
21747         * lib/getopt.in.h: Likewise.
21748         * lib/iconv.in.h: Likewise.
21749         * lib/langinfo.in.h: Likewise.
21750         * lib/locale.in.h: Likewise.
21751         * lib/math.in.h: Likewise.
21752         * lib/netdb.in.h: Likewise.
21753         * lib/netinet_in.in.h: Likewise.
21754         * lib/pty.in.h: Likewise.
21755         * lib/sched.in.h: Likewise.
21756         * lib/se-selinux.in.h: Likewise.
21757         * lib/search.in.h: Likewise.
21758         * lib/spawn.in.h: Likewise.
21759         * lib/stdarg.in.h: Likewise.
21760         * lib/stdint.in.h: Likewise.
21761         * lib/string.in.h: Likewise.
21762         * lib/strings.in.h: Likewise.
21763         * lib/sys_file.in.h: Likewise.
21764         * lib/sys_ioctl.in.h: Likewise.
21765         * lib/sys_time.in.h: Likewise.
21766         * lib/sys_times.in.h: Likewise.
21767         * lib/sys_utsname.in.h: Likewise.
21768         * lib/sys_wait.in.h: Likewise.
21769         * lib/sysexits.in.h: Likewise.
21770         * lib/wctype.in.h: Likewise.
21771
21772 2010-03-28  James Youngman  <jay@gnu.org>
21773
21774         save-cwd: don't leak a file descriptor when the caller execs.
21775         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
21776         saved file descriptor.
21777         * modules/save-cwd (Depends-on): Depend on cloexec.
21778
21779 2010-03-29  Bruno Haible  <bruno@clisp.org>
21780
21781         Remove vestiges of fts-lgpl module.
21782         * lib/fts_.h: Assume GNULIB_FTS is 1.
21783         * lib/fts.c: Likewise.
21784         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21785
21786 2010-03-28  Bruno Haible  <bruno@clisp.org>
21787
21788         Fix definition of tests witness macro.
21789         * gnulib-tool (func_import): Fix definition of witness macro.
21790
21791 2010-03-28  Bruno Haible  <bruno@clisp.org>
21792
21793         Fix ioctl's protoype on glibc systems.
21794         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
21795         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
21796         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
21797         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
21798         signature. If not, arrange to replace the ioctl function.
21799         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
21800         REPLACE_IOCTL.
21801         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
21802         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
21803         Reported by Ludovic Courtès <ludo@gnu.org>.
21804
21805 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
21806
21807         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
21808         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
21809         made it so grep -r --include=GLOB* ... did not work.
21810
21811 2010-03-26  Jim Meyering  <meyering@redhat.com>
21812             Eric Blake  <eblake@redhat.com>
21813
21814         maint.mk: prohibit use of test's -o and -a operators
21815         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
21816
21817 2010-03-28  Bruno Haible  <bruno@clisp.org>
21818
21819         Remove unused GNULIB_XYZ macro definitions.
21820         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
21821         invocation.
21822
21823 2010-03-28  Bruno Haible  <bruno@clisp.org>
21824
21825         Mark privileged tests modules.
21826         * modules/idpriv-drop-tests (Status): New section.
21827         * modules/idpriv-droptemp-tests (Status): New section.
21828
21829 2010-03-28  Bruno Haible  <bruno@clisp.org>
21830
21831         Split C++ tests into separate tests modules.
21832         * modules/dirent-c++-tests: New file, extracted from
21833         modules/dirent-tests.
21834         * modules/dirent-tests: Depend on it.
21835         * modules/fcntl-h-c++-tests: New file, extracted from
21836         modules/fcntl-h-tests.
21837         * modules/fcntl-h-tests: Depend on it.
21838         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
21839         * modules/glob-tests: Depend on it.
21840         * modules/iconv-h-c++-tests: New file, extracted from
21841         modules/iconv-h-tests.
21842         * modules/iconv-h-tests: Depend on it.
21843         * modules/langinfo-c++-tests: New file, extracted from
21844         modules/langinfo-tests.
21845         * modules/langinfo-tests: Depend on it.
21846         * modules/locale-c++-tests: New file, extracted from
21847         modules/locale-tests.
21848         * modules/locale-tests: Depend on it.
21849         * modules/math-c++-tests: New file, extracted from modules/math-tests.
21850         * modules/math-tests: Depend on it.
21851         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
21852         * modules/pty-tests: Depend on it.
21853         * modules/search-c++-tests: New file, extracted from
21854         modules/search-tests.
21855         * modules/search-tests: Depend on it.
21856         * modules/signal-c++-tests: New file, extracted from
21857         modules/signal-tests.
21858         * modules/signal-tests: Depend on it.
21859         * modules/spawn-c++-tests: New file, extracted from
21860         modules/spawn-tests.
21861         * modules/spawn-tests: Depend on it.
21862         * modules/stdio-c++-tests: New file, extracted from
21863         modules/stdio-tests.
21864         * modules/stdio-tests: Depend on it.
21865         * modules/stdlib-c++-tests: New file, extracted from
21866         modules/stdlib-tests.
21867         * modules/stdlib-tests: Depend on it.
21868         * modules/string-c++-tests: New file, extracted from
21869         modules/string-tests.
21870         * modules/string-tests: Depend on it.
21871         * modules/sys_ioctl-c++-tests: New file, extracted from
21872         modules/sys_ioctl-tests.
21873         * modules/sys_ioctl-tests: Depend on it.
21874         * modules/sys_select-c++-tests: New file, extracted from
21875         modules/sys_select-tests.
21876         * modules/sys_select-tests: Depend on it.
21877         * modules/sys_socket-c++-tests: New file, extracted from
21878         modules/sys_socket-tests.
21879         * modules/sys_socket-tests: Depend on it.
21880         * modules/sys_stat-c++-tests: New file, extracted from
21881         modules/sys_stat-tests.
21882         * modules/sys_stat-tests: Depend on it.
21883         * modules/sys_time-c++-tests: New file, extracted from
21884         modules/sys_time-tests.
21885         * modules/sys_time-tests: Depend on it.
21886         * modules/time-c++-tests: New file, extracted from modules/time-tests.
21887         * modules/time-tests: Depend on it.
21888         * modules/unistd-c++-tests: New file, extracted from
21889         modules/unistd-tests.
21890         * modules/unistd-tests: Depend on it.
21891         * modules/wchar-c++-tests: New file, extracted from
21892         modules/wchar-tests.
21893         * modules/wchar-tests: Depend on it.
21894         * modules/wctype-c++-tests: New file, extracted from
21895         modules/wctype-tests.
21896         * modules/wctype-tests: Depend on it.
21897         Reported by Simon Josefsson.
21898
21899 2010-03-28  Bruno Haible  <bruno@clisp.org>
21900
21901         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
21902         * gnulib-tool (func_exists_module): New function, extracted from
21903         func_verify_module.
21904         (func_verify_module): Use it.
21905         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
21906         'foo' only if 'foo' exists.
21907         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
21908         module.
21909
21910 2010-03-28  Bruno Haible  <bruno@clisp.org>
21911
21912         gnulib-tool: Add support for special categories of tests.
21913         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
21914         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
21915         (func_usage): Document them.
21916         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
21917         inc_unportable_tests, inc_all_tests): New variables.
21918         (func_acceptable): Consider these variables.
21919         (func_modules_transitive_closure): Make it work when the 'Status' field
21920         consists of multiple words.
21921         (func_import): Store and restore the values of inc_cxx_tests,
21922         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
21923         inc_all_tests in gnulib-comp.m4.
21924         (func_create_testdir): Set inc_all_tests to true.
21925         * doc/gnulib.texi (Extra tests modules): New section.
21926         Suggested by Jim Meyering.
21927
21928 2010-03-28  Bruno Haible  <bruno@clisp.org>
21929
21930         ansi-c++-opt: Allow turning off the C++ build by default.
21931         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
21932         gl_CXX_CHOICE_DEFAULT_NO is defined.
21933         Requested by Eric Blake.
21934
21935 2010-03-28  Bruno Haible  <bruno@clisp.org>
21936
21937         unistd: Avoid #define replacements in C++ mode.
21938         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
21939         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
21940         setsockopt, shutdown, select): In C++, attach a warning to the function
21941         if possible, rather than #defining the symbol to a dysfunctional alias.
21942         Reported by John W. Eaton <jwe@gnu.org>.
21943
21944 2010-03-28  Bruno Haible  <bruno@clisp.org>
21945
21946         Fix link errors on mingw.
21947         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
21948         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
21949         $(LIBSOCKET).
21950         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
21951         $(LIBSOCKET).
21952
21953 2010-03-28  Bruno Haible  <bruno@clisp.org>
21954             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21955
21956         lib-ignore: Determine different options for different compilers.
21957         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
21958         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
21959         Add comments.
21960         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
21961         * NEWS: Mention the change.
21962
21963 2010-03-27  Bruno Haible  <bruno@clisp.org>
21964
21965         Remove unused GNULIB_XYZ macro definitions.
21966         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21967         * modules/fseek (configure.ac): Likewise.
21968         * modules/ioctl (configure.ac): Likewise.
21969         * modules/open (configure.ac): Likewise.
21970         * modules/stdlib-safer (configure.ac): Likewise.
21971
21972 2010-03-27  Bruno Haible  <bruno@clisp.org>
21973
21974         Add a remark about certain modules.
21975         * modules/malloc (Comment): New section.
21976         * modules/realloc (Comment): Likewise.
21977         * modules/sigpipe (Comment): Likewise.
21978
21979 2010-03-27  Bruno Haible  <bruno@clisp.org>
21980
21981         Resolve conflict between the two kinds of module indicators.
21982         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
21983         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
21984         * modules/canonicalize (configure.ac): Invoke
21985         gl_MODULE_INDICATOR_FOR_TESTS.
21986         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
21987         GNULIB_XYZ.
21988         * tests/test-dirent-c++.cc: Likewise.
21989         * tests/test-dirent-safer.c: Likewise.
21990         * tests/test-dup2.c: Likewise.
21991         * tests/test-fchdir.c: Likewise.
21992         * tests/test-fcntl-h-c++.cc: Likewise.
21993         * tests/test-getopt.c: Likewise.
21994         * tests/test-getopt.h: Likewise.
21995         * tests/test-langinfo-c++.cc: Likewise.
21996         * tests/test-locale-c++.cc: Likewise.
21997         * tests/test-math-c++.cc: Likewise.
21998         * tests/test-pty-c++.cc: Likewise.
21999         * tests/test-search-c++.cc: Likewise.
22000         * tests/test-signal-c++.cc: Likewise.
22001         * tests/test-spawn-c++.cc: Likewise.
22002         * tests/test-stdio-c++.cc: Likewise.
22003         * tests/test-stdlib-c++.cc: Likewise.
22004         * tests/test-string-c++.cc: Likewise.
22005         * tests/test-sys_ioctl-c++.cc: Likewise.
22006         * tests/test-sys_select-c++.cc: Likewise.
22007         * tests/test-sys_socket-c++.cc: Likewise.
22008         * tests/test-sys_stat-c++.cc: Likewise.
22009         * tests/test-sys_time-c++.cc: Likewise.
22010         * tests/test-time-c++.cc: Likewise.
22011         * tests/test-unistd-c++.cc: Likewise.
22012         * tests/test-wchar-c++.cc: Likewise.
22013         * tests/uninorm/test-u8-nfc.c: Likewise.
22014         * tests/uninorm/test-u8-nfd.c: Likewise.
22015         * tests/uninorm/test-u8-nfkc.c: Likewise.
22016         * tests/uninorm/test-u8-nfkd.c: Likewise.
22017         * tests/uninorm/test-u16-nfc.c: Likewise.
22018         * tests/uninorm/test-u16-nfd.c: Likewise.
22019         * tests/uninorm/test-u16-nfkc.c: Likewise.
22020         * tests/uninorm/test-u16-nfkd.c: Likewise.
22021         * tests/uninorm/test-u32-nfc.c: Likewise.
22022         * tests/uninorm/test-u32-nfc-big.c: Likewise.
22023         * tests/uninorm/test-u32-nfd.c: Likewise.
22024         * tests/uninorm/test-u32-nfd-big.c: Likewise.
22025         * tests/uninorm/test-u32-nfkc.c: Likewise.
22026         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
22027         * tests/uninorm/test-u32-nfkd.c: Likewise.
22028         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
22029         * tests/uninorm/test-u32-normalize-big.c: Likewise.
22030
22031 2010-03-27  Bruno Haible  <bruno@clisp.org>
22032
22033         Distinguish two kinds of module indicators.
22034         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
22035         gl_MODULE_INDICATOR.
22036         (gl_MODULE_INDICATOR): New macro.
22037         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
22038         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
22039         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
22040         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
22041         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
22042         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
22043         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
22044         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
22045         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
22046         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
22047         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
22048         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
22049         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
22050         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
22051         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
22052         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
22053         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
22054         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
22055         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
22056         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
22057         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
22058         * modules/cloexec (configure.ac): Likewise.
22059         * modules/getopt-gnu (configure.ac): Likewise.
22060         * modules/uninorm/u8-normalize (configure.ac): Likewise.
22061         * modules/uninorm/u16-normalize (configure.ac): Likewise.
22062         * modules/uninorm/u32-normalize (configure.ac): Likewise.
22063         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
22064
22065 2010-03-27  Bruno Haible  <bruno@clisp.org>
22066
22067         New module description field 'Comment'.
22068         * gnulib-tool: New option --extract-comment.
22069         (func_usage): Document it.
22070         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
22071         (func_get_comment): New function.
22072         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
22073
22074 2010-03-27  Bruno Haible  <bruno@clisp.org>
22075
22076         Addendum to 2010-02-07 commit.
22077         * gnulib-tool (func_usage): Document --extract-applicability option.
22078
22079 2010-03-27  Bruno Haible  <bruno@clisp.org>
22080
22081         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
22082         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
22083         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
22084         rather than link errors.
22085
22086 2010-03-27  Bruno Haible  <bruno@clisp.org>
22087
22088         Avoid side effects from tests-related modules on the compilation of lib.
22089         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
22090         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
22091         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
22092         parameter. Emit into AM_CPPFLAGS a definition of the designated C
22093         macro.
22094         (func_import): Define a witness macro. Assign it a value that depends
22095         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
22096         tests-related modules.
22097         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
22098         Reported by Jim Meyering.
22099
22100 2010-03-27  Bruno Haible  <bruno@clisp.org>
22101
22102         Factorize common .m4 code.
22103         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
22104         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
22105         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
22106         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
22107         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
22108         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
22109         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
22110         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
22111         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
22112         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
22113         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
22114         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
22115         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
22116         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
22117         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
22118         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
22119         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
22120         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
22121         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
22122         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
22123         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
22124         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
22125         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
22126         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
22127         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
22128         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
22129         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
22130         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
22131         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
22132         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
22133         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
22134         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
22135
22136 2010-03-27  Bruno Haible  <bruno@clisp.org>
22137
22138         Fix a compilation error on Cygwin with g++ >= 4.3.
22139         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
22140         if it is undefined or if we alias it to chmod.
22141         (lstat): Don't warn about the use of this function if it is undefined
22142         or if we alias it to stat.
22143         Reported by Simon Josefsson.
22144
22145 2010-03-27  Bruno Haible  <bruno@clisp.org>
22146
22147         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
22148         * modules/getlogin (configure.ac): Update.
22149
22150         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
22151         * modules/getlogin_r (configure.ac): Update.
22152
22153         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
22154         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
22155         * modules/inet_ntop (configure.ac): Update.
22156
22157         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
22158         * modules/inet_pton (configure.ac): Update.
22159
22160         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
22161         * modules/mbslen (configure.ac): Update.
22162
22163         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
22164         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
22165         * modules/forkpty (configure.ac): Update.
22166         * modules/openpty (configure.ac): Update.
22167
22168 2010-03-26  Simon Josefsson  <simon@josefsson.org>
22169
22170         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
22171         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
22172
22173 2010-03-25  Eric Blake  <eblake@redhat.com>
22174
22175         maint: use pragma consistently across replacement headers
22176         * lib/ctype.in.h (system_header): Hoist for consistent placement.
22177         * lib/dirent.in.h (system_header): Likewise.
22178         * lib/errno.in.h (system_header): Likewise.
22179         * lib/float.in.h (system_header): Likewise.
22180         * lib/getopt.in.h (system_header): Likewise.
22181         * lib/iconv.in.h (system_header): Likewise.
22182         * lib/inttypes.in.h (system_header): Likewise.
22183         * lib/langinfo.in.h (system_header): Likewise.
22184         * lib/locale.in.h (system_header): Likewise.
22185         * lib/math.in.h (system_header): Likewise.
22186         * lib/netdb.in.h (system_header): Likewise.
22187         * lib/netinet_in.in.h (system_header): Likewise.
22188         * lib/pty.in.h (system_header): Likewise.
22189         * lib/sched.in.h (system_header): Likewise.
22190         * lib/se-selinux.in.h (system_header): Likewise.
22191         * lib/search.in.h (system_header): Likewise.
22192         * lib/spawn.in.h (system_header): Likewise.
22193         * lib/stdarg.in.h (system_header): Likewise.
22194         * lib/stdint.in.h (system_header): Likewise.
22195         * lib/string.in.h (system_header): Likewise.
22196         * lib/strings.in.h (system_header): Likewise.
22197         * lib/sys_file.in.h (system_header): Likewise.
22198         * lib/sys_ioctl.in.h (system_header): Likewise.
22199         * lib/sys_socket.in.h (system_header): Likewise.
22200         * lib/sys_times.in.h (system_header): Likewise.
22201         * lib/sys_utsname.in.h (system_header): Likewise.
22202         * lib/sys_wait.in.h (system_header): Likewise.
22203         * lib/sysexits.in.h (system_header): Likewise.
22204         * lib/unistd.in.h (system_header): Likewise.
22205         * lib/wctype.in.h (system_header): Likewise.
22206
22207         arpa/inet: fix mingw compilation warning
22208         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
22209         Reported by Matthew Bolte.
22210
22211 2010-03-25  Bruno Haible  <bruno@clisp.org>
22212
22213         Avoid collision between gnulib wrapper and libintl wrapper.
22214         * lib/printf.c (printf): Don't define if a printf wrapper is already
22215         defined in intl/printf.c.
22216         Reported by Michel Boaventura <michel@michelboaventura.com>.
22217
22218 2010-03-25  Bruno Haible  <bruno@clisp.org>
22219
22220         Use ANSI C.
22221         * lib/readutmp.h (getutent): Provide ANSI C prototype.
22222
22223 2010-03-25  Bruno Haible  <bruno@clisp.org>
22224
22225         Minor formatting changes.
22226         * lib/acosl.c: Insert space before function argument list.
22227         * lib/argz.c: Likewise.
22228         * lib/asinl.c: Likewise.
22229         * lib/expl.c: Likewise.
22230         * lib/gen-uni-tables.c: Likewise.
22231         * lib/gettext.h: Likewise.
22232         * lib/glthread/lock.h: Likewise.
22233         * lib/tanl.c: Likewise.
22234         * lib/uniname/uniname.c: Likewise.
22235         * tests/test-idpriv-drop.c: Likewise.
22236         * tests/test-idpriv-droptemp.c: Likewise.
22237         * tests/test-lock.c: Likewise.
22238         * tests/test-tls.c: Likewise.
22239         * lib/argp-help.c: Insert space before function-like macro argument
22240         list.
22241         * lib/memcmp.c: Likewise.
22242         * tests/test-base64.c: Likewise.
22243         * lib/localename.c: Insert space before sizeof's argument list.
22244         * lib/safe-alloc.h: Likewise.
22245         * lib/file-set.h: Insert space before macro argument list.
22246         * tests/test-argp.c: Likewise.
22247         * lib/argp-namefrob.h: Insert space before function parameter list.
22248         * lib/getaddrinfo.c: Likewise.
22249         * lib/netdb.in.h: Likewise.
22250         * lib/parse-duration.h: Likewise.
22251         * lib/parse-duration.c: Likewise.
22252         * lib/poll.c: Likewise.
22253         * lib/select.c: Likewise.
22254         * lib/trim.h: Likewise.
22255         * tests/test-usleep.c: Likewise.
22256         * lib/ldexpl.c: Insert space before function parameter list and before
22257         function argument list.
22258         * lib/logl.c: Likewise.
22259         * lib/sqrtl.c: Likewise.
22260         * lib/trim.c: Likewise.
22261         * lib/cosl.c: Use GNU style indentation. Insert space before function
22262         argument list.
22263         * lib/sinl.c: Likewise.
22264         * lib/tsearch.c: Insert space after 'for'.
22265         Reported by Jim Meyering.
22266
22267 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
22268
22269         * maint.mk (sc_Wundef_boolean): Check for the presence of the
22270         config header before grepping, as it's not present before
22271         autoreconf/configure are run.  Reported by Simon Josefsson.
22272
22273 2010-03-23  Bruno Haible  <bruno@clisp.org>
22274
22275         pt_chown: Make it work with automake < 1.11.
22276         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
22277         Reported by Simon Josefsson.
22278
22279 2010-03-23  Bruno Haible  <bruno@clisp.org>
22280
22281         pt_chown: Don't depend on GPLed modules.
22282         * lib/pt_chown.c: Don't include idpriv.h.
22283         (main): Don't drop privileges.
22284         * modules/pt_chown (Depends-on): Remove idpriv-drop.
22285         Reported by Simon Josefsson.
22286
22287 2010-03-24  Simon Josefsson  <simon@josefsson.org>
22288
22289         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
22290         suggestions from karl@freefriends.org (Karl Berry).
22291
22292 2010-03-22  Eric Blake  <eblake@redhat.com>
22293
22294         gethostname: further tweaks
22295         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
22296         are overriding gethostname.
22297         Suggested by Bruno Haible.
22298
22299 2010-03-21  Bruno Haible  <bruno@clisp.org>
22300
22301         Fix comments.
22302         * lib/forkpty.c (rpl_forkpty): Fix comment.
22303         * lib/openpty.c (rpl_openpty): Likewise.
22304         Reported by Eric Blake.
22305
22306 2010-03-22  Eric Blake  <eblake@redhat.com>
22307
22308         gethostname: fix build on mingw
22309         * lib/unistd.in.h (includes): Work around fact that mingw
22310         <winsock2.h> re-includes <unistd.h>, by avoiding any
22311         redeclarations if we are being included by <winsock2.h>.
22312         Reported by Matthias Bolte.
22313
22314 2010-03-21  Bruno Haible  <bruno@clisp.org>
22315
22316         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
22317         * lib/forkpty.c (forkpty): New replacement function, from glibc with
22318         modifications.
22319         * lib/pty.in.h (forkpty): Update declaration. Add comments.
22320         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
22321         provide the replacement.
22322         * modules/forkpty (Depends-on): Add openpty, login_tty.
22323         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
22324         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
22325         * doc/glibc-functions/forkpty.texi: More supported platforms.
22326         * config/srclist.txt: Add forkpty.c (commented).
22327
22328 2010-03-21  Bruno Haible  <bruno@clisp.org>
22329
22330         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
22331         (Makefile.am): Verify that PTY_LIB is defined.
22332
22333         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
22334
22335 2010-03-21  Bruno Haible  <bruno@clisp.org>
22336
22337         Tests for module 'login_tty'.
22338         * modules/login_tty-tests: New file.
22339         * tests/test-login_tty.c: New file.
22340
22341         New module 'login_tty'.
22342         * lib/login_tty.c: New file.
22343         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
22344         * modules/login_tty: New file.
22345         * doc/glibc-functions/login_tty.texi: Mention the new module.
22346
22347 2010-03-21  Bruno Haible  <bruno@clisp.org>
22348
22349         login_tty: Documentation.
22350         * doc/glibc-functions/login_tty.texi: New file.
22351         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
22352
22353 2010-03-21  Bruno Haible  <bruno@clisp.org>
22354
22355         pty: Consistent macro naming.
22356         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
22357         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
22358         * modules/pty (configure.ac): Update.
22359
22360 2010-03-21  Bruno Haible  <bruno@clisp.org>
22361
22362         Tests for openpty: Make stricter.
22363         * tests/test-openpty.c (main): Add test of canonical processing and
22364         erase.
22365         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
22366
22367         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
22368         * lib/openpty.c (openpty): New replacement function.
22369         * lib/pty.in.h: Include <termios.h>.
22370         (openpty): Update declaration. Add comments.
22371         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
22372         is not declared, arrange to provide the replacement. Check for _getpty
22373         and posix_openpt.
22374         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
22375         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
22376         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
22377         * modules/pty-tests (test_pty_c___LDADD): New variable.
22378         * doc/glibc-functions/openpty.texi: More supported platforms.
22379
22380 2010-03-21  Bruno Haible  <bruno@clisp.org>
22381
22382         setenv: Tweaks.
22383         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
22384         the test program.
22385         * doc/posix-functions/setenv.texi: Update platforms list.
22386
22387 2010-03-21  Bruno Haible  <bruno@clisp.org>
22388
22389         New module 'unlockpt'.
22390         * lib/unlockpt.c: New file, from glibc with modifications.
22391         * m4/unlockpt.m4: New file.
22392         * modules/unlockpt: New file.
22393         * lib/stdlib.in.h (unlockpt): New declaration.
22394         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
22395         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
22396         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
22397         HAVE_UNLOCKPT.
22398         * doc/posix-functions/unlockpt.texi: Mention the new module.
22399         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
22400         * config/srclist.txt: Add unlockpt.c (commented).
22401
22402 2010-03-21  Jim Meyering  <meyering@redhat.com>
22403
22404         maint.mk: prohibit inclusion of "intprops.h" without use
22405         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
22406
22407 2010-03-21  Bruno Haible  <bruno@clisp.org>
22408
22409         New module 'grantpt'.
22410         * lib/grantpt.c: New file, from glibc with modifications.
22411         * m4/grantpt.m4: New file.
22412         * modules/grantpt: New file.
22413         * lib/stdlib.in.h (grantpt): New declaration.
22414         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
22415         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
22416         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
22417         HAVE_GRANTPT.
22418         * doc/posix-functions/grantpt.texi: Mention the new module.
22419         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
22420         * config/srclist.txt: Add grantpt.c (commented).
22421
22422 2010-03-21  Bruno Haible  <bruno@clisp.org>
22423
22424         New module 'pt_chown'.
22425         * lib/pt_chown.c: New file, from glibc with modifications.
22426         * lib/pty-private.h: New file, from glibc with modifications.
22427         * modules/pt_chown: New file.
22428         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
22429
22430 2010-03-21  Bruno Haible  <bruno@clisp.org>
22431
22432         Tests for module 'ptsname'.
22433         * modules/ptsname-tests: New file.
22434         * tests/test-ptsname.c: New file.
22435
22436         New module 'ptsname'.
22437         * lib/ptsname.c: New file, from glibc with modifications.
22438         * m4/ptsname.m4: New file.
22439         * modules/ptsname: New file.
22440         * lib/stdlib.in.h (ptsname): New declaration.
22441         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
22442         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
22443         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
22444         HAVE_PTSNAME.
22445         * doc/posix-functions/ptsname.texi: Mention the new module.
22446         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
22447         * config/srclist.txt: Add ptsname.c (commented).
22448
22449 2010-03-21  Bruno Haible  <bruno@clisp.org>
22450
22451         Tests for module 'ttyname_r'.
22452         * modules/ttyname_r-tests: New file.
22453         * tests/test-ttyname_r.c: New file.
22454
22455         New module 'ttyname_r'.
22456         * lib/ttyname_r.c: New file.
22457         * m4/ttyname_r.m4: New file.
22458         * modules/ttyname_r: New file.
22459         * lib/unistd.in.h (ttyname_r): New declaration.
22460         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
22461         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
22462         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
22463         HAVE_TTYNAME_R.
22464         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
22465         * doc/posix-functions/ttyname_r.texi: Mention the new module.
22466
22467 2010-03-20  Bruno Haible  <bruno@clisp.org>
22468
22469         signal: Undefine macro definitions in C++ mode.
22470         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
22471         sigfillset): Undefine macro definitions from the system header in C++
22472         mode.
22473         Reported by John W. Eaton <jwe@gnu.org>.
22474
22475 2010-03-20  Bruno Haible  <bruno@clisp.org>
22476
22477         Ensure no #include statements inside extern "C" { ... }.
22478         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
22479         contain #include statements.
22480         * lib/time.in.h: Likewise.
22481
22482 2010-03-20  Bruno Haible  <bruno@clisp.org>
22483
22484         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
22485         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
22486         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
22487         Reported by John W. Eaton <jwe@gnu.org>.
22488
22489 2010-03-20  Bruno Haible  <bruno@clisp.org>
22490
22491         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
22492         Reported by Jim Meyering.
22493
22494 2010-03-20  Bruno Haible  <bruno@clisp.org>
22495
22496         pipe: Set errno upon failure.
22497         * lib/pipe.h: Specify that when -1 is returned, errno is set.
22498         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
22499         errno value in error message.
22500
22501 2010-03-20  Bruno Haible  <bruno@clisp.org>
22502             Jim Meyering  <meyering@redhat.com>
22503
22504         lchown: Avoid "unused variable" warning.
22505         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
22506
22507 2010-03-20  Bruno Haible  <bruno@clisp.org>
22508
22509         Work around unlink() bug on MacOS X 10.5.6.
22510         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
22511         attempting to unlink a parent directory.
22512         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
22513         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
22514         activate for the replacement function.
22515         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
22516
22517 2010-03-20  Bruno Haible  <bruno@clisp.org>
22518
22519         Fix link errors on Solaris 8.
22520         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
22521         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
22522
22523 2010-03-19  Jim Meyering  <meyering@redhat.com>
22524
22525         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
22526         The _LIBC implementation of build_range_exp correctly honors the
22527         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
22528         However, the non-_LIBC implementation would ignore that syntax-bit
22529         flag and return REG_ERANGE unconditionally.
22530         This change makes it honor that flag.
22531         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
22532         Make two pointer parameters "const".
22533         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
22534         (parse_bracket_exp): Update caller.
22535
22536         regex.m4: correct the reversed range endpoint ([b-a]) test
22537         * m4/regex.m4: When requiring that [b-a] evoke failure,
22538         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
22539         test pass once again for x86-based systems.
22540
22541 2010-03-19  Bruno Haible  <bruno@clisp.org>
22542
22543         scandir: Fix link error on Solaris 8.
22544         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
22545         macros.
22546
22547 2010-03-19  Bruno Haible  <bruno@clisp.org>
22548
22549         getusershell: Fix documentation.
22550         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
22551         module.
22552         * doc/glibc-functions/setusershell.texi: Likewise.
22553
22554         getusershell: Provide declaration, missing on Solaris 9.
22555         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
22556         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
22557         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
22558         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
22559         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22560         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
22561         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
22562         HAVE_GETUSERSHELL.
22563         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
22564
22565 2010-03-19  Bruno Haible  <bruno@clisp.org>
22566
22567         wctype: Provide iswblank function.
22568         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
22569         exists and is fine.
22570         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
22571         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
22572         * tests/test-wctype.c (main): Re-enable the iswblank tests.
22573         * doc/posix-functions/iswblank.texi: Update.
22574
22575 2010-03-19  Bruno Haible  <bruno@clisp.org>
22576
22577         Tests of module 'pty' in C++ mode.
22578         * modules/pty-tests: New file.
22579         * tests/test-pty-c++.cc: New file.
22580         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22581
22582 2010-03-19  Eric Blake  <eblake@redhat.com>
22583
22584         logb: fix documentation
22585         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
22586         1.5 declaration bug.
22587
22588         forkpty, openpty: prefer glibc's const-safe prototype
22589         * lib/forkpty.c (rpl_forkpty): New file.
22590         * lib/openpty.c (rpl_openpty): Likewise.
22591         * modules/forkpty (Files): Distribute it.
22592         * modules/openpty (Files): Likewise.
22593         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
22594         check...
22595         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
22596         replacement for for non-const BSD signature.
22597         * modules/pty (Makefile.am): Substitute witnesses.
22598         * lib/pty.in.h (forkpty, openpty): Declare replacements.
22599         * tests/test-forkpty.c: Update signature check.
22600         * tests/test-openpty.c: Likewise.
22601         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
22602         * doc/glibc-functions/openpty.texi (openpty): Likewise.
22603
22604         forkpty, openpty: split functions into new modules
22605         * modules/pty (Makefile.am): Substitute new witnesses.
22606         (Libraries): Move library detection...
22607         * modules/forkpty: ...into new module.
22608         * modules/openpty: Another new module.
22609         * modules/pty-tests: Rename and split...
22610         * modules/forkpty-tests: ...to this...
22611         * modules/openpty-tests: ...and this.
22612         * tests/test-pty.c: Rename and split...
22613         * tests/test-forkpty.c: ...to this...
22614         * tests/test-openpty.c: ...and this.
22615         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
22616         (gl_PTY): Split library searching...
22617         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
22618         (gl_FORKPTY, gl_OPENPTY): New macros.
22619         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
22620         * NEWS: Mention the split.
22621         * MODULES.html.sh (Misc): Document the modules.
22622         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
22623         * doc/glibc-functions/openpty.texi (openpty): Likewise.
22624
22625         pty: improve replacement header
22626         * lib/pty.in.h: New file.
22627         * modules/pty (Files): Ship it.
22628         (Makefile.am): Always build replacement.
22629         * m4/pty.m4: Rename...
22630         * m4/pty_h.m4: ...to this.
22631         (gl_PTY): Modernize setting of witness macros; update check of
22632         forkpty to take proper advantage of cache.
22633         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
22634
22635         getopt: avoid compiler warning
22636         * lib/getopt.c (attribute_hidden): Remove unused macro.
22637
22638 2010-03-18  Bruno Haible  <bruno@clisp.org>
22639
22640         Fix link errors on Solaris 8.
22641         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
22642         * modules/search-tests (test_search_c___LDADD): Likewise.
22643         * modules/signal-tests (test_signal_c___LDADD): Likewise.
22644         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
22645         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
22646         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
22647         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
22648         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
22649         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
22650
22651 2010-03-18  Bruno Haible  <bruno@clisp.org>
22652
22653         Fix bug introduced on 2010-03-14.
22654         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
22655         (gl_SPAWN_H): Require it.
22656         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
22657         Reported by Simon Josefsson.
22658
22659 2010-03-18  Bruno Haible  <bruno@clisp.org>
22660
22661         Fix typo introduced on 2009-12-31.
22662         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
22663         posix_spawn_file_actions_adddup2.
22664
22665 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
22666         and Eric Blake  <eblake@redhat.com>
22667
22668         test-vc-list-files-git: make more robust
22669         * tests/test-vc-list-files-git.sh: Unset problematic environment
22670         variables.  Chain commands together.
22671
22672 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
22673
22674         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
22675         `AC_CHECK_DECL' invocation.
22676
22677 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
22678
22679         * lib/inttostr.c (inttostr): Make sure the invocation of verify
22680         appears before executable statements. Suggested by Petr Sumbera
22681         <Petr.Sumbera@Sun.COM>.
22682
22683 2010-03-14  Bruno Haible  <bruno@clisp.org>
22684
22685         * tests/test-flock.c (test_exclusive): Comment out a test that causes
22686         portability problems. Instead use a simpler test.
22687         (main): Check that invalid arguments are rejected only on Linux.
22688
22689 2010-03-14  Bruno Haible  <bruno@clisp.org>
22690
22691         Fix bug introduced on 2009-12-31.
22692         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
22693         gl_PREREQ_SYS_H_WINSOCK2 always.
22694         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
22695         SYS_SOCKET_H variable.
22696         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
22697         Update comments.
22698         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
22699         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22700         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22701         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22702         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
22703
22704 2010-03-14  Bruno Haible  <bruno@clisp.org>
22705
22706         Fix values returned by sinl, cosl.
22707         * lib/trigl.h: Add specification comments.
22708         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
22709         that combines the values from the precomputed table with the values of
22710         the Chebyshev polynomials.
22711
22712 2010-03-14  Bruno Haible  <bruno@clisp.org>
22713
22714         Fix compilation error when modules 'posix_spawn[p]' are not used.
22715         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
22716         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
22717
22718 2010-03-14  Bruno Haible  <bruno@clisp.org>
22719
22720         Fix compilation error on mingw when module 'time_r' is not used.
22721         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
22722         is 1.
22723         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
22724         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
22725         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
22726         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
22727
22728 2010-03-14  Bruno Haible  <bruno@clisp.org>
22729
22730         Fix compilation error with Sun C.
22731         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
22732         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
22733         instead of GCC specific ULONG_LONG_MAX.
22734         * lib/xstrtoll.c: Likewise.
22735         * lib/xstrtoull.c: Likewise.
22736
22737 2010-03-13  Bruno Haible  <bruno@clisp.org>
22738
22739         Allow the user to disable C++ code and tests.
22740         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
22741         (gl_PROG_ANSI_CXX): Require it.
22742
22743 2010-03-13  Bruno Haible  <bruno@clisp.org>
22744
22745         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
22746         cases.
22747
22748 2010-03-13  Bruno Haible  <bruno@clisp.org>
22749
22750         Test that gnulib does not break the standard C++ headers.
22751         * tests/test-locale-c++2.cc: New file.
22752         * modules/locale-tests (Files): Add it.
22753         (Makefile.am): Compile it for test-locale-c++.
22754         * tests/test-math-c++2.cc: New file.
22755         * modules/math-tests (Files): Add it.
22756         (Makefile.am): Compile it for test-math-c++.
22757         * tests/test-signal-c++2.cc: New file.
22758         * modules/signal-tests (Files): Add it.
22759         (Makefile.am): Compile it for test-signal-c++.
22760         * tests/test-stdio-c++2.cc: New file.
22761         * modules/stdio-tests (Files): Add it.
22762         (Makefile.am): Compile it for test-stdio-c++.
22763         * tests/test-stdlib-c++2.cc: New file.
22764         * modules/stdlib-tests (Files): Add it.
22765         (Makefile.am): Compile it for test-stdlib-c++.
22766         * tests/test-string-c++2.cc: New file.
22767         * modules/string-tests (Files): Add it.
22768         (Makefile.am): Compile it for test-string-c++.
22769         * tests/test-time-c++2.cc: New file.
22770         * modules/time-tests (Files): Add it.
22771         (Makefile.am): Compile it for test-time-c++.
22772         Reported by John W. Eaton <jwe@gnu.org>.
22773
22774 2010-03-13  Bruno Haible  <bruno@clisp.org>
22775
22776         * gnulib-tool (func_usage): Clarify which options are available for
22777         --create-testdir and --create-megatestdir.
22778
22779 2010-03-13  Bruno Haible  <bruno@clisp.org>
22780
22781         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
22782         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
22783         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
22784         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
22785         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
22786         when appropriate.
22787         Reported by Jim Meyering.
22788
22789 2010-03-12  Simon Josefsson  <simon@josefsson.org>
22790
22791         * gnulib-tool (func_import): Explain origin of code.
22792
22793 2010-03-12  Bruno Haible  <bruno@clisp.org>
22794
22795         Fix problem with automake's definition of CXXLINK.
22796         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
22797         Reported by Simon Josefsson and Ludovic Courtès.
22798
22799 2010-03-12  Bruno Haible  <bruno@clisp.org>
22800
22801         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
22802         stable releases.
22803
22804 2010-03-11  Bruno Haible  <bruno@clisp.org>
22805
22806         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
22807         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
22808         whether the system provides one variant or multiple variants of the
22809         function.
22810         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
22811         C++ compilers.
22812         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
22813         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
22814         Reported by Jim Meyering.
22815
22816 2010-03-09  Simon Josefsson  <simon@josefsson.org>
22817
22818         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
22819
22820 2010-03-08  Bruno Haible  <bruno@clisp.org>
22821
22822         gnulib-tool: Add support for --libtool in --create-testdir.
22823         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
22824         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
22825
22826 2010-03-08  Eric Blake  <eblake@redhat.com>
22827
22828         gnulib-tool.texi: mention possibility of git submodule
22829         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
22830         submodules.
22831         * doc/.gitignore: Ignore another generated file.
22832
22833 2010-03-08  Karl Berry  <karl@gnu.org>
22834
22835         * doc/gnulib-tool.texi (VCS Issues): Mention third option
22836         of committing gnulib files while skipping others.
22837
22838 2010-03-07  Bruno Haible  <bruno@clisp.org>
22839
22840         Tests of module 'wctype' in C++ mode.
22841         * tests/test-wctype-c++.cc: New file.
22842         * modules/wctype-tests (Files): Add it and tests/signature.h.
22843         (Depends-on): Add ansi-c++-opt.
22844         (Makefile.am): Arrange to compile and run test-wctype-c++.
22845
22846         Tests of module 'wchar' in C++ mode.
22847         * tests/test-wchar-c++.cc: New file.
22848         * modules/wchar-tests (Files): Add it and tests/signature.h.
22849         (Depends-on): Add ansi-c++-opt.
22850         (Makefile.am): Arrange to compile and run test-wchar-c++.
22851         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
22852         gl_MODULE_INDICATOR.
22853
22854         Tests of module 'unistd' in C++ mode.
22855         * tests/test-unistd-c++.cc: New file.
22856         * modules/unistd-tests (Files): Add it and tests/signature.h.
22857         (Depends-on): Add ansi-c++-opt.
22858         (Makefile.am): Arrange to compile and run test-unistd-c++.
22859         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
22860         gl_MODULE_INDICATOR.
22861
22862         Tests of module 'time' in C++ mode.
22863         * tests/test-time-c++.cc: New file.
22864         * modules/time-tests (Files): Add it and tests/signature.h.
22865         (Depends-on): Add ansi-c++-opt.
22866         (Makefile.am): Arrange to compile and run test-time-c++.
22867         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22868
22869         Tests of module 'sys_time' in C++ mode.
22870         * tests/test-sys_time-c++.cc: New file.
22871         * modules/sys_time-tests (Files): Add it and tests/signature.h.
22872         (Depends-on): Add ansi-c++-opt.
22873         (Makefile.am): Arrange to compile and run test-sys_time-c++.
22874         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
22875         gl_MODULE_INDICATOR.
22876
22877         Tests of module 'sys_stat' in C++ mode.
22878         * tests/test-sys_stat-c++.cc: New file.
22879         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
22880         (Depends-on): Add ansi-c++-opt.
22881         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
22882         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
22883         gl_MODULE_INDICATOR.
22884
22885         Tests of module 'sys_socket' in C++ mode.
22886         * tests/test-sys_socket-c++.cc: New file.
22887         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
22888         (Depends-on): Add ansi-c++-opt.
22889         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
22890         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
22891         gl_MODULE_INDICATOR.
22892
22893         Tests of module 'sys_select' in C++ mode.
22894         * tests/test-sys_select-c++.cc: New file.
22895         * modules/sys_select-tests (Files): Add it and tests/signature.h.
22896         (Depends-on): Add ansi-c++-opt.
22897         (Makefile.am): Arrange to compile and run test-sys_select-c++.
22898         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
22899         gl_MODULE_INDICATOR.
22900
22901         Tests of module 'sys_ioctl' in C++ mode.
22902         * tests/test-sys_ioctl-c++.cc: New file.
22903         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
22904         (Depends-on): Add ansi-c++-opt.
22905         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
22906         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
22907         gl_MODULE_INDICATOR.
22908
22909         Tests of module 'string' in C++ mode.
22910         * tests/test-string-c++.cc: New file.
22911         * modules/string-tests (Files): Add it and tests/signature.h.
22912         (Depends-on): Add ansi-c++-opt.
22913         (Makefile.am): Arrange to compile and run test-string-c++.
22914         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
22915         gl_MODULE_INDICATOR.
22916
22917         Tests of module 'stdlib' in C++ mode.
22918         * tests/test-stdlib-c++.cc: New file.
22919         * modules/stdlib-tests (Files): Add it and tests/signature.h.
22920         (Depends-on): Add ansi-c++-opt.
22921         (Makefile.am): Arrange to compile and run test-stdlib-c++.
22922         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
22923         gl_MODULE_INDICATOR.
22924
22925         Tests of module 'stdio' in C++ mode.
22926         * tests/test-stdio-c++.cc: New file.
22927         * modules/stdio-tests (Files): Add it and tests/signature.h.
22928         (Depends-on): Add ansi-c++-opt.
22929         (Makefile.am): Arrange to compile and run test-stdio-c++.
22930         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
22931         gl_MODULE_INDICATOR.
22932
22933         Tests of module 'spawn' in C++ mode.
22934         * tests/test-spawn-c++.cc: New file.
22935         * modules/spawn-tests (Files): Add it and tests/signature.h.
22936         (Depends-on): Add ansi-c++-opt.
22937         (Makefile.am): Arrange to compile and run test-spawn-c++.
22938         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
22939         gl_MODULE_INDICATOR.
22940
22941         Tests of module 'signal' in C++ mode.
22942         * tests/test-signal-c++.cc: New file.
22943         * modules/signal-tests (Files): Add it and tests/signature.h.
22944         (Depends-on): Add ansi-c++-opt.
22945         (Makefile.am): Arrange to compile and run test-signal-c++.
22946         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
22947         gl_MODULE_INDICATOR.
22948
22949         Tests of module 'search' in C++ mode.
22950         * tests/test-search-c++.cc: New file.
22951         * modules/search-tests (Files): Add it and tests/signature.h.
22952         (Depends-on): Add ansi-c++-opt.
22953         (Makefile.am): Arrange to compile and run test-search-c++.
22954         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
22955         gl_MODULE_INDICATOR.
22956
22957         Tests of module 'math' in C++ mode.
22958         * tests/test-math-c++.cc: New file.
22959         * modules/math-tests (Files): Add it and tests/signature.h.
22960         (Depends-on): Add ansi-c++-opt.
22961         (Makefile.am): Arrange to compile and run test-math-c++.
22962         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22963
22964         Tests of module 'locale' in C++ mode.
22965         * tests/test-locale-c++.cc: New file.
22966         * modules/locale-tests (Files): Add it and tests/signature.h.
22967         (Depends-on): Add ansi-c++-opt.
22968         (Makefile.am): Arrange to compile and run test-locale-c++.
22969         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
22970         gl_MODULE_INDICATOR.
22971
22972         Tests of module 'langinfo' in C++ mode.
22973         * tests/test-langinfo-c++.cc: New file.
22974         * modules/langinfo-tests (Files): Add it and tests/signature.h.
22975         (Depends-on): Add ansi-c++-opt.
22976         (Makefile.am): Arrange to compile and run test-langinfo-c++.
22977         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
22978         gl_MODULE_INDICATOR.
22979
22980         Tests of module 'iconv-h' in C++ mode.
22981         * tests/test-iconv-h-c++.cc: New file.
22982         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
22983         (Depends-on): Add ansi-c++-opt.
22984         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
22985
22986         Tests of module 'glob' in C++ mode.
22987         * tests/test-glob-c++.cc: New file.
22988         * modules/glob-tests (Files): Add it.
22989         (Depends-on): Add ansi-c++-opt.
22990         (Makefile.am): Arrange to compile and run test-glob-c++.
22991
22992         Tests of module 'fcntl-h' in C++ mode.
22993         * tests/test-fcntl-h-c++.cc: New file.
22994         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
22995         (Depends-on): Add ansi-c++-opt.
22996         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
22997         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
22998         gl_MODULE_INDICATOR.
22999
23000         Tests of module 'dirent' in C++ mode.
23001         * tests/test-dirent-c++.cc: New file.
23002         * modules/dirent-tests (Files): Add it and tests/signature.h.
23003         (Depends-on): Add ansi-c++-opt.
23004         (Makefile.am): Arrange to compile and run test-dirent-c++.
23005         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
23006         gl_MODULE_INDICATOR.
23007
23008         New module 'ansi-c++-opt'.
23009         * modules/ansi-c++-opt: New file.
23010         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
23011
23012         Document C++ namespace mode.
23013         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
23014
23015         wctype: Avoid #define replacements in C++ mode.
23016         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
23017         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
23018         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
23019         In C++, define a namespaced alias symbol.
23020         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
23021         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
23022         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
23023         rule.
23024
23025         wchar: Avoid #define replacements in C++ mode.
23026         * lib/wchar.in.h: Include c++defs.h.
23027         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
23028         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
23029         symbol.
23030         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
23031         * modules/wchar (Depends-on): Add c++defs.
23032         (Makefile.am): Update wchar.h rule.
23033
23034         unistd: Avoid #define replacements in C++ mode.
23035         * lib/unistd.in.h: Include c++defs.h.
23036         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
23037         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
23038         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
23039         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
23040         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
23041         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
23042         symbol.
23043         (environ): Update.
23044         * modules/unistd (Depends-on): Add c++defs.
23045         (Makefile.am): Update unistd.h rule.
23046
23047         time: Avoid #define replacements in C++ mode.
23048         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
23049         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
23050         define a namespaced alias symbol.
23051         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
23052         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
23053         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
23054         * modules/time (Depends-on): Add c++defs, warn-on-use.
23055         (Makefile.am): Update time.h rule.
23056         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
23057         * modules/nanosleep (configure.ac): Likewise.
23058         * modules/strptime (configure.ac): Likewise.
23059         * modules/timegm (configure.ac): Likewise.
23060
23061         sys_time: Avoid #define replacements in C++ mode.
23062         * lib/sys_time.in.h: Include c++defs.h.
23063         (gettimeofday): In C++, define a namespaced alias symbol.
23064         * modules/sys_time (Depends-on): Add c++defs.
23065         (Makefile.am): Update sys/time.h rule.
23066
23067         sys_stat: Avoid #define replacements in C++ mode.
23068         * lib/sys_stat.in.h: Include c++defs.h.
23069         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
23070         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
23071         namespaced alias symbol.
23072         In C++, define a namespaced alias symbol.
23073         * modules/sys_stat (Depends-on): Add c++defs.
23074         (Makefile.am): Update sys/stat.h rule.
23075
23076         sys_socket: Avoid #define replacements in C++ mode.
23077         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
23078         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
23079         definitions also when the system has a <sys/socket.h>.
23080         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
23081         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
23082         In C++, define a namespaced alias symbol.
23083         * modules/sys_socket (Depends-on): Add c++defs.
23084         (Makefile.am): Update sys/socket.h rule.
23085
23086         sys_select: Avoid #define replacements in C++ mode.
23087         * lib/sys_select.in.h: Include c++defs.h. Enable the function
23088         definitions also when the system has a <sys/select.h>.
23089         (select): In C++, define a namespaced alias symbol.
23090         * modules/sys_select (Depends-on): Add c++defs.
23091         (Makefile.am): Update sys/select.h rule.
23092
23093         sys_ioctl: Avoid #define replacements in C++ mode.
23094         * lib/sys_ioctl.in.h: Include c++defs.h.
23095         (ioctl): In C++, define a namespaced alias symbol.
23096         * modules/sys_ioctl (Depends-on): Add c++defs.
23097         (Makefile.am): Update sys/ioctl.h rule.
23098
23099         string: Avoid #define replacements in C++ mode.
23100         * lib/string.in.h: Include c++defs.h.
23101         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
23102         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
23103         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
23104         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
23105         strsignal, strverscmp): In C++, define a namespaced alias symbol.
23106         * modules/string (Depends-on): Add c++defs.
23107         (Makefile.am): Update string.h rule.
23108
23109         stdlib: Avoid #define replacements in C++ mode.
23110         * lib/stdlib.in.h: Include c++defs.h.
23111         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
23112         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
23113         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
23114         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
23115         symbol.
23116         * modules/stdlib (Depends-on): Add c++defs.
23117         (Makefile.am): Update stdlib.h rule.
23118
23119         stdio: Avoid #define replacements in C++ mode.
23120         * lib/stdio.in.h: Include c++defs.h.
23121         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
23122         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
23123         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
23124         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
23125         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
23126         namespaced alias symbol.
23127         * modules/stdio (Depends-on): Add c++defs.
23128         (Makefile.am): Update stdio.h rule.
23129
23130         spawn: Avoid #define replacements in C++ mode.
23131         * lib/spawn.in.h: Include c++defs.h.
23132         (posix_spawn, posix_spawnp, posix_spawnattr_init,
23133         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
23134         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
23135         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
23136         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
23137         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
23138         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
23139         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
23140         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
23141         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
23142         In C++, define a namespaced alias symbol.
23143         * modules/spawn (Depends-on): Add c++defs.
23144         (Makefile.am): Update spawn.h rule.
23145
23146         signal: Avoid #define replacements in C++ mode.
23147         * lib/signal.in.h: Include c++defs.h.
23148         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
23149         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
23150         namespaced alias symbol.
23151         * modules/signal (Depends-on): Add c++defs.
23152         (Makefile.am): Update signal.h rule.
23153
23154         search: Avoid #define replacements in C++ mode.
23155         * lib/search.in.h: Include c++defs.h.
23156         (_gl_search_compar_fn, _gl_search_action_fn): New types.
23157         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
23158         symbol.
23159         * modules/search (Depends-on): Add c++defs.
23160         (Makefile.am): Update search.h rule.
23161
23162         math: Avoid #define replacements in C++ mode.
23163         * lib/math.in.h: Include c++defs.h.
23164         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
23165         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
23166         trunc, truncl): In C++, define a namespaced alias symbol.
23167         * modules/math (Depends-on): Add c++defs.
23168         (Makefile.am): Update math.h rule.
23169
23170         locale: Avoid #define replacements in C++ mode.
23171         * lib/locale.in.h: Include c++defs.h.
23172         (duplocale): In C++, define a namespaced alias symbol.
23173         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
23174         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
23175         * modules/locale (Depends-on): Add c++defs.
23176         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
23177
23178         langinfo: Avoid #define replacements in C++ mode.
23179         * lib/langinfo.in.h: Include c++defs.h.
23180         (nl_langinfo): In C++, define a namespaced alias symbol.
23181         * modules/langinfo (Depends-on): Add c++defs.
23182         (Makefile.am): Update langinfo.h rule.
23183
23184         iconv-h: Avoid #define replacements in C++ mode.
23185         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
23186         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
23187         symbol.
23188         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
23189         whenever iconv is present.
23190         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
23191         (Makefile.am): Update iconv.h rule.
23192
23193         glob: Avoid #define replacements in C++ mode.
23194         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
23195         (_gl_glob_errfunc_fn): New type.
23196         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
23197         symbol.
23198         * modules/glob (Depends-on): Add c++defs, warn-on-use.
23199         (Makefile.am): Update glob.h rule.
23200
23201         fcntl-h: Avoid #define replacements in C++ mode.
23202         * lib/fcntl.in.h: Include c++defs.h.
23203         (fcntl, open, openat): In C++, define a namespaced alias symbol.
23204         * modules/fcntl-h (Depends-on): Add c++defs.
23205         (Makefile.am): Update fcntl.h rule.
23206
23207         dirent: Avoid #define replacements in C++ mode.
23208         * lib/dirent.in.h: Include c++defs.h.
23209         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
23210         namespaced alias symbol.
23211         (dirfd): Update declaration.
23212         * modules/dirent (Depends-on): Add c++defs.
23213         (Makefile.am): Update dirent.h rule.
23214
23215         ctype: Make it usable in C++ code.
23216         * lib/ctype.in.h: Include c++defs.h.
23217         (isblank): Declare as extern "C".
23218         * modules/ctype (Depends-on): Add c++defs.
23219         (Makefile.am): Update ctype.h rule.
23220
23221         New module 'c++defs'.
23222         * modules/c++defs: New file.
23223         * build-aux/c++defs.h: New file.
23224         Reported by John W. Eaton <jwe@gnu.org>.
23225
23226 2010-03-07  Bruno Haible  <bruno@clisp.org>
23227
23228         logb: Provide missing declaration for Cygwin.
23229         * lib/math.in.h (logb): New declaration.
23230         * m4/logb.m4: New file.
23231         * modules/logb (Files): Add m4/logb.m4.
23232         (Depends-on): Add math.
23233         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
23234         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
23235         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
23236         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
23237         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
23238
23239 2010-03-07  Bruno Haible  <bruno@clisp.org>
23240
23241         Fix test-cond link error.
23242         * tests/test-cond.c: Include <stdio.h>.
23243
23244 2010-03-07  Bruno Haible  <bruno@clisp.org>
23245
23246         Fix test-dirent-safer link error.
23247         * modules/dirent-safer-tests (Makefile.am): Define
23248         test_dirent_safer_LDADD.
23249
23250 2010-03-07  Bruno Haible  <bruno@clisp.org>
23251
23252         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
23253         among default module list.
23254
23255 2010-03-07  Bruno Haible  <bruno@clisp.org>
23256
23257         Fix link error on platforms with GNU libiconv.
23258         * modules/unistr/u8-strcoll-tests (Makefile): Define
23259         test_u8_strcoll_LDADD.
23260         * modules/unistr/u16-strcoll-tests (Makefile): Define
23261         test_u16_strcoll_LDADD.
23262         * modules/unistr/u32-strcoll-tests (Makefile): Define
23263         test_u32_strcoll_LDADD.
23264
23265 2010-03-07  Bruno Haible  <bruno@clisp.org>
23266
23267         Use POSIX declarations for socket functions.
23268         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
23269         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
23270         rpl_sendto): Change declaration to match POSIX.
23271         * lib/connect.c (rpl_connect): Likewise.
23272         * lib/accept.c (rpl_accept): Likewise.
23273         * lib/bind.c (rpl_bind): Likewise.
23274         * lib/getpeername.c (rpl_getpeername): Likewise.
23275         * lib/getsockname.c (rpl_getsockname): Likewise.
23276         * lib/recv.c (rpl_recv): Likewise.
23277         * lib/send.c (rpl_send): Likewise.
23278         * lib/recvfrom.c (rpl_recvfrom): Likewise.
23279         * lib/sendto.c (rpl_sendto): Likewise.
23280
23281 2010-03-06  Bruno Haible  <bruno@clisp.org>
23282
23283         Clarify access, euidaccess, faccessat.
23284         * doc/posix-functions/faccessat.texi: Mention security problem under
23285         "Other problems", not "Portability problems".
23286         * doc/posix-functions/access.texi: Likewise. Mention a related security
23287         problem.
23288         * doc/glibc-functions/euidaccess.texi: Mention security problems.
23289         * lib/euidaccess.c: Add comments about platforms.
23290         * lib/unistd.in.h (access, euidaccess): Add warnings.
23291
23292 2010-03-07  Bruno Haible  <bruno@clisp.org>
23293
23294         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
23295         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
23296         (POSIX_SPAWN_SETSCHEDULER): Likewise.
23297         (POSIX_SPAWN_USEVFORK): Define in a way that works when
23298         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
23299         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
23300         declare when POSIX_SPAWN_SETSCHEDULER is zero.
23301         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
23302         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
23303         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
23304         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
23305         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
23306         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
23307         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
23308         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
23309         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
23310         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
23311         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
23312         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
23313         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
23314         Likewise.
23315         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
23316         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
23317         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
23318         Likewise.
23319         * tests/test-spawn.c (main): Make it work when
23320         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
23321
23322 2010-03-07  Bruno Haible  <bruno@clisp.org>
23323
23324         Fix incorrect Makefile.am generation in German locale.
23325         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23326         Execute sed command with character range in C locale.
23327
23328 2010-03-06  Bruno Haible  <bruno@clisp.org>
23329
23330         Tests for module 'iconv-h'.
23331         * modules/iconv-h-tests: New file.
23332         * tests/test-iconv-h.c: New file.
23333
23334         New module 'iconv-h'.
23335         * modules/iconv-h: New file.
23336         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
23337         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
23338         (configure.ac): Remove gl_ICONV_H.
23339         (Makefile.am): Remove rule for iconv.h.
23340
23341 2010-03-06  Bruno Haible  <bruno@clisp.org>
23342
23343         More consistent naming of *.m4 files.
23344         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
23345         * modules/wctype (Files): Update.
23346
23347         More consistent naming of *.m4 files.
23348         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
23349         * modules/wchar (Files): Update.
23350
23351 2010-03-06  Jim Meyering  <meyering@redhat.com>
23352
23353         euidaccess: relax license to LGPLv2+
23354         * modules/euidaccess (License): Relax to LGPLv2+.
23355
23356 2010-03-06  Bruno Haible  <bruno@clisp.org>
23357
23358         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
23359         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
23360         (Makefile.am): Augment lib_SOURCES instead.
23361
23362 2010-03-04  Jim Meyering  <meyering@redhat.com>
23363
23364         utime: remove obsolete module
23365         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
23366         unnecessary for years, and has been marked as obsolete for 10 months.
23367         * modules/utime: Remove file.
23368         * lib/utime.c: Remove file.
23369         * m4/utime.m4: Remove file.
23370         * m4/utimes-null.m4: Remove file.
23371         * doc/posix-functions/utime.texi (utime): Remove reference to
23372         the module.  Move the sole "fixed by gnulib" item into the
23373         "problems not fixed by Gnulib" list.
23374         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
23375
23376 2010-03-05  Simon Josefsson  <simon@josefsson.org>
23377
23378         * modules/exit (License): Relax license to LGPLv2+.
23379         (Status): Mark as obsolete.
23380         * NEWS: Mention deprecated 'exit' module.
23381         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
23382         of now obsolete 'exit'.
23383
23384 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23385
23386         fts-lgpl: remove unused module
23387         * modules/fts-lgpl: Remove.
23388         * MODULES.html.sh (func_all_modules): Adjust.
23389         * check-module (find_included_lib_files): Adjust.
23390         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
23391
23392 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
23393
23394         copy-acl: enhance Solaris ACL error handling
23395         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
23396         * lib/set-mode-acl.c (qset_acl): Likewise.
23397
23398 2010-03-02  Bruno Haible  <bruno@clisp.org>
23399
23400         spawn: Don't override the system defined values on FreeBSD 8.
23401         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
23402         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
23403         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
23404         if HAVE_POSIX_SPAWN is 1.
23405         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
23406
23407 2010-03-01  Bruno Haible  <bruno@clisp.org>
23408
23409         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
23410         regarding Automake.
23411
23412 2010-02-25  Bruno Haible  <bruno@clisp.org>
23413
23414         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
23415         * gnulib-tool: Define 'echo' as a function only before the ksh alias
23416         setting, not afterwards.
23417         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
23418
23419 2010-02-24  Eric Blake  <eblake@redhat.com>
23420
23421         bootstrap, git-version-gen: use timestamp
23422         * build-aux/git-version-gen (scriptversion): Force UTC.
23423         * build-aux/bootstrap (scriptversion): New variable.
23424
23425         bootstrap: allow older git
23426         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
23427         older than 1.6.4.  Requested by the libvirt project.
23428
23429 2010-02-23  Eric Blake  <eblake@redhat.com>
23430
23431         warn-on-use: work with old autoconf
23432         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
23433         AS_VAR semantics of autoconf 2.60.
23434         Reported by Bruno Haible.
23435
23436         bootstrap: improve some comments
23437         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
23438         clarification comments.
23439
23440         gettimeofday: provide correct function
23441         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
23442         when replacement is declared, otherwise provide gettimeofday.
23443         Reported by Michael Goffioul.
23444
23445 2010-02-23  Jim Meyering  <meyering@redhat.com>
23446
23447         lib-ignore: relax license to "unlimited", not LGPLv2+
23448         * modules/lib-ignore (License): Relax to "unlimited".
23449
23450 2010-02-23  Jim Meyering  <meyering@redhat.com>
23451
23452         lib-ignore: relax license to LGPLv2+
23453         * modules/lib-ignore (License): Relax to LGPLv2+.
23454
23455 2010-02-22  Eric Blake  <eblake@redhat.com>
23456
23457         lseek: avoid bash 3.2 broken pipe bug
23458         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
23459         warning from bash 3.2.
23460         Reported by Ben Pfaff, with analysis from Bruno Haible.
23461
23462         bootstrap: support non-FSF copyright holder
23463         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
23464         bootstrap.conf override of COPYRIGHT_HOLDER.
23465         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
23466
23467         bootstrap: interoperate with gettext 0.14.1
23468         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
23469
23470         bootstrap: allow for alternate submodule location
23471         * build-aux/bootstrap (gnulib_path): New variable; use instead of
23472         hardcoding submodule location.
23473         (gnulib_mk): Allow direct use of Makefile.am.
23474
23475         bootstrap: use GNULIB_SRCDIR to reduce disk usage
23476         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
23477         rather than reconfiguring where the submodule points.
23478
23479         gettimeofday: restore support for platforms that lack function
23480         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
23481         replacement if function is missing.
23482         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
23483         * modules/sys_time (Makefile.am): Substitute it.
23484         * lib/sys_time.in.h (gettimeofday): Check it.
23485         Reported by Michael Goffioul.
23486
23487 2010-02-21  Bruno Haible  <bruno@clisp.org>
23488
23489         * lib/stdio.in.h (obstack_printf): Fix typo.
23490
23491 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
23492
23493         vc-list-files: use bzr ls's -R option
23494         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
23495         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
23496
23497 2010-02-21  Jim Meyering  <meyering@redhat.com>
23498
23499         init.sh: fix EXEEXT shims to work also for names like test-prog
23500         * tests/init.sh: Re-exec a better shell, when needed.
23501         If the current shell lacks support for posix $(...), an init.sh-using
23502         test will now try to find a shell that supports that.  If EXEEXT is
23503         nonempty, we also require support for hyphen-in-alias-name and shell
23504         substitutions like ${var#glob}.  Failure to find such a shell results
23505         in a skipped test.
23506
23507 2010-02-21  Bruno Haible  <bruno@clisp.org>
23508
23509         Really work around around "broken pipe" error message from bash 3.2.
23510         * gnulib-tool (func_reset_sigpipe): Remove function.
23511         (echo): In bash 3.2, define to a function that uses printf.
23512         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
23513
23514 2010-02-20  Bruno Haible  <bruno@clisp.org>
23515
23516         Restore support for automake 1.9.6 with autoconf 2.61.
23517         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
23518         Reported by James Youngman <jay@gnu.org>.
23519
23520 2010-02-20  Bruno Haible  <bruno@clisp.org>
23521
23522         Improve *printf warning condition.
23523         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
23524         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
23525         and the function is overridden due to SIGPIPE emulation.
23526
23527 2010-02-20  Bruno Haible  <bruno@clisp.org>
23528
23529         * lib/stdio.in.h: Tweak comments.
23530
23531 2010-02-19  Bruno Haible  <bruno@clisp.org>
23532
23533         Make it easier to find modules. New gnulib-tool option '--find'.
23534         * gnulib-tool: New option --find.
23535         (func_usage): Document it.
23536         (func_sanitize_modulelist): New function, extracted from
23537         func_all_modules.
23538         (func_all_modules): Invoke it.
23539         * doc/gnulib-tool.texi (Which modules?): New node.
23540
23541 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
23542
23543         * lib/sys_select.in.h: Provide select replacement even if
23544         sys/select.h exists on a system, for Interix.
23545
23546 2010-02-18  Jim Meyering  <meyering@redhat.com>
23547
23548         init.sh: don't use $(...) just yet
23549         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
23550         to accommodate e.g., Solaris' /bin/sh.
23551
23552 2010-02-17  Bruno Haible  <bruno@clisp.org>
23553
23554         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
23555         Reported by Ludovic Courtès <ludo@gnu.org>.
23556
23557 2010-02-16  Simon Josefsson  <simon@josefsson.org>
23558
23559         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
23560         linking with -lintl.
23561
23562 2010-02-17  Simon Josefsson  <simon@josefsson.org>
23563
23564         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
23565         if not provided by the system's netdb.h.  Reported by
23566         ludo@gnu.org (Ludovic Courtès).
23567
23568 2010-02-15  Jim Meyering  <meyering@redhat.com>
23569
23570         init.sh: improve portability and efficiency
23571         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
23572         "dummy" in a for loop.
23573         Use '!', not '^' to select the complement of a character set used
23574         in a "case" statement.
23575         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
23576         Suggestions from Eric Blake.
23577
23578         init.sh: automatically accommodate programs with the .exe suffix
23579         Automatically arrange for an invocation of "prog" to execute the
23580         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
23581         may use the simpler "prog", yet still work when built on a system
23582         that requires specifying the added suffix.
23583         Do this by constructing a function named "prog" that invokes
23584         "prog.exe" for each .exe file in selected directories.
23585         * tests/init.sh (find_exe_basenames_): New function.
23586         (create_exe_shim_functions_): New function.
23587         (path_prepend_): Use it.
23588
23589         maint.mk: mark syntax-check sc_*.m rules as .PHONY
23590         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
23591         "make -t syntax-check" doesn't create a ton of sc_*.m files.
23592
23593 2010-02-14  Jim Meyering  <meyering@redhat.com>
23594
23595         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
23596         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
23597         (sc_prohibit_hash_pjw_without_use): New rule.
23598
23599         maint.mk: allow the default upload destination dir to be overridden
23600         * top/maint.mk (upload_dest_dir_): Define with a default that
23601         preserves the status quo.
23602         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
23603         Reported by Peter Simons.
23604
23605         maint.mk: prohibit inclusion of "hash.h" without_use
23606         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
23607
23608 2010-02-10  Jim Meyering  <meyering@redhat.com>
23609
23610         maint.mk: prohibit inclusion of "ignore-value.h" without_use
23611         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
23612
23613 2010-02-09  Eric Blake  <ebb9@byu.net>
23614         and Bruno Haible  <bruno@clisp.org>
23615
23616         obstack-printf-posix: ensure declaration
23617         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
23618         extracted from gl_FUNC_OBSTACK_PRINTF.
23619         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
23620         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
23621         Likewise.
23622         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
23623         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
23624         0.
23625
23626 2010-02-08  Bruno Haible  <bruno@clisp.org>
23627
23628         gnulib-tool: Fix typo in 2010-02-07 commit.
23629         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
23630         Reported by Eric Blake.
23631
23632 2010-02-07  Bruno Haible  <bruno@clisp.org>
23633
23634         gnulib-tool: Fix up caching patches.
23635         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
23636         option --no-cache. Use associative arrays when supported by the shell.
23637         (sed_comments): New variable.
23638         (modcache): Renamed from do_cache.
23639         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
23640         abbreviate unnecessarily.
23641         (have_associative): New variable.
23642         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
23643         way also for ksh and zsh.
23644         (func_init_sed_convert_to_cache_statements): New function, extracted
23645         from func_cache_lookup_module. Add support for associative arrays.
23646         Don't set the c_MODULE_cached variable here. Ignore all lines before
23647         the first field header. Remove only the final newline, not all trailing
23648         newlines. Support empty fields correctly. Limit the use of 'eval' to
23649         assignments.
23650         (func_get_description, func_get_status, func_get_notice,
23651         func_get_applicability, func_get_filelist, func_get_dependencies,
23652         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
23653         func_get_automake_snippet, func_get_include_directive,
23654         func_get_link_directive, func_get_license, func_get_maintainer):
23655         Update documentation. List the unoptimized code first. Add support for
23656         associative arrays. Limit the use of 'eval' to assignments.
23657         (func_get_applicability): Undo stylistic pessimisations.
23658         (func_get_automake_snippet, func_get_include_directive): Reduce code
23659         duplication.
23660         (func_modules_transitive_closure, func_modules_add_dummy,
23661         func_modules_notice, func_modules_to_filelist, func_add_file,
23662         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
23663         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
23664         func_create_testdir, func_create_megatestdir): Update documentation.
23665
23666 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23667
23668         * gnulib-tool (func_cache_lookup_module): Store the module name
23669         belonging to the cache variable; error out if two different
23670         module names map to the same cache variable name.
23671
23672 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23673
23674         gnulib-tool: Make caching optional.
23675         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
23676         Update matching short versions of --no-changelog.
23677         (func_usage): Update.
23678         (sed_extract_cache_prog): Renamed from ...
23679         (sed_extract_prog): ... this; revert to old extraction script.
23680         (func_get_description, func_get_status)
23681         (func_get_notice, func_get_applicability, func_get_filelist)
23682         (func_get_dependencies, func_get_autoconf_early_snippet)
23683         (func_get_autoconf_snippet, func_get_automake_snippet)
23684         (func_get_include_directive, func_get_link_directive)
23685         (func_get_license, func_get_maintainer): If $do_cache is false,
23686         use old, non-caching extraction scripts.
23687         Suggestion by Bruno Haible.
23688
23689 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23690
23691         gnulib-tool: cache module metainformation.
23692         * gnulib-tool (sed_extract_prog): Match newline before each
23693         header, and rewrite header to a shell variable suffix.
23694         (func_cache_var, func_cache_lookup_module): New functions,
23695         to turn a module name into a cache variable prefix, and to
23696         look up and cache module metainformation.
23697         (func_get_description, func_get_status)
23698         (func_get_notice, func_get_applicability, func_get_filelist)
23699         (func_get_dependencies, func_get_autoconf_early_snippet)
23700         (func_get_autoconf_snippet, func_get_automake_snippet)
23701         (func_get_include_directive, func_get_link_directive)
23702         (func_get_license, func_get_maintainer): Use
23703         func_cache_lookup_module.
23704
23705 2010-02-07  Bruno Haible  <bruno@clisp.org>
23706
23707         fnctl: Fix missing dependency.
23708         * modules/fcntl (Depends-on): Add getdtablesize.
23709         Reported by John W. Eaton <jwe@gnu.org>.
23710
23711 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23712
23713         Argp: fix recognition of short alias options.
23714
23715         * lib/argp-parse.c (convert_options): Fix improper use of
23716         `|' between character values.
23717         * tests/test-argp.c (group1_option): New alias option
23718         --read (-r).
23719         (group1_parser): Special handling for 'r'.
23720         (test15): New test case.
23721         (test_fun): Add test15.
23722         * tests/test-argp-2.sh: Update expected --help and --usage
23723         outputs.
23724
23725 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23726
23727         * tests/test-argp.c: Fix indentation.
23728
23729 2010-02-04  Eric Blake  <ebb9@byu.net>
23730
23731         gettimeofday: expose type of second argument
23732         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
23733         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
23734         * tests/test-gettimeofday.c: Use it to silence warning.
23735         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
23736         the issue.
23737
23738 2010-02-03  Jim Meyering  <meyering@redhat.com>
23739
23740         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
23741         * lib/regcomp.c (TYPE_SIGNED): Define.
23742         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
23743
23744         regcomp.c: avoid a new -Wshadow warning
23745         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
23746
23747 2010-02-01  Jim Meyering  <meyering@redhat.com>
23748
23749         removing useless parentheses in cpp #define directives
23750         For motivation, see commit c0221df4, "define STREQ(a,b)
23751         consistently, removing useless parentheses"
23752         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
23753         * lib/mountlist.c (MNT_IGNORE): Likewise.
23754         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
23755
23756 2010-02-01  Eric Blake  <ebb9@byu.net>
23757
23758         sys_time: use link-warning
23759         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
23760         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
23761         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
23762         * modules/sys_time (Depends-on): Add warn-on-use.
23763         (Makefile.am): Always build replacement.
23764         (configure.ac): Update substitutions.
23765         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
23766         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
23767         bother with SYS_TIME_H.
23768         * modules/gettimeofday (configure.ac): Declare indicator.
23769         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
23770         in use.
23771
23772         closein-tests: silence compiler warning
23773         * tests/test-closein.c (main): Ignore fread result.
23774         * modules/closein-tests (Depends-on): Add ignore-value.
23775
23776         tests: silence warning about system return
23777         * tests/test-areadlink-with-size.c (main): Ignore system result.
23778         * tests/test-areadlink.c (main): Likewise.
23779         * tests/test-areadlinkat-with-size.c (main): Likewise.
23780         * tests/test-areadlinkat.c (main): Likewise.
23781         * tests/test-canonicalize-lgpl.c (main): Likewise.
23782         * tests/test-canonicalize.c (main): Likewise.
23783         * tests/test-chown.c (main): Likewise.
23784         * tests/test-fchownat.c (main): Likewise.
23785         * tests/test-fdutimensat.c (main): Likewise.
23786         * tests/test-fstatat.c (main): Likewise.
23787         * tests/test-futimens.c (main): Likewise.
23788         * tests/test-lchown.c (main): Likewise.
23789         * tests/test-link.c (main): Likewise.
23790         * tests/test-linkat.c (main): Likewise.
23791         * tests/test-lstat.c (main): Likewise.
23792         * tests/test-mkdir.c (main): Likewise.
23793         * tests/test-mkdirat.c (main): Likewise.
23794         * tests/test-mkfifo.c (main): Likewise.
23795         * tests/test-mkfifoat.c (main): Likewise.
23796         * tests/test-mknod.c (main): Likewise.
23797         * tests/test-readlink.c (main): Likewise.
23798         * tests/test-remove.c (main): Likewise.
23799         * tests/test-rename.c (main): Likewise.
23800         * tests/test-renameat.c (main): Likewise.
23801         * tests/test-rmdir.c (main): Likewise.
23802         * tests/test-symlink.c (main): Likewise.
23803         * tests/test-symlinkat.c (main): Likewise.
23804         * tests/test-unlink.c (main): Likewise.
23805         * tests/test-unlinkat.c (main): Likewise.
23806         * tests/test-utimens.c (main): Likewise.
23807         * tests/test-utimensat.c (main): Likewise.
23808         * modules/areadlink-tests (Depends-on): Add ignore-value.
23809         * modules/areadlink-with-size-tests (Depends-on): Likewise.
23810         * modules/areadlinkat-tests (Depends-on): Likewise.
23811         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
23812         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
23813         * modules/canonicalize-tests (Depends-on): Likewise.
23814         * modules/chown-tests (Depends-on): Likewise.
23815         * modules/fdutimensat-tests (Depends-on): Likewise.
23816         * modules/futimens-tests (Depends-on): Likewise.
23817         * modules/lchown-tests (Depends-on): Likewise.
23818         * modules/link-tests (Depends-on): Likewise.
23819         * modules/linkat-tests (Depends-on): Likewise.
23820         * modules/lstat-tests (Depends-on): Likewise.
23821         * modules/mkdir-tests (Depends-on): Likewise.
23822         * modules/mkfifo-tests (Depends-on): Likewise.
23823         * modules/mkfifoat-tests (Depends-on): Likewise.
23824         * modules/mknod-tests (Depends-on): Likewise.
23825         * modules/openat-tests (Depends-on): Likewise.
23826         * modules/readlink-tests (Depends-on): Likewise.
23827         * modules/remove-tests (Depends-on): Likewise.
23828         * modules/rename-tests (Depends-on): Likewise.
23829         * modules/renameat-tests (Depends-on): Likewise.
23830         * modules/rmdir-tests (Depends-on): Likewise.
23831         * modules/symlink-tests (Depends-on): Likewise.
23832         * modules/symlinkat-tests (Depends-on): Likewise.
23833         * modules/unlink-tests (Depends-on): Likewise.
23834         * modules/utimens-tests (Depends-on): Likewise.
23835         * modules/utimensat-tests (Depends-on): Likewise.
23836
23837 2010-01-31  Bruno Haible  <bruno@clisp.org>
23838
23839         Perform the same test for many <math.h> functions.
23840         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
23841         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
23842         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
23843         of gl_MATHFUNC.
23844         * modules/acos (configure.ac): Likewise.
23845         * modules/asin (configure.ac): Likewise.
23846         * modules/atan (configure.ac): Likewise.
23847         * modules/atan2 (configure.ac): Likewise.
23848         * modules/cbrt (configure.ac): Likewise.
23849         * modules/copysign (configure.ac): Likewise.
23850         * modules/cos (configure.ac): Likewise.
23851         * modules/cosh (configure.ac): Likewise.
23852         * modules/erf (configure.ac): Likewise.
23853         * modules/erfc (configure.ac): Likewise.
23854         * modules/exp (configure.ac): Likewise.
23855         * modules/fmod (configure.ac): Likewise.
23856         * modules/hypot (configure.ac): Likewise.
23857         * modules/j0 (configure.ac): Likewise.
23858         * modules/j1 (configure.ac): Likewise.
23859         * modules/jn (configure.ac): Likewise.
23860         * modules/lgamma (configure.ac): Likewise.
23861         * modules/log (configure.ac): Likewise.
23862         * modules/log10 (configure.ac): Likewise.
23863         * modules/log1p (configure.ac): Likewise.
23864         * modules/pow (configure.ac): Likewise.
23865         * modules/remainder (configure.ac): Likewise.
23866         * modules/sin (configure.ac): Likewise.
23867         * modules/sinh (configure.ac): Likewise.
23868         * modules/tan (configure.ac): Likewise.
23869         * modules/tanh (configure.ac): Likewise.
23870         * modules/y0 (configure.ac): Likewise.
23871         * modules/y1 (configure.ac): Likewise.
23872         * modules/yn (configure.ac): Likewise.
23873         Suggested by Paolo Bonzini.
23874
23875 2010-01-31  Bruno Haible  <bruno@clisp.org>
23876
23877         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
23878
23879 2010-01-31  Bruno Haible  <bruno@clisp.org>
23880
23881         Work around getdelim() bug on FreeBSD 8.0.
23882         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
23883         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
23884         not work.
23885         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
23886         is 1.
23887         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
23888         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
23889         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
23890         a non-zero size.
23891         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
23892
23893 2010-01-31  Bruno Haible  <bruno@clisp.org>
23894
23895         Work around getline() bug on FreeBSD 8.0.
23896         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
23897         and a non-zero size.
23898         * tests/test-getline.c (main): Likewise.
23899         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
23900         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
23901
23902 2010-01-28  Eric Blake  <ebb9@byu.net>
23903
23904         regex: fix build failure
23905         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
23906         platforms.
23907
23908 2010-01-28  Jim Meyering  <meyering@redhat.com>
23909
23910         regex: do not ignore memory allocation failure
23911         * lib/regex_internal.c (create_cd_newstate): Detect
23912         re_node_set_init_copy failure.   Extracted from glibc commit
23913         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23914
23915         regex: sync more white-space changes from libc
23916         * lib/regex_internal.c: White-space only changes.
23917         * lib/regexec.c: Likewise.
23918
23919         regex: add many uses of __attribute_warn_unused_result__
23920         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
23921         * lib/regexec.c: Likewise.
23922         Extracted from a messy glibc commit.
23923
23924         regcomp.c: spelling and merge-artifact from glibc
23925         * lib/regcomp.c: Merge remainder of glibc's
23926         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23927
23928         regcomp.c: sync white-space changes from glibc
23929         * lib/regcomp.c: Merge to accommodate white space
23930         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23931
23932         regcomp.c: do not ignore internal return values
23933         * lib/regcomp.c: Do not ignore internal return values.
23934         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
23935         but without its white-space changes and spelling fixes.
23936
23937         regex_internal.h: define __attribute_warn_unused_result__
23938         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
23939
23940         maint: add a syntax-check rule to check for vulnerable Makefile.in
23941         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
23942
23943 2010-01-27  Jim Meyering  <meyering@redhat.com>
23944
23945         ncftpput-ftp: clean up spaces
23946         * build-aux/ncftpput-ftp: Make Copyright line consistent.
23947         Remove trailing blanks.
23948
23949 2010-01-27  Simon Josefsson  <simon@josefsson.org>
23950
23951         * build-aux/git-version-gen: Fix copyright statement.
23952         * build-aux/gnupload: Likewise.
23953         * tests/test-arcfour.c: Likewise.
23954         * tests/test-arctwo.c: Likewise.
23955         * tests/test-count-one-bits.c: Likewise.
23956         * tests/test-crc.c: Likewise.
23957         * tests/test-des.c: Likewise.
23958         * tests/test-gc-arcfour.c: Likewise.
23959         * tests/test-gc-arctwo.c: Likewise.
23960         * tests/test-gc-des.c: Likewise.
23961         * tests/test-gc-hmac-md5.c: Likewise.
23962         * tests/test-gc-hmac-sha1.c: Likewise.
23963         * tests/test-gc-md2.c: Likewise.
23964         * tests/test-gc-md4.c: Likewise.
23965         * tests/test-gc-md5.c: Likewise.
23966         * tests/test-gc-pbkdf2-sha1.c: Likewise.
23967         * tests/test-gc-rijndael.c: Likewise.
23968         * tests/test-gc-sha1.c: Likewise.
23969         * tests/test-gc.c: Likewise.
23970         * tests/test-gethostname.c: Likewise.
23971         * tests/test-gettimeofday.c: Likewise.
23972         * tests/test-hash.c: Likewise.
23973         * tests/test-hmac-md5.c: Likewise.
23974         * tests/test-hmac-sha1.c: Likewise.
23975         * tests/test-md2.c: Likewise.
23976         * tests/test-md4.c: Likewise.
23977         * tests/test-md5.c: Likewise.
23978         * tests/test-memchr.c: Likewise.
23979         * tests/test-memchr2.c: Likewise.
23980         * tests/test-memcmp.c: Likewise.
23981         * tests/test-memmem.c: Likewise.
23982         * tests/test-memrchr.c: Likewise.
23983         * tests/test-rawmemchr.c: Likewise.
23984         * tests/test-read-file.c: Likewise.
23985         * tests/test-rijndael.c: Likewise.
23986         * tests/test-sockets.c: Likewise.
23987         * tests/test-strchrnul.c: Likewise.
23988         * tests/test-strstr.c: Likewise.
23989         * tests/test-strtod.c: Likewise.
23990         * build-aux/ncftpput-ftp: Likewise.
23991
23992 2010-01-26  Eric Blake  <ebb9@byu.net>
23993
23994         ignore-value: update recommended header name
23995         * modules/ignore-value (Include): Only use <> for headers that
23996         exist in glibc.
23997
23998 2010-01-26  Jim Meyering  <meyering@redhat.com>
23999
24000         test-userspec.c: avoid compiler warnings
24001         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
24002         and "initialization discards qualifiers..." warnings.
24003         Put the first "uid" in its own scope, and make char* members "const".
24004
24005 2010-01-25  Bruno Haible  <bruno@clisp.org>
24006
24007         gnulib-tool: Make warning diagnostics consistent.
24008         * gnulib-tool (func_warning): New function.
24009         Use it everywhere where gnulib-tool produces output to stderr and it is
24010         not a fatal error.
24011
24012 2010-01-25  Bruno Haible  <bruno@clisp.org>
24013
24014         Fix test dependencies.
24015         * modules/xstrtol-tests (Depends-on): Add inttypes.
24016         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
24017
24018 2010-01-25 Pádraig Brady <P@draigBrady.com>
24019
24020         syntax-check: detect incorrect boolean macro values in config.h
24021         * modules/maintainer-makefile (configure.ac): Parameterize the location
24022         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
24023         The logic is from Eric Blake and the location indicated by Jim Meyering.
24024         Note the more natural CONFIG_HEADER name is prohibited by automake
24025         for backwards compatibility reasons.
24026         * top/maint.mk (sc_Wundef_boolean): New rule.
24027
24028 2010-01-25  Jim Meyering  <meyering@redhat.com>
24029
24030         bootstrap: detect MacOS 10.6's shasum, too
24031         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
24032         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
24033
24034 2010-01-23  Jim Meyering  <meyering@redhat.com>
24035
24036         xstrtoll: new module
24037         * modules/xstrtoll: New file.
24038         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
24039         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
24040         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
24041         ./configure fails if you use this module and lack "long long".
24042         * modules/xstrtoll-tests: New module.
24043         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
24044         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
24045         new init.sh-based test framework.
24046
24047 2010-01-24  Bruno Haible  <bruno@clisp.org>
24048
24049         Tests for module 'yn'.
24050         * modules/yn-tests: New file.
24051         * tests/test-yn.c: New file.
24052
24053         Tests for module 'y1'.
24054         * modules/y1-tests: New file.
24055         * tests/test-y1.c: New file.
24056
24057         Tests for module 'y0'.
24058         * modules/y0-tests: New file.
24059         * tests/test-y0.c: New file.
24060
24061         Tests for module 'tanh'.
24062         * modules/tanh-tests: New file.
24063         * tests/test-tanh.c: New file.
24064
24065         Tests for module 'tan'.
24066         * modules/tan-tests: New file.
24067         * tests/test-tan.c: New file.
24068
24069         Tests for module 'sqrt'.
24070         * modules/sqrt-tests: New file.
24071         * tests/test-sqrt.c: New file.
24072
24073         Tests for module 'sinh'.
24074         * modules/sinh-tests: New file.
24075         * tests/test-sinh.c: New file.
24076
24077         Tests for module 'sin'.
24078         * modules/sin-tests: New file.
24079         * tests/test-sin.c: New file.
24080
24081         Tests for module 'rint'.
24082         * modules/rint-tests: New file.
24083         * tests/test-rint.c: New file.
24084
24085         Tests for module 'remainder'.
24086         * modules/remainder-tests: New file.
24087         * tests/test-remainder.c: New file.
24088
24089         Tests for module 'pow'.
24090         * modules/pow-tests: New file.
24091         * tests/test-pow.c: New file.
24092
24093         Tests for module 'nextafter'.
24094         * modules/nextafter-tests: New file.
24095         * tests/test-nextafter.c: New file.
24096
24097         Tests for module 'modf'.
24098         * modules/modf-tests: New file.
24099         * tests/test-modf.c: New file.
24100
24101         Tests for module 'logb'.
24102         * modules/logb-tests: New file.
24103         * tests/test-logb.c: New file.
24104
24105         Tests for module 'log1p'.
24106         * modules/log1p-tests: New file.
24107         * tests/test-log1p.c: New file.
24108
24109         Tests for module 'log10'.
24110         * modules/log10-tests: New file.
24111         * tests/test-log10.c: New file.
24112
24113         Tests for module 'log'.
24114         * modules/log-tests: New file.
24115         * tests/test-log.c: New file.
24116
24117         Tests for module 'lgamma'.
24118         * modules/lgamma-tests: New file.
24119         * tests/test-lgamma.c: New file.
24120
24121         Tests for module 'ldexp'.
24122         * modules/ldexp-tests: New file.
24123         * tests/test-ldexp.c: New file.
24124
24125         Tests for module 'jn'.
24126         * modules/jn-tests: New file.
24127         * tests/test-jn.c: New file.
24128
24129         Tests for module 'j1'.
24130         * modules/j1-tests: New file.
24131         * tests/test-j1.c: New file.
24132
24133         Tests for module 'j0'.
24134         * modules/j0-tests: New file.
24135         * tests/test-j0.c: New file.
24136
24137         Tests for module 'hypot'.
24138         * modules/hypot-tests: New file.
24139         * tests/test-hypot.c: New file.
24140
24141         Tests for module 'fmod'.
24142         * modules/fmod-tests: New file.
24143         * tests/test-fmod.c: New file.
24144
24145         Tests for module 'fabs'.
24146         * modules/fabs-tests: New file.
24147         * tests/test-fabs.c: New file.
24148
24149         Tests for module 'exp'.
24150         * modules/exp-tests: New file.
24151         * tests/test-exp.c: New file.
24152
24153         Tests for module 'erfc'.
24154         * modules/erfc-tests: New file.
24155         * tests/test-erfc.c: New file.
24156
24157         Tests for module 'erf'.
24158         * modules/erf-tests: New file.
24159         * tests/test-erf.c: New file.
24160
24161         Tests for module 'cosh'.
24162         * modules/cosh-tests: New file.
24163         * tests/test-cosh.c: New file.
24164
24165         Tests for module 'cos'.
24166         * modules/cos-tests: New file.
24167         * tests/test-cos.c: New file.
24168
24169         Tests for module 'copysign'.
24170         * modules/copysign-tests: New file.
24171         * tests/test-copysign.c: New file.
24172
24173         Tests for module 'cbrt'.
24174         * modules/cbrt-tests: New file.
24175         * tests/test-cbrt.c: New file.
24176
24177         Tests for module 'atan2'.
24178         * modules/atan2-tests: New file.
24179         * tests/test-atan2.c: New file.
24180
24181         Tests for module 'atan'.
24182         * modules/atan-tests: New file.
24183         * tests/test-atan.c: New file.
24184
24185         Tests for module 'asin'.
24186         * modules/asin-tests: New file.
24187         * tests/test-asin.c: New file.
24188
24189         Tests for module 'acos'.
24190         * modules/acos-tests: New file.
24191         * tests/test-acos.c: New file.
24192
24193 2010-01-24  Bruno Haible  <bruno@clisp.org>
24194
24195         Fix tests for common <math.h> functions.
24196         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
24197         code snippet that references the function pointer, rather than merely
24198         calling the function. Substitute the FUNC_LIBM variable.
24199         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
24200         * modules/acos (configure.ac): Likewise.
24201         * modules/asin (configure.ac): Likewise.
24202         * modules/atan (configure.ac): Likewise.
24203         * modules/atan2 (configure.ac): Likewise.
24204         * modules/cbrt (configure.ac): Likewise.
24205         * modules/copysign (configure.ac): Likewise.
24206         * modules/cos (configure.ac): Likewise.
24207         * modules/cosh (configure.ac): Likewise.
24208         * modules/erf (configure.ac): Likewise.
24209         * modules/erfc (configure.ac): Likewise.
24210         * modules/exp (configure.ac): Likewise.
24211         * modules/fabs (configure.ac): Likewise.
24212         * modules/fmod (configure.ac): Likewise.
24213         * modules/hypot (configure.ac): Likewise.
24214         * modules/j0 (configure.ac): Likewise.
24215         * modules/j1 (configure.ac): Likewise.
24216         * modules/jn (configure.ac): Likewise.
24217         * modules/ldexp (configure.ac): Likewise.
24218         * modules/lgamma (configure.ac): Likewise.
24219         * modules/log (configure.ac): Likewise.
24220         * modules/log10 (configure.ac): Likewise.
24221         * modules/log1p (configure.ac): Likewise.
24222         * modules/logb (configure.ac): Likewise.
24223         * modules/modf (configure.ac): Likewise.
24224         * modules/nextafter (configure.ac): Likewise.
24225         * modules/pow (configure.ac): Likewise.
24226         * modules/remainder (configure.ac): Likewise.
24227         * modules/rint (configure.ac): Likewise.
24228         * modules/sin (configure.ac): Likewise.
24229         * modules/sinh (configure.ac): Likewise.
24230         * modules/tan (configure.ac): Likewise.
24231         * modules/tanh (configure.ac): Likewise.
24232         * modules/y0 (configure.ac): Likewise.
24233         * modules/y1 (configure.ac): Likewise.
24234         * modules/yn (configure.ac): Likewise.
24235
24236 2010-01-24  Bruno Haible  <bruno@clisp.org>
24237
24238         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
24239         * tests/test-acosl.c (x): New variable.
24240         (main): Store argument in x and fetch it from x.
24241         * tests/test-asinl.c (x): New variable.
24242         (main): Store argument in x and fetch it from x.
24243         * tests/test-atanl.c (x): New variable.
24244         (main): Store argument in x and fetch it from x.
24245         * tests/test-cosl.c (x): New variable.
24246         (main): Store argument in x and fetch it from x.
24247         * tests/test-expl.c (x): New variable.
24248         (main): Store argument in x and fetch it from x.
24249         * tests/test-logl.c (x): New variable.
24250         (main): Store argument in x and fetch it from x.
24251         * tests/test-sinl.c (x): New variable.
24252         (main): Store argument in x and fetch it from x.
24253         * tests/test-sqrtl.c (x): New variable.
24254         (main): Store argument in x and fetch it from x.
24255         * tests/test-tanl.c (x): New variable.
24256         (main): Store argument in x and fetch it from x.
24257
24258 2010-01-24  Bruno Haible  <bruno@clisp.org>
24259
24260         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
24261         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
24262         assignments to the initial TESTS_ENVIRONMENT.
24263         * doc/gnulib.texi (Unit test modules): Document it.
24264         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
24265         TESTS_ENVIRONMENT.
24266         * modules/btowc-tests (Makefile.am): Likewise.
24267         * modules/c-stack-tests (Makefile.am): Likewise.
24268         * modules/c-strcase-tests (Makefile.am): Likewise.
24269         * modules/copy-file-tests (Makefile.am): Likewise.
24270         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
24271         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
24272         * modules/mbrtowc-tests (Makefile.am): Likewise.
24273         * modules/mbscasecmp-tests (Makefile.am): Likewise.
24274         * modules/mbscasestr-tests (Makefile.am): Likewise.
24275         * modules/mbschr-tests (Makefile.am): Likewise.
24276         * modules/mbscspn-tests (Makefile.am): Likewise.
24277         * modules/mbsinit-tests (Makefile.am): Likewise.
24278         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
24279         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
24280         * modules/mbspbrk-tests (Makefile.am): Likewise.
24281         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
24282         * modules/mbsrchr-tests (Makefile.am): Likewise.
24283         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
24284         * modules/mbsspn-tests (Makefile.am): Likewise.
24285         * modules/mbsstr-tests (Makefile.am): Likewise.
24286         * modules/nl_langinfo-tests (Makefile.am): Likewise.
24287         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
24288         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
24289         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
24290         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
24291         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
24292         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
24293         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
24294         * modules/wcrtomb-tests (Makefile.am): Likewise.
24295         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
24296         * modules/wcsrtombs-tests (Makefile.am): Likewise.
24297         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
24298         assignments from TESTS_ENVIRONMENT.
24299         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
24300         augmentation.
24301         * modules/argp-version-etc-tests (Makefile.am): Likewise.
24302         * modules/atexit-tests (Makefile.am): Likewise.
24303         * modules/binary-io-tests (Makefile.am): Likewise.
24304         * modules/closein-tests (Makefile.am): Likewise.
24305         * modules/dprintf-posix-tests (Makefile.am): Likewise.
24306         * modules/exclude-tests (Makefile.am): Likewise.
24307         * modules/fflush-tests (Makefile.am): Likewise.
24308         * modules/fpending-tests (Makefile.am): Likewise.
24309         * modules/fprintf-posix-tests (Makefile.am): Likewise.
24310         * modules/freadahead-tests (Makefile.am): Likewise.
24311         * modules/freadptr-tests (Makefile.am): Likewise.
24312         * modules/freadseek-tests (Makefile.am): Likewise.
24313         * modules/fseek-tests (Makefile.am): Likewise.
24314         * modules/fseeko-tests (Makefile.am): Likewise.
24315         * modules/ftell-tests (Makefile.am): Likewise.
24316         * modules/ftello-tests (Makefile.am): Likewise.
24317         * modules/idpriv-drop-tests (Makefile.am): Likewise.
24318         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
24319         * modules/lseek-tests (Makefile.am): Likewise.
24320         * modules/parse-duration-tests (Makefile.am): Likewise.
24321         * modules/perror-tests (Makefile.am): Likewise.
24322         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
24323         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
24324         * modules/pipe-tests (Makefile.am): Likewise.
24325         * modules/pread-tests (Makefile.am): Likewise.
24326         * modules/printf-posix-tests (Makefile.am): Likewise.
24327         * modules/select-tests (Makefile.am): Likewise.
24328         * modules/sigpipe-tests (Makefile.am): Likewise.
24329         * modules/tsearch-tests (Makefile.am): Likewise.
24330         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
24331         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
24332         * modules/uniname/uniname-tests (Makefile.am): Likewise.
24333         * modules/uniwidth/width-tests (Makefile.am): Likewise.
24334         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
24335         * modules/version-etc-tests (Makefile.am): Likewise.
24336         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
24337         * modules/vprintf-posix-tests (Makefile.am): Likewise.
24338         * modules/xalloc-die-tests (Makefile.am): Likewise.
24339         * modules/xprintf-posix-tests (Makefile.am): Likewise.
24340         * modules/xstrtoimax-tests (Makefile.am): Likewise.
24341         * modules/xstrtol-tests (Makefile.am): Likewise.
24342         * modules/xstrtoumax-tests (Makefile.am): Likewise.
24343         * modules/yesno-tests (Makefile.am): Likewise.
24344         Suggested by Jim Meyering.
24345
24346 2010-01-24  Bruno Haible  <bruno@clisp.org>
24347
24348         More documentation.
24349         * doc/gnulib.texi (Writing modules): New chapter.
24350         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
24351         the new chapter.
24352
24353 2010-01-24  Jim Meyering  <meyering@redhat.com>
24354
24355         maint.mk: do not prepend "./" after filtering
24356         * top/maint.mk (_prepend_srcdir_prefix): New variable
24357         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
24358         "./" when $(srcdir) is ".".
24359
24360         define STREQ(a,b) consistently, removing useless parentheses
24361         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
24362         since the only risk is that "a" or "b" contains an unparenthesized
24363         comma, but if either did that, STREQ would have 3 or more arguments.
24364         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
24365         * lib/fts.c (STREQ): Remove unnecessary parentheses.
24366         * lib/hash-triple.c (STREQ): Likewise.
24367         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
24368         * lib/getugroups.c (STREQ): Likewise.
24369
24370 2010-01-23  Jim Meyering  <meyering@redhat.com>
24371
24372         maint.mk: fix syntax-check in a non-srcdir build directory
24373         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
24374         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
24375
24376 2010-01-22  Jim Meyering  <meyering@redhat.com>
24377
24378         userspec: add unit tests
24379         * tests/test-userspec.c: New file.
24380         * modules/userspec-tests: Likewise.
24381
24382 2010-01-21  Jim Meyering  <meyering@redhat.com>
24383
24384         maint.mk: handle source file names containing "." robustly
24385         * top/maint.mk (_dot_escaped_srcdir): Define.
24386         (VC_LIST): Use it in LHS of sed substitution.
24387
24388 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
24389
24390         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
24391         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
24392         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
24393         from a non-srcdir build.
24394
24395 2010-01-20  Eric Blake  <ebb9@byu.net>
24396
24397         warn-on-use: use instead of link-warning
24398         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
24399         * modules/unistd (Depends-on, Makefile.am): Likewise.
24400         * modules/arpa_inet (Depends-on): Replace link-warning with
24401         warn-on-use.
24402         (Makefile.am): Update rules accordingly.
24403         * modules/ctype (Depends-on, Makefile.am): Likewise.
24404         * modules/dirent (Depends-on, Makefile.am): Likewise.
24405         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
24406         * modules/inttypes (Depends-on, Makefile.am): Likewise.
24407         * modules/langinfo (Depends-on, Makefile.am): Likewise.
24408         * modules/locale (Depends-on, Makefile.am): Likewise.
24409         * modules/math (Depends-on, Makefile.am): Likewise.
24410         * modules/search (Depends-on, Makefile.am): Likewise.
24411         * modules/signal (Depends-on, Makefile.am): Likewise.
24412         * modules/spawn (Depends-on, Makefile.am): Likewise.
24413         * modules/stdlib (Depends-on, Makefile.am): Likewise.
24414         * modules/string (Depends-on, Makefile.am): Likewise.
24415         * modules/strings (Depends-on, Makefile.am): Likewise.
24416         * modules/sys_file (Depends-on, Makefile.am): Likewise.
24417         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
24418         * modules/sys_select (Depends-on, Makefile.am): Likewise.
24419         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
24420         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
24421         * modules/sys_times (Depends-on, Makefile.am): Likewise.
24422         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
24423         * modules/wchar (Depends-on, Makefile.am): Likewise.
24424         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
24425         should be poisoned.
24426         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
24427         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
24428         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
24429         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24430         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
24431         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
24432         * m4/math_h.m4 (gl_MATH_H): Likewise.
24433         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24434         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
24435         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24436         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
24437         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
24438         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
24439         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
24440         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
24441         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24442         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24443         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24444         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
24445         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24446         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24447         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24448         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
24449         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
24450         GL_LINK_WARNING.
24451         * lib/ctype.in.h: Likewise.
24452         * lib/dirent.in.h: Likewise.
24453         * lib/fcntl.in.h: Likewise.
24454         * lib/inttypes.in.h: Likewise.
24455         * lib/langinfo.in.h: Likewise.
24456         * lib/locale.in.h: Likewise.
24457         * lib/math.in.h: Likewise.
24458         * lib/search.in.h: Likewise.
24459         * lib/signal.in.h: Likewise.
24460         * lib/spawn.in.h: Likewise.
24461         * lib/stdio.in.h: Likewise.
24462         * lib/stdlib.in.h: Likewise.
24463         * lib/string.in.h: Likewise.
24464         * lib/strings.in.h: Likewise.
24465         * lib/sys_file.in.h: Likewise.
24466         * lib/sys_ioctl.in.h: Likewise.
24467         * lib/sys_select.in.h: Likewise.
24468         * lib/sys_socket.in.h: Likewise.
24469         * lib/sys_stat.in.h: Likewise.
24470         * lib/sys_times.in.h: Likewise.
24471         * lib/sys_utsname.in.h: Likewise.
24472         * lib/unistd.in.h: Likewise.
24473         * lib/wchar.in.h: Likewise.
24474
24475 2010-01-20  Bruno Haible  <bruno@clisp.org>
24476
24477         Avoid duplicate -lm.
24478         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
24479         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
24480         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
24481         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
24482         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
24483         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
24484         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
24485         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
24486         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
24487         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
24488         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
24489         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
24490         Reported by Paolo Bonzini.
24491
24492 2010-01-19  Bruno Haible  <bruno@clisp.org>
24493
24494         langinfo, nl_langinfo: Relicense under LGPLv2+.
24495         * modules/langinfo (License): Change to LGPLv2+.
24496         * modules/nl_langinfo (License): Likewise.
24497         Patch by David Lutterkort <lutter@redhat.com>.
24498
24499 2010-01-19  Bruno Haible  <bruno@clisp.org>
24500
24501         Avoid compilation error with cc on OSF/1 5.1.
24502         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
24503         statement, not before.
24504         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24505
24506 2010-01-18  Bruno Haible  <bruno@clisp.org>
24507
24508         Avoid a link error due to the __printf__ symbol.
24509         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
24510         and 2.6.x.
24511         (__format__, __printf__): Remove definitions.
24512         * lib/argp-fmtstream.h: Likewise.
24513         * lib/argp.h: Likewise.
24514         * lib/error.h: Likewise.
24515         * lib/vasnprintf.h: Likewise.
24516         * lib/xprintf.h: Likewise.
24517         * lib/xvasprintf.h: Likewise.
24518         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24519
24520 2010-01-18  Bruno Haible  <bruno@clisp.org>
24521
24522         Tests for module 'tanl'.
24523         * modules/tanl-tests: New file.
24524         * tests/test-tanl.c: New file.
24525
24526         Tests for module 'sqrtl'.
24527         * modules/sqrtl-tests: New file.
24528         * tests/test-sqrtl.c: New file.
24529
24530         Tests for module 'sinl'.
24531         * modules/sinl-tests: New file.
24532         * tests/test-sinl.c: New file.
24533
24534         Tests for module 'logl'.
24535         * modules/logl-tests: New file.
24536         * tests/test-logl.c: New file.
24537
24538         Tests for module 'expl'.
24539         * modules/expl-tests: New file.
24540         * tests/test-expl.c: New file.
24541
24542         Tests for module 'cosl'.
24543         * modules/cosl-tests: New file.
24544         * tests/test-cosl.c: New file.
24545
24546         Tests for module 'atanl'.
24547         * modules/atanl-tests: New file.
24548         * tests/test-atanl.c: New file.
24549
24550         Tests for module 'asinl'.
24551         * modules/asinl-tests: New file.
24552         * tests/test-asinl.c: New file.
24553
24554         Tests for module 'acosl'.
24555         * modules/acosl-tests: New file.
24556         * tests/test-acosl.c: New file.
24557
24558         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
24559         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
24560         tanl): Use the standard gnulib idiom.
24561         * lib/cosl.c: Don't include trigl.c and sincosl.c.
24562         * lib/sinl.c: Likewise.
24563         * lib/tanl.c: Don't include trigl.c.
24564         (kernel_tanl): Make static.
24565         * lib/sincosl.c: Include trigl.h first.
24566         * lib/trigl.c: Likewise.
24567         * m4/acosl.m4: New file.
24568         * m4/asinl.m4: New file.
24569         * m4/atanl.m4: New file.
24570         * m4/cosl.m4: New file.
24571         * m4/expl.m4: New file.
24572         * m4/logl.m4: New file.
24573         * m4/sinl.m4: New file.
24574         * m4/sqrtl.m4: New file.
24575         * m4/tanl.m4: New file.
24576         * m4/mathl.m4: Remove file.
24577         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
24578         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
24579         Don't initialize GNULIB_MATHL.
24580         * modules/acosl: New file.
24581         * modules/asinl: New file.
24582         * modules/atanl: New file.
24583         * modules/cosl: New file.
24584         * modules/expl: New file.
24585         * modules/logl: New file.
24586         * modules/sinl: New file.
24587         * modules/sqrtl: New file.
24588         * modules/tanl: New file.
24589         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
24590         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
24591         substitute GNULIB_MATHL.
24592         * modules/mathl: Rewritten.
24593         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
24594         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
24595         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
24596         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
24597         * doc/posix-functions/expl.texi: Mention the 'expl' module.
24598         * doc/posix-functions/logl.texi: Mention the 'logl' module.
24599         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
24600         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
24601         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
24602
24603 2010-01-18  Bruno Haible  <bruno@clisp.org>
24604
24605         sqrt: Make gl_FUNC_SQRT requirable.
24606         * m4/sqrt.m4: New file.
24607         * modules/sqrt (Files): Add it.
24608         (configure.ac): Invoke gl_FUNC_SQRT.
24609
24610 2010-01-18  Bruno Haible  <bruno@clisp.org>
24611
24612         New modules for common <math.h> functions.
24613         * m4/mathfunc.m4: New file.
24614         * modules/acos: New file.
24615         * modules/asin: New file.
24616         * modules/atan: New file.
24617         * modules/atan2: New file.
24618         * modules/cbrt: New file.
24619         * modules/copysign: New file.
24620         * modules/cos: New file.
24621         * modules/cosh: New file.
24622         * modules/erf: New file.
24623         * modules/erfc: New file.
24624         * modules/exp: New file.
24625         * modules/fabs: New file.
24626         * modules/fmod: New file.
24627         * modules/hypot: New file.
24628         * modules/j0: New file.
24629         * modules/j1: New file.
24630         * modules/jn: New file.
24631         * modules/ldexp: New file.
24632         * modules/lgamma: New file.
24633         * modules/log: New file.
24634         * modules/log10: New file.
24635         * modules/log1p: New file.
24636         * modules/logb: New file.
24637         * modules/modf: New file.
24638         * modules/nextafter: New file.
24639         * modules/pow: New file.
24640         * modules/remainder: New file.
24641         * modules/rint: New file.
24642         * modules/sin: New file.
24643         * modules/sinh: New file.
24644         * modules/sqrt: New file.
24645         * modules/tan: New file.
24646         * modules/tanh: New file.
24647         * modules/y0: New file.
24648         * modules/y1: New file.
24649         * modules/yn: New file.
24650         * doc/posix-functions/acos.texi: Mention the 'acos' module.
24651         * doc/posix-functions/asin.texi: Mention the 'asin' module.
24652         * doc/posix-functions/atan.texi: Mention the 'atan' module.
24653         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
24654         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
24655         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
24656         * doc/posix-functions/cos.texi: Mention the 'cos' module.
24657         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
24658         * doc/posix-functions/erf.texi: Mention the 'erf' module.
24659         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
24660         * doc/posix-functions/exp.texi: Mention the 'exp' module.
24661         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
24662         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
24663         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
24664         * doc/posix-functions/j0.texi: Mention the 'j0' module.
24665         * doc/posix-functions/j1.texi: Mention the 'j1' module.
24666         * doc/posix-functions/jn.texi: Mention the 'jn' module.
24667         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
24668         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
24669         * doc/posix-functions/log.texi: Mention the 'log' module.
24670         * doc/posix-functions/log10.texi: Mention the 'log10' module.
24671         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
24672         * doc/posix-functions/logb.texi: Mention the 'logb' module.
24673         * doc/posix-functions/modf.texi: Mention the 'modf' module.
24674         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
24675         * doc/posix-functions/pow.texi: Mention the 'pow' module.
24676         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
24677         * doc/posix-functions/rint.texi: Mention the 'rint' module.
24678         * doc/posix-functions/sin.texi: Mention the 'sin' module.
24679         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
24680         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
24681         * doc/posix-functions/tan.texi: Mention the 'tan' module.
24682         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
24683         * doc/posix-functions/y0.texi: Mention the 'y0' module.
24684         * doc/posix-functions/y1.texi: Mention the 'y1' module.
24685         * doc/posix-functions/yn.texi: Mention the 'yn' module.
24686
24687 2010-01-18  Jim Meyering  <meyering@redhat.com>
24688
24689         ignore-value: relax license to LGPLv2+
24690         * modules/ignore-value (License): Relax to LGPLv2+.
24691
24692         getdate: don't leak when TZ contains two or more '"'s
24693         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
24694         double quote in TZ after the first one.
24695
24696         readtokens: do not leak internal token_lengths buffer
24697         * lib/readtokens.c (readtokens): Free the local, lengths,
24698         when the supplied "token_lengths" parameter is NULL.
24699
24700 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24701
24702         Fix a couple of missing LIBTHREAD link failures on AIX.
24703         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
24704         $(LIBTHREAD).
24705         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
24706
24707         Link test-poll against INET_PTON_LIB.
24708         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
24709         for inet_pton on Solaris 10.
24710
24711 2010-01-17  Bruno Haible  <bruno@clisp.org>
24712
24713         unistdio/*-sprintf: Fix typo in module description.
24714         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
24715         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
24716         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
24717         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
24718         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
24719         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
24720         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
24721         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24722
24723 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24724
24725         gnulib-tool: fix filelist for AIX, HP-UX ksh.
24726         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
24727         variables in shell case patterns, for AIX and HP-UX ksh.
24728
24729         Split large sed scripts, for HP-UX sed.
24730         * modules/stdio: Split sed scripts around 50 sed commands,
24731         to avoid HP-UX limit of 99 commands, in the near future.
24732         * modules/string: Likewise.
24733         * modules/unistd: Likewise.
24734
24735         gnulib-tool: avoid writing in the current directory.
24736         * gnulib-tool (func_emit_lib_Makefile_am)
24737         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
24738         not in the current directory, so concurrent gnulib-tool
24739         instances do not interfere.
24740
24741 2010-01-16  Jim Meyering  <meyering@redhat.com>
24742
24743         doc: update users.txt
24744         * users.txt: Add grep.
24745         (diffutils, gzip): Update URLs.
24746
24747 2010-01-12  Bruno Haible  <bruno@clisp.org>
24748
24749         posix_spawn: Avoid test failure on Cygwin.
24750         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
24751         characters.
24752         Reported by Simon Josefsson.
24753
24754 2010-01-12  Bruno Haible  <bruno@clisp.org>
24755
24756         * tests/test-cond.c (main): When skipping the test, show the reason.
24757
24758 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24759
24760         * lib/striconv.c (str_cd_iconv): Avoid if before free.
24761
24762 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24763
24764         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
24765         VC_LIST_ALWAYS_EXCLUDE_REGEX.
24766
24767 2010-01-12  Eric Blake  <ebb9@byu.net>
24768
24769         build: guarantee AS_VAR_IF
24770         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
24771         (gl_AS_VAR_IF): Move...
24772         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
24773         Reported by Simon Josefsson.
24774
24775 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24776
24777         * lib/stdio.in.h: Fix typo.
24778
24779 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24780
24781         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
24782         libgpg-error.
24783
24784 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24785
24786         * tests/test-xalloc-die.sh: Use $EXEEXT.
24787
24788 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24789             Bruno Haible  <bruno@clisp.org>
24790
24791         getlogin, getlogin_r: Avoid test failure.
24792         * tests/test-getlogin.c: Include <stdio.h>.
24793         (main): Skip the test when the function fails because stdin is not a
24794         tty.
24795         * tests/test-getlogin_r.c: Include <stdio.h>.
24796         (main): Skip the test when the function fails because stdin is not a
24797         tty.
24798
24799 2010-01-11  Eric Blake  <ebb9@byu.net>
24800
24801         tests: avoid more large file warnings
24802         * tests/test-fflush.c: Avoid warning about ftell use.
24803         * tests/test-fseek.c: Avoid warning about fseek use.
24804
24805 2010-01-10  Bruno Haible  <bruno@clisp.org>
24806
24807         nproc: Work better on Linux when /proc and /sys are not mounted.
24808         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
24809         as lower bound when, on glibc/Linux systems,
24810         sysconf (_SC_NPROCESSORS_CONF) returns 1.
24811         Suggested by Pádraig Brady <P@draigbrady.com>.
24812         Reported by Dmitry V. Levin <ldv@altlinux.org>.
24813
24814         nproc: Refactor.
24815         * lib/nproc.c (num_processors_via_affinity_mask): New function,
24816         extracted from num_processors.
24817         (num_processors): Call it.
24818
24819 2010-01-11  Jim Meyering  <meyering@redhat.com>
24820
24821         utimecmp: avoid new warning from upcoming gcc-4.5.0
24822         * lib/utimecmp.c (BILLION): Define using #define rather than an
24823         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
24824
24825 2010-01-11  Eric Blake  <ebb9@byu.net>
24826
24827         math: add portability warnings for classification macros
24828         * modules/math (Depends-on): Add warn-on-use.
24829         (Makefile.am): Provide new substitutions.
24830         * m4/math_h.m4 (gl_MATH_H): Require inline.
24831         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
24832         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
24833         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
24834         implement warnings.
24835
24836         unistd: warn on use of environ without module
24837         * modules/unistd (Depends-on): Add warn-on-use.
24838         (Makefile.am): Provide new substitutions.
24839         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
24840         * lib/unistd.in.h (environ): Wrap with a warning helper function.
24841
24842         stdio: warn on suspicious uses
24843         * modules/stdio (Depends-on): Add warn-on-use.
24844         (Makefile.am): Provide new substitutions.
24845         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
24846         fseeko.
24847         * lib/stdio.in.h (gets): Always warn on use.
24848         (fseek, ftell): Adjust when warnings are issued, and honor
24849         _GL_NO_LARGE_FILES as a way to silence the warning.
24850         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
24851         any warning about large file offsets.
24852         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
24853         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
24854         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
24855         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
24856         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
24857         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
24858         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
24859         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
24860
24861         warn-on-use: new module
24862         * modules/warn-on-use: New file.
24863         * build-aux/warn-on-use.h: Likewise.
24864         * m4/warn-on-use.m4: Likewise.
24865         * MODULES.html.sh (Support for building): Mention it.
24866
24867 2010-01-10  Bruno Haible  <bruno@clisp.org>
24868
24869         Tests for module 'unistr/u32-strdup'.
24870         * modules/unistr/u32-strdup-tests: New file.
24871         * tests/unistr/test-u32-strdup.c: New file.
24872
24873         Tests for module 'unistr/u16-strdup'.
24874         * modules/unistr/u16-strdup-tests: New file.
24875         * tests/unistr/test-u16-strdup.c: New file.
24876
24877         Tests for module 'unistr/u8-strdup'.
24878         * modules/unistr/u8-strdup-tests: New file.
24879         * tests/unistr/test-u8-strdup.c: New file.
24880         * tests/unistr/test-strdup.h: New file.
24881
24882         Tests for module 'unistr/u32-strncmp'.
24883         * modules/unistr/u32-strncmp-tests: New file.
24884         * tests/unistr/test-u32-strncmp.c: New file.
24885
24886         Tests for module 'unistr/u16-strncmp'.
24887         * modules/unistr/u16-strncmp-tests: New file.
24888         * tests/unistr/test-u16-strncmp.c: New file.
24889
24890         Tests for module 'unistr/u8-strncmp'.
24891         * modules/unistr/u8-strncmp-tests: New file.
24892         * tests/unistr/test-u8-strncmp.c: New file.
24893         * tests/unistr/test-strncmp.h: New file.
24894
24895         Tests for module 'unistr/u32-strcoll'.
24896         * modules/unistr/u32-strcoll-tests: New file.
24897         * tests/unistr/test-u32-strcoll.c: New file.
24898
24899         Tests for module 'unistr/u16-strcoll'.
24900         * modules/unistr/u16-strcoll-tests: New file.
24901         * tests/unistr/test-u16-strcoll.c: New file.
24902
24903         Tests for module 'unistr/u8-strcoll'.
24904         * modules/unistr/u8-strcoll-tests: New file.
24905         * tests/unistr/test-u8-strcoll.c: New file.
24906
24907         Tests for module 'unistr/u32-strcmp'.
24908         * modules/unistr/u32-strcmp-tests: New file.
24909         * tests/unistr/test-u32-strcmp.c: New file.
24910         * tests/unistr/test-u32-strcmp.h: New file.
24911
24912         Tests for module 'unistr/u16-strcmp'.
24913         * modules/unistr/u16-strcmp-tests: New file.
24914         * tests/unistr/test-u16-strcmp.c: New file.
24915         * tests/unistr/test-u16-strcmp.h: New file.
24916
24917         Tests for module 'unistr/u8-strcmp'.
24918         * modules/unistr/u8-strcmp-tests: New file.
24919         * tests/unistr/test-u8-strcmp.c: New file.
24920         * tests/unistr/test-u8-strcmp.h: New file.
24921         * tests/unistr/test-strcmp.h: New file.
24922
24923         Tests for module 'unistr/u32-strncat'.
24924         * modules/unistr/u32-strncat-tests: New file.
24925         * tests/unistr/test-u32-strncat.c: New file.
24926
24927         Tests for module 'unistr/u16-strncat'.
24928         * modules/unistr/u16-strncat-tests: New file.
24929         * tests/unistr/test-u16-strncat.c: New file.
24930
24931         Tests for module 'unistr/u8-strncat'.
24932         * modules/unistr/u8-strncat-tests: New file.
24933         * tests/unistr/test-u8-strncat.c: New file.
24934         * tests/unistr/test-strncat.h: New file.
24935
24936         Tests for module 'unistr/u32-strcat'.
24937         * modules/unistr/u32-strcat-tests: New file.
24938         * tests/unistr/test-u32-strcat.c: New file.
24939
24940         Tests for module 'unistr/u16-strcat'.
24941         * modules/unistr/u16-strcat-tests: New file.
24942         * tests/unistr/test-u16-strcat.c: New file.
24943
24944         Tests for module 'unistr/u8-strcat'.
24945         * modules/unistr/u8-strcat-tests: New file.
24946         * tests/unistr/test-u8-strcat.c: New file.
24947         * tests/unistr/test-strcat.h: New file.
24948
24949         Tests for module 'unistr/u32-stpncpy'.
24950         * modules/unistr/u32-stpncpy-tests: New file.
24951         * tests/unistr/test-u32-stpncpy.c: New file.
24952
24953         Tests for module 'unistr/u16-stpncpy'.
24954         * modules/unistr/u16-stpncpy-tests: New file.
24955         * tests/unistr/test-u16-stpncpy.c: New file.
24956
24957         Tests for module 'unistr/u8-stpncpy'.
24958         * modules/unistr/u8-stpncpy-tests: New file.
24959         * tests/unistr/test-u8-stpncpy.c: New file.
24960         * tests/unistr/test-stpncpy.h: New file.
24961
24962         Tests for module 'unistr/u32-strncpy'.
24963         * modules/unistr/u32-strncpy-tests: New file.
24964         * tests/unistr/test-u32-strncpy.c: New file.
24965
24966         Tests for module 'unistr/u16-strncpy'.
24967         * modules/unistr/u16-strncpy-tests: New file.
24968         * tests/unistr/test-u16-strncpy.c: New file.
24969
24970         Tests for module 'unistr/u8-strncpy'.
24971         * modules/unistr/u8-strncpy-tests: New file.
24972         * tests/unistr/test-u8-strncpy.c: New file.
24973         * tests/unistr/test-strncpy.h: New file.
24974
24975         Tests for module 'unistr/u32-stpcpy'.
24976         * modules/unistr/u32-stpcpy-tests: New file.
24977         * tests/unistr/test-u32-stpcpy.c: New file.
24978
24979         Tests for module 'unistr/u16-stpcpy'.
24980         * modules/unistr/u16-stpcpy-tests: New file.
24981         * tests/unistr/test-u16-stpcpy.c: New file.
24982
24983         Tests for module 'unistr/u8-stpcpy'.
24984         * modules/unistr/u8-stpcpy-tests: New file.
24985         * tests/unistr/test-u8-stpcpy.c: New file.
24986         * tests/unistr/test-stpcpy.h: New file.
24987
24988         Tests for module 'unistr/u32-strcpy'.
24989         * modules/unistr/u32-strcpy-tests: New file.
24990         * tests/unistr/test-u32-strcpy.c: New file.
24991
24992         Tests for module 'unistr/u16-strcpy'.
24993         * modules/unistr/u16-strcpy-tests: New file.
24994         * tests/unistr/test-u16-strcpy.c: New file.
24995
24996         Tests for module 'unistr/u8-strcpy'.
24997         * modules/unistr/u8-strcpy-tests: New file.
24998         * tests/unistr/test-u8-strcpy.c: New file.
24999         * tests/unistr/test-strcpy.h: New file.
25000
25001         Tests for module 'unistr/u32-strnlen'.
25002         * modules/unistr/u32-strnlen-tests: New file.
25003         * tests/unistr/test-u32-strnlen.c: New file.
25004
25005         Tests for module 'unistr/u16-strnlen'.
25006         * modules/unistr/u16-strnlen-tests: New file.
25007         * tests/unistr/test-u16-strnlen.c: New file.
25008
25009         Tests for module 'unistr/u8-strnlen'.
25010         * modules/unistr/u8-strnlen-tests: New file.
25011         * tests/unistr/test-u8-strnlen.c: New file.
25012         * tests/unistr/test-strnlen.h: New file.
25013
25014         Tests for module 'unistr/u32-strlen'.
25015         * modules/unistr/u32-strlen-tests: New file.
25016         * tests/unistr/test-u32-strlen.c: New file.
25017
25018         Tests for module 'unistr/u16-strlen'.
25019         * modules/unistr/u16-strlen-tests: New file.
25020         * tests/unistr/test-u16-strlen.c: New file.
25021
25022         Tests for module 'unistr/u8-strlen'.
25023         * modules/unistr/u8-strlen-tests: New file.
25024         * tests/unistr/test-u8-strlen.c: New file.
25025
25026         Tests for module 'unistr/u32-prev'.
25027         * modules/unistr/u32-prev-tests: New file.
25028         * tests/unistr/test-u32-prev.c: New file.
25029
25030         Tests for module 'unistr/u16-prev'.
25031         * modules/unistr/u16-prev-tests: New file.
25032         * tests/unistr/test-u16-prev.c: New file.
25033
25034         Tests for module 'unistr/u8-prev'.
25035         * modules/unistr/u8-prev-tests: New file.
25036         * tests/unistr/test-u8-prev.c: New file.
25037
25038         Tests for module 'unistr/u32-next'.
25039         * modules/unistr/u32-next-tests: New file.
25040         * tests/unistr/test-u32-next.c: New file.
25041
25042         Tests for module 'unistr/u16-next'.
25043         * modules/unistr/u16-next-tests: New file.
25044         * tests/unistr/test-u16-next.c: New file.
25045
25046         Tests for module 'unistr/u8-next'.
25047         * modules/unistr/u8-next-tests: New file.
25048         * tests/unistr/test-u8-next.c: New file.
25049
25050         Tests for module 'unistr/u32-strmbtouc'.
25051         * modules/unistr/u32-strmbtouc-tests: New file.
25052         * tests/unistr/test-u32-strmbtouc.c: New file.
25053
25054         Tests for module 'unistr/u16-strmbtouc'.
25055         * modules/unistr/u16-strmbtouc-tests: New file.
25056         * tests/unistr/test-u16-strmbtouc.c: New file.
25057
25058         Tests for module 'unistr/u8-strmbtouc'.
25059         * modules/unistr/u8-strmbtouc-tests: New file.
25060         * tests/unistr/test-u8-strmbtouc.c: New file.
25061
25062         Tests for module 'unistr/u32-strmblen'.
25063         * modules/unistr/u32-strmblen-tests: New file.
25064         * tests/unistr/test-u32-strmblen.c: New file.
25065
25066         Tests for module 'unistr/u16-strmblen'.
25067         * modules/unistr/u16-strmblen-tests: New file.
25068         * tests/unistr/test-u16-strmblen.c: New file.
25069
25070         Tests for module 'unistr/u8-strmblen'.
25071         * modules/unistr/u8-strmblen-tests: New file.
25072         * tests/unistr/test-u8-strmblen.c: New file.
25073
25074         Tests for module 'unistr/u32-cpy-alloc'.
25075         * modules/unistr/u32-cpy-alloc-tests: New file.
25076         * tests/unistr/test-u32-cpy-alloc.c: New file.
25077
25078         Tests for module 'unistr/u16-cpy-alloc'.
25079         * modules/unistr/u16-cpy-alloc-tests: New file.
25080         * tests/unistr/test-u16-cpy-alloc.c: New file.
25081
25082         Tests for module 'unistr/u8-cpy-alloc'.
25083         * modules/unistr/u8-cpy-alloc-tests: New file.
25084         * tests/unistr/test-u8-cpy-alloc.c: New file.
25085         * tests/unistr/test-cpy-alloc.h: New file.
25086
25087         Tests for module 'unistr/u32-mbsnlen'.
25088         * modules/unistr/u32-mbsnlen-tests: New file.
25089         * tests/unistr/test-u32-mbsnlen.c: New file.
25090
25091         Tests for module 'unistr/u16-mbsnlen'.
25092         * modules/unistr/u16-mbsnlen-tests: New file.
25093         * tests/unistr/test-u16-mbsnlen.c: New file.
25094
25095         Tests for module 'unistr/u8-mbsnlen'.
25096         * modules/unistr/u8-mbsnlen-tests: New file.
25097         * tests/unistr/test-u8-mbsnlen.c: New file.
25098
25099         Tests for module 'unistr/u32-chr'.
25100         * modules/unistr/u32-chr-tests: New file.
25101         * tests/unistr/test-u32-chr.c: New file.
25102
25103         Tests for module 'unistr/u16-chr'.
25104         * modules/unistr/u16-chr-tests: New file.
25105         * tests/unistr/test-u16-chr.c: New file.
25106
25107         Tests for module 'unistr/u8-chr'.
25108         * modules/unistr/u8-chr-tests: New file.
25109         * tests/unistr/test-u8-chr.c: New file.
25110         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
25111
25112         Tests for module 'unistr/u32-cmp2'.
25113         * modules/unistr/u32-cmp2-tests: New file.
25114         * tests/unistr/test-u32-cmp2.c: New file.
25115
25116         Tests for module 'unistr/u16-cmp2'.
25117         * modules/unistr/u16-cmp2-tests: New file.
25118         * tests/unistr/test-u16-cmp2.c: New file.
25119
25120         Tests for module 'unistr/u8-cmp2'.
25121         * modules/unistr/u8-cmp2-tests: New file.
25122         * tests/unistr/test-u8-cmp2.c: New file.
25123         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
25124
25125         Tests for module 'unistr/u32-cmp'.
25126         * modules/unistr/u32-cmp-tests: New file.
25127         * tests/unistr/test-u32-cmp.c: New file.
25128
25129         Tests for module 'unistr/u16-cmp'.
25130         * modules/unistr/u16-cmp-tests: New file.
25131         * tests/unistr/test-u16-cmp.c: New file.
25132
25133         Tests for module 'unistr/u8-cmp'.
25134         * modules/unistr/u8-cmp-tests: New file.
25135         * tests/unistr/test-u8-cmp.c: New file.
25136         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
25137
25138         Tests for module 'unistr/u32-set'.
25139         * modules/unistr/u32-set-tests: New file.
25140         * tests/unistr/test-u32-set.c: New file.
25141
25142         Tests for module 'unistr/u16-set'.
25143         * modules/unistr/u16-set-tests: New file.
25144         * tests/unistr/test-u16-set.c: New file.
25145
25146         Tests for module 'unistr/u8-set'.
25147         * modules/unistr/u8-set-tests: New file.
25148         * tests/unistr/test-u8-set.c: New file.
25149         * tests/unistr/test-set.h: New file.
25150
25151         Tests for module 'unistr/u32-move'.
25152         * modules/unistr/u32-move-tests: New file.
25153         * tests/unistr/test-u32-move.c: New file.
25154
25155         Tests for module 'unistr/u16-move'.
25156         * modules/unistr/u16-move-tests: New file.
25157         * tests/unistr/test-u16-move.c: New file.
25158
25159         Tests for module 'unistr/u8-move'.
25160         * modules/unistr/u8-move-tests: New file.
25161         * tests/unistr/test-u8-move.c: New file.
25162         * tests/unistr/test-move.h: New file.
25163
25164         Tests for module 'unistr/u32-cpy'.
25165         * modules/unistr/u32-cpy-tests: New file.
25166         * tests/unistr/test-u32-cpy.c: New file.
25167
25168         Tests for module 'unistr/u16-cpy'.
25169         * modules/unistr/u16-cpy-tests: New file.
25170         * tests/unistr/test-u16-cpy.c: New file.
25171
25172         Tests for module 'unistr/u8-cpy'.
25173         * modules/unistr/u8-cpy-tests: New file.
25174         * tests/unistr/test-u8-cpy.c: New file.
25175         * tests/unistr/test-cpy.h: New file.
25176
25177 2010-01-09  Bruno Haible  <bruno@clisp.org>
25178
25179         Tests for module 'unistr/u32-uctomb'.
25180         * modules/unistr/u32-uctomb-tests: New file.
25181         * tests/unistr/test-u32-uctomb.c: New file.
25182
25183         Tests for module 'unistr/u16-uctomb'.
25184         * modules/unistr/u16-uctomb-tests: New file.
25185         * tests/unistr/test-u16-uctomb.c: New file.
25186
25187         Tests for module 'unistr/u8-uctomb'.
25188         * modules/unistr/u8-uctomb-tests: New file.
25189         * tests/unistr/test-u8-uctomb.c: New file.
25190
25191         Tests for module 'unistr/u32-mbtoucr'.
25192         * modules/unistr/u32-mbtoucr-tests: New file.
25193         * tests/unistr/test-u32-mbtoucr.c: New file.
25194
25195         Tests for module 'unistr/u16-mbtoucr'.
25196         * modules/unistr/u16-mbtoucr-tests: New file.
25197         * tests/unistr/test-u16-mbtoucr.c: New file.
25198
25199         Tests for module 'unistr/u8-mbtoucr'.
25200         * modules/unistr/u8-mbtoucr-tests: New file.
25201         * tests/unistr/test-u8-mbtoucr.c: New file.
25202
25203         Tests for module 'unistr/u32-mbtouc'.
25204         * modules/unistr/u32-mbtouc-tests: New file.
25205         * tests/unistr/test-u32-mbtouc.c: New file.
25206
25207         Tests for module 'unistr/u16-mbtouc'.
25208         * modules/unistr/u16-mbtouc-tests: New file.
25209         * tests/unistr/test-u16-mbtouc.c: New file.
25210
25211         Tests for module 'unistr/u8-mbtouc'.
25212         * modules/unistr/u8-mbtouc-tests: New file.
25213         * tests/unistr/test-u8-mbtouc.c: New file.
25214
25215         Tests for module 'unistr/u32-mbtouc-unsafe'.
25216         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
25217         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
25218         * tests/unistr/test-u32-mbtouc.h: New file.
25219
25220         Tests for module 'unistr/u16-mbtouc-unsafe'.
25221         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
25222         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
25223         * tests/unistr/test-u16-mbtouc.h: New file.
25224
25225         Tests for module 'unistr/u8-mbtouc-unsafe'.
25226         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
25227         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
25228         * tests/unistr/test-u8-mbtouc.h: New file.
25229
25230         Tests for module 'unistr/u32-mblen'.
25231         * modules/unistr/u32-mblen-tests: New file.
25232         * tests/unistr/test-u32-mblen.c: New file.
25233
25234         Tests for module 'unistr/u16-mblen'.
25235         * modules/unistr/u16-mblen-tests: New file.
25236         * tests/unistr/test-u16-mblen.c: New file.
25237
25238         Tests for module 'unistr/u8-mblen'.
25239         * modules/unistr/u8-mblen-tests: New file.
25240         * tests/unistr/test-u8-mblen.c: New file.
25241
25242         Tests for module 'unistr/u32-to-u16'.
25243         * modules/unistr/u32-to-u16-tests: New file.
25244         * tests/unistr/test-u32-to-u16.c: New file.
25245
25246         Tests for module 'unistr/u32-to-u8'.
25247         * modules/unistr/u32-to-u8-tests: New file.
25248         * tests/unistr/test-u32-to-u8.c: New file.
25249
25250         Tests for module 'unistr/u16-to-u32'.
25251         * modules/unistr/u16-to-u32-tests: New file.
25252         * tests/unistr/test-u16-to-u32.c: New file.
25253
25254         Tests for module 'unistr/u16-to-u8'.
25255         * modules/unistr/u16-to-u8-tests: New file.
25256         * tests/unistr/test-u16-to-u8.c: New file.
25257
25258         Tests for module 'unistr/u8-to-u32'.
25259         * modules/unistr/u8-to-u32-tests: New file.
25260         * tests/unistr/test-u8-to-u32.c: New file.
25261
25262         Tests for module 'unistr/u8-to-u16'.
25263         * modules/unistr/u8-to-u16-tests: New file.
25264         * tests/unistr/test-u8-to-u16.c: New file.
25265
25266         Tests for module 'unistr/u32-check'.
25267         * modules/unistr/u32-check-tests: New file.
25268         * tests/unistr/test-u32-check.c: New file.
25269
25270         Tests for module 'unistr/u16-check'.
25271         * modules/unistr/u16-check-tests: New file.
25272         * tests/unistr/test-u16-check.c: New file.
25273
25274         Tests for module 'unistr/u8-check'.
25275         * modules/unistr/u8-check-tests: New file.
25276         * tests/unistr/test-u8-check.c: New file.
25277
25278         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
25279         (category_equals): New function.
25280         (main): Add more tests.
25281         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
25282
25283         * tests/unictype/test-bidi_byname.c (main): Add more tests.
25284
25285 2010-01-10  Bruno Haible  <bruno@clisp.org>
25286
25287         unistr/u*-strcoll: Try harder to distinguish different strings.
25288         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
25289         compare s1 and s2 to see if they are different.
25290
25291 2010-01-10  Bruno Haible  <bruno@clisp.org>
25292
25293         unistr/u*-stpncpy: Fix the return value.
25294         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
25295         description of the return value consistent with stpncpy in glibc.
25296         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
25297         written non-NUL unit.
25298
25299 2010-01-10  Bruno Haible  <bruno@clisp.org>
25300
25301         unistr/u*-next: Add missing dependencies.
25302         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
25303         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
25304         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
25305
25306 2010-01-10  Bruno Haible  <bruno@clisp.org>
25307
25308         unistr/u8-mbsnlen: Fix return value for incomplete character.
25309         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
25310         u8_mblen.
25311         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
25312         Remove unistr/u8-mblen.
25313         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
25314         u16_mblen.
25315         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
25316         Remove unistr/u16-mblen.
25317
25318 2010-01-10  Bruno Haible  <bruno@clisp.org>
25319
25320         wchar: Fix compilation error when <wchar.h> is used from coreutils.
25321         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
25322         Reported by Brian Gough <bjg@gnu.org> and
25323         Chris Clayton <chris2553@googlemail.com> via
25324         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
25325
25326 2010-01-09  Bruno Haible  <bruno@clisp.org>
25327
25328         unistr/u16-to-u32: Reject invalid input.
25329         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
25330         u16_mbtouc.
25331         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
25332         Remove unistr/u16-mbtouc.
25333
25334         unistr/u16-to-u8: Reject invalid input.
25335         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
25336         u16_mbtouc.
25337         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
25338         Remove unistr/u16-mbtouc.
25339
25340         unistr/u8-to-u32: Reject invalid input.
25341         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
25342         u8_mbtouc.
25343         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
25344         Remove unistr/u8-mbtouc.
25345
25346         unistr/u8-to-u16: Reject invalid input.
25347         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
25348         u8_mbtouc.
25349         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
25350         Remove unistr/u8-mbtouc.
25351
25352 2010-01-09  Bruno Haible  <bruno@clisp.org>
25353
25354         Tests for module 'getlogin'.
25355         * modules/getlogin-tests: New file.
25356         * tests/test-getlogin.c: New file.
25357
25358         New module 'getlogin'.
25359         * lib/unistd.in.h (getlogin): New declaration.
25360         * lib/getlogin.c: New file.
25361         * m4/getlogin.m4: New file.
25362         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
25363         HAVE_GETLOGIN.
25364         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
25365         HAVE_GETLOGIN.
25366         * modules/getlogin: New file.
25367         * doc/posix-functions/getlogin.texi: Mention the new module.
25368         Reported by John W. Eaton <jwe@gnu.org>.
25369
25370 2010-01-09  Bruno Haible  <bruno@clisp.org>
25371
25372         getlogin_r: Support for native Windows.
25373         * lib/getlogin_r.c: Include <windows.h>
25374         (getlogin_r): Implement for native Windows.
25375         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
25376         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
25377         via John W. Eaton <jwe@gnu.org>.
25378
25379 2010-01-09  Bruno Haible  <bruno@clisp.org>
25380
25381         getlogin_r: Small fixes.
25382         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
25383         succeeds.
25384         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
25385         before testing whether getlogin_r is declared. No need to set
25386         HAVE_DECL_GETLOGIN_R to 1.
25387         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
25388
25389 2010-01-09  Bruno Haible  <bruno@clisp.org>
25390
25391         * lib/unistd.in.h (getlogin_r): Add comment.
25392
25393 2010-01-09  Bruno Haible  <bruno@clisp.org>
25394
25395         Tests for module 'getlogin_r'.
25396         * modules/getlogin_r-tests: New file.
25397         * tests/test-getlogin_r.c: New file.
25398
25399 2010-01-09  Jim Meyering  <meyering@redhat.com>
25400
25401         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
25402         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
25403         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
25404
25405 2010-01-08  Simon Josefsson  <simon@josefsson.org>
25406
25407         * lib/dup2.c (rpl_dup2): Improve comment.
25408
25409 2010-01-08  Eric Blake  <ebb9@byu.net>
25410
25411         maint.mk: allow packages to add makefile @@ exceptions
25412         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
25413         (sc_makefile_check): Rename...
25414         (sc_makefile_at_at_check): ...to this, and use hook.
25415
25416         dup2: work around mingw bug
25417         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
25418         Reported by Simon Josefsson.
25419
25420 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
25421
25422         glob: Fix C++ compilation.
25423         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
25424         C++.
25425
25426 2010-01-07  Bruno Haible  <bruno@clisp.org>
25427
25428         Fix indentation of wctype.in.h, broken since 2007-01-06.
25429         * lib/wctype.in.h: Fix indentation of preprocessor directives.
25430
25431 2010-01-07  Bruno Haible  <bruno@clisp.org>
25432
25433         mbslen: Avoid collision with system function.
25434         * lib/string.in.h [MirBSD]: Include <wchar.h>.
25435         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
25436         * m4/mbslen.m4: New file.
25437         * modules/mbslen (Files): Add it.
25438         (configure.ac): Invoke gl_MBSLEN.
25439         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
25440         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
25441         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
25442         via Ian Beckwith <ianb@erislabs.net>.
25443
25444 2010-01-07  Bruno Haible  <bruno@clisp.org>
25445
25446         dirent: Document the last fix.
25447         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
25448
25449 2010-01-07  Bruno Haible  <bruno@clisp.org>
25450
25451         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
25452         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
25453         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
25454         va_list are defined.
25455         * doc/posix-headers/stdio.texi: Document the bug of missing types.
25456         Reported by Eric Blake.
25457
25458 2010-01-07  Bruno Haible  <bruno@clisp.org>
25459
25460         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
25461         * modules/xlist (Depends-on): Add 'list',
25462         * modules/xoset (Depends-on): Add 'oset'.
25463         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25464
25465 2010-01-07  Bruno Haible  <bruno@clisp.org>
25466
25467         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
25468         * doc/posix-functions/strncasecmp.texi: Likewise.
25469
25470 2010-01-07  Bruno Haible  <bruno@clisp.org>
25471
25472         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
25473
25474 2010-01-07  John W. Eaton  <jwe@octave.org>
25475
25476         wctype: allow C++ use
25477         * lib/wctype.in.h: Add extern "C" block for C++.
25478
25479 2010-01-06  Eric Blake  <ebb9@byu.net>
25480
25481         maint.mk: detect incorrect GFDL usage
25482         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
25483
25484 2010-01-06  Jim Meyering  <meyering@redhat.com>
25485         and Eric Blake  <ebb9@byu.net>
25486
25487         maint.mk: ignore multi-line copyright in NEWS
25488         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
25489
25490 2010-01-06  Eric Blake  <ebb9@byu.net>
25491
25492         select: add missing dependency
25493         * modules/select-tests (Depends-on): Move sockets dependency...
25494         * modules/select (Depends-on): ...here.
25495         Reported by Ian Beckwith.
25496
25497         doc: regenerate INSTALL
25498         * doc/INSTALL: Reflect recent autoconf update.
25499         * doc/INSTALL.ISO: Likewise.
25500         * doc/INSTALL.UTF-8: Likewise.
25501
25502         pread: fix compilation on glibc
25503         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
25504         Reported by Ralf Wildenhues.
25505
25506         dirent: fix test failure
25507         * lib/dirent.in.h (includes): Guarantee ino_t.
25508         Reported by Ralf Wildenhues.
25509
25510 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
25511
25512         linkat, renameat: avoid bad free
25513         * lib/at-func2.c (at_func2): Fix typo.
25514         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
25515
25516 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25517
25518         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
25519         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
25520         to avoid failure of symlink test later.
25521
25522 2010-01-06  Eric Blake  <ebb9@byu.net>
25523
25524         stdio, unistd: guarantee ssize_t
25525         * lib/unistd.in.h (includes): Ensure that types required by POSIX
25526         2008 are exposed when needed.
25527         * lib/stdio.in.h (includes): Likewise.
25528         Reported by Ralf Wildenhues.
25529
25530 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
25531
25532         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
25533         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
25534         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
25535
25536 2010-01-06  Jim Meyering  <meyering@redhat.com>
25537
25538         readtokens: this module *does* require xalloc.h
25539         It uses only functions that were omitted by the old syntax-check rule.
25540         * lib/readtokens.c: Include "xalloc.h" once again.
25541         * modules/readtokens (Depends-on): Add xalloc.
25542         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
25543
25544 2010-01-05  Eric Blake  <ebb9@byu.net>
25545
25546         maint: support 'make announcement' from a VPATH build
25547         * top/maint.mk (announcement): Look for correct NEWS file.
25548
25549 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
25550
25551         utimens (fdutimens): ignore a negative FD, per contract
25552         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
25553         when we have a valid file descriptor.  Otherwise, using a brand
25554         new glibc (with just-patched futimens that now fails with EBADF)
25555         would cause this function to fail with ENOSYS.
25556         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
25557         See also http://bugzilla.redhat.com/552320.
25558
25559 2010-01-05  Eric Blake  <ebb9@byu.net>
25560
25561         strcase: document what it provides
25562         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
25563         gnulib module.
25564         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
25565         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
25566
25567 2010-01-05  Jim Meyering  <meyering@redhat.com>
25568
25569         maint: remove useless inclusions of "xalloc.h"
25570         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
25571         * lib/readtokens.c: Likewise.
25572         * lib/same.c: Likewise.
25573         * modules/getloadavg (Depends-on): Remove xalloc.
25574         * modules/readtokens: Likewise.
25575         * modules/same: Likewise.
25576
25577         maint.mk: include 4 more function names in alloca.h-checking regexp
25578         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
25579         regexp.  Before, we would give a false-positive (saying alloca.h
25580         is included unnecessarily) when the only uses involved omitted symbols.
25581
25582         xalloc.h: use consistent formatting
25583         * lib/xalloc.h: Move declarations to start in the first column.
25584
25585 2010-01-05  Eric Blake  <ebb9@byu.net>
25586
25587         mkdir: avoid xalloc
25588         * lib/mkdir.c (includes): Drop unused header.
25589         Reported by John W. Eaton.
25590
25591 2010-01-04  Jim Meyering  <meyering@redhat.com>
25592
25593         nl_langinfo: avoid configure-time syntax error
25594         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
25595         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
25596         the empty string.  Don't let that provoke a shell syntax error.
25597
25598         regcomp, regexec, fnmatch: avoid array bounds read error
25599         * lib/regcomp.c (build_equiv_class): From glibc:
25600         Use only the low 24 bits of a findidx return value as an index
25601         into the weights array.  Patch by Ulrich Drepper:
25602         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
25603         * lib/regexec.c (check_node_accept_bytes): Likewise.
25604         * lib/fnmatch_loop.c (FCT): Likewise.
25605
25606         regcomp: skip collseq lookup when there are no rules
25607         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
25608         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
25609
25610         regcomp: recognize ill-formed { } expressions
25611         * lib/regcomp.c (parse_dup_op): From glibc:
25612         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
25613
25614         regcomp: fix typo in comment
25615         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
25616         s/satisfy/satisfies/.
25617
25618         regcomp: sync from glibc: remove dead store
25619         * lib/regcomp.c (duplicate_node_closure): Remove useless
25620         search_duplicated_node call and dead store.
25621
25622         regcomp: sync from glibc; always use nl_langinfo
25623         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
25624         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
25625         * modules/regex (Depends-on): Add nl_langinfo.
25626
25627 2010-01-04  Eric Blake  <ebb9@byu.net>
25628
25629         fdopendir: fix configure test
25630         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
25631
25632 2010-01-01  Bruno Haible  <bruno@clisp.org>
25633
25634         wchar: Remove unused configure check.
25635         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
25636
25637 2010-01-01  Eric Blake  <ebb9@byu.net>
25638
25639         headers: make check of system header explicit
25640         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
25641         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
25642         ourselves.
25643         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25644         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25645         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
25646         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
25647         internals.
25648         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
25649         missing.
25650         Suggested by Bruno Haible.
25651
25652 2010-01-01  Jim Meyering  <meyering@redhat.com>
25653
25654         ChangeLog: tweak to eliminate unnecessary copyright line
25655         * ChangeLog: Remove a copyright line that was mistakenly updated
25656         by today's update-copyright run.  Reported by Eric Blake.
25657
25658         test-update-copyright: don't let envvar setting cause test failure
25659         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
25660
25661 2010-01-01  Bruno Haible  <bruno@clisp.org>
25662
25663         localename: Avoid gcc warning.
25664         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
25665         function if it is not used.
25666
25667 2010-01-01  Jim Meyering  <meyering@redhat.com>
25668
25669         update nearly all FSF copyright year lists to include 2010
25670         Use the same procedure as for 2009, outlined in
25671         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
25672
25673         version-etc: set COPYRIGHT_YEAR to 2010
25674         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
25675
25676 2009-12-31  Eric Blake  <ebb9@byu.net>
25677
25678         doc: correct availability of cygwin 1.5.x getopt
25679         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
25680         variables.
25681         * doc/posix-functions/opterr.texi (opterr): Likewise.
25682         * doc/posix-functions/optind.texi (optind): Likewise.
25683         * doc/posix-functions/optopt.texi (optopt): Likewise.
25684         * doc/posix-functions/tzname.texi (tzname): Likewise.
25685
25686         openat: update maintainer
25687         * modules/openat (Maintainer): Add myself.
25688
25689         utimens: avoid shadowing warning
25690         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
25691         buffers into one, to avoid shadowing, as well as avoiding a
25692         redundant stat.
25693         Reported by Jim Meyering.
25694
25695         test-dup2: avoid compiler warning
25696         * tests/test-dup2.c (is_inheritable): Only define if used.
25697
25698 2010-01-01  Bruno Haible  <bruno@clisp.org>
25699
25700         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
25701         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
25702         defined, use wctomb instead of wcrtomb.
25703
25704 2010-01-01  Bruno Haible  <bruno@clisp.org>
25705
25706         iconv: Reject native Solaris iconv.
25707         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
25708         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
25709
25710 2009-12-31  Bruno Haible  <bruno@clisp.org>
25711
25712         * tests/test-signal.c (main): Remove test of 'SIG'.
25713
25714 2009-12-31  Bruno Haible  <bruno@clisp.org>
25715
25716         spawn: Fix incomplete fix.
25717         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25718         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25719         warnings for GNULIB_POSIXCHECK again.
25720         Reported by Eric Blake.
25721
25722 2009-12-31  Bruno Haible  <bruno@clisp.org>
25723
25724         Avoid namespace pollution on glibc systems.
25725         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
25726         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
25727         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
25728         glibc systems.
25729
25730 2009-12-31  Bruno Haible  <bruno@clisp.org>
25731
25732         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
25733         (gl_REPLACE_WCHAR_H): Turn into a no-op.
25734         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
25735         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
25736         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
25737         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
25738         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
25739
25740 2009-12-31  Bruno Haible  <bruno@clisp.org>
25741
25742         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
25743         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
25744         afterwards.
25745
25746 2009-12-31  Bruno Haible  <bruno@clisp.org>
25747
25748         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
25749         SYS_UTSNAME_H.
25750
25751 2009-12-31  Bruno Haible  <bruno@clisp.org>
25752
25753         spawn: Fix misapplied patch.
25754         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25755         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25756         warnings for GNULIB_POSIXCHECK.
25757
25758 2009-12-31  Bruno Haible  <bruno@clisp.org>
25759
25760         times: Update after sys_times changed.
25761         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
25762         * modules/times (Files): Add it.
25763         (configure.ac): Invoke gl_FUNC_TIMES.
25764
25765 2009-12-31  Bruno Haible  <bruno@clisp.org>
25766
25767         Use AC_C_INLINE where necessary.
25768         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
25769         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
25770         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
25771         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
25772         * m4/mbfile.m4 (gl_MBFILE): Likewise.
25773         * m4/mbiter.m4 (gl_MBITER): Likewise.
25774         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
25775         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25776         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
25777         * modules/u64 (configure.ac): Likewise.
25778
25779 2009-12-31  Bruno Haible  <bruno@clisp.org>
25780
25781         Use AC_C_INLINE instead of module 'inline' where possible.
25782         * modules/inline (Description): Clarify purpose.
25783         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
25784         * modules/count-one-bits (Depends-on): Remove inline.
25785         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
25786         * modules/openat (Depends-on): Remove inline.
25787         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
25788         instead of depending on module 'inline'.
25789         * modules/filevercmp (Depends-on, configure.ac): Likewise.
25790         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
25791         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
25792         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
25793         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
25794         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
25795         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
25796         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
25797         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
25798         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
25799         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
25800         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
25801         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
25802         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
25803         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
25804         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
25805         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
25806         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
25807         Likewise.
25808         * modules/unictype/property-ascii-hex-digit (Depends-on,
25809         configure.ac): Likewise.
25810         * modules/unictype/property-bidi-arabic-digit (Depends-on,
25811         configure.ac): Likewise.
25812         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
25813         configure.ac): Likewise.
25814         * modules/unictype/property-bidi-block-separator (Depends-on,
25815         configure.ac): Likewise.
25816         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
25817         configure.ac): Likewise.
25818         * modules/unictype/property-bidi-common-separator (Depends-on,
25819         configure.ac): Likewise.
25820         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
25821         Likewise.
25822         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
25823         configure.ac): Likewise.
25824         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
25825         configure.ac): Likewise.
25826         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
25827         configure.ac): Likewise.
25828         * modules/unictype/property-bidi-european-digit (Depends-on,
25829         configure.ac): Likewise.
25830         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
25831         configure.ac): Likewise.
25832         * modules/unictype/property-bidi-left-to-right (Depends-on,
25833         configure.ac): Likewise.
25834         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
25835         configure.ac): Likewise.
25836         * modules/unictype/property-bidi-other-neutral (Depends-on,
25837         configure.ac): Likewise.
25838         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
25839         Likewise.
25840         * modules/unictype/property-bidi-segment-separator (Depends-on,
25841         configure.ac): Likewise.
25842         * modules/unictype/property-bidi-whitespace (Depends-on,
25843         configure.ac): Likewise.
25844         * modules/unictype/property-combining (Depends-on, configure.ac):
25845         Likewise.
25846         * modules/unictype/property-composite (Depends-on, configure.ac):
25847         Likewise.
25848         * modules/unictype/property-currency-symbol (Depends-on,
25849         configure.ac): Likewise.
25850         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
25851         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
25852         Likewise.
25853         * modules/unictype/property-default-ignorable-code-point (Depends-on,
25854         configure.ac): Likewise.
25855         * modules/unictype/property-deprecated (Depends-on, configure.ac):
25856         Likewise.
25857         * modules/unictype/property-diacritic (Depends-on, configure.ac):
25858         Likewise.
25859         * modules/unictype/property-extender (Depends-on, configure.ac):
25860         Likewise.
25861         * modules/unictype/property-format-control (Depends-on, configure.ac):
25862         Likewise.
25863         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
25864         Likewise.
25865         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
25866         Likewise.
25867         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
25868         Likewise.
25869         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
25870         Likewise.
25871         * modules/unictype/property-hyphen (Depends-on, configure.ac):
25872         Likewise.
25873         * modules/unictype/property-id-continue (Depends-on, configure.ac):
25874         Likewise.
25875         * modules/unictype/property-id-start (Depends-on, configure.ac):
25876         Likewise.
25877         * modules/unictype/property-ideographic (Depends-on, configure.ac):
25878         Likewise.
25879         * modules/unictype/property-ids-binary-operator (Depends-on,
25880         configure.ac): Likewise.
25881         * modules/unictype/property-ids-trinary-operator (Depends-on,
25882         configure.ac): Likewise.
25883         * modules/unictype/property-ignorable-control (Depends-on,
25884         configure.ac): Likewise.
25885         * modules/unictype/property-iso-control (Depends-on, configure.ac):
25886         Likewise.
25887         * modules/unictype/property-join-control (Depends-on, configure.ac):
25888         Likewise.
25889         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
25890         Likewise.
25891         * modules/unictype/property-line-separator (Depends-on, configure.ac):
25892         Likewise.
25893         * modules/unictype/property-logical-order-exception (Depends-on,
25894         configure.ac): Likewise.
25895         * modules/unictype/property-lowercase (Depends-on, configure.ac):
25896         Likewise.
25897         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
25898         * modules/unictype/property-non-break (Depends-on, configure.ac):
25899         Likewise.
25900         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
25901         Likewise.
25902         * modules/unictype/property-numeric (Depends-on, configure.ac):
25903         Likewise.
25904         * modules/unictype/property-other-alphabetic (Depends-on,
25905         configure.ac): Likewise.
25906         * modules/unictype/property-other-default-ignorable-code-point
25907         (Depends-on, configure.ac): Likewise.
25908         * modules/unictype/property-other-grapheme-extend (Depends-on,
25909         configure.ac): Likewise.
25910         * modules/unictype/property-other-id-continue (Depends-on,
25911         configure.ac): Likewise.
25912         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
25913         Likewise.
25914         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
25915         Likewise.
25916         * modules/unictype/property-other-math (Depends-on, configure.ac):
25917         Likewise.
25918         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
25919         Likewise.
25920         * modules/unictype/property-paired-punctuation (Depends-on,
25921         configure.ac): Likewise.
25922         * modules/unictype/property-paragraph-separator (Depends-on,
25923         configure.ac): Likewise.
25924         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
25925         Likewise.
25926         * modules/unictype/property-pattern-white-space (Depends-on,
25927         configure.ac): Likewise.
25928         * modules/unictype/property-private-use (Depends-on, configure.ac):
25929         Likewise.
25930         * modules/unictype/property-punctuation (Depends-on, configure.ac):
25931         Likewise.
25932         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
25933         Likewise.
25934         * modules/unictype/property-radical (Depends-on, configure.ac):
25935         Likewise.
25936         * modules/unictype/property-sentence-terminal (Depends-on,
25937         configure.ac): Likewise.
25938         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
25939         Likewise.
25940         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
25941         * modules/unictype/property-terminal-punctuation (Depends-on,
25942         configure.ac): Likewise.
25943         * modules/unictype/property-titlecase (Depends-on, configure.ac):
25944         Likewise.
25945         * modules/unictype/property-unassigned-code-value (Depends-on,
25946         configure.ac): Likewise.
25947         * modules/unictype/property-unified-ideograph (Depends-on,
25948         configure.ac): Likewise.
25949         * modules/unictype/property-uppercase (Depends-on, configure.ac):
25950         Likewise.
25951         * modules/unictype/property-variation-selector (Depends-on,
25952         configure.ac): Likewise.
25953         * modules/unictype/property-white-space (Depends-on, configure.ac):
25954         Likewise.
25955         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
25956         Likewise.
25957         * modules/unictype/property-xid-start (Depends-on, configure.ac):
25958         Likewise.
25959         * modules/unictype/property-zero-width (Depends-on, configure.ac):
25960         Likewise.
25961         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
25962         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
25963         Likewise.
25964
25965 2009-12-31  Bruno Haible  <bruno@clisp.org>
25966
25967         Remove unnecessary AC_C_INLINE invocation.
25968         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
25969         since 2009-08-21.
25970
25971 2009-12-31  Jim Meyering  <meyering@redhat.com>
25972
25973         maint.mk: don't require explicit gpg_key_ID in cfg.mk
25974         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
25975         With this change, we can all remove the gpg_key_ID = ... definition
25976         from our respective cfg.mk files.
25977
25978         maint.mk: create announcement template in ~/, not in /tmp
25979         * top/maint.mk (emit_upload_commands): Adjust.
25980         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
25981         Remove temporary file, .ci-msg.
25982
25983 2009-12-31  Eric Blake  <ebb9@byu.net>
25984
25985         link-warning: always build headers with link warnings
25986         * modules/arpa_inet (Makefile.am): Always build replacement
25987         header.
25988         * modules/ctype (Makefile.am): Likewise.
25989         * modules/dirent (Makefile.am): Likewise.
25990         * modules/inttypes (Makefile.am): Likewise.
25991         * modules/langinfo (Makefile.am): Likewise.
25992         * modules/locale (Makefile.am): Likewise.
25993         * modules/spawn (Makefile.am): Likewise.
25994         * modules/sys_file (Makefile.am): Likewise.
25995         * modules/sys_ioctl (Makefile.am): Likewise.
25996         * modules/sys_select (Makefile.am): Likewise.
25997         * modules/sys_socket (Makefile.am): Likewise.
25998         * modules/sys_times (Makefile.am): Likewise.
25999         * modules/sys_utsname (Makefile.am): Likewise.
26000         * modules/sys_wait (Makefile.am): Likewise.
26001         * modules/wchar (Makefile.am): Likewise.
26002         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
26003         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
26004         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
26005         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
26006         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
26007         Likewise.
26008         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
26009         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26010         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
26011         Likewise.
26012         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
26013         Likewise.
26014         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
26015         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
26016         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
26017         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26018         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26019         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
26020         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
26021         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
26022         (gl_WCHAR_H_DEFAULTS): Likewise.
26023
26024 2009-12-31  Eric Blake  <ebb9@byu.net>
26025
26026         signal, spawn: use link warnings
26027         * lib/signal.in.h (sigset_t): Make unconditional.
26028         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
26029         (sigpending, sigprocmask, sigaction): Add link warnings.
26030         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
26031         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
26032         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
26033         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
26034         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
26035         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
26036         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
26037         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
26038         (posix_spawn_file_actions_destroy)
26039         (posix_spawn_file_actions_addopen)
26040         (posix_spawn_file_actions_addclose)
26041         (posix_spawn_file_actions_adddup2): Likewise.
26042         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
26043         * tests/test-signal.c (main): Enhance test.
26044
26045         spawn: improve wrapper support
26046         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
26047         (gl_SPAWN_H_DEFAULTS): New defaults.
26048         * modules/spawn (Makefile.am): Substitute them.
26049         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
26050         Only declare if missing or broken.
26051
26052         sys_times, sys_utsname: use include_next
26053         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
26054         header.
26055         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
26056         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
26057         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
26058         * modules/sys_times (Depends-on): Add include_next.
26059         (Makefile.am): Substitute additional values.
26060         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
26061         * lib/sys_times.in.h (includes): Include native header, if
26062         available.
26063         * lib/sys_utsname.in.h (includes): Likewise.
26064         * tests/test-sys_times.c (main): Enhance test.
26065
26066         fdutimensat: revert prior patch
26067         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
26068         utimens.h.
26069         Reported by Bruno Haible.
26070
26071 2009-12-30  Eric Blake  <ebb9@byu.net>
26072
26073         sys_wait: drop link-warning dependency
26074         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
26075         link-warning efforts.
26076         * lib/sys_wait.in.h: Likewise.
26077
26078         fdutimensat: remove bogus dependency
26079         * modules/fdutimensat (Depends-on): Drop inline.
26080
26081         unistd: fix typo
26082         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
26083
26084 2009-12-30  Bruno Haible  <bruno@clisp.org>
26085
26086         Fix compilation error with Solaris cc.
26087         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
26088         * lib/unicase/u16-is-invariant.c: Likewise.
26089         * lib/unicase/u32-is-invariant.c: Likewise.
26090         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
26091
26092 2009-12-30  Bruno Haible  <bruno@clisp.org>
26093
26094         Fix test crash.
26095         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
26096         locales.
26097         Reported by Simon Josefsson <simon@josefsson.org>.
26098
26099 2009-12-30  Bruno Haible  <bruno@clisp.org>
26100
26101         Fix compilation error on most platforms.
26102         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
26103         Reported by Simon Josefsson <simon@josefsson.org>
26104         and Nelson H. F. Beebe <beebe@math.utah.edu>.
26105
26106 2009-12-30  Eric Blake  <ebb9@byu.net>
26107
26108         futimens, utimensat: work around ntfs-3g bug
26109         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
26110         a ctime bug is present, and expand workaround to cover ntfs-3g.
26111         * lib/utimens.c (fdutimens, lutimens): Likewise.
26112         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
26113         (validate_timespec): Adjust return value.
26114         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
26115         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26116         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
26117
26118 2009-12-29  Eric Blake  <ebb9@byu.net>
26119
26120         link-warning: make usage consistent
26121         * modules/ctype (Depends-on): Add link-warning.
26122         (Makefile.am): Update rules accordingly.
26123         * modules/langinfo (Depends-on, Makefile.am): Likewise.
26124         * modules/locale (Depends-on, Makefile.am): Likewise.
26125         * modules/sys_file (Makefile.am): Likewise.
26126         * modules/getopt-posix (Makefile.am): Delete unused link warning
26127         efforts.
26128         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
26129         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
26130         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
26131         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
26132
26133         stdio: remove unused variables
26134         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
26135         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
26136         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26137
26138         tests: test more substitute headers
26139         * modules/ctype-tests: New file.
26140         * modules/dirent-tests: Likewise.
26141         * modules/spawn-tests: Likewise.
26142         * modules/sys_file-tests: Likewise.
26143         * modules/sys_ioctl-tests: Likewise.
26144         * modules/sys_wait-tests: Likewise.
26145         * tests/test-ctype.c: Likewise.
26146         * tests/test-dirent.c: Likewise.
26147         * tests/test-spawn.c: Likewise.
26148         * tests/test-sys_file.c: Likewise.
26149         * tests/test-sys_ioctl.c: Likewise.
26150         * tests/test-sys_wait.c: Likewise.
26151         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
26152         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
26153         whether or not flock is in use.
26154
26155         tests: remove License section from module
26156         * modules/arpa_inet-tests: Remove unneeded section.
26157         * modules/byteswap-tests: Likewise.
26158         * modules/ceilf-tests: Likewise.
26159         * modules/ceill-tests: Likewise.
26160         * modules/crypto/des-tests: Likewise.
26161         * modules/crypto/gc-arcfour-tests: Likewise.
26162         * modules/crypto/gc-arctwo-tests: Likewise.
26163         * modules/crypto/gc-des-tests: Likewise.
26164         * modules/crypto/gc-hmac-md5-tests: Likewise.
26165         * modules/crypto/gc-hmac-sha1-tests: Likewise.
26166         * modules/crypto/gc-md2-tests: Likewise.
26167         * modules/crypto/gc-md4-tests: Likewise.
26168         * modules/crypto/gc-md5-tests: Likewise.
26169         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
26170         * modules/crypto/gc-rijndael-tests: Likewise.
26171         * modules/crypto/gc-sha1-tests: Likewise.
26172         * modules/crypto/gc-tests: Likewise.
26173         * modules/crypto/md2-tests: Likewise.
26174         * modules/crypto/md4-tests: Likewise.
26175         * modules/fcntl-h-tests: Likewise.
26176         * modules/floorf-tests: Likewise.
26177         * modules/floorl-tests: Likewise.
26178         * modules/frexp-nolibm-tests: Likewise.
26179         * modules/frexp-tests: Likewise.
26180         * modules/frexpl-nolibm-tests: Likewise.
26181         * modules/frexpl-tests: Likewise.
26182         * modules/getaddrinfo-tests: Likewise.
26183         * modules/inttypes-tests: Likewise.
26184         * modules/isfinite-tests: Likewise.
26185         * modules/isinf-tests: Likewise.
26186         * modules/ldexpl-tests: Likewise.
26187         * modules/locale-tests: Likewise.
26188         * modules/math-tests: Likewise.
26189         * modules/netdb-tests: Likewise.
26190         * modules/netinet_in-tests: Likewise.
26191         * modules/printf-frexp-tests: Likewise.
26192         * modules/printf-frexpl-tests: Likewise.
26193         * modules/priv-set-tests: Likewise.
26194         * modules/random_r-tests: Likewise.
26195         * modules/round-tests: Likewise.
26196         * modules/roundf-tests: Likewise.
26197         * modules/roundl-tests: Likewise.
26198         * modules/search-tests: Likewise.
26199         * modules/select-tests: Likewise.
26200         * modules/signal-tests: Likewise.
26201         * modules/stdbool-tests: Likewise.
26202         * modules/stddef-tests: Likewise.
26203         * modules/stdint-tests: Likewise.
26204         * modules/stdio-tests: Likewise.
26205         * modules/stdlib-tests: Likewise.
26206         * modules/string-tests: Likewise.
26207         * modules/strings-tests: Likewise.
26208         * modules/sys_select-tests: Likewise.
26209         * modules/sys_socket-tests: Likewise.
26210         * modules/sys_stat-tests: Likewise.
26211         * modules/sys_time-tests: Likewise.
26212         * modules/sys_utsname-tests: Likewise.
26213         * modules/sysexits-tests: Likewise.
26214         * modules/time-tests: Likewise.
26215         * modules/trunc-tests: Likewise.
26216         * modules/truncf-tests: Likewise.
26217         * modules/truncl-tests: Likewise.
26218         * modules/tsearch-tests: Likewise.
26219         * modules/unistd-tests: Likewise.
26220         * modules/wchar-tests: Likewise.
26221         * modules/wctype-tests: Likewise.
26222
26223         tests: fix license on several tests
26224         * tests/test-des.c: Update to GPLv3+.
26225         * tests/test-flock.c: Likewise.
26226         * tests/test-fsync.c: Likewise.
26227         * tests/test-futimens.h: Likewise.
26228         * tests/test-gc-arcfour.c: Likewise.
26229         * tests/test-gc-arctwo.c: Likewise.
26230         * tests/test-gc-des.c: Likewise.
26231         * tests/test-gc-hmac-md5.c: Likewise.
26232         * tests/test-gc-hmac-sha1.c: Likewise.
26233         * tests/test-gc-md2.c: Likewise.
26234         * tests/test-gc-md4.c: Likewise.
26235         * tests/test-gc-md5.c: Likewise.
26236         * tests/test-gc-pbkdf2-sha1.c: Likewise.
26237         * tests/test-gc-rijndael.c: Likewise.
26238         * tests/test-gc-sha1.c: Likewise.
26239         * tests/test-gc.c: Likewise.
26240         * tests/test-getcwd.c: Likewise.
26241         * tests/test-link.c: Likewise.
26242         * tests/test-link.h: Likewise.
26243         * tests/test-lutimens.h: Likewise.
26244         * tests/test-md2.c: Likewise.
26245         * tests/test-md4.c: Likewise.
26246         * tests/test-mkdir.h: Likewise.
26247         * tests/test-rename.c: Likewise.
26248         * tests/test-rename.h: Likewise.
26249         * tests/test-safe-alloc.c: Likewise.
26250         * tests/test-utimens-common.h: Likewise.
26251         * tests/test-utimens.h: Likewise.
26252
26253         maint: sync license texts
26254         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
26255         * doc/gpl-3.0.texi: Revert copyright year update.
26256         * doc/lgpl-3.0.texi: Likewise.
26257
26258 2009-12-29  Jim Meyering  <meyering@redhat.com>
26259
26260         update nearly all FSF copyright year lists to include 2009
26261         The files named by the following are exempted:
26262             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
26263               test -f "$dst" && { echo "$dst"; continue; }
26264               test -d "$dst" || continue
26265               echo "$dst"/$(basename "$src")
26266             done > exempt
26267             git ls-files tests/unictype >> exempt
26268         In the remaining files, convert to all-interval notation if
26269         - there is already at least one year interval like 2000-2003
26270         - the file is maintained by me
26271         - the file is in lib/uni*/, where that style already prevails
26272         Otherwise, use update-copyright's default.
26273
26274 2009-12-29  Simon Josefsson  <simon@josefsson.org>
26275         and Eric Blake  <ebb9@byu.net>
26276
26277         tests: don't require debug system() to pass
26278         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
26279         * tests/test-rmdir.h (test_rmdir_func): Likewise.
26280         * tests/test-unlink.h (test_unlink_func): Likewise.
26281         * tests/test-fstatat.c (main): ...into callers.
26282         * tests/test-lstat.c (main): Likewise.
26283         * tests/test-rmdir.c (main): Likewise.
26284         * tests/test-unlink.c (main): Likewise.
26285         * tests/test-unlinkat.c (main): Likewise.
26286         * tests/test-areadlink-with-size.c (main): Don't require a
26287         debug-only system call to pass, aiding cross-testing to mingw.
26288         * tests/test-areadlink.c (main): Likewise.
26289         * tests/test-areadlinkat-with-size.c (main): Likewise.
26290         * tests/test-areadlinkat.c (main): Likewise.
26291         * tests/test-canonicalize-lgpl.c (main): Likewise.
26292         * tests/test-canonicalize.c (main): Likewise.
26293         * tests/test-chown.c (main): Likewise.
26294         * tests/test-fchownat.c (main): Likewise.
26295         * tests/test-lchown.c (main): Likewise.
26296         * tests/test-fdutimensat.c (main): Likewise.
26297         * tests/test-futimens.c (main): Likewise.
26298         * tests/test-link.c (main): Likewise.
26299         * tests/test-linkat.c (main): Likewise.
26300         * tests/test-mkdir.c (main): Likewise.
26301         * tests/test-mkdirat.c (main): Likewise.
26302         * tests/test-mkfifo.c (main): Likewise.
26303         * tests/test-mkfifoat.c (main): Likewise.
26304         * tests/test-mknod.c (main): Likewise.
26305         * tests/test-readlink.c (main): Likewise.
26306         * tests/test-remove.c (main): Likewise.
26307         * tests/test-rename.c (main): Likewise.
26308         * tests/test-renameat.c (main): Likewise.
26309         * tests/test-symlink.c (main): Likewise.
26310         * tests/test-symlinkat.c (main): Likewise.
26311         * tests/test-utimens.c (main): Likewise.
26312         * tests/test-utimensat.c (main): Likewise.
26313
26314 2009-12-29  Simon Josefsson  <simon@josefsson.org>
26315
26316         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
26317         on $(UNUSED_PARAMETER_H) to avoid build failure.
26318
26319 2009-12-28  Jim Meyering  <meyering@redhat.com>
26320
26321         update-copyright: you may specify a max. line length other than 72
26322         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
26323
26324         maint: use consistent FSF copyright line syntax
26325         * lib/posixtm.c: Add missing comma in FSF copyright line.
26326         * lib/posixtm.h: Likewise.
26327         * lib/getugroups.c: Add missing ", Inc.".
26328
26329         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
26330         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
26331         FSF copyright line.  Remove trailing blanks.
26332
26333 2009-12-28  Eric Blake  <ebb9@byu.net>
26334
26335         test-dup2: reduce dependencies
26336         * modules/cloexec (Configure.ac): Set witness.
26337         * modules/dup2-tests (Depends-on): Drop cloexec.
26338         * tests/test-dup2.c (main): Skip portion of test if cloexec module
26339         not present.
26340         Suggested by Bruno Haible.
26341
26342 2009-12-26  Bruno Haible  <bruno@clisp.org>
26343
26344         Remove an unneeded dependency.
26345         * modules/fseterr (Depends-on): Remove dup2.
26346
26347 2009-12-26  Eric Blake  <ebb9@byu.net>
26348
26349         tests: use macros.h in more places
26350         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
26351         (ASSERT_STREAM): Provide default of stderr.
26352         * tests/test-dirent-safer.c: Include macros.h, using alternate
26353         stream for assertions.
26354         * tests/test-dup-safer.c: Likewise.
26355         * tests/test-freopen-safer.c: Likewise.
26356         * tests/test-getopt.c: Likewise.
26357         * tests/test-openat-safer.c: Likewise.
26358         * tests/test-pipe.c: Likewise.
26359         * tests/test-popen-safer.c: Likewise.
26360         * modules/dirent-safer-tests (Files): Include macros.h.
26361         * modules/unistd-safer-tests (Files): Likewise.
26362         * modules/freopen-safer-tests (Files): Likewise.
26363         * modules/getopt-posix-tests (Files): Likewise.
26364         * modules/openat-safer-tests (Files): Likewise.
26365         * modules/pipe-tests (Files): Likewise.
26366
26367 2009-12-26  Bruno Haible  <bruno@clisp.org>
26368
26369         javacomp: Portability fix.
26370         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
26371         that it also works on Solaris.
26372
26373 2009-12-26  Bruno Haible  <bruno@clisp.org>
26374
26375         localename: Fix storage allocation of gl_locale_name_thread's result.
26376         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
26377         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
26378         all platforms that have 'uselocale'.
26379         (gl_locale_name_thread_unsafe): New function, extracted from
26380         gl_locale_name_thread.
26381         (gl_locale_name_thread): Call struniq on all platforms that have
26382         'uselocale'.
26383         * tests/test-localename.c (test_locale_name_thread): Check that the
26384         resulting strings are permanently allocated.
26385         * modules/localename-tests (Depends-on): Add strdup.
26386
26387 2009-12-26  Bruno Haible  <bruno@clisp.org>
26388
26389         * tests/test-localename.c (categories): Fill in the strings.
26390
26391 2009-12-26  Jim Meyering  <meyering@redhat.com>
26392
26393         isdir: complete the removal of m4/isdir.m4
26394         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
26395
26396         isdir: clean up, since at least grep still uses it
26397         * lib/isdir.c: Include "isdir.h".
26398         (S_ISDIR): Remove now-unneeded definition.
26399         * modules/isdir (Files): Add lib/isdir.h.
26400         * lib/isdir.h: New file, with declaration.
26401         * m4/isdir.m4: Remove file -- unneeded.
26402
26403 2009-12-25  Bruno Haible  <bruno@clisp.org>
26404
26405         selinux-h: Make generated .h files standalone.
26406         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
26407         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
26408         * lib/se-selinux.in.h: Likewise.
26409         * modules/selinux-h (Depends-on): Add unused-parameter.
26410         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
26411         selinux/selinux.h and selinux/context.h.
26412         Suggested by Eric Blake.
26413
26414 2009-12-25  Bruno Haible  <bruno@clisp.org>
26415
26416         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
26417         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
26418         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
26419         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
26420         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
26421
26422 2009-12-24  Bruno Haible  <bruno@clisp.org>
26423
26424         openat: Fix warning.
26425         * lib/openat-proc.c: Include <unistd.h>.
26426
26427 2009-12-24  Bruno Haible  <bruno@clisp.org>
26428
26429         New module 'unused-parameter'.
26430         * build-aux/unused-parameter.h: New file, extracted from earlier
26431         gnulib-common.m4.
26432         * modules/unused-parameter: New file.
26433         * lib/unistr.h: Include unused-parameter.h.
26434         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
26435         _GL_UNUSED.
26436         * modules/unistr/base (Depends-on): Add unused-parameter.
26437
26438 2009-12-24  Bruno Haible  <bruno@clisp.org>
26439
26440         Add missing dependencies to 'extensions' module.
26441         * m4/extensions.m4: Add comment.
26442         * modules/accept4 (Depends-on): Add extensions.
26443         * modules/dup3 (Depends-on): Likewise.
26444         * modules/fcntl (Depends-on): Likewise.
26445         * modules/futimens (Depends-on): Likewise.
26446         * modules/mknod (Depends-on): Likewise.
26447         * modules/pipe2 (Depends-on): Likewise.
26448         * modules/stat-time (Depends-on): Likewise.
26449         * modules/strcasestr-simple (Depends-on): Likewise.
26450         * modules/strsignal (Depends-on): Likewise.
26451         * modules/utimensat (Depends-on): Likewise.
26452         * modules/localcharset (Depends-on): Likewise. Needed because of
26453         gl_FCNTL_O_FLAGS.
26454         * modules/wcrtomb (Depends-on): Likewise. Needed because of
26455         AC_TYPE_MBSTATE_T.
26456         * modules/wcsnrtombs (Depends-on): Likewise.
26457         * modules/wcsrtombs (Depends-on): Likewise.
26458
26459 2009-12-24  Bruno Haible  <bruno@clisp.org>
26460
26461         binary-io: Avoid gcc warning due to SET_BINARY.
26462         * lib/binary-io.h (SET_BINARY): Cast the result to void.
26463         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
26464
26465 2009-12-24  Bruno Haible  <bruno@clisp.org>
26466
26467         Avoid future namespace pollution on glibc systems.
26468         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
26469         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
26470         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
26471         glibc systems.
26472
26473 2009-12-24  Bruno Haible  <bruno@clisp.org>
26474
26475         Refactor common macros used in tests.
26476         * tests/macros.h: New file.
26477         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
26478         and/or <stdlib.h>, if appropriate.
26479         (ASSERT, SIZEOF): Remove macros.
26480         * tests/test-areadlink-with-size.c: Likewise.
26481         * tests/test-areadlinkat.c: Likewise.
26482         * tests/test-areadlinkat-with-size.c: Likewise.
26483         * tests/test-argmatch.c: Likewise.
26484         * tests/test-argv-iter.c: Likewise.
26485         * tests/test-array-mergesort.c: Likewise.
26486         * tests/test-array_list.c: Likewise.
26487         * tests/test-array_oset.c: Likewise.
26488         * tests/test-avltree_list.c: Likewise.
26489         * tests/test-avltree_oset.c: Likewise.
26490         * tests/test-avltreehash_list.c: Likewise.
26491         * tests/test-base64.c: Likewise.
26492         * tests/test-binary-io.c: Likewise.
26493         * tests/test-bitrotate.c: Likewise.
26494         * tests/test-btowc.c: Likewise.
26495         * tests/test-byteswap.c: Likewise.
26496         * tests/test-c-ctype.c: Likewise.
26497         * tests/test-c-stack.c: Likewise.
26498         * tests/test-c-strcasecmp.c: Likewise.
26499         * tests/test-c-strcasestr.c: Likewise.
26500         * tests/test-c-strncasecmp.c: Likewise.
26501         * tests/test-c-strstr.c: Likewise.
26502         * tests/test-canonicalize-lgpl.c: Likewise.
26503         * tests/test-canonicalize.c: Likewise.
26504         * tests/test-carray_list.c: Likewise.
26505         * tests/test-ceilf1.c: Likewise.
26506         * tests/test-ceilf2.c: Likewise.
26507         * tests/test-ceill.c: Likewise.
26508         * tests/test-chown.c: Likewise.
26509         * tests/test-cloexec.c: Likewise.
26510         * tests/test-copy-acl.c: Likewise.
26511         * tests/test-copy-file.c: Likewise.
26512         * tests/test-count-one-bits.c: Likewise.
26513         * tests/test-dprintf-posix.c: Likewise.
26514         * tests/test-dup2.c: Likewise.
26515         * tests/test-dup3.c: Likewise.
26516         * tests/test-duplocale.c: Likewise.
26517         * tests/test-fbufmode.c: Likewise.
26518         * tests/test-fchdir.c: Likewise.
26519         * tests/test-fchownat.c: Likewise.
26520         * tests/test-fcntl-safer.c: Likewise.
26521         * tests/test-fcntl.c: Likewise.
26522         * tests/test-fdopendir.c: Likewise.
26523         * tests/test-fdutimensat.c: Likewise.
26524         * tests/test-fflush2.c: Likewise.
26525         * tests/test-file-has-acl.c: Likewise.
26526         * tests/test-filevercmp.c: Likewise.
26527         * tests/test-flock.c: Likewise.
26528         * tests/test-floorf1.c: Likewise.
26529         * tests/test-floorf2.c: Likewise.
26530         * tests/test-floorl.c: Likewise.
26531         * tests/test-fnmatch.c: Likewise.
26532         * tests/test-fopen.h: Likewise.
26533         * tests/test-fpending.c: Likewise.
26534         * tests/test-fprintf-posix.c: Likewise.
26535         * tests/test-fpurge.c: Likewise.
26536         * tests/test-freadable.c: Likewise.
26537         * tests/test-freadahead.c: Likewise.
26538         * tests/test-freading.c: Likewise.
26539         * tests/test-freadptr.c: Likewise.
26540         * tests/test-freadptr2.c: Likewise.
26541         * tests/test-freadseek.c: Likewise.
26542         * tests/test-freopen.c: Likewise.
26543         * tests/test-frexp.c: Likewise.
26544         * tests/test-frexpl.c: Likewise.
26545         * tests/test-fseek.c: Likewise.
26546         * tests/test-fseeko.c: Likewise.
26547         * tests/test-fstatat.c: Likewise.
26548         * tests/test-fstrcmp.c: Likewise.
26549         * tests/test-fsync.c: Likewise.
26550         * tests/test-ftell.c: Likewise.
26551         * tests/test-ftello.c: Likewise.
26552         * tests/test-func.c: Likewise.
26553         * tests/test-futimens.c: Likewise.
26554         * tests/test-fwritable.c: Likewise.
26555         * tests/test-fwriting.c: Likewise.
26556         * tests/test-getcwd.c: Likewise.
26557         * tests/test-getdate.c: Likewise.
26558         * tests/test-getdelim.c: Likewise.
26559         * tests/test-getdtablesize.c: Likewise.
26560         * tests/test-getgroups.c: Likewise.
26561         * tests/test-getline.c: Likewise.
26562         * tests/test-getndelim2.c: Likewise.
26563         * tests/test-glob.c: Likewise.
26564         * tests/test-hash.c: Likewise.
26565         * tests/test-i-ring.c: Likewise.
26566         * tests/test-iconv-utf.c: Likewise.
26567         * tests/test-iconv.c: Likewise.
26568         * tests/test-idpriv-drop.c: Likewise.
26569         * tests/test-idpriv-droptemp.c: Likewise.
26570         * tests/test-inet_ntop.c: Likewise.
26571         * tests/test-inet_pton.c: Likewise.
26572         * tests/test-isblank.c: Likewise.
26573         * tests/test-isfinite.c: Likewise.
26574         * tests/test-isinf.c: Likewise.
26575         * tests/test-isnan.c: Likewise.
26576         * tests/test-isnand.h: Likewise.
26577         * tests/test-isnanf.h: Likewise.
26578         * tests/test-isnanl.h: Likewise.
26579         * tests/test-lchown.c: Likewise.
26580         * tests/test-ldexpl.c: Likewise.
26581         * tests/test-link.c: Likewise.
26582         * tests/test-linkat.c: Likewise.
26583         * tests/test-linked_list.c: Likewise.
26584         * tests/test-linkedhash_list.c: Likewise.
26585         * tests/test-localename.c: Likewise.
26586         * tests/test-lseek.c: Likewise.
26587         * tests/test-lstat.c: Likewise.
26588         * tests/test-mbmemcasecmp.c: Likewise.
26589         * tests/test-mbmemcasecoll.c: Likewise.
26590         * tests/test-mbrtowc.c: Likewise.
26591         * tests/test-mbscasecmp.c: Likewise.
26592         * tests/test-mbscasestr1.c: Likewise.
26593         * tests/test-mbscasestr2.c: Likewise.
26594         * tests/test-mbscasestr3.c: Likewise.
26595         * tests/test-mbscasestr4.c: Likewise.
26596         * tests/test-mbschr.c: Likewise.
26597         * tests/test-mbscspn.c: Likewise.
26598         * tests/test-mbsinit.c: Likewise.
26599         * tests/test-mbsncasecmp.c: Likewise.
26600         * tests/test-mbsnrtowcs.c: Likewise.
26601         * tests/test-mbspbrk.c: Likewise.
26602         * tests/test-mbspcasecmp.c: Likewise.
26603         * tests/test-mbsrchr.c: Likewise.
26604         * tests/test-mbsrtowcs.c: Likewise.
26605         * tests/test-mbsspn.c: Likewise.
26606         * tests/test-mbsstr1.c: Likewise.
26607         * tests/test-mbsstr2.c: Likewise.
26608         * tests/test-mbsstr3.c: Likewise.
26609         * tests/test-memchr.c: Likewise.
26610         * tests/test-memchr2.c: Likewise.
26611         * tests/test-memcmp.c: Likewise.
26612         * tests/test-memmem.c: Likewise.
26613         * tests/test-memrchr.c: Likewise.
26614         * tests/test-mkdir.c: Likewise.
26615         * tests/test-mkdirat.c: Likewise.
26616         * tests/test-mkfifo.c: Likewise.
26617         * tests/test-mkfifoat.c: Likewise.
26618         * tests/test-mknod.c: Likewise.
26619         * tests/test-nanosleep.c: Likewise.
26620         * tests/test-nl_langinfo.c: Likewise.
26621         * tests/test-obstack-printf.c: Likewise.
26622         * tests/test-open.c: Likewise.
26623         * tests/test-openat.c: Likewise.
26624         * tests/test-pipe-filter-gi1.c: Likewise.
26625         * tests/test-pipe-filter-gi2-main.c: Likewise.
26626         * tests/test-pipe-filter-ii1.c: Likewise.
26627         * tests/test-pipe-filter-ii2-main.c: Likewise.
26628         * tests/test-pipe2.c: Likewise.
26629         * tests/test-popen.h: Likewise.
26630         * tests/test-posixtm.c: Likewise.
26631         * tests/test-pread.c: Likewise.
26632         * tests/test-printf-frexp.c: Likewise.
26633         * tests/test-printf-frexpl.c: Likewise.
26634         * tests/test-printf-posix.c: Likewise.
26635         * tests/test-priv-set.c: Likewise.
26636         * tests/test-quotearg.c: Likewise.
26637         * tests/test-random_r.c: Likewise.
26638         * tests/test-rawmemchr.c: Likewise.
26639         * tests/test-rbtree_list.c: Likewise.
26640         * tests/test-rbtree_oset.c: Likewise.
26641         * tests/test-rbtreehash_list.c: Likewise.
26642         * tests/test-readlink.c: Likewise.
26643         * tests/test-remove.c: Likewise.
26644         * tests/test-rename.c: Likewise.
26645         * tests/test-renameat.c: Likewise.
26646         * tests/test-rmdir.c: Likewise.
26647         * tests/test-round1.c: Likewise.
26648         * tests/test-roundf1.c: Likewise.
26649         * tests/test-roundl.c: Likewise.
26650         * tests/test-safe-alloc.c: Likewise.
26651         * tests/test-sameacls.c: Likewise.
26652         * tests/test-set-mode-acl.c: Likewise.
26653         * tests/test-setenv.c: Likewise.
26654         * tests/test-sigaction.c: Likewise.
26655         * tests/test-signbit.c: Likewise.
26656         * tests/test-sleep.c: Likewise.
26657         * tests/test-snprintf-posix.c: Likewise.
26658         * tests/test-snprintf.c: Likewise.
26659         * tests/test-sprintf-posix.c: Likewise.
26660         * tests/test-stat-time.c: Likewise.
26661         * tests/test-stat.c: Likewise.
26662         * tests/test-strcasestr.c: Likewise.
26663         * tests/test-strchrnul.c: Likewise.
26664         * tests/test-strerror.c: Likewise.
26665         * tests/test-striconv.c: Likewise.
26666         * tests/test-striconveh.c: Likewise.
26667         * tests/test-striconveha.c: Likewise.
26668         * tests/test-strsignal.c: Likewise.
26669         * tests/test-strstr.c: Likewise.
26670         * tests/test-strtod.c: Likewise.
26671         * tests/test-strverscmp.c: Likewise.
26672         * tests/test-symlink.c: Likewise.
26673         * tests/test-symlinkat.c: Likewise.
26674         * tests/test-trunc1.c: Likewise.
26675         * tests/test-trunc2.c: Likewise.
26676         * tests/test-truncf1.c: Likewise.
26677         * tests/test-truncf2.c: Likewise.
26678         * tests/test-truncl.c: Likewise.
26679         * tests/test-uname.c: Likewise.
26680         * tests/test-unlink.c: Likewise.
26681         * tests/test-unlinkat.c: Likewise.
26682         * tests/test-unsetenv.c: Likewise.
26683         * tests/test-usleep.c: Likewise.
26684         * tests/test-utimens.c: Likewise.
26685         * tests/test-utimensat.c: Likewise.
26686         * tests/test-vasnprintf-posix.c: Likewise.
26687         * tests/test-vasnprintf-posix2.c: Likewise.
26688         * tests/test-vasnprintf.c: Likewise.
26689         * tests/test-vasprintf-posix.c: Likewise.
26690         * tests/test-vasprintf.c: Likewise.
26691         * tests/test-vdprintf-posix.c: Likewise.
26692         * tests/test-vfprintf-posix.c: Likewise.
26693         * tests/test-vprintf-posix.c: Likewise.
26694         * tests/test-vsnprintf-posix.c: Likewise.
26695         * tests/test-vsnprintf.c: Likewise.
26696         * tests/test-vsprintf-posix.c: Likewise.
26697         * tests/test-wcrtomb.c: Likewise.
26698         * tests/test-wcsnrtombs.c: Likewise.
26699         * tests/test-wcsrtombs.c: Likewise.
26700         * tests/test-wctype.c: Likewise.
26701         * tests/test-wcwidth.c: Likewise.
26702         * tests/test-xfprintf-posix.c: Likewise.
26703         * tests/test-xmemdup0.c: Likewise.
26704         * tests/test-xprintf-posix.c: Likewise.
26705         * tests/test-xvasprintf.c: Likewise.
26706         * tests/unicase/test-locale-language.c: Likewise.
26707         * tests/unicase/test-mapping-part1.h: Likewise.
26708         * tests/unicase/test-predicate-part1.h: Likewise.
26709         * tests/unicase/test-u8-casecmp.c: Likewise.
26710         * tests/unicase/test-u8-casecoll.c: Likewise.
26711         * tests/unicase/test-u8-casefold.c: Likewise.
26712         * tests/unicase/test-u8-is-cased.c: Likewise.
26713         * tests/unicase/test-u8-is-casefolded.c: Likewise.
26714         * tests/unicase/test-u8-is-lowercase.c: Likewise.
26715         * tests/unicase/test-u8-is-titlecase.c: Likewise.
26716         * tests/unicase/test-u8-is-uppercase.c: Likewise.
26717         * tests/unicase/test-u8-tolower.c: Likewise.
26718         * tests/unicase/test-u8-totitle.c: Likewise.
26719         * tests/unicase/test-u8-toupper.c: Likewise.
26720         * tests/unicase/test-u16-casecmp.c: Likewise.
26721         * tests/unicase/test-u16-casecoll.c: Likewise.
26722         * tests/unicase/test-u16-casefold.c: Likewise.
26723         * tests/unicase/test-u16-is-cased.c: Likewise.
26724         * tests/unicase/test-u16-is-casefolded.c: Likewise.
26725         * tests/unicase/test-u16-is-lowercase.c: Likewise.
26726         * tests/unicase/test-u16-is-titlecase.c: Likewise.
26727         * tests/unicase/test-u16-is-uppercase.c: Likewise.
26728         * tests/unicase/test-u16-tolower.c: Likewise.
26729         * tests/unicase/test-u16-totitle.c: Likewise.
26730         * tests/unicase/test-u16-toupper.c: Likewise.
26731         * tests/unicase/test-u32-casecmp.c: Likewise.
26732         * tests/unicase/test-u32-casecoll.c: Likewise.
26733         * tests/unicase/test-u32-casefold.c: Likewise.
26734         * tests/unicase/test-u32-is-cased.c: Likewise.
26735         * tests/unicase/test-u32-is-casefolded.c: Likewise.
26736         * tests/unicase/test-u32-is-lowercase.c: Likewise.
26737         * tests/unicase/test-u32-is-titlecase.c: Likewise.
26738         * tests/unicase/test-u32-is-uppercase.c: Likewise.
26739         * tests/unicase/test-u32-tolower.c: Likewise.
26740         * tests/unicase/test-u32-totitle.c: Likewise.
26741         * tests/unicase/test-u32-toupper.c: Likewise.
26742         * tests/unicase/test-ulc-casecmp.c: Likewise.
26743         * tests/unicase/test-ulc-casecoll.c: Likewise.
26744         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
26745         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
26746         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
26747         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
26748         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
26749         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
26750         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
26751         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
26752         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
26753         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
26754         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
26755         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
26756         * tests/unictype/test-bidi_byname.c: Likewise.
26757         * tests/unictype/test-bidi_name.c: Likewise.
26758         * tests/unictype/test-bidi_of.c: Likewise.
26759         * tests/unictype/test-bidi_test.c: Likewise.
26760         * tests/unictype/test-block_list.c: Likewise.
26761         * tests/unictype/test-block_of.c: Likewise.
26762         * tests/unictype/test-block_test.c: Likewise.
26763         * tests/unictype/test-categ_and.c: Likewise.
26764         * tests/unictype/test-categ_and_not.c: Likewise.
26765         * tests/unictype/test-categ_byname.c: Likewise.
26766         * tests/unictype/test-categ_name.c: Likewise.
26767         * tests/unictype/test-categ_none.c: Likewise.
26768         * tests/unictype/test-categ_of.c: Likewise.
26769         * tests/unictype/test-categ_or.c: Likewise.
26770         * tests/unictype/test-categ_test_withtable.c: Likewise.
26771         * tests/unictype/test-combining.c: Likewise.
26772         * tests/unictype/test-decdigit.c: Likewise.
26773         * tests/unictype/test-digit.c: Likewise.
26774         * tests/unictype/test-mirror.c: Likewise.
26775         * tests/unictype/test-numeric.c: Likewise.
26776         * tests/unictype/test-pr_byname.c: Likewise.
26777         * tests/unictype/test-pr_test.c: Likewise.
26778         * tests/unictype/test-predicate-part1.h: Likewise.
26779         * tests/unictype/test-scripts.c: Likewise.
26780         * tests/unictype/test-sy_c_ident.c: Likewise.
26781         * tests/unictype/test-sy_java_ident.c: Likewise.
26782         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
26783         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
26784         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
26785         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
26786         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
26787         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
26788         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
26789         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
26790         * tests/uninorm/test-canonical-decomposition.c: Likewise.
26791         * tests/uninorm/test-compat-decomposition.c: Likewise.
26792         * tests/uninorm/test-composition.c: Likewise.
26793         * tests/uninorm/test-decomposing-form.c: Likewise.
26794         * tests/uninorm/test-decomposition.c: Likewise.
26795         * tests/uninorm/test-u8-nfc.c: Likewise.
26796         * tests/uninorm/test-u8-nfd.c: Likewise.
26797         * tests/uninorm/test-u8-nfkc.c: Likewise.
26798         * tests/uninorm/test-u8-nfkd.c: Likewise.
26799         * tests/uninorm/test-u8-normcmp.c: Likewise.
26800         * tests/uninorm/test-u8-normcoll.c: Likewise.
26801         * tests/uninorm/test-u16-nfc.c: Likewise.
26802         * tests/uninorm/test-u16-nfd.c: Likewise.
26803         * tests/uninorm/test-u16-nfkc.c: Likewise.
26804         * tests/uninorm/test-u16-nfkd.c: Likewise.
26805         * tests/uninorm/test-u16-normcmp.c: Likewise.
26806         * tests/uninorm/test-u16-normcoll.c: Likewise.
26807         * tests/uninorm/test-u32-nfc.c: Likewise.
26808         * tests/uninorm/test-u32-nfd.c: Likewise.
26809         * tests/uninorm/test-u32-nfkc.c: Likewise.
26810         * tests/uninorm/test-u32-nfkd.c: Likewise.
26811         * tests/uninorm/test-u32-normalize-big.c: Likewise.
26812         * tests/uninorm/test-u32-normcmp.c: Likewise.
26813         * tests/uninorm/test-u32-normcoll.c: Likewise.
26814         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
26815         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
26816         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
26817         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
26818         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
26819         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
26820         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
26821         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
26822         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
26823         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
26824         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
26825         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
26826         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
26827         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
26828         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
26829         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
26830         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
26831         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
26832         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
26833         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
26834         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
26835         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
26836         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
26837         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
26838         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
26839         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
26840         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
26841         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
26842         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
26843         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
26844         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
26845         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
26846         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
26847         * tests/uniwidth/test-u8-strwidth.c: Likewise.
26848         * tests/uniwidth/test-u8-width.c: Likewise.
26849         * tests/uniwidth/test-u16-strwidth.c: Likewise.
26850         * tests/uniwidth/test-u16-width.c: Likewise.
26851         * tests/uniwidth/test-u32-strwidth.c: Likewise.
26852         * tests/uniwidth/test-u32-width.c: Likewise.
26853         * tests/uniwidth/test-uc_width.c: Likewise.
26854         * tests/uniwidth/test-uc_width2.c: Likewise.
26855         * modules/acl-tests (Files): Add tests/macros.h.
26856         * modules/areadlink-tests (Files): Likewise.
26857         * modules/areadlink-with-size-tests (Files): Likewise.
26858         * modules/areadlinkat-tests (Files): Likewise.
26859         * modules/areadlinkat-with-size-tests (Files): Likewise.
26860         * modules/argmatch-tests (Files): Likewise.
26861         * modules/argv-iter-tests (Files): Likewise.
26862         * modules/array-list-tests (Files): Likewise.
26863         * modules/array-mergesort-tests (Files): Likewise.
26864         * modules/array-oset-tests (Files): Likewise.
26865         * modules/avltree-list-tests (Files): Likewise.
26866         * modules/avltree-oset-tests (Files): Likewise.
26867         * modules/avltreehash-list-tests (Files): Likewise.
26868         * modules/base64-tests (Files): Likewise.
26869         * modules/binary-io-tests (Files): Likewise.
26870         * modules/bitrotate-tests (Files): Likewise.
26871         * modules/btowc-tests (Files): Likewise.
26872         * modules/byteswap-tests (Files): Likewise.
26873         * modules/c-ctype-tests (Files): Likewise.
26874         * modules/c-stack-tests (Files): Likewise.
26875         * modules/c-strcase-tests (Files): Likewise.
26876         * modules/c-strcasestr-tests (Files): Likewise.
26877         * modules/c-strstr-tests (Files): Likewise.
26878         * modules/canonicalize-lgpl-tests (Files): Likewise.
26879         * modules/canonicalize-tests (Files): Likewise.
26880         * modules/carray-list-tests (Files): Likewise.
26881         * modules/ceilf-tests (Files): Likewise.
26882         * modules/ceill-tests (Files): Likewise.
26883         * modules/chown-tests (Files): Likewise.
26884         * modules/cloexec-tests (Files): Likewise.
26885         * modules/copy-file-tests (Files): Likewise.
26886         * modules/count-one-bits-tests (Files): Likewise.
26887         * modules/dprintf-posix-tests (Files): Likewise.
26888         * modules/dup2-tests (Files): Likewise.
26889         * modules/dup3-tests (Files): Likewise.
26890         * modules/duplocale-tests (Files): Likewise.
26891         * modules/fbufmode-tests (Files): Likewise.
26892         * modules/fchdir-tests (Files): Likewise.
26893         * modules/fcntl-safer-tests (Files): Likewise.
26894         * modules/fcntl-tests (Files): Likewise.
26895         * modules/fdopendir-tests (Files): Likewise.
26896         * modules/fdutimensat-tests (Files): Likewise.
26897         * modules/fflush-tests (Files): Likewise.
26898         * modules/filevercmp-tests (Files): Likewise.
26899         * modules/flock-tests (Files): Likewise.
26900         * modules/floorf-tests (Files): Likewise.
26901         * modules/floorl-tests (Files): Likewise.
26902         * modules/fnmatch-tests (Files): Likewise.
26903         * modules/fopen-safer-tests (Files): Likewise.
26904         * modules/fopen-tests (Files): Likewise.
26905         * modules/fpending-tests (Files): Likewise.
26906         * modules/fprintf-posix-tests (Files): Likewise.
26907         * modules/fpurge-tests (Files): Likewise.
26908         * modules/freadable-tests (Files): Likewise.
26909         * modules/freadahead-tests (Files): Likewise.
26910         * modules/freading-tests (Files): Likewise.
26911         * modules/freadptr-tests (Files): Likewise.
26912         * modules/freadseek-tests (Files): Likewise.
26913         * modules/freopen-tests (Files): Likewise.
26914         * modules/frexp-nolibm-tests (Files): Likewise.
26915         * modules/frexp-tests (Files): Likewise.
26916         * modules/frexpl-nolibm-tests (Files): Likewise.
26917         * modules/frexpl-tests (Files): Likewise.
26918         * modules/fseek-tests (Files): Likewise.
26919         * modules/fseeko-tests (Files): Likewise.
26920         * modules/fstrcmp-tests (Files): Likewise.
26921         * modules/fsync-tests (Files): Likewise.
26922         * modules/ftell-tests (Files): Likewise.
26923         * modules/ftello-tests (Files): Likewise.
26924         * modules/func-tests (Files): Likewise.
26925         * modules/futimens-tests (Files): Likewise.
26926         * modules/fwritable-tests (Files): Likewise.
26927         * modules/fwriting-tests (Files): Likewise.
26928         * modules/getcwd-tests (Files): Likewise.
26929         * modules/getdate-tests (Files): Likewise.
26930         * modules/getdelim-tests (Files): Likewise.
26931         * modules/getdtablesize-tests (Files): Likewise.
26932         * modules/getgroups-tests (Files): Likewise.
26933         * modules/getline-tests (Files): Likewise.
26934         * modules/getndelim2-tests (Files): Likewise.
26935         * modules/glob-tests (Files): Likewise.
26936         * modules/hash-tests (Files): Likewise.
26937         * modules/i-ring-tests (Files): Likewise.
26938         * modules/iconv-tests (Files): Likewise.
26939         * modules/iconv_open-utf-tests (Files): Likewise.
26940         * modules/idpriv-drop-tests (Files): Likewise.
26941         * modules/idpriv-droptemp-tests (Files): Likewise.
26942         * modules/inet_ntop-tests (Files): Likewise.
26943         * modules/inet_pton-tests (Files): Likewise.
26944         * modules/isblank-tests (Files): Likewise.
26945         * modules/isfinite-tests (Files): Likewise.
26946         * modules/isinf-tests (Files): Likewise.
26947         * modules/isnan-tests (Files): Likewise.
26948         * modules/isnand-nolibm-tests (Files): Likewise.
26949         * modules/isnand-tests (Files): Likewise.
26950         * modules/isnanf-nolibm-tests (Files): Likewise.
26951         * modules/isnanf-tests (Files): Likewise.
26952         * modules/isnanl-nolibm-tests (Files): Likewise.
26953         * modules/isnanl-tests (Files): Likewise.
26954         * modules/lchown-tests (Files): Likewise.
26955         * modules/ldexpl-tests (Files): Likewise.
26956         * modules/link-tests (Files): Likewise.
26957         * modules/linkat-tests (Files): Likewise.
26958         * modules/linked-list-tests (Files): Likewise.
26959         * modules/linkedhash-list-tests (Files): Likewise.
26960         * modules/localename-tests (Files): Likewise.
26961         * modules/lseek-tests (Files): Likewise.
26962         * modules/lstat-tests (Files): Likewise.
26963         * modules/mbmemcasecmp-tests (Files): Likewise.
26964         * modules/mbmemcasecoll-tests (Files): Likewise.
26965         * modules/mbrtowc-tests (Files): Likewise.
26966         * modules/mbscasecmp-tests (Files): Likewise.
26967         * modules/mbscasestr-tests (Files): Likewise.
26968         * modules/mbschr-tests (Files): Likewise.
26969         * modules/mbscspn-tests (Files): Likewise.
26970         * modules/mbsinit-tests (Files): Likewise.
26971         * modules/mbsncasecmp-tests (Files): Likewise.
26972         * modules/mbsnrtowcs-tests (Files): Likewise.
26973         * modules/mbspbrk-tests (Files): Likewise.
26974         * modules/mbspcasecmp-tests (Files): Likewise.
26975         * modules/mbsrchr-tests (Files): Likewise.
26976         * modules/mbsrtowcs-tests (Files): Likewise.
26977         * modules/mbsspn-tests (Files): Likewise.
26978         * modules/mbsstr-tests (Files): Likewise.
26979         * modules/memchr-tests (Files): Likewise.
26980         * modules/memchr2-tests (Files): Likewise.
26981         * modules/memcmp-tests (Files): Likewise.
26982         * modules/memmem-tests (Files): Likewise.
26983         * modules/memrchr-tests (Files): Likewise.
26984         * modules/mkdir-tests (Files): Likewise.
26985         * modules/mkfifo-tests (Files): Likewise.
26986         * modules/mkfifoat-tests (Files): Likewise.
26987         * modules/mknod-tests (Files): Likewise.
26988         * modules/nanosleep-tests (Files): Likewise.
26989         * modules/nl_langinfo-tests (Files): Likewise.
26990         * modules/obstack-printf-tests (Files): Likewise.
26991         * modules/open-tests (Files): Likewise.
26992         * modules/openat-tests (Files): Likewise.
26993         * modules/pipe-filter-gi-tests (Files): Likewise.
26994         * modules/pipe-filter-ii-tests (Files): Likewise.
26995         * modules/pipe2-tests (Files): Likewise.
26996         * modules/popen-safer-tests (Files): Likewise.
26997         * modules/popen-tests (Files): Likewise.
26998         * modules/posixtm-tests (Files): Likewise.
26999         * modules/pread-tests (Files): Likewise.
27000         * modules/printf-frexp-tests (Files): Likewise.
27001         * modules/printf-frexpl-tests (Files): Likewise.
27002         * modules/printf-posix-tests (Files): Likewise.
27003         * modules/priv-set-tests (Files): Likewise.
27004         * modules/quotearg-tests (Files): Likewise.
27005         * modules/random_r-tests (Files): Likewise.
27006         * modules/rawmemchr-tests (Files): Likewise.
27007         * modules/rbtree-list-tests (Files): Likewise.
27008         * modules/rbtree-oset-tests (Files): Likewise.
27009         * modules/rbtreehash-list-tests (Files): Likewise.
27010         * modules/readlink-tests (Files): Likewise.
27011         * modules/remove-tests (Files): Likewise.
27012         * modules/rename-tests (Files): Likewise.
27013         * modules/renameat-tests (Files): Likewise.
27014         * modules/rmdir-tests (Files): Likewise.
27015         * modules/round-tests (Files): Likewise.
27016         * modules/roundf-tests (Files): Likewise.
27017         * modules/roundl-tests (Files): Likewise.
27018         * modules/safe-alloc-tests (Files): Likewise.
27019         * modules/setenv-tests (Files): Likewise.
27020         * modules/sigaction-tests (Files): Likewise.
27021         * modules/signbit-tests (Files): Likewise.
27022         * modules/sleep-tests (Files): Likewise.
27023         * modules/snprintf-posix-tests (Files): Likewise.
27024         * modules/snprintf-tests (Files): Likewise.
27025         * modules/sprintf-posix-tests (Files): Likewise.
27026         * modules/stat-tests (Files): Likewise.
27027         * modules/stat-time-tests (Files): Likewise.
27028         * modules/strcasestr-tests (Files): Likewise.
27029         * modules/strchrnul-tests (Files): Likewise.
27030         * modules/strerror-tests (Files): Likewise.
27031         * modules/striconv-tests (Files): Likewise.
27032         * modules/striconveh-tests (Files): Likewise.
27033         * modules/striconveha-tests (Files): Likewise.
27034         * modules/strsignal-tests (Files): Likewise.
27035         * modules/strstr-tests (Files): Likewise.
27036         * modules/strtod-tests (Files): Likewise.
27037         * modules/strverscmp-tests (Files): Likewise.
27038         * modules/symlink-tests (Files): Likewise.
27039         * modules/symlinkat-tests (Files): Likewise.
27040         * modules/trunc-tests (Files): Likewise.
27041         * modules/truncf-tests (Files): Likewise.
27042         * modules/truncl-tests (Files): Likewise.
27043         * modules/uname-tests (Files): Likewise.
27044         * modules/unicase/cased-tests (Files): Likewise.
27045         * modules/unicase/ignorable-tests (Files): Likewise.
27046         * modules/unicase/locale-language-tests (Files): Likewise.
27047         * modules/unicase/tolower-tests (Files): Likewise.
27048         * modules/unicase/totitle-tests (Files): Likewise.
27049         * modules/unicase/toupper-tests (Files): Likewise.
27050         * modules/unicase/u8-casecmp-tests (Files): Likewise.
27051         * modules/unicase/u8-casecoll-tests (Files): Likewise.
27052         * modules/unicase/u8-casefold-tests (Files): Likewise.
27053         * modules/unicase/u8-is-cased-tests (Files): Likewise.
27054         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
27055         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
27056         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
27057         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
27058         * modules/unicase/u8-tolower-tests (Files): Likewise.
27059         * modules/unicase/u8-totitle-tests (Files): Likewise.
27060         * modules/unicase/u8-toupper-tests (Files): Likewise.
27061         * modules/unicase/u16-casecmp-tests (Files): Likewise.
27062         * modules/unicase/u16-casecoll-tests (Files): Likewise.
27063         * modules/unicase/u16-casefold-tests (Files): Likewise.
27064         * modules/unicase/u16-is-cased-tests (Files): Likewise.
27065         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
27066         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
27067         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
27068         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
27069         * modules/unicase/u16-tolower-tests (Files): Likewise.
27070         * modules/unicase/u16-totitle-tests (Files): Likewise.
27071         * modules/unicase/u16-toupper-tests (Files): Likewise.
27072         * modules/unicase/u32-casecmp-tests (Files): Likewise.
27073         * modules/unicase/u32-casecoll-tests (Files): Likewise.
27074         * modules/unicase/u32-casefold-tests (Files): Likewise.
27075         * modules/unicase/u32-is-cased-tests (Files): Likewise.
27076         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
27077         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
27078         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
27079         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
27080         * modules/unicase/u32-tolower-tests (Files): Likewise.
27081         * modules/unicase/u32-totitle-tests (Files): Likewise.
27082         * modules/unicase/u32-toupper-tests (Files): Likewise.
27083         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
27084         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
27085         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
27086         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
27087         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
27088         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
27089         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
27090         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
27091         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
27092         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
27093         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
27094         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
27095         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
27096         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
27097         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
27098         * modules/unictype/bidicategory-name-tests (Files): Likewise.
27099         * modules/unictype/bidicategory-of-tests (Files): Likewise.
27100         * modules/unictype/bidicategory-test-tests (Files): Likewise.
27101         * modules/unictype/block-list-tests (Files): Likewise.
27102         * modules/unictype/block-of-tests (Files): Likewise.
27103         * modules/unictype/block-test-tests (Files): Likewise.
27104         * modules/unictype/category-C-tests (Files): Likewise.
27105         * modules/unictype/category-Cc-tests (Files): Likewise.
27106         * modules/unictype/category-Cf-tests (Files): Likewise.
27107         * modules/unictype/category-Cn-tests (Files): Likewise.
27108         * modules/unictype/category-Co-tests (Files): Likewise.
27109         * modules/unictype/category-Cs-tests (Files): Likewise.
27110         * modules/unictype/category-L-tests (Files): Likewise.
27111         * modules/unictype/category-Ll-tests (Files): Likewise.
27112         * modules/unictype/category-Lm-tests (Files): Likewise.
27113         * modules/unictype/category-Lo-tests (Files): Likewise.
27114         * modules/unictype/category-Lt-tests (Files): Likewise.
27115         * modules/unictype/category-Lu-tests (Files): Likewise.
27116         * modules/unictype/category-M-tests (Files): Likewise.
27117         * modules/unictype/category-Mc-tests (Files): Likewise.
27118         * modules/unictype/category-Me-tests (Files): Likewise.
27119         * modules/unictype/category-Mn-tests (Files): Likewise.
27120         * modules/unictype/category-N-tests (Files): Likewise.
27121         * modules/unictype/category-Nd-tests (Files): Likewise.
27122         * modules/unictype/category-Nl-tests (Files): Likewise.
27123         * modules/unictype/category-No-tests (Files): Likewise.
27124         * modules/unictype/category-P-tests (Files): Likewise.
27125         * modules/unictype/category-Pc-tests (Files): Likewise.
27126         * modules/unictype/category-Pd-tests (Files): Likewise.
27127         * modules/unictype/category-Pe-tests (Files): Likewise.
27128         * modules/unictype/category-Pf-tests (Files): Likewise.
27129         * modules/unictype/category-Pi-tests (Files): Likewise.
27130         * modules/unictype/category-Po-tests (Files): Likewise.
27131         * modules/unictype/category-Ps-tests (Files): Likewise.
27132         * modules/unictype/category-S-tests (Files): Likewise.
27133         * modules/unictype/category-Sc-tests (Files): Likewise.
27134         * modules/unictype/category-Sk-tests (Files): Likewise.
27135         * modules/unictype/category-Sm-tests (Files): Likewise.
27136         * modules/unictype/category-So-tests (Files): Likewise.
27137         * modules/unictype/category-Z-tests (Files): Likewise.
27138         * modules/unictype/category-Zl-tests (Files): Likewise.
27139         * modules/unictype/category-Zp-tests (Files): Likewise.
27140         * modules/unictype/category-Zs-tests (Files): Likewise.
27141         * modules/unictype/category-and-not-tests (Files): Likewise.
27142         * modules/unictype/category-and-tests (Files): Likewise.
27143         * modules/unictype/category-byname-tests (Files): Likewise.
27144         * modules/unictype/category-name-tests (Files): Likewise.
27145         * modules/unictype/category-none-tests (Files): Likewise.
27146         * modules/unictype/category-of-tests (Files): Likewise.
27147         * modules/unictype/category-or-tests (Files): Likewise.
27148         * modules/unictype/category-test-withtable-tests (Files): Likewise.
27149         * modules/unictype/combining-class-tests (Files): Likewise.
27150         * modules/unictype/ctype-alnum-tests (Files): Likewise.
27151         * modules/unictype/ctype-alpha-tests (Files): Likewise.
27152         * modules/unictype/ctype-blank-tests (Files): Likewise.
27153         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
27154         * modules/unictype/ctype-digit-tests (Files): Likewise.
27155         * modules/unictype/ctype-graph-tests (Files): Likewise.
27156         * modules/unictype/ctype-lower-tests (Files): Likewise.
27157         * modules/unictype/ctype-print-tests (Files): Likewise.
27158         * modules/unictype/ctype-punct-tests (Files): Likewise.
27159         * modules/unictype/ctype-space-tests (Files): Likewise.
27160         * modules/unictype/ctype-upper-tests (Files): Likewise.
27161         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
27162         * modules/unictype/decimal-digit-tests (Files): Likewise.
27163         * modules/unictype/digit-tests (Files): Likewise.
27164         * modules/unictype/mirror-tests (Files): Likewise.
27165         * modules/unictype/numeric-tests (Files): Likewise.
27166         * modules/unictype/property-alphabetic-tests (Files): Likewise.
27167         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
27168         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
27169         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
27170         Likewise.
27171         * modules/unictype/property-bidi-block-separator-tests (Files):
27172         Likewise.
27173         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
27174         Likewise.
27175         * modules/unictype/property-bidi-common-separator-tests (Files):
27176         Likewise.
27177         * modules/unictype/property-bidi-control-tests (Files): Likewise.
27178         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
27179         Likewise.
27180         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
27181         Likewise.
27182         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
27183         Likewise.
27184         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
27185         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
27186         Likewise.
27187         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
27188         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
27189         Likewise.
27190         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
27191         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
27192         * modules/unictype/property-bidi-segment-separator-tests (Files):
27193         Likewise.
27194         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
27195         * modules/unictype/property-byname-tests (Files): Likewise.
27196         * modules/unictype/property-combining-tests (Files): Likewise.
27197         * modules/unictype/property-composite-tests (Files): Likewise.
27198         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
27199         * modules/unictype/property-dash-tests (Files): Likewise.
27200         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
27201         * modules/unictype/property-default-ignorable-code-point-tests (Files):
27202         Likewise.
27203         * modules/unictype/property-deprecated-tests (Files): Likewise.
27204         * modules/unictype/property-diacritic-tests (Files): Likewise.
27205         * modules/unictype/property-extender-tests (Files): Likewise.
27206         * modules/unictype/property-format-control-tests (Files): Likewise.
27207         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
27208         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
27209         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
27210         * modules/unictype/property-hex-digit-tests (Files): Likewise.
27211         * modules/unictype/property-hyphen-tests (Files): Likewise.
27212         * modules/unictype/property-id-continue-tests (Files): Likewise.
27213         * modules/unictype/property-id-start-tests (Files): Likewise.
27214         * modules/unictype/property-ideographic-tests (Files): Likewise.
27215         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
27216         * modules/unictype/property-ids-trinary-operator-tests (Files):
27217         Likewise.
27218         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
27219         * modules/unictype/property-iso-control-tests (Files): Likewise.
27220         * modules/unictype/property-join-control-tests (Files): Likewise.
27221         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
27222         * modules/unictype/property-line-separator-tests (Files): Likewise.
27223         * modules/unictype/property-logical-order-exception-tests (Files):
27224         Likewise.
27225         * modules/unictype/property-lowercase-tests (Files): Likewise.
27226         * modules/unictype/property-math-tests (Files): Likewise.
27227         * modules/unictype/property-non-break-tests (Files): Likewise.
27228         * modules/unictype/property-not-a-character-tests (Files): Likewise.
27229         * modules/unictype/property-numeric-tests (Files): Likewise.
27230         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
27231         * modules/unictype/property-other-default-ignorable-code-point-tests
27232         (Files): Likewise.
27233         * modules/unictype/property-other-grapheme-extend-tests (Files):
27234         Likewise.
27235         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
27236         * modules/unictype/property-other-id-start-tests (Files): Likewise.
27237         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
27238         * modules/unictype/property-other-math-tests (Files): Likewise.
27239         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
27240         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
27241         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
27242         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
27243         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
27244         * modules/unictype/property-private-use-tests (Files): Likewise.
27245         * modules/unictype/property-punctuation-tests (Files): Likewise.
27246         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
27247         * modules/unictype/property-radical-tests (Files): Likewise.
27248         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
27249         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
27250         * modules/unictype/property-space-tests (Files): Likewise.
27251         * modules/unictype/property-terminal-punctuation-tests (Files):
27252         Likewise.
27253         * modules/unictype/property-test-tests (Files): Likewise.
27254         * modules/unictype/property-titlecase-tests (Files): Likewise.
27255         * modules/unictype/property-unassigned-code-value-tests (Files):
27256         Likewise.
27257         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
27258         * modules/unictype/property-uppercase-tests (Files): Likewise.
27259         * modules/unictype/property-variation-selector-tests (Files): Likewise.
27260         * modules/unictype/property-white-space-tests (Files): Likewise.
27261         * modules/unictype/property-xid-continue-tests (Files): Likewise.
27262         * modules/unictype/property-xid-start-tests (Files): Likewise.
27263         * modules/unictype/property-zero-width-tests (Files): Likewise.
27264         * modules/unictype/scripts-tests (Files): Likewise.
27265         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
27266         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
27267         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
27268         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
27269         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
27270         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
27271         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
27272         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
27273         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
27274         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
27275         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
27276         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
27277         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
27278         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
27279         * modules/uninorm/composition-tests (Files): Likewise.
27280         * modules/uninorm/decomposing-form-tests (Files): Likewise.
27281         * modules/uninorm/decomposition-tests (Files): Likewise.
27282         * modules/uninorm/filter-tests (Files): Likewise.
27283         * modules/uninorm/nfc-tests (Files): Likewise.
27284         * modules/uninorm/nfd-tests (Files): Likewise.
27285         * modules/uninorm/nfkc-tests (Files): Likewise.
27286         * modules/uninorm/nfkd-tests (Files): Likewise.
27287         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
27288         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
27289         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
27290         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
27291         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
27292         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
27293         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
27294         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
27295         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
27296         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
27297         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
27298         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
27299         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
27300         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
27301         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
27302         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
27303         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
27304         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
27305         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
27306         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
27307         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
27308         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
27309         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
27310         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
27311         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
27312         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
27313         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
27314         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
27315         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
27316         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
27317         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
27318         * modules/uniwidth/u8-width-tests (Files): Likewise.
27319         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
27320         * modules/uniwidth/u16-width-tests (Files): Likewise.
27321         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
27322         * modules/uniwidth/u32-width-tests (Files): Likewise.
27323         * modules/uniwidth/width-tests (Files): Likewise.
27324         * modules/unlink-tests (Files): Likewise.
27325         * modules/unsetenv-tests (Files): Likewise.
27326         * modules/usleep-tests (Files): Likewise.
27327         * modules/utimens-tests (Files): Likewise.
27328         * modules/utimensat-tests (Files): Likewise.
27329         * modules/vasnprintf-posix-tests (Files): Likewise.
27330         * modules/vasnprintf-tests (Files): Likewise.
27331         * modules/vasprintf-posix-tests (Files): Likewise.
27332         * modules/vasprintf-tests (Files): Likewise.
27333         * modules/vdprintf-posix-tests (Files): Likewise.
27334         * modules/vfprintf-posix-tests (Files): Likewise.
27335         * modules/vprintf-posix-tests (Files): Likewise.
27336         * modules/vsnprintf-posix-tests (Files): Likewise.
27337         * modules/vsnprintf-tests (Files): Likewise.
27338         * modules/vsprintf-posix-tests (Files): Likewise.
27339         * modules/wcrtomb-tests (Files): Likewise.
27340         * modules/wcsnrtombs-tests (Files): Likewise.
27341         * modules/wcsrtombs-tests (Files): Likewise.
27342         * modules/wctype-tests (Files): Likewise.
27343         * modules/wcwidth-tests (Files): Likewise.
27344         * modules/xmemdup0-tests (Files): Likewise.
27345         * modules/xprintf-posix-tests (Files): Likewise.
27346         * modules/xvasprintf-tests (Files): Likewise.
27347
27348 2009-12-24  Eric Blake  <ebb9@byu.net>
27349
27350         test-nanosleep: fix typo
27351         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
27352         patch.
27353         Reported by Bruno Haible.
27354
27355 2009-12-24  Bruno Haible  <bruno@clisp.org>
27356
27357         Reduce namespace pollution on glibc systems.
27358         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
27359         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
27360         systems.
27361         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
27362         <getopt.h> on glibc systems.
27363         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
27364         systems.
27365         * lib/fcntl.c: Include <unistd.h> here instead.
27366
27367 2009-12-24  Bruno Haible  <bruno@clisp.org>
27368
27369         * lib/stdlib.in.h (includes): Fix typo in today's commit.
27370
27371 2009-12-24  Eric Blake  <ebb9@byu.net>
27372
27373         tests: add signature checks
27374         * tests/signature.h (SIGNATURE_CHECK): New file.
27375         * modules/atexit-tests (Files): Use it.
27376         * modules/btowc-tests (Files): Likewise.
27377         * modules/canonicalize-lgpl-tests (Files): Likewise.
27378         * modules/ceilf-tests (Files): Likewise.
27379         * modules/ceill-tests (Files): Likewise.
27380         * modules/chown-tests (Files): Likewise.
27381         * modules/dprintf-posix-tests (Files): Likewise.
27382         * modules/dup2-tests (Files): Likewise.
27383         * modules/dup3-tests (Files): Likewise.
27384         * modules/duplocale-tests (Files): Likewise.
27385         * modules/fchdir-tests (Files): Likewise.
27386         * modules/fcntl-tests (Files): Likewise.
27387         * modules/fdopendir-tests (Files): Likewise.
27388         * modules/fflush-tests (Files): Likewise.
27389         * modules/flock-tests (Files): Likewise.
27390         * modules/floorf-tests (Files): Likewise.
27391         * modules/floorl-tests (Files): Likewise.
27392         * modules/fnmatch-tests (Files): Likewise.
27393         * modules/fopen-tests (Files): Likewise.
27394         * modules/fprintf-posix-tests (Files): Likewise.
27395         * modules/freopen-tests (Files): Likewise.
27396         * modules/frexp-nolibm-tests (Files): Likewise.
27397         * modules/frexp-tests (Files): Likewise.
27398         * modules/frexpl-nolibm-tests (Files): Likewise.
27399         * modules/frexpl-tests (Files): Likewise.
27400         * modules/fseek-tests (Files): Likewise.
27401         * modules/fseeko-tests (Files): Likewise.
27402         * modules/fsync-tests (Files): Likewise.
27403         * modules/ftell-tests (Files): Likewise.
27404         * modules/ftello-tests (Files): Likewise.
27405         * modules/futimens-tests (Files): Likewise.
27406         * modules/getaddrinfo-tests (Files): Likewise.
27407         * modules/getcwd-tests (Files): Likewise.
27408         * modules/getdelim-tests (Files): Likewise.
27409         * modules/getdtablesize-tests (Files): Likewise.
27410         * modules/getgroups-tests (Files): Likewise.
27411         * modules/gethostname-tests (Files): Likewise.
27412         * modules/getline-tests (Files): Likewise.
27413         * modules/getopt-posix-tests (Files): Likewise.
27414         * modules/gettimeofday-tests (Files): Likewise.
27415         * modules/glob-tests (Files): Likewise.
27416         * modules/iconv-tests (Files): Likewise.
27417         * modules/inet_ntop-tests (Files): Likewise.
27418         * modules/inet_pton-tests (Files): Likewise.
27419         * modules/isblank-tests (Files): Likewise.
27420         * modules/lchown-tests (Files): Likewise.
27421         * modules/ldexpl-tests (Files): Likewise.
27422         * modules/link-tests (Files): Likewise.
27423         * modules/linkat-tests (Files): Likewise.
27424         * modules/lseek-tests (Files): Likewise.
27425         * modules/lstat-tests (Files): Likewise.
27426         * modules/mbrtowc-tests (Files): Likewise.
27427         * modules/mbsinit-tests (Files): Likewise.
27428         * modules/mbsnrtowcs-tests (Files): Likewise.
27429         * modules/mbsrtowcs-tests (Files): Likewise.
27430         * modules/memchr-tests (Files): Likewise.
27431         * modules/memcmp-tests (Files): Likewise.
27432         * modules/memmem-tests (Files): Likewise.
27433         * modules/memrchr-tests (Files): Likewise.
27434         * modules/mkdir-tests (Files): Likewise.
27435         * modules/mkfifo-tests (Files): Likewise.
27436         * modules/mkfifoat-tests (Files): Likewise.
27437         * modules/mknod-tests (Files): Likewise.
27438         * modules/nanosleep-tests (Files): Likewise.
27439         * modules/nl_langinfo-tests (Files): Likewise.
27440         * modules/obstack-printf-tests (Files): Likewise.
27441         * modules/open-tests (Files): Likewise.
27442         * modules/openat-tests (Files): Likewise.
27443         * modules/perror-tests (Files): Likewise.
27444         * modules/pipe2-tests (Files): Likewise.
27445         * modules/poll-tests (Files): Likewise.
27446         * modules/popen-tests (Files): Likewise.
27447         * modules/posix_spawn-tests (Files): Likewise.
27448         * modules/posix_spawnp-tests (Files): Likewise.
27449         * modules/pread-tests (Files): Likewise.
27450         * modules/printf-posix-tests (Files): Likewise.
27451         * modules/pty-tests (Files): Likewise.
27452         * modules/random_r-tests (Files): Likewise.
27453         * modules/rawmemchr-tests (Files): Likewise.
27454         * modules/readlink-tests (Files): Likewise.
27455         * modules/remove-tests (Files): Likewise.
27456         * modules/rename-tests (Files): Likewise.
27457         * modules/renameat-tests (Files): Likewise.
27458         * modules/rmdir-tests (Files): Likewise.
27459         * modules/round-tests (Files): Likewise.
27460         * modules/roundf-tests (Files): Likewise.
27461         * modules/roundl-tests (Files): Likewise.
27462         * modules/select-tests (Files): Likewise.
27463         * modules/setenv-tests (Files): Likewise.
27464         * modules/sigaction-tests (Files): Likewise.
27465         * modules/sleep-tests (Files): Likewise.
27466         * modules/snprintf-posix-tests (Files): Likewise.
27467         * modules/snprintf-tests (Files): Likewise.
27468         * modules/sprintf-posix-tests (Files): Likewise.
27469         * modules/stat-tests (Files): Likewise.
27470         * modules/strcasestr-tests (Files): Likewise.
27471         * modules/strchrnul-tests (Files): Likewise.
27472         * modules/strerror-tests (Files): Likewise.
27473         * modules/strsignal-tests (Files): Likewise.
27474         * modules/strstr-tests (Files): Likewise.
27475         * modules/strtod-tests (Files): Likewise.
27476         * modules/strverscmp-tests (Files): Likewise.
27477         * modules/symlink-tests (Files): Likewise.
27478         * modules/symlinkat-tests (Files): Likewise.
27479         * modules/times-tests (Files): Likewise.
27480         * modules/trunc-tests (Files): Likewise.
27481         * modules/truncf-tests (Files): Likewise.
27482         * modules/truncl-tests (Files): Likewise.
27483         * modules/tsearch-tests (Files): Likewise.
27484         * modules/uname-tests (Files): Likewise.
27485         * modules/unlink-tests (Files): Likewise.
27486         * modules/unsetenv-tests (Files): Likewise.
27487         * modules/usleep-tests (Files): Likewise.
27488         * modules/utimensat-tests (Files): Likewise.
27489         * modules/vasprintf-tests (Files): Likewise.
27490         * modules/vdprintf-posix-tests (Files): Likewise.
27491         * modules/vfprintf-posix-tests (Files): Likewise.
27492         * modules/vprintf-posix-tests (Files): Likewise.
27493         * modules/vsnprintf-posix-tests (Files): Likewise.
27494         * modules/vsnprintf-tests (Files): Likewise.
27495         * modules/vsprintf-posix-tests (Files): Likewise.
27496         * modules/wcrtomb-tests (Files): Likewise.
27497         * modules/wcsnrtombs-tests (Files): Likewise.
27498         * modules/wcsrtombs-tests (Files): Likewise.
27499         * modules/wcwidth-tests (Files): Likewise.
27500         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
27501         * tests/test-isinf.c (isinf): Likewise.
27502         * tests/test-isnan.c (isnan): Likewise.
27503         * tests/test-signbit.c (signbit): Likewise.
27504         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
27505         declaration, either as macro or with correct signature.
27506         (select): Ensure function under test is declared with correct
27507         signature in correct header.
27508         * tests/test-atexit.c (atexit): Likewise.
27509         * tests/test-btowc.c (btowc): Likewise.
27510         * tests/test-canonicalize-lgpl.c (realpath)
27511         (canonicalize_file_name): Likewise.
27512         * tests/test-ceilf1.c (ceilf): Likewise.
27513         * tests/test-ceill.c (ceill): Likewise.
27514         * tests/test-chown.c (chown): Likewise.
27515         * tests/test-dprintf-posix.c (dprintf): Likewise.
27516         * tests/test-dup2.c (dup2): Likewise.
27517         * tests/test-dup3.c (dup3): Likewise.
27518         * tests/test-duplocale.c (duplocale): Likewise.
27519         * tests/test-fchdir.c (fchdir): Likewise.
27520         * tests/test-fchownat.c (fchownat): Likewise.
27521         * tests/test-fcntl.c (fcntl): Likewise.
27522         * tests/test-fdopendir.c (fdopendir): Likewise.
27523         * tests/test-fflush.c (fflush): Likewise.
27524         * tests/test-flock.c (flock): Likewise.
27525         * tests/test-floorf1.c (floorf): Likewise.
27526         * tests/test-floorl.c (floorl): Likewise.
27527         * tests/test-fnmatch.c (fnmatch): Likewise.
27528         * tests/test-fopen.c (fopen): Likewise.
27529         * tests/test-fprintf-posix.c (fprintf): Likewise.
27530         * tests/test-freopen.c (freopen): Likewise.
27531         * tests/test-frexp.c (frexp): Likewise.
27532         * tests/test-frexpl.c (frexpl): Likewise.
27533         * tests/test-fseek.c (fseek): Likewise.
27534         * tests/test-fseeko.c (fseeko): Likewise.
27535         * tests/test-fstatat.c (fstatat): Likewise.
27536         * tests/test-fsync.c (fsync): Likewise.
27537         * tests/test-ftell.c (ftell): Likewise.
27538         * tests/test-ftello.c (ftello): Likewise.
27539         * tests/test-futimens.c (futimens): Likewise.
27540         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
27541         (gai_strerror): Likewise.
27542         * tests/test-getcwd.c (getcwd): Likewise.
27543         * tests/test-getdelim.c (getdelim): Likewise.
27544         * tests/test-getdtablesize.c (getdtablesize): Likewise.
27545         * tests/test-getgroups.c (getgroups): Likewise.
27546         * tests/test-gethostname.c (gethostname): Likewise.
27547         * tests/test-getline.c (getline): Likewise.
27548         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
27549         Likewise.
27550         * tests/test-gettimeofday.c (gettimeofday): Likewise.
27551         * tests/test-glob.c (glob, globfree): Likewise.
27552         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
27553         * tests/test-inet_ntop.c (inet_ntop): Likewise.
27554         * tests/test-inet_pton.c (inet_pton): Likewise.
27555         * tests/test-isblank.c (isblank): Likewise.
27556         * tests/test-lchown.c (lchown): Likewise.
27557         * tests/test-ldexpl.c (ldexpl): Likewise.
27558         * tests/test-link.c (link): Likewise.
27559         * tests/test-linkat.c (linkat): Likewise.
27560         * tests/test-lseek.c (lseek): Likewise.
27561         * tests/test-lstat.c (lstat): Likewise.
27562         * tests/test-mbrtowc.c (mbrtowc): Likewise.
27563         * tests/test-mbsinit.c (mbsinit): Likewise.
27564         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
27565         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
27566         * tests/test-memchr.c (memchr): Likewise.
27567         * tests/test-memcmp.c (memcmp): Likewise.
27568         * tests/test-memmem.c (memmem): Likewise.
27569         * tests/test-memrchr.c (memrchr): Likewise.
27570         * tests/test-mkdir.c (mkdir): Likewise.
27571         * tests/test-mkdirat.c (mkdirat): Likewise.
27572         * tests/test-mkfifo.c (mkfifo): Likewise.
27573         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
27574         * tests/test-mknod.c (mknod): Likewise.
27575         * tests/test-nanosleep.c (nanosleep): Likewise.
27576         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
27577         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
27578         Likewise.
27579         * tests/test-open.c (open): Likewise.
27580         * tests/test-openat.c (openat): Likewise.
27581         * tests/test-perror.c (perror): Likewise.
27582         * tests/test-pipe2.c (pipe2): Likewise.
27583         * tests/test-poll.c (poll): Likewise.
27584         * tests/test-popen.c (popen, pclose): Likewise.
27585         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
27586         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
27587         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
27588         (posix_spawn_file_actions_destroy)
27589         (posix_spawn_file_actions_addclose)
27590         (posix_spawn_file_actions_addopen)
27591         (posix_spawn_file_actions_adddup2): Likewise.
27592         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
27593         * tests/test-pread.c (pread): Likewise.
27594         * tests/test-printf-posix.c (printf): Likewise.
27595         * tests/test-pty.c (openpty, forkpty): Likewise.
27596         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
27597         (random_r): Likewise.
27598         * tests/test-rawmemchr.c (rawmemchr): Likewise.
27599         * tests/test-readlink.c (readlink): Likewise.
27600         * tests/test-remove.c (remove): Likewise.
27601         * tests/test-rename.c (rename): Likewise.
27602         * tests/test-renameat.c (renameat): Likewise.
27603         * tests/test-rmdir.c (rmdir): Likewise.
27604         * tests/test-round1.c (round): Likewise.
27605         * tests/test-roundf1.c (roundf): Likewise.
27606         * tests/test-roundl.c (roundl): Likewise.
27607         * tests/test-setenv.c (setenv): Likewise.
27608         * tests/test-sigaction.c (sigaction): Likewise.
27609         * tests/test-sleep.c (sleep): Likewise.
27610         * tests/test-snprintf.c (snprintf): Likewise.
27611         * tests/test-sprintf-posix.c (sprintf): Likewise.
27612         * tests/test-stat.c (stat): Likewise.
27613         * tests/test-stpncpy.c (stpncpy): Likewise.
27614         * tests/test-strcasestr.c (strcasestr): Likewise.
27615         * tests/test-strchrnul.c (strchrnul): Likewise.
27616         * tests/test-strerror.c (strerror): Likewise.
27617         * tests/test-strsignal.c (strsignal): Likewise.
27618         * tests/test-strstr.c (strstr): Likewise.
27619         * tests/test-strtod.c (strtod): Likewise.
27620         * tests/test-strverscmp.c (strverscmp): Likewise.
27621         * tests/test-symlink.c (symlink): Likewise.
27622         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
27623         * tests/test-times.c (times): Likewise.
27624         * tests/test-trunc1.c (trunc): Likewise.
27625         * tests/test-truncf1.c (truncf): Likewise.
27626         * tests/test-truncl.c (truncl): Likewise.
27627         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
27628         Likewise.
27629         * tests/test-uname.c (uname): Likewise.
27630         * tests/test-unlink.c (unlink): Likewise.
27631         * tests/test-unlinkat.c (unlinkat): Likewise.
27632         * tests/test-unsetenv.c (unsetenv): Likewise.
27633         * tests/test-usleep.c (usleep): Likewise.
27634         * tests/test-utimensat.c (utimensat): Likewise.
27635         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
27636         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
27637         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
27638         * tests/test-vprintf-posix.c (vprintf): Likewise.
27639         * tests/test-vsnprintf.c (vsnprintf): Likewise.
27640         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
27641         * tests/test-wcrtomb.c (wcrtomb): Likewise.
27642         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
27643         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
27644         * tests/test-wcwidth.c (wcwidth): Likewise.
27645
27646         build: pull in conditional headers during GNULIB_POSIXCHECK
27647         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
27648         definitions from any conditionally-included headers.
27649         * lib/stdlib.in.h (includes): Likewise.
27650         * lib/unistd.in.h (includes): Likewise.
27651
27652 2009-12-24  Bruno Haible  <bruno@clisp.org>
27653
27654         * tests/test-argv-iter.c: Include header file being tested immediately
27655         after config.h.
27656         * tests/test-base64.c: Likewise.
27657         * tests/test-flock.c: Likewise.
27658         * tests/test-fsync.c: Likewise.
27659         * tests/test-getdate.c: Likewise.
27660         * tests/test-getndelim2.c: Likewise.
27661         * tests/test-isfinite.c: Likewise.
27662         * tests/test-isinf.c: Likewise.
27663         * tests/test-strerror.c: Likewise.
27664         * tests/test-strsignal.c: Likewise.
27665
27666 2009-12-23  Eric Blake  <ebb9@byu.net>
27667
27668         unistd: work around cygwin bug
27669         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
27670         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
27671         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27672
27673 2009-12-23  Bruno Haible  <bruno@clisp.org>
27674
27675         localename: More tests.
27676         * tests/test-localename.c (SIZEOF): New macro.
27677         (categories): New variable.
27678         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
27679         test_locale_name_default): Add test w.r.t. thread locale.
27680         (test_locale_name_thread): New function.
27681         (main): Invoke it.
27682
27683         localename: Make aware of thread locale.
27684         * lib/localename.h (gl_locale_name_thread): New declaration.
27685         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
27686         behaviour with respect to thread locale.
27687         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
27688         <langinfo.h>, glthread/lock.h.
27689         (SIZE_BITS): New macro.
27690         (string_hash): New function.
27691         (struct hash_node): New type.
27692         (HASH_TABLE_SIZE): New macro.
27693         (struniq_hash_table, struniq_lock): New variables.
27694         (struniq): New function.
27695         (gl_locale_name_thread): New function.
27696         (gl_locale_name): Invoke it.
27697         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
27698         * modules/localename (Depends-on): Add lock.
27699         Reported by Mike Gran <spk121@yahoo.com>.
27700
27701 2009-12-23  Eric Blake  <ebb9@byu.net>
27702
27703         va-args: new module
27704         * modules/va-args: New file.
27705         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
27706         * MODULES.html.sh (Core language properties): Mention it.
27707
27708         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
27709         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
27710         named alias for __attribute__((__unused__)).
27711         * lib/chown.c: Update client.
27712         * lib/fchmodat.c: Likewise.
27713         * lib/fts.c: Likewise.
27714         * lib/getdate.y: Likewise.
27715         * lib/getgroups.c: Likewise.
27716         * lib/getopt.c: Likewise.
27717         * lib/getugroups.c: Likewise.
27718         * lib/mkdir.c: Likewise.
27719         * lib/mkfifo.c: Likewise.
27720         * lib/mkfifoat.c: Likewise.
27721         * lib/mknod.c: Likewise.
27722         * lib/mknodat.c: Likewise.
27723         * lib/readlink.c: Likewise.
27724         * lib/se-context.in.h: Likewise.
27725         * lib/se-selinux.in.h: Likewise.
27726         * lib/sockets.c: Likewise.
27727         * lib/symlink.c: Likewise.
27728         * lib/symlinkat.c: Likewise.
27729         * lib/unicodeio.c: Likewise.
27730         * lib/unistr.h: Likewise.
27731         * tests/test-areadlink.c: Likewise.
27732         * tests/test-areadlinkat.c: Likewise.
27733         * tests/test-filenamecat.c: Likewise.
27734         * tests/test-fseeko.c: Likewise.
27735         * tests/test-ftello.c: Likewise.
27736         * tests/test-getdate.c: Likewise.
27737         * tests/test-getgroups.c: Likewise.
27738         * tests/test-gethostname.c: Likewise.
27739         * tests/test-quotearg.c: Likewise.
27740         * tests/test-version-etc.c: Likewise.
27741         * tests/test-xalloc-die.c: Likewise.
27742         * tests/test-xfprintf-posix.c: Likewise.
27743         * tests/test-xprintf-posix.c: Likewise.
27744         * tests/test-xvasprintf.c: Likewise.
27745
27746         tests: avoid compiler warnings
27747         * tests/test-fcntl.c (main): Delete unused parameters.
27748         * tests/test-freopen-safer.c (main): Likewise.
27749         * tests/test-xalloc-die.c (main): Mark unused parameters.
27750         * tests/test-fseeko.c (main): Likewise.
27751         * tests/test-ftello.c (main): Likewise.
27752         * tests/test-nanosleep.c (main): Avoid declaration warning.
27753         * tests/test-sleep.c (main): Likewise.
27754         * tests/test-unsetenv.c (main): Silence warning about string
27755         literal.
27756         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
27757
27758 2009-12-23  Bruno Haible  <bruno@clisp.org>
27759
27760         * tests/test-localename.c (test_locale_name): New function, extracted
27761         from main. Also test mixed situations.
27762         (test_locale_name_posix, test_locale_name_environ,
27763         test_locale_name_default): New functions.
27764         (main): Invoke them all.
27765         * modules/localename-tests (configure.ac): Test for newlocale.
27766
27767 2009-12-23  Bruno Haible  <bruno@clisp.org>
27768
27769         unistd: Ensure getcwd gets declared before being overridden.
27770         * lib/unistd.in.h: Conditionally include <io.h>.
27771
27772 2009-12-22  Bruno Haible  <bruno@clisp.org>
27773
27774         wchar: Diagnose broken combination of glibc and gcc versions and flags.
27775         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
27776         (gl_WCHAR_H): Invoke it.
27777         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
27778         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
27779         Reported by Karl Berry <karl@freefriends.org>.
27780
27781 2009-12-22  Eric Blake  <ebb9@byu.net>
27782
27783         math, unistd: avoid redundant includes
27784         * lib/math.in.h (isnan): No need to re-include <math.h>.
27785         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
27786
27787         getsubopt: work around cygwin bug
27788         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
27789         avoid conflicting with system getsubopt.
27790         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
27791         bug.
27792
27793         getopt: synchronize from glibc
27794         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
27795         parameter order.  Adjust all callers.
27796         (_getopt_internal_r, main): Adjust quoting in error messages.
27797         Drop considerations for outdated POSIX 1003.2 error message.
27798         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
27799         callers.
27800         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
27801
27802         test-getopt: test stderr behavior
27803         * modules/getopt-posix-tests (Depends-on): Add dup2.
27804         * tests/test-getopt.c (ASSERT): Avoid stderr.
27805         (main): Move stderr to a temporary file.
27806         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
27807         Instead, add parameter to inform caller if output occurred.
27808         (test_getopt): Adjust all existing tests to expect silence, and
27809         add new tests of leading ":".
27810         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
27811         glibc shortcomings with leading "-:" or "+:" in optstring.
27812         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27813         Likewise.
27814         * doc/posix-functions/getopt.texi (getopt): Likewise.
27815
27816         test-getopt: enhance test
27817         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
27818         supports optind=0.
27819         * tests/test-getopt.c (OPTIND_MIN): Move...
27820         * tests/test-getopt.h (OPTIND_MIN): ...here.
27821         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
27822         Require that optind=0 works, since modern BSD supports it in
27823         addition to optreset, and since coreutils expects it.
27824         (test_getopt_long_only): New test.
27825         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
27826         glibc shortcomings with 'W;', and enforcement of optind=0.
27827         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27828         Likewise.
27829
27830 2009-12-21  Bruno Haible  <bruno@clisp.org>
27831
27832         localename: Improvements for MacOS X and Cygwin.
27833         * lib/localename.h (gl_locale_name_environ): New declaration.
27834         * lib/localename.c (gl_locale_name_environ): New function, extracted from
27835         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
27836         (gl_locale_name_posix): Invoke it.
27837         (gl_locale_name_default): Add comments. Use Windows native API also on
27838         Cygwin.
27839
27840 2009-12-21  Bruno Haible  <bruno@clisp.org>
27841
27842         Update list of Win32 locale ids.
27843         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
27844         (LANG_SAMI): Renamed from LANG_SAAMI.
27845         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
27846         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
27847         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
27848         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
27849         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
27850         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
27851         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
27852         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
27853         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
27854         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
27855         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
27856         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
27857         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
27858         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
27859         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
27860         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
27861         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
27862         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
27863         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
27864         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
27865         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
27866         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
27867         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
27868         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
27869         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
27870         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
27871         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
27872         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
27873         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
27874         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
27875         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
27876         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
27877         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
27878         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
27879         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
27880         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
27881         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
27882         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
27883         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
27884         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
27885         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
27886         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
27887         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
27888         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
27889         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
27890         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
27891         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
27892         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
27893         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
27894         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
27895         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
27896         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
27897         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
27898         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
27899         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
27900         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
27901         Add more languages and countries for Sami, Sorbian. Add more countries
27902         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
27903         for Pashto. Change country for Syriac, Tswana.
27904
27905 2009-12-21  Eric Blake  <ebb9@byu.net>
27906
27907         test-utimens: avoid spurious failure
27908         * tests/test-chown.h (nap): Factor...
27909         * tests/nap.h: ...into new file.
27910         * tests/test-lchown.h (nap): Avoid duplication.
27911         * tests/test-utimens-common.h (nap): Use shared implementation,
27912         necessary on file systems with 1-second resolution.
27913         * modules/chown-tests (Files): Include new file.
27914         * modules/fdutimensat-tests (Files): Likewise.
27915         * modules/futimens-tests (Files): Likewise.
27916         * modules/lchown-tests (Files): Likewise.
27917         * modules/openat-tests (Files): Likewise.
27918         * modules/utimens-tests (Files): Likewise.
27919         * modules/utimensat-tests (Files): Likewise.
27920
27921 2009-12-19  Eric Blake  <ebb9@byu.net>
27922
27923         futimens, utimensat: work around Linux bug
27924         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
27925         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27926         * lib/utimensat.c (rpl_utimensat): Work around it.
27927         * lib/futimens.c (rpl_futimens): Adjust comment.
27928
27929         utimens: work around Linux ctime bug
27930         * lib/utimens.c (detect_ctime_bug): New helper function.
27931         (update_timespec): Differentiate between workaround needed for
27932         this bug vs. what is needed for systems that lack utimensat.
27933         (fdutimens, lutimens): Work around bug.
27934
27935         utimens: check for ctime update
27936         * tests/test-utimens-common.h (check_ctime): Define.
27937         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
27938         * tests/test-futimens.h (test_futimens): Likewise.
27939         * tests/test-lutimens.h (test_lutimens): Likewise.
27940         * doc/posix-functions/futimens.texi (futimens): Document the bug.
27941         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27942
27943 2009-12-19  Bruno Haible  <bruno@clisp.org>
27944
27945         dprintf-posix: Check against memory leak fixed on 2009-12-15.
27946         * tests/test-dprintf-posix2.sh: New file.
27947         * tests/test-dprintf-posix2.c: New file.
27948         * modules/dprintf-posix-tests (Files): Add them.
27949         (configure.ac): Check for getrlimit and setrlimit.
27950         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
27951
27952 2009-12-19  Bruno Haible  <bruno@clisp.org>
27953
27954         fprintf-posix: Check against memory leak fixed on 2009-12-15.
27955         * tests/test-fprintf-posix3.sh: New file.
27956         * tests/test-fprintf-posix3.c: New file.
27957         * modules/fprintf-posix-tests (Files): Add them.
27958         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
27959
27960 2009-12-19  Eric Blake  <ebb9@byu.net>
27961
27962         dirfd: fix prototype
27963         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
27964         * lib/dirfd.c (dirfd): Likewise.
27965
27966         canonicalize: reduce memory usage
27967         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
27968         allocation to size.
27969         Reported by Solar Designer <solar@openwall.com>.
27970
27971 2009-12-19  Bruno Haible  <bruno@clisp.org>
27972
27973         New module attribute 'Applicability'.
27974         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
27975         * gnulib-tool: New option --extract-applicability.
27976         (func_usage): Document it.
27977         (sed_extract_prog): Recognize it.
27978         (func_get_applicability): New function.
27979         (func_import): Generalize handling of 'link-warning' module.
27980         * modules/link-warning (Applicability): New section.
27981         * modules/arg-nonnull (Applicability): New section.
27982         Repoted by Simon Josefsson <simon@josefsson.org>.
27983
27984 2009-12-19  Bruno Haible  <bruno@clisp.org>
27985
27986         fflush: tweak
27987         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
27988         * lib/fseeko.c (rpl_fseeko): Likewise.
27989
27990 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
27991
27992         * lib/gl_list.h: Fix typo in comment.
27993
27994 2009-12-16  Eric Blake  <ebb9@byu.net>
27995
27996         fcntl: use to simplify other modules
27997         * modules/cloexec (Depends-on): Add fcntl.
27998         * modules/fchdir (Depends-on): Likewise.
27999         * modules/fd-safer-flag (Depends-on): Likewise.
28000         * modules/unistd-safer (Depends-on): Likewise.
28001         * modules/dup3 (configure.ac): Set module indicator.
28002         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
28003         missing.
28004         * lib/fchdir.c (_gl_register_dup): Fix comment.
28005         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
28006         * lib/dup-safer.c (dup_safer): Likewise.
28007         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
28008         * lib/dup3.c (dup3): Likewise.
28009         * tests/test-fchdir.c (main): Enhance test.
28010         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
28011
28012         fcntl: port portions of fcntl to mingw
28013         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
28014         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
28015         replacement for mingw.
28016         * modules/fcntl (Description): Update.
28017         (Depends-on): Add dup2.
28018         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
28019         * modules/fcntl-h (Makefile.am): Substitute it.
28020         * lib/fcntl.in.h (fcntl): Update declaration.
28021         (F_DUPFD, F_GETFD): New macros, when needed.
28022         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
28023         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
28024         * tests/test-fcntl.c (check_flags, main): Enhance test for items
28025         we now guarantee.
28026
28027         fcntl: work around cygwin bug in F_DUPFD
28028         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
28029         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
28030         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
28031         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
28032         * doc/posix-functions/fcntl.texi (fcntl): Document it.
28033
28034         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
28035         * modules/fcntl (Files): List new files.
28036         (configure.ac): Run a test.
28037         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
28038         * lib/fcntl.c (rpl_fcntl): Likewise.
28039         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
28040         (gl_FCNTL_H): Always replace fcntl.h.
28041         * modules/fcntl-h (Makefile.am): Substitute witnesses.
28042         * lib/fcntl.in.h (fcntl): Declare replacement.
28043         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
28044         needed, plus a witness.
28045         * doc/posix-functions/fcntl.texi (fcntl): Document this.
28046         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
28047         * tests/test-fcntl.c: New file.
28048         * modules/fcntl-tests: Likewise.
28049
28050         binary-io: avoid potential compilation warning
28051         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
28052         directives.
28053
28054         fflush: avoid compilation error on NetBSD
28055         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
28056         between off_t and fpos_t, since the latter is sometimes a struct.
28057         * lib/fseeko.c (rpl_fseeko): Likewise.
28058         Reported by Alexander Nasonov <alnsn@yandex.ru>.
28059
28060 2009-12-15  Eric Blake  <ebb9@byu.net>
28061
28062         fcntl-h, stdio, sys_ioctl: fix declarations
28063         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
28064         function must not take arguments.
28065         * lib/sys_ioctl.in.h (ioctl): Likewise.
28066         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
28067         (open): Add a link warning.
28068
28069 2009-12-15  Jim Meyering  <meyering@redhat.com>
28070
28071         areadlink, areadlink-with-size: relax license to LGPLv2+
28072         * modules/areadlink (License): Relax to LGPLv2+.
28073         * modules/areadlink-with-size (License): Likewise.
28074
28075 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
28076             Bruno Haible  <bruno@clisp.org>
28077
28078         *printf: Fix memory leak.
28079         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
28080         * lib/vfprintf.c (vfprintf): Likewise.
28081         * lib/dprintf.c (dprintf): Likewise.
28082         * lib/vdprintf.c (vdprintf): Likewise.
28083
28084 2009-12-14  Eric Blake  <ebb9@byu.net>
28085
28086         accept4: adjust module dependencies
28087         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
28088
28089         utimens: one more try at avoiding compiler warning
28090         * lib/utimens.c (lutimens): Lower scope of result.
28091
28092 2009-12-13  Bruno Haible  <bruno@clisp.org>
28093
28094         Move the malloc checking from module 'list' to new module 'xlist'.
28095         * modules/xlist: New file.
28096         * lib/gl_xlist.h: New file.
28097         * lib/gl_xlist.c: New file.
28098         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
28099         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
28100         gl_list_add_last, gl_list_add_before, gl_list_add_after,
28101         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
28102         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
28103         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
28104         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
28105         gl_sortedlist_nx_add): New declarations.
28106         (struct gl_list_implementation): Rename and change methods accordingly.
28107         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
28108         (gl_list_nx_create): Renamed from gl_list_create.
28109         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
28110         (gl_list_nx_set_at): Renamed from gl_list_set_at.
28111         (gl_list_nx_add_first): Renamed from gl_list_add_first.
28112         (gl_list_nx_add_last): Renamed from gl_list_add_last.
28113         (gl_list_nx_add_before): Renamed from gl_list_add_before.
28114         (gl_list_nx_add_after): Renamed from gl_list_add_after.
28115         (gl_list_nx_add_at): Renamed from gl_list_add_at.
28116         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
28117         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
28118         gl_list_create_empty.
28119         (gl_list_nx_create): Renamed from gl_list_create.
28120         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
28121         (gl_list_nx_set_at): Renamed from gl_list_set_at.
28122         (gl_list_nx_add_first): Renamed from gl_list_add_first.
28123         (gl_list_nx_add_last): Renamed from gl_list_add_last.
28124         (gl_list_nx_add_before): Renamed from gl_list_add_before.
28125         (gl_list_nx_add_after): Renamed from gl_list_add_after.
28126         (gl_list_nx_add_at): Renamed from gl_list_add_at.
28127         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
28128         * lib/gl_array_list.c: Don't include xalloc.h.
28129         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
28130         NULL upon out-of-memory.
28131         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
28132         out-of-memory.
28133         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
28134         Change return type to 'int'.
28135         (gl_array_nx_set_at): Renamed from gl_array_set_at.
28136         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
28137         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
28138         upon out-of-memory.
28139         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
28140         upon out-of-memory.
28141         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
28142         upon out-of-memory.
28143         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
28144         upon out-of-memory.
28145         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
28146         out-of-memory.
28147         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
28148         Update.
28149         (gl_array_list_implementation): Update.
28150         * lib/gl_carray_list.c: Don't include xalloc.h.
28151         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
28152         Return NULL upon out-of-memory.
28153         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
28154         out-of-memory.
28155         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
28156         Change return type to 'int'.
28157         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
28158         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
28159         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
28160         upon out-of-memory.
28161         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
28162         upon out-of-memory.
28163         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
28164         out-of-memory.
28165         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
28166         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
28167         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
28168         Update.
28169         (gl_carray_list_implementation): Update.
28170         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
28171         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
28172         gl_linked_create_empty. Return NULL upon out-of-memory.
28173         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
28174         out-of-memory.
28175         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
28176         Change return type to 'int'. Return -1 upon out-of-memory.
28177         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
28178         out-of-memory.
28179         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
28180         upon out-of-memory.
28181         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
28182         upon out-of-memory.
28183         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
28184         NULL upon out-of-memory.
28185         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
28186         upon out-of-memory.
28187         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
28188         out-of-memory.
28189         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
28190         Update.
28191         * lib/gl_linked_list.c: Don't include xalloc.h.
28192         (gl_linked_list_implementation): Update.
28193         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
28194         (add_to_bucket): Change return type to 'int'.
28195         (gl_linkedhash_list_implementation): Update.
28196         * lib/gl_anytree_list1.h (free_subtree): New function.
28197         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
28198         gl_tree_create_empty. Return NULL upon out-of-memory.
28199         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
28200         Change return type to 'int'. Return -1 upon out-of-memory.
28201         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
28202         out-of-memory.
28203         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
28204         (gl_tree_remove_node): New function, moved here from
28205         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
28206         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
28207         Update.
28208         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
28209         malloc, not xmalloc. Return NULL upon out-of-memory.
28210         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
28211         out-of-memory.
28212         (gl_tree_remove_node_from_tree): New function, extracted from
28213         gl_tree_remove_node.
28214         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
28215         upon out-of-memory.
28216         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
28217         out-of-memory.
28218         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
28219         upon out-of-memory.
28220         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
28221         upon out-of-memory.
28222         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
28223         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
28224         not xmalloc. Return NULL upon out-of-memory.
28225         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
28226         out-of-memory.
28227         (gl_tree_remove_node_from_tree): New function, extracted from
28228         gl_tree_remove_node.
28229         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
28230         upon out-of-memory.
28231         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
28232         out-of-memory.
28233         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
28234         upon out-of-memory.
28235         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
28236         upon out-of-memory.
28237         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
28238         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
28239         gl_anytree_list1.h before gl_anyavltree_list2.h.
28240         (gl_avltree_list_implementation): Update.
28241         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
28242         gl_anytree_list1.h before gl_anyavltree_list2.h.
28243         (gl_rbtree_list_implementation): Update.
28244         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
28245         Change return type to 'int'. Return -1 upon out-of-memory. Use
28246         __builtin_expect.
28247         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
28248         (gl_avltreehash_list_implementation): Update.
28249         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
28250         (gl_rbtreehash_list_implementation): Update.
28251         * modules/array-list (Depends-on): Remove xalloc.
28252         * modules/carray-list (Depends-on): Likewise.
28253         * modules/linked-list (Depends-on): Likewise.
28254         * modules/linkedhash-list (Depends-on): Likewise.
28255         * modules/avltree-list (Depends-on): Likewise.
28256         * modules/rbtree-list (Depends-on): Likewise.
28257         * modules/avltreehash-list (Depends-on): Likewise.
28258         * modules/rbtreehash-list (Depends-on): Likewise.
28259
28260         * modules/xsublist: New file.
28261         * lib/gl_xsublist.h: New file.
28262         * lib/gl_xsublist.c: New file.
28263         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
28264         (gl_sublist_nx_create): New declaration.
28265         * lib/gl_sublist.c: Don't include xalloc.h.
28266         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
28267         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
28268         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
28269         Change return type to 'int'. Return -1 upon out-of-memory.
28270         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
28271         upon out-of-memory.
28272         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
28273         NULL upon out-of-memory.
28274         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
28275         upon out-of-memory.
28276         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
28277         NULL upon out-of-memory.
28278         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
28279         NULL upon out-of-memory.
28280         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
28281         upon out-of-memory.
28282         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
28283         (gl_sublist_list_implementation): Update.
28284         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
28285         upon out-of-memory.
28286         * modules/sublist (Depends-on): Remove xalloc.
28287
28288         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
28289         * tests/test-carray_list.c: Likewise.
28290         * tests/test-linked_list.c: Likewise.
28291         * tests/test-linkedhash_list.c: Likewise.
28292         * tests/test-avltree_list.c: Likewise.
28293         * tests/test-rbtree_list.c: Likewise.
28294         * tests/test-avltreehash_list.c: Likewise.
28295         * tests/test-rbtreehash_list.c: Likewise.
28296         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
28297         * modules/carray-list-tests (Makefile.am): Likewise.
28298         * modules/linked-list-tests (Makefile.am): Likewise.
28299         * modules/linkedhash-list-tests (Makefile.am): Likewise.
28300         * modules/avltree-list-tests (Makefile.am): Likewise.
28301         * modules/rbtree-list-tests (Makefile.am): Likewise.
28302         * modules/avltreehash-list-tests (Makefile.am): Likewise.
28303         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
28304
28305         * NEWS: Mention the changes.
28306
28307         * lib/clean-temp.c: Include gl_xlist.h.
28308         * modules/clean-temp (Depends-on): Add xlist.
28309
28310         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
28311         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
28312
28313         * tests/test-array_oset.c: Include gl_xlist.h.
28314         * modules/array-oset-tests (Depends-on): Add xlist.
28315
28316         Reported by José E. Marchesi <jemarch@gnu.org>.
28317
28318 2009-12-13  Bruno Haible  <bruno@clisp.org>
28319
28320         Move the malloc checking from module 'oset' to new module 'xoset'.
28321         * modules/xoset: New file.
28322         * lib/gl_xoset.h: New file.
28323         * lib/gl_xoset.c: New file.
28324         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
28325         declarations.
28326         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
28327         (struct gl_oset_implementation): Rename and change methods accordingly.
28328         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
28329         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
28330         'int'. Mark as __warn_unused_result__.
28331         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
28332         gl_oset_create_empty.
28333         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
28334         'int'.
28335         * lib/gl_array_oset.c: Don't include xalloc.h.
28336         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
28337         malloc, not xmalloc.
28338         (grow): Change return type to 'int'. Don't call xalloc_die.
28339         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
28340         to 'int'.
28341         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
28342         'int'.
28343         (gl_array_oset_implementation): Update.
28344         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
28345         gl_tree_create_empty.
28346         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
28347         'int'.
28348         * lib/gl_avltree_oset.c: Don't include xalloc.h.
28349         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
28350         xmalloc.
28351         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
28352         not xmalloc.
28353         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
28354         xmalloc.
28355         (gl_avltree_oset_implementation): Update.
28356         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
28357         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
28358         xmalloc.
28359         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
28360         not xmalloc.
28361         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
28362         xmalloc.
28363         (gl_rbtree_oset_implementation): Update.
28364         * modules/array-oset (Depends-on): Remove xalloc.
28365         * modules/avltree-oset (Depends-on): Likewise.
28366         * modules/rbtree-oset (Depends-on): Likewise.
28367         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
28368         * tests/test-avltree_oset.c: Likewise.
28369         * tests/test-rbtree_oset.c: Likewise.
28370         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
28371         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
28372         * modules/rbtree-oset-tests (Makefile.am): Likewise.
28373         * NEWS: Mention the change.
28374
28375 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
28376
28377         maint.mk: allow a project to override release-prep commands
28378         * top/maint.mk (alpha, beta, stable): Move release-preparatory
28379         commands into a new rule.
28380         (release-prep): New rule.
28381         (release-prep-hook): New overridable variable.
28382
28383 2009-12-13  Bruno Haible  <bruno@clisp.org>
28384
28385         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
28386
28387 2009-12-13  Jim Meyering  <meyering@redhat.com>
28388
28389         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
28390         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
28391
28392 2009-12-12  Bruno Haible  <bruno@clisp.org>
28393
28394         duplocale: Tweak.
28395         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
28396
28397 2009-12-12  Karl Berry  <karl@gnu.org>
28398
28399         * config/srclist.txt (strtoll.c): tab changes, no more sync.
28400
28401 2009-12-12  Bruno Haible  <bruno@clisp.org>
28402
28403         * m4/po.m4: Undo incorrect untabification.
28404
28405 2009-12-12  Bruno Haible  <bruno@clisp.org>
28406
28407         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
28408         * modules/c-strtod (Depends-on): Add locale.
28409         * modules/c-strtold (Depends-on): Likewise.
28410
28411 2009-12-12  Bruno Haible  <bruno@clisp.org>
28412
28413         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
28414
28415 2009-12-11  Eric Blake  <ebb9@byu.net>
28416
28417         setenv: relax requirement in light of POSIX ruling
28418         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
28419         not NULL.
28420         * tests/test-setenv.c (main): Relax test.
28421         * tests/test-unsetenv.c (main): Likewise.
28422         * doc/posix-functions/setenv.texi (setenv): Document this.
28423         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
28424
28425 2009-12-11  Bruno Haible  <bruno@clisp.org>
28426
28427         New module 'fd-safer-flag'.
28428         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
28429         * lib/dup-safer.c (dup_safer_flag): Remove function.
28430         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
28431         * lib/fd-safer.c (fd_safer_flag): Remove function.
28432         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
28433         * modules/cloexec (configure.ac): Drop indicator macro.
28434         * modules/fd-safer-flag: New file.
28435         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
28436         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
28437         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
28438
28439 2009-12-11  Bruno Haible  <bruno@clisp.org>
28440
28441         Tests for module 'nl_langinfo'.
28442         * modules/nl_langinfo-tests: New file.
28443         * tests/test-nl_langinfo.sh: New file.
28444         * tests/test-nl_langinfo.c: New file.
28445
28446         New module 'nl_langinfo'.
28447         * lib/nl_langinfo.c: New file.
28448         * m4/nl_langinfo.m4: New file.
28449         * modules/nl_langinfo: New file.
28450         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
28451
28452 2009-12-11  Bruno Haible  <bruno@clisp.org>
28453
28454         Tests for module 'langinfo'.
28455         * modules/langinfo-tests: New file.
28456         * tests/test-langinfo.c: New file.
28457
28458         New module 'langinfo'.
28459         * lib/langinfo.in.h: New file.
28460         * m4/langinfo_h.m4: New file.
28461         * modules/langinfo: New file.
28462         * doc/posix-headers/langinfo.texi: Mention the new module.
28463
28464 2009-12-11  Bruno Haible  <bruno@clisp.org>
28465
28466         * lib/config.charset: Untabify.
28467
28468 2009-12-11  Bruno Haible  <bruno@clisp.org>
28469
28470         * modules/unistd-safer (configure.ac): Drop indicator macro.
28471
28472 2009-12-11  Bruno Haible  <bruno@clisp.org>
28473
28474         Move pipe2-safer code to its own file.
28475         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
28476         * lib/pipe-safer.c (pipe2_safer): Remove function.
28477         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
28478         (Makefile.am): Add it to lib_SOURCES.
28479
28480 2009-12-10  Bruno Haible  <bruno@clisp.org>
28481
28482         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
28483
28484 2009-12-10  Bruno Haible  <bruno@clisp.org>
28485
28486         Declare which arguments expect non-NULL values, for GCC and clang.
28487         * build-aux/arg-nonnull.h: New file.
28488         * modules/arg-nonnull: New file.
28489         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
28490         (inet_ntop, inet_pton): Use it.
28491         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
28492         (closedir, dirfd, opendir, scandir, alphasort): Use it.
28493         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
28494         (open, openat): Use it.
28495         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
28496         (fnmatch): Use it.
28497         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
28498         (getopt, getopt_long, getopt_long_only): Use it.
28499         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
28500         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
28501         Use it.
28502         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
28503         (iconv_open): Use it.
28504         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
28505         (strtoimax, strtoumax): Use it.
28506         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
28507         (duplocale): Use it.
28508         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
28509         (frexp, frexpl): Use it.
28510         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
28511         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
28512         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
28513         (tsearch, tfind, tdelete, twalk): Use it.
28514         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
28515         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
28516         sigpending): Use it.
28517         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
28518         (posix_spawn, posix_spawnp, posix_spawnattr_init,
28519         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
28520         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
28521         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
28522         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
28523         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
28524         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
28525         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
28526         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
28527         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
28528         Use it.
28529         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
28530         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
28531         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
28532         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
28533         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
28534         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
28535         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
28536         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
28537         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
28538         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
28539         strtoull, unsetenv): Use it.
28540         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
28541         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
28542         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
28543         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
28544         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
28545         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
28546         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
28547         (strcasecmp, strncasecmp): Use it.
28548         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
28549         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
28550         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
28551         rpl_setsockopt): Use it.
28552         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
28553         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
28554         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
28555         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
28556         (gettimeofday): Use it.
28557         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
28558         (times): Use it.
28559         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
28560         (uname): Use it.
28561         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
28562         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
28563         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
28564         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
28565         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
28566         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
28567         unlinkat, write): Use it.
28568         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
28569         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
28570         * lib/argv-iter.h: Include arg-nonnull.h.
28571         (_ATTRIBUTE_NONNULL_): Remove macro.
28572         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
28573         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
28574         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
28575         optimization.
28576         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
28577         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
28578         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
28579         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
28580         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
28581         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
28582         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
28583         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
28584         * modules/arpa_inet (Depends-on): Add arg-nonnull.
28585         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
28586         * modules/dirent (Depends-on): Add arg-nonnull.
28587         (Makefile.am): Insert arg-nonnull.h into dirent.h.
28588         * modules/fcntl-h (Depends-on): Add arg-nonnull.
28589         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
28590         * modules/fnmatch (Depends-on): Add arg-nonnull.
28591         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
28592         * modules/getopt-posix (Depends-on): Add arg-nonnull.
28593         (Makefile.am): Insert arg-nonnull.h into getopt.h.
28594         * modules/glob (Depends-on): Add arg-nonnull.
28595         (Makefile.am): Insert arg-nonnull.h into glob.h.
28596         * modules/iconv_open (Depends-on): Add arg-nonnull.
28597         (Makefile.am): Insert arg-nonnull.h into iconv.h.
28598         * modules/inttypes (Depends-on): Add arg-nonnull.
28599         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
28600         * modules/locale (Depends-on): Add arg-nonnull.
28601         (Makefile.am): Insert arg-nonnull.h into locale.h.
28602         * modules/math (Depends-on): Add arg-nonnull.
28603         (Makefile.am): Insert arg-nonnull.h into math.h.
28604         * modules/netdb (Depends-on): Add arg-nonnull.
28605         (Makefile.am): Insert arg-nonnull.h into netdb.h.
28606         * modules/search (Depends-on): Add arg-nonnull.
28607         (Makefile.am): Insert arg-nonnull.h into search.h.
28608         * modules/signal (Depends-on): Add arg-nonnull.
28609         (Makefile.am): Insert arg-nonnull.h into signal.h.
28610         * modules/spawn (Depends-on): Add arg-nonnull.
28611         (Makefile.am): Insert arg-nonnull.h into spawn.h.
28612         * modules/stdio (Depends-on): Add arg-nonnull.
28613         (Makefile.am): Insert arg-nonnull.h into stdio.h.
28614         * modules/stdlib (Depends-on): Add arg-nonnull.
28615         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
28616         * modules/string (Depends-on): Add arg-nonnull.
28617         (Makefile.am): Insert arg-nonnull.h into string.h.
28618         * modules/strings (Depends-on): Add arg-nonnull.
28619         (Makefile.am): Insert arg-nonnull.h into strings.h.
28620         * modules/sys_socket (Depends-on): Add arg-nonnull.
28621         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
28622         * modules/sys_stat (Depends-on): Add arg-nonnull.
28623         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
28624         * modules/sys_time (Depends-on): Add arg-nonnull.
28625         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
28626         * modules/sys_times (Depends-on): Add arg-nonnull.
28627         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
28628         * modules/sys_utsname (Depends-on): Add arg-nonnull.
28629         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
28630         * modules/time (Depends-on): Add arg-nonnull.
28631         (Makefile.am): Insert arg-nonnull.h into time.h.
28632         * modules/unistd (Depends-on): Add arg-nonnull.
28633         (Makefile.am): Insert arg-nonnull.h into unistd.h.
28634         * modules/wchar (Depends-on): Add arg-nonnull.
28635         (Makefile.am): Insert arg-nonnull.h into wchar.h.
28636         * modules/argv-iter (Depends-on): Add arg-nonnull.
28637         * tests/test-canonicalize.c (null_ptr): New function.
28638         (main): Use it.
28639         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
28640         (main): Use it.
28641         * tests/test-memmem.c (null_ptr): New function.
28642         (main): Use it.
28643         Reported by Jim Meyering.
28644
28645 2009-12-10  Bruno Haible  <bruno@clisp.org>
28646
28647         Use spaces for indentation, not tabs.
28648         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
28649         * m4/*.m4: Untabify.
28650         * build-aux/*.h: Untabify.
28651         * tests/**/*.[hc]: Untabify.
28652         * README: New section "Indent with spaces, not TABs", based on
28653         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
28654         * NEWS: Mention the change.
28655
28656 2009-12-10  Bruno Haible  <bruno@clisp.org>
28657
28658         pty test: Fix link error.
28659         * modules/pty-tests (Makefile.am): Add the default LDADD value to
28660         test_pty_LDADD.
28661
28662 2009-12-07  Simon Josefsson  <simon@josefsson.org>
28663
28664         * modules/pty: New file.
28665         * modules/pty-tests: New file.
28666         * m4/pty.m4: New file.
28667         * tests/test-pty.c: New file.
28668         * doc/glibc-headers/pty.texi: Modified.
28669         * doc/glibc-functions/forkpty.texi: Modified.
28670         * doc/glibc-functions/openpty.texi: Modified.
28671
28672 2009-12-10  Bruno Haible  <bruno@clisp.org>
28673
28674         Avoid syntax error in C++ mode.
28675         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
28676
28677 2009-12-10  Bruno Haible  <bruno@clisp.org>
28678
28679         Use sed with option -e.
28680         * gnulib-tool (func_version, func_emit_copyright_notice,
28681         func_emit_initmacro_end, func_import, func_create_testdir): Pass
28682         option -e to sed.
28683         * modules/link-warning (Makefile.am): Likewise.
28684
28685 2009-12-10  Jim Meyering  <meyering@redhat.com>
28686
28687         mgetgroups: do not write bytes beyond end of malloc'd buffer
28688         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
28689         username, we call getgroups with a one-element-shorter buffer,
28690         but still told it the length was original, max_n_groups.
28691
28692 2009-12-09  Eric Blake  <ebb9@byu.net>
28693
28694         cloexec: relax license
28695         * modules/cloexec (Maintainer): Add myself.
28696         (License): Use LGPL, not GPL.
28697
28698         link-warning: optimize generation
28699         * modules/link-warning (Makefile.am): Reduce process usage.
28700
28701 2009-12-09  Bruno Haible  <bruno@clisp.org>
28702
28703         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
28704         workaround was added on 2009-11-17.
28705
28706 2009-12-09  Jim Meyering  <meyering@redhat.com>
28707             Bruno Haible  <bruno@clisp.org>
28708
28709         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
28710         * modules/link-warning (Makefile.am): Make the comment-removing sed
28711         command more robust in the face of bootstrap-prepended comment lines.
28712
28713 2009-12-09  Bruno Haible  <bruno@clisp.org>
28714
28715         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
28716         most one group.
28717
28718 2009-12-09  Simon Josefsson <simon@josefsson.org>
28719             Bruno Haible  <bruno@clisp.org>
28720
28721         * build-aux/link-warning.h: Add copyright notice.
28722         * modules/link-warning (Makefile.am): Generate link-warning.h from
28723         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
28724         * NEWS: Mention change in link-warning module.
28725         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
28726         * modules/dirent (Makefile.am): Add dependency to dirent.h.
28727         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
28728         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
28729         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
28730         * modules/math (Makefile.am): Add dependency to math.h.
28731         * modules/search (Makefile.am): Add dependency to search.h.
28732         * modules/signal (Makefile.am): Add dependency to signal.h.
28733         * modules/spawn (Makefile.am): Add dependency to spawn.h.
28734         * modules/stdio (Makefile.am): Add dependency to stdio.h.
28735         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
28736         * modules/string (Makefile.am): Add dependency to string.h.
28737         * modules/strings (Makefile.am): Add dependency to strings.h.
28738         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
28739         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
28740         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
28741         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
28742         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
28743         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
28744         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
28745         * modules/unistd (Makefile.am): Add dependency to unistd.h.
28746         * modules/wchar (Makefile.am): Add dependency to wchar.h.
28747
28748 2009-12-09  Bruno Haible  <bruno@clisp.org>
28749
28750         fchdir: Optimize away rpl_fstat when possible.
28751         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
28752         REPLACE_OPEN_DIRECTORY.
28753         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
28754
28755 2009-12-09  Bruno Haible  <bruno@clisp.org>
28756
28757         * lib/fchdir.c: Update comment.
28758
28759 2009-12-09  Bruno Haible  <bruno@clisp.org>
28760
28761         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
28762
28763 2009-12-08  Eric Blake  <ebb9@byu.net>
28764
28765         fchdir: avoid memory leak on re-registration.
28766         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
28767
28768 2009-12-08  Jim Meyering  <meyering@redhat.com>
28769
28770         init.sh: avoid Solaris 10 /bin/sh portability problem
28771         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
28772         sourced script:
28773           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
28774           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
28775           bar
28776         tests/init.sh relied on that, accepting a --set-path=DIR argument,
28777         and two tests used that idiom.
28778         * tests/init.sh: Update suggested usage comments.
28779         (path_prepend_): New function, to be used in place
28780         of the --src-path=DIR option.
28781         (setup_): Move PATH-prepending code into path_prepend_.
28782         * tests/test-pread.sh: Adapt to new usage.
28783         * tests/test-xalloc-die.sh: Likewise.
28784
28785 2009-12-08  Simon Josefsson  <simon@josefsson.org>
28786
28787         * doc/gnulib.texi (Glibc pty.h): Add.
28788         * doc/glibc-functions/forkpty.texi: Add.
28789         * doc/glibc-functions/openpty.texi: Add.
28790         Suggested by Bruno Haible.
28791
28792 2009-12-08  Eric Blake  <ebb9@byu.net>
28793
28794         fchdir: fix logic bugs
28795         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
28796         * tests/test-fchdir.c (main): Enhance test.
28797         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
28798         is in use.
28799
28800         dup2: fix logic bugs
28801         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
28802         REPLACE_DUP2 to decide when rpl_dup2 is needed.
28803         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
28804         exists.
28805         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
28806
28807 2009-12-07  Eric Blake  <ebb9@byu.net>
28808
28809         unlink: fix m4 detection
28810         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
28811
28812         unistd-safer: add unit test
28813         * modules/unistd-safer-tests: New file.
28814         * tests/test-dup-safer.c: Likewise.
28815         * tests/test-cloexec.c (setmode): Avoid compiler warning.
28816         * tests/test-dup2.c (setmode): Likewise.
28817         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
28818
28819         cloexec: preserve text vs. binary across dup_cloexec
28820         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
28821         mode.
28822         * modules/dup2-tests (Depends-on): Add binary-io.
28823         * modules/cloexec-tests (Depends-on): Likewise.
28824         * tests/test-dup2.c (setmode, is_mode): New helpers.
28825         (main): Add tests that translation mode is preserved.
28826         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
28827         Reported by Bruno Haible.
28828
28829         mgetgroups: reduce duplicate listings
28830         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
28831         resulting array.
28832         * tests/test-chown.h (test_chown): Simplify client.
28833         * tests/test-lchown.h (test_lchown): Likewise.
28834
28835 2009-12-06  Bruno Haible  <bruno@clisp.org>
28836
28837         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
28838         value.
28839
28840 2009-12-06  Bruno Haible  <bruno@clisp.org>
28841
28842         * lib/progname.c: Include stdio.h, stdlib.h.
28843         (set_program_name): Reject a NULL argument.
28844
28845 2009-12-05  Eric Blake  <ebb9@byu.net>
28846
28847         pipe2-safer: new module
28848         * modules/pipe2-safer: New file.
28849         * lib/unistd-safer.h (pipe2_safer): New prototype.
28850         * lib/unistd--.h (pipe2): New wrapper.
28851         * lib/pipe-safer.c (pipe2_safer): New function.
28852         * modules/pipe (Depends-on): Add pipe2-safer.
28853         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
28854
28855         stdlib-safer: preserve cloexec flag for mkostemp[s]
28856         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
28857         fd_safer_flag.
28858
28859         unistd-safer: allow preservation of cloexec status via flag
28860         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
28861         prototypes.
28862         * lib/dup-safer.c (dup_safer_flag): New function.
28863         * lib/fd-safer.c (fd_safer_flag): Likewise.
28864         * modules/cloexec (configure.ac): Set witness.
28865
28866         test-dup2: enhance test
28867         * modules/dup2-tests (Depends-on): Add cloexec.
28868         * tests/test-dup2.c (main): Enhance test.
28869
28870         cloexec: add dup_cloexec
28871         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
28872         header and comments.
28873         * lib/cloexec.c (set_cloexec_flag): Add comments.
28874         (dup_cloexec): New function, with mingw implementation borrowed
28875         from...
28876         * lib/w32spawn.h (dup_noinherit): ...here.
28877         * modules/execute (Depends-on): Add cloexec.
28878         * modules/pipe (Depends-on): Likewise.
28879         * modules/cloexec (Depends-on): Add dup2.
28880         * modules/cloexec-tests (Files): New file.
28881         * tests/test-cloexec.c: Likewise.
28882
28883         test-xalloc-die: fix test for mingw
28884         * modules/xalloc-die-tests (Files): Add tests/init.sh.
28885         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
28886         directory and .exe suffix off argv[0] output.
28887
28888         test-fseeko: fix test for mingw
28889         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
28890         than undefining fseek, so test will pass on mingw.
28891
28892 2009-12-05  Bruno Haible  <bruno@clisp.org>
28893
28894         * lib/progname.h (set_program_name): Clarify specification.
28895         * lib/progname.c (set_program_name): Likewise.
28896         Reported by Jim Meyering.
28897
28898 2009-12-05  Jim Meyering  <meyering@redhat.com>
28899
28900         maint.mk: backslash-escape parens in default regexp
28901         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
28902         backslash-escape the literal parentheses.
28903
28904         maint.mk: news-date-check: use grep -E
28905         * top/maint.mk (today): Define a Make variable, not a...
28906         (news-date-check): ...shell variable.
28907         (news-date-regexp): Use the Make variable.
28908         Use grep's -E option.  Change the failing diagnostic to mention
28909         the variable, $(news-date-regexp).
28910
28911 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
28912
28913         maintainer-makefile: allow customization of NEWS entry format
28914         * top/maint.mk (news-date-regexp): New overridable variable.
28915         (news-date-check): Use it.
28916
28917 2009-12-04  Eric Blake  <ebb9@byu.net>
28918
28919         mgetgroups: add xgetgroups, and avoid ENOSYS failures
28920         * lib/mgetgroups.h (xgetgroups): New prototype.
28921         * lib/mgetgroups.c (xgetgroups): New wrapper.
28922         (mgetgroups): Handle ENOSYS.
28923         * modules/mgetgroups (Depends-on): Add realloc.
28924         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
28925
28926         mgetgroups: avoid argument promotion issues with -1
28927         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
28928         for invalid gid_t.
28929         * tests/test-chown.h (getegid, test_chown): Likewise.
28930         * tests/test-lchown.h (getegid, test_lchown): Likewise.
28931
28932 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
28933
28934         exclude: Fix header file problems.
28935         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
28936
28937 2009-12-01  Jim Meyering  <meyering@redhat.com>
28938
28939         fts: fts_open: do not let an empty string cause immediate failure
28940         This is required in support of GNU rm, for which the command
28941         "rm A '' B" must process and remove both A and B, in spite of
28942         the empty string argument.
28943         * lib/fts.c (fts_open): Do not let the presence of an empty string
28944         cause fts_open to fail immediately.  Most fts-using tools must be
28945         able to process all arguments, in order, and can be expected to
28946         diagnose such arguments themselves.
28947
28948 2009-11-30  Eric Blake  <ebb9@byu.net>
28949
28950         utimens: fix compilation error
28951         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
28952         Declare variable at right scope.
28953
28954 2009-11-29  Jim Meyering  <meyering@redhat.com>
28955
28956         bootstrap: handle perl-5.11's changed --version output
28957         * build-aux/bootstrap (get_version): Handle perl separately,
28958         since perl-5.11's --version output is different.
28959
28960 2009-11-28  Jim Meyering  <meyering@redhat.com>
28961
28962         userspec: depend on the inttostr module, too
28963         * modules/userspec (Depends-on): Add inttostr.
28964
28965         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
28966         * lib/userspec.c (parse_with_separator): Do not accept a user ID
28967         number of MAXUID when it evaluates to (uid_t) -1.
28968         Likewise for group ID.  Reported by Matt McCutchen in
28969         <http://savannah.gnu.org/bugs/?28113>
28970
28971         userspec: reformat to use spaces, not TABs
28972         * lib/userspec.c: Expand TABs to spaces.
28973         Add Emacs' "indent-tabs-mode: nil" hint.
28974
28975 2009-11-27  Eric Blake  <ebb9@byu.net>
28976
28977         getopt-gnu: flush out another BSD bug
28978         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
28979         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
28980         flush out BSD bug.
28981         * tests/test-getopt.h (test_getopt): End lists with NULL.
28982         * tests/test-getopt_long.h (test_getopt_long): Likewise.
28983         (test_getopt_long_posix): Enhance test.
28984         * modules/getopt-posix-tests (Depends-on): Add stdbool.
28985         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
28986         getopt-gnu.
28987         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28988         Likewise.
28989
28990 2009-11-27  Simon Josefsson  <simon@josefsson.org>
28991
28992         * modules/idpriv-droptemp-tests (Notice): Fix text.
28993
28994 2009-11-27  Jim Meyering  <meyering@redhat.com>
28995
28996         test-xalloc-die: avoid spurious failure due to libtool argv difference
28997         In a libtool-enabled project, this test would fail due to a difference
28998         in the emitted program name, e.g.,
28999         -test-xalloc-die: memory exhausted
29000         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
29001         Use program to avoid that.
29002         * modules/xalloc-die-tests (Depends-on): Add progname.
29003         * tests/test-xalloc-die.c: Include progname.h".
29004         (program_name): Remove decl.
29005         (main): Call set_program_name.
29006         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
29007
29008 2009-11-26  Richard Jones  <rjones@redhat.com>
29009
29010         w32sock: leave win32 error in place.
29011         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
29012
29013 2009-11-26  Eric Blake  <ebb9@byu.net>
29014
29015         init.sh: suggest to use skip_ and fail_ functions in comments
29016         * tests/init.sh: Add a sentence.
29017
29018 2009-11-25  Bruno Haible  <bruno@clisp.org>
29019
29020         init.sh: add documentation in comments
29021         * tests/init.sh: Add some developer and user documentation.
29022
29023 2009-11-26  Jim Meyering  <meyering@redhat.com>
29024
29025         init.sh: accommodate even those who specify bogus srcdir manually
29026         * tests/init.sh: Normally, srcdir is guaranteed by automake and
29027         configure-time tests to be sanitized, so that there is no need to
29028         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
29029         (with no double quotes) suffices.  However, since tests may be
29030         invoked manually, and since you may explicitly set srcdir to the
29031         name of a directory containing spaces, do quote its uses here.
29032         * tests/test-pread.sh: Likewise.
29033         Suggested by Bruno Haible.
29034
29035         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
29036         * tests/test-pread.sh: Write no data into the pipe, because
29037         test-pread actually reads none.  This avoids a diagnostic,
29038         "bash: echo: write error: Broken pipe", that arises in the unusual
29039         event something is ignoring SIGPIPE, and might be interpreted
29040         as some sort of failure.  Reported by Bruno Haible.
29041
29042 2009-11-25  Jim Meyering  <meyering@redhat.com>
29043
29044         test-pread: cover failure with ESPIPE and EINVAL
29045         * tests/test-pread.c (main): Test for failure, too.
29046         * tests/test-pread.sh: Invoke with stdin on a pipe.
29047         Suggested by Eric Blake.
29048
29049         pread: improvement and fix
29050         * modules/pread (Depends-on): Depend on lseek, for portability to
29051         e.g., mingw.  Suggested by Eric Blake.
29052         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
29053
29054         unistd.in.h: correct declaration of pread
29055         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
29056         Reported by Richard W.M. Jones.
29057
29058         test-pread.sh: distribute the test script
29059         * modules/pread-tests (Files): Include test-pread.sh.
29060
29061         test-pread.sh: clean up
29062         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
29063         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
29064         That is unnecessary, since it's always ".".
29065         Suggestion from Eric Blake.
29066
29067         test-pread.sh: make executable
29068         * tests/test-pread.sh: Set executable bit.
29069         Reported by Eric Blake.
29070
29071         correct typo in test-pread.sh
29072         * tests/test-pread.sh: Add #! line.
29073
29074         test pread
29075         * tests/test-pread.c: New file.
29076         * tests/test-pread.sh: Likewise.
29077         * modules/pread-tests: Likewise.
29078
29079         pread: new module
29080         * modules/pread: New file.
29081         * lib/unistd.in.h (pread): Define/declare.
29082         * lib/pread.c (pread): New file.
29083         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
29084         * modules/unistd (Makefile.am): Substitute witnesses.
29085         * doc/posix-functions/pread.texi (pread): Update.
29086         * MODULES.html.sh: Add pread.
29087
29088 2009-11-25  Jim Meyering  <meyering@redhat.com>
29089
29090         tests/init.sh: new file to be used via most *.sh tests
29091         * tests/init.sh: New file.
29092
29093 2009-11-25  Eric Blake  <ebb9@byu.net>
29094
29095         utimens: work around older Linux failure with symlinks
29096         * lib/utimens.c (lutimensat_works_really): New variable.
29097         (fdutimens, lutimens): Use it to manage kernels that support
29098         nanosecond times on files, but not on symlinks.
29099         Reported by OndÅ™ej Vašík.
29100
29101         utimes: fix configure grammar
29102         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
29103
29104 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
29105
29106         regex: Fix fastmap for multibyte character ranges.
29107         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
29108         characters when a multibyte character range is included.
29109
29110 2009-11-22  Andy Wingo  <wingo@pobox.com>
29111
29112         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
29113         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
29114
29115 2009-11-24  Bruno Haible  <bruno@clisp.org>
29116
29117         doc: Most *_l functions exist in MacOS X 10.5.
29118         * doc/posix-functions/duplocale.texi: Update platforms list.
29119         * doc/posix-functions/freelocale.texi: Likewise.
29120         * doc/posix-functions/newlocale.texi: Likewise.
29121         * doc/posix-functions/uselocale.texi: Likewise.
29122         * doc/posix-functions/isalnum_l.texi: Likewise.
29123         * doc/posix-functions/isalpha_l.texi: Likewise.
29124         * doc/posix-functions/isblank_l.texi: Likewise.
29125         * doc/posix-functions/iscntrl_l.texi: Likewise.
29126         * doc/posix-functions/isdigit_l.texi: Likewise.
29127         * doc/posix-functions/isgraph_l.texi: Likewise.
29128         * doc/posix-functions/islower_l.texi: Likewise.
29129         * doc/posix-functions/isprint_l.texi: Likewise.
29130         * doc/posix-functions/ispunct_l.texi: Likewise.
29131         * doc/posix-functions/isspace_l.texi: Likewise.
29132         * doc/posix-functions/isupper_l.texi: Likewise.
29133         * doc/posix-functions/iswalnum_l.texi: Likewise.
29134         * doc/posix-functions/iswalpha_l.texi: Likewise.
29135         * doc/posix-functions/iswblank_l.texi: Likewise.
29136         * doc/posix-functions/iswcntrl_l.texi: Likewise.
29137         * doc/posix-functions/iswctype_l.texi: Likewise.
29138         * doc/posix-functions/iswdigit_l.texi: Likewise.
29139         * doc/posix-functions/iswgraph_l.texi: Likewise.
29140         * doc/posix-functions/iswlower_l.texi: Likewise.
29141         * doc/posix-functions/iswprint_l.texi: Likewise.
29142         * doc/posix-functions/iswpunct_l.texi: Likewise.
29143         * doc/posix-functions/iswspace_l.texi: Likewise.
29144         * doc/posix-functions/iswupper_l.texi: Likewise.
29145         * doc/posix-functions/iswxdigit_l.texi: Likewise.
29146         * doc/posix-functions/isxdigit_l.texi: Likewise.
29147         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
29148         * doc/posix-functions/strcasecmp_l.texi: Likewise.
29149         * doc/posix-functions/strcoll_l.texi: Likewise.
29150         * doc/posix-functions/strfmon_l.texi: Likewise.
29151         * doc/posix-functions/strftime_l.texi: Likewise.
29152         * doc/posix-functions/strncasecmp_l.texi: Likewise.
29153         * doc/posix-functions/strxfrm_l.texi: Likewise.
29154         * doc/posix-functions/tolower_l.texi: Likewise.
29155         * doc/posix-functions/toupper_l.texi: Likewise.
29156         * doc/posix-functions/towctrans_l.texi: Likewise.
29157         * doc/posix-functions/towlower_l.texi: Likewise.
29158         * doc/posix-functions/towupper_l.texi: Likewise.
29159         * doc/posix-functions/wcscoll_l.texi: Likewise.
29160         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
29161         * doc/posix-functions/wctrans_l.texi: Likewise.
29162         * doc/posix-functions/wctype_l.texi: Likewise.
29163         * doc/glibc-functions/strptime_l.texi: Likewise.
29164         * doc/glibc-functions/strtod_l.texi: Likewise.
29165         * doc/glibc-functions/strtof_l.texi: Likewise.
29166         * doc/glibc-functions/strtol_l.texi: Likewise.
29167         * doc/glibc-functions/strtold_l.texi: Likewise.
29168         * doc/glibc-functions/strtoll_l.texi: Likewise.
29169         * doc/glibc-functions/strtoul_l.texi: Likewise.
29170         * doc/glibc-functions/strtoull_l.texi: Likewise.
29171         * doc/glibc-functions/wcsftime_l.texi: Likewise.
29172         * doc/glibc-functions/wcstod_l.texi: Likewise.
29173         * doc/glibc-functions/wcstof_l.texi: Likewise.
29174         * doc/glibc-functions/wcstol_l.texi: Likewise.
29175         * doc/glibc-functions/wcstold_l.texi: Likewise.
29176         * doc/glibc-functions/wcstoll_l.texi: Likewise.
29177         * doc/glibc-functions/wcstoul_l.texi: Likewise.
29178         * doc/glibc-functions/wcstoull_l.texi: Likewise.
29179
29180 2009-11-24  Bruno Haible  <bruno@clisp.org>
29181
29182         duplocale: Fix logic bug.
29183         * lib/duplocale.c: Don't include <langinfo.h>.
29184         (_NL_LOCALE_NAME): Remove macro.
29185         (rpl_duplocale): Use setlocale instead of nl_langinfo.
29186         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
29187
29188 2009-11-23  Jim Meyering  <meyering@redhat.com>
29189
29190         test-update-copyright: don't hard-code /usr/bin/perl
29191         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
29192         perl to print the current year.  Gilles Espinasse reported that
29193         the replaced use of perl was hard-coded as /usr/bin/perl.
29194
29195 2009-11-23  Bruno Haible  <bruno@clisp.org>
29196
29197         duplocale: Add support for glibc 2.3.x.
29198         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
29199
29200 2009-11-22  Bruno Haible  <bruno@clisp.org>
29201
29202         vasnprintf: Tiny optimization.
29203         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
29204         MacOS X.
29205
29206 2009-11-22  Bruno Haible  <bruno@clisp.org>
29207
29208         Tests for module 'duplocale'.
29209         * modules/duplocale-tests: New file.
29210         * tests/test-duplocale.c: New file.
29211
29212         New module 'duplocale'.
29213         * m4/duplocale.m4: New file.
29214         * lib/locale.in.h (duplocale): New declaration.
29215         * lib/duplocale.c: New file.
29216         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
29217         gl_LOCALE_H_DEFAULTS): New macros.
29218         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
29219         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
29220         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
29221         REPLACE_DUPLOCALE.
29222         * modules/duplocale: New file.
29223         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
29224
29225 2009-11-22  Bruno Haible  <bruno@clisp.org>
29226
29227         * modules/locale-tests (configure.ac): Test for newlocale function.
29228         * tests/test-locale.c: When the system has extended locale functions,
29229         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
29230
29231         locale: Make locale_t available when possible.
29232         * lib/locale.in.h: Include <xlocale.h> when it exists.
29233         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
29234         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
29235         * modules/locale (Depends-on): Add extensions.
29236         (Makefile.am): Also substitute HAVE_XLOCALE_H.
29237         * doc/posix-headers/locale.texi: Document the problem with locale_t.
29238
29239 2009-11-22  Bruno Haible  <bruno@clisp.org>
29240
29241         Add comments.
29242         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
29243         invocation.
29244         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
29245         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
29246         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29247
29248 2009-11-22  Bruno Haible  <bruno@clisp.org>
29249
29250         error: account for the possibility of freopen (stdout).
29251         * lib/error.c: Include <unistd.h>.
29252         (flush_stdout): New function, extracted from error and error_at_line.
29253         Determine stdout's fd dynamically.
29254         (error, error_at_line): Invoke flush_stdout.
29255         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
29256         * modules/error (Depends-on): Add unistd.
29257
29258 2009-11-22  Bruno Haible  <bruno@clisp.org>
29259
29260         diffseq: Add comment.
29261         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
29262
29263 2009-11-22  Jim Meyering  <meyering@redhat.com>
29264
29265         c-stack: avoid defining an unused static function
29266         * lib/c-stack.c (find_stack_direction): Do not define this function
29267         when it will not be used.
29268
29269         diffseq: avoid spurious gcc warnings
29270         * lib/diffseq.h (IF_LINT2): Define.
29271         (compareseq): Use it to initialize two members of "part".
29272         This avoids two used-uninitialized warnings.
29273
29274 2009-11-21  Jim Meyering  <meyering@redhat.com>
29275
29276         c-stack: avoid "ignoring return value of `write'" warning
29277         * lib/c-stack.c: Include "ignore-value.h".
29278         (die): Explicitly ignore each write return value.
29279         * modules/c-stack (Depends-on): Add ignore-value.
29280
29281 2009-11-21  Bruno Haible  <bruno@clisp.org>
29282
29283         diffseq: reduce scope of variable 'best'.
29284         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
29285         variable, earlier used for two different purposes.
29286
29287 2009-11-21  Jim Meyering  <meyering@redhat.com>
29288
29289         diffseq: remove useless assignment to "best"
29290         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
29291         assignment.  At that point "best" is already guaranteed to be zero.
29292
29293 2009-11-20  Eric Blake  <ebb9@byu.net>
29294
29295         build: mention ftp redirector in release announcements
29296         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
29297         values that used to come from cfg.mk; mention FTP redirect URL.
29298         * build-aux/announce-gen: Mention the mirror list.
29299         Suggested by Karl Berry.
29300
29301         nanosleep: improve port to mingw
29302         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
29303         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
29304         LIB_NANOSLEEP, but only when needed.
29305         * modules/select (Link): Document LIBSOCKET.
29306         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
29307         enough.
29308
29309         nanosleep: work around cygwin bug
29310         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
29311         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
29312         bug.
29313         (getnow): Delete, not needed.
29314         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
29315         LIB_CLOCK_GETTIME.
29316         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
29317         clock-time, gettime.
29318         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
29319         bug.
29320         * modules/nanosleep-tests: New test.
29321         * tests/test-nanosleep.c: New file.
29322
29323         sleep: work around cygwin bug
29324         * lib/sleep.c (rpl_sleep): Work around the bug.
29325         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
29326         (gl_PREREQ_SLEEP): Delete unused macro.
29327         * modules/sleep (Depends-on): Add verify.
29328         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
29329         * modules/unistd (Makefile.am): Substitute witness.
29330         * lib/unistd.in.h (sleep): Update prototype.
29331         * doc/posix-functions/sleep.texi (sleep): Document the bug.
29332         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
29333         * modules/sleep-tests (Depends-on): Check for alarm.
29334
29335 2009-11-20  Jim Meyering  <meyering@redhat.com>
29336
29337         maint.mk: improve sc_prohibit_magic_number_exit
29338         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
29339         so it does not match uses like System.exit(1).
29340         Add comments showing how to correct all offenders.
29341
29342 2009-11-19  Eric Blake  <ebb9@byu.net>
29343
29344         xalloc-die-tests: add missing library
29345         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
29346
29347         test-xvasprintf: silence compiler warnings
29348         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
29349         empty string from gcc.
29350
29351 2009-11-19  Jim Meyering  <meyering@redhat.com>
29352
29353         xfreopen: new module, from coreutils
29354         * modules/xfreopen: New module.
29355         * lib/xfreopen.c: New file.
29356         * lib/xfreopen.h: New file.
29357         * MODULES.html.sh (File stream based Input/Output"): Add it.
29358
29359 2009-11-19  Eric Blake  <ebb9@byu.net>
29360
29361         manywarnings: depend on warnings
29362         * modules/manywarnings (Depends-on): Add warnings.
29363
29364         build: avoid compiler warnings
29365         * lib/select.c (rpl_select): Delete unused variable.
29366         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
29367
29368 2009-11-18  Eric Blake  <ebb9@byu.net>
29369
29370         tests: avoid false negative with --with-packager
29371         * tests/test-version-etc.sh: Discard packager information.
29372         * tests/test-argp-version-etc-1.sh: Likewise.
29373         Reported by Mike Frysinger.
29374
29375         utimens: fix regression on Solaris
29376         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
29377         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
29378         can only change fd timestamps via futimesat.  Instead, use an
29379         additional witness macro to avoid BSD bug.
29380         Reported by Jim Meyering.
29381
29382 2009-11-17  Eric Blake  <ebb9@byu.net>
29383
29384         usleep: use it to simplify tests
29385         * modules/stat-time-tests (Depends-on): Add usleep.
29386         (configure.ac): Drop usleep check.
29387         * modules/chown-tests (Depends-on, configure.ac): Likewise.
29388         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
29389         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
29390         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
29391         * modules/openat-tests (Depends-on, configure.ac): Likewise.
29392         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
29393         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
29394         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
29395         Likewise.
29396         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
29397         * tests/test-lchown.h (nap): Likewise.
29398         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
29399         * tests/test-stat-time.c (nap): Likewise.
29400         * tests/test-utimens-common.h (nap): Update comments.
29401
29402         usleep: new module
29403         * modules/usleep: New file.
29404         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
29405         * lib/usleep.c (usleep): Likewise.
29406         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
29407         * modules/unistd (Makefile.am): Substitute witnesses.
29408         * lib/unistd.in.h (usleep): Add declaration.
29409         * doc/pastposix-functions/usleep.texi (usleep): Document this.
29410         * MODULES.html.sh (Date and time): Likewise.
29411         * modules/usleep-tests (Depends-on): New test.
29412         * tests/test-usleep.c: New file.
29413
29414         chown: work around OpenBSD bug
29415         * lib/chown.c (rpl_chown): Work around the bug.
29416         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
29417         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
29418         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
29419         * modules/chown (Depends-on): Add stdbool.
29420         * modules/lchown (Depends-on): Likewise.
29421         * doc/posix-functions/chown.texi (chown): Document the bug.
29422         * doc/posix-functions/lchown.texi (lchown): Likewise.
29423         * tests/test-lchown.h (test_chown): Relax test.
29424
29425         mkstemp: avoid conflict with C++ keyword template
29426         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
29427         * lib/mkostemp.c (mkostemp): Likewise.
29428         * lib/mkostemps.c (mkostemps): Likewise.
29429         * lib/mkstemp.c (mkstemp): Likewise.
29430         * lib/mkstemps.c (mkstemps): Likewise.
29431
29432         xalloc-die-tests: optimize
29433         * tests/test-xalloc-die.sh: Reduce number of processes.
29434
29435 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29436
29437         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
29438         patch from ludo@gnu.org (Ludovic Courtès).
29439
29440 2009-11-17  Jim Meyering  <meyering@redhat.com>
29441
29442         version-etc: use proper license string
29443         * modules/version-etc (License): Use LGPL, not LGPLv3+.
29444         * modules/version-etc-fsf: Likewise.
29445
29446 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29447
29448         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
29449         printed to stdout.  Deal with EOL differences.
29450
29451 2009-11-17  Eric Blake  <ebb9@byu.net>
29452
29453         unsetenv: work around Solaris bug
29454         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
29455         * lib/unsetenv.c (rpl_unsetenv): Work around it.
29456         Reported by Jim Meyering.
29457
29458         vasnprintf: avoid compiler warnings
29459         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
29460         variables.
29461         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
29462
29463 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29464
29465         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
29466         settings since xalloc-die is no longer the self test,
29467         xalloc-die.sh is.
29468
29469 2009-11-17  Jim Meyering  <meyering@redhat.com>
29470
29471         test-xalloc-die.sh: make the code agree with the commit log
29472         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
29473         at the end, just in case you happen to have a test-xalloc-die
29474         program in some other PATH directory.
29475
29476         test-xalloc-die.sh: fix a portability bug
29477         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
29478         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
29479         Otherwise, argv[0] (as often seen in diagnostics) would be too
29480         system-dependent, sometimes with, and sometimes without the leading "./".
29481
29482         version-etc-fsf: relax license to LGPLv3+
29483         * modules/version-etc-fsf (License): Relax license.
29484
29485 2009-11-16  Eric Blake  <ebb9@byu.net>
29486
29487         xalloc-die-tests: avoid printing null pointer
29488         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
29489         shell script.
29490         * tests/test-xalloc-die.c (program_name): Declare.
29491         * tests/test-xalloc-die.sh (tmpfiles): New file.
29492
29493         setenv, unsetenv: work around various bugs
29494         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
29495         (setenv) [HAVE_SETENV]: Work around bugs.
29496         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
29497         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
29498         for bugs.
29499         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
29500         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
29501         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
29502         * modules/stdlib (Makefile.am): Update substitutions.
29503         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
29504         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
29505         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
29506         * modules/setenv-tests: New test.
29507         * modules/unsetenv-tests: Likewise.
29508         * tests/test-setenv.c: New file.
29509         * tests/test-unsetenv.c: Likewise.
29510
29511 2009-11-16  Jim Meyering  <meyering@redhat.com>
29512
29513         version-etc: relax license to LGPLv3+
29514         * modules/version-etc (License): Relax license.
29515
29516         better AC_REQUIRE expanded-before-required-warning avoidance
29517         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
29518         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
29519         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
29520         which is no longer needed.
29521
29522 2009-11-16  Eric Blake  <ebb9@byu.net>
29523
29524         test-freading: clean up temporary file
29525         * tests/test-freading.c (main): Remove file on success, and use
29526         ASSERT more liberally.
29527         Reported by Jim Meyering.
29528
29529 2009-11-16  Jim Meyering  <meyering@redhat.com>
29530
29531         avoid new AC_REQUIRE expanded-before-required warnings
29532         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
29533         merely using it.
29534         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
29535         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
29536
29537 2009-11-15  Simon Josefsson  <simon@josefsson.org>
29538
29539         * tests/test-xalloc-die.c: New file.
29540         * modules/xalloc-die-tests: New file.
29541         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
29542         XFAIL_TESTS so it can be appended by modules.
29543
29544 2009-11-15  Simon Josefsson  <simon@josefsson.org>
29545
29546         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
29547         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
29548
29549 2009-11-14  Eric Blake  <ebb9@byu.net>
29550
29551         fnmatch: avoid compiler warning
29552         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
29553         to silence compiler warning about mismatch signedness in ?:.
29554         Reported by Robert Millan.
29555
29556         intprops: add double-inclusion guard
29557         * lib/intprops.h: Allow idempotent includes.
29558         Suggested by Bruce Korb.
29559
29560         openat: detect Solaris fchownat bug
29561         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
29562         penalizing glibc chownat when only lchownat is broken.
29563         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
29564         trailing slash bugs.
29565         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
29566         * modules/openat-tests (Files): Include more files.
29567         (Depends-on): Add mgetgroups, sleep, stat-time.
29568         (configure.ac): Add additional checks.
29569         (Makefile.am): Build new test.
29570         * tests/test-fchownat.c: New file.
29571
29572         lchown: detect Solaris and FreeBSD bug
29573         * lib/lchown.c (rpl_lchown): Work around bug.
29574         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
29575         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29576         * modules/unistd (Makefile.am): Populate it.
29577         * lib/unistd.in.h (lchown): Update declaration.
29578         * doc/posix-functions/lchown.texi (lchown): Document the bug.
29579         * modules/lchown-tests: New file.
29580         * tests/test-lchown.h (test_lchown): Likewise.
29581         * tests/test-lchown.c (main): Likewise.
29582
29583         chown: detect Solaris and FreeBSD bug
29584         * lib/chown.c (rpl_chown): Work around bug.
29585         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
29586         (gl_PREREQ_CHOWN): Delete.
29587         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29588         * modules/unistd (Makefile.am): Populate it.
29589         * lib/unistd.in.h (chown): Update declaration.
29590         * lib/lchown.c (chown): Update client.
29591         * modules/lchown (Depends-on): Add lstat.
29592         * doc/posix-functions/chown.texi (chown): Document the bug.
29593         * doc/posix-functions/getgroups.texi (getgroups): Document
29594         getgroups pitfall.
29595         * modules/chown-tests: New file.
29596         * tests/test-chown.h (test_chown): Likewise.
29597         * tests/test-chown.c (main): Likewise.
29598
29599 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
29600
29601         gnulib-tool: correctly detect absence of m4 directories
29602         * gnulib-tool: Avoid extra newline on data passed to wc -l.
29603
29604 2009-11-14  Jim Meyering  <meyering@redhat.com>
29605
29606         maint.mk: Prohibit inclusion of "xalloc.h" without use.
29607         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
29608
29609 2009-11-14  John W. Eaton  <jwe@gnu.org>
29610
29611         strftime.h: wrap funtion declaration in extern "C" block
29612         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
29613
29614 2009-11-13  Eric Blake  <ebb9@byu.net>
29615
29616         getgroups: avoid compiler warning
29617         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
29618
29619         getgroups: work around FreeBSD bug
29620         * lib/getgroups.c (rpl_getgroups): Work around the bug.
29621         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
29622         * doc/posix-functions/getgroups.texi (getgroups): Document it.
29623         * tests/test-getgroups.c (main): Fix buffer overrun.
29624
29625         getgroups: avoid compilation failure
29626         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
29627         * modules/getgroups (Depends-on): Add stdint.
29628
29629 2009-11-13  Jim Meyering  <meyering@redhat.com>
29630
29631         test-getgroups: avoid compilation failure
29632         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
29633
29634 2009-11-13  Eric Blake  <ebb9@byu.net>
29635
29636         mgetgroups: new module, taken from coreutils
29637         * modules/mgetgroups: New file.
29638         * lib/mgetgroups.h: Likewise.
29639         * lib/mgetgroups.c (mgetgroups): Likewise.
29640         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
29641         * MODULES.html.sh (Users and groups): Mention it.
29642
29643         getgroups: don't expose GETGROUPS_T to user
29644         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
29645         an element at a time if GETGROUPS_T is wrong size.
29646         * lib/getugroups.h (getugroups): Change signature.
29647         * lib/unistd.in.h (getgroups): Likewise.
29648         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
29649         signature needs fixing.
29650         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
29651         AC_TYPE_GETGROUPS.
29652         * modules/group-member (Depends-on): Add getgroups.
29653         * lib/group-member.c (group_info, get_group_info): Use gid_t.
29654         (group_member): Rely on getgroups replacement.
29655         * lib/getugroups.c (getugroups): Use gid_t.
29656         * tests/test-getgroups.c (main): Likewise.
29657         * NEWS: Mention the signature change.
29658         * doc/posix-functions/getgroups.texi (getgroups): Mention the
29659         problem with signature.
29660         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
29661         GETGROUPS_T is still useful for setgroups.
29662
29663         getgroups, getugroups: provide stubs for mingw
29664         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
29665         * lib/getugroups.c (getugroups): Likewise.
29666         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
29667         function.  Modernize replacement scheme.
29668         (gl_PREREQ_GETGROUPS): Delete.
29669         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
29670         * modules/getgroups (configure.ac): Declare witness.
29671         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
29672         * modules/unistd (Depends-on): Substitute witness.
29673         * lib/unistd.in.h (getgroups): Declare replacement.
29674
29675         getgroups: avoid calling exit
29676         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
29677         drop xalloc.
29678         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
29679         dependencies.
29680         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
29681         exiting, in the rare case of malloc failure.
29682
29683         getgroups: fix logic error
29684         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
29685         has more than 20 groups.
29686         * modules/getgroups-tests: New test.
29687         * tests/test-getgroups.c: New file.
29688
29689 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29690
29691         * tests/test-base64.c: Improve.
29692
29693 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29694
29695         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
29696         Blake <ebb9@byu.net>.
29697
29698 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29699
29700         * tests/test-xvasprintf.c: Add %s%s related checks.
29701
29702 2009-11-12  Eric Blake  <ebb9@byu.net>
29703
29704         version-etc: match standards.texi style
29705         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
29706         and use <> only for URLs.
29707
29708 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
29709
29710         fts: do not fail on a submount during traversal
29711         * lib/fts.c (fts_build): Read the stat info again after opening
29712         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
29713         Original report at http://bugzilla.redhat.com/501848.
29714
29715 2009-11-12  Jim Meyering  <meyering@redhat.com>
29716
29717         bootstrap: sync from coreutils
29718         * build-aux/bootstrap (bootstrap_epilogue): New function.
29719         Use git_modules_config in one more place.  This make bootstrap's
29720         --gnulib-srcdir option more useful for testing.
29721
29722         bootstrap: generalize autoheader check
29723         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
29724         AC_CONFIG_HEADERS.
29725
29726 2009-11-11  Eric Blake  <ebb9@byu.net>
29727
29728         mkfifoat: use new modules for Solaris and BSD bugs
29729         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
29730         * lib/mkfifoat.c (mknodat): Split...
29731         * lib/mknodat.c (mknodat): ...into new file.
29732         * modules/mkfifoat (Files): Ship new file.
29733         (Depends-on): Add mkfifo, mknod.
29734         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
29735         (Depends-on): Add symlink.
29736         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
29737         redundant with test_mkfifo.h.
29738         (do_mkfifoat, do_mknodat): New helpers.
29739
29740         mknod: new module
29741         * modules/mknod: New file.
29742         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
29743         * lib/mknod.c (mknod): Likewise.
29744         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29745         defaults.
29746         * modules/sys_stat (Makefile.am): Substitute them.
29747         * lib/sys_stat.in.h (mknod): Declare replacement.
29748         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29749         Document it.
29750         * doc/posix-functions/mknod.texi (mknod): Likewise.
29751         * modules/mknod-tests: New test.
29752         * tests/test-mknod.c: Likewise.
29753
29754         mkfifo: new module
29755         * modules/mkfifo: New file.
29756         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
29757         * lib/mkfifo.c (mkfifo): Likewise.
29758         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29759         defaults.
29760         * modules/sys_stat (Makefile.am): Substitute them.
29761         * lib/sys_stat.in.h (mkfifo): Declare replacement.
29762         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29763         Document it.
29764         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
29765         * modules/mkfifo-tests: New test.
29766         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
29767         from test-mkfifoat.c.
29768         * tests/test-mkfifo.c: New file.
29769
29770         readlink: detect FreeBSD bug
29771         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
29772         slash on symlink.
29773         * doc/posix-functions/readlink.texi (readlink): Document the bug.
29774         * tests/test-readlink.h (test_readlink): Enhance test.
29775
29776         symlink: detect FreeBSD bug
29777         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
29778         slash on symlink.
29779         * doc/posix-functions/symlink.texi (symlink): Document the bug.
29780         * tests/test-symlink.h (test_symlink): Enhance test.
29781
29782 2009-11-10  Eric Blake  <ebb9@byu.net>
29783
29784         link: detect FreeBSD bug
29785         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
29786         symlink.
29787         * doc/posix-functions/link.texi (link): Document the bug.
29788         * tests/test-link.h (test_link): Enhance test.
29789         * tests/test-linkat.c (main): Update caller.
29790
29791         unlink, remove: detect FreeBSD bug
29792         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
29793         slash on symlink.
29794         * doc/posix-functions/unlink.texi (unlink): Document the bug.
29795         * doc/posix-functions/remove.texi (remove): Likewise.
29796         * tests/test-unlink.h (test_unlink): Enhance test.
29797         * tests/test-remove.c (main): Likewise.
29798
29799 2009-11-09  Eric Blake  <ebb9@byu.net>
29800
29801         rename: detect FreeBSD bug
29802         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
29803         slash on symlink.
29804         * modules/renameat-tests (Depends-on): Add filenamecat.
29805         * tests/test-rename.h (test_rename): Allow one more errno.
29806         * tests/test-renameat.c (main): Likewise.
29807         * doc/posix-functions/rename.texi (rename): Document the bug.
29808
29809         open: detect FreeBSD bug
29810         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
29811         symlink.
29812         * doc/posix-functions/open.texi (open): Document the bug.
29813         * doc/posix-functions/utimes.texi (utimes): Likewise.
29814         * tests/test-open.h (test_open): Add parameters, and test symlink
29815         handling.
29816         * tests/test-open.c (main): Adjust caller.
29817         * tests/test-fcntl-safer.c (main): Likewise.
29818         * modules/open-tests (Depends-on): Add stdbool, symlink.
29819         * modules/fcntl-safer-tests (Depends-on): Likewise.
29820         * tests/test-openat.c (main): Add test-open tests.
29821
29822         stat: detect FreeBSD bug
29823         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
29824         symlink.
29825         * doc/posix-functions/stat.texi (stat): Document the bug.
29826         * tests/test-stat.h (test_stat_func): Add argument.
29827         * tests/test-stat.c (main): Adjust caller.
29828         * tests/test-fstatat.c (main): Likewise.
29829         * modules/stat-tests (Depends-on): Add stdbool, symlink.
29830         Reported by Jim Meyering.
29831
29832 2009-11-09  James Youngman  <jay@gnu.org>
29833
29834         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
29835         * lib/strftime.c: Correct placement of #include "ignore-value.h".
29836
29837 2009-11-08  Jim Meyering  <meyering@redhat.com>
29838
29839         utimens: remove invalid futimesat call
29840         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
29841         It used the file descriptor of the target file as the DIR_FD
29842         parameter and NULL as the file name.  That caused failure with
29843         errno == EFAULT on FreeBSD-8.0-rc2
29844
29845 2009-11-07  Eric Blake  <ebb9@byu.net>
29846
29847         fflush, freadseek: use fseeko, not fseek
29848         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
29849         (clear_ungetc_buffer): Avoid potential problems on large files.
29850         * lib/freadseek.c (freadseek): Likewise.
29851         * modules/freadseek (Depends-on): Add fseeko.
29852         * modules/fseek (configure.ac): Set a witness.
29853         * tests/test-fflush.c (main): Use fseeko.
29854         * tests/test-fpurge.c (fseek): Disable link warning.
29855         * tests/test-freadable.c (fseek): Likewise.
29856         * tests/test-freading.c (fseek): Likewise.
29857         * tests/test-fseeko.c (fseek): Likewise.
29858         * tests/test-ftell.c (fseek): Likewise.
29859         * tests/test-ftello.c (fseek): Likewise.
29860         * tests/test-fwritable.c (fseek): Likewise.
29861         * tests/test-fwriting.c (fseek): Likewise.
29862
29863 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29864
29865         * modules/memchr (Depends-on): Drop getpagesize dependency.
29866
29867 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29868
29869         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
29870         Reported by Ludovic Courtès.
29871         * build-aux/pmccabe2html: Improve example usage.
29872         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
29873
29874 2009-11-06  Jim Meyering  <meyering@redhat.com>
29875
29876         do-release-commit-and-tag: New module.
29877         Automate the release-commit and tag process.
29878         * build-aux/do-release-commit-and-tag: New script, from coreutils.
29879         * modules/do-release-commit-and-tag: New file.
29880         * MODULES.html.sh (Support for maintaining and releasing): Add it.
29881
29882 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29883
29884         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
29885         because test-select.c uses inet_pton.
29886
29887 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29888
29889         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
29890         GETADDRINFO_LIB.  Bump serial number.
29891         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
29892         Suggested by Eric Blake <ebb9@byu.net>.
29893
29894 2009-11-05  Eric Blake  <ebb9@byu.net>
29895
29896         strtod: detect darwin bug
29897         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
29898         Reported by Leo Davis.
29899
29900         freopen-safer: new module
29901         * modules/freopen-safer: New module.
29902         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
29903         * lib/freopen-safer.c (freopen_safer): New file.
29904         * lib/stdio-safer.h (freopen_safer): New declaration.
29905         * lib/stdio--.h (freopen): New override.
29906         * MODULES.html.sh (File stream based Input/Output): Mention it.
29907         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
29908         freopen-safer module.
29909         * doc/posix-functions/stderr.texi (stderr): Likewise.
29910         * doc/posix-functions/stdin.texi (stdin): Likewise.
29911         * doc/posix-functions/stdout.texi (stdout): Likewise.
29912         * modules/freopen-safer-tests: New test.
29913         * tests/test-reopen-safer.c: New file.
29914
29915 2009-11-05  Jim Meyering  <meyering@redhat.com>
29916
29917         maint.mk: Prohibit inclusion of "close-stream.h" without use.
29918         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
29919
29920 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29921
29922         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
29923
29924 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29925
29926         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
29927
29928 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29929
29930         Fix link error.
29931         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
29932         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29933
29934 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29935
29936         * tests/test-func.c: Also test value of __func__.
29937
29938 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29939
29940         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
29941         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
29942
29943 2009-11-05  Bruno Haible  <bruno@clisp.org>
29944
29945         Fix link error.
29946         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
29947         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29948         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
29949
29950 2009-11-05  Bruno Haible  <bruno@clisp.org>
29951
29952         Tests for module 'inet_pton'.
29953         * modules/inet_pton-tests: New file.
29954         * tests/test-inet_pton.c: New file.
29955
29956 2009-11-05  Bruno Haible  <bruno@clisp.org>
29957
29958         Tests for module 'inet_ntop'.
29959         * modules/inet_ntop-tests: New file.
29960         * tests/test-inet_ntop.c: New file.
29961
29962 2009-11-04  Eric Blake  <ebb9@byu.net>
29963
29964         stdlib-safer: wrap all mkstemp variants
29965         * modules/mkostemp (configure.ac): Set witness.
29966         * modules/mkostemps (configure.ac): Likewise.
29967         * modules/mkstemps (configure.ac): Likewise.
29968         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
29969         (mkstemps_safer): Wrap more functions.
29970         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
29971         wrapping.
29972         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
29973         (mkstemps_safer): Implement the wrappers.
29974
29975         mkstemps, mkostemps: new modules
29976         * modules/mkostemps: New module.
29977         * modules/mkstemps: Likewise.
29978         * lib/mkostemps.c (mkostemps): New file.
29979         * lib/mkstemps.c (mkstemps): Likewise.
29980         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
29981         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
29982         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
29983         * modules/stdlib (Makefile.am): Substitute them.
29984         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
29985         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
29986         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
29987         * doc/gnulib.texi (Glibc stdlib.h): Include them.
29988         * MODULES.html.sh (File system functions): Mention them.
29989
29990         tempname: resync from glibc
29991         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
29992         same values for __GT_FILE as glibc.  Abort even when assertions
29993         are disabled.
29994         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
29995         match its value otherwise.  Allow idempotent inclusion.
29996         * lib/mkdtemp.c (mkdtemp): Adjust caller.
29997         * lib/mkostemp.c (mkostemp): Likewise.
29998         * lib/mkstemp.c (mkstemp): Likewise.
29999         * lib/tmpfile.c (tmpfile): Likewise.
30000         * NEWS: Document this.
30001
30002         utimens: fix use of futimens on older Linux
30003         * lib/utimens.c (fdutimens): Use updated, rather than original,
30004         timespec to avoid bug in older Linux kernel.
30005         Reported by Simon Josefsson.
30006
30007 2009-11-04  Bruno Haible  <bruno@clisp.org>
30008
30009         Make num_processors more flexible and consistent.
30010         * lib/nproc.h (enum nproc_query): New type.
30011         (num_processors): Add a 'query' argument.
30012         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
30013         (num_processors): Add a 'query' argument. Test the value of the
30014         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
30015         mingw, count the number of CPUs available for the current process.
30016         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
30017         Check for sched_getaffinity and sched_getaffinity_np.
30018         * modules/nproc (Depends-on): Add c-ctype, extensions.
30019         * NEWS: Mention the change.
30020
30021 2009-11-03  Bruno Haible  <bruno@clisp.org>
30022
30023         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
30024
30025 2009-11-03  Jim Meyering  <meyering@redhat.com>
30026
30027         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
30028         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
30029         if it is defined.
30030
30031 2009-11-02  Eric Blake  <ebb9@byu.net>
30032
30033         mktime, timegm: share common declaration
30034         * lib/mktime-internal.h: New file.
30035         * lib/mktime.c: Use it rather than open-coding a declaration.
30036         * lib/timegm.c: Likewise.
30037         * modules/mktime (Files): Ship it.
30038         * modules/timegm (Files): Likewise.
30039         Suggested by Bruno Haible.
30040
30041         test-update-copyright: update test to match script changes
30042         * tests/test-update-copyright.sh: Avoid hard-coding perl
30043         location.  Don't update *.bak created by earlier runs.
30044
30045 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
30046             Simon Josefsson  <simon@josefsson.org>
30047             Bruno Haible  <bruno@clisp.org>
30048
30049         Fix link error on Solaris 8.
30050         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
30051         also in libnsl. Define also INET_PTON_LIB.
30052         * modules/inet_pton (Link): New section.
30053
30054 2009-11-02  Simon Josefsson  <simon@josefsson.org>
30055             Bruno Haible  <bruno@clisp.org>
30056
30057         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
30058         * modules/inet_ntop (Link): New section.
30059         Reported by Boyan Kasarov <bkasarov@gmail.com>.
30060
30061 2009-11-02  Eric Blake  <ebb9@byu.net>
30062
30063         maint: avoid compiler warnings in m4 macros
30064         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
30065         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
30066
30067 2009-11-02  Simon Josefsson  <simon@josefsson.org>
30068
30069         * m4/pmccabe2html.m4: Remove file.
30070         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
30071         function.  Change maintainer.
30072         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
30073         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
30074         Courtès).
30075
30076 2009-10-31  Eric Blake  <ebb9@byu.net>
30077
30078         fseeko: fix m4 regression
30079         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
30080         regression from 2009-10-27.
30081         Reported by Ralf Wildenhues.
30082
30083 2009-10-31  Jim Meyering  <meyering@redhat.com>
30084
30085         inttostr: aesthetics and improved (compile-time) safety
30086         Define inttype_is_signed rather than inttype_is_unsigned,
30087         since the sole use is via "#if inttype_is_signed".
30088         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
30089         inttype_is_unsigned.
30090         * lib/offtostr.c (inttype_is_signed): Likewise.
30091         * lib/uinttostr.c (inttype_is_signed): Likewise.
30092         * lib/umaxtostr.c (inttype_is_signed): Likewise.
30093         * lib/inttostr.c (inttostr): Use verify to cross-check the
30094         inttype_is_signed value and the signedness of the actual type.
30095         * modules/inttostr (Depends-on): Add verify.
30096
30097 2009-10-30  Eric Blake  <ebb9@byu.net>
30098
30099         build: avoid compiler warnings
30100         * lib/fchmodat.c (lchmod): Mark unused variables.
30101         * lib/getopt.c (_getopt_initialize): Likewise.
30102         * lib/mktime.c (__mktime_internal): Provide prototype.
30103         * lib/inttostr.c (inttostr): Avoid compiler warning even with
30104         older gcc that do not understand #pragma GCC diagnostic.
30105         * lib/uinttostr.c (inttype_is_unsigned): Define.
30106         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
30107
30108 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
30109
30110         stat: fix compilation on AIX
30111         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
30112         only see struct stat64.
30113
30114 2009-10-30  Eric Blake  <ebb9@byu.net>
30115
30116         exclude: make more robust
30117         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
30118         rather than masking a coding bug.
30119         Suggested by Bruno Haible.
30120
30121 2009-10-30  Jim Meyering  <meyering@redhat.com>
30122
30123         perl scripts: remove #!/usr/bin/perl in favor of more portable...
30124         Rather than putting #!/usr/bin/perl on the first line,
30125         start with a variant of what's recommended by "man perlrun" that
30126         invokes the first "perl" program from your shell's search path.
30127         * build-aux/gitlog-to-changelog: Replace #!... as above.
30128         Add a "Local Variables" perl mode setting.
30129         Prompted by a patch from Ludovic Courtès.
30130         Improved by Eric Blake.
30131         * build-aux/useless-if-before-free: Likewise.
30132         * build-aux/announce-gen: Likewise.
30133         * build-aux/update-copyright: Likewise.
30134
30135 2009-10-29  Eric Blake  <ebb9@byu.net>
30136
30137         filenamecat-lgpl: adjust clients
30138         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
30139         filenamecat.
30140         * modules/renameat (Depends-on): Likewise.
30141
30142         filenamecat: split into filenamecat-lgpl
30143         * modules/filenamecat-lgpl: New module.
30144         * modules/filenamecat (Files): Move library-safe files into
30145         filenamecat-lgpl.
30146         (Depends-on): Add filenamecat-lgpl.
30147         (configure.ac): Declare witness.
30148         * lib/filenamecat.h (file_name_concat): Only declare when using
30149         GPL module.
30150         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
30151         Move...
30152         * lib/filenamecat-lgpl.c: ...into new file.
30153         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
30154         (gl_FILE_NAME_CONCAT): Use it.
30155         * MODULES.html.sh (File system functions): Mention new module.
30156
30157         argp: avoid memory leak
30158         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
30159         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
30160         base_name, since the latter malloc()s and can call exit().
30161         Leak introduced 2006-07-03.
30162
30163         dirname-lgpl: adjust clients that don't need full dirname
30164         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
30165         * modules/filenamecat (Depends-on): Likewise.
30166         * modules/linkat (Depends-on): Likewise.
30167         * modules/mkancesdirs (Depends-on): Likewise.
30168         * modules/mkdir (Depends-on): Likewise.
30169         * modules/openat (Depends-on): Likewise.
30170         * modules/savewd (Depends-on): Likewise.
30171         * modules/rename (Depends-on): Likewise.
30172         (License): Relax license.
30173         * modules/mkdir-tests (Depends-on): Drop progname.
30174         (Makefile.am): Delete unneeded LDADD.
30175         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
30176
30177         dirname: split into dirname-lgpl
30178         * modules/dirname-lgpl: New module.
30179         * modules/dirname (Files): Move library-safe files into
30180         dirname-lgpl.
30181         (Depends-on): Add dirname-lgpl.
30182         (configure.ac): Declare witness.
30183         * modules/double-slash-root (License): Relax license.
30184         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
30185         module.
30186         * lib/dirname.c (dir_len, mdir_name): Move...
30187         * lib/dirname-lgpl.c: ...into new file.
30188         * lib/basename.c (last_component, base_len): Move...
30189         * lib/basename-lgpl.c: ...into new file.
30190         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
30191         (gl_DIRNAME): Use it.
30192         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
30193         Mention new module.
30194         * modules/dirname-tests (Depends-on): Add progname.
30195         * tests/test-dirname.c (program_name): Delete.
30196
30197         mkdir: make safe for libraries
30198         * modules/mkdir (Depends-on): Drop xalloc.
30199         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
30200         exit.
30201
30202         tests: avoid some compiler warnings
30203         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
30204         literals.
30205         * tests/test-memchr.c (main): Avoid type mismatch.
30206         * tests/test-arpa_inet.c (main): Avoid unused parameters.
30207         * tests/test-base64.c (main): Likewise.
30208         * tests/test-getdelim.c (main): Likewise.
30209         * tests/test-gethostname.c (main): Likewise.
30210         * tests/test-getline.c (main): Likewise.
30211         * tests/test-netinet_in.c (main): Likewise.
30212         * tests/test-select.c (open_server_socket, main): Likewise.
30213         * tests/test-select-stdin.c (main): Likewise.
30214         * tests/test-sockets.c (main): Likewise.
30215         * tests/test-strsignal.c (main): Likewise.
30216         * tests/test-sys_select.c (main): Likewise.
30217         * tests/test-sys_socket.c (main): Likewise.
30218         * tests/test-u64.c (main): Likewise.
30219         * tests/test-xfprintf-posix.c (main): Likewise.
30220         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
30221
30222         sockets: avoid compiler warning
30223         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
30224
30225         maint: detect usage(1) and other suspicious exits
30226         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
30227
30228 2009-10-29  Jim Meyering  <meyering@redhat.com>
30229
30230         timespec: long-to-int truncation could make timespec_cmp malfunction
30231         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
30232         a multiple of 2^32 nanoseconds as no difference.
30233
30234 2009-10-28  Jim Meyering  <meyering@redhat.com>
30235
30236         fprintftime: wrap macro code argument in "do {...} while(0)"
30237         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
30238         cpy macro must be a statement that can be followed by a semicolon.
30239         Now that the else clause contains a comment and is hence longer
30240         than one line, I require curly braces.  That in turn requires
30241         that we wrap this code block in the standard do...while(0).
30242
30243         fprintftime: remove stray semicolon from previous change
30244         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
30245
30246         fprintftime: avoid a warning about ignored fwrite return value
30247         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
30248         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
30249         that is unsafe.
30250         * modules/fprintftime (Depends-on): Add ignore-value.
30251
30252         exclude: avoid an unwarranted warning
30253         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
30254
30255 2009-10-27  Eric Blake  <ebb9@byu.net>
30256
30257         fseek: avoid compilation failure when fflush is replaced
30258         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
30259         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
30260         module is in use.
30261         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
30262         module is not in use; since REPLACE_FSEEK worked otherwise.
30263         (GNULIB_FTELLO): Likewise for ftell.
30264         Reported by Ian Beckwith and others.
30265
30266 2009-10-27  Bruno Haible  <bruno@clisp.org>
30267
30268         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
30269         Reported by Jim Meyering.
30270
30271 2009-10-27  Jim Meyering  <jim@meyering.net>
30272             Bruno Haible  <bruno@clisp.org>
30273
30274         Avoid warning despite dropping the return value of fwrite.
30275         * lib/unicodeio.c: Include ignore-value.h.
30276         (fwrite_success_callback): Explicitly ignore fwrite's return value.
30277         * modules/unicodeio (Depends-on): Add ignore-value.
30278
30279 2009-10-26  Eric Blake  <ebb9@byu.net>
30280
30281         areadlinkat: fix fallback path
30282         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
30283         pointer and zero.
30284
30285 2009-10-22  Pádraig Brady  <P@draigBrady.com>
30286
30287         Use a better IO block size for modern systems
30288         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
30289         * lib/md2.c: Likewise.
30290         * lib/md4.c: Likewise.
30291         * lib/md5.c: Likewise.
30292         * lib/sha1.c: Likewise.
30293         * lib/sha256.c: Likewise.
30294         * lib/sha512.c: Likewise.
30295
30296 2009-10-22  Eric Blake  <ebb9@byu.net>
30297
30298         tests: avoid several compiler warnings
30299         * tests/test-getcwd.c (main): Avoid buffer underflow.
30300         * tests/test-getdate.c (main): String literals are not safe with
30301         putenv, so use setenv.  Declare unused argument.
30302         * modules/getdate-tests (Depends-on): Add setenv.
30303         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
30304         problems with string literals in char *.
30305         * tests/test-hash.c (main): Avoid shadowing declaration.
30306         (insert_new): Treat string literals as char const *.
30307         * tests/test-getopt.h (test_getopt): Likewise.
30308         (getopt_loop): Alter types to minimize casting elsewhere.
30309         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
30310         (test_getopt_long_posix): Likewise.
30311         (do_getopt_long): Add wrapper to minimize casting.
30312         * tests/test-atexit.c (clear_temp_file): Use void.
30313         * tests/test-areadlink-with-size.c (main): Declare unused
30314         arguments.
30315         * tests/test-areadlink.c (main): Likewise.
30316         * tests/test-areadlinkat-with-size.c (main): Likewise.
30317         * tests/test-areadlinkat.c (main): Likewise.
30318         * tests/test-canonicalize-lgpl.c (main): Likewise.
30319         * tests/test-canonicalize.c (main): Likewise.
30320         * tests/test-dirent-safer.c (main): Likewise.
30321         * tests/test-dirname.c (main): Likewise.
30322         * tests/test-dup2.c (main): Likewise.
30323         * tests/test-fchdir.c (main): Likewise.
30324         * tests/test-fcntl-h.c (main): Likewise.
30325         * tests/test-fcntl-safer.c (main): Likewise.
30326         * tests/test-fdopendir.c (main): Likewise.
30327         * tests/test-fdutimensat.c (main): Likewise.
30328         * tests/test-fflush.c (main): Likewise.
30329         * tests/test-filenamecat.c (main): Likewise.
30330         * tests/test-filevercmp.c (main): Likewise.
30331         * tests/test-fopen-safer.c (main): Likewise.
30332         * tests/test-fopen.c (main): Likewise.
30333         * tests/test-fpending.c (main): Likewise.
30334         * tests/test-fpurge.c (main): Likewise.
30335         * tests/test-freading.c (main): Likewise.
30336         * tests/test-fstatat.c (main): Likewise.
30337         * tests/test-fsync.c (main): Likewise.
30338         * tests/test-futimens.c (main): Likewise.
30339         * tests/test-getndelim2.c (main): Likewise.
30340         * tests/test-gettimeofday.c (main): Likewise.
30341         * tests/test-getopt.c (main): Likewise.
30342         * tests/test-i-ring.c (main): Likewise.
30343         * tests/test-inttypes.c (main): Likewise.
30344         * tests/test-link.c (main): Likewise.
30345         * tests/test-lstat.c (main): Likewise.
30346         * tests/test-math.c (main): Likewise.
30347         * tests/test-md5.c (main): Likewise.
30348         * tests/test-memchr2.c (main): Likewise.
30349         * tests/test-memrchr.c (main): Likewise.
30350         * tests/test-mkdir.c (main): Likewise.
30351         * tests/test-mkdirat.c (main): Likewise.
30352         * tests/test-mkfifoat.c (main): Likewise.
30353         * tests/test-open.c (main): Likewise.
30354         * tests/test-openat-safer.c (main): Likewise.
30355         * tests/test-openat.c (main): Likewise.
30356         * tests/test-quotearg.c (main): Likewise.
30357         * tests/test-rawmemchr.c (main): Likewise.
30358         * tests/test-readlink.c (main): Likewise.
30359         * tests/test-remove.c (main): Likewise.
30360         * tests/test-rename.c (main): Likewise.
30361         * tests/test-renameat.c (main): Likewise.
30362         * tests/test-rmdir.c (main): Likewise.
30363         * tests/test-sha1.c (main): Likewise.
30364         * tests/test-signal.c (main): Likewise.
30365         * tests/test-sigaction.c (main): Likewise.
30366         * tests/test-stat.c (main): Likewise.
30367         * tests/test-stat-time.c (main): Likewise.
30368         * tests/test-stddef.c (main): Likewise.
30369         * tests/test-stdint.c (main): Likewise.
30370         * tests/test-stdio.c (main): Likewise.
30371         * tests/test-stdlib.c (main): Likewise.
30372         * tests/test-strchrnul.c (main): Likewise.
30373         * tests/test-strerror.c (main): Likewise.
30374         * tests/test-string.c (main): Likewise.
30375         * tests/test-strtod.c (main): Likewise.
30376         * tests/test-strverscmp.c (main): Likewise.
30377         * tests/test-symlink.c (main): Likewise.
30378         * tests/test-symlinkat.c (main): Likewise.
30379         * tests/test-sys_stat.c (main): Likewise.
30380         * tests/test-sys_time.c (main): Likewise.
30381         * tests/test-time.c (main): Likewise.
30382         * tests/test-unistd.c (main): Likewise.
30383         * tests/test-unlink.c (main): Likewise.
30384         * tests/test-unlinkat.c (main): Likewise.
30385         * tests/test-utimens.c (main): Likewise.
30386         * tests/test-utimensat.c (main): Likewise.
30387         * tests/test-version-etc.c (main): Likewise.
30388         * tests/test-wchar.c (main): Likewise.
30389         * tests/test-wctype.c (main): Likewise.
30390         * tests/test-xprintf-posix.c (main): Likewise.
30391         * tests/test-posixtm.c (main): Likewise.
30392         (STREQ): Delete unused macro.
30393         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
30394         shadowed variables.
30395         * tests/test-memchr.c (main): Likewise.
30396
30397 2009-10-21  Eric Blake  <ebb9@byu.net>
30398
30399         areadlinkat: avoid failure on older glibc
30400         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
30401         rather than mis-comparing 0 against FUNC_RESULT of char*.
30402
30403 2009-10-21  Bruno Haible  <bruno@clisp.org>
30404
30405         * modules/stpncpy (License): Relicense under LGPLv2+.
30406         Reported by David Lutterkort <lutter@redhat.com>.
30407
30408 2009-10-20  Eric Blake  <ebb9@byu.net>
30409
30410         utimensat: work around Solaris 9 bug
30411         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
30412         has trailing slash bugs.
30413         * tests/test-lutimens.h (test_lutimens): Enhance test.
30414         * tests/test-utimens.h (test_utimens): Likewise.
30415         * doc/posix-functions/utime.texi (utime): Enhance documentation.
30416         * doc/posix-functions/utimes.texi (utimes): Likewise.
30417         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30418         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
30419         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
30420         * doc/posix-functions/futimens.texi (futimens): Likewise.
30421
30422         fdutimensat: new module
30423         * modules/fdutimensat: New file.
30424         * lib/fdutimensat.c (fdutimensat): Likewise.
30425         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
30426         * MODULES.html.sh (File system functions): Mention module.
30427         * modules/fdutimensat-tests: New test.
30428         * tests/test-fdutimensat.c: Likewise.
30429
30430         doc: regenerate INSTALL
30431         * doc/INSTALL: Reflect recent autoconf update.
30432         * doc/INSTALL.ISO: Likewise.
30433         * doc/INSTALL.UTF-8: Likewise.
30434
30435 2009-10-20  Pádraig Brady  <P@draigBrady.com>
30436
30437         acl: warn if ACL support is not detected
30438         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
30439
30440 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
30441
30442         * lib/nproc.h: Add extern "C" block for C++.
30443
30444 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
30445             Bruno Haible  <bruno@clisp.org>
30446
30447         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
30448         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
30449         * doc/posix-functions/isalpha.texi: Likewise.
30450         * doc/posix-functions/isblank.texi: Likewise.
30451         * doc/posix-functions/iscntrl.texi: Likewise.
30452         * doc/posix-functions/isdigit.texi: Likewise.
30453         * doc/posix-functions/isgraph.texi: Likewise.
30454         * doc/posix-functions/islower.texi: Likewise.
30455         * doc/posix-functions/isprint.texi: Likewise.
30456         * doc/posix-functions/ispunct.texi: Likewise.
30457         * doc/posix-functions/isspace.texi: Likewise.
30458         * doc/posix-functions/isupper.texi: Likewise.
30459         * doc/posix-functions/isxdigit.texi: Likewise.
30460
30461 2009-10-18  Bruno Haible  <bruno@clisp.org>
30462
30463         Tests for module 'isblank'.
30464         * modules/isblank-tests: New file.
30465         * tests/test-isblank.c: New file.
30466
30467         New module 'isblank'.
30468         * lib/isblank.c: New file.
30469         * m4/isblank.m4: New file.
30470         * modules/isblank: New file.
30471         * doc/posix-functions/isblank.texi: Mention the new module.
30472
30473 2009-10-18  Bruno Haible  <bruno@clisp.org>
30474
30475         New module 'ctype'.
30476         * lib/ctype.in.h: New file.
30477         * m4/ctype.m4: New file.
30478         * modules/ctype: New file.
30479         * doc/posix-headers/ctype.texi: Mention the new module.
30480
30481 2009-10-18  Jim Meyering  <meyering@redhat.com>
30482
30483         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
30484         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
30485         right after its initialization, rather than farther down.
30486         Keeping these in close proximity makes it easier to ensure
30487         that each such variable is initialized.  E.g.,
30488
30489             LIB_CLOCK_GETTIME=
30490             AC_SUBST([LIB_CLOCK_GETTIME])
30491
30492         This change also increments these serial numbers.
30493         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
30494         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
30495         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30496
30497 2009-10-18  Bruno Haible  <bruno@clisp.org>
30498
30499         Don't let environment variables perturb build.
30500         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
30501         (gl_PREREQ_GETHRXTIME): ... not here.
30502
30503 2009-10-18  Bruno Haible  <bruno@clisp.org>
30504
30505         Avoid symlink attack in localcharset module.
30506         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
30507         (O_NOFOLLOW): Define fallback.
30508         (get_charset_aliases): Don't open the file if it is a symbolic link.
30509         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
30510         gl_FCNTL_H.
30511         (gl_FCNTL_H): Require it.
30512         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
30513         * modules/localcharset (Files): Add m4/fcntl_h.m4.
30514         Reported by Fergal Glynn <fglynn@veracode.com>.
30515
30516 2009-10-18  Bruno Haible  <bruno@clisp.org>
30517
30518         Implement nproc for mingw.
30519         * lib/nproc.c: Include <windows.h>
30520         (num_processors): On native Windows platforms, try GetSystemInfo.
30521
30522 2009-10-18  Bruno Haible  <bruno@clisp.org>
30523
30524         Implement nproc for IRIX.
30525         * lib/nproc.c: Include <sys/sysmp.h>.
30526         (num_processors): On IRIX systems, try sysmp.
30527         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
30528
30529 2009-10-18  Bruno Haible  <bruno@clisp.org>
30530
30531         Implement nproc for HP-UX.
30532         * lib/nproc.c: Include <sys/pstat.h>
30533         (num_processors): On HP-UX systems, try pstat_getdynamic.
30534         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
30535         pstat_getdynamic.
30536
30537 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
30538             Bruno Haible  <bruno@clisp.org>
30539
30540         Implement nproc for NetBSD, OpenBSD.
30541         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
30542         (ARRAY_SIZE): New macro.
30543         (num_processors): On BSD systems, try sysctl of HW_NCPU.
30544         * m4/nproc.m4: New file.
30545         * modules/nproc (Files): Add m4/nproc.m4.
30546         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
30547         (Makefile.am): Instead, augment lib_SOURCES.
30548
30549 2009-10-18  Bruno Haible  <bruno@clisp.org>
30550
30551         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
30552         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
30553         sys/param.h.
30554
30555 2009-10-16  Eric Blake  <ebb9@byu.net>
30556
30557         utimensat: new module
30558         * modules/utimensat: New file.
30559         * lib/utimensat.c (utimensat): Likewise.
30560         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30561         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
30562         so we can work around Linux bugs.
30563         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30564         * modules/sys_stat (Makefile.am): Substitute them.
30565         * lib/sys_stat.in.h (utimensat): Declare it.
30566         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30567         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30568         * modules/utimensat-tests: New test.
30569         * tests/test-utimensat.c: Likewise.
30570
30571         utimens: let lutimens work on non-symlinks
30572         * lib/utimens.c (lutimens): Fall back to utimens rather than
30573         failing with ENOSYS, when file is not a symlink.
30574         (utimens): Reduce redirection.
30575         * tests/test-lutimens.h (test_lutimens): Update test to cover
30576         non-symlinks.
30577         * tests/test-utimens.h (test_utimens): Update test to cover
30578         symlinks.
30579         * tests/test-utimens.c (main): Update caller.
30580
30581         utimens: cache whether utimensat syscall works
30582         * lib/utimens.c (utimensat_works_really): New cache variable.
30583         (fdutimens, lutimens): Use it to avoid failing syscall.
30584
30585         test-stat-time, test-utimens: improve portability
30586         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
30587         ext4 on alpha, and for cygwin.
30588         * tests/test-utimens-common.h: New file.
30589         (nap): Factor delays into single function.
30590         * tests/test-lutimens.h (test_lutimens): Use new header.
30591         * tests/test-futimens.h (test_futimens): Likewise.
30592         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
30593         timestamps to occur from same machine, as was done previously for
30594         test_utimens.
30595         * modules/utimens-tests (Files): Ship new file.
30596         * modules/futimens-tests (Files): Likewise.
30597         Reported in part by Jim Meyering.
30598
30599         sys_stat: sort replacement declarations
30600         * lib/sys_stat.in.h: Sort declarations.
30601         * lib/futimens.c (futimens): Fix typo.
30602
30603 2009-10-15  Jim Meyering  <meyering@redhat.com>
30604
30605         don't let environment settings perturb build
30606         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
30607         could cause a configure-time and/or build-time malfunction.
30608         Typically, a configure-time function-in-library test is performed
30609         via code like this:
30610
30611           LIB_VAR=
30612           AC_SUBST([LIB_VAR])
30613           prefix_saved_LIBS=$LIBS
30614             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
30615                        [test "$ac_cv_search_FUNC" = "none required" ||
30616                         LIB_VAR=$ac_cv_search_FUNC])
30617           LIBS=$prefix_saved_LIBS
30618
30619         However, in each of the files affected by this change, the LIB_VAR=
30620         initialization was omitted.  Thus, when set in the environment, its
30621         value would propagate into generated Makefiles when FUNC is not found
30622         in LIB_NAME.
30623         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
30624         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
30625         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30626
30627 2009-10-14  Eric Blake  <ebb9@byu.net>
30628
30629         fchdir: avoid infinite recursion in mingw
30630         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
30631         recursing.
30632
30633         test-stat-time: port to mingw
30634         * tests/test-stat-time.c (force_unlink): Return a value.
30635         (test_ctime) [W32]: Fix compilation error.
30636         (nap): Don't call usleep with too large an argument.  Use
30637         force_unlink.
30638         * doc/pastposix-functions/usleep.texi (usleep): Document the
30639         portability issue.
30640
30641 2009-10-13  Jim Meyering  <meyering@redhat.com>
30642
30643         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
30644         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
30645         * modules/pipe-filter-ii: Likewise.
30646         * modules/sys_socket-tests: Likewise.
30647         * modules/tsearch-tests: Likewise.
30648         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
30649         (check): Depend on it.
30650
30651 2009-10-12  Eric Blake  <ebb9@byu.net>
30652
30653         utimens-tests: port to NFS file systems
30654         * tests/test-utimens.h (test_utimens): Refactor utimecmp
30655         comparisons to avoid spurious failures from timestamp drift
30656         between NFS machines.
30657
30658 2009-10-12  Eric Blake  <ebb9@byu.net>
30659
30660         stat-time-tests: minor cleanups
30661         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
30662         * tests/test-stat-time.c (nap): Separate assignment from call.
30663         Suggested by Paolo Bonzini and Bruno Haible.
30664
30665         sys_stat: guarantee struct timespec
30666         * lib/sys_stat.in.h (includes): Always include <time.h>
30667         * modules/sys_stat (Depends-on): Add time.
30668         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
30669         mode_t permission values.
30670         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
30671         get at subsecond timestamps.
30672
30673 2009-10-10  Eric Blake  <ebb9@byu.net>
30674
30675         futimens: new module
30676         * modules/futimens: New file.
30677         * lib/futimens.c (futimens): Likewise.
30678         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
30679         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
30680         we can work around Linux bugs.
30681         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30682         * modules/sys_stat (Makefile.am): Substitute them.
30683         * lib/sys_stat.in.h (futimens): Declare it.
30684         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30685         * doc/posix-functions/futimens.texi (futimens): Likewise.
30686         * modules/futimens-tests: New test.
30687         * tests/test-futimens.c: Likewise.
30688
30689         utimens: introduce fdutimens
30690         * lib/utimens.h (fdutimens): New prototype.
30691         * lib/utimens.c (gl_futimens): Move guts...
30692         (fdutimens): ...to new interface.
30693         * tests/test-utimens.c (do_fdutimens): Use it.
30694
30695         utimens: add UTIME_NOW and UTIME_OMIT support
30696         * lib/utimens.c (validate_timespec, update_timespec): New helper
30697         functions.
30698         (gl_futimens, lutimens): Use them.
30699         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
30700         stdbool, sys_stat.
30701         (Link): Mention resulting library dependency.
30702         * modules/utimecmp (Link): Likewise.
30703         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
30704         (Makefile.am): Pick up library dependency.
30705         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
30706         definition.
30707         * tests/test-sys_stat.c: Test the definitions.
30708         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
30709         * NEWS: Document library dependency.
30710
30711         utimecmp: support symlink timestamps
30712         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
30713         hashing when possible.  Use pathconf when available.
30714         (SYSCALL_RESOLUTION): Recognize tighter resolution.
30715         * modules/utimecmp (Depends-on): Add lstat.
30716
30717         utimens: add lutimens interface
30718         * lib/utimens.c (lutimens): New function.
30719         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
30720         * lib/utimens.h (lutimens): Declare new interface.
30721         * tests/test-utimens.c (main): Enhance test.
30722         * tests/test-lutimens.h (test_lutimens): New file.
30723         * modules/utimens-tests (Files): Distribute it.
30724         (Depends-on): Add symlink.
30725         (configure.ac): Check for usleep.
30726
30727         utimens: validate futimens usage
30728         * lib/utimens.c (gl_futimens): Require valid fd up front, using
30729         fewer syscalls on failure later on.  Avoid compiler warning on
30730         mingw.
30731         * modules/utimens (Depends-on): Add dup2.
30732
30733         utimens: add test
30734         * modules/utimens-tests: New test.
30735         * tests/test-utimens.h: New file.
30736         * tests/test-futimens.h: Likewise.
30737         * tests/test-utimens.c: Likewise.
30738
30739         doc: mention timestamp portability issues
30740         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
30741         instead.
30742         * doc/posix-functions/utime.texi (utime): Likewise.
30743         * doc/posix-functions/utimes.texi (utimes): Likewise.
30744         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
30745         instead.
30746         * doc/posix-functions/futimens.texi (futimens): Mention utimens
30747         module.
30748         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30749         Mention weakness with symlink timestamps.
30750         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
30751         to utimensat/futimens instead.
30752         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
30753
30754         test-dup2: enhance test
30755         * tests/test-dup2.c (main): Also check AT_FDCWD.
30756
30757         test-stat-time: avoid more spurious failures
30758         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
30759         xfs; and avoid race if the two timestamps cross quantization edge.
30760
30761         relocatable: prefer 'file system' over 'filesystem'
30762         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
30763         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
30764         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
30765         * doc/relocatable.texi (Enabling Relocatability): Likewise.
30766         * lib/relocatable.c (compute_curr_prefix): Likewise.
30767
30768 2009-10-10  Jim Meyering  <meyering@redhat.com>
30769
30770         stat-time-tests: check for the usleep function
30771         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
30772
30773 2009-10-10  Bruno Haible  <bruno@clisp.org>
30774
30775         * modules/xnanosleep: Put the Link section after the Include section.
30776
30777 2009-10-09  Eric Blake  <ebb9@byu.net>
30778
30779         dup2: work around FreeBSD 6.1 bug
30780         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
30781         * doc/posix-functions/dup2.texi (dup2): Document it.
30782         Reported by Nelson H. F. Beebe and Jim Meyering.
30783
30784         test-stat-time: port to buggy NFS clients
30785         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
30786         (test_ctime): Also skip test if mtime and ctime are skewed.
30787
30788         maint: prefer 'file system' over 'filesystem'
30789         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
30790         * doc/posix-functions/lstat.texi (lstat): Likewise.
30791         * lib/file-has-acl.c (file_has_acl): Likewise.
30792         * lib/fwriteerror.c [TEST]: Likewise.
30793         * tests/test-areadlink.h (test_areadlink): Likewise.
30794         * tests/test-areadlinkat-with-size.c (main): Likewise.
30795         * tests/test-areadlinkat.c (main): Likewise.
30796         * tests/test-canonicalize-lgpl.c (main): Likewise.
30797         * tests/test-canonicalize.c (main): Likewise.
30798         * tests/test-fstatat.c (main): Likewise.
30799         * tests/test-linkat.c (main): Likewise.
30800         * tests/test-lstat.h (test_lstat_func): Likewise.
30801         * tests/test-mkdir.h (test_mkdir): Likewise.
30802         * tests/test-readlink.h (test_readlink): Likewise.
30803         * tests/test-remove.c (main): Likewise.
30804         * tests/test-rename.h (test_rename): Likewise.
30805         * tests/test-renameat.c (main): Likewise.
30806         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30807         * tests/test-symlink.h (test_symlink): Likewise.
30808         * tests/test-symlinkat.c (main): Likewise.
30809         * tests/test-unlink.h (test_unlink_func): Likewise.
30810         * tests/test-unlinkat.c (main): Likewise.
30811
30812         maint: make realtime library usage explicit
30813         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
30814         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
30815         * modules/settime (Link): Likewise.
30816         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
30817
30818         test-stat-time: speed up execution
30819         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
30820         warning on mingw.
30821         (nap): New helper function.
30822         (prepare_test): Use it to reduce sleep time.
30823         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
30824         execution.
30825         * modules/stat-time-tests (configure.ac): Check for usleep.
30826
30827 2009-10-09  Jim Meyering  <meyering@redhat.com>
30828
30829         selinux-h: always use getfilecon wrappers
30830         * lib/getfilecon.c: New file.
30831         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
30832         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
30833         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
30834         (fgetfilecon): Provide a stub.
30835         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
30836         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
30837         file unconditionally.
30838         When <selinux/selinux.h> is found, arrange to use wrappers.
30839         * modules/selinux-h (Files): Add getfilecon.c.
30840         (Makefile.am): Substitute include-next-related bits
30841         into the now-always-generated selinux/selinux.h file.
30842         * doc/glibc-functions/lgetfilecon.texi: New file.
30843         * doc/glibc-functions/fgetfilecon.texi: New file.
30844         * doc/glibc-functions/getfilecon.texi: New file.
30845         * doc/glibc-functions/getfilecon-desc.texi: New file.
30846         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
30847         which to pull in the new files.
30848         * MODULES.html.sh (Misc): Add selinux-h.
30849
30850 2009-10-08  Jim Meyering  <meyering@redhat.com>
30851
30852         unistd: fix comment typo
30853         * lib/unistd.in.h (euidaccess): Fix a comment typo.
30854
30855 2009-10-08  Eric Blake  <ebb9@byu.net>
30856
30857         areadlink: use SIZE_MAX consistently
30858         * modules/areadlink (Depends-on): Add stdint.
30859         * modules/areadlink-with-size (Depends-on): Likewise.
30860         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
30861         gives NULL; drop sys/types, since unistd gives size_t; and add
30862         stdint for SIZE_MAX.
30863         (SIZE_MAX): Rely on headers.
30864         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
30865         and add stdint.
30866         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
30867         (SIZE_MAX): Likewise.
30868         (INITIAL_BUF_SIZE): Turn into enum.
30869         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
30870
30871 2009-10-08  Jim Meyering  <meyering@redhat.com>
30872
30873         areadlinkat: avoid compilation failure
30874         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
30875         Fix typo in comment.
30876
30877 2009-10-07  Eric Blake  <ebb9@byu.net>
30878
30879         areadlinkat-with-size: new module
30880         * modules/areadlinkat-with-size: New module.
30881         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
30882         * lib/areadlink.h (areadlinkat): Declare it.
30883         * MODULES.html.sh (File system functions): Mention it.
30884         * modules/areadlinkat-with-size-tests: New test.
30885         * tests/test-areadlinkat-with-size.c: New file.
30886
30887         xreadlinkat: new module
30888         * modules/xreadlinkat: New module.
30889         * lib/xreadlinkat.c (xreadlinkat): New file.
30890         * lib/xreadlink.h (xreadlinkat): Declare it.
30891         * MODULES.html.sh (File system functions): Mention it.
30892
30893         areadlinkat: new module
30894         * lib/at-func.c (FUNC_FAIL): New define.
30895         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
30896         * modules/areadlinkat: New module.
30897         * lib/linkat.c (areadlinkat): Move...
30898         * lib/areadlinkat.c (areadlinkat): ...to new file.
30899         * lib/areadlink.h (areadlinkat): Declare it.
30900         * modules/linkat (Depends-on): Add areadlinkat.
30901         * MODULES.html.sh (File system functions): Mention it.
30902         * modules/areadlinkat-tests: New test.
30903         * tests/test-areadlinkat.c: New file.
30904
30905         areadlink, areadlink-with-size: add tests
30906         * modules/areadlink-tests: New test.
30907         * modules/areadlink-with-size-tests: Likewise.
30908         * tests/test-areadlink.h: New file.
30909         * tests/test-areadlink.c: Likewise.
30910         * tests/test-areadlink-with-size.c: Likewise.
30911
30912         maint: minor cleanups
30913         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
30914         _UNUSED_PARAMETER_ instead.
30915         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
30916         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
30917         * modules/linkat-tests (Files): Distribute test-link.h.
30918
30919         openat, utimens: whitespace cleanup
30920         * lib/openat.c: Prefer space throughout, rather than mix of 8
30921         spaces vs. tabs.
30922         * lib/at-func.c: Likewise.
30923         * lib/utimens.c: Likewise.
30924
30925         openat: avoid using wrong fd
30926         * lib/openat.c (openat_permissive): Reject user's fd if saving the
30927         working directory chooses same fd.
30928         * lib/at-func.c (AT_FUNC_NAME): Likewise.
30929
30930         mkdir, mkdirat: fix cygwin 1.5.x bug
30931         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
30932         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
30933         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
30934         bug.
30935         (gl_PREREQ_MKDIR): Delete unused macro.
30936         * modules/mkdir (Files): Track file rename.
30937         (configure.ac): Update macro name.
30938         * modules/openat (Depends-on): Add mkdir.
30939         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
30940
30941         mkdir, mkdirat: add tests
30942         * modules/mkdir-tests: New test.
30943         * tests/test-mkdir.h: New file.
30944         * tests/test-mkdir.c: Likewise.
30945         * tests/test-mkdirat.c: Likewise.
30946         * modules/openat-tests (Files): Add new files.
30947         (Makefile.am): Run new test.
30948
30949 2009-10-06  Eric Blake  <ebb9@byu.net>
30950
30951         doc: tweak *at function documentation
30952         * doc/posix-functions/faccessat.texi (faccessat): Mention
30953         known issue with replacement.
30954         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
30955         * doc/posix-functions/linkat.texi (linkat): Likewise.
30956         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
30957         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
30958         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30959         * doc/posix-functions/renameat.texi (renameat): Likewise.
30960         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30961
30962         openat: fix GNU/Hurd bug in unlinkat
30963         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
30964         broken.
30965         * doc/posix-functions/unlink.texi (unlink): Document this.
30966         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
30967
30968         fdopendir: fix GNU/Hurd bug
30969         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
30970         allowing non-directory fds.
30971         * lib/fdopendir.c (rpl_fdopendir): Work around it.
30972         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30973         * modules/dirent (Makefile.am): Substitute it.
30974         * lib/dirent.in.h (fdopendir): Declare replacement.
30975         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
30976         * tests/test-fdopendir.c (main): Test something other than
30977         /dev/null, since on Hurd that behaves like a directory.
30978
30979         test-symlink: port to GNU/Hurd
30980         * tests/test-symlink.h (test_symlink): Relax expected errno.
30981
30982         doc: tweak more cygwin information
30983         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
30984         now compatible with glibc.
30985         * doc/posix-functions/getopt.texi (getopt): Likewise.
30986
30987         getopt-gnu: add another test
30988         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
30989         guarantee behavior relied on by m4.
30990         * tests/test-getopt.c (main): Use it.
30991         * modules/getopt-posix-tests (Depends-on): Add setenv.
30992         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
30993
30994         getopt: fix compilation on darwin
30995         * lib/getopt.in.h (includes): Leave breadcrumbs during system
30996         include.
30997         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
30998         Reported by Ludovic Courtès.
30999
31000 2009-10-06  Bruno Haible  <bruno@clisp.org>
31001
31002         * modules/size_max (Description): Discourage its use.
31003         Reported by Simon Josefsson.
31004
31005 2009-10-06  Jim Meyering  <meyering@redhat.com>
31006
31007         linkat: avoid compilation failure
31008         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
31009
31010 2009-10-05  Eric Blake  <ebb9@byu.net>
31011
31012         linkat: support Linux 2.6.17
31013         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
31014         linkat on Linux, but allow cache variable override.
31015         * lib/linkat.c (rpl_linkat): Define override.
31016         * modules/linkat (Depends-on): Add symlinkat.
31017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
31018         * modules/unistd (Makefile.am): Substitute it.
31019         * lib/unistd.in.h (linkat): Declare replacement.
31020         Reported by Pádraig Brady.
31021
31022         quotearg: port test to systems with C.UTF-8 locale
31023         * tests/test-quotearg.c (struct result_strings): Add another
31024         member, differentiating between C.ASCII and C.UTF-8 handling.
31025         (compare_strings): Add parameter.
31026         (main): Adjust all callers.
31027
31028         getopt: avoid clash with FreeBSD _getopt_internal
31029         * lib/getopt.in.h (_getopt_internal): Override the name.
31030         * lib/getopt_int.h (includes): Pick up any overrides.
31031         Reported by Reuben Thomas.
31032
31033         hash: allow C89 compilation
31034         * lib/hash.c (check_tuning): Move declaration before statement.
31035         Reported by Reuben Thomas.
31036
31037 2009-10-05  Karl Berry  <karl@gnu.org>
31038
31039         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
31040
31041 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
31042             Bruno Haible  <bruno@clisp.org>
31043
31044         * lib/uname.c (uname): Use a table-driven algorithm to compute
31045         Windows NT versions.
31046
31047 2009-10-04  Bruno Haible  <bruno@clisp.org>
31048
31049         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
31050         program_invocation_short_name.
31051         * modules/progname (configure.ac): Test for presence of
31052         program_invocation_short_name.
31053         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
31054
31055 2009-10-04  Bruno Haible  <bruno@clisp.org>
31056
31057         * lib/progname.c (set_program_name): Fix comment.
31058         Reported by Jim Meyering.
31059
31060 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
31061             Bruno Haible  <bruno@clisp.org>
31062
31063         * lib/uname.c: Include <string.h>.
31064         (uname): Do only one call to GetVersionEx in the common case.
31065
31066 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
31067             Bruno Haible  <bruno@clisp.org>
31068
31069         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
31070         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
31071         (uname): Add support for Windows CE and various non-x86 CPU types.
31072
31073 2009-10-03  Bruno Haible  <bruno@clisp.org>
31074
31075         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
31076         invocation to tests/configure.ac.
31077         Reported by Ian Beckwith <ianb@erislabs.net>.
31078
31079 2009-10-02  Eric Blake  <ebb9@byu.net>
31080
31081         fchdir: avoid compiler warning
31082         * lib/fchdir.c (canonicalize_file_name)
31083         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
31084
31085         test-open: support mingw errno values
31086         * tests/test-open.h (test_open): Relax test.
31087         * tests/test-fopen.h (test_fopen): Likewise.
31088         * tests/test-openat-safer.c (main): Likewise.
31089
31090         open: fix opening directory on mingw
31091         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
31092
31093         test-open: on GNU/Hurd, /dev/null is a directory
31094         * tests/test-fopen.h (main): Rename...
31095         (test_fopen): ...to this.  Use a guaranteed non-directory when
31096         confirming open behavior on trailing slash.
31097         * tests/test-openat-safer.c (main): Likewise.
31098         * tests/test-open.h (main): Likewise....
31099         (test_open): ...to this.
31100         * tests/test-fopen.c (main): Adjust caller.
31101         * tests/test-fopen-safer.c (main): Likewise.
31102         * tests/test-open.c (main): Likewise.
31103         * tests/test-fcntl-safer.c (main): Likewise.
31104         Reported by Samuel Thibault.
31105
31106         rename, fchdir: don't ignore chdir failure
31107         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
31108         * lib/rename.c (rpl_rename) [W32]: Likewise.
31109         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
31110         an empty destination directory if source cannot be renamed,
31111         although there is still possibility for failure.
31112         * doc/posix-functions/rename.texi (rename): Document the race.
31113         Reported by Jim Meyering.
31114
31115         maint: cleanup whitespace in recent commits
31116         * lib/rename.c (rpl_rename): Remove tabs.
31117         * tests/test-link.h (test_link): Likewise.
31118         * lib/fchdir.c (get_name): Likewise.
31119         Reported by Jim Meyering.
31120
31121 2009-10-02  Ben Pfaff  <blp@gnu.org>
31122
31123         relocatable-prog-wrapper: Add missing dependency on
31124         double-slash-root.
31125         * modules/relocatable-prog-wrapper: Add dependency.
31126         Reported by Ian Beckwith <ianb@erislabs.net>.
31127
31128 2009-10-02  Eric Blake  <ebb9@byu.net>
31129
31130         renameat: fix Solaris bugs
31131         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
31132         needed fixing.
31133         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
31134         * modules/stdio (Makefile.am): Substitute it.
31135         * lib/stdio.in.h (renameat): Declare replacement.
31136         * lib/renameat.c (rpl_renameat): Implement fix.
31137
31138         renameat: new module
31139         * modules/renameat: New file.
31140         * lib/renameat.c (renameat): Likewise.
31141         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
31142         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
31143         * modules/stdio (Makefile.am): Substitute them.
31144         * lib/stdio.in.h (renameat): Declare it.
31145         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31146         * doc/posix-functions/renameat.texi (renameat): Likewise.
31147         * modules/renameat-tests: New test.
31148         * tests/test-renameat.c: Likewise.
31149
31150         rename: fix mingw bugs
31151         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
31152         directory overwrite bugs.
31153
31154         rename: fix another cygwin 1.5 bug
31155         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
31156         checks.
31157         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
31158         unnecessary cygwin workarounds.  Also work around bug with moving
31159         full directory onto an empty one.
31160         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
31161
31162         rename-dest-slash: merge into rename module
31163         * modules/rename-dest-slash (Status): Mark obsolete.
31164         (Depends-on): Add rename.
31165         (Files): Let rename do it all.
31166         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
31167         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
31168         * m4/rename-dest-slash.m4: ...so this file can be deleted.
31169         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
31170         * lib/rename.c (rpl_rename): Update comments.
31171
31172         rename: fix cygwin 1.5.x bugs
31173         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
31174         * lib/rename.c (rpl_rename): Work around them.
31175         * modules/rename (Depends-on): Add same-inode.
31176
31177         rename: fix Solaris 10 bug
31178         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
31179         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
31180         was the only bug.
31181
31182         rename: fix Solaris 9 bug
31183         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
31184         on non-directory.  Avoid calling exit.
31185         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
31186         strdup.
31187         * modules/rename-tests (Depends-on): Drop lstat.
31188         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
31189         (gl_PREREQ_RENAME): Delete unused macro.
31190
31191         rename-dest-slash: fix NetBSD bug
31192         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
31193         links.
31194         * modules/rename-dest-slash (Depends-on): Add same-inode.
31195
31196         rename-tests: new test, exposes several platform bugs
31197         * modules/rename-tests: New file.
31198         * tests/test-rename.h: Likewise.
31199         * tests/test-rename.c: Likewise.
31200         * doc/posix-functions/rename.texi (rename): Improve documentation,
31201         including bugs that will eventually be fixed in gnulib.
31202
31203 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
31204
31205         * lib/uname.c: Include <stdlib.h>
31206         (uname): Assume version info is available.
31207
31208 2009-10-02  Jim Meyering  <meyering@redhat.com>
31209
31210         gnu-web-doc-update: correct --help output
31211         * build-aux/gnu-web-doc-update: Make --help output relevant.
31212
31213         gnu-web-doc-update: add standard options
31214         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
31215
31216         gnu-web-doc-update: New module.
31217         Use this script to automatically update the on-line web documentation
31218         for your GNU project at http://www.gnu.org/software/$pkg/manual/
31219         * modules/gnu-web-doc-update: New file, from coreutils.
31220         * build-aux/gnu-web-doc-update: New script.
31221
31222 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
31223
31224         link: LoadLibrary is not needed.
31225         * lib/link.c: Use GetModuleHandle.
31226
31227 2009-10-01  Eric Blake  <ebb9@byu.net>
31228
31229         getopt: bump serial number
31230         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
31231         change.
31232
31233         tests: tighten link, rmdir, and remove tests
31234         * tests/test-link.h (includes): No need to use <config.h> here.
31235         Clean up if directory hard link was created, otherwise test for
31236         trailing '.'.
31237         * tests/test-linkat.c (main): Simplify.
31238         * tests/test-remove.c (main): Enhance test for trailing '.'.
31239         * tests/test-rmdir.h (test_rmdir_func): Likewise.
31240
31241 2009-10-01  Jim Meyering  <meyering@redhat.com>
31242
31243         maint.mk: requiring "make major" was annoying, for a "minor" release.
31244         What is intended is "stable", to contrast with alpha and beta,
31245         so require "make stable", not "make major".
31246         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
31247         (get_tool_versions): Likewise.
31248         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
31249
31250 2009-09-30  Ben Pfaff  <blp@gnu.org>
31251
31252         Fix broken build of replacement for Windows tmpfile().
31253         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
31254         flags argument added along with the 'mkostemp' module.
31255
31256 2009-09-28  Bruno Haible  <bruno@clisp.org>
31257
31258         Avoid identifier clash with POSIX function 'remove' defined as a macro.
31259         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
31260         to 'remove_elt'.
31261         (gl_list_remove): Update.
31262         * lib/gl_list.c (gl_list_remove): Update.
31263         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
31264         to 'remove_elt'.
31265         (gl_oset_remove): Update.
31266         * lib/gl_list.c (gl_oset_remove): Update.
31267         Reported by Eric Blake.
31268
31269 2009-09-28  Eric Blake  <ebb9@byu.net>
31270
31271         doc: mention yet more cygwin 1.7 status
31272         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
31273         cygwin.
31274         * doc/glibc-functions/execvpe.texi (execvpe): New file.
31275         * doc/gnulib.texi (Glibc unistd.h): Mention it.
31276
31277         argp: fix test failure
31278         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
31279         that are not upper-case.  Pass correct range to tolower.
31280
31281 2009-09-27  Jim Meyering  <meyering@redhat.com>
31282
31283         test-yesno: work around sparc-dash here-document infelicity
31284         Without this change, the literal \177 byte in a here document
31285         would make dash 0.5.5.1-3 access uninitialized memory.
31286         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
31287         Instead, use a marker, "@", and filter through tr to create the desired
31288         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
31289
31290 2009-09-27  Bruno Haible  <bruno@clisp.org>
31291
31292         Disable untested support for new flavours of ACLs on AIX.
31293         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
31294         progress.
31295         * lib/set-mode-acl.c (qset_acl): Likewise.
31296
31297 2008-12-07  Bruno Haible  <bruno@clisp.org>
31298
31299         Add support for new flavours of ACLs on AIX. (Untested.)
31300         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
31301         (file_has_acl): Add support for newer AIX.
31302         * lib/set-mode-acl.c (qset_acl): Likewise.
31303         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
31304         Rainer Tammer <tammer@tammer.net>.
31305
31306 2009-09-26  Eric Blake  <ebb9@byu.net>
31307
31308         argp: fix compilation of getopt
31309         * lib/getopt.in.h (includes): Use different guard than glibc.
31310         Reported by Sergey Poznyakoff.
31311
31312         doc: mention more cygwin 1.7 status
31313         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
31314         bug.
31315         * doc/posix-functions/execl.texi (execl): Likewise.
31316         * doc/posix-functions/execle.texi (execle): Likewise.
31317         * doc/posix-functions/execlp.texi (execlp): Likewise.
31318         * doc/posix-functions/execv.texi (execv): Likewise.
31319         * doc/posix-functions/execve.texi (execve): Likewise.
31320         * doc/posix-functions/execvp.texi (execvp): Likewise.
31321         * doc/glibc-functions/canonicalize_file_name.texi
31322         (canonicalize_file_name): Cygwin 1.7 now provides this.
31323         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
31324         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
31325         on AT_SYMLINK_NOFOLLOW.
31326
31327 2009-09-24  Eric Blake  <ebb9@byu.net>
31328
31329         test-linkat: make test more robust
31330         * tests/test-linkat.c (main): Avoid collision with EEXIST.
31331
31332         getopt: fix inclusion guards for cygwin
31333         * modules/getopt-posix (Depends-on): Add include-next.
31334         (Makefile.am): Substitute more items in replacement header.
31335         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
31336         <getopt.h>.
31337         * lib/getopt.in.h (includes): Use split inclusion guard, and
31338         prefer <getopt.h> over include <unistd.h> when one is present.
31339         (option): Also override name of 'struct option'.
31340
31341         same-inode: revert prior change; it is not yet ready
31342         * NEWS: Undo mention of this change.
31343         * lib/same-inode.h (same-inode.h): Undo tri-state change.
31344         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
31345         * lib/cycle-check.c (cycle_check): Likewise.
31346         * lib/same.c (same_name): Likewise.
31347         * lib/at-func2.c (at_func2): Likewise.
31348
31349 2009-09-23  Eric Blake  <ebb9@byu.net>
31350
31351         linkat: new module
31352         * modules/linkat: New file.
31353         * lib/at-func2.c (at_func2): Likewise.
31354         * lib/linkat.c (linkat): Likewise.
31355         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
31356         * lib/openat-priv.h (at_func2): Add declaration.
31357         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31358         * modules/unistd (Makefile.am): Substitute them.
31359         * lib/unistd.in.h (linkat): Declare it.
31360         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31361         * doc/posix-functions/linkat.texi (linkat): Likewise.
31362         * doc/posix-functions/link.texi (link): Tweak wording.
31363         * tests/test-link.c (main): Move guts...
31364         * tests/test-link.h (test_link): ...into new file.
31365         * modules/linkat-tests: New test.
31366         * tests/test-linkat.c: Likewise.
31367         * modules/link-tests (Files): Ship new file.
31368         (Depends-on): Add stdbool.
31369
31370         dirname: add library-safe mdir_name
31371         * lib/dirname.h (mdir_name): New prototype.
31372         * lib/dirname.c (dir_name): Move guts...
31373         (mdir_name): ...to new function that avoids xalloc_die.
31374
31375         fchdir: another mingw fix
31376         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
31377         * lib/fchdir.c (get_name): New helper method; skips canonicalize
31378         on mingw (where it has not yet been ported), and make it optional
31379         elsewhere.
31380         (_gl_register_fd): Use it.
31381
31382         same-inode: make SAME_INODE tri-state, to port to mingw
31383         * NEWS: Mention this change.
31384         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
31385         st_ino always being 0.
31386         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
31387         * lib/cycle-check.c (cycle_check): Likewise.
31388         * lib/same.c (same_name): Likewise.
31389
31390         lstat: avoid mingw compilation error
31391         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
31392         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
31393         lstat ourselves.
31394         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
31395         was adequate.
31396         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
31397         the checks for lstat.
31398         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
31399
31400         link: fix test failure on Solaris 9
31401         * lib/link.c (rpl_link): Don't assume link will catch bogus
31402         trailing slash on source.
31403
31404         test-symlinkat: enhance test
31405         * tests/test-readlink.c (main): Move guts...
31406         * tests/test-readlink.h (test_readlink): ...into new file.
31407         * tests/test-symlink.c (main): Move guts...
31408         * tests/test-symlink.h (test_symlink): ...into new file.
31409         * tests/test-symlinkat.c (main): Use new files for further
31410         coverage.
31411         (do_symlink, do_readlink): New helper functions.
31412         * modules/symlink-tests (Files): Ship new file.
31413         (Depends-on): Add stdbool.
31414         * modules/readlink-tests (Files): Ship new file.
31415         (Depends-on): Add stdbool.
31416         * modules/symlinkat-tests (Files): Use new files.
31417
31418 2009-09-23  Eric Blake  <ebb9@byu.net>
31419
31420         readlink: document portability issue with symlink length
31421         * doc/posix-functions/lstat.texi (lstat): Mention that some file
31422         systems have bogus st_size on symlinks, and mention the
31423         areadlink-with-size module.
31424         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
31425         * doc/posix-functions/readlink.texi (readlink): Mention the
31426         areadlink module, and ERANGE failure.
31427         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31428         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
31429
31430         readlink: fix Solaris 9 bug with trailing slash
31431         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
31432         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
31433         * doc/posix-functions/readlink.texi (readlink): Document this.
31434         * modules/readlink-tests: New test.
31435         * tests/test-readlink.c: Likewise.
31436
31437         readlink: fix cygwin 1.5.x bug with return type
31438         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
31439         * lib/unistd.in.h (readlink): Use ssize_t.
31440         * lib/readlink.c (readlink): Likewise.
31441         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31442         * modules/unistd (Makefile.am): Substitute it.
31443         * lib/unistd.in.h (readlink): Declare replacement.
31444         * doc/posix-functions/readlink.texi (readlink): Document this.
31445
31446         symlink: use throughout gnulib
31447         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
31448         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
31449         symlink is not used.
31450         * modules/symlinkat (Depends-on): Add symlink.
31451         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31452         * modules/canonicalize-tests (Depends-on): Likewise.
31453         * modules/lstat-tests (Depends-on): Likewise.
31454         * modules/openat-tests (Depends-on): Likewise.
31455         * modules/remove-tests (Depends-on): Likewise.
31456         * modules/rmdir-tests (Depends-on): Likewise.
31457         * modules/unlink-tests (Depends-on): Likewise.
31458         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
31459         * tests/test-canonicalize.c (symlink): Likewise.
31460         * tests/test-fstatat.c (symlink): Likewise.
31461         * tests/test-lstat.c (symlink): Likewise.
31462         * tests/test-remove.c (symlink): Likewise.
31463         * tests/test-rmdir.c (symlink): Likewise.
31464         * tests/test-unlink.c (symlink): Likewise.
31465         * tests/test-unlinkat.c (symlink): Likewise.
31466
31467         symlink: new module, for Solaris 9 bug
31468         * modules/symlink: New file.
31469         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
31470         * lib/symlink.c: Likewise.
31471         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
31472         * modules/unistd (Makefile.am): Substitute them.
31473         * lib/unistd.in.h (symlink): Declare replacement.
31474         * MODULES.html.sh (File system functions): Mention it.
31475         * doc/posix-functions/symlink.texi (symlink): Likewise.
31476         * modules/symlink-tests: New test.
31477         * tests/test-symlink.c: Likewise.
31478
31479 2009-09-23  Bruno Haible  <bruno@clisp.org>
31480
31481         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
31482         when needed.
31483         Test case: gnulib-tool --import --with-tests atexit inttypes.
31484         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
31485
31486 2009-09-23  Bruno Haible  <bruno@clisp.org>
31487
31488         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
31489         subcommand, not in a subshell.
31490
31491 2009-09-22  Eric Blake  <ebb9@byu.net>
31492
31493         unistd: sort replacement declarations
31494         * lib/unistd.in.h: Sort declarations.
31495
31496         open, openat: minor optimization
31497         * lib/open.c (open): If open succeeded, len is non-zero.
31498         * lib/openat.c (rpl_openat): Likewise.
31499
31500         link-follow: ensure correct result
31501         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
31502         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
31503         distinguish between possible failures.
31504
31505 2009-09-21  Eric Blake  <ebb9@byu.net>
31506
31507         fts: avoid compiler warning
31508         * lib/fts.c (dirent_inode_sort_may_be_useful)
31509         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
31510
31511 2009-09-19  Bruno Haible  <bruno@clisp.org>
31512
31513         * lib/progreloc.c (canonicalize_file_name): New declaration.
31514
31515 2009-09-19  Eric Blake  <ebb9@byu.net>
31516
31517         link: fix quoting
31518         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
31519
31520         openat: fix openat bugs on Solaris 9
31521         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
31522         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
31523         * modules/openat (Depends-on): Add open.
31524         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
31525         * modules/fcntl-h (Makefile.am): Substitute it.
31526         * lib/fcntl.in.h (openat): Declare replacement.
31527         * doc/posix-functions/openat.texi (openat): Document this.
31528
31529         openat: move fstatat and unlinkat into correct files
31530         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
31531         compiled.
31532         * lib/openat.c (fstatat, unlinkat): Move...
31533         * lib/fstatat.c (fstatat): ...into correct files.
31534         * lib/unlinkat.c (unlinkat): Likewise.
31535
31536         openat: fix unlinkat bugs on Solaris 9
31537         * lib/unlinkat.c (unlinkat): New file.
31538         * modules/openat (Depends-on): Add unlink.
31539         (Files): Distribute it.
31540         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
31541         trailing slash behavior is broken.
31542         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31543         * modules/unistd (Makefile.am): Substitute it.
31544         * lib/unistd.in.h (unlinkat): Declare replacement.
31545         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
31546
31547         openat: fix fstatat bugs on Solaris 9
31548         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
31549         stat.
31550         * doc/posix-functions/fstatat.texi (fstatat): Document this.
31551
31552         test-unlinkat: enhance test, to expose Solaris 9 bug
31553         * tests/test-unlink.c (main): Factor guts...
31554         * tests/test-unlink.h (test_rmdir_func): ...into new file.
31555         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
31556         * tests/test-rmdir.c (main): Adjust caller.
31557         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
31558         (unlinker): New helper function.
31559         (rmdirat): Enhance check.
31560         * modules/rmdir-tests (Depends-on): Add stdbool.
31561         * modules/unlink-tests (Depends-on): Likewise.
31562         (Files): Add test-unlink.h.
31563         * modules/openat-tests (Files): Likewise.
31564         (Depends-on): Add unlinkdir.
31565
31566         test-fstatat: new test, to expose Solaris 9 bugs
31567         * tests/test-stat.c (main): Factor guts...
31568         * tests/test-stat.h (test_stat_func): ...into new file.
31569         * tests/test-lstat.c (main): Factor guts...
31570         * tests/test-lstat.h (test_lstat_func): ...into new file.
31571         * tests/test-fstatat.c: New file.
31572         * modules/stat-tests (Files): Add test-stat.h.
31573         * modules/lstat-tests (Files): Add test-lstat.h.
31574         (Depends-on): Add stdbool.
31575         * modules/openat-tests (Depends-on): Add pathmax.
31576         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
31577         (Makefile.am): Run new test.
31578
31579         remove: new module, for mingw and Solaris 9 bugs
31580         * modules/remove: New file.
31581         * lib/remove.c: Likewise.
31582         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
31583         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
31584         * modules/stdio (Makefile.am): Use them.
31585         * lib/stdio.in.h (remove): Declare replacement.
31586         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31587         * doc/posix-functions/remove.texi (remove): Likewise.
31588         * modules/remove-tests: New test.
31589         * tests/test-remove.c: Likewise.
31590
31591         unlink: new module, for Solaris 9 bug
31592         * modules/unlink: New file.
31593         * lib/unlink.c: Likewise.
31594         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
31595         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31596         * modules/unistd (Makefile.am): Use them.
31597         * lib/unistd.in.h (stat): Declare replacement.
31598         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31599         * doc/posix-functions/unlink.texi (unlink): Likewise.
31600         * modules/unlink-tests: New test.
31601         * tests/test-unlink.c: Likewise.
31602
31603         lstat: fix Solaris 9 bug
31604         * lib/lstat.c (lstat): Also check for trailing slash on
31605         non-symlink, non-directories.  Use stat module to simplify logic.
31606         * doc/posix-functions/lstat.texi (lstat): Document it.
31607         * modules/lstat-tests (Depends-on): Add errno, same-inode.
31608         (configure.ac): Check for symlink.
31609         * tests/test-lstat.c (main): Add more tests.
31610
31611         stat: add as dependency to other modules
31612         * modules/chown (Depends-on): Add stat.
31613         * modules/euidaccess (Depends-on): Likewise.
31614         * modules/fchdir (Depends-on): Likewise.
31615         * modules/isdir (Depends-on): Likewise.
31616         * modules/link (Depends-on): Likewise.
31617         * modules/lstat (Depends-on): Likewise.
31618         * modules/mkdir-p (Depends-on): Likewise.
31619         * modules/modechange (Depends-on): Likewise.
31620         * modules/open (Depends-on): Likewise.
31621         * modules/readlink (Depends-on): Likewise.
31622         * modules/same (Depends-on): Likewise.
31623
31624         stat: fix Solaris 9 bug
31625         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
31626         slash.
31627         * lib/stat.c (rpl_stat): Work around it.
31628         * doc/posix-functions/stat.texi (stat): Update documentation.
31629
31630         stat: new module, for mingw bug
31631         * modules/stat: New file.
31632         * lib/stat.c: Likewise.
31633         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
31634         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31635         * modules/sys_stat (Makefile.am): Use them.
31636         * lib/sys_stat.in.h (stat): Declare replacement.
31637         * lib/openat.c (fstatat): Deal with lstat and stat being function
31638         macros.
31639         * modules/openat (Depends-on): Add inline.
31640         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31641         * doc/posix-functions/stat.texi (stat): Likewise.
31642         * modules/stat-tests: New test.
31643         * tests/test-stat.c: Likewise.
31644
31645 2009-09-19  Jim Meyering  <meyering@redhat.com>
31646
31647         syntax-check: detect unnecessary inclusion of canonicalize.h
31648         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
31649
31650 2009-09-19  Eric Blake  <ebb9@byu.net>
31651
31652         canonicalize-lgpl: adjust clients to use correct header
31653         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31654         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
31655         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
31656         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
31657         * lib/progreloc.c (includes): Likewise.
31658
31659 2009-09-19  Jim Meyering  <meyering@redhat.com>
31660
31661         test-posixtm.c: correct a comment
31662         * tests/test-posixtm.c: Correct first-line comment.
31663         Spotted by Eric Blake.
31664
31665 2009-09-16  Jim Meyering  <meyering@redhat.com>
31666
31667         posixtm-tests: make T const-correct; add a test case
31668         * tests/test-posixtm.c (T): Declare const.
31669         Add a test for -(2^31+1).
31670         Remove useless can-succeed-only-in-2002 test.
31671
31672         posixtm-tests: adjust the sole failing test
31673         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
31674         expected output matches what mktime now produces.  Cross-checked via
31675         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
31676
31677         posixtm: move #ifdef'd tests into a new module
31678         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
31679         * tests/test-posixtm.c: ... this new file.
31680         * modules/posixtm-tests: New module.
31681
31682 2009-09-19  Eric Blake  <ebb9@byu.net>
31683
31684         openat: simplify use of at-func.c
31685         * lib/at-func.c (includes): Include prerequisites here, to
31686         simplify requirements on client files.
31687         * lib/openat-priv.h: Add double-inclusion guard.
31688         * lib/faccessat.c (includes): Simplify.
31689         * lib/fchmodat.c (includes): Likewise.
31690         * lib/fchownat.c (includes): Likewise.
31691         * lib/mkdirat.c (includes): Likewise.
31692         * lib/mkfifoat.c (includes): Likewise.
31693         * lib/symlinkat.c (includes): Likewise.
31694
31695         openat: allow return of fd 0
31696         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
31697         * modules/save-cwd (Depends-on): Replace fcntl-safer with
31698         unistd-safer.
31699         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
31700         <fcntl.h>; this module does not leak fds.
31701         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
31702         must be allowed to return 0, leaving openat_safer to add the
31703         safety.
31704         (openat_permissive): Avoid writing to just-opened fd 2 if
31705         restoring the current directory fails.
31706         * lib/openat-die.c (openat_restore_fail): Add comment.
31707         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
31708         (save_cwd): Guarantee safe fd, but without use of open_safer.
31709         * tests/test-openat.c: New test.
31710         * modules/openat-tests (Files, Makefile.am): Distribute and build
31711         new file.
31712
31713         relocatable-prog-wrapper: fix build
31714         * modules/relocatable-prog-wrapper (Files): Update name of
31715         canonicalize m4 file, broken on 2009-09-17.
31716         Reported by emad hajjar <aleppos@hotmail.com>.
31717
31718 2009-09-19  Bruno Haible  <bruno@clisp.org>
31719
31720         * lib/safe-alloc.h: Use the standard header with GPL copyright.
31721         * lib/safe-alloc.c: Likewise.
31722         Reported by Ian Beckwith <ianb@erislabs.net>.
31723
31724 2009-09-18  Bruno Haible  <bruno@clisp.org>
31725
31726         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
31727         Reported by <erobles@sensacd.com.mx>.
31728
31729 2009-09-17  Eric Blake  <ebb9@byu.net>
31730
31731         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
31732         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
31733         slashes when checking if last component is missing.
31734         * tests/test-canonicalize.c (main): Test this.
31735
31736         canonicalize, canonicalize-lgpl: honor // if distinct from /
31737         * modules/canonicalize (Files): Add double-slash-root.m4.
31738         * modules/canonicalize-lgpl (Files): Likewise.
31739         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31740         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
31741         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
31742         fallback definition.
31743         (canonicalize_filename_mode): Use it to protect //.
31744         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
31745         (__realpath): Likewise.
31746         * tests/test-canonicalize.c (main): Test this.
31747         * tests/test-canonicalize-lgpl.c (main): Likewise.
31748         * modules/canonicalize-tests (Depends-on): Add same-inode.
31749         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31750
31751         canonicalize-lgpl: fix glibc bug with trailing slash
31752         * m4/canonicalize-lgpl.m4: Move contents...
31753         * m4/canonicalize.m4: ...here.
31754         (gl_CANONICALIZE_LGPL): Factor realpath check...
31755         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
31756         glibc 2.3.5 bug, fixed 2005-04-27.
31757         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
31758         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
31759         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
31760         * modules/canonicalize-lgpl (Files): Manage file rename.
31761         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31762         * modules/stdlib (Makefile.am): Substitute witness.
31763         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
31764         is needed.
31765         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
31766         replacement is required.
31767         * lib/canonicalize.c (canonicalize_file_name): Likewise.
31768         * doc/glibc-functions/canonicalize_file_name.texi
31769         (canonicalize_file_name): Document this.
31770         * doc/posix-functions/realpath.texi (realpath): Likewise.
31771
31772         canonicalize-lgpl: reject non-directory with trailing slash
31773         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
31774         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
31775         catches failures in glibc 2.3.5.
31776         * tests/test-canonicalize.c (main): Likewise.
31777
31778         canonicalize-lgpl: use native realpath if it works
31779         * lib/canonicalize-lgpl.c (realpath): Guard with
31780         FUNC_REALPATH_WORKS.
31781         * lib/stdlib.in.h (realpath): Make declaration optional based on
31782         HAVE_REALPATH.
31783         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
31784         native realpath works.
31785         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31786         * modules/stdlib (Makefile.am): Substitute witness.
31787
31788         canonicalize, canonicalize-lgpl: use <stdlib.h>
31789         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
31790         (Include): Mention <stdlib.h>.
31791         (configure.ac): Mention functions we provide.
31792         * modules/canonicalize (configure.ac): Likewise.
31793         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
31794         realpath if canonicalize_file_name is missing.
31795         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
31796         * modules/stdlib (Makefile.am): Substitute witnesses.
31797         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
31798         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
31799         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
31800         * NEWS: Document this.
31801         * doc/glibc-functions/canonicalize_file_name.texi
31802         (canonicalize_file_name): Likewise.
31803         * doc/posix-functions/realpath.texi (realpath): Likewise.
31804         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
31805
31806         test-canonicalize: consolidate into single C program
31807         * tests/test-canonicalize.sh: Delete; move setup into...
31808         * tests/test-canonicalize.c (main): ...the program, making it
31809         easier to run in debugger.  Add some tests.
31810         * modules/canonicalize-tests (Files): Remove unused file.
31811         (Depends-on): Add progname.
31812         (configure.ac, Makefile.am): Simplify.
31813
31814         test-canonicalize-lgpl: consolidate into single C program
31815         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
31816         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
31817         easier to run in debugger.  Add some tests.
31818         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
31819         (configure.ac, Makefile.am): Simplify.
31820
31821         canonicalize: avoid resolvepath
31822         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
31823         unnecessary checks.
31824         * lib/canonicalize.c (includes): Simplify.
31825         (canonicalize_file_name): Drop resolvepath implementation.
31826         * modules/canonicalize (Depends-on): Drop filenamecat.
31827
31828         canonicalize: don't lose errno
31829         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
31830         over calls to free.
31831
31832         canonicalize: simplify errno handling
31833         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
31834         assignment.
31835
31836         canonicalize, canonicalize-lgpl: update module dependencies
31837         * modules/canonicalize (Depends-on): Add extensions, lstat,
31838         pathmax, stdlib.
31839         (Files): Drop pathmax.h.
31840         (configure.ac): Adjust macro name.
31841         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
31842         lstat, stdlib, sys_stat.
31843         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
31844         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
31845         extensions.
31846         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
31847         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
31848         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
31849         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
31850         declaration, if available.
31851         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
31852         we can rely on the readlink module.
31853         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
31854         (includes): Use <unistd.h> unconditionally.
31855
31856 2009-09-17  Eric Blake  <ebb9@byu.net>
31857
31858         maint: make Include sections of modules consistent
31859         * modules/alloca: Use only header name; no need to list #include.
31860         * modules/alloca-opt: Likewise.
31861         * modules/arpa_inet: Likewise.
31862         * modules/canon-host: Likewise.
31863         * modules/configmake: Likewise.
31864         * modules/dirent: Likewise.
31865         * modules/eealloc: Likewise.
31866         * modules/environ: Likewise.
31867         * modules/fchdir: Likewise.
31868         * modules/fcntl: Likewise.
31869         * modules/fcntl-h: Likewise.
31870         * modules/gethrxtime: Likewise.
31871         * modules/gettime: Likewise.
31872         * modules/ignore-value: Likewise.
31873         * modules/inet_ntop: Likewise.
31874         * modules/inet_pton: Likewise.
31875         * modules/inttypes: Likewise.
31876         * modules/isnand-nolibm: Likewise.
31877         * modules/isnanf-nolibm: Likewise.
31878         * modules/mbchar: Likewise.
31879         * modules/mbfile: Likewise.
31880         * modules/mbiter: Likewise.
31881         * modules/mbuiter: Likewise.
31882         * modules/netdb: Likewise.
31883         * modules/netinet_in: Likewise.
31884         * modules/nproc: Likewise.
31885         * modules/pagealign_alloc: Likewise.
31886         * modules/poll: Likewise.
31887         * modules/printf-frexp: Likewise.
31888         * modules/pthread: Likewise.
31889         * modules/putenv: Likewise.
31890         * modules/random_r: Likewise.
31891         * modules/relocatable-prog: Likewise.
31892         * modules/search: Likewise.
31893         * modules/select: Likewise.
31894         * modules/selinux-h: Likewise.
31895         * modules/settime: Likewise.
31896         * modules/signal: Likewise.
31897         * modules/size_max: Likewise.
31898         * modules/socklen: Likewise.
31899         * modules/ssize_t: Likewise.
31900         * modules/stdarg: Likewise.
31901         * modules/stdbool: Likewise.
31902         * modules/stddef: Likewise.
31903         * modules/stdint: Likewise.
31904         * modules/stdio: Likewise.
31905         * modules/stdlib: Likewise.
31906         * modules/string: Likewise.
31907         * modules/strings: Likewise.
31908         * modules/sys_file: Likewise.
31909         * modules/sys_ioctl: Likewise.
31910         * modules/sys_select: Likewise.
31911         * modules/sys_socket: Likewise.
31912         * modules/sys_stat: Likewise.
31913         * modules/sys_time: Likewise.
31914         * modules/sys_times: Likewise.
31915         * modules/sys_utsname: Likewise.
31916         * modules/sys_wait: Likewise.
31917         * modules/sysexits: Likewise.
31918         * modules/time: Likewise.
31919         * modules/times: Likewise.
31920         * modules/tmpfile: Likewise.
31921         * modules/trim: Likewise.
31922         * modules/unistd: Likewise.
31923         * modules/wchar: Likewise.
31924         * modules/wctype: Likewise.
31925
31926 2009-09-17  Bruno Haible  <bruno@clisp.org>
31927
31928         Make getdate.y compile on QNX and NetBSD 5 / i386.
31929         * m4/getdate.m4 (gl_GETDATE): Conditionally define
31930         TIME_T_FITS_IN_LONG_INT.
31931         * lib/getdate.y (long_time_t): New type.
31932         (relative_time): Change type of 'seconds' field to long_time_t.
31933         (get_date): Update types of local variables. Check against overflow
31934         during conversion from long_time_t to time_t.
31935         Reported by Matt Kraai <kraai@ftbfs.org>
31936         and Hasso Tepper <hasso@netbsd.org>.
31937
31938 2009-09-17  Bruno Haible  <bruno@clisp.org>
31939
31940         * modules/COPYING: Update copyright years.
31941         * modules/README: Likeiwse.
31942         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
31943         Reported by Ian Beckwith <ianb@erislabs.net>.
31944
31945 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
31946
31947         * users.txt: Update references for gnuit package.
31948
31949 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
31950
31951         * m4/getdelim.m4: Fix typo in copyright line.
31952
31953 2009-09-17  Bruno Haible  <bruno@clisp.org>
31954
31955         * lib/atoll.c: Use the standard header with GPL copyright.
31956         * lib/argz.in.h: Likewise.
31957         * lib/glob.c: Likewise.
31958         * lib/glob-libc.h: Likewise.
31959         * lib/random_r.c: Likewise.
31960         * lib/siglist.h: Likewise.
31961         * lib/strsignal.c: Likewise.
31962         Reported by Ian Beckwith <ianb@erislabs.net>.
31963
31964 2009-09-17  Eric Blake  <ebb9@byu.net>
31965
31966         rmdir: ensure correct dependency order
31967         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
31968
31969 2009-09-17  Bruno Haible  <bruno@clisp.org>
31970
31971         Disable assertion that fails on NetBSD 5 / i386.
31972         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
31973         Reported by Sam Steingold <sds@gnu.org>
31974         and Hasso Tepper <hasso@netbsd.org>.
31975
31976 2009-09-16  Eric Blake  <ebb9@byu.net>
31977
31978         unlinkdir: port to mingw
31979         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
31980         on which no one can unlink a directory.
31981
31982         stdlib: sort witness names
31983         * modules/stdlib (Makefile.am): Sort replacements.
31984         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
31985         * lib/stdlib.in.h: Likewise.
31986
31987         parse-duration-tests: avoid link failure
31988         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
31989         LIBINTL.
31990         Reported by Tom G. Christensen.
31991
31992         openat-tests: ensure unlinkat behaves like rmdir
31993         * tests/test-rmdir.c (main): Factor guts...
31994         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
31995         * modules/rmdir-tests (Files): Ship new file.
31996         * modules/openat-tests: New test.
31997         * tests/test-unlinkat.c: Likewise.
31998
31999         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
32000         * modules/rmdir-errno (Status, Notice): Now obsolete.
32001
32002         rmdir: work around cygwin 1.5.x and mingw bugs
32003         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
32004         * lib/rmdir.c (rmdir): Work around it.
32005         * modules/rmdir (Status, Notice): No longer obsolete.
32006         (Files): Add dos.m4.
32007         (Depends-on): Add unistd.
32008         (configure.ac): Set witnesses.
32009         (License): Relax to LGPLv2+.
32010         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
32011         * modules/unistd (Makefile.am): Substitute witnesses.
32012         * lib/unistd.in.h (rmdir): Declare replacement.
32013         * doc/posix-functions/rmdir.texi (rmdir): Document this.
32014         * modules/rmdir-tests: New tests.
32015         * tests/test-rmdir.c: Likewise.
32016
32017 2009-09-15  Eric Blake  <ebb9@byu.net>
32018
32019         fchdir: improve use of replacement functions
32020         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
32021         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
32022         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
32023         REPLACE_CLOSEDIR.
32024         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
32025         * modules/sys_stat (Makefile.am): Substitute correct witness.
32026         * modules/dirent (Makefile.am): Likewise.
32027         * modules/unistd (Makefile.am): Likewise.
32028         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
32029         * lib/unistd.in.h (dup): Likewise.
32030         * lib/sys_stat.in.h (fstat): Likewise.
32031
32032         maint: ignore gnulib-tool temp files
32033         * .gitignore: Ignore files created during gnulib-tool --test.
32034
32035 2009-09-13  Jim Meyering  <meyering@redhat.com>
32036
32037         posixtm: don't reject a time that specify "60" as the number of seconds
32038         * lib/posixtm.c (posixtime): The code to reject invalid dates
32039         would also reject a time specified with the .60 suffix.
32040         But POSIX allows that, in order to accommodate leap seconds.
32041         So don't reject it.
32042         (main): Adjust tests accordingly.
32043         * modules/posixtm (Depends-on): Add stpcpy.
32044
32045 2009-09-11  Jim Meyering  <meyering@redhat.com>
32046
32047         announce-gen: include [$release_type] in emitted Subject:
32048         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
32049         e.g., [stable] in the emitted Subject: line.
32050
32051 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32052
32053         Remove obsolete macros from several modules.
32054         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
32055         obsolete Autoconf macros with their modern counterparts.
32056         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
32057         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
32058         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
32059         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
32060         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
32061         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32062         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
32063         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
32064         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
32065         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
32066         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
32067         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
32068         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
32069         * m4/sockets.m4 (gl_SOCKETS): Likewise.
32070         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
32071         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
32072         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
32073         * m4/time_r.m4 (gl_TIME_R): Likewise.
32074         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
32075         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
32076         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
32077
32078         Fix copyright header in build-aux scripts.
32079         * build-aux/git-version-gen: Fix copyright header to match GPLv3
32080         recommendation.
32081         * build-aux/ncftpput-ftp: Likewise.
32082         * build-aux/update-copyright: Likewise.
32083
32084 2009-09-09  Eric Blake  <ebb9@byu.net>
32085
32086         test-link: allow Linux choice of errno
32087         * tests/test-link.c (main): Relax test for alternate error.
32088
32089         strndup: fix improper m4 caching
32090         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
32091         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
32092         (gl_PREREQ_STRNDUP): Delete.
32093         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
32094         * modules/string (Makefile.am): Substitute it.
32095         * lib/string.in.h (strndup): Modernize prototype.
32096
32097         getcwd: port to mingw
32098         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
32099         different from the POSIX assumptions made throughout the getcwd
32100         module; fortunately, the mingw getcwd does not need replacement.
32101         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
32102         * modules/getcwd-tests: New test.
32103         * tests/test-getcwd.c: Likewise.
32104
32105         link: fix platform bugs
32106         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
32107         * lib/link.c (link): Work around them.  Fix related mingw bug.
32108         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
32109         * modules/unistd (Makefile.am): Substitute it.
32110         * lib/unistd.in.h (link): Declare replacement.
32111         * doc/posix-functions/link.texi (link): Document this.
32112         * modules/link (Depends-on): Add strdup-posix, sys_stat.
32113
32114         test-link: consolidate into single C program, test more cases
32115         * tests/test-link.sh: Delete.
32116         * tests/test-link.c: Test more error conditions.  Exposes bugs on
32117         at least Cygwin and Solaris.
32118         * modules/link-tests (Files): Remove unused file.
32119         (Depends-on): Add errno, sys_stat.
32120         (Makefile.am): Simplify.
32121
32122 2009-09-08  Bruno Haible  <bruno@clisp.org>
32123
32124         Work around towlower, towupper bug on mingw.
32125         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
32126         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
32127         * doc/posix-functions/towlower.texi: Mention the mingw bug.
32128         * doc/posix-functions/towupper.texi: Likewise.
32129         Reported by Eric Blake.
32130
32131 2009-09-08  Jim Meyering  <meyering@redhat.com>
32132
32133         build: don't try to run autoheader if we don't use it
32134         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
32135         is not used in configure.ac.
32136
32137 2009-09-08  Eric Blake  <ebb9@byu.net>
32138
32139         euidaccess: fix compilation error
32140         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
32141
32142         rawmemchr: relax license
32143         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
32144         okay.
32145         Reported by Jim Meyering.
32146
32147         mkfifoat: new module
32148         * modules/mkfifoat: New file.
32149         * lib/mkfifoat.c: Likewise.
32150         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
32151         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32152         * modules/sys_stat (Makefile.am): Use them.
32153         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
32154         * MODULES.html.sh (File system functions): Mention module.
32155         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
32156         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
32157         * modules/mkfifoat-tests: New test.
32158         * tests/test-mkfifoat.c: Likewise.
32159
32160         strchrnul: relax license
32161         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
32162         okay.
32163         Reported by Jim Meyering.
32164
32165 2009-09-08  Eric Blake  <ebb9@byu.net>
32166
32167         fstatat: fix compilation on Solaris
32168         * lib/fstatat.c (includes): Add fcntl.h.
32169         Reported by Pádraig Brady.
32170
32171 2009-09-07  Eric Blake  <ebb9@byu.net>
32172
32173         rename: modernize replacement
32174         * modules/rename (Depends-on): Add stdio.
32175         (configure.ac): Declare witness.
32176         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
32177         stdio take care of replacement.
32178         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
32179         * modules/stdio (Makefile.am): Substitute them.
32180         * lib/stdio.in.h (rename): Declare replacement.
32181         * lib/rename.c (includes): Allow cross-compilation to non-windows
32182         machines.
32183         * doc/posix-functions/rename.texi (rename): Improve
32184         documentation.
32185
32186         stdio: sort witness names
32187         * modules/stdio (Makefile.am): Sort replacements.
32188         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32189         * lib/stdio.in.h: Likewise.
32190
32191         getcwd: minor cleanups
32192         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
32193         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
32194
32195         openat: provide more convenience names
32196         * modules/faccessat (configure.ac): Add C witness.
32197         * lib/unistd.in.h (readlinkat): Fix typo.
32198         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
32199         convenience wrappers.
32200         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
32201         wrappers in syntax checks.
32202
32203 2009-09-06  Eric Blake  <ebb9@byu.net>
32204
32205         doc: fix comments in recent patches
32206         * lib/faccessat.c: Mention correct function.
32207         * lib/fchmodat.c: Likewise.
32208         * lib/fchownat.c: Likewise.
32209         * lib/symlinkat.c: Likewise.
32210         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
32211         constants.
32212
32213         faccessat, symlinkat: continue cleanup of previous patch
32214         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
32215         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
32216         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
32217         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
32218         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
32219         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
32220         set.
32221
32222 2009-09-06  Bruno Haible  <bruno@clisp.org>
32223
32224         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
32225         (fstatat): Declare if GNULIB_FSTATAT is set.
32226         (mkdirat): Declare if GNULIB_MKDIRAT is set.
32227         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
32228         (unlinkat): Declare if GNULIB_UNLINKAT is set.
32229         * modules/fcntl-h (Files): Remove m4/openat.m4.
32230         * modules/sys_stat (Files): Remove m4/openat.m4.
32231         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
32232         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
32233         * modules/unistd (Files): Remove m4/openat.m4.
32234         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
32235         GNULIB_OPENAT.
32236         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
32237         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
32238         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
32239         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
32240         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
32241         gl_OPENAT_DEFAULTS.
32242         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
32243         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
32244         Don't require gl_OPENAT_DEFAULTS.
32245         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
32246         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
32247         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
32248         (gl_OPENAT_DEFAULTS): Remove macro.
32249
32250 2009-09-06  Bruno Haible  <bruno@clisp.org>
32251
32252         * modules/openat (configure.ac): Remove unneeded witness.
32253
32254 2009-09-06  Bruno Haible  <bruno@clisp.org>
32255
32256         Set errno to ENOSYS when a function is entirely unsupported.
32257         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
32258         EOPNOTSUPP.
32259         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
32260         * modules/chown (Depends-on): Remove errno.
32261
32262 2009-09-06  Bruno Haible  <bruno@clisp.org>
32263
32264         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
32265
32266 2009-09-06  Bruno Haible  <bruno@clisp.org>
32267
32268         * lib/sys_stat.in.h: Fix preprocessor command indentation.
32269
32270 2009-09-06  Ben Pfaff  <blp@gnu.org>
32271             Bruno Haible  <bruno@clisp.org>
32272
32273         Work around a glibc bug in strtok_r.
32274         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
32275         Undefine if UNDEFINE_STRTOK_R is set.
32276         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
32277         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32278         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
32279         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
32280         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
32281         UNDEFINE_STRTOK_R.
32282         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
32283
32284 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
32285
32286         exclude: minor fix
32287         * lib/exclude.c: Include wctype.h
32288
32289 2009-09-06  Akim Demaille  <demaille@gostai.com>
32290
32291         bootstrap: improve error message
32292         * build-aux/bootstrap (find_tool): Upon failure, report the list
32293         of candidates.
32294         Honor the initial value of the envvar.
32295
32296 2009-09-05  Eric Blake  <ebb9@byu.net>
32297
32298         symlinkat: new module
32299         * modules/symlinkat: New file.
32300         * lib/symlinkat.c: Likewise.
32301         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
32302         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
32303         * modules/unistd (Makefile.am): Use them.
32304         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
32305         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
32306         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
32307         * MODULES.html.sh (File system functions): Mention module.
32308         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
32309         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32310         * modules/symlinkat-tests: New test.
32311         * tests/test-symlinkat.c: Likewise.
32312
32313         test-openat-safer: add more checks
32314         * tests/test-openat-safer.c (main): Check more code paths.
32315
32316 2009-09-05  Jim Meyering  <meyering@redhat.com>
32317
32318         syntax-check: detect unnecessary inclusion of openat.h
32319         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
32320
32321 2009-09-05  Bruno Haible  <bruno@clisp.org>
32322
32323         Support towlower, towupper.
32324         * doc/posix-functions/towlower.texi: Mention module wctype.
32325         * doc/posix-functions/towupper.texi: Likewise.
32326         * lib/wctype.in.h (towlower, towupper): New functions.
32327         * tests/test-wctype.c: Include stdio.h, stdlib.h.
32328         (ASSERT): New macro.
32329         (e): New variable.
32330         (main): Test also towlower, towupper. Test WEOF argument.
32331         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32332
32333 2009-09-05  Bruno Haible  <bruno@clisp.org>
32334
32335         Fix conversion behaviour when the input is invalid.
32336         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
32337         mark occurring in first pass of indirect conversion.
32338         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
32339         input.
32340         Found by clang's static analyzer.
32341
32342 2009-09-05  Bruno Haible  <bruno@clisp.org>
32343
32344         * tests/test-striconveh.c (main): Test indirect conversion on platforms
32345         where direct conversion is possible.
32346
32347 2009-09-04  Eric Blake  <ebb9@byu.net>
32348
32349         openat: fail with ENOENT on empty name
32350         * lib/openat-proc.c (openat_proc_name): Special-case the empty
32351         buffer.
32352
32353         link-follow: fix logic bug in prior patch
32354         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
32355         reversed sense of yes and no in prior patch.  Avoid confusing
32356         compilation failure with desired semantics.
32357
32358         link-follow: accomodate mingw and cross-compilation
32359         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
32360         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
32361         cross-compilation results to -1, to make linkat easier to
32362         implement when cross-compiling.  Trivially support mingw.
32363         * modules/link-follow (configure.ac): Call new name.
32364         * NEWS: Mention this.
32365
32366 2009-09-03  Eric Blake  <ebb9@byu.net>
32367
32368         faccessat: compile replacement
32369         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
32370         needed.
32371
32372         fts: fix compilation error
32373         * lib/fts.c (includes): Re-add "openat.h", for
32374         openat_needs_fchdir.
32375
32376         faccessat: new module
32377         * modules/faccessat: New file.
32378         * lib/faccessat.c: Likewise.
32379         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
32380         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32381         * modules/unistd (Makefile.am): Use it.
32382         * lib/unistd.in.h (faccessat): Declare it.
32383         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
32384         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
32385         * MODULES.html.sh (File system functions): Mention it.
32386         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
32387         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
32388
32389         euidaccess: prefer POSIX over non-standard implementation
32390         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
32391         * lib/euidaccess.c (euidaccess): Use it if available.
32392
32393         openat: make template easier to use
32394         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
32395         AT_FUNC_F2 to be undefined.
32396         (VALIDATE_FLAG): New macro; use it to reject bad flags.
32397         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
32398         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
32399         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
32400         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
32401         Likewise.
32402         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
32403         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
32404         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
32405         Likewise.
32406
32407         openat: declare in POSIX headers
32408         * NEWS: Mention this.
32409         * modules/openat (configure.ac): Declare witnesses.
32410         (Depends-on): Add fcntl-h, sys_stat, unistd.
32411         (Include): Mention correct headers.
32412         * modules/fcntl-h (Depends-on): Add link-warning.
32413         (Files): Add openat.m4.
32414         (Makefile.am): Substitute witnesses.
32415         * modules/sys_stat (Files, Makefile.am): Likewise.
32416         * modules/unistd (Files, Makefile.am): Likewise.
32417         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
32418         (gl_OPENAT_DEFAULTS): New macro.
32419         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
32420         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
32421         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
32422         (SYS_STAT_H): Remove unused variable.
32423         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
32424         * lib/fcntl--.h (includes): Remove unneeded header.
32425         * lib/openat-safer.c (includes): Likewise.
32426         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
32427         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
32428         appropriate headers.
32429         (__OPENAT_PREFIX): Delete.
32430         * lib/fcntl.in.h (openat): Provide declaration.
32431         (AT_FDCWD): Fix Solaris bug.
32432         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
32433         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
32434         * lib/fchmodat.c (includes):  Adjust to find declaration.
32435         * lib/fchownat.c (includes): Likewise.
32436         * lib/mkdirat.c (includes): Likewise.
32437         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
32438         still visible.
32439
32440 2009-09-02  Eric Blake  <ebb9@byu.net>
32441
32442         errno: use consistently
32443         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
32444         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
32445         * lib/canonicalize.c (ELOOP): Likewise.
32446         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
32447         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
32448         * lib/lchown.c (EOPNOTSUPP): Likewise.
32449         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
32450         * lib/savewd.c (ESTALE): Likewise.
32451         * lib/settime.c (ENOSYS): Likewise.
32452         * lib/utimens.c (ENOSYS): Likewise.
32453         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
32454         * lib/chdir-safer.c (ELOOP): Likewise.
32455         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
32456         * modules/c-stack (Depends-on): Add errno.
32457         * modules/canonicalize (Depends-on): Likewise.
32458         * modules/chdir-safer (Depends-on): Likewise.
32459         * modules/fdopendir (Depends-on): Likewise.
32460         * modules/inet_ntop (Depends-on): Likewise.
32461         * modules/inet_pton (Depends-on): Likewise.
32462         * modules/lchown (Depends-on): Likewise.
32463         * modules/openat (Depends-on): Likewise.
32464         * modules/savewd (Depends-on): Likewise.
32465         * modules/settime (Depends-on): Likewise.
32466         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
32467
32468         fts: avoid leaking fds
32469         * modules/fts (Depends-on): Add cloexec.
32470         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
32471         flag.
32472
32473         fts: make directory fds more robust
32474         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
32475         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
32476
32477         backupfile, chdir-long, fts, savedir: make safer
32478         * lib/backupfile.c (includes): Use "dirent--.h", since
32479         numbered_backup can write to stderr during readdir.
32480         * lib/savedir.c (includes): Likewise.
32481         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
32482         emulation can write to stderr on failure.
32483         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
32484         * lib/getcwd.c: Document why opendir_safer is unused.
32485         * lib/glob.c: Likewise.
32486         * lib/scandir.c: Likewise.
32487         * lib/openat-proc.c: Likewise, for open_safer.
32488         * modules/backupfile (Depends-on): Add dirent-safer.
32489         * modules/savedir (Depends-on): Likewise.
32490         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
32491         * modules/chdir-long (Depends-on): Add openat-safer.
32492
32493         openat-safer: new module
32494         * modules/openat-safer: New file.
32495         * lib/openat-safer.c: Likewise.
32496         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
32497         * lib/fcntl-safer.h (openat_safer): Declare.
32498         * lib/fcntl--.h (openat): Override.
32499         * MODULES.html.sh (File descriptor based I/O): Mention it.
32500         * lib/openat.h: Add double-inclusion guards.
32501         * lib/openat.c (includes): Only include "fcntl-safer.h", not
32502         "fcntl--.h", so we can implement openat.
32503         * modules/openat-safer-tests: New test.
32504         * tests/test-openat-safer.c: New file.
32505
32506         dirent-safer: new module
32507         * modules/dirent-safer: New file.
32508         * lib/dirent--.h: Likewise.
32509         * lib/dirent-safer.h: Likewise.
32510         * lib/opendir-safer.c: Likewise.
32511         * m4/dirent-safer.m4: Likewise.
32512         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
32513         * modules/dirent-safer-tests: New test.
32514         * tests/test-dirent-safer.c: New file.
32515         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
32516
32517         fdopendir: optimize on mingw
32518         * lib/unistd.in.h (_gl_directory_name): New prototype.
32519         * lib/fchdir.c (_gl_directory_name): Implement it.
32520         (fchdir): Use it to simplify implementation.
32521         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
32522         fchdir, when available, to avoid calling [f]chdir().
32523
32524         fdopendir: split into its own module
32525         * lib/openat.c (fdopendir): Move...
32526         * lib/fdopendir.c: ...into new file.
32527         * modules/fdopendir: New module.
32528         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
32529         * modules/openat (Depends-on): Add fdopendir.
32530         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
32531         fdopendir here.
32532         * modules/savedir (Depends-on): Only need fdopendir, not full
32533         openat.
32534         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
32535         * lib/openat.h (fdopendir): Drop prototype.
32536         * lib/dirent.in.h (fdopendir): Provide prototype.
32537         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
32538         * modules/dirent (Makefile.am): Substitute them.
32539         * MODULES.html.sh (File system functions): Mention it.
32540         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
32541         * modules/fdopendir-tests: New file.
32542         * tests/test-fdopendir.c: Likewise.
32543
32544         fchdir: use more consistent macro convention
32545         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
32546         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
32547         REPLACE_FCHDIR, rather than relying on config.h macros.
32548         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
32549         inside a single make-time REPLACE_FCHDIR block, rather than using
32550         the config.h FCHDIR_REPLACEMENT.
32551         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
32552         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
32553         Manage fstat replacement.
32554         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
32555         REPLACE_FCHDIR.
32556         * modules/sys_stat (Files): Add m4/unistd_h.m4.
32557         (Makefile.am): Substitute REPLACE_FCHDIR.
32558         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
32559         FCHDIR_REPLACEMENT.
32560         * lib/dup-safer.c (dup_safer): Likewise.
32561         * lib/dup2.c (rpl_dup2): Likewise.
32562         * lib/dup3.c (rpl_dup3): Likewise.
32563         * lib/open.c (rpl_open): Likewise.
32564
32565         fchdir: simplify error handling, and support dup3
32566         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
32567         stdbool, malloc-posix, realloc-posix.
32568         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
32569         (ensure_dirs_slot): Return false on allocation failure.
32570         (rpl_dup2): Delete.
32571         (_gl_register_dup): New function.
32572         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
32573         (_gl_register_fd): Close fd on allocation failure.
32574         * lib/fcntl.in.h (_gl_register_fd): Update signature.
32575         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
32576         prototype.
32577         (rpl_dup2_fchdir): Delete prototype.
32578         * lib/open.c (open): Update caller.
32579         * lib/dup2.c (dup2): Track fchdir metadata.
32580         * lib/dup3.c (dup3): Likewise.
32581         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
32582         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
32583
32584 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32585
32586         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
32587         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
32588         don't pass arguments to AC_OUTPUT.
32589
32590 2009-09-02  Bruno Haible  <bruno@clisp.org>
32591
32592         * modules/mkdtemp (License): Relicense under LGPLv2+.
32593         Reported by Paolo Bonzini.
32594
32595 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32596
32597         Replace uses of obsolete autoconf macros in Jim's modules.
32598         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
32599         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
32600         can evoke a warning from autoconf when run with -Wobsolete
32601         enabled.  They were declared obsolete for good reasons (see
32602         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
32603         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
32604         should not continue using the deprecated macros.
32605         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
32606         obsolete Autoconf macros with modern counterparts.
32607         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
32608         * m4/dos.m4 (gl_AC_DOS): Likewise.
32609         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
32610         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
32611         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
32612         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
32613         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
32614         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
32615         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
32616         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
32617         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
32618         Likewise.
32619         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
32620         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
32621         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
32622         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
32623         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
32624         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
32625
32626 2009-09-01  Eric Blake  <ebb9@byu.net>
32627
32628         fchdir: fix off-by-one bug in previous patch
32629         * lib/fchdir.c (rpl_fstat): Use correct bounds.
32630         (_gl_unregister_fd): Delete useless if.
32631
32632 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
32633
32634         maint.mk: sort the list of syntax-check rules
32635         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
32636         easier to get a sense of progress when the rules are run sequentially
32637         and take a long time.
32638
32639 2009-09-01  Simon Josefsson  <simon@josefsson.org>
32640
32641         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
32642         * modules/netinet_in: Likewise.
32643         * modules/sys_file: Likewise.
32644         * modules/sys_ioctl: Likewise.
32645         * modules/sys_select: Likewise.
32646         * modules/sys_socket: Likewise.
32647         * modules/sys_stat: Likewise.
32648         * modules/sys_time: Likewise.
32649         * modules/sys_times: Likewise.
32650         * modules/sys_utsname: Likewise.
32651         * modules/sys_wait: Likewise.
32652
32653 2009-09-01  Jim Meyering  <meyering@redhat.com>
32654
32655         fts: help ensure that return values are not ignored
32656         * lib/fts_.h (__GNUC_PREREQ): Define.
32657         (__attribute_warn_unused_result__): Define.
32658         (fts_children, fts_close, fts_open, fts_read): Declare with
32659         __attribute_warn_unused_result__.
32660
32661         fts: fts_close now fails also when closing a dir file descriptor fails
32662         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
32663         and propagate to caller, along with errno.
32664
32665         announce-gen: correct formatting in --help output
32666         * build-aux/announce-gen (usage): Move the one-line description in
32667         --help output "up", to where it belongs, just after Usage:.
32668
32669 2009-08-31  Eric Blake  <ebb9@byu.net>
32670
32671         fchdir: port to mingw
32672         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
32673         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
32674         opened, then use a substitute.
32675         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
32676         replacement.
32677         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
32678         (_gl_register_fd): No need to check stat if open already filters
32679         all directories.
32680         (fchdir): Fix error condition to match POSIX.
32681         * modules/fchdir (Depends-on): Add sys_stat.
32682         * doc/posix-functions/open.texi (open): Document the limitation.
32683         * modules/fchdir-tests: New file.
32684         * tests/test-fchdir.c: Likewise.
32685
32686         canonicalize: allow cross-testing from cygwin to mingw
32687         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
32688         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
32689         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
32690         Likewise.
32691         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
32692         target does not support symlinks.
32693         * tests/test-canonicalize-lgpl.sh: Likewise.
32694
32695         chown: avoid compilation warning on mingw
32696         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
32697         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
32698         mingw.
32699         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
32700         * modules/chown (Depends-on): Add errno.
32701
32702 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
32703
32704         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
32705         command.
32706
32707 2009-08-31  Jim Meyering  <meyering@redhat.com>
32708
32709         canonicalize: remove useless initialization
32710         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
32711         initialization of local, "end".
32712
32713 2009-08-30  Bruno Haible  <bruno@clisp.org>
32714
32715         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
32716         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
32717         ENOSYS.
32718
32719 2009-08-30  Bruno Haible  <bruno@clisp.org>
32720
32721         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
32722         /usr/xpg4/bin/tr when it exists.
32723         * tests/test-pipe-filter-gi1.sh: Likewise.
32724
32725 2009-08-30  Bruno Haible  <bruno@clisp.org>
32726
32727         Work around deficient /usr/bin/id program on Solaris.
32728         * tests/test-file-has-acl.sh (ID): New variable.
32729         * tests/test-set-mode-acl.sh (ID): Likewise.
32730         * tests/test-copy-acl.sh (ID): Likewise.
32731         * tests/test-copy-file.sh (ID): Likewise.
32732
32733 2009-08-30  Bruno Haible  <bruno@clisp.org>
32734
32735         New module 'xstriconveh'.
32736         * lib/xstriconveh.h: New file.
32737         * lib/xstriconveh.c: New file.
32738         * modules/xstriconveh: New file.
32739
32740 2009-08-30  Bruno Haible  <bruno@clisp.org>
32741
32742         Make it easier to use mem_cd_iconveh.
32743         * lib/striconveh.h (iconveh_t): New type.
32744         (iconveh_open, iconveh_close): New declarations.
32745         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32746         with a single 'const iconveh_t *' argument.
32747         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
32748         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32749         with a single 'const iconveh_t *' argument.
32750         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
32751         * tests/test-striconveh.c (main): Update.
32752         * NEWS: Mention the change.
32753
32754 2009-08-30  Bruno Haible  <bruno@clisp.org>
32755
32756         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
32757         problem.
32758
32759 2009-08-30  Bruno Haible  <bruno@clisp.org>
32760
32761         Work around iconv_open problem on Solaris.
32762         * lib/iconv_open-solaris.gperf: New file.
32763         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
32764         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
32765         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
32766         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
32767         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
32768         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
32769
32770 2009-08-29  Jim Meyering  <meyering@redhat.com>
32771
32772         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
32773         * top/maint.mk (cvs-check): Remove target; it was just an alias
32774         to the better-named vc-diff-check.
32775         (maintainer-distcheck): Remove rule.  It was used only from
32776         the (alpha/beta/major) target, and all of its commands but one
32777         were coreutils-specific.
32778         (vc-dist): Remove rule.
32779         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
32780         Run vc-diff-check, not vc-dist.
32781         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
32782
32783 2009-08-27  Bruno Haible  <bruno@clisp.org>
32784
32785         * tests/test-bitrotate.c (main): Remove test that uses a shift count
32786         of 0.
32787
32788 2009-08-27  Bruno Haible  <bruno@clisp.org>
32789
32790         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
32791         compilers.
32792         * doc/func.texi: Document the SunPRO C bug.
32793
32794 2009-08-27  Bruno Haible  <bruno@clisp.org>
32795
32796         Fix link error on Solaris.
32797         * tests/test-parse-duration.c (xstrdup): Remove function.
32798
32799 2009-08-26  Pádraig Brady  <P@draigbrady.com>
32800
32801         ignore-value: handle pointer types, too
32802         * lib/ignore-value.h (__attribute__): Remove definition.
32803         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
32804         of a more concise and more-often effective "(void) i" statement.
32805         (ignore_ptr): New function to suppress warnings from functions that
32806         return pointers, and to make it explicit that one function doesn't
32807         handle all cases.
32808
32809 2009-08-25  Bruno Haible  <bruno@clisp.org>
32810
32811         dup2: work around a Linux bug.
32812         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
32813         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
32814         * doc/posix-functions/dup2.texi: Mention the Linux bug.
32815         Reported by Simon Josefsson.
32816
32817 2009-08-25  Jim Meyering  <meyering@redhat.com>
32818
32819         libguestfs uses gnulib
32820         * users.txt: Add libguestfs.
32821
32822 2009-08-24  Eric Blake  <ebb9@byu.net>
32823
32824         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
32825         * lib/pipe2.c (includes): Add binary-io.h.
32826         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
32827
32828 2009-08-24  Bruno Haible  <bruno@clisp.org>
32829
32830         Tolerate declared but missing accept4 syscall.
32831         * lib/accept4.c (accept4): Invoke original accept4 function first, if
32832         available.
32833         * lib/sys_socket.in.h (accept4): If the function is already present,
32834         override it.
32835         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
32836         * modules/accept4 (Makefile.am): Compile accept4.c always.
32837         Reported by Paolo Bonzini and Eric Blake.
32838
32839 2009-08-23  Bruno Haible  <bruno@clisp.org>
32840
32841         New module 'accept4'.
32842         * lib/sys_socket.in.h (accept4): New declaration.
32843         * lib/accept4.c: New file.
32844         * m4/accept4.m4: New file.
32845         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
32846         GNULIB_ACCEPT4, HAVE_ACCEPT4.
32847         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
32848         HAVE_ACCEPT4.
32849         * modules/accept4: New file.
32850         * doc/glibc-functions/accept4.texi: Mention the new module.
32851
32852 2009-08-24  Jim Meyering  <meyering@redhat.com>
32853
32854         progname: also set global program_invocation_name, when possible
32855         Before this change, a libtool-enabled program that calls glibc's
32856         error function would report the program name as
32857         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
32858         * modules/progname (configure.ac): Check for a declaration of
32859         program_invocation_name.
32860         * lib/progname.c:  Include <errno.h>.
32861         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
32862         Set program_invocation_name.
32863
32864 2009-08-23  Bruno Haible  <bruno@clisp.org>
32865
32866         * lib/dup3.c: Include <string.h>.
32867
32868 2009-08-23  Bruno Haible  <bruno@clisp.org>
32869
32870         * lib/dup3.c (dup3): Test only once whether the system actually exists.
32871         * lib/pipe2.c (pipe2): Likewise.
32872         Suggested by Eric Blake.
32873
32874 2009-08-23  Bruno Haible  <bruno@clisp.org>
32875
32876         Tolerate declared but missing dup3 syscall.
32877         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
32878         * lib/unistd.in.h (dup3): If the function is already present,
32879         override it.
32880         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
32881         * modules/dup3 (Makefile.am): Compile dup3.c always.
32882         Reported by Paolo Bonzini.
32883
32884 2009-08-23  Bruno Haible  <bruno@clisp.org>
32885
32886         Tolerate declared but missing pipe2 syscall.
32887         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
32888         available.
32889         * lib/unistd.in.h (pipe2): If the function is already present,
32890         override it.
32891         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
32892         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
32893         Reported by Paolo Bonzini.
32894
32895 2009-08-23  Bruno Haible  <bruno@clisp.org>
32896
32897         * lib/pipe2.c (pipe2): Move #ifs inside function.
32898
32899 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32900
32901         quotearg: document limitations of quote_these_too
32902         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
32903         those limitations are created.
32904         * lib/quotearg.h (set_char_quoting): Document that digits and
32905         letters that are special after backslash are not permitted.
32906         (quotearg_char): Cross-reference set_char_quoting documentation.
32907
32908 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
32909
32910         quotearg: implement custom_quoting_style
32911         * lib/quotearg.c: (struct quoting_options): Add left_quote and
32912         right_quote fields.
32913         (set_custom_quoting): New public function.
32914         (quotearg_buffer_restyled): Add left_quote and right_quote
32915         arguments, handle them very much like locale quoting, and update
32916         all uses.
32917         (quotearg_n_custom): New public function.
32918         (quotearg_n_custom_mem): New public function.
32919         (quotearg_custom): New public function.
32920         (quotearg_custom_mem): New public function.
32921         * lib/quotearg.h: Prototype and document new public functions.
32922         (enum quoting_style): For escape_quoting_style and
32923         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
32924         ignored even though they're otherwise like c_quoting_style.
32925         Add custom_quoting_style member and document with comparison to
32926         clocale_quoting_style.
32927         * tests/test-quotearg.c (custom_quotes): New array.
32928         (custom_results): New array.
32929         (main): Extend to test custom quoting.
32930
32931 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32932
32933         quotearg: fix right quote escaping when it's in quote_these_too
32934         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
32935         quote, be sure to prepend only one backslash.
32936         * tests/test-quotearg.c (use_quote_double_quotes): New function.
32937         (main): Test it.
32938
32939 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32940
32941         quotearg-tests: test escaping of embedded locale quotes
32942         * tests/test-quotearg.c (struct result_strings): Add member for
32943         new input.
32944         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
32945         (inputs): Add new input.
32946         (results_g): Add expected results.
32947         (flag_results): Likewise.
32948         (locale_results): Likewise.
32949         (compare_strings): Check those.
32950
32951 2009-08-23  Bruno Haible  <bruno@clisp.org>
32952
32953         Tests for module 'dup3'.
32954         * modules/dup3-tests: New file.
32955         * tests/test-dup3.c: New file.
32956
32957         New module 'dup3'.
32958         * lib/unistd.in.h (dup3): New declaration.
32959         * lib/dup3.c: New file.
32960         * m4/dup3.m4: New file.
32961         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
32962         HAVE_DUP3.
32963         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
32964         * modules/dup3: New file.
32965         * doc/glibc-functions/dup3.texi: Mention the new module.
32966
32967 2009-08-23  Bruno Haible  <bruno@clisp.org>
32968
32969         Tweak the dup2 test.
32970         * tests/test-dup2.c (main): Create the test file empty. Verify that an
32971         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
32972         the test file is still empty. Fix argument order of lseek.
32973
32974 2009-08-23  Bruno Haible  <bruno@clisp.org>
32975
32976         Avoid test link errors when the modules getopt-gnu, gettext are used.
32977         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
32978         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32979
32980 2009-08-23  Bruno Haible  <bruno@clisp.org>
32981
32982         Fix getdtablesize() on mingw.
32983         * lib/getdtablesize.c (getdtablesize): Implement differently.
32984         * lib/unistd.in.h (getdtablesize): Improve comment.
32985
32986 2009-08-23  Bruno Haible  <bruno@clisp.org>
32987
32988         New module 'mkostemp'.
32989         Based on Ulrich Drepper's 2007-08-10 change in glibc.
32990         * lib/stdlib.in.h (mksotemp): New declaration.
32991         * lib/mkostemp.c: New file, from glibc with modifications.
32992         * lib/tempname.h (GT_FILE): Remove outdated comment.
32993         (gen_tempname): Add flags argument.
32994         * lib/tempname.c (__GT_BIGFILE): Remove macro.
32995         (__GT_FILE): Map to 1.
32996         (small_open, large_open): Remove macros.
32997         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
32998         * lib/mkstemp.c (mkstemp): Update.
32999         * lib/mkdtemp.c (mkdtemp): Likewise.
33000         * m4/mkostemp.m4: New file.
33001         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
33002         HAVE_MKOSTEMP.
33003         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
33004         HAVE_MKOSTEMP.
33005         * modules/mkostemp: New file, based on modules/mkstemp.
33006         * doc/glibc-functions/mkostemp.texi: Mention the new module.
33007         * NEWS: Mention the change.
33008
33009 2009-08-23  Bruno Haible  <bruno@clisp.org>
33010
33011         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
33012         Reported by Eric Blake.
33013
33014 2009-08-23  Bruno Haible  <bruno@clisp.org>
33015
33016         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
33017         Reported by Eric Blake.
33018
33019 2009-08-23  Bruno Haible  <bruno@clisp.org>
33020
33021         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
33022         * modules/pipe2 (Depends-on): Likewise.
33023
33024 2009-08-23  Eric Blake  <ebb9@byu.net>
33025
33026         fcntl-h: add O_TTY_INIT support
33027         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
33028         * tests/test-fcntl-h.c (o): Test it.
33029         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
33030
33031         fcntl-h: rename from fcntl, in preparation for fcntl(2)
33032         * modules/fcntl: Move <fcntl.h> header replacement...
33033         * modules/fcntl-h: ...to new name, so as not to collide with
33034         like-named function.
33035         * tests/test-fcntl.c: Rename...
33036         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
33037         * modules/fcntl-tests: Rename...
33038         * modules/fcntl-h-tests: ...to this.  Update test file name.
33039         * modules/chdir-long (Depends-on): Update clients.
33040         * modules/chdir-safer (Depends-on): Likewise.
33041         * modules/fcntl-safer (Depends-on): Likewise.
33042         * modules/fts (Depends-on): Likewise.
33043         * modules/mkancesdirs (Depends-on): Likewise.
33044         * modules/mkdir-p (Depends-on): Likewise.
33045         * modules/open (Depends-on): Likewise.
33046         * modules/savewd (Depends-on): Likewise.
33047         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
33048         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
33049
33050 2009-08-22  Bruno Haible  <bruno@clisp.org>
33051
33052         * modules/binary-io (License): Relicense under LGPL.
33053         * modules/pipe2 (License): Likewise.
33054
33055 2009-08-22  Bruno Haible  <bruno@clisp.org>
33056
33057         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
33058         return value.
33059         * lib/pipe-filter-gi.c (filter_init): Likewise.
33060         Reported by Eric Blake.
33061
33062 2009-08-22  Bruno Haible  <bruno@clisp.org>
33063
33064         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
33065         * modules/pipe (Depends-on): Add pipe2.
33066
33067 2009-08-22  Bruno Haible  <bruno@clisp.org>
33068
33069         Tests for module 'pipe2'.
33070         * modules/pipe2-tests: New file.
33071         * tests/test-pipe2.c: New file.
33072
33073         New module 'pipe2'.
33074         * lib/unistd.in.h (pipe2): New declaration.
33075         * lib/pipe2.c: New file.
33076         * m4/pipe2.m4: New file.
33077         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
33078         HAVE_PIPE2.
33079         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
33080         * modules/pipe2: New file.
33081         * doc/glibc-functions/pipe2.texi: Mention the new module.
33082
33083 2009-08-22  Bruno Haible  <bruno@clisp.org>
33084
33085         Reference some new glibc functions.
33086         * doc/glibc-functions/accept4.texi: New file.
33087         * doc/glibc-functions/dup3.texi: New file.
33088         * doc/glibc-functions/mkostemp.texi: New file.
33089         * doc/glibc-functions/pipe2.texi: New file.
33090         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
33091         (Glibc sys/socket.h): Refer to accept4.
33092         (Glibc unistd.h): Refer to dup3, pipe2.
33093         Reported by Eric Blake.
33094
33095 2009-08-22  Jim Meyering  <meyering@redhat.com>
33096             Bruno Haible  <bruno@clisp.org>
33097
33098         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
33099         This makes it so packages using automake-1.11's silent-rules option
33100         can print e.g., a single "GEN    configmake.h" line, rather than
33101         the 30+ statements that perform the job.  If you want to see the
33102         actual commands, you can still run "make V=1".
33103         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
33104         so that make output is abbreviated when those variables are defined
33105         appropriately.
33106         * modules/argz: Likewise.
33107         * modules/arpa_inet: Likewise.
33108         * modules/byteswap: Likewise.
33109         * modules/configmake: Likewise.
33110         * modules/dirent: Likewise.
33111         * modules/errno: Likewise.
33112         * modules/fcntl: Likewise.
33113         * modules/float: Likewise.
33114         * modules/fnmatch: Likewise.
33115         * modules/getopt-posix: Likewise.
33116         * modules/glob: Likewise.
33117         * modules/iconv_open: Likewise.
33118         * modules/inttypes: Likewise.
33119         * modules/localcharset: Likewise.
33120         * modules/locale: Likewise.
33121         * modules/math: Likewise.
33122         * modules/netdb: Likewise.
33123         * modules/netinet_in: Likewise.
33124         * modules/poll: Likewise.
33125         * modules/posix_spawnp-tests: Likewise.
33126         * modules/sched: Likewise.
33127         * modules/search: Likewise.
33128         * modules/selinux-h: Likewise.
33129         * modules/signal: Likewise.
33130         * modules/spawn: Likewise.
33131         * modules/stdarg: Likewise.
33132         * modules/stdbool: Likewise.
33133         * modules/stddef: Likewise.
33134         * modules/stdint: Likewise.
33135         * modules/stdio: Likewise.
33136         * modules/stdlib: Likewise.
33137         * modules/string: Likewise.
33138         * modules/strings: Likewise.
33139         * modules/sys_file: Likewise.
33140         * modules/sys_ioctl: Likewise.
33141         * modules/sys_select: Likewise.
33142         * modules/sys_socket: Likewise.
33143         * modules/sys_stat: Likewise.
33144         * modules/sys_time: Likewise.
33145         * modules/sys_times: Likewise.
33146         * modules/sys_utsname: Likewise.
33147         * modules/sys_wait: Likewise.
33148         * modules/sysexits: Likewise.
33149         * modules/time: Likewise.
33150         * modules/unistd: Likewise.
33151         * modules/wchar: Likewise.
33152         * modules/wctype: Likewise.
33153
33154 2009-08-22  Jim Meyering  <meyering@redhat.com>
33155
33156         announce-gen: detect write failure
33157         * build-aux/announce-gen: Add Coda at end.
33158         Remove equivalent-but-more-verbose block at top.
33159
33160 2009-08-19  Akim Demaille  <demaille@gostai.com>
33161
33162         bootstrap: --help to stdout.
33163         * bootstrap (usage): Don't send --help to stderr.
33164         Use a here doc instead of a long string.
33165
33166 2009-08-21  Eric Blake  <ebb9@byu.net>
33167
33168         test-popen-safer: split from test-popen
33169         * tests/test-popen.c (main): Move...
33170         * tests/test-popen.h: ...into new file.
33171         * tests/test-popen-safer2.c: New file.
33172         * modules/popen-tests (Files): Add test-popen.h.
33173         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
33174         Suggested by Bruno Haible.
33175
33176         test-fcntl-safer: split from test-open
33177         * tests/test-open.c (main): Move...
33178         * tests/test-open.h: ...into new file.
33179         * tests/test-fcntl-safer.c: New file.
33180         * modules/open-tests (Files): Add test-open.h.
33181         * modules/fcntl-safer-tests: New file.
33182         Suggested by Bruno Haible.
33183
33184         test-fopen-safer: split from test-fopen
33185         * tests/test-fopen.c (main): Move...
33186         * tests/test-fopen.h: ...into new file.
33187         * tests/test-fopen-safer.c: New file.
33188         * modules/fopen-tests (Files): Add test-fopen.h.
33189         * modules/fopen-safer-tests: New file.
33190         Suggested by Bruno Haible.
33191
33192 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
33193
33194         popen-safer: test O_CLOEXEC at run-time.
33195         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
33196
33197 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
33198
33199         fcntl: move more flags to the header
33200         * lib/cloexec.c: Do not define FD_CLOEXEC here.
33201         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
33202         * lib/fcntl.in.h: Do both things here.
33203
33204 2009-08-21  Jim Meyering  <meyering@redhat.com>
33205
33206         consistently remove $@-t before redirecting to it
33207         * modules/argz: Remove $@-t and $@ before redirecting to the former.
33208         * modules/alloca-opt: Likewise.
33209         * modules/byteswap: Likewise.
33210         * modules/fnmatch: Likewise.
33211         * modules/getopt-posix: Likewise.
33212         * modules/glob: Likewise.
33213         * modules/poll: Likewise.
33214         * modules/posix_spawnp-tests: Likewise.
33215         * modules/sys_socket: Likewise.
33216         * modules/sysexits: Likewise.
33217
33218 2009-08-21  Eric Blake  <ebb9@byu.net>
33219
33220         popen: simplify access to original popen
33221         * lib/popen.c (rpl_popen): No need to worry about popen being a
33222         macro.
33223         Reported by Bruno Haible.
33224
33225 2009-08-20  Eric Blake  <ebb9@byu.net>
33226
33227         build: avoid some compiler warnings
33228         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
33229         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
33230         type.
33231         (new_exclude_segment, excluded_file_pattern_p)
33232         (excluded_file_name_p): Reduce scope.
33233         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
33234         old-style declaration.
33235
33236 2009-08-20  Simon Josefsson  <simon@josefsson.org>
33237
33238         * tests/test-exclude1.sh: Handle Windows EOL.
33239         * tests/test-exclude2.sh: Likewise.
33240         * tests/test-exclude3.sh: Likewise.
33241         * tests/test-exclude4.sh: Likewise.
33242         * tests/test-exclude5.sh: Likewise.
33243         * tests/test-exclude6.sh: Likewise.
33244         * tests/test-exclude7.sh: Likewise.
33245
33246 2009-08-19  Akim Demaille  <demaille@gostai.com>
33247
33248         bootstrap: find sha1sum when named gsha1sum.
33249         * bootstrap (find_tool): New.
33250         ($SHA1SUM): New.
33251         Use it.
33252
33253 2009-08-20  Jim Meyering  <meyering@redhat.com>
33254
33255         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
33256         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
33257         expression that converts "." in a file name to "\." in the resulting
33258         regexp.  Start with a dummy statement, so that prior shell variable
33259         definitions are expanded portably.  Reported by Simon Josefsson.
33260
33261 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
33262
33263         Fix polling for writeability of a screen buffer.
33264         * lib/poll.c: Distinguish input and screen buffers for the
33265         Win32 implementation.
33266         * lib/select.c: Likewise.
33267
33268 2009-08-19  Eric Blake  <ebb9@byu.net>
33269
33270         popen-safer: prevent popen from clobbering std descriptors
33271         * modules/popen-safer: New file.
33272         * lib/popen-safer.c: Likewise.
33273         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
33274         * lib/stdio--.h (popen): Provide override.
33275         * lib/stdio-safer.h (popen_safer): Provide declaration.
33276         * tests/test-popen.c (includes): Partially test this.
33277         * modules/popen-safer-tests: New file, for more tests.
33278         * tests/test-popen-safer.c: Likewise.
33279         * MODULES.html.sh (file stream based Input/Output): Mention it.
33280
33281         tests: test some of the *-safer modules
33282         * modules/fopen-safer (Depends-on): Add fopen.
33283         * modules/fcntl-safer (Depends-on): Add fcntl.
33284         * modules/stdlib-safer (Depends-on): Add stdlib.
33285         (configure.ac): Set indicator.
33286         * modules/unistd-safer (configure.ac): Likewise.
33287         * modules/tmpfile-safer (configure.ac): Likewise.
33288         (Depends-on): Add tmpfile.
33289         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
33290         active.
33291         * tests/test-fopen.c (includes): Test safer versions when they are
33292         in use.
33293         * tests/test-open.c (includes): Likewise.
33294
33295         popen: fix cygwin 1.5 bug when stdin closed
33296         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
33297         * modules/popen: New file.
33298         * modules/popen-tests: Likewise.
33299         * tests/test-popen.c: Likewise.
33300         * m4/popen.m4: Likewise.
33301         * lib/popen.c: Likewise.
33302         * lib/stdio.in.h (popen): New declaration.
33303         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
33304         * modules/stdio (Makefile.am): Likewise.
33305         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
33306
33307 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
33308
33309         maint.mk: give full control over update-copyright exclusions
33310         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
33311         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
33312         (update-copyright): Don't force inclusion of top-level
33313         ChangeLog.  Don't force exclusion of all COPYING files, but make
33314         them the default exclusion instead.
33315
33316 2009-08-16  Bruno Haible  <bruno@clisp.org>
33317
33318         Fix test failures on Solaris 10.
33319         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
33320         tests when Solaris iconv() is used.
33321         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
33322         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
33323         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
33324         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
33325         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
33326
33327 2009-08-16  Bruno Haible  <bruno@clisp.org>
33328
33329         Fix test failures on Solaris 10.
33330         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
33331         'tr' program and pass it as first argument.
33332         * tests/test-pipe-filter-gi1.sh: Likewise.
33333         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
33334         program as first argument.
33335         * tests/test-pipe-filter-gi1.c (main): Likewise.
33336
33337 2009-08-16  Eric Blake  <ebb9@byu.net>
33338
33339         fpurge: fix previous commits
33340         * modules/fpurge (Makefile.am): Make replacement conditional,
33341         partially reverting 2007-04-29 change; missed in previous
33342         attempt.
33343         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
33344         is missing.
33345
33346 2009-08-16  Bruno Haible  <bruno@clisp.org>
33347
33348         Clarify fpurge's effect on the file position.
33349         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
33350         * tests/test-fpurge.c (main): Make a second pass for checking the file
33351         position.
33352
33353 2009-08-16  Bruno Haible  <bruno@clisp.org>
33354
33355         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
33356         declaration of fpurge is missing.
33357         * tests/test-fpurge.c (main): Check that the file has not more contents
33358         than expected. Close the file before removing it.
33359
33360 2009-08-15  Eric Blake  <ebb9@byu.net>
33361
33362         fpurge: don't wrap working cygwin implementation
33363         * lib/fpurge.c (fpurge): Fix comment typo.
33364         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
33365         1.7 to avoid replacement.
33366         * tests/test-fpurge.c (main): Enhance test.
33367
33368 2009-08-15  Eric Blake  <ebb9@byu.net>
33369         and Jim Meyering  <meyering@redhat.com>
33370
33371         test-update-copyright: skip if perl is insufficient
33372         * tests/test-update-copyright.sh: Failure to run maintainer tool
33373         should not cause testsuite failure on cygwin 1.5.
33374
33375 2009-08-14  Eric Blake  <ebb9@byu.net>
33376
33377         doc: mention more functions added in cygwin 1.7.0
33378         * doc/posix-headers/limits.texi (limits.h): Update for recent
33379         cygwin additions.
33380         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
33381         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
33382         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
33383         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
33384         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
33385
33386 2009-08-14  Eric Blake  <ebb9@byu.net>
33387
33388         maint.mk: simplify update-copyright rule
33389         * top/maint.mk (update-copyright-local): Delete, and document how
33390         to do it in cfg.mk instead.
33391         (update-copyright-exclude-regexp): Delete, and document how to do
33392         it in .x-update-copyright instead.
33393         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
33394         exclude ChangeLog.
33395
33396 2009-08-14  Bruno Haible  <bruno@clisp.org>
33397
33398         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
33399
33400 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33401
33402         maint.mk: support update-copyright-env
33403         * top/maint.mk (update-copyright-env): Define place-holder.
33404         (update-copyright): Expand $(update-copyright-env) before
33405         invoking update-copyright.
33406
33407 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33408
33409         update-copyright: implement forced reformatting
33410         * build-aux/update-copyright: Implement and document
33411         UPDATE_COPYRIGHT_FORCE.
33412         * tests/test-update-copyright.sh: Test it.
33413
33414 2009-08-14  Eric Blake  <ebb9@byu.net>
33415         and Bruno Haible  <bruno@clisp.org>
33416
33417         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
33418         * tests/test-locale.c: Revert previous patch related to NULL.
33419         * tests/test-stdio.c: Likewise.
33420         * tests/test-stdlib.c: Likewise.
33421         * tests/test-string.c: Likewise.
33422         * tests/test-unistd.c: Likewise.
33423         * modules/time-tests (Depends-on): Add verify.
33424         * modules/wchar-tests (Depends-on): Likewise.
33425         * tests/test-time.c: Test for NULL compliance.
33426         * tests/test-wchar.c: Likewise.
33427         * modules/locale (Depends-on): Add stddef.
33428         * modules/stdio (Depends-on): Likewise.
33429         * modules/stdlib (Depends-on): Likewise.
33430         * modules/string (Depends-on): Likewise.
33431         * modules/time (Depends-on): Likewise.
33432         * modules/unistd (Depends-on): Likewise.
33433         * modules/wchar (Depends-on): Likewise.
33434         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
33435         * lib/stdlib.in.h (includes): Likewise.
33436         * lib/string.in.h (includes): Likewise.
33437         * lib/time.in.h (includes): Likewise.
33438         * lib/unistd.in.h (includes): Likewise.
33439         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
33440         replaced.
33441         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33442         * m4/stddef_h.m4: New file.
33443         * modules/stddef: Likewise.
33444         * lib/stddef.in.h: Likewise.
33445         * modules/stddef-tests: Likewise.
33446         * tests/test-stddef.c: Likewise.
33447         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
33448         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
33449         * doc/posix-headers/locale.texi (locale.h): Likewise.
33450         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
33451         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
33452         * doc/posix-headers/string.texi (string.h): Likewise.
33453         * doc/posix-headers/time.texi (time.h): Likewise.
33454         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
33455         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
33456
33457 2009-08-14  Eric Blake  <ebb9@byu.net>
33458
33459         doc: improve git diff of texinfo files
33460         * .gitattributes: Add rule for *.texi files, with hint on how to
33461         use it.
33462         Copied from m4, and based on a report by Bruno Haible.
33463
33464 2009-08-14  Bruno Haible  <bruno@clisp.org>
33465
33466         Disable multithread support by default on Cygwin 1.5.x for real.
33467         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
33468
33469 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33470
33471         update-copyright: much ado about intervals
33472         * build-aux/update-copyright: Implement and document
33473         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
33474         of copyright year intervals.
33475         Also, document UPDATE_COPYRIGHT_YEAR.
33476         * tests/test-update-copyright.sh: Test it.
33477
33478         update-copyright: convert 2-digit to 4-digit years
33479         * build-aux/update-copyright: Implement and document.
33480         * tests/test-update-copyright.sh: Update.
33481
33482 2009-08-14  Jim Meyering  <meyering@redhat.com>
33483
33484         test-exclude: avoid coreutils "make check" failure
33485         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
33486         just as in test-argmatch.c.
33487
33488 2009-08-13  Eric Blake  <ebb9@byu.net>
33489
33490         test-dup2: fix bad assumption
33491         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
33492         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
33493
33494         test-version-etc: fix CRLF portability issue
33495         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
33496         recognize \r.
33497         * tests/test-argp-version-etc-1.sh: Likewise.
33498
33499         getopt: update client modules
33500         * modules/argp (Depends-on): Use getopt-gnu.
33501         * modules/git-merge-changelog (Depends-on): Likewise.
33502         * modules/long-options (Depends-on): Likewise.
33503         * modules/xstrtol (Depends-on): Likewise.
33504
33505 2009-08-13  Simon Josefsson  <simon@josefsson.org>
33506
33507         * tests/test-version-etc.sh: Don't fail on different
33508         project/version.  Don't fail on CRLF differences.  Rewrite to use
33509         multiple -e instead of multiple sed forks, suggested by Eric Blake
33510         <ebb9@byu.net>.
33511         * tests/test-argp-version-etc-1.sh: Likewise.
33512
33513 2009-08-13  Simon Josefsson  <simon@josefsson.org>
33514
33515         * tests/test-version-etc.sh: Don't fail on different
33516         project/version.
33517
33518 2009-08-12  Bruno Haible  <bruno@clisp.org>
33519
33520         Tests for modules 'getopt-posix', 'getopt-gnu'.
33521         * modules/getopt-posix-tests: New file.
33522         * tests/test-getopt.c: New file.
33523         * tests/test-getopt.h: New file.
33524         * tests/test-getopt_long.h: New file.
33525
33526         New modules 'getopt-posix', 'getopt-gnu'.
33527         * modules/getopt-gnu: New file, renamed from modules/getopt.
33528         * modules/getopt-posix: New file.
33529         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
33530         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
33531         (gl_GETOPT): Remove macro.
33532         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
33533         Disable the test against BSD systems that declare optreset. Test
33534         against mingw bug. Test against lack of support of optional arguments
33535         on many platforms.
33536         * doc/glibc-headers/getopt.texi: Update module name and list of
33537         relevant platforms.
33538         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
33539         'getopt-gnu' and more portability problems.
33540         * NEWS: Mention the changes.
33541
33542 2009-08-12  Bruno Haible  <bruno@clisp.org>
33543
33544         Ensure that optarg etc. get declared by <unistd.h>.
33545         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
33546         AC_USE_SYSTEM_EXTENSIONS.
33547         * modules/getopt (Depends-on): Add 'extensions'.
33548
33549 2009-08-12  Bruno Haible  <bruno@clisp.org>
33550
33551         Avoid test link errors.
33552         * modules/pipe-filter-ii-tests (Makefile.am): Define
33553         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
33554         * modules/pipe-filter-gi-tests (Makefile.am): Define
33555         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
33556         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33557
33558 2009-08-12  Bruno Haible  <bruno@clisp.org>
33559
33560         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
33561         gl_GETOPT_SUBSTITUTE before.
33562         (gl_GETOPT): Use it.
33563         * m4/argp.m4 (gl_ARGP): Update.
33564         Reported by Sergey Poznyakoff.
33565
33566         * m4/getopt.m4: Reorder macros.
33567         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
33568         (gl_GETOPT_SUBSTITUTE): Remove macro.
33569
33570 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33571
33572         Minor improvement in gitlog-to-changelog
33573
33574         * build-aux/gitlog-to-changelog: New option `--format' makes
33575         output format string configurable.
33576
33577 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33578
33579         Optimize exclude: use hash tables for non-wildcard patterns.
33580
33581         * lib/exclude.c: Include hash.h and mbuiter.h
33582         (struct exclude_pattern, exclude_segment): New data types.
33583         (struct exclude): Rewrite.
33584         (fnmatch_pattern_has_wildcards): New function.
33585         (new_exclude_segment, free_exclude_segment): New functions.
33586         (excluded_file_pattern_p, excluded_file_name_p): New functions.
33587         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
33588         * lib/exclude.h (is_fnmatch_pattern): New prototype.
33589         * modules/exclude: Depend on hash and mbuiter.
33590
33591         * modules/exclude-tests: New file.
33592         * tests/test-exclude.c: New file.
33593         * tests/test-exclude1.sh: New file.
33594         * tests/test-exclude2.sh: New file.
33595         * tests/test-exclude3.sh: New file.
33596         * tests/test-exclude4.sh: New file.
33597         * tests/test-exclude5.sh: New file.
33598         * tests/test-exclude6.sh: New file.
33599         * tests/test-exclude7.sh: New file.
33600
33601 2009-08-12  Bruno Haible  <bruno@clisp.org>
33602
33603         Ensure that getopt() gets declared by <unistd.h>.
33604         * lib/unistd.in.h: Conditionally include getopt.h.
33605         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
33606         Set GNULIB_UNISTD_H_GETOPT.
33607         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33608         GNULIB_UNISTD_H_GETOPT.
33609         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
33610
33611 2009-08-12  Bruno Haible  <bruno@clisp.org>
33612
33613         Clarify logic.
33614         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
33615         gl_replace_getopt instead of GETOPT_H.
33616
33617 2009-08-12  Bruno Haible  <bruno@clisp.org>
33618
33619         * m4/getopt.m4: Add comments.
33620
33621 2009-08-12  Bruno Haible  <bruno@clisp.org>
33622
33623         Disable multithread support by default on Cygwin 1.5.x.
33624         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
33625         set gl_use_threads=no if not specified otherwise.
33626
33627 2009-08-11  Bruno Haible  <bruno@clisp.org>
33628
33629         Avoid compilation error on NetBSD 5.0.
33630         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
33631         * tests/test-stdio.c: Likewise.
33632         * tests/test-stdlib.c: Likewise.
33633         * tests/test-string.c: Likewise.
33634         * tests/test-unistd.c: Likewise.
33635         Reported by Greg Troxel <gdt@ir.bbn.com>
33636         at <https://savannah.gnu.org/support/?106973>.
33637
33638 2009-08-11  Bruno Haible  <bruno@clisp.org>
33639
33640         * modules/dup2-tests (Depends-on): Remove close.
33641
33642         Undo 2009-07-19 commit.
33643         * modules/acl-tests (Depends-on): Remove close.
33644         * modules/binary-io-tests (Depends-on): Likewise.
33645         * modules/closein-tests (Depends-on): Likewise.
33646         * modules/flock-tests (Depends-on): Likewise.
33647         * modules/fsync-tests (Depends-on): Likewise.
33648         * modules/lseek-tests (Depends-on): Likewise.
33649         * modules/pipe-tests (Depends-on): Likewise.
33650         * modules/posix_spawn-tests (Depends-on): Likewise.
33651         * modules/posix_spawnp-tests (Depends-on): Likewise.
33652         * modules/stat-time-tests (Depends-on): Likewise.
33653         * modules/yesno-tests (Depends-on): Likewise.
33654
33655 2009-08-10  Bruno Haible  <bruno@clisp.org>
33656
33657         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
33658
33659 2009-08-10  Bruno Haible  <bruno@clisp.org>
33660
33661         Fix a gcc warning.
33662         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
33663
33664 2009-08-10  Bruno Haible  <bruno@clisp.org>
33665
33666         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
33667         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
33668         not only the first time.
33669         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
33670         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
33671         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
33672         is 1, not only the the first time.
33673
33674 2009-08-10  Bruno Haible  <bruno@clisp.org>
33675
33676         Make it possible to use module 'gethostname' without module 'close'.
33677         * lib/unistd.in.h (close): Evoke a link error only if
33678         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
33679         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33680         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33681         * modules/unistd (Makefile.am): Substitute
33682         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33683         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
33684         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
33685         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
33686         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33687         * modules/sys_ioctl (Makefile.am): Substitute
33688         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33689         * modules/socket (configure.ac): On native Windows, set
33690         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
33691         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33692         Reported by Sam Steingold <sds@gnu.org>.
33693
33694 2009-08-10  Bruno Haible  <bruno@clisp.org>
33695
33696         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
33697         * modules/ioctl (configure.ac): Likewise.
33698
33699 2009-08-10  Bruno Haible  <bruno@clisp.org>
33700
33701         Avoid collision between gnulib wrapper and libintl wrapper.
33702         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
33703         already defined in intl/printf.c.
33704         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
33705         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
33706
33707 2009-08-09  Bruno Haible  <bruno@clisp.org>
33708
33709         Make <sys/select.h> really self-contained, also on Solaris 10.
33710         * lib/sys_select.in.h: Include <string.h>.
33711         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
33712         Solaris 10 problem.
33713         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
33714         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
33715         Reported by Jim Meyering.
33716
33717 2009-08-09  Bruno Haible  <bruno@clisp.org>
33718
33719         Avoid warnings from 'aclocal' that are due to a use of macro name
33720         AM_XGETTEXT_OPTION that is not defined in automake.
33721         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
33722         automake.
33723         * modules/error (configure.ac): Likewise.
33724         * modules/propername (configure.ac): Likewise.
33725         * modules/vasprintf (configure.ac): Likewise.
33726         * modules/verror (configure.ac): Likewise.
33727         * modules/xprintf (configure.ac): Likewise.
33728         * modules/xvasprintf (configure.ac): Likewise.
33729
33730 2009-08-08  Bruno Haible  <bruno@clisp.org>
33731
33732         Avoid compilation error in C++ mode.
33733         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
33734         Reported by Sam Steingold <sds@gnu.org>.
33735
33736 2009-08-08  Bruno Haible  <bruno@clisp.org>
33737
33738         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
33739         for the various Unix platforms.
33740         * doc/posix-headers/limits.texi: Update platforms list regarding
33741         HOST_NAME_MAX.
33742         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33743
33744 2009-08-07  Jim Meyering  <meyering@redhat.com>
33745
33746         selinux-at: fix typo in a comment
33747         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
33748         Spotted by Paolo Bonzini.
33749
33750         selinux-at: remove redundant m4 code, add documentation
33751         * modules/selinux-at (configure.ac): Remove redundant code.
33752         LIB_SELINUX is already set via the dependent module, selinux-h.
33753         (Include): Add quotes around selinux-at.h.
33754         * lib/selinux-at.h: Add documentation.
33755         Reported by Bruno Haible in
33756         http://marc.info/?l=gnulib-bug&m=124958988300749
33757
33758 2009-08-07  Bruno Haible  <bruno@clisp.org>
33759
33760         Avoid link error on MacOS X 10.3 and 10.4.
33761         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
33762         on non-ELF systems.
33763         * lib/argp-pv.c (argp_program_version): Likewise.
33764         Reported by Simon Josefsson.
33765
33766 2009-08-07  Simon Josefsson  <simon@josefsson.org>
33767
33768         * tests/test-version-etc.sh: Use $EXEEXT.
33769
33770 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
33771
33772         update-copyright: update documentation to point to maint.mk
33773         * build-aux/update-copyright: Here.
33774
33775 2009-08-06  Jim Meyering  <meyering@redhat.com>
33776
33777         maint.mk: support update-copyright-local
33778         * top/maint.mk (update-copyright-local): Define place-holder.
33779         (update-copyright): Depend on $(update-copyright-local).
33780
33781 2009-08-06  Jim Meyering  <meyering@redhat.com>
33782
33783         selinux-at: new module
33784         Initially written for coreutils, this module will soon be
33785         used by findutils, too.
33786         * MODULES.html.sh [Misc]: Add selinux-at.
33787         * lib/selinux-at.h: New file, from coreutils.
33788         * lib/selinux-at.c: Likewise.
33789         * modules/selinux-at: Likewise.
33790         (License): Change from LGPL to GPL, since it depends
33791         on the GPL'd openat module.
33792
33793         doc: update README
33794         * README: Remove references to cogito.
33795         Remove cvs-repo-updating instructions from 2007.
33796         Don't imply that CVS is better if you have limited disk space.
33797
33798 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33799
33800         update-copyright: support C-style comments
33801         * build-aux/update-copyright: Implement and document.
33802         * tests/test-update-copyright.sh: Test.
33803
33804 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33805
33806         update-copyright: support omitted "(C)"
33807         * build-aux/update-copyright: Implement and document.  Also,
33808         allow variable whitespace before "(C)".
33809         * tests/test-update-copyright.sh: Test.
33810
33811 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33812
33813         update-copyright: don't trip on non-FSF copyright statements
33814         * build-aux/update-copyright: Fix so that the first correctly
33815         formatted FSF copyright statement is recognized no matter what
33816         appears before it.  Update documentation.
33817         * tests/test-update-copyright.sh: Test that.
33818
33819 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33820
33821         update-copyright: clean up code a little
33822         * build-aux/update-copyright: Append "_re" to the name of any
33823         variable holding a regular expression.
33824         Replace "old" and "new" with "stmt" in variable names.
33825         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
33826         handled correctly.
33827         Format code more consistently.
33828
33829 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33830
33831         update-copyright-tests: improve portability
33832         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
33833         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
33834
33835 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
33836
33837         update-copyright: support @copyright{} and &copy;
33838         * build-aux/update-copyright: Implement and document.
33839         * tests/test-update-copyright.sh: Test.
33840
33841 2009-08-04  Jim Meyering  <meyering@redhat.com>
33842
33843         update-copyright-tests: correctly test EOL=\r\n handling
33844         * tests/test-update-copyright.sh: Put \r at the end of some lines
33845         for the dos-eol tests.  Based on a patch by Joel E. Denny.
33846
33847         maint.mk: make update-copyright exclusion list more configurable
33848         * top/maint.mk (update-copyright): Default to excluding COPYING,
33849         but allow an override, in case someone does want to update that file.
33850
33851         maint.mk: don't update copyright date in COPYING
33852         * top/maint.mk (update-copyright): Exclude COPYING.
33853
33854         maint.mk: add a copyright-updating rule
33855         * top/maint.mk (update-copyright): New rule.
33856         Derived from coreutils/Makefile.am.
33857
33858         update-copyright: rename some variables
33859         * build-aux/update-copyright: Rename a few variables for clarity.
33860         Tweak syntax.  List Joel E. Denny as coauthor.
33861
33862 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
33863
33864         update-copyright: fix bug for 2-digit last year and add tests
33865         * build-aux/update-copyright: Fix bug.
33866         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
33867         specified.
33868         * modules/update-copyright-tests: New
33869         * tests/test-update-copyright.sh: New.
33870
33871 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33872
33873         update-copyright: handle leading tabs in line prefix
33874         * build-aux/update-copyright: Count leading tabs as 8 spaces
33875         when computing margin.  This helps with the formatting of
33876         ChangeLogs, for example.
33877         Fix documentation a little.
33878
33879 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33880
33881         update-copyright: support EOL=\r\n
33882         * build-aux/update-copyright: Implement that.
33883
33884 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33885
33886         update-copyright: automatically format copyright statements
33887         * build-aux/update-copyright: Implement that.
33888         Also, be a little more predictable and safer by always failing
33889         when the full copyright format is not perfectly recognized as an
33890         unbroken whole.  Discussed at
33891         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
33892         Rewrite documentation.
33893
33894 2009-08-03  Bruno Haible  <bruno@clisp.org>
33895
33896         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
33897
33898 2009-08-02  Bruno Haible  <bruno@clisp.org>
33899
33900         Tests for module 'uname'.
33901         * modules/uname-tests: New file.
33902         * tests/test-uname.c: New file.
33903
33904         New module 'uname'.
33905         * lib/uname.c: New file.
33906         * m4/uname.m4: New file.
33907         * modules/uname: New file.
33908         * doc/posix-functions/uname.texi: Mention the new module.
33909
33910 2009-08-02  Bruno Haible  <bruno@clisp.org>
33911
33912         Tests for module 'sys_utsname'.
33913         * modules/sys_utsname-tests: New file.
33914         * tests/test-sys_utsname.c: New file.
33915
33916         New module 'sys_utsname'.
33917         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
33918         * m4/sys_utsname_h.m4: New file.
33919         * modules/sys_utsname: New file.
33920         * doc/posix-headers/sys_utsname.texi: Mention the new module.
33921
33922 2009-08-02  Bruno Haible  <bruno@clisp.org>
33923
33924         Implicitly initialize the sockets library.
33925         * lib/gethostname.c: Include sockets.h.
33926         (rpl_gethostname): Invoke gl_sockets_startup.
33927         * lib/socket.c: Include sockets.h.
33928         (rpl_socket): Invoke gl_sockets_startup.
33929         * modules/gethostname (Depends-on): Add sockets.
33930         * modules/socket (Depends-on): Likewise.
33931         * tests/test-poll.c: Don't include sockets.h.
33932         (main): Don't invoke gl_sockets_startup.
33933         * tests/test-select.c: Don't include sockets.h.
33934         (main): Don't invoke gl_sockets_startup.
33935
33936 2009-08-02  Bruno Haible  <bruno@clisp.org>
33937
33938         Allow multiple calls to gl_sockets_startup.
33939         * lib/sockets.c (initialized_sockets_version): New variable.
33940         (gl_sockets_startup): Do nothing if already called for this or a higher
33941         version.
33942         (gl_sockets_cleanup): Reset initialized_sockets_version.
33943
33944 2009-08-03  Simon Josefsson  <simon@josefsson.org>
33945
33946         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
33947         different project/version.
33948
33949 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
33950             Bruno Haible  <bruno@clisp.org>
33951
33952         Tests for module 'pipe-filter-gi'.
33953         * modules/pipe-filter-gi-tests: New file.
33954         * tests/test-pipe-filter-gi1.sh: New file.
33955         * tests/test-pipe-filter-gi1.c: New file.
33956         * tests/test-pipe-filter-gi2.sh: New file.
33957         * tests/test-pipe-filter-gi2-main.c: New file.
33958         * tests/test-pipe-filter-gi2-child.c: New file.
33959
33960         New module 'pipe-filter-gi'.
33961         * lib/pipe-filter-gi.c: New file.
33962         * modules/pipe-filter-gi: New file.
33963
33964 2009-08-02  Bruno Haible  <bruno@clisp.org>
33965             Paolo Bonzini  <bonzini@gnu.org>
33966
33967         Tests for module 'pipe-filter-ii'.
33968         * modules/pipe-filter-ii-tests: New file.
33969         * tests/test-pipe-filter-ii1.sh: New file.
33970         * tests/test-pipe-filter-ii1.c: New file.
33971         * tests/test-pipe-filter-ii2.sh: New file.
33972         * tests/test-pipe-filter-ii2-main.c: New file.
33973         * tests/test-pipe-filter-ii2-child.c: New file.
33974
33975         New module 'pipe-filter-ii'.
33976         * lib/pipe-filter.h: New file.
33977         * lib/pipe-filter-ii.c: New file.
33978         * lib/pipe-filter-aux.h: New file.
33979         * modules/pipe-filter-ii: New file.
33980
33981 2009-08-02  Simon Josefsson  <simon@josefsson.org>
33982
33983         * lib/gc-libgcrypt.c: Change copyright to FSF.
33984         * lib/gc-gnulib.c: Likewise.
33985
33986 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
33987
33988         * lib/gethostname.c: Include limits.h.
33989
33990 2009-08-02  Simon Josefsson  <simon@josefsson.org>
33991             Bruno Haible  <bruno@clisp.org>
33992
33993         Ensure HOST_NAME_MAX as part of the gethostname module.
33994         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
33995         define also HOST_NAME_MAX.
33996         * tests/test-gethostname.c: Include <limits.h>.
33997         (main): Check also HOST_NAME_MAX.
33998         * doc/posix-headers/limits.texi: Document the mingw problem.
33999
34000 2009-08-02  Bruno Haible  <bruno@clisp.org>
34001
34002         * lib/gethostname.c (gethostname): Fix handling of large len argument.
34003         Add comments.
34004
34005 2009-03-31  Simon Josefsson  <simon@josefsson.org>
34006
34007         * lib/gethostname.c: Add Windows wrapper.
34008         * m4/gethostname.m4: Look for gethostname in -lws2_32.
34009         * modules/gethostname: Depend on sys_socket & errno, for also
34010         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
34011         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
34012
34013 2009-07-31  Jim Meyering  <meyering@redhat.com>
34014
34015         getloadavg: fix symbol name in comment
34016         * lib/getloadavg.c: Correct a typo I introduced when adding
34017         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
34018         Matt Kraai spotted the problem.
34019
34020 2009-07-29  Matt Kraai  <mkraai@beckman.com>
34021
34022         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
34023         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
34024         code also if ! defined N_NAME_POINTER.
34025         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
34026         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
34027         but the n_name member is a 12-byte array.
34028
34029 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
34030
34031         update-copyright: generalize comment handling
34032         * build-aux/update-copyright: Handle copyright statements
34033         within more comment styles.
34034         Document usage.
34035         Report any file with an external copyright holder or parse failure.
34036
34037 2009-07-29  Jim Meyering  <meyering@redhat.com>
34038
34039         mktime: correct setting of REPLACE_MKTIME
34040         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
34041
34042         update-copyright: new module
34043         * modules/update-copyright: New file.
34044         * build-aux/update-copyright: New file.
34045         * MODULES.html.sh (maint+release support): Add update-copyright.
34046
34047 2009-07-27  Bruno Haible  <bruno@clisp.org>
34048
34049         Fix compilation error when <ctime> is used and mktime is replaced.
34050         * lib/time.in.h (mktime): New declaration.
34051         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
34052         REPLACE_MKTIME instead of defining mktime in config.h.
34053         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
34054         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
34055         Reported by Ross McFarland <rwmcfa1@neces.com>.
34056
34057 2009-07-27  Bruno Haible  <bruno@clisp.org>
34058
34059         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
34060         Reported by Matt Kraai <mkraai@beckman.com>.
34061
34062 2009-07-25  Jim Meyering  <meyering@redhat.com>
34063
34064         maint.mk: avoid warnings about missing files
34065         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
34066         diagnostic when .prev-version does not exist.
34067         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
34068         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
34069         nonexistent cfg.mk.
34070         Suggestions from Simon Josefsson.
34071
34072 2009-07-25  Bruno Haible  <bruno@clisp.org>
34073
34074         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
34075         defined as macros. Needed on QNX 6.4.1.
34076         Reported by Matt Kraai <mkraai@beckman.com>.
34077
34078 2009-07-23  Jim Meyering  <meyering@redhat.com>
34079
34080         maint.mk: invoke "make dist" with a working value of XZ_OPT
34081         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
34082
34083 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
34084
34085         Make fseeko.c compile on QNX.
34086         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
34087
34088 2009-07-22  Peter Simons  <simons@cryp.to>
34089
34090         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
34091         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
34092         * lib/md4.h: Likewise.
34093         * lib/md5.h: Likewise.
34094         * lib/sha1.h: Likewise.
34095         * lib/sha256.h: Likewise.
34096         * lib/sha512.h: Likewise.
34097
34098         tests-sha1: don't assign literal string to 'char *' variable
34099         * tests/test-sha1.c (main): Declare locals with "const" to match
34100         attributes of the right hand side.
34101
34102 2009-07-21  Eric Blake  <ebb9@byu.net>
34103
34104         dup2: fix more mingw problems
34105         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
34106         fd to itself.
34107         * doc/posix-functions/dup2.texi (dup2): Document the bug.
34108         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
34109         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
34110         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
34111         care of mingw bugs.
34112
34113 2009-07-21  Jim Meyering  <meyering@redhat.com>
34114
34115         vc-list-files: avoid failure when /bin/sh is dash
34116         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
34117         On some Debian based systems, /bin/sh is a symlink to dash, and running
34118         this command would omit the "/" following each 'tests' prefix:
34119           dash -x build-aux/vc-list-files -C . tests
34120         That is because bash and dash work differently:
34121           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
34122           bash ok
34123           dash odd
34124
34125 2009-07-21  Eric Blake  <ebb9@byu.net>
34126
34127         dup2-tests: test previous patch
34128         * modules/dup2-tests: New file.
34129         * tests/test-dup2.c: Likewise.
34130         * tests/test-open.c (main): Avoid unspecified behavior.
34131         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
34132         test.
34133
34134         dup2: work around mingw and cygwin 1.5 bug
34135         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
34136         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34137         * modules/unistd (Makefile.am): Substitute it.
34138         * lib/unistd.in.h (dup2): Declare the replacement.
34139         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
34140         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
34141         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
34142         * modules/execute (Depends-on): Add dup2.
34143         * modules/fseterr (Depends-on): Likewise.
34144         * modules/pipe (Depends-on): Likewise.
34145         * modules/posix_spawn-internal (Depends-on): Likewise.
34146
34147 2009-07-21  Bruno Haible  <bruno@clisp.org>
34148
34149         * modules/.gitattributes: New file.
34150
34151 2009-07-20  Bruno Haible  <bruno@clisp.org>
34152
34153         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
34154         (main): Use it.
34155
34156 2009-07-20  Eric Blake  <ebb9@byu.net>
34157
34158         test-pipe: make a bit more robust.
34159         * tests/test-pipe.c (myerr): Allow error messages regardless of
34160         what we do to stderr.
34161         (test_pipe): Rearrange to avoid deadlock.
34162         (child_main): Try a larger read, to ensure we avoided deadlock.
34163         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
34164         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
34165         if misused.
34166
34167 2009-07-19  Jim Meyering  <meyering@redhat.com>
34168
34169         fts: avoid false-positive cycle-detection
34170         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
34171         for each new command line argument.
34172
34173 2009-07-19  Bruno Haible  <bruno@clisp.org>
34174
34175         Fix build error on mingw with the modules sys_select and unistd.
34176         * modules/acl-tests (Depends-on): Add close.
34177         * modules/binary-io-tests (Depends-on): Likewise.
34178         * modules/closein-tests (Depends-on): Likewise.
34179         * modules/flock-tests (Depends-on): Likewise.
34180         * modules/fsync-tests (Depends-on): Likewise.
34181         * modules/lseek-tests (Depends-on): Likewise.
34182         * modules/pipe-tests (Depends-on): Likewise.
34183         * modules/posix_spawn-tests (Depends-on): Likewise.
34184         * modules/posix_spawnp-tests (Depends-on): Likewise.
34185         * modules/stat-time-tests (Depends-on): Likewise.
34186         * modules/yesno-tests (Depends-on): Likewise.
34187
34188 2009-07-19  Bruno Haible  <bruno@clisp.org>
34189
34190         Unify conditionals.
34191         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
34192         macros, not at the compiler macros.
34193         * lib/pipe.c: Likewise.
34194         * lib/execute.c: Likewise.
34195         * lib/spawni.c: Likewise.
34196
34197 2009-07-19  Bruno Haible  <bruno@clisp.org>
34198
34199         Fix handling of closed stdin/stdout/stderr on mingw.
34200         * lib/w32spawn.h: Include unistd.h.
34201         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
34202         file descriptor with O_NOINHERIT flag.
34203         (fd_safer_noinherit): New function, based on fd-safer.c.
34204         (dup_safer_noinherit): New function, based on dup-safer.c.
34205         (undup_safer_noinherit): New function.
34206         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
34207         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
34208         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
34209         instead of fd_safer.
34210         * tests/test-pipe.c: Include <windows.h>.
34211         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
34212         result.
34213
34214         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
34215         from main.
34216         (test_pipe): Pass an extra argument for disambiguation.
34217         (main): Invoke parent_main or child_main.
34218
34219         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
34220         consistently.
34221
34222 2009-07-18  Eric Blake  <ebb9@byu.net>
34223
34224         test-pipe: fix mingw build
34225         * tests/test-pipe.c (main): Avoid fcntl on mingw.
34226
34227 2009-07-18  Bruno Haible  <bruno@clisp.org>
34228
34229         * modules/pipe-tests (Makefile.am): Fix typo.
34230
34231 2009-07-18  Eric Blake  <ebb9@byu.net>
34232
34233         error: fix mingw build
34234         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
34235         Reported by Bruno Haible.
34236
34237         error: avoid undefined use of stdout
34238         * lib/error.c (error, error_at_line): Check that fd 1 is open
34239         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
34240         is handling faults and the close_stdout module wants to report the
34241         detection of closed stdout as an error.
34242
34243 2009-07-17  Eric Blake  <ebb9@byu.net>
34244
34245         pipe: be robust in face of closed fds
34246         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
34247         should cause child to misbehave.
34248         * modules/pipe-tests: New module.
34249         * tests/test-pipe.c: New file.
34250         * tests/test-pipe.sh: New file.
34251         Reported by Akim Demaille.
34252
34253 2009-07-14  Bruno Haible  <bruno@clisp.org>
34254
34255         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
34256         Reported by anonymous kc.
34257
34258 2009-07-07  Jim Meyering  <meyering@redhat.com>
34259
34260         maint.mk: don't look for translatable strings in *.m4 or *.mk
34261         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
34262         when searching for translatable strings.
34263
34264 2009-07-05  Jim Meyering  <meyering@redhat.com>
34265
34266         remove superfluous parentheses in STREQ definition
34267         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
34268         * lib/getugroups.c (STREQ): Likewise.
34269         * lib/fnmatch.c (STREQ): Likewise.
34270         Spotted by Bruno Haible.
34271
34272 2009-07-04  Jim Meyering  <meyering@redhat.com>
34273
34274         argv-iter: new module
34275         * MODULES.html.sh: Add argv-iter.
34276         * lib/argv-iter.c, lib/argv-iter.h: New files.
34277         * modules/argv-iter: New file.
34278         * modules/argv-iter-tests: New file.
34279         * tests/test-argv-iter.c: Test it.
34280
34281 2009-07-04  Bruno Haible  <bruno@clisp.org>
34282
34283         Fix assertion.
34284         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
34285         contains more exact copies of a given entry than file2, leave the extra
34286         copies unpaired rather than aborting.
34287         Reported by Eric Blake.
34288
34289 2009-07-02  Bruno Haible  <bruno@clisp.org>
34290
34291         Speedup git-merge-changelog for git cherry-pick.
34292         * lib/git-merge-changelog.c (struct entries_mapping): New type.
34293         (entries_mapping_get): New function, extracted from compute_mapping.
34294         (entries_mapping_reverse_get): New function.
34295         (compute_mapping): Add a 'full' argument. Return the result in a
34296         'struct entries_mapping'.
34297         (main): Update. Access the mappings through entries_mapping_get.
34298         Reported by Eric Blake.
34299
34300 2009-07-02  Bruno Haible  <bruno@clisp.org>
34301
34302         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
34303         best_i.
34304
34305 2009-07-02  Bruno Haible  <bruno@clisp.org>
34306
34307         Speed up approximate search for matching ChangeLog entries.
34308         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
34309         argument. Call fstrcmp_bounded instead of fstrcmp.
34310         (compute_mapping, try_split_merged_entry, main): Update callers.
34311
34312 2009-07-02  Bruno Haible  <bruno@clisp.org>
34313
34314         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
34315
34316 2009-06-30  Bruno Haible  <bruno@clisp.org>
34317
34318         Reduce the number of uc_is_cased calls.
34319         * lib/unicase.h (casing_suffix_context_t): Add
34320         'first_char_except_ignorable' field.
34321         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
34322         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
34323         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
34324         Update initializer.
34325         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
34326         case-ignorable characters.
34327         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
34328         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
34329         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
34330         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
34331         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
34332
34333 2009-06-30  Bruno Haible  <bruno@clisp.org>
34334
34335         Tests for module 'unicase/ignorable'.
34336         * modules/unicase/ignorable-tests: New file.
34337         * tests/unicase/test-ignorable.c: New file, generated by
34338         gen-uni-tables.
34339
34340         Tests for module 'unicase/cased'.
34341         * modules/unicase/cased-tests: New file.
34342         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
34343         * tests/unicase/test-predicate-part1.h: New file, derived from
34344         tests/unictype/test-predicate-part1.h.
34345         * tests/unicase/test-predicate-part2.h: New file, same as
34346         tests/unictype/test-predicate-part2.h.
34347
34348         Fix evaluation of "Before C" condition of FINAL_SIGMA.
34349         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
34350         (output_casing_properties): New function.
34351         (main): Call it.
34352         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
34353         * lib/unicase/cased.c: Include unictype/bitmap.h.
34354         (uc_is_cased): Define through a bitmap lookup.
34355         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
34356         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
34357         (uc_is_case_ignorable): Define through a bitmap lookup.
34358         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
34359         lib/unictype/bitmap.h.
34360         (Depends-on): Add inline. Clean up.
34361         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
34362         lib/unictype/bitmap.h.
34363         (Depends-on): Add inline. Clean up.
34364         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
34365         recognition.
34366         * tests/unicase/test-u16-tolower.c (main): Likewise.
34367         * tests/unicase/test-u32-tolower.c (main): Likewise.
34368
34369 2009-06-30  Bruno Haible  <bruno@clisp.org>
34370
34371         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
34372         * lib/unicase/u16-casemap.c: Likewise.
34373         * lib/unicase/u32-casemap.c: Likewise.
34374
34375 2009-06-29  Bruno Haible  <bruno@clisp.org>
34376
34377         Define u32_casefold as a wrapper around u32_ct_casefold.
34378         * lib/unicase/u32-casefold.c: Update.
34379         * modules/unicase/u32-casefold (Depends-on): Add
34380         unicase/u32-ct-casefold, unicase/empty-prefix-context,
34381         unicase/empty-suffix-context. Clean up.
34382
34383         Define u16_casefold as a wrapper around u16_ct_casefold.
34384         * lib/unicase/u16-casefold.c: Update.
34385         * modules/unicase/u16-casefold (Depends-on): Add
34386         unicase/u16-ct-casefold, unicase/empty-prefix-context,
34387         unicase/empty-suffix-context. Clean up.
34388
34389         Define u8_casefold as a wrapper around u8_ct_casefold.
34390         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
34391         * lib/unicase/u8-casefold.c: Update.
34392         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
34393         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34394
34395         Define u32_totitle as a wrapper around u32_ct_totitle.
34396         * lib/unicase/u32-totitle.c: Update.
34397         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
34398         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34399
34400         Define u16_totitle as a wrapper around u16_ct_totitle.
34401         * lib/unicase/u16-totitle.c: Update.
34402         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
34403         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34404
34405         Define u8_totitle as a wrapper around u8_ct_totitle.
34406         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
34407         functions.
34408         (FUNC): Delegate to U_CT_TOTITLE.
34409         * lib/unicase/u8-totitle.c: Update.
34410         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
34411         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34412
34413         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
34414         invocation.
34415         * modules/unicase/u32-tolower (Depends-on): Add
34416         unicase/empty-prefix-context, unicase/empty-suffix-context.
34417
34418         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
34419         invocation.
34420         * modules/unicase/u16-tolower (Depends-on): Add
34421         unicase/empty-prefix-context, unicase/empty-suffix-context.
34422
34423         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
34424         * modules/unicase/u8-tolower (Depends-on): Add
34425         unicase/empty-prefix-context, unicase/empty-suffix-context.
34426
34427         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
34428         invocation.
34429         * modules/unicase/u32-toupper (Depends-on): Add
34430         unicase/empty-prefix-context, unicase/empty-suffix-context.
34431
34432         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
34433         invocation.
34434         * modules/unicase/u16-toupper (Depends-on): Add
34435         unicase/empty-prefix-context, unicase/empty-suffix-context.
34436
34437         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
34438         * modules/unicase/u8-toupper (Depends-on): Add
34439         unicase/empty-prefix-context, unicase/empty-suffix-context.
34440
34441         New module 'unicase/u32-ct-casefold'.
34442         * lib/unicase/u32-ct-casefold.c: New file.
34443         * modules/unicase/u32-ct-casefold: New file.
34444
34445         New module 'unicase/u16-ct-casefold'.
34446         * lib/unicase/u16-ct-casefold.c: New file.
34447         * modules/unicase/u16-ct-casefold: New file.
34448
34449         New module 'unicase/u8-ct-casefold'.
34450         * lib/unicase/u8-ct-casefold.c: New file.
34451         * lib/unicase/u-ct-casefold.h: New file, derived from
34452         lib/unicase/u-casefold.h.
34453         * modules/unicase/u8-ct-casefold: New file.
34454
34455         New module 'unicase/u32-ct-totitle'.
34456         * lib/unicase/u32-ct-totitle.c: New file.
34457         * modules/unicase/u32-ct-totitle: New file.
34458
34459         New module 'unicase/u16-ct-totitle'.
34460         * lib/unicase/u16-ct-totitle.c: New file.
34461         * modules/unicase/u16-ct-totitle: New file.
34462
34463         New module 'unicase/u8-ct-totitle'.
34464         * lib/unicase/u8-ct-totitle.c: New file.
34465         * lib/unicase/u-ct-totitle.h: New file, derived from
34466         lib/unicase/u-totitle.h.
34467         * modules/unicase/u8-ct-totitle: New file.
34468
34469         New module 'unicase/u32-ct-tolower'.
34470         * lib/unicase/u32-ct-tolower.c: New file.
34471         * modules/unicase/u32-ct-tolower: New file.
34472
34473         New module 'unicase/u16-ct-tolower'.
34474         * lib/unicase/u16-ct-tolower.c: New file.
34475         * modules/unicase/u16-ct-tolower: New file.
34476
34477         New module 'unicase/u8-ct-tolower'.
34478         * lib/unicase/u8-ct-tolower.c: New file.
34479         * modules/unicase/u8-ct-tolower: New file.
34480
34481         New module 'unicase/u32-ct-toupper'.
34482         * lib/unicase/u32-ct-toupper.c: New file.
34483         * modules/unicase/u32-ct-toupper: New file.
34484
34485         New module 'unicase/u16-ct-toupper'.
34486         * lib/unicase/u16-ct-toupper.c: New file.
34487         * modules/unicase/u16-ct-toupper: New file.
34488
34489         New module 'unicase/u8-ct-toupper'.
34490         * lib/unicase/u8-ct-toupper.c: New file.
34491         * modules/unicase/u8-ct-toupper: New file.
34492
34493         Add context arguments to u*_casemap functions.
34494         * lib/unicase/unicasemap.h: Include unicase.h.
34495         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
34496         suffix_context arguments.
34497         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
34498         functions.
34499         (FUNC): Add prefix_context and suffix_context arguments. Use
34500         uc_is_cased and uc_is_case_ignorable.
34501         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
34502         * lib/unicase/u16-casemap.c: Likewise.
34503         * lib/unicase/u32-casemap.c: Likewise.
34504         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
34505         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34506         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
34507         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34508         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
34509         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34510
34511         New module 'unicase/u32-suffix-context'.
34512         * lib/unicase/u32-suffix-context.c: New file.
34513         * modules/unicase/u32-suffix-context: New file.
34514
34515         New module 'unicase/u16-suffix-context'.
34516         * lib/unicase/u16-suffix-context.c: New file.
34517         * modules/unicase/u16-suffix-context: New file.
34518
34519         New module 'unicase/u8-suffix-context'.
34520         * lib/unicase/u8-suffix-context.c: New file.
34521         * lib/unicase/u-suffix-context.h: New file.
34522         * modules/unicase/u8-suffix-context: New file.
34523
34524         New module 'unicase/empty-suffix-context'.
34525         * lib/unicase/empty-suffix-context.c: New file.
34526         * modules/unicase/empty-suffix-context: New file.
34527
34528         New module 'unicase/u32-prefix-context'.
34529         * lib/unicase/u32-prefix-context.c: New file.
34530         * modules/unicase/u32-prefix-context: New file.
34531
34532         New module 'unicase/u16-prefix-context'.
34533         * lib/unicase/u16-prefix-context.c: New file.
34534         * modules/unicase/u16-prefix-context: New file.
34535
34536         New module 'unicase/u8-prefix-context'.
34537         * lib/unicase/u8-prefix-context.c: New file.
34538         * lib/unicase/u-prefix-context.h: New file.
34539         * lib/unicase/context.h: New file.
34540         * modules/unicase/u8-prefix-context: New file.
34541
34542         New module 'unicase/empty-prefix-context'.
34543         * lib/unicase/empty-prefix-context.c: New file.
34544         * modules/unicase/empty-prefix-context: New file.
34545
34546         New module 'unicase/ignorable'.
34547         * lib/unicase/ignorable.c: New file.
34548         * modules/unicase/ignorable: New file.
34549
34550         New module 'unicase/cased'.
34551         * lib/unicase/caseprop.h: New file.
34552         * lib/unicase/cased.c: New file.
34553         * modules/unicase/cased: New file.
34554
34555         New functions for case mapping of substrings.
34556         * lib/unicase.h (casing_prefix_context_t): New type.
34557         (unicase_empty_prefix_context): New variable.
34558         (u8_casing_prefix_context, u16_casing_prefix_context,
34559         u32_casing_prefix_context, u8_casing_prefixes_context,
34560         u16_casing_prefixes_context, u32_casing_prefixes_context): New
34561         declarations.
34562         (casing_suffix_context_t): New type.
34563         (unicase_empty_suffix_context): New variable.
34564         (u8_casing_suffix_context, u16_casing_suffix_context,
34565         u32_casing_suffix_context, u8_casing_suffixes_context,
34566         u16_casing_suffixes_context, u32_casing_suffixes_context,
34567         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
34568         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
34569         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
34570         declarations.
34571
34572 2009-06-28  Jim Meyering  <meyering@redhat.com>
34573
34574         boostrap: indent only with spaces
34575         * build-aux/bootstrap: Indent only with spaces, never TABs.
34576
34577         bootstrap: split long lines
34578         * build-aux/bootstrap: Keep line length < 80.
34579
34580         bootstrap: sync from coreutils
34581         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
34582         just as autoreconf does.  Verify a list of prerequisite
34583         package-name,version-number pairs if defined in bootstrap.conf.
34584         Refer to README-prereq, if prerequisites are not satisfied.
34585
34586 2009-06-27  Eric Blake  <ebb9@byu.net>
34587
34588         tests: add test for bogus NULL definition
34589         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
34590         * tests/test-stdlib.c: Likewise.
34591         * tests/test-string.c: Likewise.
34592         * tests/test-locale.c: Likewise.
34593         * tests/test-unistd.c: Likewise.
34594         * modules/stdio-tests (Depends-on): Add verify.
34595         * modules/stdlib-tests (Depends-on): Likewise.
34596         * modules/string-tests (Depends-on): Likewise.
34597         * modules/locale-tests (Depends-on): Likewise.
34598         * modules/unistd-tests (Depends-on): Likewise.
34599
34600 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
34601
34602         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
34603         self-explaining comment.
34604         * m4/selinux-selinux-h: Update serial.
34605         (gl_LIBSELINUX): New macro, adding a warning for missing development
34606         packages to code extracted from...
34607         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
34608         Add warning for missing development packages here, too.
34609
34610 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
34611
34612         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
34613
34614 2009-06-25  Eric Blake  <ebb9@byu.net>
34615
34616         version-etc: fix regression
34617         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
34618         gcc.
34619         (version_etc): Use it, to catch bugs with trailing NULL.
34620         * lib/version-etc.c (version_etc_arn): Delete unused argument.
34621         (version_etc_va): Fix logic bug.
34622         * modules/version-etc-tests: Add test.
34623         * tests/test-version-etc.c: New file.
34624         * tests/test-version-etc.sh: Likewise.
34625
34626 2009-06-25  Sam Steingold  <sds@gnu.org>
34627
34628         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
34629         mbtowc declaration.
34630
34631 2009-06-25  Eric Blake  <ebb9@byu.net>
34632
34633         fpurge: migrate into <stdio.h>
34634         * lib/fpurge.h: Delete...
34635         * lib/stdio.in.h (fpurge): ...and declare here, instead.
34636         * lib/fpurge.c (fpurge): Change declaring header.
34637         * modules/fpurge (Files): Drop deleted file.
34638         (Depends-on): Add stdio.
34639         (configure.ac): Set witness.
34640         * modules/stdio (Makefile.am): Support fpurge macros.
34641         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34642         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
34643         * lib/fflush.c: Update client.
34644         * tests/test-fpurge.c: Likewise.
34645         * NEWS: Mention the change.
34646
34647 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34648
34649         * lib/argp-version-etc.c (program_authors): Add const
34650         qualifier.
34651         * lib/version-etc.c: Fix typos in the comments.
34652         * modules/argp-version-etc: Depends on version-etc.
34653
34654 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34655
34656         argp-version-etc: new module.
34657
34658         * lib/argp-version-etc.c: New file.
34659         * lib/argp-version-etc.h: New file.
34660         * modules/argp-version-etc: New file.
34661         * modules/argp-version-etc-tests: New file.
34662         * tests/test-argp-version-etc.c: New test.
34663         * tests/test-argp-version-etc-1.sh: New test.
34664
34665 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34666
34667         Provide additional interfaces and documentation for version-etc
34668         module.
34669
34670         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
34671         interfaces.
34672         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
34673         prototypes.
34674
34675 2009-06-24  Bruno Haible  <bruno@clisp.org>
34676
34677         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
34678         HAVE_LIB${NAME} macro.
34679         Reported by Sam Steingold <sds@gnu.org>.
34680
34681 2009-06-23  Simon Josefsson  <simon@josefsson.org>
34682
34683         * modules/hash-tests (test_hash_LDADD): Link to libintl when
34684         needed.
34685
34686 2009-06-21  Bruno Haible  <bruno@clisp.org>
34687
34688         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
34689         work.
34690         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
34691         together with LIB${NAME}, LTLIB${NAME}.
34692         Reported by Sam Steingold <sds@gnu.org>.
34693
34694 2009-06-20  Jim Meyering  <meyering@redhat.com>
34695
34696         tests: make sc_require_test_exit_idiom more generic
34697         * top/maint.mk (Exit_witness_file): New overridable variable.
34698         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
34699         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
34700
34701 2009-06-19  Jim Meyering  <meyering@redhat.com>
34702
34703         hash: reverse order of src/dst parameters in an internal interface
34704         * lib/hash.c (transfer_entries): Reverse order of parameters to
34705         put DST before SRC.  Adjust callers.
34706
34707         tests: test-hash: avoid wholesale duplication
34708         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
34709         Instead, use a loop and add a single conditional.
34710
34711         tests: test-hash: allow seed selection via a command line argument
34712         * tests/test-hash.c (get_seed): New function.
34713         (main): Use it.
34714
34715 2009-06-19  Eric Blake  <ebb9@byu.net>
34716
34717         hash: avoid memory leak on allocation failure
34718         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
34719         failure.  Factor repeated algorithm...
34720         (transfer_entries): ...into new helper routine.
34721         (hash_delete): React to hash_rehash return value.
34722
34723         hash: reduce memory pressure in hash_rehash no-op case
34724         * lib/hash.c (next_prime): Avoid overflow.
34725         (hash_initialize): Factor bucket size computation...
34726         (compute_bucket_size): ...into new helper function.
34727         (hash_rehash): Use new function and open coding to reduce memory
34728         pressure, and avoid a memory leak in USE_OBSTACK code.
34729         Reported by Jim Meyering.
34730
34731 2009-06-18  Eric Blake  <ebb9@byu.net>
34732
34733         hash: make rotation more obvious
34734         * modules/hash (Depends-on): Add bitrotate and stdint.
34735         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
34736         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
34737         (SIZE_MAX): Rely on headers for definition.
34738         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
34739         (raw_hasher): Use rotr_sz.
34740         Suggested by Jim Meyering.
34741
34742         hash: fix memory leak in last patch
34743         * lib/hash.c (hash_rehash): Avoid memory leak.
34744
34745         hash: avoid no-op rehashing
34746         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
34747
34748         hash: provide default callback functions
34749         * lib/hash.c (raw_hasher, raw_comparator): New functions.
34750         (hash_initialize): Use them as defaults.
34751         * tests/test-hash.c (main): Test this.
34752
34753         hash: minor optimization
34754         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
34755         when possible.
34756         (hash_initialize): Document this promise.
34757         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
34758         * tests/test-hash.c (hash_compare_strings): Test this.
34759
34760 2009-06-18  Bruno Haible  <bruno@clisp.org>
34761
34762         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
34763         going to be replaced anyway.
34764
34765 2009-06-18  Bruno Haible  <bruno@clisp.org>
34766
34767         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
34768         in one place.
34769         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
34770         be replaced anyway.
34771
34772 2009-06-18  Eric Blake  <ebb9@byu.net>
34773
34774         hash: check for resize before insertion
34775         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
34776         threshold before insertion, so that a pathological hash_rehash
34777         that fills every bucket can still trigger another rehash.
34778
34779 2009-06-18  Jim Meyering  <meyering@redhat.com>
34780
34781         hash-tests: add a loop around the small tests
34782         * tests/test-hash.c (main): Repeat small tests with selected
34783         small initial table sizes.
34784
34785 2009-06-17  Eric Blake  <ebb9@byu.net>
34786
34787         hash: minor cleanups
34788         * lib/hash.h (hash_entry): Make opaque, by moving...
34789         * lib/hash.c (hash_entry): ...here.
34790         (hash_insert): Clarify restrictions on what can be inserted.
34791         (hash_get_next): Clarify when it is safe to remove an element
34792         during traversal.
34793         (check_tuning): Skip verification when tuning is known safe.
34794         (hash_initialize): Clarify restrictions on tuning.
34795
34796 2009-06-17  Jim Meyering  <jim@meyering.net>
34797         and Eric Blake  <ebb9@byu.net>
34798
34799         hash-tests: new module
34800         * modules/hash-tests: New file.
34801         * tests/test-hash.c: New file.
34802
34803 2009-06-17  Eric Blake  <ebb9@byu.net>
34804
34805         strstr-simple: document new module
34806         * MODULES.html.sh: Document new module.
34807
34808         strstr, strcasestr: replace on platforms with broken memchr
34809         * modules/strstr: Split into...
34810         * modules/strstr-simple: ...new module that does not care about
34811         performance, but does care about glibc bug.
34812         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
34813         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
34814         if platform memchr is broken, per Debian bug 521737.
34815         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
34816         memchr.
34817         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
34818         * doc/posix-functions/strstr.texi (strstr): Document the fix.
34819         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
34820         * modules/mountlist (Depends-on): Add strstr-simple.
34821         * modules/gen-uni-tables (Depends-on): Likewise.
34822         * modules/argz (Depends-on): Add strstr.
34823
34824 2009-06-17  Bruno Haible  <bruno@clisp.org>
34825
34826         * modules/posix_spawn-internal (Depends-on): Add errno.
34827
34828 2009-06-17  Bruno Haible  <bruno@clisp.org>
34829
34830         Define missing ESTALE on Interix 3.5.
34831         * lib/errno.in.h (ESTALE): Assign a value if missing.
34832         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
34833         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
34834         missing.
34835         * doc/posix-headers/errno.texi: Mention the Interix bug.
34836         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
34837
34838 2009-06-15  Eric Blake  <ebb9@byu.net>
34839
34840         memchr, memchr2: add valgrind exception
34841         * lib/memchr.valgrind: New file.
34842         * lib/memchr2.valgrind: New file.
34843         * modules/memchr (Files): Distribute valgrind file.
34844         * modules/memchr2 (Files): Likewise.
34845
34846         docs: memchr is no longer obsolete
34847         * MODULES.html.sh: Move memchr from obsolete to string.h section.
34848         * lib/string.in.h (memchr): Simplify logic.
34849
34850 2009-06-14  Jim Meyering  <meyering@redhat.com>
34851
34852         link-follow: fix the "checking..." message to not mention trailing slash
34853         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
34854         never considered trailing slashes.
34855
34856 2009-06-14  Bruno Haible  <bruno@clisp.org>
34857
34858         * m4/memchr.m4: Mention also the bug on IA-64.
34859         * doc/posix-functions/memchr.texi: Likewise.
34860
34861 2009-06-12  Eric Blake  <ebb9@byu.net>
34862
34863         memchr: detect broken x86_64 and alpha implementations
34864         * modules/memchr-tests (Depends-on): Move mmap detection...
34865         * modules/memchr (Depends-on): ...here.
34866         (configure.ac): Set indicator.
34867         * lib/string.in.h (memchr): Declare replacement.
34868         * modules/string (Makefile.am): Trigger replacement.
34869         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
34870         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
34871         bugs.
34872         * doc/posix-functions/memchr.texi (memchr): Document the bug.
34873         * modules/getpagesize (License): Relax license.
34874
34875 2009-06-11  Bruno Haible  <bruno@clisp.org>
34876
34877         * lib/idpriv.h: Add more references.
34878
34879 2009-06-08  Bruno Haible  <bruno@clisp.org>
34880
34881         Tests for module 'idpriv-droptemp'.
34882         * modules/idpriv-droptemp-tests: New file.
34883         * tests/test-idpriv-droptemp.sh: New file.
34884         * tests/test-idpriv-droptemp.su.sh: New file.
34885         * tests/test-idpriv-droptemp.c: New file.
34886
34887         New module 'idpriv-droptemp'.
34888         * lib/idpriv-droptemp.c: New file.
34889         * modules/idpriv-droptemp: New file.
34890
34891 2009-06-08  Bruno Haible  <bruno@clisp.org>
34892
34893         Tests for module 'idpriv-drop'.
34894         * modules/idpriv-drop-tests: New file.
34895         * tests/test-idpriv-drop.sh: New file.
34896         * tests/test-idpriv-drop.su.sh: New file.
34897         * tests/test-idpriv-drop.c: New file.
34898
34899         New module 'idpriv-drop'.
34900         * lib/idpriv.h: New file.
34901         * lib-idpriv-drop.c: New file.
34902         * m4/idpriv.m4: New file.
34903         * modules/idpriv-drop: New file.
34904
34905 2009-06-08  Bruno Haible  <bruno@clisp.org>
34906
34907         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
34908         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34909         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34910         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34911         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34912         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34913         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34914
34915 2009-06-08  Eric Blake  <ebb9@byu.net>
34916
34917         test-strstr: use memory fence, when possible
34918         * tests/test-strstr.c (main): Use memory fence, in order to be
34919         more likely to trigger Debian bug 521737.
34920         * modules/strstr-tests (Files): Pull in additional files.
34921
34922         memchr: no longer obsolete, for wider field testing
34923         * modules/memchr (Status, Notice): Delete, this module is no
34924         longer obsolete.
34925         * modules/vasnprintf (Depends-on): Add memchr.
34926
34927 2009-06-07  Jim Meyering  <meyering@redhat.com>
34928
34929         hash: declare some functions with the warn_unused_result attribute
34930         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
34931
34932 2009-06-07  Bruno Haible  <bruno@clisp.org>
34933
34934         * tests/test-alignof.c: Don't test int64_t if it does not exist.
34935         Reported by Eric Blake.
34936
34937 2009-06-06  Eric Blake  <ebb9@byu.net>
34938
34939         test-alignof: fix typo with long double
34940         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
34941         compiler error.
34942
34943 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
34944
34945         Escape non-texinfo { and }s.
34946         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
34947         markup error.
34948
34949 2009-06-04  Jim Meyering  <meyering@redhat.com>
34950
34951         gitlog-to-changelog: don't infloop on an empty commit log
34952         * build-aux/gitlog-to-changelog: Warn about an empty log message.
34953         Reported by Boris Petersen <transacid@centerim.org>.
34954
34955 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
34956
34957         version-etc: extend for packagers
34958         Add three new configure options, intended for packagers:
34959           --with-packager="packager name"
34960           --with-packager-version="packager-specific version"
34961           --with-packager-bug-reports="packager bug reporting"
34962         An example with coreutils:
34963           $ ./configure \
34964             --with-packager=Gentoo \
34965             --with-packager-bug-report=http://bugs.gentoo.org/ \
34966             --with-packager-version="patchset 1.6"
34967           $ ./src/ls --version | head -n2
34968           ls (GNU coreutils) 7.1-dirty
34969           Packaged by Gentoo (patchset 1.6)
34970         Note that the bug reporting info via --help doesn't show up because
34971         coreutils uses its own custom emit_bug_reporting_address() implementation
34972         in src/system.h.  If it didn't, it'd look like:
34973           $ ./src/ls --help | tail -n4
34974           Report bugs to <bug-coreutils@gnu.org>.
34975           Report Gentoo bugs to <http://bugs.gentoo.org/>.
34976           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
34977           General help using GNU software: <http://www.gnu.org/gethelp/>.
34978         * lib/version-etc.c: Print new information, if provided.
34979         * m4/version-etc.m4: New file.
34980         * modules/version-etc (Files): Add m4/version-etc.m4.
34981         (configure.ac): Add gl_VERSION_ETC.
34982
34983 2009-05-31  Bruno Haible  <bruno@clisp.org>
34984
34985         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
34986         and 'int64_t'.
34987         * modules/alignof-tests (Dependencies): Add stdint.
34988         Reported by Eric Blake.
34989
34990 2009-05-31  Bruno Haible  <bruno@clisp.org>
34991
34992         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
34993         restriction due to compiler bugs.
34994         Reported by Eric Blake.
34995
34996 2009-05-31  Simon Josefsson  <simon@josefsson.org>
34997             Bruno Haible  <bruno@clisp.org>
34998
34999         Fix test-alignof failure.
35000         * lib/alignof.h (alignof_slot): New macro.
35001         (alignof_type): New macro, with the same semantics as the previous
35002         'alignof'.
35003         (alignof): Alias to alignof_slot.
35004         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
35005         check that the results are usable as constant expressions.
35006
35007 2009-05-31  Bruno Haible  <bruno@clisp.org>
35008
35009         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
35010         * tests/test-memchr.c (main): Check that memchr does not read past the
35011         first occurrence of the byte.
35012         * tests/test-strstr.c (main): Update comment.
35013         Suggested by Eric Blake.
35014
35015 2009-05-30  Bruno Haible  <bruno@clisp.org>
35016
35017         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
35018         detail how to use dumpbin.
35019         Reported by David Byron <dbyron@dbyron.com>.
35020
35021 2009-06-02  Simon Josefsson  <simon@josefsson.org>
35022
35023         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
35024
35025 2009-06-02  Simon Josefsson  <simon@josefsson.org>
35026
35027         * m4/manywarnings.m4: Add GCC 4.4 warnings.
35028
35029 2009-05-28  Bruno Haible  <bruno@clisp.org>
35030
35031         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
35032         build-aux/ files.
35033
35034 2009-05-28  Simon Josefsson  <simon@josefsson.org>
35035
35036         * gnulib-tool (func_import): Transform license on build-aux/ files too.
35037
35038 2009-05-27  Simon Josefsson  <simon@josefsson.org>
35039
35040         * gnulib-tool (sed_transform_main_lib_file)
35041         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
35042         regexps.
35043
35044 2009-05-26  Simon Josefsson  <simon@josefsson.org>
35045
35046         * tests/test-strstr.c: Add another self-test.
35047         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
35048         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
35049
35050 2009-05-23  Bruno Haible  <bruno@clisp.org>
35051
35052         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
35053         change.
35054
35055 2009-05-21  Bruno Haible  <bruno@clisp.org>
35056
35057         Simplify use of mode_t varargs.
35058         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
35059         uses 'mode_t' or 'int'.
35060         * lib/openat.c (openat): Likewise.
35061         * lib/open-safer.c (open_safer): Likewise.
35062         * m4/mode_t.m4: New file.
35063         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
35064         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
35065         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
35066         * modules/open (Files): Add m4/mode_t.m4.
35067         * modules/openat (Files): Likewise.
35068         * modules/fcntl-safer (Files): Likewise.
35069         Suggested by Eric Blake.
35070
35071 2009-05-21  Pádraig Brady  <P@draigbrady.com>
35072
35073         * doc/glibc-functions/fallocate.texi: New file.
35074         * doc/gnulib.texi: Include it.
35075
35076 2009-05-21  Eric Blake  <ebb9@byu.net>
35077             Bruno Haible  <bruno@clisp.org>
35078
35079         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
35080         invocations.
35081         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35082
35083 2009-05-21  Eric Blake  <ebb9@byu.net>
35084             Bruno Haible  <bruno@clisp.org>
35085
35086         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
35087         include_next. Fix of 2008-11-20 commit.
35088         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
35089         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
35090         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
35091         NEXT_MATH_H.
35092         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
35093         instead of NEXT_MATH_H.
35094
35095 2009-05-21  Bruno Haible  <bruno@clisp.org>
35096
35097         Avoid redefinition warnings for SIZE_MAX.
35098         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
35099         Reported by Simon Josefsson.
35100
35101 2009-05-21  Bruno Haible  <bruno@clisp.org>
35102
35103         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
35104         AC_CACHE_VAL.
35105
35106 2009-05-20  Bruno Haible  <bruno@clisp.org>
35107
35108         Make zeroptr.h work on mingw.
35109         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
35110         mprotect.
35111         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
35112         * modules/memchr2-tests (configure.ac): Likewise.
35113         * modules/memcmp-tests (configure.ac): Likewise.
35114         * modules/memmem-tests (configure.ac): Likewise.
35115         * modules/memrchr-tests (configure.ac): Likewise.
35116         Reported by Simon Josefsson.
35117
35118 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35119
35120         * tests/test-glob.c: Include string.h for strcmp prototype.
35121
35122 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35123
35124         * modules/getdelim (Depends-on): Add explicit stdint, although it
35125         was implicitly already pulled in via realloc-posix.
35126         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
35127
35128 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35129
35130         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
35131         G. Christensen" <tgc@jupiterrise.com>.
35132         * m4/sys_socket_h.m4: Check for sa_family_t.
35133         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
35134         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
35135         * tests/test-sys_socket.c: Check that sa_family_t works.
35136
35137 2009-05-18  Eric Blake  <ebb9@byu.net>
35138
35139         maint.mk: allow gnulib_dir in VPATH build
35140         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
35141
35142 2009-05-15  Jim Meyering  <meyering@redhat.com>
35143
35144         maint.mk: Give gnulib_dir a default definition.
35145         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
35146         Thus, most packages no longer need to specify this variable in cfg.mk
35147
35148 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
35149
35150         rename.m4: fix typos that would make non-mingw cross-configure fail
35151         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
35152
35153 2009-05-13  Eric Blake  <ebb9@byu.net>
35154
35155         mmap-anon: avoid out-of-order autoconf expansion
35156         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
35157         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
35158         * modules/memchr-tests (Depends-on): Add extensions.
35159         * modules/memchr2-tests (Depends-on): Add extensions.
35160         * modules/memcmp-tests (Depends-on): Add extensions.
35161         * modules/memmem-tests (Depends-on): Add extensions.
35162         * modules/memrchr-tests (Depends-on): Add extensions.
35163
35164 2009-05-13  Bruno Haible  <bruno@clisp.org>
35165
35166         Make some tests ISO C 99 compliant.
35167         * tests/zerosize-ptr.h: New file.
35168         * tests/test-memchr.c: Include zerosize-ptr.h.
35169         (main): Use a zero-size object pointer instead of NULL.
35170         * tests/test-memchr2.c: Include zerosize-ptr.h.
35171         (main): Use a zero-size object pointer instead of NULL.
35172         * tests/test-memcmp.c: Include zerosize-ptr.h.
35173         (main): Use a zero-size object pointer instead of NULL.
35174         * tests/test-memmem.c: Include zerosize-ptr.h.
35175         (main): Use a zero-size object pointer instead of NULL.
35176         * tests/test-memrchr.c: Include zerosize-ptr.h.
35177         (main): Use a zero-size object pointer instead of NULL.
35178         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
35179         m4/mmap-anon.m4.
35180         (Depends-on): Add getpagesize.
35181         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35182         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
35183         m4/mmap-anon.m4.
35184         (Depends-on): Add getpagesize.
35185         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35186         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
35187         m4/mmap-anon.m4.
35188         (Depends-on): Add getpagesize.
35189         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35190         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
35191         m4/mmap-anon.m4.
35192         (Depends-on): Add getpagesize.
35193         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35194         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
35195         m4/mmap-anon.m4.
35196         (Depends-on): Add getpagesize.
35197         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35198
35199 2009-05-12  Bruno Haible  <bruno@clisp.org>
35200
35201         Tests for module 'alignof'.
35202         * modules/alignof-tests: New file.
35203         * tests/test-alignof.c: New file.
35204
35205 2009-05-12  Bruno Haible  <bruno@clisp.org>
35206
35207         Fix alignof macro.
35208         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
35209         vendor compilers that are always correct.
35210
35211 2009-05-12  Bruno Haible  <bruno@clisp.org>
35212
35213         Make the MAP_ANONYMOUS detection work on HP-UX 11.
35214         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
35215         not whether its fully works.
35216
35217 2009-05-12  Bruno Haible  <bruno@clisp.org>
35218
35219         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
35220
35221 2009-05-12  Jim Meyering  <meyering@redhat.com>
35222
35223         * top/maint.mk: Adjust backslash alignment.
35224
35225 2009-05-11  Simon Josefsson  <simon@josefsson.org>
35226
35227         * top/maint.mk: Make $(srcdir)/build-aux configurable.
35228
35229 2009-05-11  Eric Blake  <ebb9@byu.net>
35230
35231         argp: avoid undefined behavior
35232         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
35233         macros.
35234
35235 2009-05-08  Simon Josefsson  <simon@josefsson.org>
35236
35237         * tests/test-vc-list-files-git.sh: Do git config of user.email and
35238         user.name to prevent git commit from complaining.
35239
35240 2009-05-10  Bruno Haible  <bruno@clisp.org>
35241
35242         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
35243         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
35244         it rewrites every file name only once.
35245         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
35246
35247 2009-05-08  Bruno Haible  <bruno@clisp.org>
35248
35249         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
35250         instead of 'max'.
35251
35252 2009-05-08  Simon Josefsson  <simon@josefsson.org>
35253
35254         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
35255         sockaddr_storage test.
35256
35257 2009-05-07  Simon Josefsson  <simon@josefsson.org>
35258
35259         * modules/sys_socket (Makefile.am): Substitute
35260         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
35261         * m4/sys_socket_h.m4: Check for sockaddr_storage.
35262         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
35263         * tests/test-sys_socket.c: Check sockaddr_storage.
35264
35265 2009-05-08  Bruno Haible  <bruno@clisp.org>
35266
35267         New module 'alignof'.
35268         * lib/alignof.h: New file.
35269         * modules/alignof: New file.
35270
35271 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35272             Bruno Haible  <bruno@clisp.org>
35273
35274         Fix test-file-has-acl on FreeBSD.
35275         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
35276         mask is implicitly added.
35277         * tests/test-file-has-acl.c: Include <signal.h>.
35278         (main): Terminate the test after 5 seconds.
35279         * modules/acl-tests (configure.ac): Check for alarm function.
35280
35281 2009-05-04  Bruno Haible  <bruno@clisp.org>
35282
35283         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
35284         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
35285         * modules/errno (configure.ac): Drop AC_REQUIRE.
35286         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
35287         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
35288
35289 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35290
35291         * modules/glob-tests: New module.
35292         * tests/test-glob.c: Add.
35293
35294 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35295
35296         * modules/fnmatch-tests: New module.
35297         * tests/test-fnmatch.c: Add.
35298
35299 2009-05-04  Eric Blake  <ebb9@byu.net>
35300
35301         maint: make the new no-submodule-changes rule VPATH-safe
35302         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
35303
35304 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35305             Bruno Haible  <bruno@clisp.org>
35306
35307         acl: Fix infinite loop on FreeBSD.
35308         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
35309         of return value from acl_get_entry.
35310         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
35311         Likewise.
35312
35313 2009-05-03  Bruno Haible  <bruno@clisp.org>
35314
35315         * lib/acl-internal.h (acl_entries): Clarify return value.
35316         * lib/acl_entries.c (acl_entries): Likewise.
35317
35318 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35319
35320         Bug fix in acl module.
35321         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
35322
35323 2009-05-03  Bruno Haible  <bruno@clisp.org>
35324
35325         Create gperf-generated file in the source dir, not in the build dir.
35326         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
35327         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
35328         * modules/unicase/locale-language (unicase/locale-languages.h):
35329         Likewise.
35330         * modules/unicase/special-casing (unicase/special-casing-table.h):
35331         Likewise.
35332         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
35333         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
35334         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
35335         Reported by Ralf Wildenhues.
35336
35337 2009-05-03  Bruno Haible  <bruno@clisp.org>
35338
35339         * modules/fnmatch (Description, configure.ac): Taken from
35340         fnmatch-posix.
35341         * modules/fnmatch-posix: Turn into a symbolic reference to the
35342         'fnmatch' module, and deprecate.
35343         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
35344
35345 2009-05-03  Bruno Haible  <bruno@clisp.org>
35346
35347         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
35348         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
35349         Reported by Ralf Wildenhues.
35350
35351 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35352
35353         * m4/fnmatch.m4: Fix fnmatch re-define.
35354
35355 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35356
35357         priv-set: new module and tests; adapt write-any-file
35358         * lib/priv-set.c: New file.
35359         * lib/priv-set.h: New file.
35360         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
35361         * lib/write-any-file.c: Simplify by using priv-set module.
35362         * m4/priv-set.m4: New file.
35363         * modules/priv-set: New file.
35364         * modules/unlinkdir: Add dependency on priv-set module.
35365         * modules/write-any-file: Likewise.
35366
35367         Tests for module 'priv-set'.
35368         * modules/priv-set-tests: New file.
35369         * tests/test-priv-set.c: New file.
35370
35371 2009-05-03  Jim Meyering  <meyering@redhat.com>
35372             Bruno Haible  <bruno@clisp.org>
35373
35374         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
35375         use the converted UTF-8 variant of the name instead.
35376
35377 2009-05-03  Jim Meyering  <meyering@redhat.com>
35378
35379         tests: tighten some getdate tests
35380         * tests/test-getdate.c (main): Tighten tests: require equality,
35381         not just greater than.  Set TZ envvar to UTC0.
35382
35383 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
35384
35385         getdate: correctly interpret "next monday" when run on a Monday
35386         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
35387         that e.g., "next tues" (when run on a tuesday) results in a date
35388         that is one week in the future, and not today's date.
35389         I.e., add a week when the wday is the same as the current one.
35390         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
35391         and earlier by Martin Bernreuther and Jan Minář.
35392         * tests/test-getdate.c (main): Check that "next DAY" is always in
35393         the future and that "last DAY" is always in the past.
35394
35395 2009-05-02  Jim Meyering  <meyering@redhat.com>
35396
35397         build: ensure that a release build fails when a submodule is unclean
35398         * top/maint.mk (no-submodule-changes): New rule.
35399         (alpha beta major): Depend on it.
35400
35401 2009-05-02  Bruno Haible  <bruno@clisp.org>
35402
35403         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
35404         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
35405         shell variable gl_fnmatch_required to detect which variant is
35406         requested.
35407         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
35408         gl_FUNC_FNMATCH_POSIX.
35409         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
35410         exclude fnmatch-posix.
35411
35412 2009-05-02  Bruno Haible  <bruno@clisp.org>
35413
35414         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
35415         * modules/mbsrtowcs (License): Change to LGPLv2+.
35416         * modules/strnlen1 (License): Likewise.
35417         Reported by Simon Josefsson.
35418
35419 2009-05-02  Bruno Haible  <bruno@clisp.org>
35420
35421         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
35422         "cross".
35423         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
35424         gnulib-tool was called with option --source-base=lib.
35425
35426 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35427
35428         Use automake *-local hooks without commands, for extensibility.
35429         * modules/localcharset (Makefile.am): Rename install-exec-local
35430         rule to install-exec-localcharset, and make it a prerequisite of
35431         install-exec-local.  Likewise, rename the uninstall-local rule to
35432         uninstall-localcharset, and make it a prerequisite of the former.
35433
35434 2009-05-01  Bruno Haible  <bruno@clisp.org>
35435
35436         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
35437         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
35438         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
35439         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
35440         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
35441         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
35442         m4/locale-zh.m4, m4/codeset.m4.
35443
35444         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
35445         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
35446         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
35447         m4/locale-zh.m4.
35448
35449         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
35450         REPLACE_WCRTOMB if mbstate_t must be replaced.
35451         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
35452         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
35453
35454 2009-05-01  Bruno Haible  <bruno@clisp.org>
35455
35456         Avoid compiler warnings when redefining macros defined by <libintl.h>.
35457         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
35458         dngettext, dcngettext, textdomain, bindtextdomain,
35459         bind_textdomain_codeset): Undefine before redefining.
35460
35461 2009-04-30  Bruno Haible  <bruno@clisp.org>
35462
35463         Fix bug introduced on 2009-04-25.
35464         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
35465         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
35466         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
35467         is defined.
35468         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
35469         is defined.
35470         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
35471         is defined.
35472         Reported by Elbert_Pol <elbert.pol@gmail.com>.
35473
35474 2009-04-28  Bruno Haible  <bruno@clisp.org>
35475
35476         Comment tweaks.
35477         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
35478         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
35479         * lib/unicase.h (u*_casexfrm): Likewise.
35480         Reported by Paolo Bonzini.
35481
35482 2009-04-28  Bruno Haible  <bruno@clisp.org>
35483
35484         Fix a compilation error.
35485         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
35486         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
35487         Reported by Jim Meyering.
35488
35489 2009-04-27  Bruno Haible  <bruno@clisp.org>
35490
35491         New module 'libunistring'.
35492         * modules/libunistring: New file.
35493         * m4/libunistring.m4: New file.
35494         * MODULES.html.sh (Unicode string functions): Add it.
35495
35496 2009-04-27  Eric Blake  <ebb9@byu.net>
35497
35498         maint.mk: allow package-specific header to provide <config.h>
35499         * top/maint.mk (sc_require_config_h): New variable.
35500         (sc_require_config_h, sc_require_config_h_first): Use it.
35501
35502 2009-04-27  Simon Josefsson  <simon@josefsson.org>
35503
35504         * top/maint.mk (sc_avoid_if_before_free): Except
35505         useless-if-before-free script.
35506
35507 2009-04-27  Eric Blake  <ebb9@byu.net>
35508
35509         maintainer-makefile: depend on all required helper scripts
35510         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
35511         useless-if-before-free.
35512         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
35513         version, rather than assuming gnulib checkout is available.
35514         Reported by Simen Josefsson.
35515
35516 2009-04-26  Bruno Haible  <bruno@clisp.org>
35517
35518         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
35519         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
35520         "../" or "..".
35521
35522 2009-04-26  Bruno Haible  <bruno@clisp.org>
35523
35524         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
35525         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
35526         AC_LIB_HAVE_LINKFLAGS.
35527
35528 2009-04-26  Bruno Haible  <bruno@clisp.org>
35529
35530         Simplify calling convention of u*_conv_from_encoding.
35531         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
35532         u32_conv_from_encoding): Expect a resultbuf argument and return the
35533         result directly as a pointer.
35534         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
35535         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
35536         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
35537         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
35538         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
35539         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
35540         Update.
35541         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
35542         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
35543         * lib/vasnprintf.c (VASNPRINTF): Update.
35544         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
35545         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
35546         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
35547         * NEWS: Mention the change.
35548
35549 2009-04-26  Bruno Haible  <bruno@clisp.org>
35550
35551         Simplify calling convention of u*_conv_to_encoding.
35552         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
35553         u32_conv_to_encoding): Expect a resultbuf argument and return the
35554         result directly as a pointer.
35555         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
35556         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
35557         freeing scaled_offsets if mem_iconveha failed.
35558         * lib/unicase/u-casexfrm.h (FUNC): Update.
35559         * lib/uninorm/u-normxfrm.h (FUNC): Update.
35560         * lib/vasnprintf.c (VASNPRINTF): Update.
35561         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
35562         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
35563         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
35564         * NEWS: Mention the change.
35565
35566 2009-04-26  Bruno Haible  <bruno@clisp.org>
35567
35568         Avoid test failures on AIX and OSF/1.
35569         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
35570         malloc(0).
35571         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
35572         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
35573         Likewise.
35574         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
35575         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
35576         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
35577         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
35578         * doc/posix-functions/malloc.texi: Document the portability problem
35579         related to malloc(0).
35580
35581 2009-04-26  Bruno Haible  <bruno@clisp.org>
35582
35583         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
35584         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
35585         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
35586
35587 2009-04-25  Bruno Haible  <bruno@clisp.org>
35588
35589         Avoid link error when creating a namespace clean library.
35590         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
35591         as macro with arguments if already defined as an alias.
35592         * lib/signbitf.c (gl_signbitf): Don't undefine.
35593         * lib/signbitd.c (gl_signbitd): Don't undefine.
35594         * lib/signbitl.c (gl_signbitl): Don't undefine.
35595
35596 2009-04-25  Jim Meyering  <meyering@redhat.com>
35597
35598         vc-list-files: fix another quoting bug
35599         * build-aux/vc-list-files: Avoid sed backslash expansion
35600         of pathological directory names.
35601
35602 2009-04-25  Eric Blake  <ebb9@byu.net>
35603
35604         vc-list-files: fix shell quoting error
35605         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
35606         timestamp.
35607
35608 2009-04-25  Jim Meyering  <meyering@redhat.com>
35609
35610         vc-list-files: restore lost functionality with subdir argument
35611         * build-aux/vc-list-files: When given a non-"." sub-directory
35612         argument, substitute the $dir/ prefix back onto each resulting name.
35613         Otherwise, coreutils' root_tests check would fail.
35614
35615 2009-04-24  Eric Blake  <ebb9@byu.net>
35616
35617         vc-list-files: ignore git symlinks
35618         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
35619         than ls-files, to ignore git symlinks.
35620
35621         maint.mk: import improvements from m4
35622         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
35623         (move_if_change): Delete unused macro.
35624         (news-date-check, vc-diff-check): Support VPATH builds.
35625         (announcement): Likewise.  Split --bootstrap-tools list...
35626         (boostrap-tools): ...into separate list, which can be overridden
35627         in cfg.mk.
35628         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
35629         requiring dependency on useless-if-before-free module.
35630         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
35631         Support VPATH builds.
35632
35633 2009-04-24  Jim Meyering  <meyering@redhat.com>
35634
35635         maint.mk: remove coreutils-specific rules and variables
35636         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
35637         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
35638         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
35639
35640         maint.mk: remove obsolete rule
35641         * top/maint.mk (rel-check): Remove rule.
35642         (WGET, WGETFLAGS): Remove now-unused variables.
35643
35644 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35645
35646         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
35647         consistency.
35648
35649         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
35650         '$(PATH_SEPARATOR)' instead of ':'.
35651
35652 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35653
35654         * lib/getopt1.c (main): Use 'const' for static array.
35655
35656 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35657
35658         * top/maint.mk: Sync with coreutils.
35659         * NEWS: Explain incompatibilities.
35660
35661 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35662             Bruno Haible  <bruno@clisp.org>
35663
35664         Fix cross-compilation results.
35665         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
35666         statement, as third argument of AC_TRY_RUN.
35667         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
35668         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
35669         Likewise.
35670         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
35671         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
35672         Likewise.
35673         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
35674         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
35675         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
35676
35677 2009-04-20  Bruno Haible  <bruno@clisp.org>
35678
35679         Avoid test failure on mingw.
35680         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
35681
35682 2009-04-20  Bruno Haible  <bruno@clisp.org>
35683
35684         Avoid compilation error on mingw.
35685         * modules/localename-tests (Depends-on): Add locale.
35686
35687 2009-04-19  Bruno Haible  <bruno@clisp.org>
35688
35689         Support for building a shared library on Windows platforms.
35690         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
35691         (main): Test the presence of UNINORM_NFC here.
35692         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
35693         (main): Test the presence of UNINORM_NFD here.
35694         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
35695         (main): Test the presence of UNINORM_NFKC here.
35696         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
35697         (main): Test the presence of UNINORM_NFKD here.
35698
35699 2009-04-19  Bruno Haible  <bruno@clisp.org>
35700
35701         Avoid a compiler warning.
35702         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
35703         Change type of variable 'sequence'.
35704
35705 2009-04-19  Bruno Haible  <bruno@clisp.org>
35706
35707         * modules/configmake (Makefile.am): When the contents of configmake.h
35708         does not change, arrange to preserve its modification time.
35709
35710 2009-04-17  Simon Josefsson  <simon@josefsson.org>
35711
35712         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
35713         gettext domain.
35714
35715 2009-04-16  Jim Meyering  <meyering@redhat.com>
35716
35717         useless-if-before-free: improve conversion code
35718         * build-aux/useless-if-before-free: Adjust code-in-comment to match
35719         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
35720
35721 2009-04-14  Bruno Haible  <bruno@clisp.org>
35722
35723         * modules/fcntl (Depends-on): Add extensions.
35724         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
35725
35726 2009-04-12  Ben Pfaff  <blp@gnu.org>
35727
35728         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
35729         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
35730
35731 2009-03-20  Ben Pfaff  <blp@gnu.org>
35732
35733         Make rename replace existing destinations on Windows.
35734         * m4/rename.m4: Add test for Mingw.
35735         * lib/rename.c: Add rename replacement that uses MoveFileEx with
35736         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
35737         * doc/posix-functions/rename.texi: Document.
35738
35739 2009-04-10  Bruno Haible  <bruno@clisp.org>
35740
35741         New include file "iconveh.h".
35742         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
35743         * lib/striconveh.h: Include it.
35744         (enum iconv_ilseq_handler): Remove definition.
35745         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
35746         striconveh.h.
35747         * lib/striconveha.c: Include striconveh.h.
35748         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
35749         * modules/striconveh (Files): Add lib/iconveh.h.
35750         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
35751         lib/striconveh.h.
35752
35753 2009-04-10  Bruno Haible  <bruno@clisp.org>
35754
35755         * lib/uniconv.h: Update comment.
35756
35757 2009-04-10  Bruno Haible  <bruno@clisp.org>
35758
35759         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
35760         always.
35761         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
35762         * lib/unistr/u16-mbtouc-aux.c: Likewise.
35763         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
35764         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
35765         "unistring-notinline.h", so that the function gets defined always.
35766         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
35767         * lib/unistr/u8-uctomb.c: Likewise.
35768         * lib/unistr/u16-mbtouc.c: Likewise.
35769         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
35770         * lib/unistr/u16-uctomb.c: Likewise.
35771         * lib/unistr/u32-mbtouc.c: Likewise.
35772         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
35773         * lib/unistr/u32-uctomb.c: Likewise.
35774
35775 2009-04-10  Bruno Haible  <bruno@clisp.org>
35776
35777         Mark 'utime' obsolete.
35778         * modules/utime (Status, Notice): New sections.
35779         Suggested by Jim Meyering.
35780
35781         Fix cross-compile guess for utime test.
35782         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
35783         autoconf.
35784         * doc/posix-functions/utime.texi: Give more precisions.
35785         Reported by Jan <ipif@ymail.com>.
35786
35787 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
35788
35789         filevercmp: correct today's change
35790         * lib/filevercmp.c: Also handle coreutils' test inputs.
35791         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
35792
35793         Fix regression in 'filevercmp' module. Thanks Sven Joachim
35794         for reporting it.
35795         * lib/filevercmp.c: Special handle for "", "." and "..".
35796         * tests/test-filevercmp.c: Enlarge the set suite.
35797
35798 2009-04-07  Jim Meyering  <meyering@redhat.com>
35799
35800         useless-if-before-free: show how to remove braced useless free, too
35801         * build-aux/useless-if-before-free: still only in a comment, though.
35802
35803 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
35804
35805         maint.mk: import changes to syntax-check macros from coreutils
35806         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
35807         Use them in the relevant macros.
35808
35809 2009-04-06  Bruno Haible  <bruno@clisp.org>
35810
35811         Fix unportable use of bit-fields.
35812         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
35813         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
35814         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
35815
35816 2009-04-06  Bruno Haible  <bruno@clisp.org>
35817
35818         Avoid test failures on AIX and OSF/1.
35819         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
35820         that malloc(0) = NULL.
35821         * tests/unicase/test-u8-tolower.c (check): Likewise.
35822         * tests/unicase/test-u8-totitle.c (check): Likewise.
35823         * tests/unicase/test-u8-toupper.c (check): Likewise.
35824         * tests/unicase/test-u16-casefold.c (check): Likewise.
35825         * tests/unicase/test-u16-tolower.c (check): Likewise.
35826         * tests/unicase/test-u16-totitle.c (check): Likewise.
35827         * tests/unicase/test-u16-toupper.c (check): Likewise.
35828         * tests/unicase/test-u32-casefold.c (check): Likewise.
35829         * tests/unicase/test-u32-tolower.c (check): Likewise.
35830         * tests/unicase/test-u32-totitle.c (check): Likewise.
35831         * tests/unicase/test-u32-toupper.c (check): Likewise.
35832         * tests/uninorm/test-u8-nfc.c (check): Likewise.
35833         * tests/uninorm/test-u8-nfd.c (check): Likewise.
35834         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
35835         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
35836         * tests/uninorm/test-u16-nfc.c (check): Likewise.
35837         * tests/uninorm/test-u16-nfd.c (check): Likewise.
35838         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
35839         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
35840         * tests/uninorm/test-u32-nfc.c (check): Likewise.
35841         * tests/uninorm/test-u32-nfd.c (check): Likewise.
35842         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
35843         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
35844
35845 2009-04-05  Bruno Haible  <bruno@clisp.org>
35846
35847         Work around an autoconf limitation.
35848         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
35849         comment line if it would be longer than 3 KB.
35850
35851 2009-04-05  Bruno Haible  <bruno@clisp.org>
35852
35853         Avoid test failure with libiconv-1.13.
35854         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
35855         of the expected test results.
35856
35857 2009-04-05  Bruno Haible  <bruno@clisp.org>
35858
35859         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
35860         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
35861         that it should be installed.
35862
35863 2009-04-05  Bruno Haible  <bruno@clisp.org>
35864
35865         * gnulib-tool: New option --copy-file.
35866         (func_usage): Document it.
35867         (func_dest_tmpfilename): Moved out of func_import.
35868         (func_add_file, func_update_file): New functions, extracted from
35869         func_import.
35870         (func_import): Update.
35871
35872 2009-04-05  Karl Berry  <karl@gnu.org>
35873
35874         * README: prominently mention gnulib-tool.
35875         Rearrange sections so getting the code is near the top.
35876
35877 2009-04-05  Bruno Haible  <bruno@clisp.org>
35878
35879         * lib/unicase.h: Mention u*_cmp2.
35880         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
35881         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
35882         * lib/unicase/ulc-casecmp.c: Likewise.
35883         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
35884         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
35885         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
35886         unistr/u8-cmp.
35887         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
35888         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
35889         unistr/u16-cmp.
35890         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
35891         unistr/u32-cmp.
35892
35893         * lib/uninorm.h: Mention u*_cmp2.
35894         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
35895         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
35896         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
35897         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
35898         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
35899         unistr/u8-cmp.
35900         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
35901         unistr/u16-cmp.
35902         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
35903         unistr/u32-cmp.
35904
35905         New module 'unistr/u32-cmp2'.
35906         * lib/unistr/u32-cmp2.c: New file.
35907         * modules/unistr/u32-cmp2: New file.
35908
35909         New module 'unistr/u16-cmp2'.
35910         * lib/unistr/u16-cmp2.c: New file.
35911         * modules/unistr/u16-cmp2: New file.
35912
35913         New module 'unistr/u8-cmp2'.
35914         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
35915         * lib/unistr/u8-cmp2.c: New file.
35916         * lib/unistr/u-cmp2.h: New file.
35917         * modules/unistr/u8-cmp2: New file.
35918
35919 2009-04-05  Bruno Haible  <bruno@clisp.org>
35920
35921         * lib/unictype.h (uc_property_is_valid): New macro.
35922         * tests/unictype/test-pr_byname.c (main): Use it.
35923
35924         * lib/unistr.h: Doc fixes.
35925         * lib/uniconv.h: Doc fixes.
35926         * lib/unictype.h: Doc fixes.
35927
35928 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
35929
35930         Port coreutils 7.2 to Solaris 8.
35931
35932         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
35933         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
35934         for Solaris 8.  This is a bit of a hack, as it means it's the
35935         caller's responsibility to add -lnsl if needed, but most likely it
35936         won't be needed since only getaddrinfo uses this and getaddrinfo
35937         isn't needed on Solaris 8.
35938
35939         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
35940         problem to Solaris 8 encountered with coreutils 7.2, which
35941         resulted in a message "fnmatch.c:292: warning: passing argument 4
35942         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
35943         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
35944
35945 2009-04-03  Simon Josefsson  <simon@josefsson.org>
35946
35947         * m4/ld-version-script.m4: Add FIXME comment.
35948
35949 2009-04-02  Simon Josefsson  <simon@josefsson.org>
35950
35951         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
35952         SOVERSION variable.
35953
35954 2009-04-02  Bruno Haible  <bruno@clisp.org>
35955
35956         * Makefile (info, html, dvi, pdf): Combine the rules.
35957         Suggested by Jim Meyering.
35958
35959 2009-04-01  Bruno Haible  <bruno@clisp.org>
35960
35961         * Makefile (info, html, dvi, pdf): New targets.
35962         Reported by Reuben Thomas <rrt@sc3d.org>.
35963
35964 2009-04-01  Bruno Haible  <bruno@clisp.org>
35965
35966         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
35967         can be put into PATH.
35968         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
35969
35970 2009-04-01  Bruno Haible  <bruno@clisp.org>
35971
35972         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
35973
35974 2009-04-01  Bruno Haible  <bruno@clisp.org>
35975
35976         Rename module 'visibility'.
35977         * modules/lib-symbol-visibility: Renamed from modules/visibility.
35978         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
35979         * doc/gnulib.texi: Update.
35980         * MODULES.html.sh (Misc): Update.
35981         * NEWS: Mention the change.
35982
35983 2009-04-01  Simon Josefsson  <simon@josefsson.org>
35984
35985         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
35986         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
35987         Eric Blake <ebb9@byu.net> for review.
35988         * MODULES.html.sh: Add lib-msvc-compat.
35989         * doc/gnulib.texi: Link to new section.
35990         * m4/ld-output-def.m4: New file.
35991         * doc/ld-output-def.texi: New file.
35992
35993 2009-04-01  Simon Josefsson  <simon@josefsson.org>
35994
35995         Rename ld-version-script to lib-symbol-versions.  Suggested by
35996         Bruno Haible <bruno@clisp.org>.
35997         * modules/ld-version-script: Renamed to lib-symbol-versions.
35998         * doc/ld-version-script.texi: Fix module name.
35999         * MODULES.html.sh: Add lib-symbol-versions.
36000
36001 2009-03-31  Simon Josefsson  <simon@josefsson.org>
36002
36003         * modules/u64-tests: New file.
36004         * tests/test-u64.c: New file.
36005
36006 2009-03-04  Simon Josefsson  <simon@josefsson.org>
36007
36008         * MODULES.html.sh: Mention u64.
36009         * modules/u64: New module.
36010         * modules/crypto/sha512: Depend on u64 module instead of providing
36011         u64.h.
36012
36013 2009-03-27  Eric Blake  <ebb9@byu.net>
36014
36015         test-strerror: make debugging EAI_SYSTEM easier
36016         * modules/getaddrinfo-tests (Depends-on): Add strerror.
36017         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
36018         failure was EAI_SYSTEM.
36019
36020 2009-03-25  Bruno Haible  <bruno@clisp.org>
36021
36022         Fix a problem with --enable-relocatable on Solaris 7.
36023         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
36024         since 2008-02-24.
36025
36026 2009-03-25  Eric Blake  <ebb9@byu.net>
36027
36028         test-sockets: avoid gcc warning
36029         * tests/test-sockets.c (main): Silence compiler warning.
36030
36031 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
36032
36033         New modules nproc, pthread, contributed by Glen Lenker.
36034
36035         * MODULES.html.sh: Add pthread, nproc.
36036         * lib/nproc.c: New file.
36037         * lib/nproc.h: New file.
36038         * lib/pthread.in.h: New file.
36039         * m4/pthread.m4: New file.
36040         * modules/nproc: New file.
36041         * modules/pthread: New file.
36042
36043 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36044
36045         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
36046         New variable.
36047
36048 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
36049
36050         filevercmp: handle simple~ and numbered.~3~ backup suffixes
36051         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
36052         * tests/test-filevercmp.c: Add tests for backup suffixes.
36053
36054 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36055
36056         * modules/stdlib (Depends-on): Add stdint, needed when defining
36057         struct random_data on, for example, HP-UX 10.20.  Reported by
36058         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36059
36060 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36061
36062         * lib/readline.c (readline): Call fflush on stdout after printing
36063         prompt.
36064
36065 2009-03-20  Bruno Haible  <bruno@clisp.org>
36066
36067         Remove dependency from 'close' module to -lws2_32 on native Windows.
36068         * lib/close-hook.h: New file.
36069         * lib/close-hook.c: New file.
36070         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
36071         w32sock.h.
36072         (_gl_close_fd_maybe_socket): Remove function.
36073         (rpl_close): Invoke execute_all_close_hooks instead of
36074         _gl_close_fd_maybe_socket.
36075         * lib/sockets.c: Include close-hook.h, w32sock.h.
36076         (close_fd_maybe_socket): New function, essentially from lib/close.c.
36077         (close_sockets_hook): New variable.
36078         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
36079         (gl_sockets_cleanup): Unregister it.
36080         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
36081         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
36082         * modules/close-hook: New file.
36083         * modules/close (Files): Remove lib/w32sock.h.
36084         (Depends-on): Add close-hook.
36085         (Link): Remove section.
36086         * modules/sockets (Files): Add lib/w32sock.h.
36087         (Depends-on): Add close-hook.
36088         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
36089         invocation.
36090         * NEWS: Mention that LIB_CLOSE is gone.
36091
36092 2009-03-23  Eric Blake  <ebb9@byu.net>
36093
36094         signal-tests: test previous patch
36095         * tests/test-signal.c: New file.
36096         * modules/signal-tests: Likewise.
36097
36098         signal.h: always support 'volatile sig_atomic_t'
36099         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
36100         (gl_SIGNAL_H_DEFAULTS): Add a default.
36101         * modules/signal (Makefile.am): Substitute if needed.
36102         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
36103         users can blindly add volatile.
36104         * doc/posix-headers/signal.texi (signal.h): Document it.
36105         Reported by Matthew Woehlke.
36106
36107 2009-03-23  Jim Meyering  <meyering@redhat.com>
36108
36109         pathmax: PATH_MAX: use pathconf only when available
36110         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
36111         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
36112         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
36113         This avoids a link failure in a PSP cross-compilation environment
36114         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
36115
36116         * lib/vasnprintf.c (divide): Fix typo in comment.
36117
36118 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36119
36120         * gnulib-tool (func_filter_filelist): Fix comment.
36121
36122 2009-03-20  Bruno Haible  <bruno@clisp.org>
36123
36124         Make sockets.h self-contained.
36125         * lib/sockets.c: Include sockets.h first.
36126         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
36127
36128 2009-03-19  Eric Blake  <ebb9@byu.net>
36129
36130         doc: mention more functions added in cygwin 1.7.0
36131         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
36132         addition.
36133         * doc/posix-functions/log2f.texi: Likewise.
36134
36135 2009-03-19  Jim Meyering  <meyering@redhat.com>
36136
36137         fsusage: avoid syntax error due to statement-before-declaration
36138         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
36139         after all declarations.  Reported by Matthew Woehlke in
36140         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
36141
36142 2009-03-18  Eric Blake  <ebb9@byu.net>
36143
36144         build-aux/compile: sync from automake
36145         * build-aux/compile: New file, from automake.
36146         * config/srclist.txt: Mention build-aux/compile.
36147
36148 2009-03-17  Bruno Haible  <bruno@clisp.org>
36149
36150         * lib/git-merge-changelog.c: Fix typo in comment.
36151         Reported by Reuben Thomas <rrt@sc3d.org>.
36152
36153 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
36154
36155         * m4/regex.m4: update and improve help for
36156         --without-included-regex.
36157
36158 2009-03-17  Simon Josefsson  <simon@josefsson.org>
36159
36160         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
36161         failure on missing include files.
36162
36163 2009-03-17  Eric Blake  <ebb9@byu.net>
36164
36165         doc: mention more functions added in cygwin 1.7.0
36166         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
36167         addition.
36168         * doc/posix-functions/fwscanf.texi: Likewise.
36169         * doc/posix-functions/swprintf.texi: Likewise.
36170         * doc/posix-functions/swscanf.texi: Likewise.
36171         * doc/posix-functions/vfwprintf.texi: Likewise.
36172         * doc/posix-functions/vfwscanf.texi: Likewise.
36173         * doc/posix-functions/vswprintf.texi: Likewise.
36174         * doc/posix-functions/vswscanf.texi: Likewise.
36175         * doc/posix-functions/vwprintf.texi: Likewise.
36176         * doc/posix-functions/vwscanf.texi: Likewise.
36177         * doc/posix-functions/wcscasecmp.texi: Likewise.
36178         * doc/posix-functions/wcsdup.texi: Likewise.
36179         * doc/posix-functions/wcsftime.texi: Likewise.
36180         * doc/posix-functions/wcsncasecmp.texi: Likewise.
36181         * doc/posix-functions/wprintf.texi: Likewise.
36182         * doc/posix-functions/wscanf.texi: Likewise.
36183         * doc/glibc-functions/gethostbyname2.texi: Likewise.
36184
36185 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36186
36187         maint.mk: really add $(AM_MAKEFLAGS)
36188         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
36189         was inadvertently omitted in the last commit.
36190         Spotted by Bruno Haible.
36191
36192         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
36193         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
36194         $(AM_MAKEFLAGS)' rather than plain `make'.
36195
36196         gnulib-tool: execute $MAKE not make
36197         * gnulib-tool: Default $MAKE to 'make'.
36198         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
36199         than make.  Initialize $MAKE in the do-autobuild script.
36200
36201         gnulib-tool: use $MAKE not make in generated files
36202         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
36203         make, in generated files.  Initialize $MAKE in the do-autobuild
36204         script.
36205
36206         * top/GNUmakefile (_have-git-version-gen): Fix typo.
36207
36208         GNUmakefile: disable parallelism only for multiple, recursive targets
36209         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
36210         additions in the Makefile.
36211         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
36212         by Automake.
36213         (.NOTPARALLEL): Only disable parallel builds if multiple targets
36214         are listed on the command line and at least one of them is
36215         listed in $(ALL_RECURSIVE_TARGETS).
36216
36217 2009-03-14  Bruno Haible  <bruno@clisp.org>
36218
36219         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
36220         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
36221         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
36222         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
36223         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
36224         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
36225         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
36226         unistr/u8-uctomb.
36227         * modules/unistr/u8-strchr (Depends-on): Likewise.
36228         * modules/unistr/u8-strrchr (Depends-on): Likewise.
36229         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
36230         unistr/u16-uctomb.
36231         * modules/unistr/u16-strchr (Depends-on): Likewise.
36232         * modules/unistr/u16-strrchr (Depends-on): Likewise.
36233
36234 2009-03-12  Bruno Haible  <bruno@clisp.org>
36235
36236         Work around select() bug on Interix 3.5.
36237         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
36238         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
36239         * m4/select.m4: New file.
36240         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
36241         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
36242         * modules/select (Files): Add m4/select.m4.
36243         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
36244         * modules/nanosleep (Depends-on): Add select.
36245         * modules/poll (Depends-on): Likewise.
36246         * doc/posix-functions/select.texi: Mention the Interix bug.
36247         Reported by Markus Duft <mduft@gentoo.org>.
36248
36249         * lib/select.c: Renamed from lib/winsock-select.c.
36250         * modules/select (Files): Add lib/select.c, remove
36251         lib/winsock-select.c.
36252         (configure.ac): Update.
36253
36254 2009-03-12  Jim Meyering  <meyering@redhat.com>
36255
36256         avoid gcc warnings about unused macro definitions
36257         * lib/readtokens.c (STREQ): Remove unused definition.
36258         * lib/xmalloc.c (SIZE_MAX): Likewise.
36259         * lib/openat-die.c (N_): Likewise.
36260         * lib/mountlist.c (SIZE_MAX): Remove definition.
36261         Instead, include <stdint.h>.
36262         * lib/readutmp.c: Likewise.
36263         * modules/readutmp (Depends-on): Add stdint.
36264         * modules/mountlist (Depends-on): Add stdint.
36265         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
36266
36267 2009-03-10  Bruno Haible  <bruno@clisp.org>
36268
36269         Tests for module 'mbmemcasecoll'.
36270         * modules/mbmemcasecoll-tests: New file.
36271         * tests/test-mbmemcasecoll1.sh: New file.
36272         * tests/test-mbmemcasecoll2.sh: New file.
36273         * tests/test-mbmemcasecoll3.sh: New file.
36274         * tests/test-mbmemcasecoll.c: New file.
36275
36276         New module 'mbmemcasecoll'.
36277         * lib/mbmemcasecoll.h: New file.
36278         * lib/mbmemcasecoll.c: New file.
36279         * modules/mbmemcasecoll: New file.
36280
36281         * tests/test-mbmemcasecmp.h: New file, extracted from
36282         tests/test-mbmemcasecmp.c.
36283         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
36284         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
36285         (main): Update.
36286         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
36287
36288 2009-03-09  Bruno Haible  <bruno@clisp.org>
36289
36290         Tests for module 'mbmemcasecmp'.
36291         * modules/mbmemcasecmp-tests: New file.
36292         * tests/test-mbmemcasecmp1.sh: New file.
36293         * tests/test-mbmemcasecmp2.sh: New file.
36294         * tests/test-mbmemcasecmp3.sh: New file.
36295         * tests/test-mbmemcasecmp.c: New file.
36296
36297         New module 'mbmemcasecmp'.
36298         * lib/mbmemcasecmp.h: New file.
36299         * lib/mbmemcasecmp.c: New file.
36300         * modules/mbmemcasecmp: New file.
36301
36302 2009-03-09  Bruno Haible  <bruno@clisp.org>
36303
36304         Tests for module 'unicase/ulc-casecoll'.
36305         * modules/unicase/ulc-casecoll-tests: New file.
36306         * tests/unicase/test-ulc-casecoll1.sh: New file.
36307         * tests/unicase/test-ulc-casecoll2.sh: New file.
36308         * tests/unicase/test-ulc-casecoll.c: New file.
36309
36310         New module 'unicase/ulc-casecoll'.
36311         * lib/unicase.h (ulc_casecoll): New declaration.
36312         * lib/unicase/ulc-casecoll.c: New file.
36313         * modules/unicase/ulc-casecoll: New file.
36314
36315         New module 'unicase/ulc-casexfrm'.
36316         * lib/unicase.h (ulc_casexfrm): New declaration.
36317         * lib/unicase/ulc-casexfrm.c: New file.
36318         * modules/unicase/ulc-casexfrm: New file.
36319
36320 2009-03-09  Bruno Haible  <bruno@clisp.org>
36321
36322         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
36323         invocations.
36324
36325         * m4/mbscasecmp.m4: Remove file.
36326         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
36327         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
36328
36329         * m4/mbscasestr.m4: Remove file.
36330         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
36331         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
36332
36333         * m4/mbschr.m4: Remove file.
36334         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
36335         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
36336
36337         * m4/mbscspn.m4: Remove file.
36338         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
36339         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
36340
36341         * m4/mbslen.m4: Remove file.
36342         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
36343         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
36344
36345         * m4/mbsncasecmp.m4: Remove file.
36346         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
36347         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
36348
36349         * m4/mbsnlen.m4: Remove file.
36350         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
36351         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
36352
36353         * m4/mbspbrk.m4: Remove file.
36354         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
36355         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
36356
36357         * m4/mbspcasecmp.m4: Remove file.
36358         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
36359         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
36360
36361         * m4/mbsrchr.m4: Remove file.
36362         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
36363         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
36364
36365         * m4/mbssep.m4: Remove file.
36366         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
36367         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
36368
36369         * m4/mbsspn.m4: Remove file.
36370         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
36371         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
36372
36373         * m4/mbsstr.m4: Remove file.
36374         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
36375         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
36376
36377         * m4/mbstok_r.m4: Remove file.
36378         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
36379         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
36380
36381         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
36382
36383         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
36384         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
36385
36386         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
36387
36388 2009-03-08  Bruno Haible  <bruno@clisp.org>
36389
36390         Tests for module 'unicase/ulc-casecmp'.
36391         * modules/unicase/ulc-casecmp-tests: New file.
36392         * tests/unicase/test-ulc-casecmp1.sh: New file.
36393         * tests/unicase/test-ulc-casecmp2.sh: New file.
36394         * tests/unicase/test-ulc-casecmp.c: New file.
36395
36396         New module 'unicase/ulc-casecmp'.
36397         * lib/unicase.h (ulc_casecmp): New declaration.
36398         * lib/unicase/ulc-casecmp.c: New file.
36399         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
36400         'const SRC_UNIT *'.
36401         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
36402         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
36403         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
36404         * modules/unicase/ulc-casecmp: New file.
36405
36406         Tests for module 'unicase/u32-is-cased'.
36407         * modules/unicase/u32-is-cased-tests: New file.
36408         * tests/unicase/test-u32-is-cased.c: New file.
36409
36410         Tests for module 'unicase/u16-is-cased'.
36411         * modules/unicase/u16-is-cased-tests: New file.
36412         * tests/unicase/test-u16-is-cased.c: New file.
36413
36414         Tests for module 'unicase/u8-is-cased'.
36415         * modules/unicase/u8-is-cased-tests: New file.
36416         * tests/unicase/test-u8-is-cased.c: New file.
36417         * tests/unicase/test-is-cased.h: New file.
36418
36419         New module 'unicase/u32-is-cased'.
36420         * lib/unicase/u32-is-cased.c: New file.
36421         * modules/unicase/u32-is-cased: New file.
36422
36423         New module 'unicase/u16-is-cased'.
36424         * lib/unicase/u16-is-cased.c: New file.
36425         * modules/unicase/u16-is-cased: New file.
36426
36427         New module 'unicase/u8-is-cased'.
36428         * lib/unicase/u8-is-cased.c: New file.
36429         * lib/unicase/u-is-cased.h: New file.
36430         * modules/unicase/u8-is-cased: New file.
36431
36432         Tests for module 'unicase/u32-is-casefolded'.
36433         * modules/unicase/u32-is-casefolded-tests: New file.
36434         * tests/unicase/test-u32-is-casefolded.c: New file.
36435
36436         Tests for module 'unicase/u16-is-casefolded'.
36437         * modules/unicase/u16-is-casefolded-tests: New file.
36438         * tests/unicase/test-u16-is-casefolded.c: New file.
36439
36440         Tests for module 'unicase/u8-is-casefolded'.
36441         * modules/unicase/u8-is-casefolded-tests: New file.
36442         * tests/unicase/test-u8-is-casefolded.c: New file.
36443         * tests/unicase/test-is-casefolded.h: New file.
36444
36445         New module 'unicase/u32-is-casefolded'.
36446         * lib/unicase/u32-is-casefolded.c: New file.
36447         * modules/unicase/u32-is-casefolded: New file.
36448
36449         New module 'unicase/u16-is-casefolded'.
36450         * lib/unicase/u16-is-casefolded.c: New file.
36451         * modules/unicase/u16-is-casefolded: New file.
36452
36453         New module 'unicase/u8-is-casefolded'.
36454         * lib/unicase/u8-is-casefolded.c: New file.
36455         * modules/unicase/u8-is-casefolded: New file.
36456
36457         Tests for module 'unicase/u32-is-titlecase'.
36458         * modules/unicase/u32-is-titlecase-tests: New file.
36459         * tests/unicase/test-u32-is-titlecase.c: New file.
36460
36461         Tests for module 'unicase/u16-is-titlecase'.
36462         * modules/unicase/u16-is-titlecase-tests: New file.
36463         * tests/unicase/test-u16-is-titlecase.c: New file.
36464
36465         Tests for module 'unicase/u8-is-titlecase'.
36466         * modules/unicase/u8-is-titlecase-tests: New file.
36467         * tests/unicase/test-u8-is-titlecase.c: New file.
36468         * tests/unicase/test-is-titlecase.h: New file.
36469
36470         New module 'unicase/u32-is-titlecase'.
36471         * lib/unicase/u32-is-titlecase.c: New file.
36472         * modules/unicase/u32-is-titlecase: New file.
36473
36474         New module 'unicase/u16-is-titlecase'.
36475         * lib/unicase/u16-is-titlecase.c: New file.
36476         * modules/unicase/u16-is-titlecase: New file.
36477
36478         New module 'unicase/u8-is-titlecase'.
36479         * lib/unicase/u8-is-titlecase.c: New file.
36480         * modules/unicase/u8-is-titlecase: New file.
36481
36482         Tests for module 'unicase/u32-is-lowercase'.
36483         * modules/unicase/u32-is-lowercase-tests: New file.
36484         * tests/unicase/test-u32-is-lowercase.c: New file.
36485
36486         Tests for module 'unicase/u16-is-lowercase'.
36487         * modules/unicase/u16-is-lowercase-tests: New file.
36488         * tests/unicase/test-u16-is-lowercase.c: New file.
36489
36490         Tests for module 'unicase/u8-is-lowercase'.
36491         * modules/unicase/u8-is-lowercase-tests: New file.
36492         * tests/unicase/test-u8-is-lowercase.c: New file.
36493         * tests/unicase/test-is-lowercase.h: New file.
36494
36495         New module 'unicase/u32-is-lowercase'.
36496         * lib/unicase/u32-is-lowercase.c: New file.
36497         * modules/unicase/u32-is-lowercase: New file.
36498
36499         New module 'unicase/u16-is-lowercase'.
36500         * lib/unicase/u16-is-lowercase.c: New file.
36501         * modules/unicase/u16-is-lowercase: New file.
36502
36503         New module 'unicase/u8-is-lowercase'.
36504         * lib/unicase/u8-is-lowercase.c: New file.
36505         * modules/unicase/u8-is-lowercase: New file.
36506
36507         Tests for module 'unicase/u32-is-uppercase'.
36508         * modules/unicase/u32-is-uppercase-tests: New file.
36509         * tests/unicase/test-u32-is-uppercase.c: New file.
36510
36511         Tests for module 'unicase/u16-is-uppercase'.
36512         * modules/unicase/u16-is-uppercase-tests: New file.
36513         * tests/unicase/test-u16-is-uppercase.c: New file.
36514
36515         Tests for module 'unicase/u8-is-uppercase'.
36516         * modules/unicase/u8-is-uppercase-tests: New file.
36517         * tests/unicase/test-u8-is-uppercase.c: New file.
36518         * tests/unicase/test-is-uppercase.h: New file.
36519
36520         New module 'unicase/u32-is-uppercase'.
36521         * lib/unicase/u32-is-uppercase.c: New file.
36522         * modules/unicase/u32-is-uppercase: New file.
36523
36524         New module 'unicase/u16-is-uppercase'.
36525         * lib/unicase/u16-is-uppercase.c: New file.
36526         * modules/unicase/u16-is-uppercase: New file.
36527
36528         New module 'unicase/u8-is-uppercase'.
36529         * lib/unicase/u8-is-uppercase.c: New file.
36530         * modules/unicase/u8-is-uppercase: New file.
36531
36532         New module 'unicase/u32-is-invariant'.
36533         * lib/unicase/u32-is-invariant.c: New file.
36534         * modules/unicase/u32-is-invariant: New file.
36535
36536         New module 'unicase/u16-is-invariant'.
36537         * lib/unicase/u16-is-invariant.c: New file.
36538         * modules/unicase/u16-is-invariant: New file.
36539
36540         New module 'unicase/u8-is-invariant'.
36541         * lib/unicase/u8-is-invariant.c: New file.
36542         * lib/unicase/invariant.h: New file.
36543         * lib/unicase/u-is-invariant.h: New file.
36544         * modules/unicase/u8-is-invariant: New file.
36545
36546         Tests for module 'unicase/u32-casecoll'.
36547         * modules/unicase/u32-casecoll-tests: New file.
36548         * tests/unicase/test-u32-casecoll.c: New file.
36549
36550         Tests for module 'unicase/u16-casecoll'.
36551         * modules/unicase/u16-casecoll-tests: New file.
36552         * tests/unicase/test-u16-casecoll.c: New file.
36553
36554         Tests for module 'unicase/u8-casecoll'.
36555         * modules/unicase/u8-casecoll-tests: New file.
36556         * tests/unicase/test-u8-casecoll.c: New file.
36557
36558         New module 'unicase/u32-casecoll'.
36559         * lib/unicase/u32-casecoll.c: New file.
36560         * modules/unicase/u32-casecoll: New file.
36561
36562         New module 'unicase/u16-casecoll'.
36563         * lib/unicase/u16-casecoll.c: New file.
36564         * modules/unicase/u16-casecoll: New file.
36565
36566         New module 'unicase/u8-casecoll'.
36567         * lib/unicase/u8-casecoll.c: New file.
36568         * lib/unicase/u-casecoll.h: New file.
36569         * modules/unicase/u8-casecoll: New file.
36570
36571         New module 'unicase/u32-casexfrm'.
36572         * lib/unicase/u32-casexfrm.c: New file.
36573         * modules/unicase/u32-casexfrm: New file.
36574
36575         New module 'unicase/u16-casexfrm'.
36576         * lib/unicase/u16-casexfrm.c: New file.
36577         * modules/unicase/u16-casexfrm: New file.
36578
36579         New module 'unicase/u8-casexfrm'.
36580         * lib/unicase/u8-casexfrm.c: New file.
36581         * lib/unicase/u-casexfrm.h: New file.
36582         * modules/unicase/u8-casexfrm: New file.
36583
36584         Tests for module 'unicase/u32-casecmp'.
36585         * modules/unicase/u32-casecmp-tests: New file.
36586         * tests/unicase/test-u32-casecmp.c: New file.
36587
36588         Tests for module 'unicase/u16-casecmp'.
36589         * modules/unicase/u16-casecmp-tests: New file.
36590         * tests/unicase/test-u16-casecmp.c: New file.
36591
36592         Tests for module 'unicase/u8-casecmp'.
36593         * modules/unicase/u8-casecmp-tests: New file.
36594         * tests/unicase/test-u8-casecmp.c: New file.
36595         * tests/unicase/test-casecmp.h: New file.
36596
36597         New module 'unicase/u32-casecmp'.
36598         * lib/unicase/u32-casecmp.c: New file.
36599         * modules/unicase/u32-casecmp: New file.
36600
36601         New module 'unicase/u16-casecmp'.
36602         * lib/unicase/u16-casecmp.c: New file.
36603         * modules/unicase/u16-casecmp: New file.
36604
36605         New module 'unicase/u8-casecmp'.
36606         * lib/unicase/u8-casecmp.c: New file.
36607         * lib/unicase/u-casecmp.h: New file.
36608         * modules/unicase/u8-casecmp: New file.
36609
36610         Tests for module 'unicase/u32-casefold'.
36611         * modules/unicase/u32-casefold-tests: New file.
36612         * tests/unicase/test-u32-casefold.c: New file.
36613
36614         Tests for module 'unicase/u16-casefold'.
36615         * modules/unicase/u16-casefold-tests: New file.
36616         * tests/unicase/test-u16-casefold.c: New file.
36617
36618         Tests for module 'unicase/u8-casefold'.
36619         * modules/unicase/u8-casefold-tests: New file.
36620         * tests/unicase/test-u8-casefold.c: New file.
36621
36622         New module 'unicase/u32-casefold'.
36623         * lib/unicase/u32-casefold.c: New file.
36624         * modules/unicase/u32-casefold: New file.
36625
36626         New module 'unicase/u16-casefold'.
36627         * lib/unicase/u16-casefold.c: New file.
36628         * modules/unicase/u16-casefold: New file.
36629
36630         New module 'unicase/u8-casefold'.
36631         * lib/unicase/u8-casefold.c: New file.
36632         * lib/unicase/u-casefold.h: New file.
36633         * modules/unicase/u8-casefold: New file.
36634
36635         New module 'unicase/tocasefold'.
36636         * lib/unicase/casefold.h: New file.
36637         * lib/unicase/tocasefold.c: New file.
36638         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
36639         * modules/unicase/tocasefold: New file.
36640
36641         Tests for module 'unicase/u32-totitle'.
36642         * modules/unicase/u32-totitle-tests: New file.
36643         * tests/unicase/test-u32-totitle.c: New file.
36644
36645         Tests for module 'unicase/u16-totitle'.
36646         * modules/unicase/u16-totitle-tests: New file.
36647         * tests/unicase/test-u16-totitle.c: New file.
36648
36649         Tests for module 'unicase/u8-totitle'.
36650         * modules/unicase/u8-totitle-tests: New file.
36651         * tests/unicase/test-u8-totitle.c: New file.
36652
36653         New module 'unicase/u32-totitle'.
36654         * lib/unicase/u32-totitle.c: New file.
36655         * modules/unicase/u32-totitle: New file.
36656
36657         New module 'unicase/u16-totitle'.
36658         * lib/unicase/u16-totitle.c: New file.
36659         * modules/unicase/u16-totitle: New file.
36660
36661         New module 'unicase/u8-totitle'.
36662         * lib/unicase/u8-totitle.c: New file.
36663         * lib/unicase/u-totitle.h: New file.
36664         * modules/unicase/u8-totitle: New file.
36665
36666         Tests for module 'unicase/u32-tolower'.
36667         * modules/unicase/u32-tolower-tests: New file.
36668         * tests/unicase/test-u32-tolower.c: New file.
36669
36670         Tests for module 'unicase/u16-tolower'.
36671         * modules/unicase/u16-tolower-tests: New file.
36672         * tests/unicase/test-u16-tolower.c: New file.
36673
36674         Tests for module 'unicase/u8-tolower'.
36675         * modules/unicase/u8-tolower-tests: New file.
36676         * tests/unicase/test-u8-tolower.c: New file.
36677
36678         New module 'unicase/u32-tolower'.
36679         * lib/unicase/u32-tolower.c: New file.
36680         * modules/unicase/u32-tolower: New file.
36681
36682         New module 'unicase/u16-tolower'.
36683         * lib/unicase/u16-tolower.c: New file.
36684         * modules/unicase/u16-tolower: New file.
36685
36686         New module 'unicase/u8-tolower'.
36687         * lib/unicase/u8-tolower.c: New file.
36688         * modules/unicase/u8-tolower: New file.
36689
36690         Tests for module 'unicase/u32-toupper'.
36691         * modules/unicase/u32-toupper-tests: New file.
36692         * tests/unicase/test-u32-toupper.c: New file.
36693
36694         Tests for module 'unicase/u16-toupper'.
36695         * modules/unicase/u16-toupper-tests: New file.
36696         * tests/unicase/test-u16-toupper.c: New file.
36697
36698         Tests for module 'unicase/u8-toupper'.
36699         * modules/unicase/u8-toupper-tests: New file.
36700         * tests/unicase/test-u8-toupper.c: New file.
36701
36702         New module 'unicase/u32-toupper'.
36703         * lib/unicase/u32-toupper.c: New file.
36704         * modules/unicase/u32-toupper: New file.
36705
36706         New module 'unicase/u16-toupper'.
36707         * lib/unicase/u16-toupper.c: New file.
36708         * modules/unicase/u16-toupper: New file.
36709
36710         New module 'unicase/u8-toupper'.
36711         * lib/unicase/u8-toupper.c: New file.
36712         * modules/unicase/u8-toupper: New file.
36713
36714         New module 'unicase/u32-casemap'.
36715         * lib/unicase/u32-casemap.c: New file.
36716         * modules/unicase/u32-casemap: New file.
36717
36718         New module 'unicase/u16-casemap'.
36719         * lib/unicase/u16-casemap.c: New file.
36720         * modules/unicase/u16-casemap: New file.
36721
36722         New module 'unicase/u8-casemap'.
36723         * lib/unicase/unicasemap.h: New file.
36724         * lib/unicase/u8-casemap.c: New file.
36725         * lib/unicase/u-casemap.h: New file.
36726         * modules/unicase/u8-casemap: New file.
36727
36728         New module 'unicase/special-casing'.
36729         * lib/unicase/special-casing.h: New file.
36730         * lib/unicase/special-casing.c: New file.
36731         * lib/unicase/special-casing-table.gperf: New file, generated by
36732         gen-uni-tables.c.
36733         * modules/unicase/special-casing: New file.
36734
36735         Tests for module 'unicase/locale-language'.
36736         * modules/unicase/locale-language-tests: New file.
36737         * tests/unicase/test-locale-language.sh: New file.
36738         * tests/unicase/test-locale-language.c: New file.
36739
36740         New module 'unicase/locale-language'.
36741         * lib/unicase/locale-language.c: New file.
36742         * lib/unicase/locale-languages.gperf: New file.
36743         * modules/unicase/locale-language: New file.
36744
36745         Generate more tables for case conversion and case folding.
36746         * lib/gen-uni-tables.c (SCC_*): New enum items.
36747         (struct special_casing_rule): New type.
36748         (casing_rules, num_casing_rules, allocated_casing_rules): New
36749         variables.
36750         (add_casing_rule, fill_casing_rules): New functions.
36751         (struct casefold_rule): New type.
36752         (casefolding_rules, num_casefolding_rules,
36753         allocated_casefolding_rules): New variables.
36754         (fill_casefolding_rules): New function.
36755         (unicode_casefold): New variable.
36756         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
36757         sort_casing_rules, output_casing_rules): New functions.
36758         (main): Accept to more arguments: SpecialCasing.txt and
36759         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
36760         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
36761         Output mapping for casefolding.
36762
36763         * lib/unicase.h: Include stdbool.h, uninorm.h.
36764         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
36765         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
36766         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
36767         arguments.
36768         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
36769         resultp arguments.
36770         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
36771         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
36772         resultp arguments.
36773         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
36774         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
36775         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
36776         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
36777         declarations.
36778         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
36779
36780 2009-03-08  Bruno Haible  <bruno@clisp.org>
36781
36782         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36783         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
36784         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
36785         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36786
36787 2009-03-07  Bruno Haible  <bruno@clisp.org>
36788
36789         Adjust u*_normcmp, u*_normcoll API.
36790         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36791         u16_normcoll, u32_normcoll): Change failure conventions.
36792         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
36793         errno and return -1.
36794         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36795
36796 2009-03-07  Bruno Haible  <bruno@clisp.org>
36797
36798         Tests for module 'uninorm/u32-normcoll'.
36799         * modules/uninorm/u32-normcoll-tests: New file.
36800         * tests/uninorm/test-u32-normcoll.c: New file.
36801
36802         Tests for module 'uninorm/u16-normcoll'.
36803         * modules/uninorm/u16-normcoll-tests: New file.
36804         * tests/uninorm/test-u16-normcoll.c: New file.
36805
36806         Tests for module 'uninorm/u8-normcoll'.
36807         * modules/uninorm/u8-normcoll-tests: New file.
36808         * tests/uninorm/test-u8-normcoll.c: New file.
36809
36810 2009-03-07  Bruno Haible  <bruno@clisp.org>
36811
36812         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
36813         tests/uninorm/test-u32-normcmp.c.
36814         * tests/uninorm/test-u32-normcmp.c: Include it.
36815         (test_nonascii): New function, extracted from main. Add some more
36816         tests.
36817         (main): Invoke test_ascii and test_nonascii.
36818         * modules/uninorm/u32-normcmp-tests (Files): Add
36819         tests/uninorm/test-u32-normcmp.h.
36820         (Depends-on): Remove uninorm/u32-normcmp.
36821
36822         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
36823         tests/uninorm/test-u16-normcmp.c.
36824         * tests/uninorm/test-u16-normcmp.c: Include it.
36825         (test_nonascii): New function, extracted from main. Add some more
36826         tests.
36827         (main): Invoke test_ascii and test_nonascii.
36828         * modules/uninorm/u16-normcmp-tests (Files): Add
36829         tests/uninorm/test-u16-normcmp.h.
36830         (Depends-on): Remove uninorm/u16-normcmp.
36831
36832         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
36833         tests/uninorm/test-u8-normcmp.c.
36834         * tests/uninorm/test-u8-normcmp.c: Include it.
36835         (test_nonascii): New function, extracted from main. Add some more
36836         tests.
36837         (main): Invoke test_ascii and test_nonascii.
36838         * modules/uninorm/u8-normcmp-tests (Files): Add
36839         tests/uninorm/test-u8-normcmp.h.
36840         (Depends-on): Remove uninorm/u8-normcmp.
36841
36842 2009-03-07  Bruno Haible  <bruno@clisp.org>
36843
36844         New module 'uninorm/u32-normcoll'.
36845         * lib/uninorm/u32-normcoll.c: New file.
36846         * modules/uninorm/u32-normcoll: New file.
36847
36848         New module 'uninorm/u16-normcoll'.
36849         * lib/uninorm/u16-normcoll.c: New file.
36850         * modules/uninorm/u16-normcoll: New file.
36851
36852         New module 'uninorm/u8-normcoll'.
36853         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
36854         declarations.
36855         * lib/uninorm/u8-normcoll.c: New file.
36856         * lib/uninorm/u-normcoll.h: New file.
36857         * modules/uninorm/u8-normcoll: New file.
36858
36859         New module 'uninorm/u32-normxfrm'.
36860         * lib/uninorm/u32-normxfrm.c: New file.
36861         * modules/uninorm/u32-normxfrm: New file.
36862
36863         New module 'uninorm/u16-normxfrm'.
36864         * lib/uninorm/u16-normxfrm.c: New file.
36865         * modules/uninorm/u16-normxfrm: New file.
36866
36867         New module 'uninorm/u8-normxfrm'.
36868         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
36869         declarations.
36870         * lib/uninorm/u8-normxfrm.c: New file.
36871         * lib/uninorm/u-normxfrm.h: New file.
36872         * modules/uninorm/u8-normxfrm: New file.
36873
36874 2009-03-07  Bruno Haible  <bruno@clisp.org>
36875
36876         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
36877         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
36878         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
36879
36880 2009-03-07  Bruno Haible  <bruno@clisp.org>
36881
36882         New module 'memxfrm'.
36883         * lib/memxfrm.h: New file.
36884         * lib/memxfrm.c: New file.
36885         * modules/memxfrm: New file.
36886
36887 2009-03-07  Bruno Haible  <bruno@clisp.org>
36888
36889         New module 'memcmp2'.
36890         * lib/memcmp2.h: New file.
36891         * lib/memcmp2.c: New file.
36892         * modules/memcmp2: New file.
36893
36894 2009-03-07  Bruno Haible  <bruno@clisp.org>
36895
36896         Tests for module 'uninorm/decomposing-form'.
36897         * modules/uninorm/decomposing-form-tests: New file.
36898         * tests/uninorm/test-decomposing-form.c: New file.
36899
36900         New module 'uninorm/decomposing-form'.
36901         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
36902         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
36903         Add 'decomposing_variant' field.
36904         * lib/uninorm/decomposing-form.c: New file.
36905         * lib/uninorm/nfc.c (uninorm_nfc): Update.
36906         * lib/uninorm/nfd.c (uninorm_nfd): Update.
36907         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
36908         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
36909         * modules/uninorm/decomposing-form: New file.
36910         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
36911         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
36912
36913 2009-03-07  Bruno Haible  <bruno@clisp.org>
36914
36915         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
36916         strings.
36917
36918 2009-03-06  Bruno Haible  <bruno@clisp.org>
36919
36920         Tests for module 'uninorm/u32-normcmp'.
36921         * tests/uninorm/test-u32-normcmp.c: New file.
36922         * modules/uninorm/u32-normcmp-tests: New file.
36923
36924         Tests for module 'uninorm/u16-normcmp'.
36925         * tests/uninorm/test-u16-normcmp.c: New file.
36926         * modules/uninorm/u16-normcmp-tests: New file.
36927
36928         Tests for module 'uninorm/u8-normcmp'.
36929         * tests/uninorm/test-u8-normcmp.c: New file.
36930         * modules/uninorm/u8-normcmp-tests: New file.
36931
36932         New module 'uninorm/u32-normcmp'.
36933         * lib/uninorm/u32-normcmp.c: New file.
36934         * modules/uninorm/u32-normcmp: New file.
36935
36936         New module 'uninorm/u16-normcmp'.
36937         * lib/uninorm/u16-normcmp.c: New file.
36938         * modules/uninorm/u16-normcmp: New file.
36939
36940         New module 'uninorm/u8-normcmp'.
36941         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
36942         declarations.
36943         * lib/uninorm/u8-normcmp.c: New file.
36944         * lib/uninorm/u-normcmp.h: New file.
36945         * modules/uninorm/u8-normcmp: New file.
36946
36947 2009-03-06  Bruno Haible  <bruno@clisp.org>
36948
36949         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
36950         Reported by Eric Blake.
36951
36952 2009-03-06  Eric Blake  <ebb9@byu.net>
36953             Bruno Haible  <bruno@clisp.org>
36954
36955         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
36956         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
36957         condition.
36958         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
36959         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
36960         condition.
36961         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
36962
36963 2009-03-06  Eric Blake  <ebb9@byu.net>
36964
36965         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
36966         to avoid compiler warnings.
36967         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
36968
36969 2009-03-05  Bruno Haible  <bruno@clisp.org>
36970
36971         * tests/test-ftell.c (main): Disable test beyond end of file on
36972         FreeMiNT.
36973         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
36974
36975 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
36976
36977         * lib/filevercmp.c: Move hidden files up in ordering.
36978         * tests/test-filevercmp.c: Add tests for hidden files.
36979
36980 2009-03-04  Bruno Haible  <bruno@clisp.org>
36981
36982         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
36983         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
36984         AM_CFLAGS.
36985         Reported by Simon Josefsson.
36986
36987 2009-03-03  Bruno Haible  <bruno@clisp.org>
36988
36989         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
36990         Reported by Simon Josefsson.
36991
36992         * doc/ld-version-script.texi: Update node reference.
36993
36994 2009-03-03  Bruno Haible  <bruno@clisp.org>
36995
36996         * modules/visibility (License): Change to 'unlimited'.
36997         Suggested by Simon Josefsson.
36998
36999 2009-03-03  Jim Meyering  <meyering@redhat.com>
37000
37001         unlinkdir: cannot_unlink_dir may modify process state
37002         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
37003         it's neither thread-safe nor appropriate for use in a library.
37004
37005 2009-03-03  Eric Blake  <ebb9@byu.net>
37006
37007         test-closein: silence test under Darwin
37008         * tests/test-closein.sh: Ignore stderr from cat, since we don't
37009         care if it dies from EPIPE or EBADF.
37010
37011 2009-03-03  Bruno Haible  <bruno@clisp.org>
37012
37013         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
37014         earlier.
37015         * doc/visibility.texi: Fix @node and @section.
37016
37017 2009-03-03  Simon Josefsson  <simon@josefsson.org>
37018
37019         * doc/gnulib.texi: Link to sections for ld version script and
37020         visibility.
37021         * doc/visibility.texi: Add @node and @section.
37022         * modules/ld-version-script: New module.
37023         * m4/ld-version-script.m4: New file.
37024         * doc/ld-version-script.texi: New file.
37025
37026 2009-03-02  David Lutterkort  <lutter@redhat.com>
37027
37028         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
37029         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37030
37031 2009-03-02  Bruno Haible  <bruno@clisp.org>
37032
37033         * doc/visibility.texi: Mention libtool's -export-symbols option.
37034
37035 2009-03-02  Jim Meyering  <meyering@redhat.com>
37036
37037         announce-gen: new option: --no-print-checksums
37038         * build-aux/announce-gen (usage): Describe it.
37039         (print_checksums): Print a newline here, not in the [*] footnote.
37040         (main): Honor it.
37041
37042 2009-03-01  Bruno Haible  <bruno@clisp.org>
37043
37044         Use socklen_t in the native Windows replacements prototypes.
37045         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
37046         instead of 'int'.
37047         * lib/getsockopt.c (rpl_getsockopt): Likewise.
37048         * lib/setsockopt.c (rpl_setsockopt): Likewise.
37049         * modules/getsockopt (Depends-on): Add socklen.
37050         * modules/setsockopt (Depends-on): Add socklen.
37051
37052 2009-03-01  Bruno Haible  <bruno@clisp.org>
37053
37054         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
37055         least 4.2.
37056
37057 2009-03-01  Eric Blake  <ebb9@byu.net>
37058             Bruno Haible  <bruno@clisp.org>
37059
37060         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
37061         error messages.
37062         * lib/wait-process.c (wait_subprocess): Omit error message about
37063         deadly signal sent to the child of termsigp != NULL.
37064
37065 2009-03-01  Eric Blake  <ebb9@byu.net>
37066
37067         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
37068
37069 2009-03-01  Bruno Haible  <bruno@clisp.org>
37070
37071         Avoid a gcc warning.
37072         * tests/test-sched.c (b): Make global.
37073         Reported by Eric Blake.
37074
37075 2009-01-19  Martin Lambers  <marlam@marlam.de>
37076
37077         Provide POSIX semantics for socket timeout options on W32.
37078         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
37079         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
37080         * modules/setsockopt: Depend on sys_time module for struct timeval.
37081         * modules/getsockopt: Depend on sys_time module for struct timeval.
37082
37083 2009-03-01  Simon Josefsson  <simon@josefsson.org>
37084
37085         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
37086         __USE_GNU, for consistency with netdb.in.h.
37087         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37088
37089 2009-03-01  Bruno Haible  <bruno@clisp.org>
37090
37091         More support for FreeMiNT.
37092         * lib/fseeko.c (rpl_fseeko): Complete last commit.
37093         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37094
37095 2009-03-01  Bruno Haible  <bruno@clisp.org>
37096
37097         More support for FreeMiNT.
37098         * lib/fpurge.c (fpurge): Correct last commit.
37099         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37100
37101 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37102
37103         Fix unportable awk script in vc-list-files.
37104         * build-aux/vc-list-files: In the replacement awk script, use
37105         substr with a second argument of 1, not zero.
37106         Report by Simon Josefsson.
37107
37108 2009-02-28  Bruno Haible  <bruno@clisp.org>
37109
37110         More support for FreeMiNT.
37111         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
37112         to FreeMiNT today.
37113         * lib/fwriting.c (fwriting): Likewise.
37114         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
37115
37116 2009-02-28  Bruno Haible  <bruno@clisp.org>
37117
37118         * tests/test-freadseek.c (main): Disable test beyond end of file on
37119         FreeMiNT.
37120         * tests/test-ftello.c (main): Likewise.
37121         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
37122
37123 2009-02-28  Bruno Haible  <bruno@clisp.org>
37124
37125         Add tentative support for FreeMiNT.
37126         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
37127         * lib/fpurge.c (fpurge): Likewise.
37128         * lib/freadable.c (freadable): Likewise.
37129         * lib/freading.c (freading): Likewise.
37130         * lib/freadptr.c (freadptr): Likewise.
37131         * lib/freadseek.c (freadptrinc): Likewise.
37132         * lib/fseeko.c (rpl_fseeko): Likewise.
37133         * lib/fseterr.c (fseterr): Likewise.
37134         * lib/fwritable.c (fwritable): Likewise.
37135         * lib/fwriting.c (fwriting): Likewise.
37136         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
37137         Hourihane.
37138         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37139
37140 2009-02-28  Bruno Haible  <bruno@clisp.org>
37141
37142         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
37143         SIGCHLD.
37144         Reported by Jim Meyering.
37145
37146 2009-02-28  Bruno Haible  <bruno@clisp.org>
37147
37148         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
37149         Mention the results of these tests on various platforms.
37150         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
37151         order.
37152         * doc/posix-functions/printf.texi: Likewise.
37153         * doc/posix-functions/snprintf.texi: Likewise.
37154         * doc/posix-functions/sprintf.texi: Likewise.
37155         * doc/posix-functions/vfprintf.texi: Likewise.
37156         * doc/posix-functions/vprintf.texi: Likewise.
37157         * doc/posix-functions/vsnprintf.texi: Likewise.
37158         * doc/posix-functions/vsprintf.texi: Likewise.
37159         * doc/glibc-functions/obstack_printf.texi: Likewise.
37160         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
37161
37162 2009-02-28  Bruno Haible  <bruno@clisp.org>
37163
37164         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
37165         Reported by Loïc Minier <lool@dooz.org>.
37166
37167 2009-02-27  Bruno Haible  <bruno@clisp.org>
37168
37169         * gnulib-tool (func_import): Make the sed expression used to create the
37170         sed script for updating the .gitignore file POSIX compliant.
37171         Reported by Eric Blake.
37172
37173 2009-02-27  Bruno Haible  <bruno@clisp.org>
37174
37175         * gnulib-tool (sed): Don't alias as "sed --posix".
37176         Reported by Eric Blake.
37177
37178 2009-02-27  Bruno Haible  <bruno@clisp.org>
37179
37180         Avoid test link errors.
37181         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
37182         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
37183         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
37184         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
37185         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37186
37187 2009-02-27  Bruno Haible  <bruno@clisp.org>
37188
37189         Avoid spurious "(cached)" in configure output.
37190         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
37191         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
37192         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
37193         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
37194         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
37195         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
37196         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
37197         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
37198         Reported by Eric Blake.
37199
37200 2009-02-27  Eric Blake  <ebb9@byu.net>
37201
37202         printf: fix regression in previous patch
37203         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
37204
37205 2009-02-27  Bruno Haible  <bruno@clisp.org>
37206
37207         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
37208         value.
37209         * lib/stdint.in.h: Likewise.
37210         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
37211
37212 2009-02-27  Eric Blake  <ebb9@byu.net>
37213
37214         doc: mention more functions added in cygwin 1.7.0
37215         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
37216         addition.
37217         * doc/posix-functions/open_wmemstream.texi: Likewise.
37218         * doc/posix-functions/wcsnlen.texi: Likewise.
37219         * doc/posix-functions/wcsnrtombs.texi: Likewise.
37220         * doc/posix-functions/wcstod.texi: Likewise.
37221         * doc/posix-functions/wcstof.texi: Likewise.
37222         * doc/posix-functions/wcstoimax.texi: Likewise.
37223         * doc/posix-functions/wcstok.texi: Likewise.
37224         * doc/posix-functions/wcstoumax.texi: Likewise.
37225
37226         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
37227         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
37228         * doc/posix-functions/fprintf.texi: Update.
37229         * doc/posix-functions/printf.texi: Update.
37230         * doc/posix-functions/snprintf.texi: Update.
37231         * doc/posix-functions/sprintf.texi: Update.
37232         * doc/posix-functions/vfprintf.texi: Update.
37233         * doc/posix-functions/vprintf.texi: Update.
37234         * doc/posix-functions/vsnprintf.texi: Update.
37235         * doc/posix-functions/vsprintf.texi: Update.
37236         * doc/glibc-functions/obstack_printf.texi: Update.
37237         * doc/glibc-functions/obstack_vprintf.texi: Update.
37238
37239 2009-02-26  Eric Blake  <ebb9@byu.net>
37240
37241         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
37242         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
37243         compilation bug by using runtime conversion.
37244         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
37245         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
37246         * modules/ceill-tests (Files): Use nan.h.
37247         * modules/floorl-tests (Files): Likewise.
37248         * modules/frexpl-tests (Files): Likewise.
37249         * modules/isnanl-tests (Files): Likewise.
37250         * modules/ldexpl-tests (Files): Likewise.
37251         * modules/roundl-tests (Files): Likewise.
37252         * modules/truncl-tests (Files): Likewise.
37253         * tests/test-ceill.c (main): Use a working NaN.
37254         * tests/test-floorl.c (main): Likewise.
37255         * tests/test-frexpl.c (main): Likewise.
37256         * tests/test-isnan.c (test_long_double): Likewise.
37257         * tests/test-isnanl.h (main): Likewise.
37258         * tests/test-ldexpl.h (main): Likewise.
37259         * tests/test-roundl.h (main): Likewise.
37260         * tests/test-truncl.h (main): Likewise.
37261         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
37262
37263 2009-02-26  Eric Blake  <ebb9@byu.net>
37264             Bruno Haible  <bruno@clisp.org>
37265
37266         Work around a *printf bug with %ls on Solaris.
37267         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
37268         precision is specified, sprintf stops converting the wide string
37269         argument when the number of bytes that have been produced by this
37270         conversion equals or exceeds the precision.
37271         * doc/posix-functions/fprintf.texi: Update.
37272         * doc/posix-functions/printf.texi: Update.
37273         * doc/posix-functions/snprintf.texi: Update.
37274         * doc/posix-functions/sprintf.texi: Update.
37275         * doc/posix-functions/vfprintf.texi: Update.
37276         * doc/posix-functions/vprintf.texi: Update.
37277         * doc/posix-functions/vsnprintf.texi: Update.
37278         * doc/posix-functions/vsprintf.texi: Update.
37279         * doc/glibc-functions/obstack_printf.texi: Update.
37280         * doc/glibc-functions/obstack_vprintf.texi: Update.
37281
37282 2009-02-26  Eric Blake  <ebb9@byu.net>
37283
37284         stdlib: favor compiler check of random.h
37285         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
37286         to avoid an ObjC random.h installed by Swarm.
37287
37288 2009-02-26  Bruno Haible  <bruno@clisp.org>
37289
37290         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
37291         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
37292         Reported by Gary V. Vaughan <gary@gnu.org>.
37293
37294 2009-02-26  Bruno Haible  <bruno@clisp.org>
37295
37296         Fix *printf behaviour regarding the %ls directive.
37297         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
37298         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
37299         NEED_PRINTF_DIRECTIVE_LS.
37300         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
37301         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
37302         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37303         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
37304         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
37305         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
37306         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
37307         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37308         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37309         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37310         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37311         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
37312         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37313         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37314         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37315         * doc/posix-functions/fprintf.texi: Update.
37316         * doc/posix-functions/printf.texi: Update.
37317         * doc/posix-functions/snprintf.texi: Update.
37318         * doc/posix-functions/sprintf.texi: Update.
37319         * doc/posix-functions/vfprintf.texi: Update.
37320         * doc/posix-functions/vprintf.texi: Update.
37321         * doc/posix-functions/vsnprintf.texi: Update.
37322         * doc/posix-functions/vsprintf.texi: Update.
37323         * doc/glibc-functions/obstack_printf.texi: Update.
37324         * doc/glibc-functions/obstack_vprintf.texi: Update.
37325         Reported by Eric Blake.
37326
37327 2009-02-25  Bruno Haible  <bruno@clisp.org>
37328
37329         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
37330         with known value.
37331         Reported by Gary V. Vaughan <gary@gnu.org>.
37332
37333 2009-02-25  Bruno Haible  <bruno@clisp.org>
37334
37335         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
37336         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
37337         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
37338         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
37339         Reported by Gary V. Vaughan <gary@gnu.org>.
37340
37341 2009-02-25  Bruno Haible  <bruno@clisp.org>
37342
37343         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
37344         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
37345         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
37346         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
37347         Reported by Gary V. Vaughan <gary@gnu.org>.
37348
37349 2009-02-25  Eric Blake  <ebb9@byu.net>
37350
37351         tests: skip fseek/ftell tests if ungetc is broken
37352         * m4/ungetc.m4: New file.
37353         * modules/fseek-tests: Split test, so ungetc dependency is
37354         separate from rest of test.
37355         * modules/fseeko-tests: Likewise.
37356         * modules/ftell-tests: Likewise.
37357         * modules/ftello-tests: Likewise.
37358         * tests/test-fseek.c (main): Isolate ungetc dependency.
37359         * tests/test-fseeko.c (main): Likewise.
37360         * tests/test-ftell.c (main): Likewise.
37361         * tests/test-ftello.c (main): Likewise.
37362         * tests/test-fseek2.sh: New file.
37363         * tests/test-fseeko2.sh: Likewise.
37364         * tests/test-ftell2.sh: Likewise.
37365         * tests/test-ftello2.sh: Likewise.
37366
37367 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
37368
37369         test-getaddrinfo: fix usage of skip return code 77
37370         * tests/test-gettaddrinfo.c: Return skip code 77 only
37371         for first occurance of skip (4x77 is not 77)
37372
37373 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
37374
37375         strtod: avoid C99 decl-after-statement
37376         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
37377
37378 2009-02-24  Eric Blake  <ebb9@byu.net>
37379
37380         strtod: detect HP-UX 11.31 bug
37381         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
37382         Reported by Gary V. Vaughan.
37383
37384 2009-02-23  Bruno Haible  <bruno@clisp.org>
37385
37386         Fix invalid read past end of memory block.
37387         * lib/vasnprintf.c (DCHAR_SET): Define.
37388         (local_wcslen): Define only when needed.
37389         (local_strnlen, local_wcsnlen): New functions.
37390         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
37391         directives that involve a conversion ourselves.
37392         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
37393         wcsnlen, mbrtowc, wcrtomb.
37394         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
37395         * tests/test-vasprintf-posix.c (test_function): Likewise.
37396         * tests/test-snprintf-posix.h (test_function): Likewise.
37397         * tests/test-sprintf-posix.h (test_function): Likewise.
37398         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37399
37400 2009-02-22  Bruno Haible  <bruno@clisp.org>
37401
37402         Implement new clarified decomposition of Hangul syllables.
37403         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
37404         of type LTV, return only a pairwise decomposition.
37405         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
37406         Likewise.
37407         * tests/uninorm/test-decomposition.c (main): Updated expected result.
37408         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
37409         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
37410
37411 2009-02-22  Bruno Haible  <bruno@clisp.org>
37412
37413         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
37414         zero-length results and shrink excess allocated memory.
37415         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
37416         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
37417         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
37418         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
37419         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
37420         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
37421         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
37422         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
37423         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
37424         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
37425         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
37426         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
37427
37428 2009-02-21  Bruno Haible  <bruno@clisp.org>
37429
37430         * doc/gnulib.texi: Include safe-alloc.texi earlier.
37431         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
37432         spaces after a period. Put a space between a macro name and its
37433         argument list. Trivial rewordings.
37434         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
37435         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
37436         (main): Return 0 explicitly.
37437
37438 2009-02-21  Bruno Haible  <bruno@clisp.org>
37439
37440         Tests for module 'uninorm/filter'.
37441         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
37442         * modules/uninorm/filter-tests: New file.
37443
37444         New module 'uninorm/filter'.
37445         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
37446         uninorm_filter_flush, uninorm_filter_free): New declarations.
37447         * lib/uninorm/uninorm-filter.c: New file.
37448         * modules/uninorm/filter: New file.
37449
37450 2009-02-21  Bruno Haible  <bruno@clisp.org>
37451
37452         Tests for module 'uninorm/nfkc'.
37453         * tests/uninorm/test-nfkc.c: New file.
37454         * tests/uninorm/test-u8-nfkc.c: New file.
37455         * tests/uninorm/test-u16-nfkc.c: New file.
37456         * tests/uninorm/test-u32-nfkc.c: New file.
37457         * tests/uninorm/test-u32-nfkc-big.sh: New file.
37458         * tests/uninorm/test-u32-nfkc-big.c: New file.
37459         * modules/uninorm/nfkc-tests: New file.
37460
37461         New module 'uninorm/nfkc'.
37462         * lib/uninorm/nfkc.c: New file.
37463         * modules/uninorm/nfkc: New file.
37464
37465         Tests for module 'uninorm/nfkd'.
37466         * tests/uninorm/test-nfkd.c: New file.
37467         * tests/uninorm/test-u8-nfkd.c: New file.
37468         * tests/uninorm/test-u16-nfkd.c: New file.
37469         * tests/uninorm/test-u32-nfkd.c: New file.
37470         * tests/uninorm/test-u32-nfkd-big.sh: New file.
37471         * tests/uninorm/test-u32-nfkd-big.c: New file.
37472         * modules/uninorm/nfkd-tests: New file.
37473
37474         New module 'uninorm/nfkd'.
37475         * lib/uninorm/nfkd.c: New file.
37476         * modules/uninorm/nfkd: New file.
37477
37478         Tests for module 'uninorm/nfc'.
37479         * tests/uninorm/test-nfc.c: New file.
37480         * tests/uninorm/test-u8-nfc.c: New file.
37481         * tests/uninorm/test-u16-nfc.c: New file.
37482         * tests/uninorm/test-u32-nfc.c: New file.
37483         * tests/uninorm/test-u32-nfc-big.sh: New file.
37484         * tests/uninorm/test-u32-nfc-big.c: New file.
37485         * modules/uninorm/nfc-tests: New file.
37486
37487         New module 'uninorm/nfc'.
37488         * lib/uninorm/nfc.c: New file.
37489         * modules/uninorm/nfc: New file.
37490
37491         Tests for module 'uninorm/nfd'.
37492         * tests/uninorm/test-nfd.c: New file.
37493         * tests/uninorm/test-u8-nfd.c: New file.
37494         * tests/uninorm/test-u16-nfd.c: New file.
37495         * tests/uninorm/test-u32-nfd.c: New file.
37496         * tests/uninorm/test-u32-nfd-big.sh: New file.
37497         * tests/uninorm/test-u32-nfd-big.c: New file.
37498         * tests/uninorm/test-u32-normalize-big.h: New file.
37499         * tests/uninorm/test-u32-normalize-big.c: New file.
37500         * tests/uninorm/NormalizationTest.txt: New file, created from
37501         Unicode 5.1.0 NormalizationTest.txt.
37502         * modules/uninorm/nfd-tests: New file.
37503
37504         New module 'uninorm/nfd'.
37505         * lib/uninorm/nfd.c: New file.
37506         * modules/uninorm/nfd: New file.
37507
37508         New module 'uninorm/u32-normalize'.
37509         * lib/uninorm/u32-normalize.c: New file.
37510         * modules/uninorm/u32-normalize: New file.
37511
37512         New module 'uninorm/u16-normalize'.
37513         * lib/uninorm/u16-normalize.c: New file.
37514         * modules/uninorm/u16-normalize: New file.
37515
37516         New module 'uninorm/u8-normalize'.
37517         * lib/uninorm/u8-normalize.c: New file.
37518         * lib/uninorm/normalize-internal.h: New file.
37519         * lib/uninorm/u-normalize-internal.h: New file.
37520         * modules/uninorm/u8-normalize: New file.
37521
37522         New module 'uninorm/decompose-internal'.
37523         * lib/uninorm/decompose-internal.c: New file.
37524         * modules/uninorm/decompose-internal: New file.
37525
37526         Tests for module 'uninorm/composition'.
37527         * tests/uninorm/test-composition.c: New file.
37528         * modules/uninorm/composition-tests: New file.
37529
37530         New module 'uninorm/composition'.
37531         * lib/uninorm/composition.c: New file.
37532         * lib/uninorm/composition-table.gperf: New file, generated by
37533         gen-uni-tables.
37534         * modules/uninorm/composition: New file.
37535
37536         Tests for module 'uninorm/compat-decomposition'.
37537         * tests/uninorm/test-compat-decomposition.c: New file.
37538         * modules/uninorm/compat-decomposition-tests: New file.
37539
37540         New module 'uninorm/compat-decomposition'.
37541         * lib/uninorm/decompose-internal.h: New file.
37542         * lib/uninorm/compat-decomposition.c: New file.
37543         * modules/uninorm/compat-decomposition: New file.
37544
37545         Tests for module 'uninorm/canonical-decomposition'.
37546         * tests/uninorm/test-canonical-decomposition.c: New file.
37547         * modules/uninorm/canonical-decomposition-tests: New file.
37548
37549         New module 'uninorm/canonical-decomposition'.
37550         * lib/uninorm/canonical-decomposition.c: New file.
37551         * modules/uninorm/canonical-decomposition: New file.
37552
37553         Tests for module 'uninorm/decomposition'.
37554         * tests/uninorm/test-decomposition.c: New file.
37555         * modules/uninorm/decomposition-tests: New file.
37556
37557         New module 'uninorm/decomposition'.
37558         * lib/uninorm/decomposition.c: New file.
37559         * modules/uninorm/decomposition: New file.
37560
37561         New module 'uninorm/decomposition-table'.
37562         * lib/uninorm/decomposition-table.h: New file.
37563         * lib/uninorm/decomposition-table.c: New file.
37564         * lib/uninorm/decomposition-table1.h: New file, generated by
37565         gen-uni-tables.
37566         * lib/uninorm/decomposition-table2.h: New file, generated by
37567         gen-uni-tables.
37568         * modules/uninorm/decomposition-table: New file.
37569
37570         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
37571         (UC_DECOMP_*): New enumeration items.
37572         (get_decomposition): New function.
37573         (struct decomp_table): New type.
37574         (output_decomposition, output_decomposition_tables): New functions.
37575         (unicode_composition_exclusions): New variable.
37576         (fill_composition_exclusions, debug_output_composition_tables): New
37577         functions.
37578         (main): Accept one more argument. Invoke fill_composition_exclusions.
37579         Output decomposition and composition tables.
37580
37581         New module 'uninorm/base'.
37582         * lib/uninorm.h: New file.
37583         * lib/unictype.h: Update comment.
37584         * modules/uninorm/base: New file.
37585
37586 2009-02-21  David Lutterkort  <lutter@redhat.com>
37587
37588         Tests for module 'safe-alloc'.
37589         * tests/test-safe-alloc.c: New file.
37590         * modules/safe-alloc-tests: New file.
37591
37592         New module 'safe-alloc'.
37593         * lib/safe-alloc.h: New file.
37594         * lib/safe-alloc.c: New file.
37595         * m4/safe-alloc.m4: New file.
37596         * modules/safe-alloc: New file.
37597         * doc/safe-alloc.texi: New file.
37598         * doc/gnulib.texi: Include it.
37599         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
37600         safe-alloc.
37601
37602 2009-02-18  Bruno Haible  <bruno@clisp.org>
37603
37604         Fix link error on non-glibc systems.
37605         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
37606         variable.
37607         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37608
37609 2009-02-18  Jim Meyering  <meyering@redhat.com>
37610
37611         fts: avoid used-uninitialized error due to recent change
37612         * lib/fts.c (fts_read): Guard uses of the new member,
37613         parent->fts_n_dirs_remaining, since it's not relevant for
37614         the parent of a directory specified on the command-line.
37615
37616 2009-02-17  James Youngman  <jay@gnu.org>
37617             Bruno Haible  <bruno@clisp.org>
37618
37619         * m4/include_next.m4: Reformulate comment.
37620
37621 2009-02-16  Jim Meyering  <meyering@redhat.com>
37622
37623         fts: add #if guards so that the fts_lgpl module still builds
37624         * lib/fts.c: Guard just-added hash-table-using parts with
37625         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
37626         Reported by Simon Josefsson.
37627
37628 2009-02-15  Bruno Haible  <bruno@clisp.org>
37629
37630         * modules/array-mergesort-tests: New file.
37631         * tests/test-array-mergesort.c: New file.
37632
37633         New module 'array-mergesort'.
37634         * modules/array-mergesort: New file.
37635         * lib/array-mergesort.h: New file.
37636
37637 2009-02-15  Bruno Haible  <bruno@clisp.org>
37638
37639         Fix 2009-02-07 commit.
37640         * lib/gen-uni-tables.c (output_predicate, output_category,
37641         output_combclass, output_bidi_category, output_decimal_digit,
37642         output_digit, output_numeric, output_mirror, output_scripts,
37643         output_ident_category, output_simple_mapping): Fix format directives.
37644         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
37645
37646 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
37647
37648         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
37649         fixes are available from IBM.
37650
37651 2009-02-13  Jim Meyering  <meyering@redhat.com>
37652
37653         fts: arrange not to stat non-directories in more cases
37654         This makes GNU find (when it doesn't need to stat each file)
37655         *much* more efficient at traversing reiserfs file systems.
37656         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
37657         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
37658         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
37659         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
37660         (leaf_optimization_applies): New function.
37661         (LCO_hash, LCO_compare): New helper functions.
37662         (link_count_optimize_ok): New function.
37663         (fts_stat): Initialize new member (if dir).
37664         (fts_read): Decrement parent's fts_n_dirs_remaining count if
37665         we've just stat'ed a directory.  Skip the stat call when possible.
37666         ---
37667         Note this AFS-related exchange:
37668         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
37669         and note find's pioctl call in find/fstype.c.
37670         But that is necessary only if you want to enable the
37671         optimization for AFS, and for now, I don't.
37672
37673         fts: move a function definition "up" (no semantic change)
37674         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
37675         "up" to precede upcoming use of a related function.
37676
37677 2009-02-11  Jim Meyering  <meyering@redhat.com>
37678
37679         fts: correct internal computation of nlinks (optimization-related)
37680         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
37681         whether the current entry is a directory, so don't test it.
37682
37683 2009-02-10  Bruno Haible  <bruno@clisp.org>
37684
37685         Tests for module 'uniwbrk/ulc-wordbreaks'.
37686         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
37687         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
37688         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
37689
37690         Tests for module 'uniwbrk/u32-wordbreaks'.
37691         * modules/uniwbrk/u32-wordbreaks-tests: New file.
37692         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
37693
37694         Tests for module 'uniwbrk/u16-wordbreaks'.
37695         * modules/uniwbrk/u16-wordbreaks-tests: New file.
37696         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
37697
37698         Tests for module 'uniwbrk/u8-wordbreaks'.
37699         * modules/uniwbrk/u8-wordbreaks-tests: New file.
37700         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
37701
37702 2009-02-10  Bruno Haible  <bruno@clisp.org>
37703
37704         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
37705         property.
37706         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
37707         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
37708         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
37709
37710 2009-02-10  Simon Josefsson  <simon@josefsson.org>
37711
37712         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
37713         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
37714
37715 2009-02-10  Bruno Haible  <bruno@clisp.org>
37716
37717         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
37718         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
37719         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
37720         * lib/unilbrk/u8-possible-linebreaks.c: Update.
37721         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
37722         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
37723
37724 2009-02-09  Simon Josefsson  <simon@josefsson.org>
37725
37726         * lib/sockets.h (gl_fd_to_handle): New function.
37727
37728         * tests/test-sockets.c: Call gl_fd_to_handle.
37729
37730 2009-02-09  Bruno Haible  <bruno@clisp.org>
37731
37732         * doc/havelib.texi: Document the conventions on bi-arch systems.
37733
37734 2009-02-08  Bruno Haible  <bruno@clisp.org>
37735
37736         Document the AC_LIB_LINKFLAGS macro.
37737         * doc/havelib.texi: New file, mostly written on 2005-05-24.
37738         * doc/gnulib.texi: Include it.
37739
37740 2009-02-08  Bruno Haible  <bruno@clisp.org>
37741
37742         Fix wrong order of sections, compared to TOC.
37743         * doc/gnulib.texi: Include relocatable-maint.texi after the
37744         "Regular expressions" node, not before.
37745
37746 2009-02-08  Bruno Haible  <bruno@clisp.org>
37747
37748         Tests for module 'unicase/totitle'.
37749         * modules/unicase/totitle-tests: New file.
37750
37751         Tests for module 'unicase/tolower'.
37752         * modules/unicase/tolower-tests: New file.
37753
37754         Tests for module 'unicase/toupper'.
37755         * modules/unicase/toupper-tests: New file.
37756         * tests/unicase/test-mapping-part1.h: New file.
37757         * tests/unicase/test-mapping-part2.h: New file.
37758
37759         New module 'unicase/totitle'.
37760         * modules/unicase/totitle: New file.
37761         * lib/unicase/totitle.c: New file.
37762
37763         New module 'unicase/tolower'.
37764         * modules/unicase/tolower: New file.
37765         * lib/unicase/tolower.c: New file.
37766
37767         New module 'unicase/toupper'.
37768         * modules/unicase/toupper: New file.
37769         * lib/unicase/toupper.c: New file.
37770         * lib/unicase/simple-mapping.h: New file.
37771
37772         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
37773         (mapping_table): New structure.
37774         (output_simple_mapping): New function.
37775         (main): Invoke output_simple_mapping_test and output_simple_mapping.
37776         * modules/gen-uni-tables (Description): Update.
37777         * lib/unicase/toupper.h: New file, automatically generated by
37778         gen-uni-tables.
37779         * lib/unicase/tolower.h: New file, automatically generated by
37780         gen-uni-tables.
37781         * lib/unicase/totitle.h: New file, automatically generated by
37782         gen-uni-tables.
37783         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
37784         gen-uni-tables.
37785         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
37786         gen-uni-tables.
37787         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
37788         gen-uni-tables.
37789
37790         New module 'unicase/base'.
37791         * modules/unicase/base: New file.
37792         * lib/unicase.h: New file.
37793
37794 2009-02-08  Bruno Haible  <bruno@clisp.org>
37795
37796         New module 'uniwbrk/ulc-wordbreaks'.
37797         * modules/uniwbrk/ulc-wordbreaks: New file.
37798         * lib/uniwbrk/ulc-wordbreaks.c: New file.
37799
37800         New module 'uniwbrk/u32-wordbreaks'.
37801         * modules/uniwbrk/u32-wordbreaks: New file.
37802         * lib/uniwbrk/u32-wordbreaks.c: New file.
37803
37804         New module 'uniwbrk/u16-wordbreaks'.
37805         * modules/uniwbrk/u16-wordbreaks: New file.
37806         * lib/uniwbrk/u16-wordbreaks.c: New file.
37807
37808         New module 'uniwbrk/u8-wordbreaks'.
37809         * modules/uniwbrk/u8-wordbreaks: New file.
37810         * lib/uniwbrk/u8-wordbreaks.c: New file.
37811         * lib/uniwbrk/u-wordbreaks.h: New file.
37812
37813         New module 'uniwbrk/table'.
37814         * modules/uniwbrk/table: New file.
37815         * lib/uniwbrk/wbrktable.h: New file.
37816         * lib/uniwbrk/wbrktable.c: New file.
37817
37818         New module 'uniwbrk/wordbreak-property'.
37819         * modules/uniwbrk/wordbreak-property: New file.
37820         * lib/uniwbrk/wordbreak-property.c: New file.
37821
37822         * lib/gen-uni-tables.c (WBP_*): New enum items.
37823         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
37824         (unicode_org_wbp): New variable.
37825         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
37826         New functions.
37827         (wbp_table): New structure.
37828         (output_wbp, output_wbrk_tables): New functions.
37829         (main): Accept additional argument. Invoke fill_org_wbp,
37830         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
37831         output_wbrk_tables.
37832         * modules/gen-uni-tables (Description): Update.
37833         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
37834         gen-uni-tables.
37835
37836         New module 'uniwbrk/base'.
37837         * modules/uniwbrk/base: New file.
37838         * lib/uniwbrk.h: New file.
37839
37840 2009-02-08  Bruno Haible  <bruno@clisp.org>
37841
37842         Update to Unicode 5.1.0.
37843         * lib/gen-uni-tables.c (is_property_alphabetic): Include
37844         U+2185..U+2188.
37845         (is_property_default_ignorable_code_point): Don't include characters
37846         of category Cc or Cs and not-a-characters.
37847         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
37848         U+0D79, U+109E, U+109F, U+A60C.
37849         * lib/unictype/bidi_of.h: Regenerated.
37850         * lib/unictype/blocks.h: Regenerated.
37851         * lib/unictype/categ_C.h: Regenerated.
37852         * lib/unictype/categ_Cf.h: Regenerated.
37853         * lib/unictype/categ_Cn.h: Regenerated.
37854         * lib/unictype/categ_L.h: Regenerated.
37855         * lib/unictype/categ_Ll.h: Regenerated.
37856         * lib/unictype/categ_Lm.h: Regenerated.
37857         * lib/unictype/categ_Lo.h: Regenerated.
37858         * lib/unictype/categ_Lu.h: Regenerated.
37859         * lib/unictype/categ_M.h: Regenerated.
37860         * lib/unictype/categ_Mc.h: Regenerated.
37861         * lib/unictype/categ_Me.h: Regenerated.
37862         * lib/unictype/categ_Mn.h: Regenerated.
37863         * lib/unictype/categ_N.h: Regenerated.
37864         * lib/unictype/categ_Nd.h: Regenerated.
37865         * lib/unictype/categ_Nl.h: Regenerated.
37866         * lib/unictype/categ_No.h: Regenerated.
37867         * lib/unictype/categ_P.h: Regenerated.
37868         * lib/unictype/categ_Pd.h: Regenerated.
37869         * lib/unictype/categ_Pe.h: Regenerated.
37870         * lib/unictype/categ_Pf.h: Regenerated.
37871         * lib/unictype/categ_Pi.h: Regenerated.
37872         * lib/unictype/categ_Po.h: Regenerated.
37873         * lib/unictype/categ_Ps.h: Regenerated.
37874         * lib/unictype/categ_S.h: Regenerated.
37875         * lib/unictype/categ_Sk.h: Regenerated.
37876         * lib/unictype/categ_Sm.h: Regenerated.
37877         * lib/unictype/categ_So.h: Regenerated.
37878         * lib/unictype/categ_of.h: Regenerated.
37879         * lib/unictype/combining.h: Regenerated.
37880         * lib/unictype/ctype_alnum.h: Regenerated.
37881         * lib/unictype/ctype_alpha.h: Regenerated.
37882         * lib/unictype/ctype_graph.h: Regenerated.
37883         * lib/unictype/ctype_lower.h: Regenerated.
37884         * lib/unictype/ctype_print.h: Regenerated.
37885         * lib/unictype/ctype_punct.h: Regenerated.
37886         * lib/unictype/ctype_upper.h: Regenerated.
37887         * lib/unictype/decdigit.h: Regenerated.
37888         * lib/unictype/digit.h: Regenerated.
37889         * lib/unictype/mirror.h: Regenerated.
37890         * lib/unictype/numeric.h: Regenerated.
37891         * lib/unictype/pr_alphabetic.h: Regenerated.
37892         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
37893         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
37894         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
37895         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
37896         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
37897         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
37898         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
37899         * lib/unictype/pr_combining.h: Regenerated.
37900         * lib/unictype/pr_dash.h: Regenerated.
37901         * lib/unictype/pr_decimal_digit.h: Regenerated.
37902         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
37903         * lib/unictype/pr_deprecated.h: Regenerated.
37904         * lib/unictype/pr_diacritic.h: Regenerated.
37905         * lib/unictype/pr_extender.h: Regenerated.
37906         * lib/unictype/pr_format_control.h: Regenerated.
37907         * lib/unictype/pr_grapheme_base.h: Regenerated.
37908         * lib/unictype/pr_grapheme_extend.h: Regenerated.
37909         * lib/unictype/pr_grapheme_link.h: Regenerated.
37910         * lib/unictype/pr_id_continue.h: Regenerated.
37911         * lib/unictype/pr_id_start.h: Regenerated.
37912         * lib/unictype/pr_ideographic.h: Regenerated.
37913         * lib/unictype/pr_ignorable_control.h: Regenerated.
37914         * lib/unictype/pr_lowercase.h: Regenerated.
37915         * lib/unictype/pr_math.h: Regenerated.
37916         * lib/unictype/pr_numeric.h: Regenerated.
37917         * lib/unictype/pr_other_alphabetic.h: Regenerated.
37918         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
37919         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
37920         * lib/unictype/pr_other_id_continue.h: Regenerated.
37921         * lib/unictype/pr_other_lowercase.h: Regenerated.
37922         * lib/unictype/pr_other_math.h: Regenerated.
37923         * lib/unictype/pr_punctuation.h: Regenerated.
37924         * lib/unictype/pr_sentence_terminal.h: Regenerated.
37925         * lib/unictype/pr_soft_dotted.h: Regenerated.
37926         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
37927         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
37928         * lib/unictype/pr_unified_ideograph.h: Regenerated.
37929         * lib/unictype/pr_uppercase.h: Regenerated.
37930         * lib/unictype/pr_xid_continue.h: Regenerated.
37931         * lib/unictype/pr_xid_start.h: Regenerated.
37932         * lib/unictype/pr_zero_width.h: Regenerated.
37933         * lib/unictype/scripts.h: Regenerated.
37934         * lib/unictype/scripts_byname.gperf: Regenerated.
37935         * lib/unictype/sy_java_ident.h: Regenerated.
37936         * lib/unilbrk/lbrkprop1.h: Regenerated.
37937         * lib/unilbrk/lbrkprop2.h: Regenerated.
37938         * tests/unictype/test-categ_C.c: Regenerated.
37939         * tests/unictype/test-categ_Cf.c: Regenerated.
37940         * tests/unictype/test-categ_Cn.c: Regenerated.
37941         * tests/unictype/test-categ_L.c: Regenerated.
37942         * tests/unictype/test-categ_Ll.c: Regenerated.
37943         * tests/unictype/test-categ_Lm.c: Regenerated.
37944         * tests/unictype/test-categ_Lo.c: Regenerated.
37945         * tests/unictype/test-categ_Lu.c: Regenerated.
37946         * tests/unictype/test-categ_M.c: Regenerated.
37947         * tests/unictype/test-categ_Mc.c: Regenerated.
37948         * tests/unictype/test-categ_Me.c: Regenerated.
37949         * tests/unictype/test-categ_Mn.c: Regenerated.
37950         * tests/unictype/test-categ_N.c: Regenerated.
37951         * tests/unictype/test-categ_Nd.c: Regenerated.
37952         * tests/unictype/test-categ_Nl.c: Regenerated.
37953         * tests/unictype/test-categ_No.c: Regenerated.
37954         * tests/unictype/test-categ_P.c: Regenerated.
37955         * tests/unictype/test-categ_Pd.c: Regenerated.
37956         * tests/unictype/test-categ_Pe.c: Regenerated.
37957         * tests/unictype/test-categ_Pf.c: Regenerated.
37958         * tests/unictype/test-categ_Pi.c: Regenerated.
37959         * tests/unictype/test-categ_Po.c: Regenerated.
37960         * tests/unictype/test-categ_Ps.c: Regenerated.
37961         * tests/unictype/test-categ_S.c: Regenerated.
37962         * tests/unictype/test-categ_Sk.c: Regenerated.
37963         * tests/unictype/test-categ_Sm.c: Regenerated.
37964         * tests/unictype/test-categ_So.c: Regenerated.
37965         * tests/unictype/test-ctype_alnum.c: Regenerated.
37966         * tests/unictype/test-ctype_alpha.c: Regenerated.
37967         * tests/unictype/test-ctype_graph.c: Regenerated.
37968         * tests/unictype/test-ctype_lower.c: Regenerated.
37969         * tests/unictype/test-ctype_print.c: Regenerated.
37970         * tests/unictype/test-ctype_punct.c: Regenerated.
37971         * tests/unictype/test-ctype_upper.c: Regenerated.
37972         * tests/unictype/test-decdigit.h: Regenerated.
37973         * tests/unictype/test-digit.h: Regenerated.
37974         * tests/unictype/test-numeric.h: Regenerated.
37975         * tests/unictype/test-pr_alphabetic.c: Regenerated.
37976         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
37977         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
37978         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
37979         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
37980         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
37981         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
37982         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
37983         * tests/unictype/test-pr_combining.c: Regenerated.
37984         * tests/unictype/test-pr_dash.c: Regenerated.
37985         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
37986         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
37987         * tests/unictype/test-pr_deprecated.c: Regenerated.
37988         * tests/unictype/test-pr_diacritic.c: Regenerated.
37989         * tests/unictype/test-pr_extender.c: Regenerated.
37990         * tests/unictype/test-pr_format_control.c: Regenerated.
37991         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
37992         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
37993         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
37994         * tests/unictype/test-pr_id_continue.c: Regenerated.
37995         * tests/unictype/test-pr_id_start.c: Regenerated.
37996         * tests/unictype/test-pr_ideographic.c: Regenerated.
37997         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
37998         * tests/unictype/test-pr_lowercase.c: Regenerated.
37999         * tests/unictype/test-pr_math.c: Regenerated.
38000         * tests/unictype/test-pr_numeric.c: Regenerated.
38001         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
38002         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
38003         Regenerated.
38004         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
38005         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
38006         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
38007         * tests/unictype/test-pr_other_math.c: Regenerated.
38008         * tests/unictype/test-pr_punctuation.c: Regenerated.
38009         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
38010         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
38011         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
38012         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
38013         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
38014         * tests/unictype/test-pr_uppercase.c: Regenerated.
38015         * tests/unictype/test-pr_xid_continue.c: Regenerated.
38016         * tests/unictype/test-pr_xid_start.c: Regenerated.
38017         * tests/unictype/test-pr_zero_width.c: Regenerated.
38018
38019         Update to Unicode 5.1.0.
38020         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
38021         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
38022         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
38023         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
38024         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
38025         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
38026         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
38027         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
38028         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
38029         (nonspacing_table_ind): Update.
38030         * tests/uniwidth/test-uc_width2.sh: Update expected result.
38031
38032         Update to Unicode 5.1.0.
38033         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
38034         code transform.
38035         * lib/uniname/uniname.c (unicode_character_name,
38036         unicode_name_character): Add the range 0x1Fxxx to the code transform.
38037         * lib/uniname/uninames.h: Regenerated.
38038         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
38039
38040 2009-02-07  Bruno Haible  <bruno@clisp.org>
38041
38042         Merge gen-ctype and gen-lbrk into a single program.
38043         * lib/gen-uni-tables.c: New file, incorporating
38044         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
38045         Add directory prefixes to the names of the generated files.
38046         * lib/unictype/gen-ctype.c: Remove file.
38047         * lib/unilbrk/gen-lbrk.c: Remove file.
38048         * modules/gen-uni-tables: New file.
38049         * modules/unictype/gen-ctype: Remove file.
38050         * modules/unilbrk/gen-lbrk: Remove file.
38051
38052 2009-02-07  Bruno Haible  <bruno@clisp.org>
38053
38054         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
38055
38056         New module 'unistr/u32-strcoll'.
38057         * modules/unistr/u32-strcoll: New file.
38058         * lib/unistr/u32-strcoll.c: New file.
38059
38060         New module 'unistr/u16-strcoll'.
38061         * modules/unistr/u16-strcoll: New file.
38062         * lib/unistr/u16-strcoll.c: New file.
38063
38064         New module 'unistr/u8-strcoll'.
38065         * modules/unistr/u8-strcoll: New file.
38066         * lib/unistr/u8-strcoll.c: New file.
38067         * lib/unistr/u-strcoll.h: New file.
38068
38069 2009-02-07  Bruno Haible  <bruno@clisp.org>
38070
38071         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
38072         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
38073         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
38074         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
38075         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
38076         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
38077
38078 2009-02-07  Bruno Haible  <bruno@clisp.org>
38079
38080         Make 64-bit clean.
38081         * lib/unictype/gen-ctype.c (output_predicate, output_category,
38082         output_combclass, output_bidi_category, output_decimal_digit,
38083         output_digit, output_numeric, output_mirror, output_scripts,
38084         output_ident_category): Use proper width specifier in format strings.
38085
38086 2009-02-07  Bruno Haible  <bruno@clisp.org>
38087
38088         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
38089         failure behaviour.
38090
38091 2009-02-07  Jim Meyering  <meyering@redhat.com>
38092
38093         regex: avoid compilation failure with upcoming gcc-4.4
38094         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
38095         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
38096         "... error: integer overflow in preprocessor expression".
38097
38098 2009-02-05  Ben Pfaff  <blp@gnu.org>
38099
38100         Fix link errors on Windows when close module is used.
38101         * modules/close: Add $(LIB_CLOSE) to Link section.
38102         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
38103         $(LIB_CLOSE) on Windows.
38104
38105 2009-02-05  Jim Meyering  <meyering@redhat.com>
38106
38107         still avoid unused-parameter warnings, but do it cleanly
38108         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
38109         (get_fs_usage): Cast to void instead.
38110         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
38111         (dev_from_mount_options, read_file_system_list): Cast to void.
38112         Prompted by Bruno Haible.
38113
38114 2009-02-04  Jim Meyering  <meyering@redhat.com>
38115
38116         fsusage.c: correct copyright year
38117         * lib/fsusage.c: Reflect year in which the change is pushed into
38118
38119         avoid misc. warnings
38120         * lib/fsusage.c (UNUSED_PARAM): Define.
38121         (get_fs_usage): Mark parameter "disk" as unused.
38122         * lib/getugroups.c (getgrent): Use "void" in prototype.
38123         * lib/mountlist.c: Mark unused parameters.
38124         (read_file_system_list): Declare a local with "const".
38125         * lib/nanosleep.c (getnow): Declare static.
38126         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
38127
38128         dirfd: set errno upon failure
38129         * lib/dirfd.c: Include <errno.h>.
38130         Set errno to ENOTSUP when returning -1.
38131         * modules/dirfd (Depends-on): Add errno.
38132         Suggested by John Kodis <kodis@comcast.net>.
38133
38134 2009-02-01  Bruno Haible  <bruno@clisp.org>
38135
38136         Don't assume sizeof (long) >= sizeof (void *).
38137         * lib/memcmp.c: Include stdint.h.
38138         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
38139         srcp2 to 'const byte *'.
38140         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
38141         types to uintptr_t.
38142         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
38143         * modules/memcmp (Depends-on): Add stdint.
38144         Reported by Ozkan Sezer <sezeroz@gmail.com>.
38145
38146 2009-01-30  Eric Blake  <ebb9@byu.net>
38147
38148         fix more require-before-expand issues
38149         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
38150         expand, AC_PROG_AWK.
38151         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
38152
38153 2009-01-28  Eric Blake  <ebb9@byu.net>
38154
38155         version-etc: use consistent URL formatting
38156         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
38157         Improve formatting.  Use fputs for string without %.
38158
38159 2009-01-28  Jim Meyering  <meyering@redhat.com>
38160
38161         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
38162         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
38163         "underquoted definition of NAME" from autoconf-2.59.
38164
38165 2009-01-28  Bruno Haible  <bruno@clisp.org>
38166
38167         * doc/gnulib.texi: Add "Obsolete modules" to index.
38168
38169 2009-01-28  Jim Meyering  <meyering@redhat.com>
38170
38171         useless-if-before-free: recognize more variants
38172         * build-aux/useless-if-before-free: Also recognize e.g.,
38173         if (NULL != p) free (p);
38174
38175 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
38176
38177         test-getaddrinfo: skip (don't fail) this test when there's no network
38178         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
38179         on the presumption that it means you lack network access.
38180
38181 2009-01-26  Jim Meyering  <meyering@redhat.com>
38182
38183         fflush: avoid warnings on modern systems
38184         * lib/fflush.c (rpl_fflush): Move declarations of locals,
38185         pos and result, into scopes where they're used.
38186
38187 2009-01-26  Eric Blake  <ebb9@byu.net>
38188
38189         Silence warning reintroduced by recent extensions patch.
38190         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
38191         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
38192         autoconf.
38193
38194         Backport improved autoconf semantics of AC_DEFUN_ONCE.
38195         * m4/00gnulib.m4: New file.
38196         * gnulib-tool (func_get_filelist): Always use it.
38197         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
38198         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
38199
38200 2009-01-25  Bruno Haible  <bruno@clisp.org>
38201
38202         Make test-quotearg work on MacOS X and AIX.
38203         * tests/test-quotearg.sh: New file.
38204         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
38205         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
38206         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
38207         include <libintl.h>.
38208         (fake_locale): Remove variable.
38209         (gettext, dgettext, dcgettext): Remove functions.
38210         (main): Instead of setting a fake locale, set a real locale. Call
38211         textdomain and bindtextdomain.
38212         * modules/quotearg-tests (Files): Add the new files.
38213         (Depends-on): Add gettext, setenv, unsetenv.
38214         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
38215         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
38216         Augment TESTS_ENVIRONMENT.
38217
38218 2009-01-25  Bruno Haible  <bruno@clisp.org>
38219
38220         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
38221         fr_FR.ISO8859-1 locale on MacOS X.
38222         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
38223         ja_JP.eucJP locale on MacOS X.
38224         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
38225         zh_CN.GB18030 locale on MacOS X.
38226
38227 2009-01-25  Bruno Haible  <bruno@clisp.org>
38228
38229         Avoid link errors on MacOS X 10.3.
38230         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
38231         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
38232
38233 2009-01-25  Bruno Haible  <bruno@clisp.org>
38234
38235         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
38236         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
38237         * modules/pipe (Files): Remove m4/posix_spawn.m4.
38238         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
38239         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
38240         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
38241         posix_spawnattr_init, posix_spawnattr_setsigmask,
38242         posix_spawnattr_setflags, posix_spawnattr_destroy.
38243
38244         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
38245         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
38246         * modules/execute (Files): Remove m4/posix_spawn.m4.
38247         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
38248         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
38249         posix_spawnattr_init, posix_spawnattr_setsigmask,
38250         posix_spawnattr_setflags, posix_spawnattr_destroy.
38251
38252 2009-01-25  Bruno Haible  <bruno@clisp.org>
38253
38254         * lib/glthread/threadlib.c: Include <stdlib.h>.
38255
38256 2009-01-25  Bruno Haible  <bruno@clisp.org>
38257
38258         * lib/glthread/threadlib.c (dummy): New declaration.
38259
38260 2009-01-25  Bruno Haible  <bruno@clisp.org>
38261
38262         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
38263         multibyte characters also for the GB18030 encoding. Don't crash when
38264         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
38265
38266 2009-01-25  Bruno Haible  <bruno@clisp.org>
38267
38268         Avoid redefining 'struct random_data' on OSF/1 5.1.
38269         * lib/stdlib.in.h: Include <random.h> if it exists.
38270         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
38271         HAVE_RANDOM_H. Include <random.h> when testing whether
38272         'struct random_data' exists.
38273         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
38274
38275 2009-01-25  Bruno Haible  <bruno@clisp.org>
38276
38277         Don't install charset.alias on MacOS X >= 10.3.
38278         * lib/localcharset.c (DARWIN7): New macro.
38279         (get_charset_aliases): Hardcode the result for Darwin7.
38280         * modules/localcharset (install-exec-local): Don't install
38281         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
38282
38283 2009-01-25  Bruno Haible  <bruno@clisp.org>
38284
38285         Don't install charset.alias on mingw and Cygwin.
38286         * modules/localcharset (install-exec-local): Don't install
38287         charset.alias on mingw and Cygwin, if the file does not yet exist.
38288         The result for these platforms is hardcoded in localcharset.c.
38289
38290 2009-01-25  Bruno Haible  <bruno@clisp.org>
38291
38292         Make it possible again to use AC_GNU_SOURCE together with gnulib.
38293         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
38294         before requiring AC_USE_SYSTEM_EXTENSIONS.
38295
38296 2009-01-25  Jim Meyering  <meyering@redhat.com>
38297
38298         c-strtod: avoid warnings
38299         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
38300         "assignment discards qualifiers from pointer target type" warnings.
38301
38302 2009-01-24  Bruno Haible  <bruno@clisp.org>
38303
38304         Add support for non-UTF-8 locales on MacOS X.
38305         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
38306         canonical encodings. For Darwin 7 and newer, don't map traditional
38307         encodings to UTF-8.
38308         Reported by Vincent Lefevre <vincent@vinc17.org>
38309         at <http://savannah.gnu.org/bugs/?25235>.
38310
38311 2009-01-24  Bruno Haible  <bruno@clisp.org>
38312
38313         * doc/gnulib.texi (Obsolete modules): New section.
38314         Reported by Mike Frysinger <vapier@gentoo.org>.
38315
38316 2009-01-24  Bruno Haible  <bruno@clisp.org>
38317
38318         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
38319         (%.dvi): New rule.
38320
38321 2009-01-24  Bruno Haible  <bruno@clisp.org>
38322
38323         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
38324         Reported by Eric Blake.
38325
38326 2009-01-24  Bruno Haible  <bruno@clisp.org>
38327
38328         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
38329         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
38330         Reported by Gary V. Vaughan <gary@gnu.org>.
38331
38332 2009-01-24  Bruno Haible  <bruno@clisp.org>
38333
38334         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
38335
38336 2009-01-23  Bruno Haible  <bruno@clisp.org>
38337
38338         Make c-strtod, c-strtold usable in libraries.
38339         * lib/c-strtod.c: Include string.h instead of xalloc.h.
38340         (C_STRTOD): Call strdup instead of xstrdup.
38341         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
38342         * modules/c-strtold (Depends-on): Likewise.
38343         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
38344         * NEWS: Mention the change.
38345         Reported by Michael Gold <mgold@ncf.ca>.
38346
38347 2009-01-23  Jim Meyering  <meyering@redhat.com>
38348
38349         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
38350         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
38351         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
38352
38353 2009-01-23  Simon Josefsson  <simon@josefsson.org>
38354
38355         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
38356         GNU CoreUtils.
38357         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
38358         * modules/version-etc (Description): Update.
38359
38360 2009-01-22  Bruno Haible  <bruno@clisp.org>
38361
38362         Cache the C locale object.
38363         * lib/c-strtod.c (c_locale_cache): New variable.
38364         (c_locale): New function.
38365         (C_STRTOD): Use it, and don't call freelocale.
38366         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
38367         Suggested by Paolo Bonzini.
38368
38369 2009-01-21  Bruno Haible  <bruno@clisp.org>
38370
38371         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
38372         conditions other than overflow.
38373
38374 2009-01-21  Bruno Haible  <bruno@clisp.org>
38375
38376         * lib/c-strtod.c: Include errno.h.
38377         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
38378         value from STRTOD_L and STRTOD.
38379
38380 2009-01-21  Bruno Haible  <bruno@clisp.org>
38381         and Jim Meyering  <meyering@redhat.com>
38382
38383         nanosleep: skip configure test (fail it) for apple universal builds
38384         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
38385         universal builds, assume that nanosleep does not work.
38386         * modules/nanosleep (Depends-on): Add multiarch.
38387
38388         mktime: skip configure test (fail it) for apple universal builds
38389         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
38390         universal builds, assume that mktime does not work.
38391         * modules/mktime (Depends-on): Add multiarch.
38392
38393 2009-01-21  Eric Blake  <ebb9@byu.net>
38394
38395         multiarch: avoid expand-before-require warning
38396         * modules/multiarch (configure.ac): Require, rather than expand,
38397         gl_MULTIARCH.
38398         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
38399         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
38400         enforce that all clients require it.  Partial reversion of
38401         2008-12-29 patch.
38402
38403         error: avoid expand-before-require warning
38404         * modules/errno (configure.ac): Require, rather than expand,
38405         gl_HEADER_ERRNO_H.
38406         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
38407         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
38408         enforce that all clients require it.
38409
38410         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
38411         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
38412         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
38413         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
38414
38415 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
38416
38417         Revert:
38418         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
38419
38420         regex: do not depend on obsolete modules.
38421         * modules/regex: Remove memcmp and memmove.
38422
38423 2009-01-20  Bruno Haible  <bruno@clisp.org>
38424
38425         Make the 'link' module link on Windows NT 4.
38426         * lib/link.c (_WIN32_WINNT): Don't define.
38427         (CreateHardLinkFuncType): New type.
38428         (CreateHardLinkFunc, initialized): New variables.
38429         (initialize): New function.
38430         (link): Invoke CreateHardLink indirectly through the function pointer.
38431
38432 2009-01-20  Bruno Haible  <bruno@clisp.org>
38433
38434         Fix compilation failure on mingw.
38435         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
38436
38437 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
38438
38439         * doc/c-strtod.texi: Mention a couple of restrictions.
38440
38441 2009-01-20  Jim Meyering  <meyering@redhat.com>
38442
38443         gettimeofday: move more declarations out of functions
38444         * lib/gettimeofday.c: Move extern declarations of tzset and
38445         gmtime out of containing functions.  Prompted by Bruno Haible.
38446
38447 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
38448
38449         regex: do not depend on obsolete modules.
38450         * modules/regex: Remove memcmp and memmove.
38451
38452 2009-01-19  Bruno Haible  <bruno@clisp.org>
38453
38454         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
38455         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
38456         gl_BIGENDIAN, not AC_C_BIGENDIAN.
38457         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
38458         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
38459
38460 2009-01-19  Bruno Haible  <bruno@clisp.org>
38461
38462         * tests/test-link.c: Include <errno.h>.
38463         (main): Exit with code 77 when a hard link cannot be created due to
38464         the file system.
38465         * tests/test-link.sh: Skip test when a hard link cannot be created due
38466         to the file system.
38467         Suggested by Eric Blake.
38468
38469 2009-01-19  Martin Lambers  <marlam@marlam.de>
38470
38471         * modules/link-tests: New file.
38472         * tests/test-link.sh: New file.
38473         * tests/test-link.c: New file.
38474
38475 2009-01-19  Eric Blake  <ebb9@byu.net>
38476
38477         doc: mention another function added in cygwin 1.7.0
38478         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
38479         Another new function in cygwin 1.7.
38480
38481 2009-01-19  Bruno Haible  <bruno@clisp.org>
38482
38483         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
38484         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
38485         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
38486         gl_BIGENDIAN, not AC_C_BIGENDIAN.
38487         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
38488         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
38489         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
38490         * m4/md4.m4 (gl_MD4): Likewise.
38491         * m4/md5.m4 (gl_MD5): Likewise.
38492         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
38493         * m4/sha1.m4 (gl_SHA1): Likewise.
38494         * m4/sha256.m4 (gl_SHA256): Likewise.
38495         * m4/sha512.m4 (gl_SHA512): Likewise.
38496
38497 2009-01-19  Bruno Haible  <bruno@clisp.org>
38498
38499         * modules/uniname/uniname-tests (Depends-on): Add progname.
38500         * tests/uniname/test-uninames.c: Include progname.h.
38501         (main): Call set_program_name.
38502
38503         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
38504         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
38505         (main): Call set_program_name.
38506
38507         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
38508         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
38509         (main): Call set_program_name.
38510
38511         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
38512         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
38513         (main): Call set_program_name.
38514
38515         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
38516         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
38517         (main): Call set_program_name.
38518
38519         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
38520         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
38521         (main): Call set_program_name.
38522
38523         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
38524         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
38525         (main): Call set_program_name.
38526
38527         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
38528         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
38529         (main): Call set_program_name.
38530
38531         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
38532         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
38533         (main): Call set_program_name.
38534
38535 2009-01-19  Eric Blake  <ebb9@byu.net>
38536
38537         test-unistd: test previous patch
38538         * tests/test-unistd.c: Test *_FILENO macros.
38539
38540         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
38541         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38542         Guarantee a definition.
38543         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
38544         * modules/unistd-safer (Depends-on): Add dependency on unistd.
38545         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
38546         * lib/dup-safer.c (STDERR_FILENO): Likewise.
38547         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38548         Likewise.
38549         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
38550         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
38551         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38552         Likewise.
38553         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
38554         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
38555         (STDERR_FILENO): Likewise.
38556         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
38557         (STDERR_FILENO): Likewise.
38558         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
38559         (STDERR_FILENO): Likewise.
38560         Reported by Elbert Pol.
38561
38562 2009-01-19  Eric Blake  <ebb9@byu.net>
38563
38564         doc: mention more functions added in cygwin 1.7.0
38565         * doc/posix-functions/abort.texi (abort): Update wording related
38566         to cygwin.
38567         * doc/posix-functions/daylight.texi (daylight): Likewise.
38568         * doc/posix-functions/optarg.texi (optarg): Likewise.
38569         * doc/posix-functions/optarg.texi (opterr): Likewise.
38570         * doc/posix-functions/optarg.texi (optind): Likewise.
38571         * doc/posix-functions/optarg.texi (optopt): Likewise.
38572         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
38573         worked in 1.5.x, and was withdrawn in 1.7.
38574         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
38575         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
38576         cygwin versions.
38577         * doc/posix-functions/perror.texi (perror): Likewise.
38578         * doc/posix-functions/printf.texi (printf): Likewise.
38579         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
38580         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
38581         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
38582         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
38583         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
38584         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
38585         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
38586         Likewise.
38587         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
38588         Likewise.
38589         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
38590         this function.
38591         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
38592         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
38593         Likewise.
38594         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
38595         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
38596         * doc/posix-functions/confstr.texi (confstr): Likewise.
38597         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
38598         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
38599         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
38600         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
38601         * doc/posix-functions/fputws.texi (fputws): Likewise.
38602         * doc/posix-functions/fwide.texi (fwide): Likewise.
38603         * doc/posix-functions/getwc.texi (getwc): Likewise.
38604         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
38605         * doc/posix-functions/putwc.texi (putwc): Likewise.
38606         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
38607         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
38608         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
38609         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
38610         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
38611         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
38612         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
38613         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
38614         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
38615         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
38616         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
38617
38618 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
38619
38620         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
38621         * lib/ioctl.c: Include <sys/ioctl.h>.
38622
38623 2009-01-19  Simon Josefsson  <simon@josefsson.org>
38624
38625         * modules/getdate-tests (Depends-on): Add progname.
38626         * tests/test-getdate.c: Use progname module, to avoid link errors
38627         on non-glibc systems.
38628
38629 2009-01-18  Simon Josefsson  <simon@josefsson.org>
38630
38631         * modules/filenamecat-tests (Depends-on): Add progname.
38632         * modules/fstrcmp-tests (Depends-on): Likewise.
38633
38634         * tests/test-filenamecat.c: Use progname module, to avoid link
38635         errors on non-glibc systems.
38636         * tests/test-fstrcmp.c: Likewise.
38637
38638 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
38639
38640         gettimeofday: avoid warning: nested extern declaration of 'localtime'
38641         * lib/gettimeofday.c: Move extern declaration out of function.
38642
38643 2009-01-18  Bruno Haible  <bruno@clisp.org>
38644
38645         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
38646         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
38647         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
38648
38649 2009-01-18  Bruno Haible  <bruno@clisp.org>
38650
38651         * lib/strftime.c (MEMPCPY): Remove unused macro.
38652         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
38653
38654 2009-01-18  Martin Lambers  <marlam@marlam.de>
38655
38656         New module 'link'.
38657         * lib/unistd.in.h (link): New declaration.
38658         * lib/link.c: New file.
38659         * m4/link.m4: New file.
38660         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
38661         HAVE_LINK.
38662         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
38663         * modules/link: New file.
38664         * doc/posix-functions/link.texi: Mention the new module.
38665
38666 2009-01-18  Bruno Haible  <bruno@clisp.org>
38667
38668         * tests/test-avltree_list.c (main): Call set_program_name.
38669         * tests/test-avltree_oset.c (main): Likewise.
38670         * tests/test-obstack-printf.c: Include progname.h.
38671         (main): Call set_program_name.
38672         * tests/test-quotearg.c: Include progname.h.
38673         (main): Call set_program_name.
38674         * tests/test-xmemdup0.c: Include progname.h.
38675         (main): Call set_program_name.
38676
38677 2009-01-18  Bruno Haible  <bruno@clisp.org>
38678
38679         New module 'alphasort'.
38680         * lib/dirent.in.h (alphasort): New declaration.
38681         * lib/alphasort.c: New file, from glibc with modifications.
38682         * m4/alphasort.m4: New file.
38683         * modules/alphasort: New file.
38684         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
38685         HAVE_ALPHASORT.
38686         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
38687         HAVE_ALPHASORT.
38688         * doc/posix-functions/alphasort.texi: Mention the new module and the
38689         portability problems.
38690
38691 2009-01-18  Bruno Haible  <bruno@clisp.org>
38692
38693         New module 'scandir'.
38694         * lib/dirent.in.h (scandir): New declaration.
38695         * lib/scandir.c: New file, from glibc with modifications.
38696         * m4/scandir.m4: New file.
38697         * modules/scandir: New file.
38698         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
38699         HAVE_SCANDIR.
38700         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
38701         HAVE_SCANDIR.
38702         * doc/posix-functions/scandir.texi: Mention the new module and the
38703         portability problems.
38704
38705 2009-01-17  Bruno Haible  <bruno@clisp.org>
38706
38707         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
38708         Update documentation.
38709         (func_remove_suffix): Escape all dots in the suffix. Update
38710         documentation.
38711         (func_filter_filelist): Update documentation.
38712         Reported by Ralf Wildenhues.
38713
38714 2009-01-17  Bruno Haible  <bruno@clisp.org>
38715
38716         * modules/dprintf-posix-tests: New file.
38717         * tests/test-dprintf-posix.sh: New file.
38718         * tests/test-dprintf-posix.c: New file.
38719
38720         New modules 'dprintf', 'dprintf-posix'.
38721         * lib/stdio.in.h (dprintf): New declaration.
38722         * lib/dprintf.c: New file.
38723         * m4/dprintf.m4: New file.
38724         * m4/dprintf-posix.m4: New file.
38725         * modules/dprintf: New file.
38726         * modules/dprintf-posix: New file.
38727         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
38728         HAVE_DPRINTF, REPLACE_DPRINTF.
38729         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
38730         HAVE_DPRINTF, REPLACE_DPRINTF.
38731         * doc/posix-functions/dprintf.texi: Mention the new modules.
38732
38733 2009-01-17  Bruno Haible  <bruno@clisp.org>
38734
38735         * modules/vdprintf-posix-tests: New file.
38736         * tests/test-vdprintf-posix.sh: New file.
38737         * tests/test-vdprintf-posix.c: New file.
38738
38739         New modules 'vdprintf', 'vdprintf-posix'.
38740         * lib/stdio.in.h (vdprintf): New declaration.
38741         * lib/vdprintf.c: New file.
38742         * m4/vdprintf.m4: New file.
38743         * m4/vdprintf-posix.m4: New file.
38744         * modules/vdprintf: New file.
38745         * modules/vdprintf-posix: New file.
38746         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
38747         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38748         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
38749         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38750         * doc/posix-functions/vdprintf.texi: Mention the new modules.
38751
38752 2009-01-17  Bruno Haible  <bruno@clisp.org>
38753
38754         Fix replacement of fopen on mingw.
38755         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
38756         mingw.
38757
38758 2009-01-17  Bruno Haible  <bruno@clisp.org>
38759
38760         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
38761         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
38762
38763 2009-01-17  Bruno Haible  <bruno@clisp.org>
38764
38765         Avoid test-fflush2.sh failure on mingw.
38766         * tests/test-fflush2.c: Include binary-io.h.
38767         (main): Put standard input into binary mode.
38768         * modules/fflush-tests (Depends-on): Add binary-io.
38769
38770 2009-01-17  Bruno Haible  <bruno@clisp.org>
38771
38772         * lib/wchar.in.h: In another particular situation, include only the
38773         system's <wchar.h> file.
38774         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
38775         Reported by Albert Chin-A-Young <china@thewrittenword.com>
38776         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
38777
38778 2009-01-17  Bruno Haible  <bruno@clisp.org>
38779
38780         Support for stripping executables in --enable-relocatable.
38781         * build-aux/install-reloc: Expect one more argument, or an environment
38782         variable RELOC_STRIP_PROG. If set, strip the destination program and
38783         its wrapper.
38784         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
38785         RELOC_STRIP_PROG.
38786         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
38787         to set RELOCATABLE_STRIP.
38788         * NEWS: Mention the new Makefile requirement.
38789
38790 2009-01-17  Bruno Haible  <bruno@clisp.org>
38791
38792         * build-aux/install-reloc: Remove debugging information left over by
38793         C compiler on MacOS X.
38794
38795 2009-01-17  Bruno Haible  <bruno@clisp.org>
38796
38797         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
38798         * lib/progreloc.c (find_executable): Fix type of pointer passed to
38799         _NSGetExecutablePath.
38800
38801 2009-01-16  Jim Meyering  <meyering@redhat.com>
38802
38803         strerror: avoid warnings about discarding "const"
38804         * lib/strerror.c (rpl_strerror): Instead of returning a const
38805         string from each and every "case", use a variable, and add a single
38806         cast after the switch.
38807
38808 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
38809
38810         * lib/arpa_inet.in.h: Add extern "C" block for C++.
38811
38812 2009-01-16  Bruno Haible  <bruno@clisp.org>
38813
38814         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
38815         array initializer syntax that also works in C++ mode.
38816         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38817
38818 2009-01-16  Jim Meyering  <meyering@redhat.com>
38819
38820         poll: suppress a warning
38821         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
38822         to ignore "...unsigned expression < 0 is always false" warnings.
38823
38824 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
38825
38826         poll: remove declarations of unused variables
38827         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
38828         sockbuf and optlen.
38829
38830 2009-01-15  Bruno Haible  <bruno@clisp.org>
38831
38832         Make fflush-after-ungetc POSIX compliant on BSD systems.
38833         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
38834         (clear_ungetc_buffer): Implement also for other systems.
38835         (rpl_fflush): On glibc systems, invoke
38836         clear_ungetc_buffer_preserving_position. Otherwise, invoke
38837         clear_ungetc_buffer after fetching the stream's position, not before.
38838
38839 2009-01-15  Bruno Haible  <bruno@clisp.org>
38840
38841         Make fflush-after-ungetc POSIX compliant on glibc systems.
38842         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
38843         after ungetc.
38844         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
38845         (rpl_fflush): On glibc systems, simply call the system's fflush
38846         function after clearing the ungetc buffer.
38847         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
38848         Instead, lseek only to the end of file, then use the system's fseeko
38849         for the rest. On glibc systems, reset the EOF indicator bit.
38850
38851 2009-01-15  Jim Meyering  <meyering@redhat.com>
38852
38853         openmp.m4: revert quote-adding change, for portability to older autoconf
38854         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
38855         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
38856         Simon Josefsson noticed the problem when using autoconf-2.61.
38857
38858 2009-01-15  Bruno Haible  <bruno@clisp.org>
38859
38860         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
38861         * tests/test-fflush2.c (ASSERT): Always fail.
38862         (main): Add two tests for fflush() after ungetc(), taking into account
38863         the Austin Group's clarification.
38864         Suggested by Eric Blake.
38865
38866 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
38867
38868         mktime.m4: remove K&R-style function prototypes
38869         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
38870         for the Sun C++ compiler.
38871
38872 2009-01-14  Bruno Haible  <bruno@clisp.org>
38873
38874         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
38875         while including <wchar.h>.
38876         * lib/wchar.in.h: In two particular situations on HP-UX, include only
38877         the system's <wchar.h> file.
38878         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38879
38880 2009-01-14  Bruno Haible  <bruno@clisp.org>
38881
38882         * m4/csharp.m4: Don't mention gettext on the serial number line.
38883         * m4/csharpexec.m4: Likewise.
38884         * m4/eaccess.m4: Likewise.
38885         * m4/javaexec.m4: Likewise.
38886         * m4/sig_atomic_t.m4: Likewise.
38887         * m4/tmpdir.m4: Likewise.
38888         * m4/intldir.m4: Bump gettext version.
38889         * m4/lib-ld.m4: Likewise.
38890
38891 2009-01-14  Bruno Haible  <bruno@clisp.org>
38892
38893         * lib/progname.c (set_program_name): Add more comments.
38894         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
38895
38896 2009-01-14  Simon Josefsson  <simon@josefsson.org>
38897
38898         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
38899         were sys/stat.h does not define it.
38900
38901 2009-01-14  Jim Meyering  <meyering@redhat.com>
38902
38903         many *.m4 files: improve m4 quoting
38904         99% of this change was performed by running the following commands:
38905         git ls-files | grep '\.m4$' | xargs perl -pi \
38906           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
38907           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
38908           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
38909           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
38910         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
38911         The remainder were to add Copyright dates, increment serial numbers,
38912         undo some changes in comments, exclude m4/intl.m4, and add quotes
38913         around the "1" in ",1" where the unusual spacing prohibited the
38914         above regexps from doing the job.  For more details, see
38915         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
38916         * m4/acl.m4: Modified.
38917         * m4/afs.m4: Likewise.
38918         * m4/alloca.m4: Likewise.
38919         * m4/argp.m4: Likewise.
38920         * m4/argz.m4: Likewise.
38921         * m4/atexit.m4: Likewise.
38922         * m4/bison-i18n.m4: Likewise.
38923         * m4/bison.m4: Likewise.
38924         * m4/byteswap.m4: Likewise.
38925         * m4/c-stack.m4: Likewise.
38926         * m4/c-strtod.m4: Likewise.
38927         * m4/calloc.m4: Likewise.
38928         * m4/canonicalize-lgpl.m4: Likewise.
38929         * m4/chown.m4: Likewise.
38930         * m4/clock_time.m4: Likewise.
38931         * m4/codeset.m4: Likewise.
38932         * m4/copy-file.m4: Likewise.
38933         * m4/csharp.m4: Likewise.
38934         * m4/csharpcomp.m4: Likewise.
38935         * m4/csharpexec.m4: Likewise.
38936         * m4/d-ino.m4: Likewise.
38937         * m4/d-type.m4: Likewise.
38938         * m4/dirfd.m4: Likewise.
38939         * m4/double-slash-root.m4: Likewise.
38940         * m4/eaccess.m4: Likewise.
38941         * m4/eealloc.m4: Likewise.
38942         * m4/environ.m4: Likewise.
38943         * m4/errno_h.m4: Likewise.
38944         * m4/euidaccess.m4: Likewise.
38945         * m4/execute.m4: Likewise.
38946         * m4/fatal-signal.m4: Likewise.
38947         * m4/fchdir.m4: Likewise.
38948         * m4/fcntl_h.m4: Likewise.
38949         * m4/fileblocks.m4: Likewise.
38950         * m4/filenamecat.m4: Likewise.
38951         * m4/findprog.m4: Likewise.
38952         * m4/flexmember.m4: Likewise.
38953         * m4/fnmatch.m4: Likewise.
38954         * m4/fopen.m4: Likewise.
38955         * m4/fpending.m4: Likewise.
38956         * m4/fprintf-posix.m4: Likewise.
38957         * m4/free.m4: Likewise.
38958         * m4/frexp.m4: Likewise.
38959         * m4/frexpl.m4: Likewise.
38960         * m4/fsusage.m4: Likewise.
38961         * m4/ftruncate.m4: Likewise.
38962         * m4/gc-camellia.m4: Likewise.
38963         * m4/gc-random.m4: Likewise.
38964         * m4/gc.m4: Likewise.
38965         * m4/getaddrinfo.m4: Likewise.
38966         * m4/getcwd-abort-bug.m4: Likewise.
38967         * m4/getcwd-path-max.m4: Likewise.
38968         * m4/getdate.m4: Likewise.
38969         * m4/getdomainname.m4: Likewise.
38970         * m4/getgroups.m4: Likewise.
38971         * m4/gethostname.m4: Likewise.
38972         * m4/gethrxtime.m4: Likewise.
38973         * m4/getline.m4: Likewise.
38974         * m4/getloadavg.m4: Likewise.
38975         * m4/getndelim2.m4: Likewise.
38976         * m4/getpass.m4: Likewise.
38977         * m4/gettext.m4: Likewise.
38978         * m4/gettime.m4: Likewise.
38979         * m4/gettimeofday.m4: Likewise.
38980         * m4/gnulib-common.m4: Likewise.
38981         * m4/group-member.m4: Likewise.
38982         * m4/host-os.m4: Likewise.
38983         * m4/iconv.m4: Likewise.
38984         * m4/iconv_open.m4: Likewise.
38985         * m4/inet_ntop.m4: Likewise.
38986         * m4/inet_pton.m4: Likewise.
38987         * m4/inline.m4: Likewise.
38988         * m4/intldir.m4: Likewise.
38989         * m4/intlmacosx.m4: Likewise.
38990         * m4/intmax.m4: Likewise.
38991         * m4/intmax_t.m4: Likewise.
38992         * m4/inttypes.m4: Likewise.
38993         * m4/inttypes_h.m4: Likewise.
38994         * m4/inttypes-pri.m4: Likewise.
38995         * m4/isapipe.m4: Likewise.
38996         * m4/isnand.m4: Likewise.
38997         * m4/isnanf.m4: Likewise.
38998         * m4/isnanl.m4: Likewise.
38999         * m4/javacomp.m4: Likewise.
39000         * m4/javaexec.m4: Likewise.
39001         * m4/jm-winsz1.m4: Likewise.
39002         * m4/jm-winsz2.m4: Likewise.
39003         * m4/lchown.m4: Likewise.
39004         * m4/lcmessage.m4: Likewise.
39005         * m4/ldexpl.m4: Likewise.
39006         * m4/lib-ld.m4: Likewise.
39007         * m4/lib-link.m4: Likewise.
39008         * m4/libsigsegv.m4: Likewise.
39009         * m4/link-follow.m4: Likewise.
39010         * m4/localcharset.m4: Likewise.
39011         * m4/locale-fr.m4: Likewise.
39012         * m4/locale-ja.m4: Likewise.
39013         * m4/locale-tr.m4: Likewise.
39014         * m4/locale-zh.m4: Likewise.
39015         * m4/lock.m4: Likewise.
39016         * m4/longlong.m4: Likewise.
39017         * m4/ls-mntd-fs.m4: Likewise.
39018         * m4/lstat.m4: Likewise.
39019         * m4/malloc.m4: Likewise.
39020         * m4/mathl.m4: Likewise.
39021         * m4/mbrtowc.m4: Likewise.
39022         * m4/mbstate_t.m4: Likewise.
39023         * m4/mbswidth.m4: Likewise.
39024         * m4/memchr.m4: Likewise.
39025         * m4/memcmp.m4: Likewise.
39026         * m4/memcpy.m4: Likewise.
39027         * m4/memmem.m4: Likewise.
39028         * m4/memmove.m4: Likewise.
39029         * m4/mempcpy.m4: Likewise.
39030         * m4/memrchr.m4: Likewise.
39031         * m4/memset.m4: Likewise.
39032         * m4/minmax.m4: Likewise.
39033         * m4/mkdir-slash.m4: Likewise.
39034         * m4/mkdtemp.m4: Likewise.
39035         * m4/mktime.m4: Likewise.
39036         * m4/mmap-anon.m4: Likewise.
39037         * m4/mountlist.m4: Likewise.
39038         * m4/nanosleep.m4: Likewise.
39039         * m4/nls.m4: Likewise.
39040         * m4/nocrash.m4: Likewise.
39041         * m4/open.m4: Likewise.
39042         * m4/openat.m4: Likewise.
39043         * m4/openmp.m4: Likewise.
39044         * m4/pathmax.m4: Likewise.
39045         * m4/perl.m4: Likewise.
39046         * m4/physmem.m4: Likewise.
39047         * m4/pipe.m4: Likewise.
39048         * m4/po.m4: Likewise.
39049         * m4/poll.m4: Likewise.
39050         * m4/posixtm.m4: Likewise.
39051         * m4/posixver.m4: Likewise.
39052         * m4/printf-frexp.m4: Likewise.
39053         * m4/printf-frexpl.m4: Likewise.
39054         * m4/printf-posix.m4: Likewise.
39055         * m4/printf-posix-rpl.m4: Likewise.
39056         * m4/printf.m4: Likewise.
39057         * m4/progtest.m4: Likewise.
39058         * m4/putenv.m4: Likewise.
39059         * m4/readline.m4: Likewise.
39060         * m4/readlink.m4: Likewise.
39061         * m4/readutmp.m4: Likewise.
39062         * m4/realloc.m4: Likewise.
39063         * m4/regex.m4: Likewise.
39064         * m4/relocatable.m4: Likewise.
39065         * m4/relocatable-lib.m4: Likewise.
39066         * m4/rename-dest-slash.m4: Likewise.
39067         * m4/rename.m4: Likewise.
39068         * m4/rmdir-errno.m4: Likewise.
39069         * m4/rmdir.m4: Likewise.
39070         * m4/roundf.m4: Likewise.
39071         * m4/roundl.m4: Likewise.
39072         * m4/rpmatch.m4: Likewise.
39073         * m4/save-cwd.m4: Likewise.
39074         * m4/selinux-selinux-h.m4: Likewise.
39075         * m4/setenv.m4: Likewise.
39076         * m4/settime.m4: Likewise.
39077         * m4/sig2str.m4: Likewise.
39078         * m4/sig_atomic_t.m4: Likewise.
39079         * m4/signalblocking.m4: Likewise.
39080         * m4/signbit.m4: Likewise.
39081         * m4/sigpipe.m4: Likewise.
39082         * m4/sockets.m4: Likewise.
39083         * m4/sockpfaf.m4: Likewise.
39084         * m4/st_dm_mode.m4: Likewise.
39085         * m4/stat-time.m4: Likewise.
39086         * m4/stdbool.m4: Likewise.
39087         * m4/stdint.m4: Likewise.
39088         * m4/stdint_h.m4: Likewise.
39089         * m4/stpcpy.m4: Likewise.
39090         * m4/stpncpy.m4: Likewise.
39091         * m4/strcase.m4: Likewise.
39092         * m4/strchrnul.m4: Likewise.
39093         * m4/strcspn.m4: Likewise.
39094         * m4/strdup.m4: Likewise.
39095         * m4/strftime.m4: Likewise.
39096         * m4/strndup.m4: Likewise.
39097         * m4/strnlen.m4: Likewise.
39098         * m4/strpbrk.m4: Likewise.
39099         * m4/strptime.m4: Likewise.
39100         * m4/strsep.m4: Likewise.
39101         * m4/strtod.m4: Likewise.
39102         * m4/strtoimax.m4: Likewise.
39103         * m4/strtok_r.m4: Likewise.
39104         * m4/strtol.m4: Likewise.
39105         * m4/strtoll.m4: Likewise.
39106         * m4/strtoul.m4: Likewise.
39107         * m4/strtoull.m4: Likewise.
39108         * m4/strtoumax.m4: Likewise.
39109         * m4/strverscmp.m4: Likewise.
39110         * m4/threadlib.m4: Likewise.
39111         * m4/timegm.m4: Likewise.
39112         * m4/tm_gmtoff.m4: Likewise.
39113         * m4/tmpdir.m4: Likewise.
39114         * m4/tmpfile.m4: Likewise.
39115         * m4/tzset.m4: Likewise.
39116         * m4/uintmax_t.m4: Likewise.
39117         * m4/unlinkdir.m4: Likewise.
39118         * m4/unlocked-io.m4: Likewise.
39119         * m4/uptime.m4: Likewise.
39120         * m4/userspec.m4: Likewise.
39121         * m4/utimbuf.m4: Likewise.
39122         * m4/utime.m4: Likewise.
39123         * m4/utimes-null.m4: Likewise.
39124         * m4/utimes.m4: Likewise.
39125         * m4/vararrays.m4: Likewise.
39126         * m4/vasnprintf.m4: Likewise.
39127         * m4/vfprintf-posix.m4: Likewise.
39128         * m4/vprintf-posix.m4: Likewise.
39129         * m4/wait-process.m4: Likewise.
39130         * m4/wchar_t.m4: Likewise.
39131         * m4/wint_t.m4: Likewise.
39132         * m4/write-any-file.m4: Likewise.
39133         * m4/yield.m4: Likewise.
39134
39135 2009-01-13  Bruno Haible  <bruno@clisp.org>
39136
39137         Avoid test-copy-file.sh failures when ACL support insufficient.
39138         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
39139         TESTS_ENVIRONMENT.
39140         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
39141         Reported by Jim Meyering.
39142
39143 2009-01-13  Bruno Haible  <bruno@clisp.org>
39144
39145         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
39146         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
39147         * modules/unistdio/u8-printf-parse (Files): Likewise.
39148         * modules/unistdio/u32-printf-parse (Files): Likewise.
39149         * modules/unistdio/ulc-printf-parse (Files): Likewise.
39150
39151 2009-01-13  Simon Josefsson  <simon@josefsson.org>
39152
39153         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
39154         and m4/inttypes_h.m4 too.
39155
39156 2009-01-12  Eric Blake  <ebb9@byu.net>
39157
39158         tests: IRIX 6.2 cc can't compile -0.0 into .data
39159         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
39160         rather than at compile-time.
39161         * tests/test-floorl.c (minus_zero): Likewise.
39162         * tests/test-frexpl.c (minus_zero): Likewise.
39163         * tests/test-isnan.c (minus_zerol): Likewise.
39164         * tests/test-isnanl.h (minus_zero): Likewise.
39165         * tests/test-ldexpl.c (minus_zero): Likewise.
39166         * tests/test-roundl.c (minus_zero): Likewise.
39167         * tests/test-signbit.c (minus_zerol): Likewise.
39168         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
39169         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
39170         * tests/test-truncl.c (minus_zero): Likewise.
39171         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
39172         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
39173         Reported by Tom G. Christensen and Nelson H. F. Beebe.
39174
39175 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39176
39177         regex: fix glibc bug 9697
39178         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
39179         handling.
39180
39181 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39182
39183         regex: fix glibc bug 697
39184         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
39185         being NULL also if there are no backreferences.
39186
39187 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39188
39189         regex: merge glibc changes
39190         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
39191         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
39192         re_string_skip_chars, re_string_reconstruct): Likewise.
39193         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
39194
39195 2009-01-07  Jim Meyering  <meyering@redhat.com>
39196
39197         poll: filter through cppi
39198         * lib/poll.c: Indent cpp directives to reflect nesting.
39199
39200 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
39201
39202         poll: don't return uninitialized
39203         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
39204
39205 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
39206
39207         avoid compile failure on AIX 6.1
39208         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
39209         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
39210
39211 2009-01-04  Jim Meyering  <meyering@redhat.com>
39212
39213         remove duplicate inclusion of <stdio.h>
39214         * tests/test-fprintf-posix.c: Likewise.
39215         * tests/test-printf-posix.c: Likewise.
39216         * tests/test-snprintf-posix.c: Likewise.
39217         * tests/test-sprintf-posix.c: Likewise.
39218         * tests/test-vasprintf-posix.c: Likewise.
39219         * tests/test-vfprintf-posix.c: Likewise.
39220         * tests/test-vprintf-posix.c: Likewise.
39221         * tests/test-vsnprintf-posix.c: Likewise.
39222         * tests/test-vsprintf-posix.c: Likewise.
39223
39224 2009-01-03  Jim Meyering  <meyering@redhat.com>
39225
39226         gnulib-tool: fix sed-based filtering
39227         * gnulib-tool (func_filter_filelist): Remove extra backslash
39228         in sed_fff_filter definition.
39229
39230 2009-01-02  Jim Meyering  <meyering@redhat.com>
39231
39232         strftime: avoid compilation failure on Solaris 2.6
39233         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
39234         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
39235         Don't #define mbrlen or mbsinit, since now they're guaranteed to
39236         be available.  Reported by Tom G. Christensen.  Details in
39237         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
39238
39239 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39240             Bruno Haible  <bruno@clisp.org>
39241
39242         Speed up gnulib-tool by doing more string processing through shell
39243         built-ins.
39244         * gnulib-tool (fast_func_append): New variable.
39245         (func_remove_prefix, func_remove_suffix): New functions.
39246         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
39247         (func_filter_filelist): New function.
39248         (func_get_dependencies): Use func_remove_suffix instead of sed.
39249         (func_get_automake_snippet): Use func_filter_filelist instead of a
39250         subshell and sed invocation.
39251
39252 2009-01-01  Bruno Haible  <bruno@clisp.org>
39253
39254         Fix a security bug.
39255         * gnulib-tool (func_import, import, update): Don't allow the characters
39256         '"', '$', '`', '\' in macro arguments that become part of commands that
39257         are evaluated.
39258
39259 2009-01-01  Bruno Haible  <bruno@clisp.org>
39260
39261         * gnulib-tool (func_reset_sigpipe): Add more comments.
39262
39263 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39264
39265         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
39266         func_emit_tests_Makefile_am, func_import): Abort loops early if we
39267         already know the answer.
39268
39269 2009-01-01  Jim Meyering  <meyering@redhat.com>
39270
39271         * lib/version-etc.c (version_etc_va): Update copyright year.
39272
39273 2008-12-30  Bruno Haible  <bruno@clisp.org>
39274
39275         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
39276         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
39277         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
39278
39279 2008-12-29  Eric Blake  <ebb9@byu.net>
39280
39281         multiarch: avoid autoconf AC_REQUIRE bug
39282         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
39283         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
39284         2.63 and older.
39285         Reported by Bruno Haible, and analyzed in
39286         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
39287
39288 2008-12-29  Bruno Haible  <bruno@clisp.org>
39289
39290         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
39291         files in subdirectories correctly.
39292         Reported by Ralf Wildenhues.
39293
39294 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39295
39296         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
39297         rather than 'join FILE -', for Solaris join.
39298
39299 2008-12-29  Bruno Haible  <bruno@clisp.org>
39300
39301         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
39302         quoting.
39303         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
39304         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
39305         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
39306         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
39307         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
39308         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
39309         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
39310         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
39311         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
39312         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
39313         * m4/nls.m4 (AM_NLS): Likewise.
39314         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
39315         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
39316         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
39317         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
39318         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
39319         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
39320         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
39321         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
39322         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
39323         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
39324         * m4/xsize.m4 (gl_XSIZE): Likewise.
39325         Suggested by Jim Meyering.
39326
39327 2008-11-17  Bruce Korb  <bkorb@gnu.org>
39328
39329         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
39330         * lib/parse-duration.c: use a switch instead of cascading if's.
39331
39332 2008-12-29  Eric Blake  <ebb9@byu.net>
39333
39334         wchar.h: supply WEOF on Irix 5.3
39335         * lib/wchar.in.h (wint_t): Also supply WEOF.
39336         * lib/wctype.in.h (wint_t): Likewise.
39337         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
39338         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
39339         Reported by Tom G. Christensen.
39340
39341 2008-12-26  Bruno Haible  <bruno@clisp.org>
39342
39343         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
39344         i486, i586, i686.
39345
39346 2008-12-26  Bruno Haible  <bruno@clisp.org>
39347
39348         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
39349
39350 2008-12-26  Bruno Haible  <bruno@clisp.org>
39351
39352         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
39353         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
39354         not __STDC_CONSTANT_MACROS.
39355         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
39356
39357 2008-12-25  Bruno Haible  <bruno@clisp.org>
39358
39359         Add support for universal builds to vasnprintf.
39360         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
39361         universal builds, guess no.
39362         * modules/vasnprintf-posix (Depends-on): Add multiarch.
39363         * modules/vasprintf-posix (Depends-on): Likewise.
39364         * modules/fprintf-posix (Depends-on): Likewise.
39365         * modules/vfprintf-posix (Depends-on): Likewise.
39366         * modules/snprintf-posix (Depends-on): Likewise.
39367         * modules/vsnprintf-posix (Depends-on): Likewise.
39368         * modules/sprintf-posix (Depends-on): Likewise.
39369         * modules/vsprintf-posix (Depends-on): Likewise.
39370         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39371         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39372         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39373         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39374         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39375         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39376         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39377
39378         Add support for universal builds to <inttypes.h>.
39379         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
39380         _SCNu64_PREFIX): In Apple
39381         universal builds, define directly, using _LP64.
39382         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
39383         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
39384         * modules/inttypes (Depends-on): Add multiarch.
39385         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
39386
39387         Add support for universal builds to <stdint.h>.
39388         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
39389         universal builds, define directly, using _LP64.
39390         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
39391         Apple universal builds, don't test for the size and suffix of ptrdiff_t
39392         and size_t.
39393         * modules/stdint (Depends-on): Add multiarch.
39394         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
39395
39396         New module 'multiarch'.
39397         * modules/multiarch: New file.
39398         * m4/multiarch.m4: New file.
39399
39400 2008-12-25  Bruno Haible  <bruno@clisp.org>
39401
39402         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
39403
39404 2008-12-25  Bruno Haible  <bruno@clisp.org>
39405
39406         * modules/btowc (License): Relicense under LGPLv2+.
39407         * modules/mbsinit (License): Likewise.
39408         * modules/mbrtowc (License): Likewise.
39409         * modules/wcrtomb (License): Likewise.
39410         * modules/streq (License): Likewise.
39411         Reported by David Lutterkort <lutter@redhat.com>.
39412
39413 2008-12-23  Bruno Haible  <bruno@clisp.org>
39414
39415         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
39416
39417 2008-12-23  Bruno Haible  <bruno@clisp.org>
39418
39419         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
39420         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
39421         GETADDRINFO_LIB, not in LIBS.
39422         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
39423         * modules/canon-host (Link): Likewise.
39424         * NEWS: Mention the change.
39425         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
39426         GETADDRINFO_LIB.
39427
39428 2008-12-22  Bruno Haible  <bruno@clisp.org>
39429
39430         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
39431         * doc/posix-functions/iswalpha_l.texi: Likewise.
39432         * doc/posix-functions/iswblank_l.texi: Likewise.
39433         * doc/posix-functions/iswcntrl_l.texi: Likewise.
39434         * doc/posix-functions/iswctype_l.texi: Likewise.
39435         * doc/posix-functions/iswdigit_l.texi: Likewise.
39436         * doc/posix-functions/iswgraph_l.texi: Likewise.
39437         * doc/posix-functions/iswlower_l.texi: Likewise.
39438         * doc/posix-functions/iswprint_l.texi: Likewise.
39439         * doc/posix-functions/iswpunct_l.texi: Likewise.
39440         * doc/posix-functions/iswspace_l.texi: Likewise.
39441         * doc/posix-functions/iswupper_l.texi: Likewise.
39442         * doc/posix-functions/iswxdigit_l.texi: Likewise.
39443         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
39444         * doc/posix-functions/open_wmemstream.texi: Likewise.
39445         * doc/posix-functions/swscanf.texi: Likewise.
39446         * doc/posix-functions/towctrans_l.texi: Likewise.
39447         * doc/posix-functions/towlower.texi: Likewise.
39448         * doc/posix-functions/towlower_l.texi: Likewise.
39449         * doc/posix-functions/towupper.texi: Likewise.
39450         * doc/posix-functions/towupper_l.texi: Likewise.
39451         * doc/posix-functions/vfwprintf.texi: Likewise.
39452         * doc/posix-functions/vfwscanf.texi: Likewise.
39453         * doc/posix-functions/vswscanf.texi: Likewise.
39454         * doc/posix-functions/vwprintf.texi: Likewise.
39455         * doc/posix-functions/vwscanf.texi: Likewise.
39456         * doc/posix-functions/wcpcpy.texi: Likewise.
39457         * doc/posix-functions/wcpncpy.texi: Likewise.
39458         * doc/posix-functions/wcscasecmp.texi: Likewise.
39459         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
39460         * doc/posix-functions/wcscoll_l.texi: Likewise.
39461         * doc/posix-functions/wcsdup.texi: Likewise.
39462         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39463         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
39464         * doc/posix-functions/wcsnlen.texi: Likewise.
39465         * doc/posix-functions/wcsnrtombs.texi: Likewise.
39466         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
39467         * doc/posix-functions/wctrans_l.texi: Likewise.
39468         * doc/posix-functions/wctype_l.texi: Likewise.
39469         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
39470         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
39471         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
39472         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
39473         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
39474         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
39475         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
39476         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
39477         * doc/glibc-functions/wcschrnul.texi: Likewise.
39478         * doc/glibc-functions/wcsftime_l.texi: Likewise.
39479         * doc/glibc-functions/wcstod_l.texi: Likewise.
39480         * doc/glibc-functions/wcstof_l.texi: Likewise.
39481         * doc/glibc-functions/wcstol_l.texi: Likewise.
39482         * doc/glibc-functions/wcstold_l.texi: Likewise.
39483         * doc/glibc-functions/wcstoll_l.texi: Likewise.
39484         * doc/glibc-functions/wcstoq.texi: Likewise.
39485         * doc/glibc-functions/wcstoul_l.texi: Likewise.
39486         * doc/glibc-functions/wcstoull_l.texi: Likewise.
39487         * doc/glibc-functions/wcstouq.texi: Likewise.
39488         * doc/glibc-functions/wmempcpy.texi: Likewise.
39489
39490 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
39491             Eric Blake  <ebb9@byu.net>
39492             Paolo Bonzini  <bonzini@gnu.org>
39493             Bruno Haible  <bruno@clisp.org>
39494
39495         Make c-stack work on Haiku.
39496         * lib/c-stack.c (SA_ONSTACK): Define fallback.
39497         (c_stack_action): Use SA_ONSTACK flag.
39498
39499 2008-12-22  Bruno Haible  <bruno@clisp.org>
39500
39501         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
39502
39503 2008-12-22  Bruno Haible  <bruno@clisp.org>
39504
39505         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
39506         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
39507         being overridden.
39508         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
39509         New macros.
39510         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
39511         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
39512         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
39513         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
39514
39515 2008-12-22  Bruno Haible  <bruno@clisp.org>
39516
39517         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
39518         from test code.
39519
39520 2008-12-22  Eric Blake  <ebb9@byu.net>
39521
39522         Avoid gcc warnings on cygwin.
39523         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
39524         Avoid unused variable.
39525         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
39526         Likewise.
39527
39528 2008-12-22  Bruno Haible  <bruno@clisp.org>
39529
39530         Remove HAVE_MBRTOWC conditionals.
39531         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
39532         (mbscasecmp): Assume mbrtowc function.
39533         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
39534         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
39535         * lib/mbschr.c: Include mbuiter.h unconditionally.
39536         (mbschr): Assume mbrtowc function.
39537         * lib/mbscspn.c: Include mbuiter.h unconditionally.
39538         (mbscspn): Assume mbrtowc function.
39539         * lib/mbslen.c: Include mbuiter.h unconditionally.
39540         (mbslen): Assume mbrtowc function.
39541         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
39542         (mbsncasecmp): Assume mbrtowc function.
39543         * lib/mbsnlen.c: Include mbiter.h unconditionally.
39544         (mbsnlen): Assume mbrtowc function.
39545         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
39546         (mbspbrk): Assume mbrtowc function.
39547         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
39548         (mbspcasecmp): Assume mbrtowc function.
39549         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
39550         (mbsrchr): Assume mbrtowc function.
39551         * lib/mbssep.c: Include mbuiter.h unconditionally.
39552         (mbssep): Assume mbrtowc function.
39553         * lib/mbsspn.c: Include mbuiter.h unconditionally.
39554         (mbsspn): Assume mbrtowc function.
39555         * lib/mbsstr.c: Include mbuiter.h unconditionally.
39556         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
39557         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
39558         (mbstok_r): Assume mbrtowc function.
39559         * lib/propername.c: Include mbuiter.h unconditionally.
39560         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
39561         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
39562         (trim2): Assume mbrtowc function.
39563         * lib/mbswidth.c (mbsinit): Remove fallback definition.
39564         (mbsnwidth): Assume mbrtowc function.
39565         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
39566         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
39567         fallback definitions.
39568         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
39569
39570 2008-12-22  Bruno Haible  <bruno@clisp.org>
39571
39572         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
39573
39574 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
39575
39576         * modules/regex: Request emulations for the mb*/wc* functions we need.
39577         * m4/regex.m4: Don't look for those functions here.
39578         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
39579
39580 2008-12-22  Bruno Haible  <bruno@clisp.org>
39581
39582         * modules/fnmatch (Depends-on): Remove duplicated dependency.
39583
39584 2008-12-21  Bruno Haible  <bruno@clisp.org>
39585
39586         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
39587         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
39588         (Include): Remove conditionalization.
39589         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
39590         (Include): Remove conditionalization.
39591         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
39592         (Include): Remove conditionalization.
39593         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
39594         * m4/mbfile.m4 (gl_MBFILE): Likewise.
39595         * NEWS: Mention the change.
39596         Reported by Alan Hourihane <alanh@fairlite.co.uk>
39597         via Sergey Poznyakoff <gray@gnu.org.ua>.
39598
39599 2008-12-21  Bruno Haible  <bruno@clisp.org>
39600
39601         * MODULES.html.sh (Extended multibyte and wide character utilities
39602         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
39603         wcrtomb, wcsrtombs.
39604         (Support for systems lacking POSIX:2008): Add accept, bind, close,
39605         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
39606         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
39607         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
39608
39609 2008-12-21  Bruno Haible  <bruno@clisp.org>
39610
39611         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
39612
39613 2008-12-21  Bruno Haible  <bruno@clisp.org>
39614
39615         * modules/wcsnrtombs-tests: New file.
39616         * tests/test-wcsnrtombs1.sh: New file.
39617         * tests/test-wcsnrtombs2.sh: New file.
39618         * tests/test-wcsnrtombs3.sh: New file.
39619         * tests/test-wcsnrtombs4.sh: New file.
39620         * tests/test-wcsnrtombs.c: New file.
39621
39622         New module 'wcsnrtombs'.
39623         * lib/wchar.in.h (wcsnrtombs): New declaration.
39624         * lib/wcsnrtombs.c: New file.
39625         * lib/wcsrtombs-state.c: New file.
39626         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
39627         (internal_state): Remove variable.
39628         * m4/wcsnrtombs.m4: New file.
39629         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
39630         compilation units.
39631         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
39632         HAVE_WCSNRTOMBS.
39633         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
39634         HAVE_WCSNRTOMBS.
39635         * modules/wcsnrtombs: New file.
39636         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
39637         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
39638
39639 2008-12-21  Bruno Haible  <bruno@clisp.org>
39640
39641         * modules/wcsrtombs-tests: New file.
39642         * tests/test-wcsrtombs1.sh: New file.
39643         * tests/test-wcsrtombs2.sh: New file.
39644         * tests/test-wcsrtombs3.sh: New file.
39645         * tests/test-wcsrtombs4.sh: New file.
39646         * tests/test-wcsrtombs.c: New file.
39647
39648         New module 'wcsrtombs'.
39649         * lib/wchar.in.h (wcsrtombs): New declaration.
39650         * lib/wcsrtombs.c: New file.
39651         * m4/wcsrtombs.m4: New file.
39652         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
39653         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
39654         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
39655         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
39656         * modules/wcsrtombs: New file.
39657         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
39658         bugs.
39659
39660 2008-12-21  Bruno Haible  <bruno@clisp.org>
39661
39662         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
39663         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
39664         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
39665         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
39666         if not correct.
39667         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
39668         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
39669         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39670         m4/locale-zh.m4, m4/codeset.m4.
39671         * doc/posix-functions/wcrtomb.texi: Document the bug.
39672
39673 2008-12-21  Bruno Haible  <bruno@clisp.org>
39674
39675         Work around a btowc() bug on IRIX 6.5.
39676         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
39677         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
39678         REPLACE_WTOBC if not.
39679         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
39680         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
39681         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
39682
39683 2008-12-21  Bruno Haible  <bruno@clisp.org>
39684
39685         * modules/wcrtomb-tests: New file.
39686         * tests/test-wcrtomb.sh: New file.
39687         * tests/test-wcrtomb.c: New file.
39688
39689         New module 'wcrtomb'.
39690         * lib/wchar.in.h (wcrtomb): New declaration.
39691         * lib/wcrtomb.c: New file.
39692         * m4/wcrtomb.m4: New file.
39693         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
39694         HAVE_WCRTOMB.
39695         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
39696         HAVE_WCRTOMB.
39697         * modules/wcrtomb: New file.
39698         * doc/posix-functions/wcrtomb.texi: Mention the new module.
39699
39700 2008-12-21  Bruno Haible  <bruno@clisp.org>
39701
39702         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
39703         * modules/mbsrtowcs (Files): Likewise.
39704         * modules/wctob (Files): Likewise.
39705         * modules/c-strcase-tests (Files): Likewise.
39706         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
39707         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
39708         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
39709         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
39710         * modules/vasnprintf-posix-tests (Files): Likewise.
39711
39712 2008-12-21  William Pursell  <bill.pursell@gmail.com>
39713
39714         gitlog-to-changelog: pass all command-line arguments to git-log
39715         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
39716         it is sometimes convenient to filter the commits in various ways.
39717         gitlog-to-changelog only allows --since to specify a start date,
39718         but git-log itself supports many other filtering mechanisms.
39719         At the moment, I want to filter by branch name.  Rather than
39720         adding a --branch option to gitlog-to-changelog, it seems more
39721         flexible to simply pass all options directly to git-log and let
39722         git do the work.  Notice that this effectively makes --since a
39723         redundant option for gitlog-to-changelog, but removing it would
39724         require current usage to change since calls would then require
39725         an additional '--'.
39726
39727 2008-12-21  Bruno Haible  <bruno@clisp.org>
39728
39729         * modules/mbsnrtowcs-tests: New file.
39730         * tests/test-mbsnrtowcs1.sh: New file.
39731         * tests/test-mbsnrtowcs2.sh: New file.
39732         * tests/test-mbsnrtowcs3.sh: New file.
39733         * tests/test-mbsnrtowcs4.sh: New file.
39734         * tests/test-mbsnrtowcs.c: New file.
39735
39736         New module 'mbsnrtowcs'.
39737         * lib/wchar.in.h (mbsnrtowcs): New declaration.
39738         * lib/mbsnrtowcs.c: New file.
39739         * lib/mbsrtowcs-state.c: New file.
39740         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
39741         (internal_state): Remove variable.
39742         * m4/mbsnrtowcs.m4: New file.
39743         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
39744         compilation units.
39745         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
39746         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39747         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
39748         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39749         * modules/mbsnrtowcs: New file.
39750         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
39751         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
39752         portability problem.
39753
39754 2008-12-21  Bruno Haible  <bruno@clisp.org>
39755
39756         Work around mbsrtowcs bug.
39757         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
39758         (gl_FUNC_MBSRTOWCS): Invoke it.
39759         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39760         m4/locale-zh.m4.
39761         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
39762
39763 2008-12-21  Bruno Haible  <bruno@clisp.org>
39764
39765         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
39766
39767 2008-12-21  Bruno Haible  <bruno@clisp.org>
39768
39769         Update doc for AIX.
39770         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
39771         16-bit wchar_t type.
39772         * doc/posix-functions/btowc.texi: Likewise.
39773         * doc/posix-functions/fgetwc.texi: Likewise.
39774         * doc/posix-functions/fgetws.texi: Likewise.
39775         * doc/posix-functions/fputwc.texi: Likewise.
39776         * doc/posix-functions/fputws.texi: Likewise.
39777         * doc/posix-functions/fwide.texi: Likewise.
39778         * doc/posix-functions/fwprintf.texi: Likewise.
39779         * doc/posix-functions/fwscanf.texi: Likewise.
39780         * doc/posix-functions/getwchar.texi: Likewise.
39781         * doc/posix-functions/getwc.texi: Likewise.
39782         * doc/posix-functions/iswalnum.texi: Likewise.
39783         * doc/posix-functions/iswalpha.texi: Likewise.
39784         * doc/posix-functions/iswblank.texi: Likewise.
39785         * doc/posix-functions/iswcntrl.texi: Likewise.
39786         * doc/posix-functions/iswctype.texi: Likewise.
39787         * doc/posix-functions/iswdigit.texi: Likewise.
39788         * doc/posix-functions/iswgraph.texi: Likewise.
39789         * doc/posix-functions/iswlower.texi: Likewise.
39790         * doc/posix-functions/iswprint.texi: Likewise.
39791         * doc/posix-functions/iswpunct.texi: Likewise.
39792         * doc/posix-functions/iswspace.texi: Likewise.
39793         * doc/posix-functions/iswupper.texi: Likewise.
39794         * doc/posix-functions/iswxdigit.texi: Likewise.
39795         * doc/posix-functions/mbrtowc.texi: Likewise.
39796         * doc/posix-functions/mbsrtowcs.texi: Likewise.
39797         * doc/posix-functions/mbstowcs.texi: Likewise.
39798         * doc/posix-functions/mbtowc.texi: Likewise.
39799         * doc/posix-functions/putwchar.texi: Likewise.
39800         * doc/posix-functions/putwc.texi: Likewise.
39801         * doc/posix-functions/swprintf.texi: Likewise.
39802         * doc/posix-functions/tolower.texi: Likewise.
39803         * doc/posix-functions/toupper.texi: Likewise.
39804         * doc/posix-functions/towctrans.texi: Likewise.
39805         * doc/posix-functions/ungetwc.texi: Likewise.
39806         * doc/posix-functions/vswprintf.texi: Likewise.
39807         * doc/posix-functions/wcrtomb.texi: Likewise.
39808         * doc/posix-functions/wcscat.texi: Likewise.
39809         * doc/posix-functions/wcschr.texi: Likewise.
39810         * doc/posix-functions/wcscmp.texi: Likewise.
39811         * doc/posix-functions/wcscoll.texi: Likewise.
39812         * doc/posix-functions/wcscpy.texi: Likewise.
39813         * doc/posix-functions/wcscspn.texi: Likewise.
39814         * doc/posix-functions/wcsftime.texi: Likewise.
39815         * doc/posix-functions/wcslen.texi: Likewise.
39816         * doc/posix-functions/wcsncat.texi: Likewise.
39817         * doc/posix-functions/wcsncmp.texi: Likewise.
39818         * doc/posix-functions/wcsncpy.texi: Likewise.
39819         * doc/posix-functions/wcspbrk.texi: Likewise.
39820         * doc/posix-functions/wcsrchr.texi: Likewise.
39821         * doc/posix-functions/wcsrtombs.texi: Likewise.
39822         * doc/posix-functions/wcsspn.texi: Likewise.
39823         * doc/posix-functions/wcsstr.texi: Likewise.
39824         * doc/posix-functions/wcstod.texi: Likewise.
39825         * doc/posix-functions/wcstof.texi: Likewise.
39826         * doc/posix-functions/wcstoimax.texi: Likewise.
39827         * doc/posix-functions/wcstok.texi: Likewise.
39828         * doc/posix-functions/wcstold.texi: Likewise.
39829         * doc/posix-functions/wcstoll.texi: Likewise.
39830         * doc/posix-functions/wcstol.texi: Likewise.
39831         * doc/posix-functions/wcstombs.texi: Likewise.
39832         * doc/posix-functions/wcstoull.texi: Likewise.
39833         * doc/posix-functions/wcstoul.texi: Likewise.
39834         * doc/posix-functions/wcstoumax.texi: Likewise.
39835         * doc/posix-functions/wcswidth.texi: Likewise.
39836         * doc/posix-functions/wcsxfrm.texi: Likewise.
39837         * doc/posix-functions/wctob.texi: Likewise.
39838         * doc/posix-functions/wctomb.texi: Likewise.
39839         * doc/posix-functions/wctrans.texi: Likewise.
39840         * doc/posix-functions/wctype.texi: Likewise.
39841         * doc/posix-functions/wcwidth.texi: Likewise.
39842         * doc/posix-functions/wmemchr.texi: Likewise.
39843         * doc/posix-functions/wmemcmp.texi: Likewise.
39844         * doc/posix-functions/wmemcpy.texi: Likewise.
39845         * doc/posix-functions/wmemmove.texi: Likewise.
39846         * doc/posix-functions/wmemset.texi: Likewise.
39847         * doc/posix-functions/wprintf.texi: Likewise.
39848         * doc/posix-functions/wscanf.texi: Likewise.
39849
39850 2008-12-21  Bruno Haible  <bruno@clisp.org>
39851
39852         Update doc for HP-UX 11.11.
39853         * doc/posix-functions/btowc.texi: Clarify that the function is missing
39854         in HP-UX version 11.00, not in all versions of HP-UX 11.
39855         * doc/posix-functions/fwide.texi: Likewise.
39856         * doc/posix-functions/fwprintf.texi: Likewise.
39857         * doc/posix-functions/fwscanf.texi: Likewise.
39858         * doc/posix-functions/inet_ntop.texi: Likewise.
39859         * doc/posix-functions/inet_pton.texi: Likewise.
39860         * doc/posix-functions/mbrlen.texi: Likewise.
39861         * doc/posix-functions/mbrtowc.texi: Likewise.
39862         * doc/posix-functions/mbsinit.texi: Likewise.
39863         * doc/posix-functions/mbsrtowcs.texi: Likewise.
39864         * doc/posix-functions/swprintf.texi: Likewise.
39865         * doc/posix-functions/swscanf.texi: Likewise.
39866         * doc/posix-functions/towctrans.texi: Likewise.
39867         * doc/posix-functions/vfwprintf.texi: Likewise.
39868         * doc/posix-functions/vswprintf.texi: Likewise.
39869         * doc/posix-functions/vwprintf.texi: Likewise.
39870         * doc/posix-functions/wcrtomb.texi: Likewise.
39871         * doc/posix-functions/wcsrtombs.texi: Likewise.
39872         * doc/posix-functions/wcsstr.texi: Likewise.
39873         * doc/posix-functions/wctob.texi: Likewise.
39874         * doc/posix-functions/wctrans.texi: Likewise.
39875         * doc/posix-functions/wmemchr.texi: Likewise.
39876         * doc/posix-functions/wmemcmp.texi: Likewise.
39877         * doc/posix-functions/wmemcpy.texi: Likewise.
39878         * doc/posix-functions/wmemmove.texi: Likewise.
39879         * doc/posix-functions/wmemset.texi: Likewise.
39880         * doc/posix-functions/wprintf.texi: Likewise.
39881         * doc/posix-functions/wscanf.texi: Likewise.
39882
39883 2008-12-21  Bruno Haible  <bruno@clisp.org>
39884
39885         Work around a portability problem.
39886         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
39887         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
39888
39889 2008-12-20  Bruno Haible  <bruno@clisp.org>
39890
39891         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
39892         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
39893         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
39894         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
39895         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
39896
39897         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
39898         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
39899         set.
39900         (GNULIB_defined_mbstate_t): New macro.
39901         (mbsinit): Redefine if REPLACE_MBSINIT is set.
39902         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
39903         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
39904         reuses the system's mbrtowc function but works around the bugs.
39905         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
39906         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
39907         macros.
39908         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
39909         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
39910         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
39911         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
39912         REPLACE_MBSINIT if mbsinit needs to be overridden.
39913         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
39914         REPLACE_MBSINIT, REPLACE_MBRTOWC.
39915         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
39916         REPLACE_MBSINIT, REPLACE_MBRTOWC.
39917         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39918         m4/locale-zh.m4.
39919         (Depends): Add mbsinit.
39920         * modules/mbsinit (Depends): Add mbrtowc.
39921         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
39922
39923 2008-12-20  Bruno Haible  <bruno@clisp.org>
39924
39925         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
39926         so that there are no conversion errors on AIX.
39927         * tests/test-mbsrtowcs.c (main): LIkewise.
39928
39929 2008-12-20  Bruno Haible  <bruno@clisp.org>
39930
39931         Work around wctob bug on Solaris <= 9.
39932         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
39933         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
39934         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
39935         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
39936         * modules/wctob (Files): Add m4/locale-fr.m4.
39937         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
39938
39939 2008-12-20  Bruno Haible  <bruno@clisp.org>
39940
39941         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
39942         /dev/null.
39943         * tests/test-select-in.sh: Likewise.
39944         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39945
39946 2008-12-20  Bruno Haible  <bruno@clisp.org>
39947
39948         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
39949         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
39950         Cygwin 1.5.x.
39951
39952 2008-12-20  Bruno Haible  <bruno@clisp.org>
39953
39954         Ensure mbstate_t is defined on HP-UX 11.11.
39955         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
39956         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
39957         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
39958         AC_USE_SYSTEM_EXTENSIONS.
39959         * modules/fnmatch (Depends-on): Add extensions.
39960         * modules/mbrlen (Depends-on): Likewise.
39961         * modules/mbrtowc (Depends-on): Likewise.
39962         * modules/mbsinit (Depends-on): Likewise.
39963         * modules/mbsrtowcs (Depends-on): Likewise.
39964         * modules/mbswidth (Depends-on): Likewise.
39965         * modules/quotearg (Depends-on): Likewise.
39966         * modules/strftime (Depends-on): Likewise.
39967
39968 2008-12-20  Bruno Haible  <bruno@clisp.org>
39969
39970         Ensure wctob is declared on IRIX 6.5.
39971         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
39972         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
39973         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
39974         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
39975         of HAVE_WCTOB.
39976         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
39977         HAVE_WCTOB.
39978         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
39979
39980 2008-12-19  Bruno Haible  <bruno@clisp.org>
39981
39982         * modules/mbsrtowcs-tests: New file.
39983         * tests/test-mbsrtowcs1.sh: New file.
39984         * tests/test-mbsrtowcs2.sh: New file.
39985         * tests/test-mbsrtowcs3.sh: New file.
39986         * tests/test-mbsrtowcs4.sh: New file.
39987         * tests/test-mbsrtowcs.c: New file.
39988
39989         New module 'mbsrtowcs'.
39990         * lib/wchar.in.h (mbsrtowcs): New declaration.
39991         * lib/mbsrtowcs.c: New file.
39992         * m4/mbsrtowcs.m4: New file.
39993         * modules/mbsrtowcs: New file.
39994         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
39995         HAVE_MBSRTOWCS.
39996         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
39997         HAVE_MBSRTOWCS.
39998         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
39999
40000 2008-12-19  Bruno Haible  <bruno@clisp.org>
40001
40002         New module 'mbrlen'.
40003         * lib/wchar.in.h (mbrlen): New declaration.
40004         * lib/mbrlen.c: New file.
40005         * m4/mbrlen.m4: New file.
40006         * modules/mbrlen: New file.
40007         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
40008         HAVE_MBRLEN.
40009         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
40010         HAVE_MBRLEN.
40011         * doc/posix-functions/mbrlen.texi: Document the new module.
40012
40013 2008-12-19  Bruno Haible  <bruno@clisp.org>
40014
40015         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
40016         * modules/mbrtowc (Depends-on): Add verify.
40017         Suggested by Paul Eggert.
40018
40019 2008-12-18  Bruno Haible  <bruno@clisp.org>
40020
40021         * modules/mbsinit-tests: New file.
40022         * tests/test-mbsinit.sh: New file.
40023         * tests/test-mbsinit.c: New file.
40024
40025 2008-12-18  Bruno Haible  <bruno@clisp.org>
40026
40027         * modules/mbrtowc-tests: New file.
40028         * tests/test-mbrtowc1.sh: New file.
40029         * tests/test-mbrtowc2.sh: New file.
40030         * tests/test-mbrtowc3.sh: New file.
40031         * tests/test-mbrtowc4.sh: New file.
40032         * tests/test-mbrtowc.c: New file.
40033
40034         New module 'mbrtowc'.
40035         * lib/wchar.in.h (mbstate_t): Override when the system does not have
40036         mbsinit and mbrtowc.
40037         (mbrtowc): New declaration.
40038         * lib/mbrtowc.c: New file.
40039         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
40040         * modules/mbrtowc: New file.
40041         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
40042         HAVE_MBRTOWC.
40043         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
40044         HAVE_MBRTOWC.
40045         * doc/posix-functions/mbrtowc.texi: Document the new module.
40046
40047 2008-12-18  Bruno Haible  <bruno@clisp.org>
40048
40049         New module 'wctob'.
40050         * lib/wchar.in.h (wctob): New declaration.
40051         * lib/wctob.c: New file.
40052         * m4/wctob.m4: New file.
40053         * modules/wctob: New file.
40054         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
40055         HAVE_WCTOB.
40056         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
40057         * doc/posix-functions/wctob.texi: Document the new module.
40058
40059 2008-12-18  Bruno Haible  <bruno@clisp.org>
40060
40061         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
40062         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
40063
40064 2008-12-18  Simon Josefsson  <simon@josefsson.org>
40065
40066         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
40067         G. Christensen" <tgc@jupiterrise.com>.
40068
40069         * lib/flock.c: Need to include errno.h.  Reported by "Tom
40070         G. Christensen" <tgc@jupiterrise.com>.
40071
40072         * lib/flock.c: Need to include string.h.  Reported by "Tom
40073         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
40074         <ebb9@byu.net>.
40075
40076 2008-12-18  Bruno Haible  <bruno@clisp.org>
40077
40078         * m4/locale-ja.m4: New file, from GNU gettext.
40079
40080 2008-12-17  Bruno Haible  <bruno@clisp.org>
40081
40082         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
40083         Suggested by Eric Blake.
40084
40085 2008-12-17  Bruno Haible  <bruno@clisp.org>
40086
40087         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
40088
40089 2008-12-17  Bruno Haible  <bruno@clisp.org>
40090
40091         * lib/mbsinit.c: Include verify.h. Verify an assumption.
40092         * modules/mbsinit (Depends-on): Add verify.
40093         Suggested by Paul Eggert.
40094
40095 2008-12-17  Bruno Haible  <bruno@clisp.org>
40096
40097         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
40098         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
40099         gl_FUNC_MBRTOWC.
40100         * m4/mbiter.m4 (gl_MBITER): LIkewise.
40101         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
40102         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
40103         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
40104         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
40105         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
40106         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
40107         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
40108         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
40109         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
40110         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
40111         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
40112         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
40113         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
40114         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
40115         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
40116         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
40117         * modules/trim (configure.ac): Likewise.
40118
40119 2008-12-17  Bruno Haible  <bruno@clisp.org>
40120
40121         * modules/btowc-tests: New file.
40122         * tests/test-btowc1.sh: New file.
40123         * tests/test-btowc2.sh: New file.
40124         * tests/test-btowc.c: New file.
40125
40126         New module 'btowc'.
40127         * lib/wchar.in.h (btowc): New declaration.
40128         * lib/btowc.c: New file.
40129         * m4/btowc.m4: New file.
40130         * modules/btowc: New file.
40131         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
40132         HAVE_BTOWC.
40133         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
40134         * doc/posix-functions/btowc.texi: Document the new module.
40135
40136 2008-12-17  Bruno Haible  <bruno@clisp.org>
40137
40138         New module 'mbsinit'.
40139         * lib/wchar.in.h (mbsinit): New declaration.
40140         * lib/mbsinit.c: New file.
40141         * m4/mbsinit.m4: New file.
40142         * modules/mbsinit: New file.
40143         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
40144         HAVE_MBSINIT.
40145         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
40146         HAVE_MBSINIT.
40147         * doc/posix-functions/mbsinit.texi: Document the new module.
40148
40149 2008-12-16  Bruno Haible  <bruno@clisp.org>
40150
40151         * lib/unistd.in.h: Add comment.
40152         * tests/test-environ.c: Don't include <stdlib.h>.
40153
40154 2008-12-16  Bruno Haible  <bruno@clisp.org>
40155
40156         * lib/parse-duration.h (parse_duration): Document return value
40157         convention.
40158         * lib/parse-duration.c: Include specification header first. Add
40159         comments.
40160         (_): Remove macro.
40161         (parse_year_month_day, parse_hour_minute_second): Move side effects
40162         outside of strchr call.
40163         (parse_non_iso8601): Move side effects outside of isspace call.
40164         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
40165         call.
40166
40167 2008-12-16  Bruno Haible  <bruno@clisp.org>
40168
40169         * tests/test-parse-duration.sh: Produce no output when the test
40170         succeeds.
40171
40172 2008-12-16  Bruno Haible  <bruno@clisp.org>
40173
40174         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
40175         expressions.
40176
40177 2008-12-15  Bruno Haible  <bruno@clisp.org>
40178
40179         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
40180         * doc/glibc-functions/flistxattr.texi: Likewise.
40181         * doc/glibc-functions/fopencookie.texi: Likewise.
40182         * doc/glibc-functions/fremovexattr.texi: Likewise.
40183         * doc/glibc-functions/fsetxattr.texi: Likewise.
40184         * doc/glibc-functions/getxattr.texi: Likewise.
40185         * doc/glibc-functions/lgetxattr.texi: Likewise.
40186         * doc/glibc-functions/listxattr.texi: Likewise.
40187         * doc/glibc-functions/llistxattr.texi: Likewise.
40188         * doc/glibc-functions/lremovexattr.texi: Likewise.
40189         * doc/glibc-functions/lsetxattr.texi: Likewise.
40190         * doc/glibc-functions/removexattr.texi: Likewise.
40191         * doc/glibc-functions/setxattr.texi: Likewise.
40192         * doc/posix-functions/open_memstream.texi: Likewise.
40193
40194 2008-12-15  Eric Blake  <ebb9@byu.net>
40195
40196         Update doc for cygwin 1.7.
40197         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
40198         functions.
40199         * doc/posix-functions/fchmodat.texi: Likewise.
40200         * doc/posix-functions/fchownat.texi: Likewise.
40201         * doc/posix-functions/fdopendir.texi: Likewise.
40202         * doc/posix-functions/fmemopen.texi: Likewise.
40203         * doc/posix-functions/freeaddrinfo.texi: Likewise.
40204         * doc/posix-functions/fstatat.texi: Likewise.
40205         * doc/posix-functions/futimens.texi: Likewise.
40206         * doc/posix-functions/gai_strerror.texi: Likewise.
40207         * doc/posix-functions/getaddrinfo.texi: Likewise.
40208         * doc/posix-functions/getnameinfo.texi: Likewise.
40209         * doc/posix-functions/if_freenameindex.texi: Likewise.
40210         * doc/posix-functions/if_indextoname.texi: Likewise.
40211         * doc/posix-functions/if_nameindex.texi: Likewise.
40212         * doc/posix-functions/if_nametoindex.texi: Likewise.
40213         * doc/posix-functions/insque.texi: Likewise.
40214         * doc/posix-functions/linkat.texi: Likewise.
40215         * doc/posix-functions/llrint.texi: Likewise.
40216         * doc/posix-functions/llrintf.texi: Likewise.
40217         * doc/posix-functions/llrintl.texi: Likewise.
40218         * doc/posix-functions/lockf.texi: Likewise.
40219         * doc/posix-functions/lrintl.texi: Likewise.
40220         * doc/posix-functions/mkdirat.texi: Likewise.
40221         * doc/posix-functions/mkfifoat.texi: Likewise.
40222         * doc/posix-functions/mknodat.texi: Likewise.
40223         * doc/posix-functions/mq_close.texi: Likewise.
40224         * doc/posix-functions/mq_getattr.texi: Likewise.
40225         * doc/posix-functions/mq_notify.texi: Likewise.
40226         * doc/posix-functions/mq_open.texi: Likewise.
40227         * doc/posix-functions/mq_receive.texi: Likewise.
40228         * doc/posix-functions/mq_send.texi: Likewise.
40229         * doc/posix-functions/mq_setattr.texi: Likewise.
40230         * doc/posix-functions/mq_timedreceive.texi: Likewise.
40231         * doc/posix-functions/mq_timedsend.texi: Likewise.
40232         * doc/posix-functions/mq_unlink.texi: Likewise.
40233         * doc/posix-functions/open_memstream.texi: Likewise.
40234         * doc/posix-functions/openat.texi: Likewise.
40235         * doc/posix-functions/posix_fadvise.texi: Likewise.
40236         * doc/posix-functions/posix_fallocate.texi: Likewise.
40237         * doc/posix-functions/posix_madvise.texi: Likewise.
40238         * doc/posix-functions/posix_memalign.texi: Likewise.
40239         * doc/posix-functions/posix_openpt.texi: Likewise.
40240         * doc/posix-functions/readlinkat.texi: Likewise.
40241         * doc/posix-functions/remque.texi: Likewise.
40242         * doc/posix-functions/renameat.texi: Likewise.
40243         * doc/posix-functions/rintl.texi: Likewise.
40244         * doc/posix-functions/sem_unlink.texi: Likewise.
40245         * doc/posix-functions/shm_open.texi: Likewise.
40246         * doc/posix-functions/shm_unlink.texi: Likewise.
40247         * doc/posix-functions/signgam.texi: Likewise.
40248         * doc/posix-functions/sigset.texi: Likewise.
40249         * doc/posix-functions/stpcpy.texi: Likewise.
40250         * doc/posix-functions/stpncpy.texi: Likewise.
40251         * doc/posix-functions/strerror.texi: Likewise.
40252         * doc/posix-functions/strtod.texi: Likewise.
40253         * doc/posix-functions/symlinkat.texi: Likewise.
40254         * doc/posix-functions/unlinkat.texi: Likewise.
40255         * doc/posix-functions/utimensat.texi: Likewise.
40256         * doc/glibc-functions/bindresvport.texi: Likewise.
40257         * doc/glibc-functions/dn_expand.texi: Likewise.
40258         * doc/glibc-functions/exp10.texi: Likewise.
40259         * doc/glibc-functions/exp10f.texi: Likewise.
40260         * doc/glibc-functions/fgetxattr.texi: Likewise.
40261         * doc/glibc-functions/flistxattr.texi: Likewise.
40262         * doc/glibc-functions/fopencookie.texi: Likewise.
40263         * doc/glibc-functions/freeifaddrs.texi: Likewise.
40264         * doc/glibc-functions/fremovexattr.texi: Likewise.
40265         * doc/glibc-functions/fsetxattr.texi: Likewise.
40266         * doc/glibc-functions/getifaddrs.texi: Likewise.
40267         * doc/glibc-functions/getxattr.texi: Likewise.
40268         * doc/glibc-functions/lgetxattr.texi: Likewise.
40269         * doc/glibc-functions/listxattr.texi: Likewise.
40270         * doc/glibc-functions/llistxattr.texi: Likewise.
40271         * doc/glibc-functions/lremovexattr.texi: Likewise.
40272         * doc/glibc-functions/lsetxattr.texi: Likewise.
40273         * doc/glibc-functions/pow10.texi: Likewise.
40274         * doc/glibc-functions/pow10f.texi: Likewise.
40275         * doc/glibc-functions/rcmd_af.texi: Likewise.
40276         * doc/glibc-functions/removexattr.texi: Likewise.
40277         * doc/glibc-functions/res_init.texi: Likewise.
40278         * doc/glibc-functions/res_mkquery.texi: Likewise.
40279         * doc/glibc-functions/res_query.texi: Likewise.
40280         * doc/glibc-functions/res_querydomain.texi: Likewise.
40281         * doc/glibc-functions/res_send.texi: Likewise.
40282         * doc/glibc-functions/rresvport_af.texi: Likewise.
40283         * doc/glibc-functions/setxattr.texi: Likewise.
40284         * doc/glibc-functions/strcasestr.texi: Likewise.
40285
40286 2008-12-15  Bruno Haible  <bruno@clisp.org>
40287
40288         Fix compilation error on OSF/1 4.0.
40289         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
40290         <sys/time.h>, simply delegate to the system header.
40291         Reported by Daniel Richard G. <oss@teragram.com>.
40292
40293 2008-12-15  Bruno Haible  <bruno@clisp.org>
40294
40295         * doc/posix-functions/openat.texi: Mention the 'openat' module.
40296         * doc/posix-functions/fchmodat.texi: Likewise.
40297         * doc/posix-functions/fchownat.texi: Likewise.
40298         * doc/posix-functions/fdopendir.texi: Likewise.
40299         * doc/posix-functions/fstatat.texi: Likewise.
40300         * doc/posix-functions/mkdirat.texi: Likewise.
40301         * doc/posix-functions/unlinkat.texi: Likewise.
40302
40303 2008-12-14  Bruno Haible  <bruno@clisp.org>
40304
40305         Update doc for POSIX:2008.
40306         * doc/posix-functions/faccessat.texi: New file.
40307         * doc/posix-functions/fchmodat.texi: New file.
40308         * doc/posix-functions/fchownat.texi: New file.
40309         * doc/posix-functions/fdopendir.texi: New file.
40310         * doc/posix-functions/fstatat.texi: New file.
40311         * doc/posix-functions/futimens.texi: New file.
40312         * doc/posix-functions/linkat.texi: New file.
40313         * doc/posix-functions/mkdirat.texi: New file.
40314         * doc/posix-functions/mkfifoat.texi: New file.
40315         * doc/posix-functions/mknodat.texi: New file.
40316         * doc/posix-functions/open_wmemstream.texi: New file.
40317         * doc/posix-functions/openat.texi: New file.
40318         * doc/posix-functions/psiginfo.texi: New file.
40319         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
40320         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
40321         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
40322         * doc/posix-functions/readlinkat.texi: New file.
40323         * doc/posix-functions/renameat.texi: New file.
40324         * doc/posix-functions/strerror_l.texi: New file.
40325         * doc/posix-functions/symlinkat.texi: New file.
40326         * doc/posix-functions/unlinkat.texi: New file.
40327         * doc/posix-functions/utimensat.texi: New file.
40328         * doc/gnulib.texi (Function Substitutes): Add these subsections.
40329
40330 2008-12-14  Bruno Haible  <bruno@clisp.org>
40331
40332         Update doc for POSIX:2008.
40333         * doc/posix-functions/alphasort.texi: Renamed from
40334         doc/glibc-functions/alphasort.texi.
40335         * doc/posix-functions/dirfd.texi: Renamed from
40336         doc/glibc-functions/dirfd.texi.
40337         * doc/posix-functions/dprintf.texi: Renamed from
40338         doc/glibc-functions/dprintf.texi.
40339         * doc/posix-functions/duplocale.texi: Renamed from
40340         doc/glibc-functions/duplocale.texi.
40341         * doc/posix-functions/fexecve.texi: Renamed from
40342         doc/glibc-functions/fexecve.texi.
40343         * doc/posix-functions/fmemopen.texi: Renamed from
40344         doc/glibc-functions/fmemopen.texi.
40345         * doc/posix-functions/freelocale.texi: Renamed from
40346         doc/glibc-functions/freelocale.texi.
40347         * doc/posix-functions/getdate_err.texi: Renamed from
40348         doc/glibc-functions/getdate_err.texi.
40349         * doc/posix-functions/isalnum_l.texi: Renamed from
40350         doc/glibc-functions/isalnum_l.texi.
40351         * doc/posix-functions/isalpha_l.texi: Renamed from
40352         doc/glibc-functions/isalpha_l.texi.
40353         * doc/posix-functions/isblank_l.texi: Renamed from
40354         doc/glibc-functions/isblank_l.texi.
40355         * doc/posix-functions/iscntrl_l.texi: Renamed from
40356         doc/glibc-functions/iscntrl_l.texi.
40357         * doc/posix-functions/isdigit_l.texi: Renamed from
40358         doc/glibc-functions/isdigit_l.texi.
40359         * doc/posix-functions/isgraph_l.texi: Renamed from
40360         doc/glibc-functions/isgraph_l.texi.
40361         * doc/posix-functions/islower_l.texi: Renamed from
40362         doc/glibc-functions/islower_l.texi.
40363         * doc/posix-functions/isprint_l.texi: Renamed from
40364         doc/glibc-functions/isprint_l.texi.
40365         * doc/posix-functions/ispunct_l.texi: Renamed from
40366         doc/glibc-functions/ispunct_l.texi.
40367         * doc/posix-functions/isspace_l.texi: Renamed from
40368         doc/glibc-functions/isspace_l.texi.
40369         * doc/posix-functions/isupper_l.texi: Renamed from
40370         doc/glibc-functions/isupper_l.texi.
40371         * doc/posix-functions/iswalnum_l.texi: Renamed from
40372         doc/glibc-functions/iswalnum_l.texi.
40373         * doc/posix-functions/iswalpha_l.texi: Renamed from
40374         doc/glibc-functions/iswalpha_l.texi.
40375         * doc/posix-functions/iswblank_l.texi: Renamed from
40376         doc/glibc-functions/iswblank_l.texi.
40377         * doc/posix-functions/iswcntrl_l.texi: Renamed from
40378         doc/glibc-functions/iswcntrl_l.texi.
40379         * doc/posix-functions/iswctype_l.texi: Renamed from
40380         doc/glibc-functions/iswctype_l.texi.
40381         * doc/posix-functions/iswdigit_l.texi: Renamed from
40382         doc/glibc-functions/iswdigit_l.texi.
40383         * doc/posix-functions/iswgraph_l.texi: Renamed from
40384         doc/glibc-functions/iswgraph_l.texi.
40385         * doc/posix-functions/iswlower_l.texi: Renamed from
40386         doc/glibc-functions/iswlower_l.texi.
40387         * doc/posix-functions/iswprint_l.texi: Renamed from
40388         doc/glibc-functions/iswprint_l.texi.
40389         * doc/posix-functions/iswpunct_l.texi: Renamed from
40390         doc/glibc-functions/iswpunct_l.texi.
40391         * doc/posix-functions/iswspace_l.texi: Renamed from
40392         doc/glibc-functions/iswspace_l.texi.
40393         * doc/posix-functions/iswupper_l.texi: Renamed from
40394         doc/glibc-functions/iswupper_l.texi.
40395         * doc/posix-functions/iswxdigit_l.texi: Renamed from
40396         doc/glibc-functions/iswxdigit_l.texi.
40397         * doc/posix-functions/isxdigit_l.texi: Renamed from
40398         doc/glibc-functions/isxdigit_l.texi.
40399         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
40400         doc/glibc-functions/mbsnrtowcs.texi.
40401         * doc/posix-functions/mkdtemp.texi: Renamed from
40402         doc/glibc-functions/mkdtemp.texi.
40403         * doc/posix-functions/newlocale.texi: Renamed from
40404         doc/glibc-functions/newlocale.texi.
40405         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
40406         doc/glibc-functions/nl_langinfo_l.texi.
40407         * doc/posix-functions/open_memstream.texi: Renamed from
40408         doc/glibc-functions/open_memstream.texi.
40409         * doc/posix-functions/opterr.texi: Renamed from
40410         doc/glibc-functions/opterr.texi.
40411         * doc/posix-functions/optind.texi: Renamed from
40412         doc/glibc-functions/optind.texi.
40413         * doc/posix-functions/optopt.texi: Renamed from
40414         doc/glibc-functions/optopt.texi.
40415         * doc/posix-functions/psignal.texi: Renamed from
40416         doc/glibc-functions/psignal.texi.
40417         * doc/posix-functions/scandir.texi: Renamed from
40418         doc/glibc-functions/scandir.texi.
40419         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
40420         doc/glibc-functions/sched_get_priority_min.texi.
40421         * doc/posix-functions/signgam.texi: Renamed from
40422         doc/glibc-functions/signgam.texi.
40423         * doc/posix-functions/stpcpy.texi: Renamed from
40424         doc/glibc-functions/stpcpy.texi.
40425         * doc/posix-functions/stpncpy.texi: Renamed from
40426         doc/glibc-functions/stpncpy.texi.
40427         * doc/posix-functions/strcasecmp_l.texi: Renamed from
40428         doc/glibc-functions/strcasecmp_l.texi.
40429         * doc/posix-functions/strcoll_l.texi: Renamed from
40430         doc/glibc-functions/strcoll_l.texi.
40431         * doc/posix-functions/strfmon_l.texi: Renamed from
40432         doc/glibc-functions/strfmon_l.texi.
40433         * doc/posix-functions/strftime_l.texi: Renamed from
40434         doc/glibc-functions/strftime_l.texi.
40435         * doc/posix-functions/strncasecmp_l.texi: Renamed from
40436         doc/glibc-functions/strncasecmp_l.texi.
40437         * doc/posix-functions/strndup.texi: Renamed from
40438         doc/glibc-functions/strndup.texi.
40439         * doc/posix-functions/strnlen.texi: Renamed from
40440         doc/glibc-functions/strnlen.texi.
40441         * doc/posix-functions/strsignal.texi: Renamed from
40442         doc/glibc-functions/strsignal.texi.
40443         * doc/posix-functions/strxfrm_l.texi: Renamed from
40444         doc/glibc-functions/strxfrm_l.texi.
40445         * doc/posix-functions/timer_gettime.texi: Renamed from
40446         doc/glibc-functions/timer_gettime.texi.
40447         * doc/posix-functions/tolower_l.texi: Renamed from
40448         doc/glibc-functions/tolower_l.texi.
40449         * doc/posix-functions/toupper_l.texi: Renamed from
40450         doc/glibc-functions/toupper_l.texi.
40451         * doc/posix-functions/towctrans_l.texi: Renamed from
40452         doc/glibc-functions/towctrans_l.texi.
40453         * doc/posix-functions/towlower_l.texi: Renamed from
40454         doc/glibc-functions/towlower_l.texi.
40455         * doc/posix-functions/towupper_l.texi: Renamed from
40456         doc/glibc-functions/towupper_l.texi.
40457         * doc/posix-functions/uselocale.texi: Renamed from
40458         doc/glibc-functions/uselocale.texi.
40459         * doc/posix-functions/vdprintf.texi: Renamed from
40460         doc/glibc-functions/vdprintf.texi.
40461         * doc/posix-functions/wcpcpy.texi:
40462         Renamed from doc/glibc-functions/wcpcpy.texi.
40463         * doc/posix-functions/wcpncpy.texi: Renamed from
40464         doc/glibc-functions/wcpncpy.texi.
40465         * doc/posix-functions/wcscasecmp.texi: Renamed from
40466         doc/glibc-functions/wcscasecmp.texi.
40467         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
40468         doc/glibc-functions/wcscasecmp_l.texi.
40469         * doc/posix-functions/wcscoll_l.texi: Renamed from
40470         doc/glibc-functions/wcscoll_l.texi.
40471         * doc/posix-functions/wcsdup.texi: Renamed from
40472         doc/glibc-functions/wcsdup.texi.
40473         * doc/posix-functions/wcsncasecmp.texi: Renamed from
40474         doc/glibc-functions/wcsncasecmp.texi.
40475         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
40476         doc/glibc-functions/wcsncasecmp_l.texi.
40477         * doc/posix-functions/wcsnlen.texi: Renamed from
40478         doc/glibc-functions/wcsnlen.texi.
40479         * doc/posix-functions/wcsnrtombs.texi: Renamed from
40480         doc/glibc-functions/wcsnrtombs.texi.
40481         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
40482         doc/glibc-functions/wcsxfrm_l.texi.
40483         * doc/posix-functions/wctrans_l.texi: Renamed from
40484         doc/glibc-functions/wctrans_l.texi.
40485         * doc/posix-functions/wctype_l.texi: Renamed from
40486         doc/glibc-functions/wctype_l.texi.
40487         * doc/gnulib.texi (Function Substitutes): Add these subsections.
40488         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
40489         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
40490         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
40491         these subsections.
40492         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
40493         Remove sections.
40494
40495 2008-12-14  Bruno Haible  <bruno@clisp.org>
40496
40497         Update doc for POSIX:2008.
40498         * doc/posix-functions/*.texi: Update URL of POSIX specification.
40499
40500 2008-12-14  Bruno Haible  <bruno@clisp.org>
40501
40502         Update doc for POSIX:2008.
40503         * doc/pastposix-functions/bcmp.texi: Renamed from
40504         doc/posix-functions/bcmp.texi.
40505         * doc/pastposix-functions/bcopy.texi: Renamed from
40506         doc/posix-functions/bcopy.texi.
40507         * doc/pastposix-functions/bsd_signal.texi: Renamed from
40508         doc/posix-functions/bsd_signal.texi.
40509         * doc/pastposix-functions/bzero.texi: Renamed from
40510         doc/posix-functions/bzero.texi.
40511         * doc/pastposix-functions/ecvt.texi: Renamed from
40512         doc/posix-functions/ecvt.texi.
40513         * doc/pastposix-functions/fcvt.texi: Renamed from
40514         doc/posix-functions/fcvt.texi.
40515         * doc/pastposix-functions/ftime.texi: Renamed from
40516         doc/posix-functions/ftime.texi.
40517         * doc/pastposix-functions/gcvt.texi: Renamed from
40518         doc/posix-functions/gcvt.texi.
40519         * doc/pastposix-functions/getcontext.texi: Renamed from
40520         doc/posix-functions/getcontext.texi.
40521         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
40522         doc/posix-functions/gethostbyaddr.texi.
40523         * doc/pastposix-functions/gethostbyname.texi: Renamed from
40524         doc/posix-functions/gethostbyname.texi.
40525         * doc/pastposix-functions/getwd.texi: Renamed from
40526         doc/posix-functions/getwd.texi.
40527         * doc/pastposix-functions/h_errno.texi: Renamed from
40528         doc/posix-functions/h_errno.texi.
40529         * doc/pastposix-functions/index.texi: Renamed from
40530         doc/posix-functions/index.texi.
40531         * doc/pastposix-functions/makecontext.texi: Renamed from
40532         doc/posix-functions/makecontext.texi.
40533         * doc/pastposix-functions/mktemp.texi: Renamed from
40534         doc/posix-functions/mktemp.texi.
40535         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
40536         doc/posix-functions/pthread_attr_getstackaddr.texi.
40537         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
40538         doc/posix-functions/pthread_attr_setstackaddr.texi.
40539         * doc/pastposix-functions/rindex.texi: Renamed from
40540         doc/posix-functions/rindex.texi.
40541         * doc/pastposix-functions/scalb.texi: Renamed from
40542         doc/posix-functions/scalb.texi.
40543         * doc/pastposix-functions/setcontext.texi: Renamed from
40544         doc/posix-functions/setcontext.texi.
40545         * doc/pastposix-functions/swapcontext.texi: Renamed from
40546         doc/posix-functions/swapcontext.texi.
40547         * doc/pastposix-functions/ualarm.texi: Renamed from
40548         doc/posix-functions/ualarm.texi.
40549         * doc/pastposix-functions/usleep.texi: Renamed from
40550         doc/posix-functions/usleep.texi.
40551         * doc/pastposix-functions/vfork.texi: Renamed from
40552         doc/posix-functions/vfork.texi.
40553         * doc/pastposix-functions/wcswcs.texi: Renamed from
40554         doc/posix-functions/wcswcs.texi.
40555         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
40556         (Function Substitutes): Update.
40557
40558 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40559
40560         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
40561         m4/strerror.m4.
40562
40563 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40564             Bruno Haible  <bruno@clisp.org>
40565
40566         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
40567
40568 2008-12-13  Bruno Haible  <bruno@clisp.org>
40569
40570         * modules/strtoull (Depends-on): Remove unistd.
40571
40572 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40573
40574         * modules/strtoull (Depends-on): Add stdlib.
40575
40576 2008-12-11  Simon Josefsson  <simon@josefsson.org>
40577
40578         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
40579
40580 2008-12-10  Jim Meyering  <meyering@redhat.com>
40581
40582         gl_ASSERT: don't say assertions are disabled when they're not
40583         * m4/assert.m4 (gl_ASSERT): Do not make configure report
40584         "checking whether to enable assertions... no", when they are in
40585         fact enabled.  This is solely a bug in the output of configure.
40586         In spite of saying "no", NDEBUG was not defined in that case.
40587         Also, as noted by Eric Blake, leave assertions enabled upon
40588         --enable-assert=INVALID.
40589
40590 2008-12-10  Bruno Haible  <bruno@clisp.org>
40591
40592         Change MODULES.html to refer to POSIX:2008 where possible.
40593         * MODULES.html.sh (POSIX2008_URL): New variable.
40594         (posix_headers): Remove sys/timeb, ucontext.
40595         (posix2001_headers): New variable.
40596         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
40597         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
40598         index, makecontext, mktemp, pthread_attr_getstackaddr,
40599         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
40600         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
40601         (posix2001_functions): New variable.
40602         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
40603         otherwise.
40604
40605 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40606
40607         add missing include to parse-duration.c
40608         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
40609         * modules/parse-duration (Depends-on): Add xalloc.
40610
40611         fix sed script reading maint.mk
40612         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
40613         (syntax-check-rules): Use it.
40614
40615 2008-12-09  Bruno Haible  <bruno@clisp.org>
40616
40617         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
40618         MacOS X 10.4/PowerPC.
40619         Reported by Simon Josefsson.
40620
40621 2008-12-08  Jim Meyering  <meyering@redhat.com>
40622
40623         work around mingw's lack of some S_IF definitions
40624         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
40625         Reported by Simon Josefsson.
40626
40627 2008-12-08  Bruno Haible  <bruno@clisp.org>
40628
40629         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
40630         applied to variables. Needed on MacOS X 10.4/PowerPC.
40631         Reported by Simon Josefsson.
40632
40633 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
40634         and Eric Blake  <ebb9@byu.net>
40635
40636         assert: honor --enable-assert
40637         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
40638         order to honor --enable-assert, rather than treating it as a
40639         synonym for --disable-assert.
40640
40641 2008-12-08  Jim Meyering  <meyering@redhat.com>
40642
40643         * lib/posixtm.c: Remove now-useless declaration of mktime.
40644
40645         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
40646
40647 2008-12-07  Bruno Haible  <bruno@clisp.org>
40648
40649         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
40650         test_once): Mark functions as static.
40651         * tests/test-tls.c (test_tls): Likewise.
40652
40653 2008-12-07  Bruno Haible  <bruno@clisp.org>
40654
40655         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
40656         iconv_register_autodetect.
40657
40658 2008-12-07  Jim Meyering  <meyering@redhat.com>
40659
40660         posixtm.c: avoid a warning
40661         * lib/posixtm.c (posixtime): Don't initialize tm0.
40662         It's no longer needed to placate gcc4's -Wuninitialized,
40663         and the attempt to placate would elicit a new warning.
40664
40665         unicodeio.c: mark unused parameters
40666         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40667         (fallback_failure_callback): Likewise.
40668
40669 2008-12-07  Bruno Haible  <bruno@clisp.org>
40670
40671         * gnulib-tool (func_create_testdir): When building the tests
40672         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
40673         Reported by Simon Josefsson.
40674
40675 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40676
40677         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
40678
40679 2008-12-06  Bruno Haible  <bruno@clisp.org>
40680
40681         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
40682         Suggested by Eric Blake.
40683
40684 2008-12-06  Bruno Haible  <bruno@clisp.org>
40685
40686         Fix a c-stack test failure on MacOS X.
40687         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
40688         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
40689         handler for SIGBUS as well.
40690         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
40691         install a signal handler for SIGBUS as well.
40692         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
40693
40694 2008-12-06  Bruno Haible  <bruno@clisp.org>
40695
40696         Advocacy documentation.
40697         * doc/gnulib-intro.texi (Benefits): New section.
40698         * doc/gnulib.texi: Update.
40699
40700 2008-12-06  Bruno Haible  <bruno@clisp.org>
40701
40702         Document the 'manywarnings' module.
40703         * doc/manywarnings.texi: New file.
40704         * doc/gnulib.texi: Include it.
40705
40706 2008-12-05  Eric Blake  <ebb9@byu.net>
40707
40708         tests: silence some gcc warnings
40709         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
40710         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
40711         type mismatches.
40712
40713 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40714             Bruno Haible  <bruno@clisp.org>
40715
40716         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
40717
40718 2008-11-29  Jim Meyering  <meyering@redhat.com>
40719
40720         unicodeio.c: mark unused parameters
40721         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40722         (fallback_failure_callback): Likewise.
40723
40724         fts: fix a thinko
40725         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
40726         (set_stat_type): Return S_IF*-valued "type" directly.
40727         Prompted by James Youngman's spotting a related bug.
40728         Confirmed by further testing through find.
40729
40730         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
40731         * lib/fts.c (D_TYPE): Define.
40732         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
40733         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
40734         (s_ifmt_shift_bits): New function.
40735         (set_stat_type): New function.
40736         (fts_build): When not calling fts_stat, call set_stat_type
40737         to propagate dirent.d_type info to fts_read caller.
40738         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
40739         fts_statp->st_mode type information may be valid.
40740
40741 2008-11-28  Simon Josefsson  <simon@josefsson.org>
40742
40743         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
40744         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
40745         <sds@gnu.org>.
40746
40747 2008-11-20  Bruno Haible  <bruno@clisp.org>
40748
40749         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
40750         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
40751         INCLUDE_NEXT.
40752         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
40753         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
40754         * modules/math (Makefile.am): Substitute
40755         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
40756         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40757
40758 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
40759             Bruno Haible  <bruno@clisp.org>
40760
40761         * lib/stdint.in.h: Define all type macros so that their expansion is
40762         a single typedef'ed token. Fixes a compilation failure in Boost which
40763         does "using ::int8_t;".
40764
40765 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40766
40767         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
40768         gl_MANYWARN_ALL_GCC.
40769         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
40770         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
40771         * modules/manywarnings: New file.
40772         * MODULES.html.sh: Mention manywarnings module.
40773
40774 2008-11-18  Bruno Haible  <bruno@clisp.org>
40775
40776         * doc/gnulib-tool.texi (Unit tests): New section.
40777
40778 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40779
40780         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
40781         paths like 'lib/po/foo.po'.
40782
40783 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40784
40785         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
40786         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
40787
40788 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40789
40790         * m4/warnings.m4: Use CPPFLAGS to really check whether the
40791         parameter works.
40792
40793 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40794
40795         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
40796
40797 2008-11-17  Bruce Korb  <bkorb@gnu.org>
40798
40799         * modules/parse-duration-tests: New file.
40800         * tests/test-parse-duration.sh: New file.
40801         * tests/test-parse-duration.c: New file.
40802
40803         New module 'parse-duration'.
40804         * lib/parse-duration.h: New file.
40805         * lib/parse-duration.c: New file.
40806         * modules/parse-duration: New file.
40807
40808 2008-11-17  Bruno Haible  <bruno@clisp.org>
40809
40810         * tests/test-select-out.sh: Comment out the first pipe test.
40811         Reported by Simon Josefsson.
40812
40813 2008-11-17  Bruno Haible  <bruno@clisp.org>
40814
40815         * modules/getaddrinfo (Depends-on): Add servent, hostent.
40816         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
40817         gl_HOSTENT.
40818
40819 2008-11-17  Bruno Haible  <bruno@clisp.org>
40820
40821         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
40822         -lnetwork and -lnet. Needed for Haiku and BeOS.
40823
40824 2008-11-16  Bruno Haible  <bruno@clisp.org>
40825
40826         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
40827
40828 2008-11-16  Bruno Haible  <bruno@clisp.org>
40829
40830         Avoid test failure on Haiku.
40831         * tests/test-fsync.c: Include <errno.h>.
40832         (main): Don't require that fsync (0) fails.
40833
40834 2008-11-15  Bruno Haible  <bruno@clisp.org>
40835
40836         New module 'hostent'.
40837         * modules/hostent: New file.
40838         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
40839
40840 2008-11-15  Bruno Haible  <bruno@clisp.org>
40841
40842         New module 'servent'.
40843         * modules/servent: New file.
40844         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
40845
40846 2008-11-15  Bruno Haible  <bruno@clisp.org>
40847
40848         Avoid generating same test program with two different rules.
40849         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
40850         test-frexp to test-frexp-nolibm.
40851         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
40852         test-frexpl to test-frexpl-nolibm.
40853
40854 2008-11-15  Bruno Haible  <bruno@clisp.org>
40855
40856         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
40857         $(FREXPL_LIBM).
40858
40859 2008-11-15  Bruno Haible  <bruno@clisp.org>
40860
40861         * lib/netdb.in.h: Activate the definitions also when the system's
40862         <netdb.h> has 'struct addrinfo'.
40863         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
40864         EAI_OVERFLOW or AI_NUMERICSERV.
40865         * doc/posix-headers/netdb.texi: Document the problem.
40866
40867 2008-11-15  Bruno Haible  <bruno@clisp.org>
40868
40869         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
40870
40871         Make the 'sched' module work on platforms where <sched.h> exists but
40872         is incomplete (such as Haiku).
40873         * lib/sched.in.h; Include the system's <sched.h> if it exists.
40874         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
40875         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
40876         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
40877         HAVE_STRUCT_SCHED_PARAM.
40878         * modules/sched (Depends-on): Add include_next.
40879         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
40880         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
40881         * doc/posix-headers/sched.texi: Document the issue.
40882
40883 2008-11-13  Jim Meyering  <meyering@redhat.com>
40884
40885         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
40886         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
40887         test would fail due to the difference in the Report bugs to ...
40888         line.  The expected address is empty, "<>", while the actual
40889         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
40890
40891 2008-11-12  Bruno Haible  <bruno@clisp.org>
40892
40893         lstat: don't compile lstat.c on systems lacking lstat
40894         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
40895         which don't have lstat; this is handled by lib/sys_stat.in.h already.
40896         Reported by Daniel P. Berrange via Jim Meyering.
40897
40898 2008-11-12  Jim Meyering  <meyering@redhat.com>
40899
40900         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
40901
40902 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40903
40904         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
40905         instead.
40906
40907 2008-11-12  Bruno Haible  <bruno@clisp.org>
40908
40909         * lib/unicodeio.c: Include unistr.h.
40910         (utf8_wctomb): Remove function.
40911         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
40912
40913 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40914
40915         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
40916         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
40917         <bruno@clisp.org>.
40918         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
40919
40920 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40921
40922         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
40923         * doc/gnulib.texi: Add section for warnings.
40924
40925 2008-11-11  Bruno Haible  <bruno@clisp.org>
40926
40927         * lib/sockets.h: Add a comment.
40928
40929 2008-11-11  Karl Berry  <karl@gnu.org>
40930
40931         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
40932
40933 2008-11-11  Eric Blake  <ebb9@byu.net>
40934
40935         fdl.texi: avoid git symlinks
40936         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
40937
40938 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40939
40940         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
40941
40942 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40943
40944         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
40945         (gl_WARN_ADD): Substitute $2 if literal.
40946
40947 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40948
40949         * m4/warning.m4: Remove.
40950
40951 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40952
40953         * m4/warnings.m4: Almost complete rewrite. :-)
40954
40955 2008-11-10  Simon Josefsson  <simon@josefsson.org>
40956
40957         * modules/warnings: New module.
40958         * m4/warnings.m4: New file.
40959         * MODULES.html.sh: Mention warnings module.
40960         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
40961         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40962
40963 2008-11-10  Eric Blake  <ebb9@byu.net>
40964
40965         fdl.texi: make a symlink to the latest version
40966         * doc/standards.texi: Revert today's earlier change.
40967         * doc/fdl-1.2.texi: Rename from old fdl.texi...
40968         * doc/fdl.texi: ...and replace this with a symlink to the newer
40969         fdl-1.3.texi.
40970
40971 2008-11-10  Bruno Haible  <bruno@clisp.org>
40972
40973         * tests/test-select-fd.c (main): Accept the result file name as fourth
40974         argument.
40975         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
40976         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
40977
40978 2008-11-10  Bruno Haible  <bruno@clisp.org>
40979
40980         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
40981         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
40982         as autoconf-substituted macros.
40983         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
40984         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
40985         gl_NETDB_H_DEFAULTS. Set these variables.
40986         * modules/netdb (Makefile.am): Substitute these variables.
40987
40988 2008-11-10  Eric Blake  <ebb9@byu.net>
40989
40990         standards.texi: include correct file for FDL 1.3
40991         * doc/standards.texi (GNU Free Documentation License): Change
40992         include file to pull in FDL 1.3, not 1.2.
40993
40994         fdl.texi: revert accidental change to license
40995         * doc/fdl.texi: This is FDL 1.2, not 1.3.
40996
40997 2008-11-10  Bruno Haible  <bruno@clisp.org>
40998
40999         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
41000         cross-compiling guesses also when the native compile gives no result.
41001
41002 2008-11-10  Bruno Haible  <bruno@clisp.org>
41003
41004         * lib/spawni.c (__spawni): Force variable into the stack.
41005
41006 2008-11-10  Bruno Haible  <bruno@clisp.org>
41007
41008         Add support for Haiku.
41009         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
41010         glibc and BeOS, but also on Haiku.
41011         * lib/fpurge.c (fpurge): Likewise.
41012         * lib/freadable.c (freadable): Likewise.
41013         * lib/freadahead.c (freadahead): Likewise.
41014         * lib/freading.c (freading): Likewise.
41015         * lib/freadptr.c (freadptr): Likewise.
41016         * lib/freadseek.c (freadptrinc): Likewise.
41017         * lib/fseeko.c (rpl_fseeko): Likewise.
41018         * lib/fseterr.c (fseterr): Likewise.
41019         * lib/fwritable.c (fwritable): Likewise.
41020         * lib/fwriting.c (fwriting): Likewise.
41021         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
41022
41023 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
41024
41025         * lib/config.charset: Treat Haiku like BeOS.
41026
41027 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
41028
41029         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
41030         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
41031
41032 2008-11-08  Bruno Haible  <bruno@clisp.org>
41033
41034         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
41035         AC_CACHE_CHECK.
41036
41037 2008-11-08  Bruno Haible  <bruno@clisp.org>
41038
41039         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
41040
41041 2008-11-08  Bruno Haible  <bruno@clisp.org>
41042
41043         * tests/test-select-fd.c: New file.
41044         * tests/test-select-in.sh: New file.
41045         * tests/test-select-out.sh: New file.
41046         * tests/test-select-stdin.c: New file.
41047         * modules/select-tests (Files): Add the new files.
41048         (Depends-on): Add gettimeofday.
41049         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
41050         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
41051         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
41052
41053 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
41054             Bruno Haible  <bruno@clisp.org>
41055
41056         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
41057
41058 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
41059
41060         * build-aux/pmccabe2html: Added support for C++ source files.
41061
41062 2008-11-05  Ben Pfaff  <blp@gnu.org>
41063
41064         Fix lib/close.c build on Windows.
41065         * modules/close (Files): Add lib/w32sock.h.
41066
41067 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
41068
41069         Accept Bison's NEWS format.
41070         * build-aux/announce-gen (print_news_deltas): Tweak
41071         $re_prefix.
41072
41073 2008-11-04  Bruno Haible  <bruno@clisp.org>
41074
41075         * modules/random_r (Maintainer): Add glibc.
41076
41077 2008-11-04  Simon Josefsson  <simon@josefsson.org>
41078
41079         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
41080         by karl@freefriends.org (Karl Berry).
41081         * doc/alloca.texi: Likewise.
41082         * doc/c-ctype.texi: Likewise.
41083         * doc/c-strcase.texi: Likewise.
41084         * doc/c-strcaseeq.texi: Likewise.
41085         * doc/c-strcasestr.texi: Likewise.
41086         * doc/c-strstr.texi: Likewise.
41087         * doc/c-strtod.texi: Likewise.
41088         * doc/c-strtold.texi: Likewise.
41089         * doc/ctime.texi: Likewise.
41090         * doc/error.texi: Likewise.
41091         * doc/fdl.texi: Likewise.
41092         * doc/gcd.texi: Likewise.
41093         * doc/getdate.texi: Likewise.
41094         * doc/gnulib-intro.texi: Likewise.
41095         * doc/gnulib-tool.texi: Likewise.
41096         * doc/gnulib.texi: Likewise.
41097         * doc/inet_ntoa.texi: Likewise.
41098         * doc/maintain.texi: Likewise.
41099         * doc/make-stds.texi: Likewise.
41100         * doc/quote.texi: Likewise.
41101         * doc/regexprops-generic.texi: Likewise.
41102         * doc/standards.texi: Likewise.
41103         * doc/verify.texi: Likewise.
41104         * doc/visibility.texi: Likewise.
41105         * doc/gnulib.texi (GNU Free Documentation License): Include
41106         fdl-1.3.texi instead of fdl.texi.
41107
41108 2008-11-04  Simon Josefsson  <simon@josefsson.org>
41109
41110         * doc/fdl-1.3.texi: New file, from
41111         <http://www.gnu.org/licenses/fdl-1.3.texi>.
41112         * modules/fdl-1.3: Add.
41113         * MODULES.html.sh: Add fdl-1.3.
41114
41115 2008-11-03  Bruno Haible  <bruno@clisp.org>
41116
41117         Make determination of absolute name of header file work with AIX xlc.
41118         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
41119         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
41120         preprocessing.
41121         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41122         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
41123
41124 2008-11-03  Simon Josefsson  <simon@josefsson.org>
41125
41126         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
41127         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
41128         <ludo@gnu.org>.
41129
41130 2008-11-02  Bruno Haible  <bruno@clisp.org>
41131
41132         Mark 'strpbrk' obsolete.
41133         * modules/strpbrk (Status, Notice): New sections.
41134         * modules/strtok_r (Depends-on): Add strpbrk.
41135
41136 2008-11-02  Bruno Haible  <bruno@clisp.org>
41137
41138         Mark 'strdup' obsolete.
41139         * modules/strdup (Status, Notice): New sections.
41140         * modules/findprog (Depends-on): Add strdup.
41141         * modules/getaddrinfo (Depends-on): Likewise.
41142         * modules/localename (Depends-on): Likewise.
41143         * modules/relocatable-lib (Depends-on): Likewise.
41144         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
41145         * modules/relocatable-prog (Depends-on): Likewise.
41146         * modules/trim (Depends-on): Likewise.
41147         * modules/unictype/gen-ctype (Depends-on): Likewise.
41148         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
41149
41150 2008-11-02  Bruno Haible  <bruno@clisp.org>
41151
41152         Mark 'strcspn' obsolete.
41153         * modules/strcspn (Status, Notice): New sections.
41154
41155 2008-11-02  Bruno Haible  <bruno@clisp.org>
41156
41157         Mark 'rmdir' obsolete.
41158         * modules/rmdir (Status, Notice): New sections.
41159         * modules/clean-temp (Depends-on): Add rmdir.
41160         * modules/openat (Depends-on): Likewise.
41161
41162 2008-11-02  Bruno Haible  <bruno@clisp.org>
41163
41164         Mark 'raise' obsolete.
41165         * modules/raise (Status, Notice): New sections.
41166         (Include): Specify <signal.h>.
41167         * modules/stdio (Depends-on): Add raise.
41168         * modules/write (Depends-on): Likewise.
41169
41170 2008-11-02  Bruno Haible  <bruno@clisp.org>
41171
41172         Mark 'memset' obsolete.
41173         * modules/memset (Status, Notice): New sections.
41174
41175 2008-11-02  Bruno Haible  <bruno@clisp.org>
41176
41177         Mark 'memmove' obsolete.
41178         * modules/memmove (Status, Notice): New sections.
41179         * modules/argp (Depends-on): Add memmove.
41180         * modules/argz (Depends-on): Likewise.
41181         * modules/canonicalize (Depends-on): Likewise.
41182         * modules/canonicalize-lgpl (Depends-on): Likewise.
41183         * modules/fts (Depends-on): Likewise.
41184         * modules/getcwd (Depends-on): Likewise.
41185         * modules/human (Depends-on): Likewise.
41186         * modules/regex (Depends-on): Likewise.
41187         * modules/striconveh (Depends-on): Likewise.
41188         * modules/trim (Depends-on): Likewise.
41189         * modules/unistr/u8-move (Depends-on): Likewise.
41190         * modules/unistr/u16-move (Depends-on): Likewise.
41191         * modules/unistr/u32-move (Depends-on): Likewise.
41192
41193 2008-11-02  Bruno Haible  <bruno@clisp.org>
41194
41195         Mark 'memcpy' obsolete.
41196         * modules/memcpy (Status, Notice): New sections.
41197
41198 2008-11-02  Bruno Haible  <bruno@clisp.org>
41199
41200         Mark 'memcmp' obsolete.
41201         * modules/memcmp (Status, Notice): New sections.
41202         * modules/argmatch (Depends-on): Add memchr.
41203         * modules/backupfile (Depends-on): Likewise.
41204         * modules/c-strcasestr (Depends-on): Likewise.
41205         * modules/crypto/des (Depends-on): Likewise.
41206         * modules/csharpcomp (Depends-on): Likewise.
41207         * modules/fnmatch (Depends-on): Likewise.
41208         * modules/git-merge-changelog (Depends-on): Likewise.
41209         * modules/isnand (Depends-on): Likewise.
41210         * modules/isnand-nolibm (Depends-on): Likewise.
41211         * modules/isnanf (Depends-on): Likewise.
41212         * modules/isnanf-nolibm (Depends-on): Likewise.
41213         * modules/isnanl (Depends-on): Likewise.
41214         * modules/isnanl-nolibm (Depends-on): Likewise.
41215         * modules/mbchar (Depends-on): Likewise.
41216         * modules/memcoll (Depends-on): Likewise.
41217         * modules/quotearg (Depends-on): Likewise.
41218         * modules/regex (Depends-on): Likewise.
41219         * modules/relocatable-prog (Depends-on): Likewise.
41220         * modules/same (Depends-on): Likewise.
41221         * modules/signbit (Depends-on): Likewise.
41222         * modules/strcasestr-simple (Depends-on): Likewise.
41223         * modules/unictype/gen-ctype (Depends-on): Likewise.
41224         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
41225         * modules/uniname/uniname (Depends-on): Likewise.
41226         * modules/unistr/u8-cmp (Depends-on): Likewise.
41227
41228 2008-11-02  Bruno Haible  <bruno@clisp.org>
41229
41230         Mark 'memchr' obsolete.
41231         * modules/memchr (Status, Notice): New sections.
41232         * modules/argp (Depends-on): Add memchr.
41233         * modules/base64 (Depends-on): Likewise.
41234         * modules/c-strcasestr (Depends-on): Likewise.
41235         * modules/chdir-long (Depends-on): Likewise.
41236         * modules/fnmatch (Depends-on): Likewise.
41237         * modules/getsubopt (Depends-on): Likewise.
41238         * modules/git-merge-changelog (Depends-on): Likewise.
41239         * modules/glob (Depends-on): Likewise.
41240         * modules/strcasestr-simple (Depends-on): Likewise.
41241         * modules/strnlen (Depends-on): Likewise.
41242
41243 2008-11-02  Bruno Haible  <bruno@clisp.org>
41244
41245         Mark 'atexit' obsolete.
41246         * modules/atexit (Status, Notice): New sections.
41247         * modules/chdir-long (Depends-on): Add atexit.
41248         * modules/wait-process (Depends-on): Likewise.
41249
41250 2008-11-02  Bruno Haible  <bruno@clisp.org>
41251
41252         * gnulib-tool: New option --with-obsolete.
41253         (func_usage): Document it.
41254         (func_modules_transitive_closure): Drop obsolete dependencies if
41255         incobsolete is not true.
41256         (func_import): Read and save the incobsolete variable to the cache.
41257
41258 2008-11-02  Bruno Haible  <bruno@clisp.org>
41259
41260         * modules/TEMPLATE-EXTENDED: New field 'Status'.
41261         * gnulib-tool: New option --extract-status.
41262         (func_usage): Document it.
41263         (sed_extract_prog): Recognize it.
41264         (func_get_status): New function.
41265
41266 2008-10-30  Simon Josefsson  <simon@josefsson.org>
41267
41268         * modules/sockets (License): Change from LGPL to LGPLv2+.
41269
41270 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41271
41272         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
41273
41274 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41275
41276         * MODULES.html.sh (Support for systems lacking POSIX:2001):
41277         Mention times and sys_times.
41278         * modules/sys_times, modules/sys_times-tests: New modules.
41279         * modules/times, modules/times-tests: Likewise
41280         * m4/sys_times_h.m4: New file.
41281         * lib/sys_times.in.h: Likewise
41282         * lib/times.c: Likewise.
41283         * tests/test-sys_times.c: Likewise.
41284         * tests/test-times.c: Likewise.
41285         * doc/posix-headers/sys_times.texi: Update.
41286         * doc/posix-functions/times.texi: Update.
41287
41288 2008-10-28  Jim Meyering  <meyering@redhat.com>
41289
41290         * modules/tempname (Depends-on): Add lstat.
41291
41292         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
41293
41294 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41295
41296         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
41297         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
41298         using idiom used elsewhere in gnulib.
41299
41300 2008-10-27  Jim Meyering  <meyering@redhat.com>
41301
41302         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
41303
41304 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41305
41306         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
41307         TESTS_ENVIRONMENT, for shell scripts that needs to call built
41308         programs.
41309         * tests/test-argp-2.sh: Use $EXEEXT when needed.
41310
41311 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41312
41313         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
41314
41315 2008-10-27  Bruno Haible  <bruno@clisp.org>
41316
41317         * tests/test-lstat.c: Include <stdio.h>.
41318
41319 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41320
41321         * modules/lstat-tests: New module.
41322         * tests/test-lstat.c: New file.
41323
41324 2008-10-26  Jim Meyering  <meyering@redhat.com>
41325
41326         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
41327
41328 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41329             Bruno Haible  <bruno@clisp.org>
41330
41331         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
41332         * modules/configmake (Include): Add a note that the include must come
41333         after all system headers.
41334         * lib/javaversion.c: Include configmake.h after all other includes.
41335
41336 2008-10-26  Bruno Haible  <bruno@clisp.org>
41337
41338         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
41339         HAVE_STRUCT_RANDOM_DATA to 1.
41340         (gl_STDLIB_H): Simplify.
41341
41342 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41343
41344         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
41345         substitute HAVE_STRUCT_RANDOM_DATA.
41346         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
41347         random_data.
41348         * modules/stdlib (Makefile.am): Substitute
41349         HAVE_STRUCT_RANDOM_DATA.
41350
41351 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41352
41353         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
41354         * doc/gnulib-intro.texi (Copyright): Likewise.
41355
41356 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41357
41358         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
41359         findings.
41360
41361 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
41362             Bruno Haible  <bruno@clisp.org>
41363
41364         * lib/unistd.in.h: Include <winsock2.h>.
41365         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
41366         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
41367         Provide dummy declarations.
41368         (gethostname): Override.
41369         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
41370         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
41371         gl_PREREQ_SYS_H_WINSOCK2.
41372         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
41373         * doc/posix-functions/gethostname.texi: More details.
41374
41375 2008-10-25  Bruno Haible  <bruno@clisp.org>
41376
41377         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
41378         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
41379         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
41380
41381         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
41382         here ...
41383         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
41384         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
41385         gl_UNISTD_H_DEFAULTS.
41386
41387 2008-10-25  Eric Blake  <ebb9@byu.net>
41388
41389         signbit: avoid spurious compiler failure
41390         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
41391         declarations inside function.
41392
41393 2008-10-24  Simon Josefsson  <simon@josefsson.org>
41394             Bruno Haible  <bruno@clisp.org>
41395
41396         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
41397         * modules/random_r (Depends-on): Add stdint.
41398
41399 2008-10-24  Bruno Haible  <bruno@clisp.org>
41400
41401         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
41402         Eggert.
41403         * modules/strerror (License): Likewise.
41404
41405 2008-10-24  Jim Meyering  <meyering@redhat.com>
41406
41407         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
41408         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
41409
41410 2008-10-24  Eric Blake  <ebb9@byu.net>
41411
41412         getgroups: fix compilation when getgroups is available
41413         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
41414         but with <config.h> override of getgroups disabled.
41415
41416 2008-10-24  Simon Josefsson  <simon@josefsson.org>
41417
41418         * doc/gnulib.texi (Header files): Add note about C++ problems.
41419         Explained by Bruno Haible <bruno@clisp.org>.
41420
41421 2008-10-23  Bruno Haible  <bruno@clisp.org>
41422
41423         Define a dummy SA_NODEFER macro on Interix.
41424         * lib/signal.in.h (SA_NODEFER): Define fallback.
41425         Reported by Aleksey Cheusov <cheusov@tut.by> via
41426         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
41427
41428 2008-10-23  Bruno Haible  <bruno@clisp.org>
41429
41430         * modules/freadahead (License): Change to LGPLv2+.
41431         Suggested by Simon Josefsson.
41432
41433 2008-10-23  Jim Meyering  <meyering@redhat.com>
41434
41435         random_r: new module
41436         * modules/random_r: New file.
41437         * m4/random_r.m4: New file.
41438         * lib/random_r.c: New file, from glibc.
41439         * modules/random_r-tests: New file.
41440         * tests/test-random_r.c: New file.
41441         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
41442          Declare.
41443         (RAND_MAX): Define.
41444         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
41445         * modules/stdlib: Substitute them, too.
41446         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
41447         * doc/glibc-functions/initstate_r.texi: Mention the new module.
41448         * doc/glibc-functions/random_r.texi: Likewise.
41449         * doc/glibc-functions/setstate_r.texi: Likewise.
41450         * doc/glibc-functions/srandom_r.texi: Likewise.
41451         * config/srclist.txt: Mention it.
41452
41453 2008-10-23  David Lutterkort  <lutter@redhat.com>
41454
41455         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
41456         link requirement
41457
41458 2008-10-23  Jim Meyering  <meyering@redhat.com>
41459
41460         selinux-h: mark parameters of stub functions as intentionally unused
41461         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
41462         * lib/se-context.in.h: Likewise.
41463
41464 2008-10-22  Simon Josefsson  <simon@josefsson.org>
41465
41466         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
41467
41468 2008-10-22  Simon Josefsson  <simon@josefsson.org>
41469
41470         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
41471
41472 2008-10-22  Eric Blake  <ebb9@byu.net>
41473
41474         glthread/thread: avoid compiler warning
41475         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
41476         Add unreachable abort to silence compiler.
41477
41478 2008-10-22  Eric Blake  <ebb9@byu.net>
41479
41480         netdb: also supply struct addrinfo for cygwin 1.5.x
41481         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
41482         older cygwin.
41483         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
41484         cygwin.
41485         * doc/posix-headers/netdb.texi (netdb.h): Document this.
41486
41487 2008-10-22  Bruno Haible  <bruno@clisp.org>
41488
41489         * users.txt: Update entry about pspp.
41490
41491 2008-10-21  Bruno Haible  <bruno@clisp.org>
41492
41493         Simplification.
41494         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
41495         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
41496
41497         Simplification.
41498         * lib/ioctl.c (ioctl): Don't undefine.
41499         * lib/socket.c (socket): Don't undefine.
41500
41501         Remove unused module indicator macros.
41502         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
41503         GNULIB_$1 as a C macro.
41504
41505         * doc/posix-functions/close.texi: Undo last change.
41506         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
41507         Windows platforms.
41508
41509 2008-10-21  Bruno Haible  <bruno@clisp.org>
41510
41511         Add gethostname() declaration to <unistd.h>.
41512         * lib/unistd.in.h (gethostname): New declaration.
41513         * lib/gethostname.c: Include <unistd.h>.
41514         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
41515         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
41516         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
41517         and HAVE_GETHOSTNAME.
41518         * modules/gethostname (Depends-on): Add unistd.
41519         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41520         (Include): Specify <unistd.h>.
41521         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
41522         HAVE_GETHOSTNAME.
41523         * tests/test-gethostname.c: Include <unistd.h> first.
41524
41525 2008-10-21  Bruno Haible  <bruno@clisp.org>
41526
41527         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
41528         * modules/select-tests (Depends-on): Likewise.
41529         Reported by Simon Josefsson.
41530
41531 2008-10-21  Simon Josefsson  <simon@josefsson.org>
41532
41533         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
41534         * lib/accept.c: New file, based on winsock.c.
41535         * lib/bind.c: New file, based on winsock.c.
41536         * lib/connect.c: New file, based on winsock.c.
41537         * lib/getpeername.c: New file, based on winsock.c.
41538         * lib/getsockname.c: New file, based on winsock.c.
41539         * lib/getsockopt.c: New file, based on winsock.c.
41540         * lib/ioctl.c: New file, based on winsock.c.
41541         * lib/listen.c: New file, based on winsock.c.
41542         * lib/recv.c: New file, based on winsock.c.
41543         * lib/recvfrom.c: New file, based on winsock.c.
41544         * lib/send.c: New file, based on winsock.c.
41545         * lib/sendto.c: New file, based on winsock.c.
41546         * lib/setsockopt.c: New file, based on winsock.c.
41547         * lib/shutdown.c: New file, based on winsock.c.
41548         * lib/socket.c: New file, based on winsock.c.
41549         * lib/w32sock.h: New file, based on winsock.c.
41550         * lib/winsock.c: Remove file.
41551         * modules/accept: Likewise.
41552         * modules/bind: Likewise.
41553         * modules/connect: Likewise.
41554         * modules/getpeername: Likewise.
41555         * modules/getsockname: Likewise.
41556         * modules/getsockopt: Likewise.
41557         * modules/ioctl: Likewise.
41558         * modules/listen: Likewise.
41559         * modules/recv: Likewise.
41560         * modules/recvfrom: Likewise.
41561         * modules/send: Likewise.
41562         * modules/sendto: Likewise.
41563         * modules/setsockopt: Likewise.
41564         * modules/shutdown: Likewise.
41565         * modules/socket: Use socket.c instead of winsock.c.
41566         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
41567         * doc/posix-functions/accept.texi: Doc fix.
41568         * doc/posix-functions/bind.texi: Doc fix.
41569         * doc/posix-functions/close.texi: Doc fix.
41570         * doc/posix-functions/connect.texi: Doc fix.
41571         * doc/posix-functions/getpeername.texi: Doc fix.
41572         * doc/posix-functions/getsockname.texi: Doc fix.
41573         * doc/posix-functions/getsockopt.texi: Doc fix.
41574         * doc/posix-functions/ioctl.texi: Doc fix.
41575         * doc/posix-functions/listen.texi: Doc fix.
41576         * doc/posix-functions/recv.texi: Doc fix.
41577         * doc/posix-functions/recvfrom.texi: Doc fix.
41578         * doc/posix-functions/send.texi: Doc fix.
41579         * doc/posix-functions/sendto.texi: Doc fix.
41580         * doc/posix-functions/setsockopt.texi: Doc fix.
41581         * doc/posix-functions/shutdown.texi: Doc fix.
41582         * doc/posix-functions/socket.texi: Doc fix.
41583
41584 2008-10-20  Bruno Haible  <bruno@clisp.org>
41585
41586         Take into account the role of SIGABRT_COMPAT on Windows 2008.
41587         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
41588         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
41589         as an alias for SIGABRT.
41590         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
41591         (sigaction): Map it to SIGABRT.
41592         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
41593
41594 2008-10-20  Bruno Haible  <bruno@clisp.org>
41595
41596         * lib/fts.c: Don't include lstat.h.
41597         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
41598
41599         Move the lstat() declaration to <sys/stat.h>.
41600         * lib/lstat.h: Remove file.
41601         * lib/sys_stat.in.h: Add special invocation convention.
41602         (lstat): New declaration.
41603         * lib/lstat.c (orig_lstat): New function.
41604         (rpl_lstat): Use orig_lstat instead of lstat.
41605         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
41606         AC_C_INLINE. Set REPLACE_LSTAT.
41607         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
41608         and REPLACE_LSTAT.
41609         * modules/lstat (Files): Remove lib/lstat.h.
41610         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
41611         (Include): Specify <sys/stat.h> instead of lstat.h.
41612         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
41613         REPLACE_LSTAT.
41614         * NEWS: Mention the change.
41615
41616 2008-10-20  Bruno Haible  <bruno@clisp.org>
41617
41618         * modules/posix_spawn-tests: New file.
41619         * tests/test-posix_spawn3.c: New file.
41620
41621 2008-10-20  Bruno Haible  <bruno@clisp.org>
41622
41623         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
41624         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
41625         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
41626         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
41627         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
41628
41629 2008-10-20  Bruno Haible  <bruno@clisp.org>
41630
41631         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
41632         of posix_spawn on AIX 5.3.
41633
41634 2008-10-20  Bruno Haible  <bruno@clisp.org>
41635
41636         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
41637
41638 2008-10-20  Bruno Haible  <bruno@clisp.org>
41639
41640         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
41641         of AC_LANG_PROGRAM.
41642
41643 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41644
41645         * lib/netdb.in.h: Don't define GNU specific constants until they
41646         are supported or needed.  Reported by Bruno Haible
41647         <bruno@clisp.org>.
41648
41649 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41650
41651         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
41652
41653 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41654
41655         * lib/getaddrinfo.h: Remove file.
41656         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
41657         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
41658         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
41659         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
41660         * modules/netdb: Substitute GNULIB_GETADDRINFO.
41661         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
41662         * tests/test-getaddrinfo.c: Likewise.
41663         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
41664         * NEWS: Mention change.
41665
41666 2008-10-19  Bruno Haible  <bruno@clisp.org>
41667
41668         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
41669
41670 2008-10-19  Bruno Haible  <bruno@clisp.org>
41671
41672         * lib/wait-process.c: Include simply <sys/wait.h>.
41673         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
41674         WIFSTOPPED): Remove fallback definitions.
41675         * modules/wait-process (Depends-on): Add sys_wait.
41676
41677         New module 'sys_wait'.
41678         * modules/sys_wait: New file.
41679         * lib/sys_wait.in.h: New file, partially copied from
41680         lib/wait-process.c.
41681         * m4/sys_wait_h.m4: New file.
41682         * doc/posix-headers/sys_wait.texi: Mention the new module.
41683
41684 2008-10-19  Bruno Haible  <bruno@clisp.org>
41685
41686         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
41687
41688 2008-10-19  Bruno Haible  <bruno@clisp.org>
41689
41690         Assume that waitpid() fills an 'int' status, not a 'union wait'.
41691         * lib/wait-process.c (WAIT_T): Remove type.
41692         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
41693         (wait_subprocess): Update.
41694
41695 2008-10-19  Bruno Haible  <bruno@clisp.org>
41696
41697         New module 'atoll'.
41698         * modules/atoll: New file.
41699         * lib/stdlib.in.h (atoll): New declaration.
41700         * lib/atoll.c: New file, from glibc with modifications.
41701         * m4/atoll.m4: New file.
41702         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
41703         HAVE_ATOLL.
41704         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
41705         * doc/posix-functions/atoll.texi: Mention the new module.
41706
41707 2008-10-19  Bruno Haible  <bruno@clisp.org>
41708
41709         Add strtoull() declaration to <stdlib.h>.
41710         * lib/stdlib.in.h (strtoull): New declaration.
41711         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41712         Set HAVE_STRTOULL.
41713         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
41714         HAVE_STRTOULL.
41715         * modules/strtoull (Depends-on): Add stdlib.
41716         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41717         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
41718         HAVE_STRTOULL.
41719
41720 2008-10-19  Bruno Haible  <bruno@clisp.org>
41721
41722         Add strtoll() declaration to <stdlib.h>.
41723         * lib/stdlib.in.h (strtoll): New declaration.
41724         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41725         Set HAVE_STRTOLL.
41726         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
41727         HAVE_STRTOLL.
41728         * modules/strtoll (Depends-on): Add stdlib.
41729         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41730         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
41731
41732 2008-10-19  Bruno Haible  <bruno@clisp.org>
41733
41734         * modules/bcopy (Depends-on): Add strings.
41735         (Include): Specify <strings.h>.
41736
41737 2008-10-19  Bruno Haible  <bruno@clisp.org>
41738
41739         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
41740
41741 2008-10-19  Bruno Haible  <bruno@clisp.org>
41742
41743         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
41744         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
41745         mingw.
41746
41747 2008-10-19  Bruno Haible  <bruno@clisp.org>
41748
41749         * lib/atanl.c: Don't include isnanl.h.
41750         * lib/cosl.c: Likewise.
41751         * lib/ldexpl.c: Likewise.
41752         * lib/logl.c: Likewise.
41753         * lib/sinl.c: Likewise.
41754         * lib/sqrtl.c: Likewise.
41755         * lib/tanl.c: Likewise.
41756
41757         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
41758         * lib/isnanf.h: Remove file.
41759         * lib/isnand.h: Remove file.
41760         * lib/isnanl.h: Remove file.
41761         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
41762         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
41763         macros.
41764         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
41765         HAVE_ISNANF, don't define it as a C macro.
41766         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
41767         HAVE_ISNAND, don't define it as a C macro.
41768         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
41769         HAVE_ISNANL, don't define it as a C macro.
41770         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
41771         HAVE_ISNAN[FDL].
41772         * modules/isnanf (Files): Remove lib/isnanf.h.
41773         (Depends-on): Add math.
41774         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41775         (Include): Specify <math.h> instead of isnanf.h.
41776         * modules/isnand (Files): Remove lib/isnand.h.
41777         (Depends-on): Add math.
41778         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41779         (Include): Specify <math.h> instead of isnand.h.
41780         * modules/isnanl (Files): Remove lib/isnanl.h.
41781         (Depends-on): Add math.
41782         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41783         (Include): Specify <math.h> instead of isnanl.h.
41784         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
41785         HAVE_ISNAN[FDL].
41786         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
41787         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
41788         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
41789         * NEWS: Mention the change.
41790
41791 2008-10-18  Bruno Haible  <bruno@clisp.org>
41792
41793         Add getusershell(), setusershell(), endusershell() declarations to
41794         <unistd.h>.
41795         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
41796         declarations.
41797         * lib/getusershell.c: Include unistd.h.
41798         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
41799         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
41800         HAVE_GETUSERSHELL.
41801         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
41802         and HAVE_GETUSERSHELL.
41803         * modules/getusershell (Depends-on): Add unistd, extensions.
41804         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41805         (Include): Specify <unistd.h>.
41806         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
41807         HAVE_GETUSERSHELL.
41808
41809 2008-10-18  Bruno Haible  <bruno@clisp.org>
41810
41811         Add a getloadavg() declaration to <stdlib.h>.
41812         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
41813         getloadavg declaration.
41814         (getloadavg): New declaration.
41815         * lib/getloadavg.c: Include <stdlib.h> first.
41816         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
41817         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
41818         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
41819         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
41820         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
41821         * modules/getloadavg (Depends-on): Add stdlib, extensions.
41822         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41823         (Include): Specify <stdlib.h>.
41824         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
41825         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
41826
41827 2008-10-18  Bruno Haible  <bruno@clisp.org>
41828
41829         * lib/dirchownmod.c: Don't include lchmod.h.
41830
41831         Move the lchmod() declaration to <sys/stat.h>.
41832         * lib/lchmod.h: Remove file.
41833         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
41834         (lchmod): New declaration, moved here from lib/lchown.h.
41835         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
41836         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
41837         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
41838         and HAVE_LCHMOD.
41839         * modules/lchmod (Files): Remove lib/lchmod.h.
41840         (Depends-on): Add sys_stat, extensions.
41841         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
41842         (Include): Specify <sys/stat.h> instead of lchmod.h.
41843         * modules/sys_stat (Depends-on): Add link-warning.
41844         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
41845         definition of GL_LINK_WARNING.
41846         * NEWS: Mention the change.
41847
41848 2008-10-18  Bruno Haible  <bruno@clisp.org>
41849
41850         * lib/fchdir.c: Don't include dirfd.h.
41851         * lib/fts.c: Likewise.
41852         * lib/getcwd.c: Likewise.
41853         * lib/glob.c: Likewise.
41854
41855         Move the dirfd() declaration to <dirent.h>.
41856         * lib/dirfd.h: Remove file.
41857         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
41858         (dirfd): New declaration.
41859         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
41860         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
41861         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
41862         HAVE_DECL_DIRFD.
41863         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
41864         HAVE_DECL_DIRFD.
41865         * modules/dirfd (Files): Remove lib/dirfd.h.
41866         (Depends-on): Add dirent, extensions.
41867         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
41868         (Include): Specify <dirent.h> instead of dirfd.h.
41869         * modules/dirent (Depends-on): Add link-warning.
41870         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
41871         definition of GL_LINK_WARNING.
41872         * NEWS: Mention the change.
41873
41874 2008-10-18  Bruno Haible  <bruno@clisp.org>
41875
41876         Move the euidaccess() declaration to <unistd.h>.
41877         * lib/euidaccess.h: Remove file.
41878         * lib/unistd.in.h (euidaccess): New declaration.
41879         * lib/euidaccess.c: Don't include euidaccess.h.
41880         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
41881         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
41882         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
41883         and HAVE_EUIDACCESS.
41884         * modules/euidaccess (Files): Remove lib/euidaccess.h.
41885         (Depends-on): Add unistd.
41886         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41887         (Include): Specify <unistd.h> instead of euidaccess.h.
41888         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
41889         HAVE_EUIDACCESS.
41890         * NEWS: Mention the change.
41891
41892 2008-10-18  Bruno Haible  <bruno@clisp.org>
41893
41894         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
41895
41896         Move the getdomainname() declaration to <unistd.h>.
41897         * lib/getdomainname.h: Remove file.
41898         * lib/unistd.in.h (getdomainname): New declaration.
41899         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
41900         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
41901         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
41902         HAVE_GETDOMAINNAME.
41903         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41904         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
41905         * modules/getdomainname (Files): Remove lib/getdomainname.h.
41906         (Depends-on): Add unistd, extensions.
41907         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41908         (Includes): Specify <unistd.h> instead of getdomainname.h.
41909         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
41910         HAVE_GETDOMAINNAME.
41911         * NEWS: Mention the change.
41912
41913 2008-10-18  Bruno Haible  <bruno@clisp.org>
41914
41915         * modules/dirent: New file.
41916         * m4/dirent_h.m4: New file.
41917         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
41918         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
41919         * modules/fchdir (Files): Remove lib/dirent.in.h.
41920         (Depends-on): Add dirent.
41921         (Makefile.am): Move rules to modules/dirent.
41922         * doc/posix-headers/dirent.texi: Mention the new module.
41923
41924 2008-10-18  Bruno Haible  <bruno@clisp.org>
41925
41926         Avoid -Wunused-parameter warnings in public gnulib header files.
41927         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
41928         macro.
41929         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
41930
41931 2008-10-18  Bruno Haible  <bruno@clisp.org>
41932
41933         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
41934         * doc/glibc-functions/error.texi: Mention the module 'error'.
41935         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
41936         * doc/glibc-functions/getdomainname.texi: Mention the module
41937         'getdomainname'.
41938         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
41939         * doc/glibc-functions/getpagesize.texi: Mention the module
41940         'getpagesize'.
41941         * doc/glibc-functions/getusershell.texi: Mention the module
41942         'getusershell'.
41943         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
41944         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
41945         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
41946         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
41947         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
41948         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
41949         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
41950         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
41951         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
41952         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
41953         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
41954         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
41955         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
41956         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
41957
41958 2008-10-17  Bruno Haible  <bruno@clisp.org>
41959
41960         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
41961         HP-UX and IRIX, use -0.0L.
41962         * tests/test-ceill.c (minus_zero): Likewise.
41963         * tests/test-floorl.c (minus_zero): Likewise.
41964         * tests/test-frexpl.c (minus_zero): Likewise.
41965         * tests/test-isnan.c (minus_zerol): Likewise.
41966         * tests/test-isnanl.h (minus_zero): Likewise.
41967         * tests/test-ldexpl.c (minus_zero): Likewise.
41968         * tests/test-roundl.c (minus_zero): Likewise.
41969         * tests/test-signbit.c (minus_zerol): Likewise.
41970         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
41971         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
41972         * tests/test-truncl.c (minus_zero): Likewise.
41973         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
41974         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
41975         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
41976         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
41977
41978 2008-10-17  Bruno Haible  <bruno@clisp.org>
41979
41980         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
41981         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
41982         that it gets activated only for gcc >= 3.0.
41983         * lib/dirent.in.h: Likewise.
41984         * lib/errno.in.h: Likewise.
41985         * lib/fcntl.in.h: Likewise.
41986         * lib/float.in.h: Likewise.
41987         * lib/iconv.in.h: Likewise.
41988         * lib/inttypes.in.h: Likewise.
41989         * lib/locale.in.h: Likewise.
41990         * lib/math.in.h: Likewise.
41991         * lib/netdb.in.h: Likewise.
41992         * lib/netinet_in.in.h: Likewise.
41993         * lib/search.in.h: Likewise.
41994         * lib/signal.in.h: Likewise.
41995         * lib/spawn.in.h: Likewise.
41996         * lib/stdarg.in.h: Likewise.
41997         * lib/stdint.in.h: Likewise.
41998         * lib/stdio.in.h: Likewise.
41999         * lib/stdlib.in.h: Likewise.
42000         * lib/string.in.h: Likewise.
42001         * lib/strings.in.h: Likewise.
42002         * lib/sys_file.in.h: Likewise.
42003         * lib/sys_ioctl.in.h: Likewise.
42004         * lib/sys_select.in.h: Likewise.
42005         * lib/sys_socket.in.h: Likewise.
42006         * lib/sys_stat.in.h: Likewise.
42007         * lib/sys_time.in.h: Likewise.
42008         * lib/sysexits.in.h: Likewise.
42009         * lib/time.in.h: Likewise.
42010         * lib/unistd.in.h: Likewise.
42011         * lib/wchar.in.h: Likewise.
42012         * lib/wctype.in.h: Likewise.
42013         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42014
42015 2008-10-17  Jim Meyering  <meyering@redhat.com>
42016
42017         ignore-value: don't depend on inline module
42018         * modules/ignore-value (Depends-on): Remove 'inline'.
42019         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
42020         Suggestion from Bruno Haible.
42021
42022 2008-10-17  Bruno Haible  <bruno@clisp.org>
42023
42024         New implementation of condition variables for Win32.
42025         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
42026         (gl_linked_waitqueue_t): New type.
42027         (gl_cond_t): Use it.
42028         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
42029         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
42030         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
42031         (glthread_cond_init_func, glthread_cond_wait_func,
42032         glthread_cond_timedwait_func, glthread_cond_signal_func,
42033         glthread_cond_broadcast_func, glthread_cond_destroy_func):
42034         Reimplemented on the basis of gl_linked_waitqueue_t.
42035         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
42036         gl_waitqueue_t.
42037         (gl_rwlock_t): Update.
42038         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
42039
42040 2008-10-17  Simon Josefsson  <simon@josefsson.org>
42041
42042         * modules/recvfrom (Depends-on): Add dependency on getpeername.
42043         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42044
42045 2008-10-17  Jim Meyering  <meyering@redhat.com>
42046
42047         ignore-value: new module
42048         * modules/ignore-value: New file.
42049         * lib/ignore-value.h: New file.
42050         * MODULES.html.sh (Compiler warning management): New section,
42051         just for this module.  More to come.
42052
42053 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42054
42055         open-safer.c: avoid 'signed and unsigned in conditional...' warning
42056         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
42057         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
42058
42059 2008-10-16  Jim Meyering  <meyering@redhat.com>
42060
42061         openat-die.c: avoid 'no previous prototype' warning
42062         * lib/openat-die.c: Include "openat.h".
42063         Reported by Reuben Thomas <rrt@sc3d.org>.
42064
42065 2008-10-16  Simon Josefsson  <simon@josefsson.org>
42066
42067         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
42068         * lib/netdb.in.h: Fix typo.
42069         Reported by Bruno Haible  <bruno@clisp.org>
42070
42071         * lib/netdb.in.h: Include sys/socket.h for platforms without
42072         netdb.h, to get structures like hostent on MinGW.
42073         * modules/netdb (Depends-on): Add sys_socket.
42074
42075 2008-10-15  Simon Josefsson  <simon@josefsson.org>
42076
42077         * modules/netdb, modules/netdb-tests: New file.
42078         * m4/netdb_h.m4: New file.
42079         * lib/netdb.in.h: Add, currently just an empty file pending
42080         definitions.
42081         * tests/test-netdb.c: New file.
42082         * doc/posix-headers/netdb.texi: Mention that we replace it if
42083         needed.
42084         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42085         netdb.
42086
42087 2008-10-15  Simon Josefsson  <simon@josefsson.org>
42088
42089         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
42090         with code.
42091
42092 2008-10-13  Bruno Haible  <bruno@clisp.org>
42093
42094         * lib/glthread/cond.c (glthread_cond_wait_func,
42095         glthread_cond_timedwait_func): Add a comment.
42096
42097 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42098
42099         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
42100         * tests/test-select.c: Likewise,
42101
42102 2008-10-13  Bruno Haible  <bruno@clisp.org>
42103
42104         * lib/glthread/cond.c (glthread_cond_wait_func,
42105         glthread_cond_timedwait_func): Fix variable name.
42106         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42107
42108 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
42109
42110         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
42111         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
42112         struct sockaddr.sa_len.
42113         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
42114
42115 2008-10-13  Simon Josefsson  <simon@josefsson.org>
42116
42117         * build-aux/pmccabe2html: Add css and css_url parameters.
42118
42119 2008-10-12  Bruno Haible  <bruno@clisp.org>
42120
42121         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
42122         calling aclx_get.
42123         Reported by Rainer Tammer <tammer@tammer.net>.
42124
42125 2008-10-12  Bruno Haible  <bruno@clisp.org>
42126
42127         Use msvcrt aware primitives for creation/termination of Win32 threads.
42128         * lib/glthread/thread.c: Include <process.h>.
42129         (glthread_create_func): Use _beginthreadex instead of CreateThread.
42130         (wrapper_func): Update signature.
42131         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
42132
42133 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42134             Bruno Haible  <bruno@clisp.org>
42135
42136         Provide a Win32 implementation of the 'cond' module.
42137         * lib/glthread/cond.h [USE_WIN32]: New implementation.
42138         * lib/glthread/cond.c (glthread_cond_init_func,
42139         glthread_cond_wait_func, glthread_cond_timedwait_func,
42140         glthread_cond_signal_func, glthread_cond_broadcast_func,
42141         glthread_cond_destroy_func) [USE_WIN32]: New functions.
42142         * modules/cond (Dependencies): Add gettimeofday.
42143
42144 2008-10-11  Bruno Haible  <bruno@clisp.org>
42145
42146         Make sleep work on older versions of mingw.
42147         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
42148         only whether it exists.
42149         * doc/posix-functions/sleep.texi: Mention the problem with older
42150         versions of mingw.
42151
42152 2008-10-11  Bruno Haible  <bruno@clisp.org>
42153
42154         New module 'shutdown'.
42155         * modules/shutdown: New file.
42156         * lib/sys_socket.in.h (shutdown): New declaration.
42157         * lib/winsock.c (shutdown): New function.
42158         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42159         GNULIB_SHUTDOWN.
42160         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
42161         * doc/posix-functions/shutdown.texi: Document the new module.
42162
42163 2008-10-11  Jim Meyering  <meyering@redhat.com>
42164
42165         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
42166
42167 2008-10-11  Bruno Haible  <bruno@clisp.org>
42168
42169         New module 'fclose'.
42170         * modules/fclose: New file.
42171         * lib/stdio.in.h (fclose): New declaration.
42172         * lib/fclose.c: New file.
42173         * m4/fclose.m4: New file.
42174         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
42175         REPLACE_FCLOSE.
42176         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
42177         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
42178         REPLACE_FCLOSE.
42179         * modules/close (Depends-on): fclose.
42180         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
42181
42182 2008-10-11  Bruno Haible  <bruno@clisp.org>
42183
42184         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
42185         set errno and don't call _close.
42186
42187 2008-10-10  Bruno Haible  <bruno@clisp.org>
42188
42189         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
42190         ACL, not afterwards. Fixes test failure on Cygwin.
42191
42192 2008-10-09  Ben Pfaff  <blp@gnu.org>
42193
42194         * build-aux/announce-gen: Fix gnulib version related part of usage
42195         message.  Die with a useful error message if no tarballs are
42196         found.
42197
42198 2008-10-10  Jim Meyering  <meyering@redhat.com>
42199
42200         bootstrap: use git's --depth=N option only if it's supported
42201         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
42202         recognize the --depth option.  Reported by Pádraig Brady.
42203
42204 2008-10-09  Bruno Haible  <bruno@clisp.org>
42205
42206         New module 'ioctl'.
42207         * modules/ioctl: New file.
42208         * lib/sys_socket.in.h (ioctl): Remove declaration.
42209         * lib/winsock.c: Include <sys/ioctl.h>.
42210         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
42211         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
42212         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
42213         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
42214         * doc/posix-functions/ioctl.texi: Mention the new module.
42215
42216 2008-10-09  Bruno Haible  <bruno@clisp.org>
42217
42218         New module 'sys_ioctl'.
42219         * lib/sys_ioctl.in.h: New file.
42220         * m4/sys_ioctl_h.m4: New file.
42221         * modules/sys_ioctl: New file.
42222         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
42223
42224 2008-10-09  Bruno Haible  <bruno@clisp.org>
42225
42226         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
42227         * lib/winsock.c: Include <stdarg.h>.
42228         (rpl_ioctl): Change to second argument 'int' and then varargs.
42229
42230 2008-10-09  Bruno Haible  <bruno@clisp.org>
42231
42232         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
42233         when the sys_socket module is present and the system has <winsock2.h>.
42234
42235 2008-10-09  Bruno Haible  <bruno@clisp.org>
42236
42237         * doc/posix-functions/close.texi: Mention module 'close' instead of
42238         module 'sys_socket'.
42239
42240 2008-10-09  Bruno Haible  <bruno@clisp.org>
42241
42242         * doc/glibc-headers/sys_ioctl.texi: New file.
42243         * doc/gnulib.texi: Include it.
42244
42245 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42246             Bruno Haible  <bruno@clisp.org>
42247
42248         Combine the two replacements of 'close'.
42249         * lib/sys_socket.in.h (close): Define to a reminder to include
42250         <unistd.h>.
42251         (_gl_close_fd_maybe_socket): New declaration.
42252         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
42253         * lib/winsock.c (close): Remove undefinition.
42254         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
42255         needed for the gnulib module 'close'.
42256         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
42257         define to an error symbol or to a warning, if suitable.
42258         * lib/close.c: Include <sys/socket.h>.
42259         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
42260         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
42261         UNISTD_H_HAVE_WINSOCK2_H.
42262         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
42263         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42264         UNISTD_H_HAVE_WINSOCK2_H.
42265         * modules/sys_socket (Files): Add m4/unistd_h.m4.
42266         (configure.ac): Set a module indicator.
42267         (Makefile.am): Substitute GNULIB_CLOSE.
42268         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
42269         * modules/poll-tests (Depends-on): Add close.
42270         * modules/select-tests (Depends-on): Likewise.
42271
42272 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42273             Bruno Haible  <bruno@clisp.org>
42274
42275         New module 'close'.
42276         * modules/close: New file.
42277         * lib/unistd.in.h (close): Move declaration out of the
42278         FCHDIR_REPLACEMENT scope.
42279         (_gl_unregister_fd): New declaration.
42280         * lib/close.c: New file.
42281         * lib/fchdir.c (rpl_close): Remove function.
42282         * m4/close.m4: New file.
42283         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
42284         close.
42285         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
42286         REPLACE_CLOSE.
42287         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
42288         REPLACE_CLOSE.
42289         * modules/fchdir (Depends-on): Add close.
42290
42291 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42292             Bruno Haible  <bruno@clisp.org>
42293
42294         * lib/fcntl.in.h (open): Simplify conditionals.
42295         (_gl_register_fd): New declaration.
42296         * lib/fchdir.c (rpl_open): Remove function.
42297         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
42298         also.
42299         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
42300         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
42301         open.
42302
42303 2008-10-09  Jim Meyering  <meyering@redhat.com>
42304
42305         GNUmakefile: use the more name-space-friendly "_version"
42306         * top/GNUmakefile (_dummy): Update.
42307         (_version): Rename from "version".
42308
42309 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42310             Bruno Haible  <bruno@clisp.org>
42311
42312         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
42313         rpl_close.
42314         (_gl_register_fd): New function, extracted from rpl_open.
42315         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
42316         (rpl_open, rpl_opendir): Use _gl_register_fd.
42317
42318 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42319
42320         Fix organization of 'open' replacement.
42321         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
42322         (gl_FUNC_OPEN): Use it.
42323         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
42324
42325 2008-10-08  Bruno Haible  <bruno@clisp.org>
42326
42327         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
42328
42329 2008-10-08  Simon Josefsson  <simon@josefsson.org>
42330
42331         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
42332         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
42333         listen).
42334
42335 2008-10-08  Eric Blake  <ebb9@byu.net>
42336
42337         GNUmakefile: add 'make version' target
42338         * top/GNUmakefile (_curr-ver): Split version update rules...
42339         (version): ...into a target.
42340
42341 2008-10-07  Bruno Haible  <bruno@clisp.org>
42342
42343         Use a more portable replacement expression for -0.0L.
42344         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
42345         instead of -0.0L. Fix m4 quotation.
42346
42347         * tests/test-signbit.c: Include <float.h>.
42348         (minus_zero): New variable.
42349         (test_signbitl): Use minus_zero instead of -zero.
42350         * modules/signbit-tests (Depends-on): Add float.
42351
42352         * tests/test-ceill.c: Include <float.h>.
42353         (zero): Remove variable.
42354         (minus_zero): New variable.
42355         (main): Use minus_zero instead of -zero.
42356         * modules/ceill-tests (Depends-on): Add float.
42357
42358         * tests/test-floorl.c: Include <float.h>.
42359         (zero): Remove variable.
42360         (minus_zero): New variable.
42361         (main): Use minus_zero instead of -zero.
42362         * modules/floorl-tests (Depends-on): Add float.
42363
42364         * tests/test-roundl.c: Include <float.h>.
42365         (zero): Remove variable.
42366         (minus_zero): New variable.
42367         (main): Use minus_zero instead of -zero.
42368         * modules/roundl-tests (Depends-on): Add float.
42369
42370         * tests/test-truncl.c: Include <float.h>.
42371         (zero): Remove variable.
42372         (minus_zero): New variable.
42373         (main): Use minus_zero instead of -zero.
42374         * modules/truncl-tests (Depends-on): Add float.
42375
42376         * tests/test-frexpl.c (zero): Remove variable.
42377         (minus_zero): New variable.
42378         (main): Use minus_zero instead of -zero.
42379         * modules/frexpl-tests (Depends-on): Add float.
42380
42381         * tests/test-isnan.c (zerol): Remove variable.
42382         (minus_zerol): New variable.
42383         (test_long_double): Use minus_zerol instead of -zerol.
42384         * modules/isnan-tests (Depends-on): Add float.
42385
42386         * tests/test-isnanl.h (zero): Remove variable.
42387         (minus_zero): New variable.
42388         (main): Use minus_zero instead of -zero.
42389         * modules/isnanl-nolibm-tests (Depends-on): Add float.
42390         * modules/isnanl-tests (Depends-on): Add float.
42391
42392         * tests/test-ldexpl.c (zero): Remove variable.
42393         (minus_zero): New variable.
42394         (main): Use minus_zero instead of -zero.
42395         * modules/ldexpl-tests (Depends-on): Add float.
42396
42397         * tests/test-snprintf-posix.h (zerol): Remove variable.
42398         (minus_zerol): New variable.
42399         (test_function): Use minus_zerol instead of -zerol.
42400         * modules/snprintf-posix-tests (Depends-on): Add float.
42401         * modules/vsnprintf-posix-tests (Depends-on): Add float.
42402
42403         * tests/test-sprintf-posix.h (zerol): Remove variable.
42404         (minus_zerol): New variable.
42405         (test_function): Use minus_zerol instead of -zerol.
42406         * modules/sprintf-posix-tests (Depends-on): Add float.
42407         * modules/vsprintf-posix-tests (Depends-on): Add float.
42408
42409         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
42410         (minus_zerol): New variable.
42411         (test_function): Use minus_zerol instead of -zerol.
42412         * modules/vasnprintf-posix-tests (Depends-on): Add float.
42413
42414         * tests/test-vasprintf-posix.c (zerol): Remove variable.
42415         (minus_zerol): New variable.
42416         (test_function): Use minus_zerol instead of -zerol.
42417         * modules/vasprintf-posix-tests (Depends-on): Add float.
42418
42419 2008-10-07  Simon Josefsson  <simon@josefsson.org>
42420
42421         * MODULES.html.sh (Support for building documentation): Mention
42422         pmccabe2html.  Sort entries.
42423
42424         Add pmccabe2html module, from gnupdf.
42425         * build-aux/pmccabe.css: New file.
42426         * build-aux/pmccabe2html: New file.
42427         * m4/pmccabe2html.m4: New file.
42428         * modules/pmccabe2html: New file.
42429
42430 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
42431
42432         flock: new module
42433         * MODULES.html.sh: Add to list of modules.
42434         * lib/flock.c: flock implementation for Windows and Unix systems
42435         which have fcntl.
42436         * doc/glibc-functions/flock.texi: Update documentation.
42437         * lib/sys_file.in.h: <sys/file.h> header file.
42438         * m4/flock.m4: M4 macros.
42439         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
42440         * modules/flock: flock module.
42441         * modules/flock-tests: flock tests module.
42442         * modules/sys_file: sys/file.h module.
42443         * tests/test-flock.c: test suite for flock.
42444
42445 2008-10-06  Jim Meyering  <meyering@redhat.com>
42446
42447         bootstrap: check for LT_INIT more portably still ;-)
42448         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
42449         Spotted by Bruno Haible.
42450
42451 2008-10-06  Eric Blake  <ebb9@byu.net>
42452
42453         test-signbit: avoid tripping Irix cc bug on -0.0L
42454         * tests/test-signbit.c (minus_zerol): Delete, and replace with
42455         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
42456         entire testsuite consistent and avoids an Irix 6.2 bug.
42457
42458 2008-10-05  Bruno Haible  <bruno@clisp.org>
42459             Jim Meyering  <jim@meyering.net>
42460
42461         Add an option for ignoring EPIPE during close_stdout.
42462         * lib/closeout.h: Include <stdbool.h>.
42463         (close_stdout_set_ignore_EPIPE): New declaration.
42464         * lib/closeout.c: Include <stdbool.h>.
42465         (ignore_EPIPE): New variable.
42466         (close_stdout_set_ignore_EPIPE): New function.
42467         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
42468         * lib/close-stream.c (close_stream): Mention the possible EPIPE
42469         failure.
42470         * modules/closeout (Depends-on): Add stdbool.
42471
42472 2008-10-05  Bruno Haible  <bruno@clisp.org>
42473
42474         * modules/accept: New file.
42475         * modules/bind: New file.
42476         * modules/connect: New file.
42477         * modules/getpeername: New file.
42478         * modules/getsockname: New file.
42479         * modules/getsockopt: New file.
42480         * modules/listen: New file.
42481         * modules/recv: New file.
42482         * modules/recvfrom: New file.
42483         * modules/send: New file.
42484         * modules/sendto: New file.
42485         * modules/setsockopt: New file.
42486         * modules/socket: New file.
42487         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
42488         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
42489         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
42490         the particular module is requested. Add a link warning when the
42491         particular module is not requested.
42492         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
42493         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
42494         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
42495         the particular module is requested.
42496         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
42497         gl_SYS_SOCKET_H_DEFAULTS): New macros.
42498         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
42499         * modules/sys_socket (Depends-on): Add link-warning.
42500         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
42501         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
42502         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
42503         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
42504         GL_LINK_WARNING.
42505         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
42506         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
42507         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
42508         * doc/posix-functions/getpeername.texi: Mention the new module
42509         'getpeername'.
42510         * doc/posix-functions/getsockname.texi: Mention the new module
42511         'getsockname'.
42512         * doc/posix-functions/getsockopt.texi: Mention the new module
42513         'getsockopt'.
42514         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
42515         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
42516         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
42517         * doc/posix-functions/send.texi: Mention the new module 'send'.
42518         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
42519         * doc/posix-functions/setsockopt.texi: Mention the new module
42520         'setsockopt'.
42521         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
42522         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
42523         listen, connect, accept.
42524         * modules/select-tests (Depends-on): Likewise.
42525
42526 2008-10-05  Bruno Haible  <bruno@clisp.org>
42527
42528         * lib/winsock.c (strerror): Remove unused #undef.
42529         (rpl_close): Remove unused local variable.
42530
42531         * modules/sys_socket (Depends-on); Add errno.
42532
42533 2008-10-05  Bruno Haible  <bruno@clisp.org>
42534
42535         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
42536         (select): Add a link warning when the 'select' module is not used.
42537         * modules/sys_select (Depends-on): Add link-warning.
42538         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
42539         Suggested by Paolo Bonzini.
42540
42541 2008-10-05  Jim Meyering  <meyering@redhat.com>
42542
42543         bootstrap: check for LT_INIT more portably
42544         * build-aux/bootstrap: Avoid using grep -E, since it's not
42545         portable enough.  Suggestion from Bruno Haible.
42546
42547 2008-10-05  Bruno Haible  <bruno@clisp.org>
42548
42549         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
42550         as being fixed by gnulib.
42551
42552 2008-10-05  Bruno Haible  <bruno@clisp.org>
42553
42554         * modules/select-tests: New file, mostly copied from
42555         modules/sys_select-tests.
42556         * tests/test-select.c: New file, mostly copied from
42557         tests/test-sys_select.c.
42558         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
42559         * modules/sys_select-tests (Depends-on): Remove all dependencies.
42560         (Makefile.am): Remove test_sys_select_LDADD.
42561
42562         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
42563         to an undefined symbol, for an error message.
42564         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
42565         (gl_SYS_SELECT_H_DEFAULTS): New macro.
42566         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
42567         winsock-select.c here.
42568         * modules/sys_select (Files): Remove lib/winsock-select.c.
42569         (Depends-on): Remove alloca.
42570         (Makefile.am): Substitute GNULIB_SELECT.
42571         * modules/select: New file.
42572         * doc/posix-functions/select.texi: Update.
42573
42574 2008-10-05  Bruno Haible  <bruno@clisp.org>
42575
42576         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
42577         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
42578         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
42579         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
42580         getdtablesize.
42581         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
42582         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
42583
42584 2008-10-05  Bruno Haible  <bruno@clisp.org>
42585
42586         * modules/getdtablesize-tests: New file.
42587         * tests/test-getdtablesize.c: New file.
42588
42589         New module 'getdtablesize'.
42590         * lib/unistd.in.h (getdtablesize): New declaration.
42591         * lib/getdtablesize.c: New file.
42592         * m4/getdtablesize.m4: New file.
42593         * modules/getdtablesize: New file.
42594         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42595         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
42596         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
42597         HAVE_GETDTABLESIZE.
42598         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
42599
42600 2008-10-05  Bruno Haible  <bruno@clisp.org>
42601
42602         * modules/sched (Makefile.am): Fix typo.
42603         Reported by Simon Josefsson.
42604
42605 2008-10-05  Jim Meyering  <meyering@redhat.com>
42606
42607         bootstrap: check for LT_INIT, too
42608         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
42609         are deprecated.  Suggestion from Ralf Wildenhues.
42610
42611 2008-10-05  Bruno Haible  <bruno@clisp.org>
42612
42613         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
42614         overriding them by ours.
42615         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
42616
42617 2008-10-05  Jim Meyering  <meyering@redhat.com>
42618
42619         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
42620         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
42621         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
42622
42623 2008-10-04  Bruno Haible  <bruno@clisp.org>
42624
42625         * modules/dup2 (License): Change to LGPLv2+.
42626         * modules/sleep (License): Likewise.
42627         * modules/perror (License): Likewise.
42628         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
42629         Blake.
42630         * modules/signal (License): Likewise.
42631         * modules/sigprocmask (License): Likewise.
42632         * modules/raise (License): Change to LGPLv2+, with approval by Jim
42633         Meyering.
42634
42635 2008-10-04  Bruno Haible  <bruno@clisp.org>
42636
42637         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
42638         Reported by Rainer Tammer <tammer@tammer.net>.
42639
42640 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
42641             Bruno Haible  <bruno@clisp.org>
42642
42643         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
42644         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
42645         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
42646
42647 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
42648
42649         filevercmp: new module
42650         * lib/filevercmp.h: New function filevercmp comparing version strings.
42651         * lib/filevercmp.c: Implementation of filevercmp function.
42652         * modules/filevercmp: Module metadata.
42653         * tests/test-filevercmp.c: Unit test for new module.
42654         * modules/filevercmp-tests: Unit test metadata.
42655         * MODULES.html.sh: Add filevercmp module.
42656
42657 2008-10-03  Bruno Haible  <bruno@clisp.org>
42658
42659         * lib/c-ctype.h: Add comment.
42660         Reported by Jim Meyering.
42661
42662 2008-10-02  Bruno Haible  <bruno@clisp.org>
42663
42664         * modules/posix_spawn-internal (Depends-on): Add 'open'.
42665
42666 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42667
42668         * build-aux/bootstrap: Allow renaming bootstrap, and change the
42669         name of bootstrap.conf accordingly.
42670
42671 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42672
42673         * build-aux/bootstrap: Install git-merge-changelog configuration
42674         items into .gitconfig if needed.
42675
42676 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42677
42678         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
42679         git repository, and initialize/update it accordingly.
42680
42681 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
42682
42683         * modules/fsync-tests: New file.
42684         * tests/test-fsync.c: New file.
42685
42686         New module 'fsync'.
42687         * lib/fsync.c: New file.
42688         * m4/fsync.m4: New file.
42689         * modules/fsync: New file.
42690         * lib/unistd.in.h (fsync): New declaration.
42691         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
42692         GNULIB_FSYNC and HAVE_FSYNC.
42693         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
42694         * MODULES.html.sh (posix_functions): Add fsync.
42695         * doc/posix-functions/fsync.texi: Mention the new module.
42696
42697 2008-10-02  Jim Meyering  <meyering@redhat.com>
42698
42699         fts.c: sync with similar code from coreutils' remove.c
42700         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
42701         Guard also with "#if defined __linux__", since for now at least,
42702         this code is Linux-kernel-specific.
42703
42704 2008-10-02  Jim Meyering  <meyering@redhat.com>
42705
42706         fts: bug fixes
42707         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
42708         Include <sys/vfs.h>, not <sys/statfs.h>.
42709
42710         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
42711         Include <sys/vfs.h>, not <sys/statfs.h>.
42712
42713 2008-10-01  Bruno Haible  <bruno@clisp.org>
42714
42715         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
42716         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
42717         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
42718         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
42719         * doc/posix-functions/posix_spawnp.texi: Likewise.
42720         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
42721         whether posix_spawn actually works.
42722         * m4/pipe.m4 (gl_PIPE): Likewise.
42723         * modules/execute (Files): Add m4/posix_spawn.m4.
42724         * modules/pipe (Files): Add m4/posix_spawn.m4.
42725         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
42726
42727 2008-10-01  Jim Meyering  <meyering@redhat.com>
42728
42729         remove trailing spaces
42730         * NEWS: Likewise.
42731         * lib/poll.c (poll): Likewise.
42732         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
42733         * lib/winsock.c (rpl_close): Likewise.
42734         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
42735         * modules/yield: Likewise.
42736         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
42737         * tests/test-sys_select.c (connect_to_socket): Likewise.
42738
42739         fts.c: adjust a new interface to be more generally useful
42740         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
42741         (fts_build): Adjust caller.
42742
42743 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42744
42745         * modules/cond-tests: New file.
42746         * tests/test-cond.c: New file.
42747
42748 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42749             Bruno Haible  <bruno@clisp.org>
42750
42751         * modules/cond (Dependencies): Add errno, time.
42752         * lib/glthread/cond.h: Include <time.h>.
42753         (gl_cond_define, gl_cond_define_initialized): Use the same definition
42754         across platforms.
42755
42756 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42757             Bruno Haible  <bruno@clisp.org>
42758
42759         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
42760
42761 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42762             Bruno Haible  <bruno@clisp.org>
42763
42764         * modules/tls-tests (Depends-on): Add thread, yield.
42765         (configure.ac): Remove all checks.
42766         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
42767         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42768         gl_thread_self): Remove definitions. Include glthread/thread.h and
42769         glthread/yield.h instead.
42770         (test_tls): Pass an additional NULL argument to gl_thread_join.
42771
42772 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42773             Bruno Haible  <bruno@clisp.org>
42774
42775         * modules/lock-tests (Depends-on): Add thread, yield.
42776         (configure.ac): Remove all checks.
42777         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
42778         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42779         gl_thread_self): Remove definitions. Include glthread/thread.h and
42780         glthread/yield.h instead.
42781         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
42782         additional NULL argument to gl_thread_join.
42783
42784 2008-09-30  Bruno Haible  <bruno@clisp.org>
42785
42786         Fix the Win32 implementation of the 'thread' module.
42787         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
42788         pointer type.
42789         (gl_thread_self): Invoke gl_thread_self_func.
42790         (gl_thread_self_func): New declaration.
42791         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
42792         (do_init_self_key, init_self_key): New functions.
42793         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
42794         Remove some fields.
42795         (running_threads, running_lock): Remove variables.
42796         (get_current_thread_handle): New function.
42797         (gl_thread_self_func, wrapper_func, glthread_create_func,
42798         glthread_join_func, gl_thread_exit_func): Largely rewritten and
42799         simplified.
42800
42801 2008-09-30  Bruno Haible  <bruno@clisp.org>
42802
42803         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
42804         files.
42805
42806 2008-09-30  Jim Meyering  <meyering@redhat.com>
42807
42808         fts.m4: correct the test for statfs.f_type
42809         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
42810         when checking for statfs.f_type.
42811
42812 2008-09-15  Simon Josefsson  <simon@josefsson.org>
42813
42814         tests: avoid some compiler warnings
42815         * tests/test-memchr.c (main): Pass NULL indirectly.
42816         * tests/test-getdate.c (main): Remove unused variable 'ret'.
42817
42818 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
42819
42820         getdate.y: disallow countable dayshifts like "4 yesterday ago"
42821         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
42822         exactly specified dayshifts.
42823         (dayshift): New rule.
42824         (rel): Add dayshift.
42825         (relative_time_table) [tomorrow, yesterday, today, now]:
42826         Use tDAY_SHIFT in place of tDAY_UNIT.
42827         * tests/test-getdate.c: Add tests for now-disallowed countable
42828         dayshifts, e.g., "4 yesterday ago".
42829
42830 2008-09-29  Bruno Haible  <bruno@clisp.org>
42831
42832         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
42833         * tests/test-posix_spawn1.in.sh: Renamed from
42834         tests/test-posix_spawn.in.sh.
42835         * tests/test-posix_spawn2.c: New file.
42836         * tests/test-posix_spawn2.in.sh: New file.
42837         * modules/posix_spawnp-tests (Files): Update.
42838         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
42839
42840 2008-09-29  Bruno Haible  <bruno@clisp.org>
42841
42842         Propagate effects of putenv/setenv/unsetenv to child processes.
42843         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
42844         * lib/pipe.c (create_pipe): Likewise.
42845
42846 2008-09-29  Bruno Haible  <bruno@clisp.org>
42847
42848         Enable use of shell scripts as executables in mingw.
42849         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
42850         run the program as a shell script.
42851         * lib/pipe.c (create_pipe): Likewise.
42852         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
42853         resulting array.
42854
42855 2008-09-29  Eric Blake  <ebb9@byu.net>
42856
42857         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
42858
42859 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
42860
42861         * doc/posix-functions/accept.texi: Update mingw problems.
42862         * doc/posix-functions/bind.texi: Update mingw problems.
42863         * doc/posix-functions/close.texi: Update mingw problems.
42864         * doc/posix-functions/connect.texi: Update mingw problems.
42865         * doc/posix-functions/getpeername.texi: Update mingw problems.
42866         * doc/posix-functions/getsockname.texi: Update mingw problems.
42867         * doc/posix-functions/getsockopt.texi: Update mingw problems.
42868         * doc/posix-functions/ioctl.texi: Update mingw problems.
42869         * doc/posix-functions/listen.texi: Update mingw problems.
42870         * doc/posix-functions/recv.texi: Update mingw problems.
42871         * doc/posix-functions/recvfrom.texi: Update mingw problems.
42872         * doc/posix-functions/select.texi: Update mingw problems.
42873         * doc/posix-functions/send.texi: Update mingw problems.
42874         * doc/posix-functions/sendto.texi: Update mingw problems.
42875         * doc/posix-functions/setsockopt.texi: Update mingw problems.
42876         * doc/posix-functions/socket.texi: Update mingw problems.
42877
42878 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
42879             Bruno Haible  <bruno@clisp.org>
42880
42881         * lib/sys_select.in.h: Include sys/time.h.
42882         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
42883         * modules/sys_select: Depend on sys_time.
42884         * tests/test-sys_select.c: Test that sys/select.h defines struct
42885         timeval fully.
42886
42887 2008-09-29  Bruno Haible  <bruno@clisp.org>
42888
42889         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
42890         * lib/sys_select.in.h: Likewise.
42891
42892 2008-09-29  Bruno Haible  <bruno@clisp.org>
42893
42894         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
42895
42896 2008-09-29  Bruno Haible  <bruno@clisp.org>
42897
42898         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
42899         Set LIBSOCKET instead of augmenting LIBS.
42900         * modules/sockets (Link): New section.
42901         * modules/sockets-tests (test_sockets_LDADD): New variable.
42902         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
42903         * modules/poll-tests (test_poll_LDADD): New variable.
42904         * NEWS: Document the change.
42905
42906 2008-09-29  Bruno Haible  <bruno@clisp.org>
42907
42908         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
42909         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
42910         ARPA_INET_H directly.
42911         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42912
42913 2008-09-28  Bruno Haible  <bruno@clisp.org>
42914
42915         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
42916         from gl_HEADER_SYS_SOCKET.
42917         (gl_HEADER_SYS_SOCKET): Invoke it.
42918         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42919
42920 2008-09-28  Bruno Haible  <bruno@clisp.org>
42921
42922         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
42923         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
42924         Needed on OSF/1 4.0.
42925
42926 2008-09-28  Bruno Haible  <bruno@clisp.org>
42927
42928         Override open more carefully.
42929         * lib/open.c (orig_open): New function.
42930         (rpl_open): Use orig_open instead of open.
42931         * lib/fcntl.in.h: Add special invocation convention.
42932         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
42933         (gl_FUNC_OPEN): Invoke it.
42934
42935         Override freopen more carefully.
42936         * lib/freopen.c (orig_freopen): New function.
42937         (rpl_freopen): Use orig_freopen instead of freopen.
42938         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
42939         (gl_FUNC_FREOPEN): Invoke it.
42940
42941         Override fopen more carefully.
42942         * lib/fopen.c (orig_fopen): New function.
42943         (rpl_fopen): Use orig_fopen instead of fopen.
42944         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
42945         (gl_FUNC_FOPEN): Invoke it.
42946         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
42947
42948 2008-09-28  Bruno Haible  <bruno@clisp.org>
42949
42950         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
42951         SIGPIPE.
42952
42953 2008-09-28  Bruno Haible  <bruno@clisp.org>
42954
42955         * tests/test-sigaction.c (handler, main): Disable the check whether
42956         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
42957         glibc systems with LinuxThreads.
42958
42959 2008-09-28  Bruno Haible  <bruno@clisp.org>
42960
42961         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
42962
42963         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
42964         with AIX xlc.
42965         * lib/fcntl.in.h (open): Likewise.
42966         Reported by Rainer Tammer <tammer@tammer.net>.
42967
42968 2008-09-28  Bruno Haible  <bruno@clisp.org>
42969
42970         * modules/posix_spawnp-tests: New file.
42971         * tests/test-posix_spawn.c: New file.
42972         * tests/test-posix_spawn.in.sh: New file.
42973
42974         New module 'posix_spawnp'.
42975         * modules/posix_spawnp: New file.
42976         * lib/spawnp.c: New file, from GNU libc with modifications.
42977         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
42978
42979         New module 'posix_spawn'.
42980         * modules/posix_spawn: New file.
42981         * lib/spawn.c: New file, from GNU libc with modifications.
42982         * doc/posix-functions/posix_spawn.texi: Mention the new module.
42983
42984         New module 'posix_spawnattr_destroy'.
42985         * modules/posix_spawnattr_destroy: New file.
42986         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
42987         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
42988         module.
42989
42990         New module 'posix_spawnattr_setsigmask'.
42991         * modules/posix_spawnattr_setsigmask: New file.
42992         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
42993         modifications.
42994         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
42995         new module.
42996
42997         New module 'posix_spawnattr_getsigmask'.
42998         * modules/posix_spawnattr_getsigmask: New file.
42999         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
43000         modifications.
43001         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
43002         new module.
43003
43004         New module 'posix_spawnattr_setsigdefault'.
43005         * modules/posix_spawnattr_setsigdefault: New file.
43006         * lib/spawnattr_setdefault.c: New file, from GNU libc with
43007         modifications.
43008         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
43009         new module.
43010
43011         New module 'posix_spawnattr_getsigdefault'.
43012         * modules/posix_spawnattr_getsigdefault: New file.
43013         * lib/spawnattr_getdefault.c: New file, from GNU libc with
43014         modifications.
43015         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
43016         new module.
43017
43018         New module 'posix_spawnattr_setschedpolicy'.
43019         * modules/posix_spawnattr_setschedpolicy: New file.
43020         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
43021         modifications.
43022         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
43023         new module.
43024
43025         New module 'posix_spawnattr_getschedpolicy'.
43026         * modules/posix_spawnattr_getschedpolicy: New file.
43027         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
43028         modifications.
43029         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
43030         new module.
43031
43032         New module 'posix_spawnattr_setschedparam'.
43033         * modules/posix_spawnattr_setschedparam: New file.
43034         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
43035         modifications.
43036         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
43037         new module.
43038
43039         New module 'posix_spawnattr_getschedparam'.
43040         * modules/posix_spawnattr_getschedparam: New file.
43041         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
43042         modifications.
43043         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
43044         new module.
43045
43046         New module 'posix_spawnattr_setpgroup'.
43047         * modules/posix_spawnattr_setpgroup: New file.
43048         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
43049         modifications.
43050         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
43051         module.
43052
43053         New module 'posix_spawnattr_getpgroup'.
43054         * modules/posix_spawnattr_getpgroup: New file.
43055         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
43056         modifications.
43057         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
43058         module.
43059
43060         New module 'posix_spawnattr_setflags'.
43061         * modules/posix_spawnattr_setflags: New file.
43062         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
43063         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
43064         module.
43065
43066         New module 'posix_spawnattr_getflags'.
43067         * modules/posix_spawnattr_getflags: New file.
43068         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
43069         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
43070         module.
43071
43072         New module 'posix_spawnattr_init'.
43073         * modules/posix_spawnattr_init: New file.
43074         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
43075         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
43076         module.
43077
43078         New module 'posix_spawn_file_actions_destroy'.
43079         * modules/posix_spawn_file_actions_destroy: New file.
43080         * lib/spawn_faction_destroy.c: New file, from GNU libc with
43081         modifications.
43082         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
43083         the new module.
43084
43085         New module 'posix_spawn_file_actions_addopen'.
43086         * modules/posix_spawn_file_actions_addopen: New file.
43087         * lib/spawn_faction_addopen.c: New file, from GNU libc with
43088         modifications.
43089         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
43090         the new module.
43091
43092         New module 'posix_spawn_file_actions_adddup2'.
43093         * modules/posix_spawn_file_actions_adddup2: New file.
43094         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
43095         modifications.
43096         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
43097         the new module.
43098
43099         New module 'posix_spawn_file_actions_addclose'.
43100         * modules/posix_spawn_file_actions_addclose: New file.
43101         * lib/spawn_faction_addclose.c: New file, from GNU libc with
43102         modifications.
43103         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
43104         the new module.
43105
43106         New module 'posix_spawn_file_actions_init'.
43107         * modules/posix_spawn_file_actions_init: New file.
43108         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
43109         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
43110         new module.
43111
43112         New module 'posix_spawn-internal'.
43113         * modules/posix_spawn-internal: New file.
43114         * lib/spawn_int.h: New file, from GNU libc with modifications.
43115         * lib/spawni.c: New file, from GNU libc with modifications.
43116         * m4/posix_spawn.m4: New file.
43117
43118         New module 'spawn'.
43119         * modules/spawn: New file.
43120         * lib/spawn.in.h: New file, from GNU libc with modifications.
43121         * m4/spawn_h.m4: New file.
43122         * doc/posix-headers/spawn.texi: Mention the new module.
43123
43124 2008-09-28  Bruno Haible  <bruno@clisp.org>
43125
43126         * modules/sched-tests: New file.
43127         * tests/test-sched.c: New file.
43128
43129         New module 'sched'.
43130         * modules/sched: New file.
43131         * lib/sched.in.h: New file.
43132         * m4/sched_h.m4: New file.
43133         * doc/posix-headers/sched.texi: Mention the new module.
43134
43135 2008-09-27  Eric Blake  <ebb9@byu.net>
43136
43137         Fix previous patch, and tweak references to $0.
43138         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
43139         (func_version, func_gnulib_dir): Don't call this program
43140         gnulib-tool.
43141         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
43142         with using $0 in function.
43143         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
43144         (func_fatal_error): Reuse the name the user invoked us with.
43145
43146 2008-09-27  Bruno Haible  <bruno@clisp.org>
43147
43148         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
43149         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
43150         (gl_ICONV_H): Not here.
43151         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
43152         instead of assigning ICONV_H directly.
43153
43154         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
43155         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
43156         WCHAR_H directly.
43157
43158 2008-09-27  Bruno Haible  <bruno@clisp.org>
43159
43160         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
43161         * modules/arpa_inet (Depends-on): Add link-warning.
43162         (Makefile.am): Insert the definition of GL_LINK-WARNING.
43163         * modules/unistd (Makefile.am): Likewise.
43164
43165 2008-09-26  Bruno Haible  <bruno@clisp.org>
43166
43167         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
43168         variables.
43169         (func_version): Essentially copied from gnulib-tool.
43170         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
43171         func_readlink): Copied from gnulib-tool.
43172
43173 2008-09-26  Bruno Haible  <bruno@clisp.org>
43174
43175         * gnulib-tool (func_version): Change directory to $gnulib_dir before
43176         invoking git-version-gen.
43177
43178 2008-09-26  Bruno Haible  <bruno@clisp.org>
43179
43180         * posix-modules: Update to directory names changed on 2008-01-19.
43181         Remove commas in output before splitting into words. No more need to
43182         avoid 'ftruncate' since 2007-02-19.
43183
43184 2008-09-26  Bruno Haible  <bruno@clisp.org>
43185
43186         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
43187
43188 2008-09-26  Bruno Haible  <bruno@clisp.org>
43189
43190         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
43191         * modules/fwriteerror (Depends-on): Add errno.
43192
43193 2008-09-26  Bruno Haible  <bruno@clisp.org>
43194
43195         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
43196         * tests/test-vc-list-files-cvs.sh: Likewise.
43197
43198 2008-09-26  Bruno Haible  <bruno@clisp.org>
43199
43200         * doc/posix-headers/sys_resource.texi: Reorder items.
43201
43202 2008-09-26  Jim Meyering  <meyering@redhat.com>
43203
43204         fts: tweak inode comparison function
43205         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
43206         inode numbers, as documented.
43207
43208         fts: sort dirent entries on inode number before traversing
43209         This avoids a quadratic, seek-related performance penalty when
43210         operating on a directory containing many entries (measurable at 10k;
43211         3.5 hours at 2 million entries with a cold cache) on certain types
43212         of file systems, including ext3 and ext4, but not tmpfs.
43213         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
43214         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
43215         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
43216         (fs_handles_readdir_ordered_dirents_efficiently): New function.
43217         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
43218         (fts_build): Set the stat.st_ino member from D_INO.
43219         If it is likely to be useful, sort dirent entries on inode number.
43220
43221         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
43222         and the struct statfs.f_type member.
43223         * modules/fts (Depends-on): Add d-ino.
43224
43225 2008-09-26  Bruno Haible  <bruno@clisp.org>
43226
43227         * modules/sigpipe-die (Depends-on): Add sigpipe.
43228
43229         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
43230         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
43231         and GNULIB_STDIO_H_SIGPIPE are set.
43232         * lib/stdio-write.c: New file.
43233         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
43234         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43235         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43236         REPLACE_STDIO_WRITE_FUNCS.
43237         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
43238         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43239         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43240         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
43241         * modules/stdio (Files): Add lib/stdio-write.c.
43242         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
43243         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43244         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43245         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
43246         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
43247         REPLACE_FPRINTF_POSIX.
43248         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
43249         REPLACE_PRINTF_POSIX.
43250         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
43251         REPLACE_VFPRINTF_POSIX.
43252         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
43253         REPLACE_VPRINTF_POSIX.
43254         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
43255         SIGPIPE issue.
43256         * doc/posix-functions/fputc.texi: Likewise.
43257         * doc/posix-functions/fputs.texi: Likewise.
43258         * doc/posix-functions/fwrite.texi: Likewise.
43259         * doc/posix-functions/printf.texi: Likewise.
43260         * doc/posix-functions/putc.texi: Likewise.
43261         * doc/posix-functions/putchar.texi: Likewise.
43262         * doc/posix-functions/puts.texi: Likewise.
43263         * doc/posix-functions/vfprintf.texi: Likewise.
43264         * doc/posix-functions/vprintf.texi: Likewise.
43265
43266         * modules/safe-write (Depends-on): Add write.
43267
43268         * modules/sigpipe-tests: New file.
43269         * tests/test-sigpipe.c: New file.
43270         * tests/test-sigpipe.sh: New file.
43271
43272         * modules/write: New file.
43273         * lib/unistd.in.h: Include <sys/types.h>.
43274         (write): New declaration.
43275         * lib/write.c: New file.
43276         * m4/write.m4: New file.
43277         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43278         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
43279         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
43280         GNULIB_WRITE, REPLACE_WRITE.
43281         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
43282         and the SIGPIPE issue.
43283
43284         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
43285         (raise): New declaration.
43286         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
43287         (ext_signal): New function.
43288         (rpl_raise): New function.
43289         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
43290         GNULIB_SIGNAL_H_SIGPIPE.
43291         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
43292         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
43293
43294         * modules/sigpipe: New file.
43295         * m4/sigpipe.m4: New file.
43296
43297 2008-09-25  Derek Price  <derek@ximbiot.com>
43298             Bruno Haible  <bruno@clisp.org>
43299
43300         * gnulib-tool (func_import): Report all license incompatibilities, not
43301         just the first one.
43302
43303 2008-09-25  Bruno Haible  <bruno@clisp.org>
43304
43305         * gnulib-tool (func_import): When computing the edits, consider not
43306         only the Makefile.ams that exist but also those that will be generated.
43307
43308 2008-09-25  Simon Josefsson  <simon@josefsson.org>
43309
43310         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
43311         fixes gnulib-tool --test warning about duplicate dependency.
43312
43313 2008-09-25  Bruno Haible  <bruno@clisp.org>
43314
43315         * gnulib-tool: Don't ask the user to perform edits in the generated
43316         Makefile.ams.
43317         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
43318         apply to the Makefile.am being generated.
43319         (func_emit_tests_Makefile_am): Execute edits that apply to the
43320         Makefile.am being generated.
43321         (func_import): Setup list of Makefile.am edits before emitting the
43322         Makefile.ams, not at the end.
43323         (func_create_testdir): Update.
43324         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43325
43326 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43327
43328         * gnulib-tool (func_import): Store the --tests-base option in the
43329         comment in gnulib-cache.m4.
43330
43331 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
43332
43333         * NEWS: Document increased portability that sys_select now provides.
43334
43335         * lib/sys_select.in.h: Install select wrapper.
43336         * lib/sys_socket.in.h: Use more descriptive name when there is no
43337         select wrapper.
43338         * lib/winsock-select.c: New.
43339         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
43340         Require gl_HEADER_SYS_SOCKET.
43341         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
43342         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
43343         * tests/test-sys_select.c: Add functional tests.
43344
43345 2008-09-24  Eric Blake  <ebb9@byu.net>
43346
43347         open, fopen: close fd leak in last patch
43348         * lib/open.c (rpl_open): Close fd before returning error.
43349         * lib/fopen.c (rpl_fopen): Close fd before returning error.
43350         * doc/posix-functions/open.texi (open): Document that Irix also
43351         has the bug.
43352         * doc/posix-functions/fopen.texi (fopen): Likewise.
43353         Reported by Paolo Bonzini.
43354
43355 2008-09-24  Bruno Haible  <bruno@clisp.org>
43356
43357         Ensure that a filename ending in a slash cannot be used to access a
43358         non-directory.
43359         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
43360         to check whether it's really a directory.
43361         * lib/fopen.c: Include fcntl.h, unistd.h.
43362         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
43363         and fdopen().
43364         * modules/fopen (Depends-on): Add unistd.
43365         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
43366         * tests/test-fopen.c (main): Likewise.
43367         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
43368         * doc/posix-functions/fopen.texi: Likewise.
43369         Reported by Eric Blake.
43370
43371 2008-09-23  Eric Blake  <ebb9@byu.net>
43372
43373         c-stack: avoid compiler optimizations when provoking overflow
43374         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
43375         recursion harder to optimize, to ensure a stack overflow occurs.
43376         * tests/test-c-stack.c (recurse): Likewise.
43377         Borrowed from libsigsegv.
43378
43379         c-stack: work around Irix sigaltstack bug
43380         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
43381         whether sigaltstack uses wrong end of stack_t (copied in part from
43382         libsigsegv).
43383         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
43384         Irix bug, without requiring an over-allocation.
43385         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
43386         bug.
43387
43388         fopen: document mingw bug on directories
43389         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
43390         not allowing a stream visiting a directory, even though reading
43391         from such a stream is not portable.
43392
43393 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43394
43395         * lib/poll.c: Rewrite.
43396         * modules/poll: Depend on alloca.
43397
43398 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43399
43400         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
43401         instead define prototypes for a full set of wrappers.  Ensure
43402         that Cygwin does not use the compatibility code, which is only
43403         for MinGW.
43404         * lib/winsock.c: New.
43405         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
43406         * modules/sys_socket: Add lib/winsock.c.
43407
43408         * modules/poll-tests: Add errno and perror.
43409         * tests/test-poll.c: Use ioctl, not ioctlsocket.
43410
43411 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43412
43413         * tests/test-poll.c: Downgrade minimum needed Winsock version.
43414
43415 2008-09-23  Bruno Haible  <bruno@clisp.org>
43416
43417         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
43418         * doc/glibc-functions/*: Likewise.
43419
43420 2008-09-23  Simon Josefsson  <simon@josefsson.org>
43421
43422         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
43423         success.
43424
43425 2008-09-22  Eric Blake  <ebb9@byu.net>
43426             Bruno Haible  <bruno@clisp.org>
43427
43428         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
43429         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
43430         supply %A but mishandle pseudo-NaN.
43431         Reported by Simon Josefsson.
43432
43433 2008-09-21  Bruno Haible  <bruno@clisp.org>
43434
43435         * tests/test-lock.c (main): Tweak skip message.
43436         * tests/test-tls.c (main): Likewise.
43437
43438 2008-09-21  Bruno Haible  <bruno@clisp.org>
43439
43440         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
43441         whether 'struct sigaction' has sa_sigaction here...
43442         (gl_PREREQ_SIG_HANDLER_H): ... not here.
43443         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
43444
43445 2008-09-21  Bruno Haible  <bruno@clisp.org>
43446
43447         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
43448         section.
43449         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
43450         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
43451         the new section.
43452         (Support for obsolete systems lacking POSIX:2001): New section.
43453         (String handling <string.h>): Move strdup to the new section.
43454         Suggested by Simon Josefsson and Paolo Bonzini.
43455
43456 2008-09-21  Bruno Haible  <bruno@clisp.org>
43457
43458         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
43459         exponents in %e and %g results on 'long double'. Needed for mingw's
43460         improved *printf functions.
43461         * tests/test-vasprintf-posix.c (test_function): Likewise.
43462         * tests/test-snprintf-posix.h (test_function): Likewise.
43463         * tests/test-sprintf-posix.h (test_function): Likewise.
43464         Reported by Eric Blake.
43465
43466 2008-09-21  Bruno Haible  <bruno@clisp.org>
43467
43468         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
43469         * tests/test-sprintf-posix.h (test_function): Likewise.
43470
43471 2008-09-21  Bruno Haible  <bruno@clisp.org>
43472
43473         * modules/getpass (Depends-on): Add strdup-posix.
43474
43475         New module 'strdup-posix'.
43476         * modules/strdup-posix: New file.
43477         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
43478         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
43479         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43480         REPLACE_STRDUP.
43481         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
43482         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
43483         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43484         strdup-posix.
43485
43486         * modules/strdup (Depends-on): Remove malloc-posix.
43487
43488 2008-09-20  Bruno Haible  <bruno@clisp.org>
43489
43490         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
43491         Wildenhues.
43492
43493 2008-09-20  Bruno Haible  <bruno@clisp.org>
43494
43495         Ensure that wint_t gets defined on IRIX 5.3.
43496         * lib/wchar.in.h (wint_t): Define if not defined by the system.
43497         * lib/wctype.in.h (wint_t): Likewise.
43498         (__wctype_wint_t): Remove type.
43499         (isw*): Use wint_t instead of __wctype_wint_t.
43500         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
43501         * modules/wchar (Files): Add m4/wint_t.m4.
43502         (Makefile.am): Substitute HAVE_WINT_T.
43503         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
43504         * tests/test-wctype.c: Check that wint_t is defined.
43505         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
43506         * doc/posix-headers/wctype.texi: Likewise.
43507         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43508
43509 2008-09-18  Bruno Haible  <bruno@clisp.org>
43510
43511         * gnulib-tool (func_exit): Update comment.
43512
43513 2008-09-18  Simon Josefsson  <simon@josefsson.org>
43514
43515         * modules/getaddrinfo (Depends-on): Remove strdup, this module
43516         assumes strdup exists and does not depend on strdup to return
43517         ENOMEM on out of memory conditions.
43518
43519 2008-09-18  Bruno Haible  <bruno@clisp.org>
43520
43521         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
43522         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
43523         digits for the exponent.
43524
43525 2008-09-18  Jim Meyering  <meyering@redhat.com>
43526             Bruno Haible  <bruno@clisp.org>
43527
43528         * lib/vasnprintf.c (decimal_point_char): Define also if
43529         NEED_PRINTF_INFINITE_LONG_DOUBLE.
43530
43531 2008-09-16  Bruno Haible  <bruno@clisp.org>
43532         and Eric Blake  <ebb9@byu.net>
43533
43534         vasnprintf: support Irix 5.3
43535         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
43536         that mishandle long double infinity.
43537         Reported by Tom G. Christensen.
43538
43539 2008-09-16  Bruno Haible  <bruno@clisp.org>
43540
43541         * doc/glibc-functions/scandir.texi: Mention the function is missing on
43542         Solaris 9.
43543         * doc/glibc-functions/alphasort.texi: Likewise.
43544         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
43545
43546 2008-09-16  Jim Meyering  <meyering@redhat.com>
43547
43548         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
43549         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
43550         a umask modification leak out of a subshell.  Otherwise, the
43551         opensolaris /bin/sh would be accepted and thus cause unwarranted
43552         failures in the coreutils test suite.
43553
43554 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
43555
43556         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
43557         to succeed.
43558
43559 2008-09-16  Jim Meyering  <meyering@redhat.com>
43560
43561         avoid spurious test failure when library is built without ACL support
43562         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
43563         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
43564         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
43565         * tests/test-copy-acl.sh: Likewise.
43566
43567 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43568
43569         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
43570         based on character occurrence counts.
43571
43572 2008-09-15  Eric Blake  <ebb9@byu.net>
43573
43574         tests: avoid some compiler warnings
43575         * tests/test-memchr.c (main): Pass NULL indirectly.
43576         * tests/test-closein.c (main): Avoid unused variable.
43577
43578 2008-09-15  Bruno Haible  <bruno@clisp.org>
43579
43580         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
43581         are missing on OpenBSD 4.0 individually.
43582         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43583
43584 2008-09-15  Bruno Haible  <bruno@clisp.org>
43585
43586         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
43587         * doc/posix-functions/strerror.texi: Mention also Cygwin.
43588         * doc/posix-functions/perror.texi: Likewise.
43589         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
43590         is missing.
43591         Reported by Eric Blake.
43592
43593         * lib/errno.in.h: Use replacement values >= 2000.
43594         Reported by Eric Blake.
43595
43596 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43597
43598         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
43599         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
43600         limit.
43601         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
43602         compareseq was aborted.
43603
43604 2008-09-14  Bruno Haible  <bruno@clisp.org>
43605
43606         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
43607         yvec_edit_count.
43608         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
43609         (fstrcmp_bounded): Simplify result computation accordingly.
43610
43611 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43612
43613         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
43614         (fstrcmp): Define in terms of fstrcmp_bounded.
43615         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
43616         lower_bound argument.
43617         Return quickly if the result is certainly < lower_bound.
43618         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
43619
43620 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43621
43622         * lib/diffseq.h (EARLY_ABORT): New macro.
43623         (compareseq): Change return type to bool. Return true when EARLY_ABORT
43624         evaluates to true.
43625
43626 2008-09-14  Bruno Haible  <bruno@clisp.org>
43627
43628         * modules/perror-tests: New file.
43629         * tests/test-perror.sh: New file.
43630         * tests/test-perror.c: New file.
43631
43632         New module 'perror'.
43633         * lib/stdio.in.h (perror): New declaration.
43634         * lib/perror.c: New file.
43635         * m4/perror.m4: New file.
43636         * modules/perror: New file.
43637         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
43638         * doc/posix-functions/perror.texi: Mention the perror module.
43639         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
43640         REPLACE_PERROR.
43641         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
43642         REPLACE_PERROR.
43643
43644 2008-09-14  Bruno Haible  <bruno@clisp.org>
43645
43646         * modules/stdio (Makefile.am): Reorder to match the order in
43647         lib/stdio.in.h.
43648         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43649
43650 2008-09-13  Bruno Haible  <bruno@clisp.org>
43651
43652         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
43653
43654 2008-09-13  Bruno Haible  <bruno@clisp.org>
43655
43656         Extend strerror to cover the added errno values.
43657         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
43658         (rpl_strerror): Provide error messages for the added errno values and
43659         for the WSA* values.
43660         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
43661         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
43662         strerror.
43663         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
43664         * modules/strerror (Depends-on): Add errno.
43665         * doc/posix-functions/strerror.texi: Document the change.
43666         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
43667         and EOVERFLOW.
43668
43669 2008-09-13  Bruno Haible  <bruno@clisp.org>
43670
43671         * modules/EOVERFLOW: Remove file.
43672         * m4/eoverflow.m4: Remove file.
43673         * modules/EOVERFLOW-tests: Remove file.
43674         * tests/test-EOVERFLOW.c: Remove file.
43675         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
43676         * modules/ftell (Depends-on): Likewise.
43677         * modules/getdelim (Depends-on): Likewise.
43678         * modules/getugroups (Depends-on): Likewise.
43679         * modules/poll (Depends-on): Likewise.
43680         * modules/snprintf (Depends-on): Likewise.
43681         * modules/sprintf-posix (Depends-on): Likewise.
43682         * modules/vasnprintf (Depends-on): Likewise.
43683         * modules/vasprintf (Depends-on): Likewise.
43684         * modules/vfprintf-posix (Depends-on): Likewise.
43685         * modules/vsnprintf (Depends-on): Likewise.
43686         * modules/vsprintf-posix (Depends-on): Likewise.
43687         * modules/xvasprintf (Depends-on): Likewise.
43688         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43689         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
43690         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
43691         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
43692         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43693         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
43694         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
43695         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
43696         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43697         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
43698         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
43699         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
43700         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43701         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
43702         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
43703         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
43704         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43705         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
43706         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
43707         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
43708         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43709         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
43710         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
43711         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
43712         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
43713         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43714         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
43715         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
43716         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
43717         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
43718         * MODULES.html.sh: Remove EOVERFLOW.
43719         * NEWS: Mention the change.
43720
43721 2008-09-13  Bruno Haible  <bruno@clisp.org>
43722
43723         * modules/errno-tests: New file.
43724         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
43725
43726         * lib/errno.in.h: New file.
43727         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
43728         * modules/errno: New file.
43729         * doc/posix-headers/errno.texi: Update documentation.
43730         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
43731
43732 2008-09-13  Bruno Haible  <bruno@clisp.org>
43733
43734         * tests/test-poll.c: Use #if for native Windows, rather than testing
43735         __MSVCRT__.
43736
43737 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43738             Bruno Haible  <bruno@clisp.org>
43739
43740         * lib/glob.c: Don't include <pwd.h> on native Windows.
43741         (WINDOWS32): New macro.
43742         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
43743
43744 2008-09-13  Bruno Haible  <bruno@clisp.org>
43745
43746         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
43747         (ETIMEDOUT): Remove macro.
43748         (glthread_cond_timedwait_multithreaded): New declaration.
43749         (glthread_cond_timedwait): Use it.
43750         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
43751         (glthread_cond_timedwait_multithreaded): New function.
43752
43753 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43754
43755         * modules/poll-tests: Do not check for io.h.
43756         * tests/test-poll.c: Check for __MSVCRT__ instead.
43757
43758 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43759
43760         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
43761         * modules/poll-tests: Add inet_pton, stdbool, sockets.
43762         * tests/test-poll.c: Use them.  Use _pipe on Windows.
43763
43764 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43765
43766         * modules/poll-tests: New.
43767         * tests/test-poll.c: New.
43768
43769 2008-09-12  Eric Blake  <ebb9@byu.net>
43770
43771         frexp: test for NetBSD failure on -0.0
43772         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
43773         not all, bugs from NetBSD 3.0 have been fixed.
43774         * doc/posix-functions/frexp.texi (frexp): Document bug.
43775         Reported by Thomas Klausner.
43776
43777         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
43778         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
43779         literal -0.0.
43780         Reported by Jonathan C. Patschke <jp@centtech.com>.
43781
43782 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43783
43784         * lib/glthread/cond.h: Use dummy implementation also if
43785         USE_WIN32_THREADS.
43786
43787 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43788
43789         * modules/fnmatch-posix (License): Change to LGPLv2+.
43790         * modules/fnmatch-gnu (License): Likewise.
43791
43792 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43793
43794         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
43795
43796 2008-09-11  Jim Meyering  <meyering@redhat.com>
43797
43798         * users.txt: Add gtk-vnc.
43799
43800 2008-09-08  Simon Josefsson  <simon@josefsson.org>
43801
43802         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
43803         rotate amounts.
43804
43805         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
43806         required for 16-bit and 8-bit rotates.
43807         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
43808         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
43809         UINT8_MAX instead of hard-coded constants.
43810         Suggested by Paul Eggert.
43811
43812 2008-09-07  Bruno Haible  <bruno@clisp.org>
43813
43814         * tests/test-striconveh.c (main): Check behaviour when converting from
43815         UTF-7.
43816
43817         Make striconveh work better with stateful encodings.
43818         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
43819         that iconv does not increment the inptr when returning -1/EINVAL.
43820
43821 2008-09-07  Bruno Haible  <bruno@clisp.org>
43822
43823         * build-aux/config.rpath: Update according to libtool-2.2.6.
43824         * build-aux/config.libpath: Likewise.
43825
43826 2008-09-06  Bruno Haible  <bruno@clisp.org>
43827
43828         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
43829         * lib/freadptr.c (freadptr): Likewise.
43830         * lib/freadseek.c (freadptrinc): Likewise.
43831         Reported by Simon Josefsson.
43832
43833 2008-09-06  Bruno Haible  <bruno@clisp.org>
43834
43835         * modules/freadptr (License): Change to LGPLv2+.
43836         * modules/freadseek (License): Likewise.
43837         Suggested by Eric Blake.
43838
43839         * modules/memchr2 (License): Change to LGPLv2+.
43840         Approved by Eric Blake.
43841
43842 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43843             Bruno Haible  <bruno@clisp.org>
43844
43845         Make gnulib-tool work with native 'sed' on AIX.
43846         * gnulib-tool (sed_noop): New variable.
43847         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
43848         func_add_or_update, func_create_testdir): Use it to initialize sed
43849         script variables.
43850         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43851
43852 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
43853             Bruno Haible  <bruno@clisp.org>
43854
43855         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
43856         also works after #include directives.
43857
43858 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
43859
43860         getdate.y: reject an out-of-range timezone value
43861         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
43862         the range [-24...+24].  When specified with only one or two digits,
43863         * tests/test-getdate.c: Tests for the fix.
43864         * doc/getdate.texi: Document this change.
43865
43866 2008-09-03  Bruno Haible  <bruno@clisp.org>
43867
43868         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
43869
43870 2008-09-02  Simon Josefsson  <simon@josefsson.org>
43871
43872         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
43873         <bruce.korb@gmail.com> with ideas from Ben Pfaff
43874         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
43875         Blake <ebb9@byu.net>.
43876
43877         * tests/test-bitrotate.c: Add more test vectors.
43878
43879 2008-09-02  Eric Blake  <ebb9@byu.net>
43880
43881         vasnprintf-posix: handle large precision via %.*d
43882         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
43883         when handling it ourselves.
43884         * tests/test-vasnprintf-posix.c (test_function): Add test.
43885         * tests/test-snprintf-posix.h (test_function): Likewise.
43886         * tests/test-sprintf-posix.h (test_function): Likewise.
43887         * tests/test-vasprintf-posix.c (test_function): Likewise.
43888         Reported by Alain Guibert.
43889
43890 2008-09-01  Eric Blake  <ebb9@byu.net>
43891
43892         c-stack: make configure-time check more robust
43893         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
43894         successful sigaction call.
43895         Reported by Tom G. Christensen.
43896
43897 2008-09-01  Bruno Haible  <bruno@clisp.org>
43898
43899         New module 'findprog-lgpl'.
43900         * modules/findprog-lgpl: New file.
43901         * lib/findprog-lgpl.c: New file.
43902         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
43903         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
43904         to decide whether to use strdup or xstrdup, concatenated_filename or
43905         xconcatenated_filename.
43906
43907 2008-09-01  Bruno Haible  <bruno@clisp.org>
43908
43909         Split module 'concat-filename' into 'concat-filename' (LGPL) and
43910         'xconcat-filename' (GPL).
43911         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
43912         (License): Change to LGPLv2+.
43913         * modules/xconcat-filename: New file.
43914         * lib/concat-filename.h (concatenated_filename): Change specification.
43915         (xconcatenated_filename): New declaration.
43916         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
43917         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
43918         memory situations.
43919         * lib/xconcat-filename.c: New file.
43920         * NEWS: Mention the change.
43921         * lib/findprog.c: Include concat-filename.h, not filename.h.
43922         (find_in_path): Use xconcatenated_filename instead of
43923         concatenated_filename.
43924         * lib/javacomp.c: Include concat-filename.h, not filename.h.
43925         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
43926         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
43927         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
43928         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
43929         instead of concatenated_filename.
43930         * lib/javaexec.c: Include concat-filename.h, not filename.h.
43931         (execute_java_class): Use xconcatenated_filename instead of
43932         concatenated_filename.
43933         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
43934         * modules/javacomp (Depends-on): Likewise.
43935         * modules/javaexec (Depends-on): Likewise.
43936
43937 2008-09-01  Bruno Haible  <bruno@clisp.org>
43938
43939         Split module 'filename' into 'filename' and 'concat-filename'.
43940         * modules/filename: Keep only lib/filename.h.
43941         (License): Change to LGPLv2+.
43942         * modules/concat-filename: New file, extracted from modules/filename.
43943         * lib/filename.h (concatenated_filename): Remove declaration.
43944         * lib/concat-filename.h: New file, extracted from lib/filename.h.
43945         * lib/concat-filename.c: Include concat-filename.h.
43946         * NEWS: Mention the change.
43947
43948 2008-09-01  Simon Josefsson  <simon@josefsson.org>
43949
43950         * lib/bitrotate.h (rotl8, rotr8): Add.
43951
43952         * modules/bitrotate (configure.ac): Need
43953         AC_REQUIRE([AC_C_INLINE]).
43954         (Description): Mention stdint.h.  Reported by Bruno Haible
43955         <bruno@clisp.org>.
43956
43957         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
43958         Paolo Bonzini <bonzini@gnu.org>.
43959
43960 2008-08-31  Bruno Haible  <bruno@clisp.org>
43961
43962         Assume Solaris specific bi-arch conventions on Solaris systems.
43963         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
43964         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
43965         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
43966         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
43967         like acl_libdirstem.
43968         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
43969         acl_libdirstem.
43970         * NEWS: Mention the change.
43971         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
43972
43973 2008-08-31  Jim Meyering  <meyering@redhat.com>
43974
43975         * lib/strftime.h: Add comments describing the two added arguments.
43976
43977         remove duplicate #include directives
43978         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
43979         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
43980
43981 2008-08-31  Bruno Haible  <bruno@clisp.org>
43982
43983         New module 'sigpipe-die'.
43984         * modules/sigpipe-die: New file.
43985         * lib/sigpipe-die.h: New file.
43986         * lib/sigpipe-die.c: New file.
43987         * MODULES.html.sh (Signal handling): Add sigpipe-die.
43988
43989 2008-08-31  Bruno Haible  <bruno@clisp.org>
43990
43991         Don't override previously installed signal handlers.
43992         * lib/fatal-signal.c (saved_sigactions): New variable.
43993         (uninstall_handlers): Reset the signal to the saved handler, not
43994         to SIG_DFL (except when ignored).
43995         (install_handlers): Save the previous handlers.
43996
43997 2008-08-30  Bruno Haible  <bruno@clisp.org>
43998
43999         * gnulib-tool (func_reset_sigpipe): New function.
44000         (func_get_automake_snippet, func_modules_transitive_closure,
44001         func_import): Invoke it before a join command that reads from stdin,
44002         to avoid "echo: write error: Broken pipe" error messages on stderr.
44003         Reported by Sam Steingold <sds@gnu.org>.
44004
44005 2008-08-30  Bruno Haible  <bruno@clisp.org>
44006
44007         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
44008         Code copied from m4/open.m4.
44009         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
44010         access and the filename ends in a slash. Code copied from lib/open.c.
44011         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
44012         * tests/test-fopen.c (main): Check against bug with trailing slash.
44013
44014 2008-08-29  Bruno Haible  <bruno@clisp.org>
44015
44016         Avoid some "gcc -pedantic" warnings.
44017         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
44018         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
44019         * lib/dirent.in.h: Likewise.
44020         * lib/fcntl.in.h: Likewise.
44021         * lib/float.in.h: Likewise.
44022         * lib/iconv.in.h: Likewise.
44023         * lib/inttypes.in.h: Likewise.
44024         * lib/locale.in.h: Likewise.
44025         * lib/math.in.h: Likewise.
44026         * lib/netinet_in.in.h: Likewise.
44027         * lib/search.in.h: Likewise.
44028         * lib/signal.in.h: Likewise.
44029         * lib/stdarg.in.h: Likewise.
44030         * lib/stdint.in.h: Likewise.
44031         * lib/stdio.in.h: Likewise.
44032         * lib/stdlib.in.h: Likewise.
44033         * lib/string.in.h: Likewise.
44034         * lib/strings.in.h: Likewise.
44035         * lib/sys_select.in.h: Likewise.
44036         * lib/sys_socket.in.h: Likewise.
44037         * lib/sys_stat.in.h: Likewise.
44038         * lib/sys_time.in.h: Likewise.
44039         * lib/sysexits.in.h: Likewise.
44040         * lib/time.in.h: Likewise.
44041         * lib/unistd.in.h: Likewise.
44042         * lib/wchar.in.h: Likewise.
44043         * lib/wctype.in.h: Likewise.
44044         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
44045         * modules/fchdir (Makefile.am): Likewise.
44046         * modules/fcntl (Makefile.am): Likewise.
44047         * modules/float (Makefile.am): Likewise.
44048         * modules/iconv_open (Makefile.am): Likewise.
44049         * modules/inttypes (Makefile.am): Likewise.
44050         * modules/locale (Makefile.am): Likewise.
44051         * modules/math (Makefile.am): Likewise.
44052         * modules/netinet_in (Makefile.am): Likewise.
44053         * modules/search (Makefile.am): Likewise.
44054         * modules/signal (Makefile.am): Likewise.
44055         * modules/stdarg (Makefile.am): Likewise.
44056         * modules/stdint (Makefile.am): Likewise.
44057         * modules/stdio (Makefile.am): Likewise.
44058         * modules/stdlib (Makefile.am): Likewise.
44059         * modules/string (Makefile.am): Likewise.
44060         * modules/strings (Makefile.am): Likewise.
44061         * modules/sys_select (Makefile.am): Likewise.
44062         * modules/sys_socket (Makefile.am): Likewise.
44063         * modules/sys_stat (Makefile.am): Likewise.
44064         * modules/sys_time (Makefile.am): Likewise.
44065         * modules/sysexits (Makefile.am): Likewise.
44066         * modules/time (Makefile.am): Likewise.
44067         * modules/unistd (Makefile.am): Likewise.
44068         * modules/wchar (Makefile.am): Likewise.
44069         * modules/wctype (Makefile.am): Likewise.
44070         Reported by Reuben Thomas <rrt@sc3d.org>.
44071
44072 2008-08-29  Bruno Haible  <bruno@clisp.org>
44073
44074         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
44075         any more.
44076
44077 2008-08-29  Simon Josefsson  <simon@josefsson.org>
44078
44079         * MODULES.html.sh (Misc): Add bitrotate.
44080
44081         * modules/bitrotate: New file.
44082
44083         * lib/bitrotate.h: New file.
44084
44085         * modules/bitrotate-tests: New file.
44086
44087         * tests/test-bitrotate.c: New file.
44088
44089         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
44090         on the bitrotate module.
44091
44092         * lib/arctwo.c: Use new bitrotate module.
44093
44094 2008-08-29  Jim Meyering  <meyering@redhat.com>
44095
44096         bootstrap: merge changes from coreutils
44097         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
44098         of copied files.  Remove a kludge, now that this is fixed.
44099         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
44100         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
44101         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
44102
44103 2008-08-29  Bruno Haible  <bruno@clisp.org>
44104
44105         * MODULES.html.sh: Remove --cvs-urls option.
44106
44107 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
44108
44109         maint.mk: adjust to file name change
44110         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
44111
44112 2008-08-28  Jim Meyering  <meyering@redhat.com>
44113
44114         * modules/getndelim2 (License): Relicense to LGPLv2+.
44115         Approved by Richard Stallman for the version of 1995, and by
44116         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
44117
44118 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
44119
44120         * lib/getdelim.c (flockfile, funlockfile): Make all of them
44121         dummy if one is not available.  Do not touch them if
44122         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
44123         (getc_maybe_unlocked): New.
44124         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
44125
44126 2008-08-26  Eric Blake  <ebb9@byu.net>
44127
44128         doc/INSTALL: resync from autoconf
44129         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
44130         (INSTALL_PRELUDE): Delete; this is done more efficiently by
44131         moving...
44132         * install.texi [!autoconf]: ...here.  Resync from autoconf.
44133         * INSTALL: Regenerate.
44134         * INSTALL.ISO: New file.
44135         * INSTALL.UTF-8: Likewise.
44136
44137 2008-08-26  Jim Meyering  <meyering@redhat.com>
44138
44139         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
44140         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
44141         these definitions conditional, so that they may be overridden, too.
44142
44143 2008-08-26  Bruno Haible  <bruno@clisp.org>
44144
44145         Generate INSTALL file variants with prettier quotes.
44146         * doc/Makefile (INSTALL_PRELUDE): New macro.
44147         (INSTALL): Use it.
44148         (INSTALL.ISO, INSTALL.UTF-8): New rules.
44149
44150 2008-08-26  Bruno Haible  <bruno@clisp.org>
44151
44152         Run makeinfo in an English locale.
44153         * doc/Makefile (MAKEINFO): New variable.
44154
44155 2008-08-26  Bruno Haible  <bruno@clisp.org>
44156
44157         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
44158         Suggested by Eric Blake.
44159
44160 2008-08-25  Bruno Haible  <bruno@clisp.org>
44161
44162         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
44163
44164 2008-08-25  Eric Blake  <ebb9@byu.net>
44165
44166         c-stack: test that stack overflow can be caught
44167         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
44168         that platform allows handling stack overflow; at least OS/2 EMX
44169         has sigaltstack, but crashes before transferring control to
44170         handler on stack overflow.
44171         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
44172         check for HAVE_STACK_OVERFLOW_HANDLING.
44173         Reported by Elbert Pol.
44174
44175 2008-08-25  Bruno Haible  <bruno@clisp.org>
44176
44177         * doc/posix-functions/strftime.texi: Fix description of strftime
44178         module.
44179
44180 2008-08-24  Bruno Haible  <bruno@clisp.org>
44181
44182         * tests/uniwidth/test-uc_width2.c: New file.
44183         * tests/uniwidth/test-uc_width2.sh: New file.
44184         * modules/uniwidth/width-tests (Files): Add the new files.
44185         (TESTS): Add uniwidth/test-uc_width2.sh.
44186         (TESTS_ENVIRONMENT): New variable.
44187         (check_PROGRAMS): Add test-uc_width2.
44188         (test_uc_width2_SOURCES): New variable.
44189
44190         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
44191         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
44192         not 0x00AB.
44193         Reported by Alexander V. Lukyanov <lav@netis.ru>.
44194
44195 2008-08-22  Eric Blake  <ebb9@byu.net>
44196
44197         test-lock, test-tls: mention why a test is skipped
44198         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
44199         skipped.
44200         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
44201
44202         count-one-bits: relax license
44203         * modules/count-one-bits (License): Relicense to LGPLv2+.
44204         Suggested by Ludovic Courtès, approved by Ben Pfaff.
44205
44206 2008-08-22  Andreas Schwab  <schwab@suse.de>
44207
44208         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
44209         Remove spurious space in assignment.
44210
44211 2008-08-21  Simon Josefsson  <simon@josefsson.org>
44212
44213         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
44214         Paul Eggert <eggert@CS.UCLA.EDU>.
44215
44216 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
44217
44218         * modules/gettext: Add m4/threadlib.m4.
44219
44220 2008-08-19  Eric Blake  <ebb9@byu.net>
44221
44222         test-c-stack: fix compilation failure on FreeBSD 5.0
44223         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
44224         headers before <sys/resource.h>.
44225         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
44226         the bug.
44227         Reported by Nelson H. F. Beebe.
44228
44229         strverscmp: migrate from "strverscmp.h" to <string.h>
44230         * modules/string (Makefile.am): Add new hooks.
44231         * modules/strverscmp (Files): Remove strverscmp.h.
44232         (Depends-on): Add string.
44233         (configure.ac): Add indicator.
44234         (Include): Mention new header.
44235         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
44236         defaults.
44237         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
44238         results.
44239         * lib/strverscmp.h: Delete.
44240         * lib/string.in.h (strverscmp): Provide declaration, when needed.
44241         * tests/test-strverscmp.c (includes): Adjust client.
44242         * lib/check-version.c (includes): Likewise.
44243         * NEWS: Document the change.
44244
44245         strverscmp: add unit test
44246         * modules/strverscmp-tests: New file.
44247         * tests/test-strverscmp.c: Likewise.
44248
44249 2008-08-19  Simon Josefsson  <simon@josefsson.org>
44250
44251         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
44252         regarding Windows crypto stuff, from Mono.
44253
44254 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
44255
44256         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
44257         if present, for intel RND.  Return error on failures.
44258
44259 2008-08-18  Ben Pfaff  <blp@gnu.org>
44260
44261         gitlog-to-changelog: give better diagnostic for failed pipe-open
44262         * build-aux/gitlog-to-changelog: Improve error message: suggest
44263         that the version of Git may be too old.
44264
44265 2008-08-18  Simon Josefsson  <simon@josefsson.org>
44266
44267         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
44268         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
44269
44270 2008-08-18  Bruno Haible  <bruno@clisp.org>
44271
44272         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
44273         pthread_in_use().
44274
44275 2008-08-18  Bruno Haible  <bruno@clisp.org>
44276
44277         * lib/glthread/threadlib.c: Include <pthread.h>.
44278
44279 2008-08-18  Bruno Haible  <bruno@clisp.org>
44280
44281         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
44282         glthread_recursive_lock_* macros.
44283         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
44284         Fix syntax error.
44285
44286 2008-08-18  Bruno Haible  <bruno@clisp.org>
44287
44288         * lib/glthread/thread.c: Avoid forcing a context switch right after
44289         thread creation.
44290
44291 2008-08-17  Bruno Haible  <bruno@clisp.org>
44292
44293         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
44294         * lib/glthread/thread.h: Provide Win32 specific implementation.
44295         * modules/thread (Files): Add lib/glthread/thread.c.
44296         (Depends-on): Add lock.
44297         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
44298
44299 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44300
44301         New module 'yield'.
44302         * modules/yield: New file.
44303         * lib/glthread/yield.h: New file.
44304         * m4/yield.m4: New file.
44305         * MODULES.html.sh (Multithreading): Add yield.
44306
44307 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44308
44309         New module 'thread'.
44310         * modules/thread: New file.
44311         * lib/glthread/thread.h: New file.
44312         * m4/thread.m4: New file.
44313         * MODULES.html.sh (Multithreading): Add thread.
44314
44315 2008-08-17  Bruno Haible  <bruno@clisp.org>
44316
44317         * lib/glthread/lock.h: Include <stdlib.h> always.
44318         * lib/glthread/tls.h: Likewise.
44319         * lib/glthread/cond.h: Likewise.
44320
44321 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44322
44323         New module 'cond'.
44324         * modules/cond: New file.
44325         * lib/glthread/cond.h: New file.
44326         * lib/glthread/cond.c: New file.
44327         * m4/cond.m4: New file.
44328         * MODULES.html.sh (Multithreading): Add cond.
44329
44330 2008-08-16  Eric Blake  <ebb9@byu.net>
44331
44332         c-stack: fix regression on Irix 5.3 from 2008-06-21
44333         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
44334         sa_sigaction...
44335         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
44336         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
44337         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
44338         * modules/signal (Makefile.am): Use the value.
44339         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
44340         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
44341         * doc/posix-headers/signal.texi (signal.h): Document this
44342         portability issue.
44343         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
44344         Reported by Tom G. Christensen.
44345
44346 2008-08-17  Bruno Haible  <bruno@clisp.org>
44347
44348         New module 'threadlib'.
44349         * modules/threadlib: New file.
44350         * lib/glthread/threadlib.c: New file, extracted from
44351         lib/glthread/lock.c.
44352         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
44353         functions.
44354         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
44355         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
44356         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
44357         macros.
44358         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
44359         (gl_DISABLE_THREADS): Remove macro.
44360         * modules/lock (Files): Remove build-aux/config.rpath.
44361         (Depends-on): Remove havelib. Add threadlib.
44362         (configure.ac-early): Remove section.
44363         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
44364         * modules/tls (Depends-on): Remove lock. Add threadlib.
44365         (Link): New section, copied from threadlib.
44366         * MODULES.html.sh (Multithreading): Add threadlib.
44367
44368 2008-08-14  Bruno Haible  <bruno@clisp.org>
44369
44370         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
44371         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
44372         glthread_rwlock_unlock, glthread_rwlock_destroy,
44373         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
44374         glthread_recursive_lock_destroy): Define as macros always.
44375         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
44376         glthread_lock_lock.
44377         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
44378         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
44379         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
44380         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
44381         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
44382         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
44383         (glthread_recursive_lock_lock_func): Renamed from
44384         glthread_recursive_lock_lock.
44385         (glthread_recursive_lock_unlock_func): Renamed from
44386         glthread_recursive_lock_unlock.
44387         (glthread_recursive_lock_destroy_func): Renamed from
44388         glthread_recursive_lock_destroy.
44389
44390 2008-08-14  Bruno Haible  <bruno@clisp.org>
44391
44392         * lib/glthread/lock.h: Renamed from lib/lock.h.
44393         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
44394         * lib/glthread/tls.h: Renamed from lib/tls.h.
44395         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
44396         * lib/fstrcmp.c: Update includes.
44397         * lib/strsignal.c: Update includes.
44398         * modules/lock (Files, Makefile.am): Update.
44399         (Include): Change to "glthread/lock.h".
44400         * modules/tls (Files, Makefile.am): Update.
44401         (Include): Change to "glthread/tls.h".
44402         * tests/test-lock.c: Update includes.
44403         * tests/test-tls.c: Update includes.
44404         * NEWS: Mention the renamed header files.
44405
44406 2008-08-11  Jim Meyering  <meyering@redhat.com>
44407
44408         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
44409
44410 2008-08-11  Eric Blake  <ebb9@byu.net>
44411
44412         test-c-stack: avoid C99-ism
44413         * tests/test-c-stack.c (main): Fix whitespace, move declaration
44414         before statement.
44415         Reported by Alain Guibert.
44416
44417 2008-08-10  Jim Meyering  <meyering@redhat.com>
44418
44419         ensure that return value of uinttostr et al are not ignored
44420         * lib/inttostr.h (__GNUC_PREREQ): Define.
44421         (__attribute_warn_unused_result__): Define.
44422         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
44423
44424 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
44425
44426         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
44427         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
44428
44429 2008-08-07  Jim Meyering  <meyering@redhat.com>
44430
44431         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
44432
44433         * modules/mkstemp (License): Relicense under LGPLv2+.
44434         * modules/tempname (License): Likewise.
44435
44436 2008-08-06  Bruno Haible  <bruno@clisp.org>
44437
44438         * lib/poll.c (poll): Further micro-optimization.
44439
44440 2008-08-06  Jim Meyering  <meyering@redhat.com>
44441
44442         inet_pton.c: use locale-independent tolower
44443         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
44444         (inet_pton6): Use c_tolower rather than tolower.
44445         * modules/inet_pton (Depends-on): Add c-ctype.
44446
44447 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
44448
44449         * lib/poll.c (poll): Avoid division when timeout is 0, cache
44450         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
44451
44452 2008-08-06  Jim Meyering  <meyering@redhat.com>
44453
44454         * modules/inet_pton (License): Relicense under LGPLv2+.
44455
44456 2008-08-03  Bruno Haible  <bruno@clisp.org>
44457
44458         Additional non-aborting API for lock and tls.
44459         * lib/lock.h: Include <errno.h>.
44460         (glthread_lock_init): New macro/function.
44461         (gl_lock_init): Define as wrapper around glthread_lock_init.
44462         (glthread_lock_lock): New macro/function.
44463         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
44464         (glthread_lock_unlock): New macro/function.
44465         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
44466         (glthread_lock_destroy): New macro/function.
44467         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
44468         (glthread_rwlock_init): New macro/function.
44469         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
44470         (glthread_rwlock_rdlock): New macro/function.
44471         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
44472         (glthread_rwlock_wrlock): New macro/function.
44473         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
44474         (glthread_rwlock_unlock): New macro/function.
44475         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
44476         (glthread_rwlock_destroy): New macro/function.
44477         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
44478         (glthread_recursive_lock_init): New macro/function.
44479         (gl_recursive_lock_init): Define as wrapper around
44480         glthread_recursive_lock_init.
44481         (glthread_recursive_lock_lock): New macro/function.
44482         (gl_recursive_lock_lock): Define as wrapper around
44483         glthread_recursive_lock_lock.
44484         (glthread_recursive_lock_unlock): New macro/function.
44485         (gl_recursive_lock_unlock): Define as wrapper around
44486         glthread_recursive_lock_unlock.
44487         (glthread_recursive_lock_destroy): New macro/function.
44488         (gl_recursive_lock_destroy): Define as wrapper around
44489         glthread_recursive_lock_destroy.
44490         (glthread_once): New macro/function.
44491         (gl_once): Define as wrapper around glthread_once.
44492         Update function declarations.
44493         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
44494         glthread_rwlock_init. Return error code.
44495         (glthread_rwlock_rdlock_multithreaded): Renamed from
44496         glthread_rwlock_rdlock. Return error code.
44497         (glthread_rwlock_wrlock_multithreaded): Renamed from
44498         glthread_rwlock_wrlock. Return error code.
44499         (glthread_rwlock_unlock_multithreaded): Renamed from
44500         glthread_rwlock_unlock. Return error code.
44501         (glthread_rwlock_destroy_multithreaded): Renamed from
44502         glthread_rwlock_destroy. Return error code.
44503         (glthread_recursive_lock_init_multithreaded): Renamed from
44504         glthread_recursive_lock_init. Return error code.
44505         (glthread_recursive_lock_lock_multithreaded): Renamed from
44506         glthread_recursive_lock_lock. Return error code.
44507         (glthread_recursive_lock_unlock_multithreaded): Renamed from
44508         glthread_recursive_lock_unlock. Return error code.
44509         (glthread_recursive_lock_destroy_multithreaded): Renamed from
44510         glthread_recursive_lock_destroy. Return error code.
44511         (glthread_once_call): Make static.
44512         (glthread_once_multithreaded): Renamed from glthread_once.
44513         * lib/tls.h: Include <errno.h>.
44514         (glthread_tls_key_init): New macro/function.
44515         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
44516         (glthread_tls_set): New macro/function.
44517         (gl_tls_set): Define as wrapper around glthread_tls_set.
44518         (glthread_tls_key_destroy): New macro/function.
44519         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
44520         Update function declarations.
44521         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
44522         glthread_tls_get.
44523         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44524
44525 2008-08-04  Eric Blake  <ebb9@byu.net>
44526
44527         gnumakefile: use space, not TAB, outside of targets
44528         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
44529
44530 2008-08-02  Jim Meyering  <meyering@redhat.com>
44531
44532         getdate.y: avoid locale-dependent date parsing failure
44533         In Turkish locales, getdate would fail to recognize keywords
44534         containing a lowercase "i".  The solution is not to rely on
44535         locale-sensitive case-conversion.
44536         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
44537         (lookup_word): Use c_toupper in place of toupper.
44538         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
44539         Reported by Vefa Bicakci <bicave@superonline.com> in
44540         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
44541         * modules/getdate (Depends-on): Add c-ctype.
44542
44543 2008-08-02  Bruno Haible  <bruno@clisp.org>
44544
44545         * gnulib-tool (func_import): When updating or creating a .gitignore
44546         file, prepend each added line with a slash, and ignore leading slashes
44547         from the existing lines.
44548         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
44549
44550 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44551
44552         Portability fix for GNU make 3.79.1.
44553         * top/GNUmakefile: Avoid 'else COND', which older GNU make
44554         versions do not understand.
44555
44556 2008-08-01  Bruno Haible  <bruno@clisp.org>
44557
44558         Work around bug of HP-UX 10.20 cc with -0.0 literal.
44559         * tests/test-isnanf.h (zero): New variable.
44560         (main): Avoid literal -0.0f.
44561         * tests/test-isnand.h (zero): New variable.
44562         (main): Avoid literal -0.0.
44563         * tests/test-isnanl.h (zero): New variable.
44564         (main): Avoid literal -0.0L.
44565         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
44566         (test_float, test_double, test_long_double): Avoid literals -0.0f,
44567         -0.0, -0.0L.
44568         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
44569         (test_signbitd): Avoid literal -0.0.
44570         (test_signbitl): Avoid literal -0.0L.
44571         * tests/test-ceilf1.c (zero): New variable.
44572         (main): Avoid literal -0.0f.
44573         * tests/test-ceill.c (zero): New variable.
44574         (main): Avoid literal -0.0L.
44575         * tests/test-floorf1.c (zero): New variable.
44576         (main): Avoid literal -0.0f.
44577         * tests/test-floorl.c (zero): New variable.
44578         (main): Avoid literal -0.0L.
44579         * tests/test-roundf1.c (zero): New variable.
44580         (main): Avoid literal -0.0f.
44581         * tests/test-round1.c (zero): New variable.
44582         (main): Avoid literal -0.0.
44583         * tests/test-roundl.c (zero): New variable.
44584         (main): Avoid literal -0.0L.
44585         * tests/test-truncf1.c (zero): New variable.
44586         (main): Avoid literal -0.0f.
44587         * tests/test-trunc1.c (zero): New variable.
44588         (main): Avoid literal -0.0.
44589         * tests/test-truncl.c (zero): New variable.
44590         (main): Avoid literal -0.0L.
44591         * tests/test-frexp.c (zero): New variable.
44592         (main): Avoid literal -0.0.
44593         * tests/test-frexpl.c (zero): New variable.
44594         (main): Avoid literal -0.0L.
44595         * tests/test-ldexpl.c (zero): New variable.
44596         (main): Avoid literal -0.0L.
44597         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
44598         (zerod, zerol): New variables.
44599         (test_function): Avoid literals -0.0, -0.0L.
44600         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
44601         (zerod, zerol): New variables.
44602         (test_function): Avoid literals -0.0, -0.0L.
44603         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
44604         (zerod, zerol): New variables.
44605         (test_function): Avoid literals -0.0, -0.0L.
44606         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
44607         (zerod, zerol): New variables.
44608         (test_function): Avoid literals -0.0, -0.0L.
44609         * tests/test-strtod.c (zero): New variable.
44610         (main): Avoid literal -0.0.
44611         Reported by Jonathan C. Patschke <jp@centtech.com>.
44612
44613 2008-07-31  Jim Meyering  <meyering@redhat.com>
44614
44615         sha256.h: correct definition of SHA224_DIGEST_SIZE
44616         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
44617         Reported by Paulie Pena IV <paulie4@gmail.com>.
44618         Define as 224 / 8, rather than as a literal.
44619         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
44620         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
44621         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
44622
44623 2008-07-31  Bruno Haible  <bruno@clisp.org>
44624
44625         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
44626         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
44627         Reported by Jonathan Patschke <jp@centtech.com>.
44628
44629 2008-07-31  Bruno Haible  <bruno@clisp.org>
44630
44631         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
44632         Reported by Paolo Bonzini <bonzini@gnu.org>.
44633
44634 2008-07-30  Eric Blake  <ebb9@byu.net>
44635
44636         test-strtod: allow compilation without -lm
44637         * tests/test-strtod.c (main): Avoid link dependence on fabs.
44638         Reported by Dennis Clarke <blastwave@gmail.com>.
44639
44640 2008-07-28  Jim Meyering  <meyering@redhat.com>
44641
44642         bootstrap: work also when there are no .po files in po/
44643         * build-aux/bootstrap (update_po_files): Complete the change
44644         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
44645
44646 2008-07-27  Jim Meyering  <meyering@redhat.com>
44647
44648         * users.txt: Add zile.
44649
44650 2008-07-26  Ben Pfaff  <blp@gnu.org>
44651
44652         Add missing dependencies on new m4/exponent[fdl].m4 files.
44653         * modules/isnanf-nolibm: Add m4/exponentf.m4.
44654         * modules/isnand-nolibm: Add m4/exponentd.m4.
44655         * modules/isnanl-nolibm: Add m4/exponentl.m4.
44656         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
44657         m4/isnan[fdl].m4, because the macros actually used moved.
44658         Reported by Jim Meyering.
44659
44660 2008-07-14  Ben Pfaff  <blp@gnu.org>
44661
44662         Add isinf module.
44663         * lib/isinf.c: New file.
44664         * lib/math.in.h: Define isinf macro if we have decided to replace
44665         it.
44666         * m4/isinf.m4: New file.
44667         * m4/math_h.m4: Initialize and substitute variables for isinf
44668         module.
44669         * modules/isinf: New file.
44670         * modules/isinf-tests: New file.
44671         * modules/math: Add substitutions for new module.
44672         * tests/test-isinf.c: New file.
44673         * doc/posix-functions/isinf.texi: Mention new module.
44674         * MODULES.html.sh: Mention new module.
44675
44676 2008-07-14  Ben Pfaff  <blp@gnu.org>
44677
44678         Factor out some macros for use by additional modules.
44679         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
44680         exponentf.m4.
44681         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
44682         exponentd.m4.
44683         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
44684         file exponentl.m4.
44685         * m4/exponentf.m4: New file.
44686         * m4/exponentd.m4: New file.
44687         * m4/exponentl.m4: New file.
44688         * modules/isnanf: Use new file m4/exponentf.m4.
44689         * modules/isnand: Use new file m4/exponentd.m4.
44690         * modules/isnanl: Use new file m4/exponentl.m4.
44691
44692 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
44693
44694         mktime.c: normalize tp->tm_isdst value to -1/0/1.
44695         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
44696         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
44697         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
44698
44699         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
44700         readlink on platforms without PATH_MAX.
44701
44702 2008-07-21  Eric Blake  <ebb9@byu.net>
44703
44704         Warn, not fail, on stale version.
44705         * top/GNUmakefile (_curr-ver): Tone down previous patch.
44706
44707         Don't allow installation with stale devel version number.
44708         * top/GNUmakefile (_is-install-target): New macro.
44709         (_curr-ver): Forbid installation with stale version number.
44710
44711 2008-07-20  Bruno Haible  <bruno@clisp.org>
44712
44713         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
44714         TESTS_ENVIRONMENT.
44715         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
44716
44717 2008-07-20  Bruno Haible  <bruno@clisp.org>
44718
44719         * lib/c-stack.h (c_stack_action): Add documentation.
44720         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
44721
44722 2008-07-20  Bruno Haible  <bruno@clisp.org>
44723
44724         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
44725         * modules/readlink (License): Likewise.
44726
44727 2008-07-17  Eric Blake  <ebb9@byu.net>
44728
44729         * modules/c-stack (Link): Fix typo.
44730
44731         Make c-stack use libsigsegv, when available.
44732         * modules/c-stack (Depends-on): Add libsigsegv.
44733         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
44734         needed.
44735         * lib/c-stack.c (SIGSTKSZ): Define fallback.
44736         (segv_handler, overflow_handler, c_stack_action)
44737         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
44738         implementation when libsigsegv is available, but only when using
44739         the library is necessary.
44740         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
44741         comment, explaining why XSI check fails on Linux.
44742         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
44743         * tests/test-c-stack2.sh: Tweak skip message.
44744         * NEWS: Document new link-time requirements.
44745
44746 2008-07-16  Eric Blake  <ebb9@byu.net>
44747
44748         c-stack: Expose false positives when not using libsigsegv.
44749         * modules/c-stack-tests (Files): Expand test.
44750         * tests/test-c-stack.c (main): Add means to conditionally trigger
44751         non-overflow SIGSEGV.
44752         * tests/test-c-stack2.sh: New file.
44753
44754 2008-07-14  Bruno Haible  <bruno@clisp.org>
44755
44756         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
44757         Reported by Eric Blake.
44758
44759 2008-07-14  Sam Steingold  <sds@gnu.org>
44760             Bruno Haible  <bruno@clisp.org>
44761
44762         New module libsigsegv.
44763         * modules/libsigsegv: New file.
44764         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
44765         modifications.
44766         * MODULES.html.sh (Signal handling): New section.
44767
44768 2008-07-14  Bruno Haible  <bruno@clisp.org>
44769
44770         * modules/unictype/ctype-* (Description): Add the word "function".
44771         Improves the resulting doc in MODULES.html.
44772
44773 2008-07-12  Ben Pfaff  <blp@gnu.org>
44774
44775         Add longlong module.
44776         * modules/longlong: New file.
44777
44778 2008-07-12  Bruno Haible  <bruno@clisp.org>
44779
44780         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
44781         to empty.
44782
44783 2008-07-10  Ben Pfaff  <blp@gnu.org>
44784
44785         Add isnan module.
44786         * doc/posix-functions/isnan.texi: Mention new module.
44787         * lib/math.in.h: Define isnan macro if we have decided to replace
44788         it.
44789         * m4/isnan.m4: New file.
44790         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
44791         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
44792         also.
44793         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
44794         redundancy.
44795         * m4/math_h.m4: Initialize and substitute variables for isnan
44796         module.
44797         * modules/isnan: New file.
44798         * modules/isnan-tests: New file.
44799         * modules/math: Add substitutions for new module.
44800         * tests/test-isnan.c: New file.
44801         * MODULES.html.sh: Mention new module.
44802
44803 2008-07-10  Ben Pfaff  <blp@gnu.org>
44804
44805         Add isnanf module.
44806         * lib/isnanf.m4: New file.
44807         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
44808         (gl_HAVE_ISNANF_IN_LIBM): New macro.
44809         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
44810         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
44811         * modules/isnanf: New file.
44812         * modules/isnanf-tests: New file.
44813         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
44814         files.
44815         * tests/test-isnanf-nolibm.c: factored most of its contents into
44816         new file tests/test-isnanf.h.
44817         * tests/test-isnanf.h: New file.
44818         * tests/test-isnanf.c: New file.
44819         * MODULES.html.sh: Mention new module.
44820         * doc/glibc-functions/isnanf.texi: Mention new module.
44821
44822 2008-07-10  Ben Pfaff  <blp@gnu.org>
44823
44824         Add isnand module.
44825         * lib/isnand.h: New file.
44826         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
44827         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
44828         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
44829         functionality also.
44830         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
44831         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
44832         (gl_HAVE_ISNAND_IN_LIBM): New macro.
44833         * modules/isnand: New file.
44834         * modules/isnand-tests: New file.
44835         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
44836         files.
44837         * tests/test-isnand-nolibm.c: factored most of its contents into
44838         new file tests/test-isnand.h.
44839         * tests/test-isnand.h: New file.
44840         * tests/test-isnand.c: New file.
44841         * MODULES.html.sh: Mention new module.
44842
44843 2008-07-10  Ben Pfaff  <blp@gnu.org>
44844
44845         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
44846         * lib/isnand.h: Rename lib/isnand-nolibm.h.
44847         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
44848         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
44849         * modules/isnanf-nolibm: Update references to renamed files.
44850         * modules/isnand-nolibm: Likewise.
44851         * modules/isnanf-nolibm-tests: Likewise.
44852         * modules/isnand-nolibm-tests: Likewise.
44853         * lib/frexp.c: Likewise.
44854         * lib/isfinite.c: Likewise.
44855         * lib/signbitd.c: Likewise.
44856         * lib/signbitf.c: Likewise.
44857         * lib/vasnprintf.c: Likewise.
44858         * tests/test-ceilf1.c: Likewise.
44859         * tests/test-ceilf2.c: Likewise.
44860         * tests/test-floorf1.c: Likewise.
44861         * tests/test-floorf2.c: Likewise.
44862         * tests/test-frexp.c: Likewise.
44863         * tests/test-round1.c: Likewise.
44864         * tests/test-round2.c: Likewise.
44865         * tests/test-roundf1.c: Likewise.
44866         * tests/test-strtod.c: Likewise.
44867         * tests/test-trunc1.c: Likewise.
44868         * tests/test-trunc2.c: Likewise.
44869         * tests/test-truncf1.c: Likewise.
44870         * tests/test-truncf2.c: Likewise.
44871         * NEWS: Mention the renamed header files.
44872
44873 2008-07-11  Jim Meyering  <meyering@redhat.com>
44874
44875         vc-list-files: make the last-resort awk code more portable
44876         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
44877         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
44878         does not support it.
44879
44880 2008-07-10  Eric Blake  <ebb9@byu.net>
44881
44882         Work with tar's bootstrap.
44883         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
44884         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
44885         an m4 comment.
44886
44887 2008-07-09  Jim Meyering  <meyering@redhat.com>
44888
44889         posix-shell.m4: fix typo that made this test malfunction
44890         * m4/posix-shell.m4: Remove capitalization in variable name.
44891
44892 2008-07-08  Bruno Haible  <bruno@clisp.org>
44893
44894         * m4/onceonly.m4: Update comments.
44895         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44896
44897 2008-07-04  Jim Meyering  <meyering@redhat.com>
44898
44899         * users.txt: Add vc-dwim.
44900         (bison, coreutils): Use the gitweb URL.
44901
44902 2008-07-03  Jim Meyering  <meyering@redhat.com>
44903
44904         * users.txt: Add libffcall.  From Sam Steingold.
44905
44906 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
44907
44908         getdate.y: do not ignore TZ with relative day, month or year offset
44909         * lib/getdate.y (get_date): Move the tz-handling block to follow the
44910         relative-date-handling, since otherwise, the latter would clobber the
44911         sole output (an updated Start value) of the tz-handling block.
44912         * tests/test-getdate.c: Tests for the fix
44913
44914 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44915
44916         Recognize 'foo_LIBRARIES += libgnu.a'.
44917         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
44918         makefile snippet has already specified an installation location,
44919         also using '+='.
44920
44921 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
44922
44923         getdate.y: factor out common actions
44924         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
44925         Use them in place of open-coded actions.
44926
44927 2008-07-01  Simon Josefsson  <simon@josefsson.org>
44928
44929         Add self-test for getdate module.
44930         * modules/getdate-tests: New file.
44931         * tests/test-getdate.c: New file.
44932
44933 2008-06-29  Bruno Haible  <bruno@clisp.org>
44934
44935         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
44936         .gitignore.
44937         Reported by Sylvain Beucler <beuc@beuc.net>.
44938
44939 2008-06-29  Bruno Haible  <bruno@clisp.org>
44940
44941         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
44942         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
44943
44944 2008-06-29  Bruno Haible  <bruno@clisp.org>
44945
44946         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
44947         EXTRA_DIST.
44948         Reported by Sylvain Beucler <beuc@beuc.net>.
44949
44950 2008-06-26  Jim Meyering  <meyering@redhat.com>
44951
44952         make several modules depend on the "open" module
44953         This provides slightly increased consistency when opening-for-write
44954         the name of a non-directory spelled with a trailing slash.
44955         * modules/chdir-safer: Likewise.
44956         * modules/chown: Likewise.
44957         * modules/clean-temp: Likewise.
44958         * modules/copy-file: Likewise.
44959         * modules/fchdir: Likewise.
44960         * modules/fcntl-safer: Likewise.
44961         * modules/pipe: Likewise.
44962         * modules/utime: Likewise.
44963         Prompted by Eric Blake and Bruno Haible.
44964
44965 2008-06-24  Andreas Schwab  <schwab@suse.de>
44966
44967         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
44968         literals can be used as initializers for global variables.
44969
44970 2008-06-23  Eric Blake  <ebb9@byu.net>
44971
44972         Make gnulib-cache.m4 easier to diff.
44973         * gnulib-tool (func_import): Allow newlines when reading cached
44974         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
44975
44976 2008-06-23  Bruno Haible  <bruno@clisp.org>
44977
44978         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
44979         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
44980         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
44981         m4/signalblocking.m4.
44982         (gl_PREREQ_SIGACTION): Don't invoke it.
44983         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
44984         gl_PREREQ_SIG_HANDLER_H.
44985         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
44986         Don't check for sigaction here.
44987
44988 2008-06-23  Bruno Haible  <bruno@clisp.org>
44989
44990         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
44991         (install_handlers): Don't set the SA_RESETHAND flag.
44992
44993 2008-06-23  Bruno Haible  <bruno@clisp.org>
44994
44995         * m4/sigaction.m4: Comment fixes.
44996         * lib/signal.in.h: Likewise.
44997
44998 2008-06-23  Eric Blake  <ebb9@byu.net>
44999
45000         Fix typo.
45001         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
45002
45003         Avoid SA_ namespace.
45004         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
45005         Reported by Ralf Wildenhues.
45006
45007         Avoid test failure due to SA_RESTORER.
45008         * tests/test-sigaction.c (SA_MASK): New macro.
45009         (main): Avoid failing due to extension flags being set.
45010         Reported by Jim Meyering.
45011
45012         Revert use of sig-handler.h in sigprocmask.c.
45013         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
45014         it requires the existence of struct sigaction.
45015         * lib/sigprocmask.c (handler_t): Restore typedef.
45016         (rpl_signal, old_handlers): Use local type.
45017
45018 2008-06-22  Bruno Haible  <bruno@clisp.org>
45019
45020         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
45021         conditionally.
45022         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45023
45024 2008-06-22  Bruno Haible  <bruno@clisp.org>
45025
45026         * doc/posix-functions/siginterrupt.texi: Move note.
45027
45028         * lib/signal.in.h (SA_RESTART): New macro.
45029         * lib/sigaction.c: Update comment.
45030
45031         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
45032
45033         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
45034         (gl_PREREQ_SIGPROCMASK): Invoke it.
45035         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
45036
45037         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
45038
45039         * lib/sigprocmask.c: Update a comment.
45040
45041 2008-06-21  Eric Blake  <ebb9@byu.net>
45042
45043         Use sigaction module rather than signal().
45044         * modules/c-stack (Depends-on): Add sigaction.
45045         * modules/fatal-signal (Depends-on): Likewise.
45046         * modules/nanosleep (Depends-on): Likewise.
45047         * modules/sigprocmask (Files): Add sig-handler.h.
45048         * modules/sigaction (Files): Likewise.
45049         * lib/sig-handler.h (get_handler): New file, suggested by Paul
45050         Eggert.
45051         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
45052         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
45053         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
45054         (init_fatal_signals): Likewise.
45055         * lib/nanosleep.c (rpl_nanosleep): Likewise.
45056         (siginterrupt): Delete fallback.
45057         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
45058         instead.
45059         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
45060         siginterrupt.
45061
45062         New module sigaction, for mingw.
45063         * modules/sigaction: New module...
45064         * modules/sigaction-tests: ...and its test.
45065         * m4/sigaction.m4: New file.
45066         * lib/sigaction.c: Likewise.
45067         * tests/test-sigaction.c: Likewise.
45068         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
45069         * modules/signal (Makefile.am): Likewise.
45070         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
45071         needed.
45072         * doc/posix-headers/signal.texi (signal.h): Mention provided
45073         types.
45074         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
45075         that sigaction is preferable.
45076         * doc/posix-functions/sigaction.texi (sigaction): Mention new
45077         module.
45078         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45079         sigaction.
45080
45081         Improve robustness of sigprocmask by overriding signal.
45082         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
45083         is in use.
45084         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
45085         (SIGKILL, SIGSTOP): Provide fallbacks.
45086         (rpl_signal): Implement.
45087         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
45088         signal can be called inside handlers.
45089
45090         Fix nanosleep module on mingw.
45091         * modules/nanosleep (Depends-on): Add sys_select.
45092         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
45093
45094         Fix licensing of sigprocmask.
45095         * modules/raise (License): Relicense as LGPL.
45096
45097 2008-06-21  Bruno Haible  <bruno@clisp.org>
45098
45099         * lib/propername.c (proper_name_utf8): Don't use the transliterated
45100         result if it contains question marks.
45101         Reported by Michael Geng <linux@michaelgeng.de>.
45102
45103 2008-06-19  Bruno Haible  <bruno@clisp.org>
45104
45105         Fix CVS-ism.
45106         * doc/gnulib.texi: Include updated-stamp.texi.
45107         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
45108         (updated-stamp.texi): New rule.
45109         (gnulib.info): Depend on it.
45110         * doc/.gitignore: Add updated-stamp.texi.
45111         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
45112
45113 2008-06-19  Bruno Haible  <bruno@clisp.org>
45114
45115         * doc/Makefile (gnulib.info): Update and simplify dependencies.
45116         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45117
45118 2008-06-19  Eric Blake  <ebb9@byu.net>
45119
45120         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
45121         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
45122         Reported by Stepan Kasal.
45123
45124 2008-06-18  Bruno Haible  <bruno@clisp.org>
45125
45126         * lib/fatal-signal.c (init_fatal_signals): Add comment.
45127         Reported by Eric Blake.
45128
45129 2008-06-18  Eric Blake  <ebb9@byu.net>
45130
45131         Work around cygwin 1.5.25 strsignal bug.
45132         * tests/test-strsignal.c: Allow for const char *.
45133         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
45134
45135 2008-06-18  Simon Josefsson  <simon@josefsson.org>
45136
45137         * users.txt: Update URL to article and add author/date
45138         information.
45139
45140 2008-06-17  Bruno Haible  <bruno@clisp.org>
45141
45142         New macro gl_DISABLE_THREADS.
45143         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
45144         if the user did not pass --enable-threads or --disable-threads option.
45145         (gl_DISABLE_THREADS): New macro.
45146         Reported by Eric Blake <ebb9@byu.net>.
45147
45148 2008-06-17  Bruno Haible  <bruno@clisp.org>
45149
45150         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
45151         when the macro ignores it.
45152         Based on a patch by Eric Blake <ebb9@byu.net>.
45153
45154 2008-06-17  Bruno Haible  <bruno@clisp.org>
45155
45156         * modules/tls (License): Change to LGPLv2+.
45157         Reported by Eric Blake.
45158
45159 2008-06-17  Eric Blake  <ebb9@byu.net>
45160
45161         Simplify c-stack prerequisites.
45162         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
45163         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
45164         no longer requires <ucontext.h> to exist.  Optimize setrlimit
45165         check.
45166         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
45167         <sys/resource.h>.
45168
45169         Move c-stack test into testsuite.
45170         * modules/c-stack-tests: New file.
45171         * lib/c-stack.c [DEBUG]: Move test program...
45172         * tests/test-c-stack.c: ...into this new file.  Skip rather than
45173         fail test if sigaltstack is lacking.
45174         * tests/test-c-stack.sh: New driver file.
45175
45176 2008-06-16  Eric Blake  <ebb9@byu.net>
45177
45178         Use raise module consistently.
45179         * modules/fatal-signal (Depends-on): Add raise.
45180         * modules/sigprocmask (Depends-on): Likewise.
45181         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
45182         * lib/sigprocmask.c (sigprocmask): Likewise.
45183         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
45184         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
45185
45186         Fix compliance bug in sigpending.
45187         * lib/sigprocmask.c (sigpending): Return pending array via
45188         parameter, not return value.
45189
45190 2008-06-14  Eric Blake  <ebb9@byu.net>
45191
45192         Improve obstack-printf test code.
45193         * tests/test-obstack-printf.c (test_function): Fix comment, and
45194         simplify usage of obstack_* in macros.  Add a test for coverage.
45195         Reported by Bruno Haible.
45196
45197 2008-06-14  Bruno Haible  <bruno@clisp.org>
45198
45199         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
45200         array size as a constant, not as a const variable.
45201         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
45202         AC_USE_SYSTEM_EXTENSIONS.
45203         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
45204         Test whether the obstack_printf function actually exists.
45205         * modules/obstack-printf (Depends-on): Add extensions.
45206         (Include): Remove obstack.h.
45207         * modules/obstack-printf-posix (Depends-on): Add extensions.
45208         (Include): Remove obstack.h.
45209
45210 2008-06-13  Eric Blake  <ebb9@byu.net>
45211
45212         Add obstack-printf and obstack-printf-posix modules.
45213         * modules/obstack-printf: New file.
45214         * modules/obstack-printf-posix: Likewise.
45215         * MODULES.html.sh (Misc): Mention them.
45216         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
45217         Likewise.
45218         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
45219         Likewise.
45220         * modules/stdio (Makefile.am): Accomodate new modules.
45221         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45222         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
45223         Declare.
45224         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
45225         functions.
45226         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
45227         (gl_REPLACE_OBSTACK_PRINTF): New macros
45228         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
45229         * tests/test-obstack-printf.c: New file.
45230         * modules/obstack-printf-tests: Likewise.
45231         * modules/obstack-printf-posix-tests: Likewise.
45232
45233 2008-06-11  Bruno Haible  <bruno@clisp.org>
45234
45235         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
45236         * lib/open.c: Include errno.h.
45237         (open): Fail when attempting to write to a file that has a trailing
45238         slash.
45239         * tests/test-open.c (main): Test against trailing slash bug.
45240         * doc/posix-functions/open.texi: Mention the trailing slash bug.
45241
45242 2008-06-10  Bruno Haible  <bruno@clisp.org>
45243
45244         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
45245         for $? to work inside the trap command, with various /bin/sh-s.
45246         * tests/test-vc-list-files-cvs.sh: Likewise.
45247
45248 2008-06-10  Bruno Haible  <bruno@clisp.org>
45249
45250         * lib/acl-internal.h: Don't include gettext.h here.
45251         * lib/set-mode-acl.c: Include gettext.h here.
45252         * lib/copy-acl.c: Likewise.
45253
45254 2008-06-10  Bruno Haible  <bruno@clisp.org>
45255
45256         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
45257         * lib/wait-process.c (wait_subprocess): Likewise.
45258         * lib/execute.h (execute): Add termsigp argument.
45259         * lib/execute.c (execute): Likewise.
45260         * lib/csharpcomp.c (compile_csharp_using_pnet,
45261         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
45262         * lib/csharpexec.c (execute_csharp_using_pnet,
45263         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
45264         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
45265         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
45266         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
45267         is_jikes_present): Update.
45268         * lib/javaexec.c (execute_java_class): Update.
45269         * lib/javaversion.c (execute_and_read_line): Update.
45270         * NEWS: Document the changes.
45271         Reported by Eric Blake.
45272
45273 2008-06-10  Eric Blake  <ebb9@byu.net>
45274
45275         Add missing include.
45276         * tests/test-strstr.c (includes): Add <signal.h>.
45277         * tests/test-strcasestr.c (includes): Likewise.
45278         * tests/test-memmem.c (includes): Likewise.
45279
45280 2008-06-10  Bruno Haible  <bruno@clisp.org>
45281
45282         * lib/wait-process.c (wait_subprocess): Add an assertion.
45283
45284 2008-06-10  Bruno Haible  <bruno@clisp.org>
45285
45286         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
45287
45288 2008-06-10  Bruno Haible  <bruno@clisp.org>
45289
45290         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
45291         using alarm().
45292         * tests/test-strcasestr.c (main): Likewise.
45293         * tests/test-strstr.c (main): Likewise.
45294
45295 2008-06-09  Bruno Haible  <bruno@clisp.org>
45296
45297         Work around the Solaris 10 ACE ACLs ABI change.
45298         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
45299         declare if ACL_NO_TRIVIAL is present.
45300         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
45301         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
45302         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
45303         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
45304         define if ACL_NO_TRIVIAL is present.
45305         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
45306         and use the current ABI.
45307         (file_has_acl): Use same #if condition as elsewhere.
45308         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
45309         in use, and use the current ABI.
45310         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
45311         Reported by Jim Meyering.
45312
45313 2008-06-09  Eric Blake  <ebb9@byu.net>
45314
45315         Work around environments that (stupidly) ignore SIGALRM.
45316         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
45317         before using alarm().
45318         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45319         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
45320         Reported by Ian Beckwith <ianb@erislabs.net>.
45321
45322         Produce autobuild blurb earlier in log.
45323         * modules/autobuild (configure.ac-early): Move AB_INIT here.
45324
45325 2008-06-09  Jim Meyering  <meyering@redhat.com>
45326         and OndÅ™ej Vašík  <ovasik@redhat.com>
45327
45328         utimens.c: correct kernel bug work-around
45329         OndÅ™ej Vašík found that the invalid return value of 280 indicates
45330         failure, not success, and the kernel bug we're trying to work
45331         around affects not just the utimensat call, but also the fallback
45332         futimens call.
45333         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
45334         not success.
45335         [HAVE_FUTIMENS]: Use the same work-around, here.
45336
45337 2008-06-09  Jim Meyering  <meyering@redhat.com>
45338
45339         add more guards around definition of ACE_-related code
45340         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
45341         ALLOW and ACE_OWNER are also defined.
45342
45343 2008-06-08  Bruno Haible  <bruno@clisp.org>
45344
45345         * lib/acl-internal.h: Add me as co-author.
45346         * lib/file-has-acl.c: Likewise.
45347         * lib/set-mode-acl.c: Likewise.
45348         * lib/copy-acl.c: Likewise.
45349
45350 2008-06-08  Bruno Haible  <bruno@clisp.org>
45351
45352         Add support for AIX ACLs.
45353         * lib/acl-internal.h (acl_nontrivial): New declaration.
45354         * lib/file-has-acl.c (acl_nontrivial): New function.
45355         (file_has_acl): Add implementation using AIX 4 ACL API.
45356         * lib/set-mode-acl.c (qset_acl): Likewise.
45357         * lib/copy-acl.c (qcopy_acl): Likewise.
45358
45359 2008-06-08  Bruno Haible  <bruno@clisp.org>
45360
45361         Add support for HP-UX ACLs.
45362         * lib/acl-internal.h (acl_nontrivial): New declaration.
45363         * lib/file-has-acl.c (acl_nontrivial): New function.
45364         (file_has_acl): Add implementation using HP-UX 11 ACL API.
45365         * lib/set-mode-acl.c (qset_acl): Likewise.
45366         * lib/copy-acl.c (qcopy_acl): Likewise.
45367
45368 2008-06-08  Bruno Haible  <bruno@clisp.org>
45369
45370         Add support for Cygwin ACLs.
45371         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
45372         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
45373         the chmod_or_fchmod call.
45374         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
45375
45376 2008-06-08  Bruno Haible  <bruno@clisp.org>
45377
45378         Fix bug with setuid modes in Solaris 10+ code.
45379         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
45380         succeeded, when the mode contains some special bits.
45381
45382 2008-06-08  Bruno Haible  <bruno@clisp.org>
45383
45384         Add support for Solaris 7..10 ACLs.
45385         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
45386         declarations.
45387         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
45388         functions.
45389         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
45390         * lib/set-mode-acl.c (qset_acl): Likewise.
45391         * lib/copy-acl.c (qcopy_acl): Likewise.
45392
45393 2008-06-08  Bruno Haible  <bruno@clisp.org>
45394
45395         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
45396         declaration.
45397         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
45398         (acl_access_nontrivial): Remove MacOS X case.
45399         (file_has_acl): Use acl_extended_nontrivial.
45400         * lib/copy-acl.c (qcopy_acl): Likewise.
45401
45402 2008-06-08  Bruno Haible  <bruno@clisp.org>
45403
45404         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
45405
45406 2008-06-08  Jim Meyering  <meyering@redhat.com>
45407
45408         * modules/acl (Maintainer): Add Bruno Haible.
45409
45410 2008-06-07  Bruno Haible  <bruno@clisp.org>
45411
45412         Improve support for Tru64 ACLs.
45413         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
45414         ACL on OSF/1.
45415
45416 2008-06-07  Bruno Haible  <bruno@clisp.org>
45417
45418         Add support for MacOS X ACLs.
45419         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
45420         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
45421         * lib/set-mode-acl.c (qset_acl): Likewise.
45422         * lib/copy-acl.c (qcopy_acl): Likewise.
45423
45424 2008-06-07  Bruno Haible  <bruno@clisp.org>
45425
45426         Fix memory leak introduced on 2008-05-22.
45427         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
45428         use.
45429
45430 2008-06-07  Bruno Haible  <bruno@clisp.org>
45431
45432         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
45433         to construct an empty ACL.
45434
45435 2008-06-07  Bruno Haible  <bruno@clisp.org>
45436
45437         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
45438         precisely.
45439         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
45440
45441 2008-06-07  Bruno Haible  <bruno@clisp.org>
45442
45443         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
45444         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
45445
45446 2008-06-07  Bruno Haible  <bruno@clisp.org>
45447
45448         * doc/posix-functions/_setjmp.texi: Explain the use of this function
45449         regardless of POSIX.
45450         * doc/posix-functions/_longjmp.texi: Likewise.
45451         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
45452         SystemV platform in this case.
45453
45454 2008-06-06  Eric Blake  <ebb9@byu.net>
45455
45456         Document abort() bugs.
45457         * doc/posix-functions/abort.texi (abort): Mention anomalies.
45458
45459         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
45460         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
45461         sigsetjmp.
45462         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
45463         siglongjmp, but only as a macro.
45464         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
45465         is obsolete.
45466         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
45467
45468         Tweak documentation to cover cygwin argz bugs.
45469         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
45470         argz bug fix; no code change needed since no cygwin releases
45471         occurred between the last fix and the bug being tested.
45472         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
45473         module and recently fixed cygwin bugs.
45474         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
45475         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
45476         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
45477         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
45478         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
45479         Likewise.
45480         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
45481         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
45482         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
45483         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
45484         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
45485         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
45486         Likewise.
45487
45488         Avoid gcc warning on cygwin.
45489         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
45490         !ACL_NO_TRIVIAL]: Avoid unused variable.
45491
45492 2008-06-05  Eric Blake  <ebb9@byu.net>
45493
45494         Be tolerant of UNKNOWN version in gnulib-tool test dir.
45495         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
45496         git-version-gen fails to come up with a version.
45497         Reported by Simon Josefsson.
45498
45499 2008-06-05  Jim Meyering  <meyering@redhat.com>
45500             Paul Eggert  <eggert@cs.ucla.edu>
45501
45502         utimens.c: work around a probable Linux kernel bug
45503         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
45504         appears to be a kernel bug that causes utimensat to return 280
45505         instead of 0, indicating success.
45506
45507 2008-06-04  Bruno Haible  <bruno@clisp.org>
45508
45509         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
45510         2008-06-01 commit.
45511
45512 2008-06-04  Bruno Haible  <bruno@clisp.org>
45513
45514         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
45515         * lib/file-has-acl.c (acl_access_nontrivial): New function.
45516         (file_has_acl): Use it. Save errno afterwards.
45517         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
45518
45519 2008-06-03  Bruno Haible  <bruno@clisp.org>
45520
45521         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
45522         draft code. Simplify #ifs.
45523         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
45524         Put Solaris code after POSIX-draft code. Fix comments regarding
45525         Solaris 10, HP-UX. Mention Cygwin.
45526         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
45527
45528 2008-06-03  Eric Blake  <ebb9@byu.net>
45529
45530         Provide fallback for older kernels.
45531         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
45532         Provide runtime fallback if kernel lacks support.
45533         Reported by Mike Frysinger.
45534
45535 2008-06-02  Bruno Haible  <bruno@clisp.org>
45536
45537         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
45538         it exists.
45539
45540 2008-06-02  Bruno Haible  <bruno@clisp.org>
45541
45542         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
45543         * lib/copy-acl.c (qcopy_acl): Update comment.
45544
45545 2008-06-02  Bruno Haible  <bruno@clisp.org>
45546
45547         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
45548         like ACL APIs.
45549
45550 2008-06-02  Bruno Haible  <bruno@clisp.org>
45551
45552         * tests/test-file-has-acl.sh: Use different code for Cygwin.
45553         * tests/test-set-mode-acl.sh: Likewise.
45554         * tests/test-copy-acl.sh: Likewise.
45555         * tests/test-copy-file.sh: Likewise.
45556
45557 2008-06-02  Bruno Haible  <bruno@clisp.org>
45558
45559         * tests/test-file-has-acl.sh: Remove unused code.
45560
45561 2008-06-01  Bruno Haible  <bruno@clisp.org>
45562
45563         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
45564         (copy_acl): Just a wrapper around qcopy_acl that emits the error
45565         messages.
45566         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
45567
45568 2008-06-01  Bruno Haible  <bruno@clisp.org>
45569
45570         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
45571         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
45572         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
45573         APIs.
45574         * modules/acl-tests (configure.ac): Remove tests now contained in
45575         m4/acl.m4.
45576
45577 2008-06-02  Jim Meyering  <meyering@redhat.com>
45578
45579         announce-gen: use a better key-server host name
45580         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
45581         it may be more consistently reliable.  Suggested by Werner Koch
45582         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
45583
45584 2008-06-01  Bruno Haible  <bruno@clisp.org>
45585
45586         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
45587         Reported by Voroskoi Andras <voroskoi@gmail.com>.
45588
45589 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
45590
45591         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
45592
45593 2008-06-01  Bruno Haible  <bruno@clisp.org>
45594
45595         New ACL tests.
45596         * tests/test-file-has-acl.sh: New file.
45597         * tests/test-file-has-acl.c: New file.
45598         * tests/test-set-mode-acl.sh: New file.
45599         * tests/test-set-mode-acl.c: New file.
45600         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
45601         * tests/test-copy-acl.c: New file.
45602         * modules/acl-tests: New file, based on modules/copy-file-tests.
45603         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
45604         (Depends-on): Add acl-tests.
45605         (configure.ac): Remove checks.
45606         (Makefile.am): Don't create test-sameacls program here any more.
45607
45608 2008-06-01  Bruno Haible  <bruno@clisp.org>
45609
45610         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
45611         * tests/test-sameacls.c: Include progname.h.
45612         (main): Invoke set_program_name. Portability fixes for MacOS X,
45613         Solaris, HP-UX.
45614
45615 2008-06-01  Bruno Haible  <bruno@clisp.org>
45616
45617         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
45618         function.
45619         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
45620
45621 2008-06-01  Bruno Haible  <bruno@clisp.org>
45622
45623         * modules/rpmatch (Depends-on): Add strdup.
45624
45625 2008-06-01  Bruno Haible  <bruno@clisp.org>
45626
45627         * lib/pipe.c: Include unistd-safer.h.
45628         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
45629         * modules/pipe (Depends-on): Add unistd-safer.
45630
45631 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45632
45633         * modules/autobuild (configure.ac): Call AB_INIT.
45634
45635 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45636
45637         * tests/test-getaddrinfo.c: Don't print debug messages by default.
45638         Suggested by Bruno Haible <bruno@clisp.org>.
45639
45640 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45641
45642         * tests/test-base64.c: Cast size_t to unsigned long when invoking
45643         printf.  Use %lu instead of %d.  Reported by Bruno Haible
45644         <bruno@clisp.org>.
45645
45646 2008-05-29  Eric Blake  <ebb9@byu.net>
45647
45648         Prefer new POSIX 200x interfaces over futimesat.
45649         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
45650         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
45651         when available.
45652         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
45653
45654 2008-05-28  Bruno Haible  <bruno@clisp.org>
45655
45656         * modules/stpcpy (License): Change to LGPLv2+.
45657         Requested by David Lutterkort <dlutter@redhat.com>.
45658
45659 2008-05-27  Bruno Haible  <bruno@clisp.org>
45660
45661         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
45662         current mingw.
45663         Reported by Jose E. Marchesi <jemarch@gnu.org>.
45664
45665 2008-05-27  Bruno Haible  <bruno@clisp.org>
45666
45667         * modules/iconv_open (Link): New section, from module 'iconv'.
45668         * modules/striconv (Link): Likewise.
45669         * modules/striconveh (Link): Likewise.
45670         * modules/xstriconv (Link): Likewise.
45671         * modules/unicodeio (Link): Likewise.
45672         * modules/propername (Link): Likewise.
45673         Reported by Jim Meyering.
45674
45675 2008-05-26  Jim Meyering  <meyering@redhat.com>
45676
45677         sha256: do not artificially restrict buffer length to be < 2^32
45678         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
45679         uint32_t to size_t.
45680         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
45681         to match.
45682
45683         avoid unaligned access errors, e.g., on sparc
45684         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
45685         direct access through a possibly-unaligned uint64* pointer.
45686         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
45687         direct access through a possibly-unaligned uint32* pointer.
45688         Prompted by this patch from Tom "spot" Callaway:
45689         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
45690
45691         sha512.c: fix typo in comment
45692         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
45693
45694 2008-05-25  Bruno Haible  <bruno@clisp.org>
45695
45696         * lib/set-mode-acl.c: Renamed from lib/acl.c.
45697         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
45698         (Makefile.am): Update lib_SOURCES.
45699
45700 2008-05-25  Bruno Haible  <bruno@clisp.org>
45701
45702         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
45703
45704 2008-05-25  Jim Meyering  <meyering@redhat.com>
45705
45706         useless-if-before-free: freed expr may have white-space differences
45707         * build-aux/useless-if-before-free: Recognize cases in which the
45708         freed expression differs from the tested one in embedded white
45709         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
45710         $1 was used, so we can't make any regexp shy.  Improved tests now
45711         detect this.
45712
45713         useless-if-before-free: accept white space in the expression.
45714         * build-aux/useless-if-before-free: For now, any white space
45715         in the expression must be identical in the free argument.
45716
45717         useless-if-before-free: efficiency tweak
45718         * build-aux/useless-if-before-free: Make the expression-matching
45719         regexp "shy".
45720         Make the *outer* regexp shy, not the expr-matching one.
45721
45722         update code-in-comment to accept cast of free arg
45723         * build-aux/useless-if-before-free: Update regexp.
45724
45725 2008-05-25  Bruno Haible  <bruno@clisp.org>
45726
45727         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
45728         * modules/copy-file-tests (Files, Makefile.am): Update.
45729         * tests/test-copy-file.c (func_test_copy): Update.
45730
45731 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
45732
45733         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
45734
45735 2008-05-23  Bruno Haible  <bruno@clisp.org>
45736
45737         Improve support for ACLs on OSF/1.
45738         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
45739         Remove fallback for unknown flavors of ACLs.
45740
45741 2008-05-22  Bruno Haible  <bruno@clisp.org>
45742
45743         Add support for ACLs on OSF/1.
45744         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
45745         replacements.
45746         (acl_free_text): New macro fallback.
45747         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
45748         acl_free.
45749         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
45750         acl_free_text function. Require AC_C_INLINE.
45751
45752 2008-05-22  Bruno Haible  <bruno@clisp.org>
45753
45754         Make copy_acl work on MacOS X 10.5.
45755         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
45756         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
45757         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
45758         If MODE_INSIDE_ACL, don't assume that every system has the same text
45759         representation for ACLs as FreeBSD.
45760         * lib/copy-acl.c (copy_acl): Add support for platforms with
45761         !MODE_INSIDE_ACL.
45762         * lib/file-has-acl.c (file_has_acl): Likewise.
45763         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
45764         FreeBSD, MacOS X, or IRIX, respectively.
45765
45766 2008-05-22  Bruno Haible  <bruno@clisp.org>
45767
45768         * lib/acl.h: Don't include <sys/acl.h>.
45769         (GETACLCNT): Move fallback to lib/acl-internal.h.
45770         * lib/acl-internal.h: Include <sys/acl.h> here.
45771         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
45772
45773 2008-05-22  Bruno Haible  <bruno@clisp.org>
45774
45775         Split off copy_acl function to separate file.
45776         * lib/copy-acl.c: New file, extracted from lib/acl.c.
45777         * lib/acl.c (copy_acl): Moved function to separate file.
45778         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
45779         * modules/acl (Files): Add lib/copy-acl.c.
45780         (Makefiles.am): Augment lib_SOURCES.
45781
45782 2008-05-22  Bruno Haible  <bruno@clisp.org>
45783
45784         * modules/copy-file-tests: New file.
45785         * tests/test-copy-file.sh: New file.
45786         * tests/test-copy-file.c: New file.
45787         * tests/test-copy-file-sameacls.c: New file.
45788
45789 2008-05-22  Eric Blake  <ebb9@byu.net>
45790
45791         Avoid gcc warning.
45792         * tests/test-memcmp.c (main): Pass NULL indirectly.
45793
45794 2008-05-21  Bruno Haible  <bruno@clisp.org>
45795
45796         Add reference doc about ACLs.
45797         * doc/acl-resources.txt: New file.
45798         * doc/acl-cygwin.txt: New file.
45799
45800 2008-05-21  Bruno Haible  <bruno@clisp.org>
45801
45802         Avoid one more warning from gcc.
45803         * lib/vasnprintf.c (IF_LINT): Update comments.
45804         (VASNPRINTF): Use it also for the 'prefix' array initializer.
45805
45806 2008-05-21  Jim Meyering  <meyering@redhat.com>
45807
45808         avoid a warning from gcc
45809         * lib/vasnprintf.c (IF_LINT): Define.
45810         (scale10_round_decimal_long_double):
45811         Use it to avoid a "may be used uninitialized" warning.
45812         (scale10_round_decimal_double): Likewise.
45813
45814 2008-05-21  Simon Josefsson  <simon@josefsson.org>
45815
45816         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
45817         declared.
45818
45819 2008-05-20  Bruno Haible  <bruno@clisp.org>
45820
45821         * tests/test-memcmp.c (main): Test also the sign of the result. Test
45822         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
45823
45824 2008-05-20  Simon Josefsson  <simon@josefsson.org>
45825
45826         * modules/memcmp-tests: New file.
45827         * tests/test-memcmp.c: New file.
45828
45829 2008-05-19  Bruno Haible  <bruno@clisp.org>
45830
45831         * modules/propername (Notice, configure.ac): Put quoted "..." into
45832         --keyword option.
45833         * lib/propername.h: Update comments accordingly.
45834         Reported by Eric Blake.
45835
45836 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
45837
45838         * modules/getpass-gnu (Depends-on): Add fseeko.
45839
45840 2008-05-19  Simon Josefsson  <simon@josefsson.org>
45841
45842         * modules/base64-tests: New file.
45843
45844 2008-05-19  Bo Borgerson <gigabo@gmail.com>
45845
45846         * lib/base64.c (base64_decode_ctx): If a decode context structure
45847         was passed in use it to ignore newlines.  If a context structure
45848         was _not_ passed in, continue to treat newlines as garbage (this
45849         is the historical behavior).  Formerly base64_decode.
45850         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
45851         takes a decode context structure.
45852         * lib/base64.h (base64_decode): Macro for four-argument calls.
45853         (base64_decode_alloc): Likewise.
45854         * lib/base64.c (base64_decode_ctx): If a decode context structure
45855         was passed in use it to ignore newlines.  If a context structure
45856         was _not_ passed in, continue to treat newlines as garbage (this
45857         is the historical behavior).  Formerly base64_decode.
45858         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
45859         takes a decode context structure.
45860         * lib/base64.h (base64_decode): Macro for four-argument calls.
45861         (base64_decode_alloc): Likewise.
45862
45863 2008-05-19  Jim Meyering  <meyering@redhat.com>
45864
45865         avoid a warning from gcc
45866         * lib/trim.c (IF_LINT): Define.
45867         (trim2): Use it to avoid a "may be used uninitialized" warning.
45868
45869         Fix doc typo.
45870         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
45871
45872 2008-05-19  Bruno Haible  <bruno@clisp.org>
45873
45874         * doc/glibc-functions/getpass.texi: Document limits of other
45875         implementations.
45876
45877 2008-05-19  Simon Josefsson  <simon@josefsson.org>
45878             Bruno Haible <bruno@clisp.org>
45879
45880         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
45881
45882 2008-05-18  Bruno Haible  <bruno@clisp.org>
45883
45884         * modules/propername: New file, from GNU gettext.
45885         * lib/propername.h: New file, from GNU gettext.
45886         * lib/propername.c: New file, from GNU gettext.
45887         * MODULES.html.sh (Internationalization functions): Add propername.
45888
45889 2008-05-16  Jim Meyering  <meyering@redhat.com>
45890             Bruno Haible  <bruno@clisp.org>
45891
45892         Avoid some warnings from "gcc -Wshadow".
45893         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
45894
45895 2008-05-15  Eric Blake  <ebb9@byu.net>
45896
45897         Extend previous patch to cygwin 1.7.0.
45898         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
45899         fast implementation in cygwin >= 1.7.0.
45900         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45901         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45902
45903 2008-05-15  Bruno Haible  <bruno@clisp.org>
45904
45905         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
45906         implementation in glibc >= 2.9.
45907         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45908         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45909
45910 2008-05-15  Bruno Haible  <bruno@clisp.org>
45911
45912         * MODULES.html.sh (Internationalization functions): Remove linebreak.
45913         (Unicode string functions): Add unilbrk/*.
45914         Reported by Karl Berry.
45915
45916 2008-05-15  Eric Blake  <ebb9@byu.net>
45917
45918         Fix violation of <stdbool.h> replacement in regex.
45919         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
45920         * lib/regexec.c (re_search_internal): Likewise.
45921         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
45922
45923 2008-05-15  Jim Meyering  <meyering@redhat.com>
45924
45925         avoid distracting test output when git or cvs is not found
45926         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
45927         * tests/test-vc-list-files-git.sh: Likewise.
45928
45929 2008-05-15  Eric Blake  <ebb9@byu.net>
45930
45931         Glibc finally accepted the memmem speedup code, bugzilla #5514.
45932         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
45933         glibc version.
45934         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
45935         * doc/posix-functions/strstr.texi (strstr): Likewise.
45936         * lib/str-two-way.h (MAX): Sychronize with glibc.
45937
45938 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
45939
45940         * lib/regcomp.c (optimize_utf8): Add a note on why we test
45941         opr.ctx_type.
45942         (calc_first): Initialize constraint field.
45943         (duplicate_node_closure): Use it instead of special casing ANCHORS.
45944         Fix grammar.
45945         (duplicate_node): Merge constraint field for all node types.
45946         (calc_eclosure_iter): Look at constraint field for all node types.
45947         * lib/regex_internal.c (create_cd_newstate): Don't look at
45948         opr.ctx_type.
45949
45950 2008-05-14  Bruno Haible  <bruno@clisp.org>
45951
45952         Help GCC to do better code generation.
45953         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
45954         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
45955         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
45956         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
45957         Declare with attribute 'malloc' if supported.
45958
45959 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
45960
45961         use "echo STR|wc -c" rather than unportable "expr length STR"
45962         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
45963         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
45964
45965 2008-05-14  Jim Meyering  <meyering@redhat.com>
45966
45967         use dd ibs=$n count=1 ... rather than less-portable head -c$n
45968         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
45969         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
45970         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
45971         via Collin Lasse.
45972
45973 2008-05-14  Eric Blake  <ebb9@byu.net>
45974
45975         Avoid quadratic growth in gl_LIBSOURCES.
45976         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
45977         Suggested by Bruno Haible.
45978
45979         Test xmemdup0.
45980         * modules/xmemdup0-tests: New file.
45981         * tests/test-xmemdup0.c: Likewise.
45982
45983 2008-05-13  Eric Blake  <ebb9@byu.net>
45984
45985         Split xmemdup0 into its own module.
45986         * modules/xmemdup0: New file.
45987         * lib/xmemdup0.h: Likewise.
45988         * lib/xmemdup0.c: Likewise.
45989         * MODULES.html.sh (Memory management functions): Add xmemdup0.
45990         * lib/xalloc.h (xmemdup0): Remove.
45991         * lib/xmalloc.c (xmemdup0): Likewise.
45992
45993 2008-05-13  Eric Blake  <ebb9@byu.net>
45994             Bruno Haible  <bruno@clisp.org>
45995
45996         Reduce number of forks required during autoconf.
45997         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
45998         and gl_LIBSOURCES_DIR.
45999         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
46000         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
46001         m4_syscmd per file.
46002         <m4_foreach_w>: Move...
46003         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
46004
46005 2008-05-13  Eric Blake  <ebb9@byu.net>
46006
46007         * gnulib-tool: Fix various comment typos.
46008
46009 2008-05-12  Bruno Haible  <bruno@clisp.org>
46010
46011         Tailor the linebreaking algorithm.
46012         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
46013
46014 2008-05-12  Bruno Haible  <bruno@clisp.org>
46015
46016         Update to Unicode 5.0.0.
46017         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
46018         LBP_JV, LBP_JT. Redistribute values.
46019         (unilbrk_table): Change size.
46020         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
46021         Unicode TR#14 rev. 22.
46022         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
46023         LBP_JV, LBP_JT. Redistribute values.
46024         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
46025         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
46026         Update.
46027         * lib/unilbrk/lbrkprop1.h: Regenerated.
46028         * lib/unilbrk/lbrkprop2.h: Regenerated.
46029         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
46030         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
46031         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
46032         Likewise.
46033         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
46034         Likewise.
46035         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
46036         result.
46037         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
46038         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
46039         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
46040         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
46041         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
46042         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
46043
46044 2008-05-11  Bruno Haible  <bruno@clisp.org>
46045
46046         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
46047
46048 2008-05-11  Bruno Haible  <bruno@clisp.org>
46049
46050         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
46051         * modules/unilbrk/gen-lbrk: New file.
46052
46053 2008-05-11  Bruno Haible  <bruno@clisp.org>
46054
46055         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
46056         * m4/sha512.m4 (gl_SHA512): Likewise.
46057
46058 2008-05-11  Jim Meyering  <meyering@redhat.com>
46059
46060         New modules: crypto/sha256, crypto/sha512 (from coreutils)
46061         * modules/crypto/sha256: New file.
46062         * modules/crypto/sha512: Likewise.
46063         * lib/sha256.c: Likewise.
46064         * lib/sha256.h: Likewise.
46065         * lib/sha512.c: Likewise.
46066         * lib/sha512.h: Likewise.
46067         * lib/u64.h: Likewise.
46068         * m4/sha256.m4: Likewise.
46069         * m4/sha512.m4: Likewise.
46070         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
46071
46072 2008-05-10  Bruno Haible  <bruno@clisp.org>
46073
46074         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
46075         (Input/Output <stdio.h>): Add xprintf.
46076         (Signal handling <signal.h>): Add strsignal.
46077         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
46078         (Core language properties): Add func.
46079         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
46080         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
46081         strings.
46082         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
46083         (Input/output): New section.
46084         (File system functions): Add openat-die, stat-macros.
46085         (Networking functions): Add sockets.
46086         (Unicode string functions): Add unictype/*.
46087         (Support for building libraries and executables): Add gperf.
46088         (Support for building documentation): Add agpl-3.0.
46089         (Misc): Add nocrash.
46090
46091 2008-05-10  Bruno Haible  <bruno@clisp.org>
46092
46093         * modules/unictype/gen-ctype: New file.
46094
46095 2008-05-10  Jim Meyering  <meyering@redhat.com>
46096
46097         Make chdir-safer.c more efficient on a system with no symlinks.
46098         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
46099         also if ELOOP is zero.  Suggested by Bruno Haible.
46100
46101         Make chdir-safer.c slightly safer.
46102         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
46103         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
46104
46105         Avoid compile failure on systems without ELOOP (like mingw).
46106         * lib/chdir-safer.c (ELOOP): Define if not already defined.
46107         Reported by Bruno Haible.
46108
46109 2008-05-10  Bruno Haible  <bruno@clisp.org>
46110
46111         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
46112         (is_utf8_encoding): Use a case-insensitive comparison.
46113         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
46114         streq.
46115
46116 2008-05-10  Bruno Haible  <bruno@clisp.org>
46117
46118         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
46119         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
46120         * lib/unilbrk/ulc-common.h (iconv_string_length,
46121         iconv_string_keeping_offsets): Remove declarations.
46122         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
46123         Don't include <iconv.h>, streq.h, xsize.h.
46124         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
46125         conversion.
46126         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
46127         <iconv.h>, streq.h, xsize.h.
46128         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
46129         conversion.
46130         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
46131         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
46132         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
46133         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
46134
46135 2008-05-10  Bruno Haible  <bruno@clisp.org>
46136
46137         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
46138         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
46139
46140         * modules/unilbrk/u32-width-linebreaks-tests: New file.
46141         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
46142
46143         * modules/unilbrk/u16-width-linebreaks-tests: New file.
46144         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
46145
46146         * modules/unilbrk/u8-width-linebreaks-tests: New file.
46147         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
46148
46149         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
46150         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
46151
46152         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
46153         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
46154
46155         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
46156         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
46157
46158         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
46159         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
46160
46161 2008-05-10  Bruno Haible  <bruno@clisp.org>
46162
46163         Split up 'linebreak' module.
46164         * lib/unilbrk.h: New file, based on lib/linebreak.h.
46165         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
46166         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
46167         modifications.
46168         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
46169         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
46170         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
46171         lib/linebreak.c.
46172         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
46173         lib/linebreak.c.
46174         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
46175         lib/linebreak.c.
46176         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
46177         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
46178         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
46179         lib/linebreak.c.
46180         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
46181         lib/linebreak.c.
46182         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
46183         lib/linebreak.c.
46184         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
46185         lib/linebreak.c.
46186         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
46187         lib/linebreak.c.
46188         * modules/unilbrk/base: New file.
46189         * modules/unilbrk/tables: New file.
46190         * modules/unilbrk/u8-possible-linebreaks: New file.
46191         * modules/unilbrk/u16-possible-linebreaks: New file.
46192         * modules/unilbrk/u32-possible-linebreaks: New file.
46193         * modules/unilbrk/ulc-common: New file.
46194         * modules/unilbrk/ulc-possible-linebreaks: New file.
46195         * modules/unilbrk/u8-width-linebreaks: New file.
46196         * modules/unilbrk/u16-width-linebreaks: New file.
46197         * modules/unilbrk/u32-width-linebreaks: New file.
46198         * modules/unilbrk/ulc-width-linebreaks: New file.
46199         * lib/linebreak.h: Remove file.
46200         * lib/linebreak.c: Remove file.
46201         * m4/linebreak.m4: Remove file.
46202         * modules/linebreak: Remove file.
46203         * NEWS: Mention the changes.
46204
46205 2008-05-09  Eric Blake  <ebb9@byu.net>
46206
46207         Add xmemdup0.
46208         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
46209         implementation.
46210         * lib/xmalloc.c (xmemdup0): New C implementation.
46211
46212 2008-05-08  Bruno Haible  <bruno@clisp.org>
46213
46214         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
46215
46216 2008-05-07  Eric Blake  <ebb9@byu.net>
46217
46218         Support cross-compilation of <wctype.h>.
46219         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
46220         AC_CACHE_CHECK.
46221
46222 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
46223
46224         * build-aux/vc-list-files: Add support for bzr.
46225
46226 2008-05-03  Jim Meyering  <meyering@redhat.com>
46227
46228         avoid failed assertion with tight malloc
46229         * tests/test-getndelim2.c: Correct an off-by-one assertion.
46230
46231 2008-05-03  Simon Josefsson  <simon@josefsson.org>
46232
46233         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
46234         are needed from arpa/inet.h.
46235         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
46236         Reported by Bruno Haible.
46237
46238 2008-05-02  Jim Meyering  <meyering@redhat.com>
46239
46240         avoid compilation error on FreeBSD 6
46241         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
46242
46243 2008-05-01  Jim Meyering  <meyering@redhat.com>
46244
46245         useless-if-before-free: correct --help's exit status description
46246         * build-aux/useless-if-before-free (usage): Like grep, exit 0
46247         for one or more matches, etc.  Reported by Bruno Haible.
46248
46249         vc-list-files: make the stand-alone gnulib test work
46250         * modules/vc-list-files-tests (configure.ac):
46251         Define and AC_SUBST abs_aux_dir.
46252         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
46253         $(abs_top_srcdir) to each script and having each of them
46254         duplicate the work of setting PATH, set PATH here, using
46255         the new variable, abs_aux_dir instead.
46256         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
46257         * tests/test-vc-list-files-git.sh: Likewise.
46258         Reported by Bruno Haible.
46259
46260 2008-05-01  Bruno Haible  <bruno@clisp.org>
46261
46262         * lib/getndelim2.c (getndelim2): Fix newsize computation during
46263         reallocation. Rename 'done' to 'found_delimiter'.
46264
46265 2008-05-01  Jim Meyering  <meyering@redhat.com>
46266
46267         vc-list-files: accommodate /bin/sh like the one from Solaris 10
46268         * build-aux/vc-list-files: Use `...`, not $(...).
46269
46270 2008-04-30  Jim Meyering  <meyering@redhat.com>
46271
46272         add tests for vc-list-files
46273         * modules/vc-list-files-tests: New module.
46274         * tests/test-vc-list-files-cvs.sh: New file.
46275         * tests/test-vc-list-files-git.sh: New file.
46276
46277         avoid a warning from gcc
46278         * lib/getndelim2.c (IF_LINT): Define.
46279         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
46280
46281         vc-list-files: work properly with build-aux/cvsu, too
46282         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
46283         to all cvs-based clauses.
46284
46285         vc-list-files: work properly in the CVS+awk case, too
46286         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
46287
46288         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
46289         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
46290         take more than one file argument, so .  Add quotes, just in case $dir
46291         ever contains a shell meta-character.  Prompted by Soren Hansen in
46292         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
46293
46294 2008-04-29  Eric Blake  <ebb9@byu.net>
46295
46296         Optimize getndelim2 to use block operations when possible.
46297         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
46298         freadseek, and memchr2.
46299         * lib/getndelim2.c (getndelim2): Use them for block reads.
46300
46301 2008-04-29  Bruno Haible  <bruno@clisp.org>
46302
46303         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
46304         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46305         * modules/inet_ntop (Depends-on): Add extensions.
46306         * modules/inet_pton (Depends-on): Likewise.
46307         Reported by Simon Josefsson.
46308
46309 2008-04-29  Jim Meyering  <meyering@redhat.com>
46310
46311         When the is more than one match in a block, match all of them.
46312         * build-aux/useless-if-before-free: Iterate through each block
46313         until there are no more matches.
46314
46315         Fix broken useless-if-before-free script.
46316         * build-aux/useless-if-before-free: Fix typo: missing "?" after
46317         the expression to match cast of argument to free-like function.
46318
46319 2008-04-29  Eric Blake  <ebb9@byu.net>
46320
46321         Use new header.
46322         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
46323
46324 2008-04-29  Jim Meyering  <meyering@redhat.com>
46325
46326         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
46327         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
46328         by gnulib to exist and to declare e.g., inet_ntop.
46329         Don't include "inet_ntop.h", now removed.
46330
46331         * m4/arpa_inet_h.m4: Remove trailing blanks.
46332
46333 2008-04-29  Eric Blake  <ebb9@byu.net>
46334
46335         Silence valgrind on safe reads beyond potential array bounds.
46336         * lib/rawmemchr.valgrind: New file.
46337         * lib/strchrnul.valgrind: Likewise.
46338         * modules/rawmemchr (Files): Distribute new file.
46339         * modules/strchrnul (Files): Likewise.
46340         Suggested by Bruno Haible.
46341
46342 2008-04-29  Bruno Haible  <bruno@clisp.org>
46343
46344         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
46345         (inet_ntop, inet_pton): Change portability warning's wording.
46346         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
46347         Invoke gl_CHECK_NEXT_HEADERS.
46348         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
46349         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
46350         set ARPA_INET_H.
46351         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46352         * modules/arpa_inet (Description): No longer only for systems that
46353         lack it.
46354         (Depends-on): Add include_next.
46355         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
46356         HAVE_ARPA_INET_H.
46357
46358 2008-04-29  Jim Meyering  <meyering@redhat.com>
46359
46360         * modules/mkdir (License): Re-license as LGPLv2+.
46361
46362 2008-04-29  Bruno Haible  <bruno@clisp.org>
46363
46364         * modules/rawmemchr (Maintainer): Set to Eric.
46365         * modules/strchrnul (Maintainer): Likewise.
46366
46367 2008-04-29  Simon Josefsson  <simon@josefsson.org>
46368
46369         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
46370         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
46371
46372         * modules/arpa_inet (arpa/inet.h): Use them.
46373
46374 2008-04-28  Eric Blake  <ebb9@byu.net>
46375
46376         Test getndelim2.
46377         * modules/getndelim2-tests: New file.
46378         * tests/test-getndelim2.c: Likewise.
46379         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
46380         stream.
46381         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
46382
46383         * MODULES.html.sh: Document new module.
46384
46385 2008-04-20  Bruno Haible  <bruno@clisp.org>
46386
46387         * lib/c-stack.c (die): Use raise.
46388         * modules/c-stack (Depends-on): Add raise.
46389
46390 2008-04-28  Bruno Haible  <bruno@clisp.org>
46391
46392         Expect rpmatch to be declared.
46393         * lib/yesno.c (rpmatch): Remove declaration.
46394
46395         Declare rpmatch.
46396         * lib/stdlib.in.h (rpmatch): New declaration.
46397         * lib/rpmatch.c: Include <stdlib.h> first.
46398         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
46399         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
46400         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
46401         HAVE_RPMATCH.
46402         * modules/rpmatch (Depends-on): Add stdlib, extensions.
46403         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46404         (Include): Set to <stdlib.h>.
46405         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
46406         HAVE_RPMATCH.
46407         * NEWS: Document the change.
46408
46409 2008-04-28  Bruno Haible  <bruno@clisp.org>
46410
46411         Change rpmatch to use nl_langinfo when appropriate.
46412         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
46413         (N_): New macro.
46414         (localized_pattern): New function/macro.
46415         (try): Remove match, nomatch arguments. Copy the pattern into safe
46416         memory before caching it.
46417         (rpmatch): Use localized_pattern. Add translator comments.
46418         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
46419         Suggested by Eric Blake.
46420         * modules/rpmatch (Depends-on): Add stdbool.
46421
46422 2008-04-28  Eric Blake  <ebb9@byu.net>
46423
46424         Add rawmemchr module, matching glibc.
46425         * modules/string (Makefile.am): New indicator.
46426         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
46427         * lib/string.in.h (rawmemchr): Declare when appropriate.
46428         * modules/rawmemchr: New file.
46429         * m4/rawmemchr.m4: Likewise.
46430         * lib/rawmemchr.c: Likewise.
46431         * modules/rawmemchr-tests: Likewise.
46432         * tests/test-rawmemchr.c: Likewise.
46433         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
46434         module.
46435         * modules/strchrnul (Depends-on): Add rawmemchr.
46436         * lib/strchrnul.c (strchrnul): Optimize a corner case.
46437
46438         Whitespace cleanup.
46439         * tests/test-strchrnul.c: Reindent.
46440         * lib/strchrnul.c: Likewise.
46441
46442         Optimize and test strchrnul.
46443         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
46444         * modules/strchrnul-tests: New file.
46445         * tests/test-strchrnul.c: Likewise.
46446
46447         Remove intprops dependency.
46448         * modules/memchr (Depends-on): Remove intprops.
46449         * modules/memrchr (Depends-on): Likewise.
46450         * modules/memchr2 (Depends-on): Likewise.
46451         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
46452         * lib/memrchr.c (__memrchr): Likewise.
46453         * lib/memrchr2.c (memchr2): Likewise.
46454         Reported by Simon Josefsson.
46455
46456 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46457
46458         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
46459         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46460
46461 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46462
46463         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
46464
46465         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
46466
46467         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
46468
46469         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
46470         declarations.
46471         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
46472
46473         * m4/inet_pton.m4: Don't check for header files.
46474
46475         * m4/inet_ntop.m4: Don't check for header files.
46476
46477 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46478
46479         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
46480         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
46481         trigger for cygwin).
46482         Reported by Bruno Haible  <bruno@clisp.org>.
46483
46484 2008-04-28  Bruno Haible  <bruno@clisp.org>
46485
46486         * doc/posix-functions/strdup.texi: Mention mingw problem.
46487
46488 2008-04-27  Bruno Haible  <bruno@clisp.org>
46489
46490         * modules/stat-time-tests (Depends-on): Add sleep.
46491         * tests/test-stat-time.c (force_unlink): New function.
46492         (cleanup): Use it.
46493         (test_mtime): Remove the ctime related tests.
46494         (test_ctime): New function, containing the ctime related tests.
46495         (main): Call test_ctime, except on native Windows platforms.
46496
46497 2008-04-27  Bruno Haible  <bruno@clisp.org>
46498
46499         * lib/rpmatch.c (rpmatch): Add some comments.
46500         Reported by James Youngman <jay@gnu.org>.
46501
46502 2008-04-27  Bruno Haible  <bruno@clisp.org>
46503
46504         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
46505         quiet NaNs.
46506
46507 2008-04-27  Bruno Haible  <bruno@clisp.org>
46508
46509         Make test-yesno.sh work on mingw.
46510         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
46511         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
46512         (main): Set stdin to binary mode.
46513         * modules/yesno-tests (Depends-on): Add binary-io.
46514
46515 2008-04-27  Bruno Haible  <bruno@clisp.org>
46516
46517         Fix 'isfinite' on x86, x86_64, ia64 platforms.
46518         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
46519         argument that lie outside the IEEE 854 domain.
46520         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
46521         (gl_ISFINITE): Use it.
46522         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
46523
46524 2008-04-27  Bruno Haible  <bruno@clisp.org>
46525
46526         Allow local renaming in config.h.
46527         * lib/memrchr.c (memrchr): Don't undefine outside libc.
46528
46529 2008-04-27  Bruno Haible  <bruno@clisp.org>
46530
46531         * lib/memchr.c (__memchr): Change type of 'i'.
46532         * lib/memchr2.c (memchr2): Likewise.
46533
46534 2008-04-26  Eric Blake  <ebb9@byu.net>
46535         and Bruno Haible  <bruno@clisp.org>
46536
46537         Optimize and test memrchr.
46538         * modules/memrchr (Depends-on): Add intprops.
46539         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
46540         * modules/memrchr-tests: New file.
46541         * tests/test-memrchr.c: New file.
46542
46543 2008-04-26  Bruno Haible  <bruno@clisp.org>
46544
46545         Add tentative support for DragonFly BSD.
46546         * lib/stdio-impl.h: Add macros for DragonFly BSD.
46547         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
46548         fp.
46549         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
46550         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
46551         * lib/fpurge.c (fpurge): Likewise.
46552         * lib/freadable.c (freaadable): Likewise.
46553         * lib/freadahead.c (freadahead): Likewise.
46554         * lib/freading.c (freading): Likewise.
46555         * lib/freadptr.c (freadptr): Likewise.
46556         * lib/freadseek.c (freadptrinc): Likewise.
46557         * lib/fseeko.c (fseeko): Likewise.
46558         * lib/fseterr.c (fseterr): Likewise.
46559         * lib/fwritable.c (fwritable): Likewise.
46560         * lib/fwriting.c (fwriting): Likewise.
46561
46562 2008-04-26  Bruno Haible  <bruno@clisp.org>
46563
46564         * lib/stdio-impl.h: New file.
46565         * lib/fbufmode.c: Include stdio-impl.h.
46566         (fbufmode): Use fp_, remove redundant #defines.
46567         * lib/fflush.c: Include stdio-impl.h.
46568         (clear_ungetc_buffer): Remove redundant #defines.
46569         * lib/fpurge.c: Include stdio-impl.h.
46570         (fpurge): Remove redundant #defines.
46571         * lib/freadable.c: Include stdio-impl.h.
46572         (freadable): Remove redundant #defines.
46573         * lib/freadahead.c: Include stdio-impl.h.
46574         (freadahead): Remove redundant #defines.
46575         * lib/freading.c: Include stdio-impl.h.
46576         (freading): Remove redundant #defines.
46577         * lib/freadptr.c: Include stdio-impl.h.
46578         (freadptr): Remove redundant #defines.
46579         * lib/freadseek.c: Include stdio-impl.h.
46580         (freadptrinc): Remove redundant #defines.
46581         * lib/fseeko.c: Include stdio-impl.h.
46582         (rpl_fseeko): Remove redundant #defines.
46583         * lib/fseterr.c: Include stdio-impl.h.
46584         (fseterr): Remove redundant #defines.
46585         * lib/fwritable.c: Include stdio-impl.h.
46586         (fwritable: Remove redundant #defines.
46587         * lib/fwriting.c: Include stdio-impl.h.
46588         (fwriting): Remove redundant #defines.
46589         * modules/fbufmode (Files): Add lib/stdio-impl.h.
46590         * modules/fflush (Files): Likewise.
46591         * modules/fpurge (Files): Likewise.
46592         * modules/freadable (Files): Likewise.
46593         * modules/freadahead (Files): Likewise.
46594         * modules/freading (Files): Likewise.
46595         * modules/freadptr (Files): Likewise.
46596         * modules/freadseek (Files): Likewise.
46597         * modules/fseeko (Files): Likewise.
46598         * modules/fseterr (Files): Likewise.
46599         * modules/fwritable (Files): Likewise.
46600         * modules/fwriting (Files): Likewise.
46601
46602 2008-04-26  Bruno Haible  <bruno@clisp.org>
46603
46604         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
46605         restore_seek_optimization, update_fpos_cache): New functions, extracted
46606         from rpl_fflush.
46607         (rpl_fflush): Use them.
46608         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
46609         (gl_REPLACE_FFLUSH): Use it.
46610
46611 2008-04-26  Bruno Haible  <bruno@clisp.org>
46612
46613         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
46614         on Solaris.
46615         * tests/test-xstrtoimax.sh: Likewise.
46616         * tests/test-xstrtoumax.sh: Likewise.
46617         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46618
46619 2008-04-26  Bruno Haible  <bruno@clisp.org>
46620
46621         * modules/memchr-tests: New file.
46622         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
46623
46624 2008-04-26  Eric Blake  <ebb9@byu.net>
46625             Bruno Haible  <bruno@clisp.org>
46626
46627         * lib/memchr.c: Include intprops.h.
46628         (__memchr): Optimize parallel detection of matching bytes. Rename local
46629         variables. Add explanatory comments.
46630
46631 2008-04-26  Bruno Haible  <bruno@clisp.org>
46632
46633         Fix module 'memchr', broken since 2000-10-28.
46634         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
46635
46636 2008-04-26  Bruno Haible  <bruno@clisp.org>
46637
46638         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
46639         comments.
46640
46641 2008-04-25  Eric Blake  <ebb9@byu.net>
46642
46643         Use native fstatat on cygwin 1.7.0.
46644         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
46645         first.
46646
46647 2008-04-23  Eric Blake  <ebb9@byu.net>
46648
46649         Improve memchr2 performance.
46650         * lib/memchr2.c (memchr2): Further optimize parallel detection of
46651         NUL bytes.
46652         * modules/memchr2 (Depends-on): Use intprops.h.
46653
46654 2008-04-23  Simon Josefsson  <simon@josefsson.org>
46655
46656         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
46657         an inline function instead of a CPP macro.  Patch by Ben Pfaff
46658         <blp@cs.stanford.edu>.
46659
46660 2008-04-23  Simon Josefsson  <simon@josefsson.org>
46661
46662         * lib/arpa_inet.in.h: New file.
46663
46664         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
46665         (Makefile.am): Sed in substitute header file.
46666
46667         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
46668         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
46669
46670         * modules/inet_ntop (configure.ac): Use
46671         gl_ARPA_INET_MODULE_INDICATOR.
46672
46673         * modules/inet_pton (configure.ac): Use
46674         gl_ARPA_INET_MODULE_INDICATOR.
46675
46676 2008-04-22  Jim Meyering  <meyering@redhat.com>
46677
46678         * modules/verify (License): Re-license as LGPLv2+.
46679
46680 2008-04-22  Simon Josefsson  <simon@josefsson.org>
46681
46682         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
46683         parameter to void* as per POSIX standard (MinGW uses char*).
46684
46685 2008-04-21  Bruno Haible  <bruno@clisp.org>
46686
46687         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
46688         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
46689         Define to replacements if REPLACE_ISWCNTRL is 1.
46690         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
46691         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
46692         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
46693         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
46694         what it fixes.
46695         * doc/posix-functions/iswalpha.texi: Likewise.
46696         * doc/posix-functions/iswblank.texi: Likewise.
46697         * doc/posix-functions/iswcntrl.texi: Likewise.
46698         * doc/posix-functions/iswdigit.texi: Likewise.
46699         * doc/posix-functions/iswgraph.texi: Likewise.
46700         * doc/posix-functions/iswlower.texi: Likewise.
46701         * doc/posix-functions/iswprint.texi: Likewise.
46702         * doc/posix-functions/iswpunct.texi: Likewise.
46703         * doc/posix-functions/iswspace.texi: Likewise.
46704         * doc/posix-functions/iswupper.texi: Likewise.
46705         * doc/posix-functions/iswxdigit.texi: Likewise.
46706         Reported by Alain Guibert.
46707
46708 2008-04-21  Bruno Haible  <bruno@clisp.org>
46709
46710         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
46711         Patch by Alain Guibert.
46712
46713 2008-04-21  Bruno Haible  <bruno@clisp.org>
46714
46715         Fix test failures on mingw.
46716         * tests/test-xstrtol.c (print_no_progname): New function.
46717         (main): Install it in error_print_progname hook.
46718         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
46719         * tests/test-xstrtoimax.sh: Likewise.
46720         * tests/test-xstrtoumax.sh: Likewise.
46721
46722 2008-04-21  Bruno Haible  <bruno@clisp.org>
46723
46724         Fix test failure on mingw.
46725         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
46726
46727 2008-04-21  Bruno Haible  <bruno@clisp.org>
46728
46729         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
46730         Actually assign a value.
46731
46732 2008-04-20  Bruno Haible  <bruno@clisp.org>
46733
46734         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
46735         take 2.
46736         * lib/canonicalize.c (canonicalize_file_name): Elide if the
46737         'canonicalize-lgpl' module is also used.
46738         * lib/canonicalize-lgpl.c: Undo last change.
46739         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
46740
46741 2008-04-20  Bruno Haible  <bruno@clisp.org>
46742
46743         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
46744         config.h. Provide _mkdir based fallback for mingw.
46745         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
46746         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
46747         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
46748         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
46749         rather than defining mkdir in config.h.
46750         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
46751         (gl_SYS_STAT_H_DEFAULTS): New macro.
46752         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
46753         HAVE_IO_H any more.
46754         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
46755         HAVE_DECL_MKDIR and HAVE_IO_H.
46756
46757 2008-04-20  Bruno Haible  <bruno@clisp.org>
46758
46759         * lib/isapipe.c: Port to native Windows platforms.
46760
46761 2008-04-20  Bruno Haible  <bruno@clisp.org>
46762
46763         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
46764
46765 2008-04-21  Eric Blake  <ebb9@byu.net>
46766
46767         Work around preprocessors that don't handle UINTMAX_MAX.
46768         * lib/memchr2.c (memchr2): Avoid embedded #if.
46769         Reported by Alain Guibert, fix suggested by Bruno Haible.
46770
46771 2008-04-21  Simon Josefsson  <simon@josefsson.org>
46772
46773         * doc/posix-functions/strftime.texi (strftime): Explain better
46774         Windows incompatibility.  Suggested by Micah Cowan
46775         <micah@cowan.name>.
46776
46777 2008-04-20  Bruno Haible  <bruno@clisp.org>
46778
46779         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
46780         unistr/u8-mblen.
46781
46782 2008-04-20  Bruno Haible  <bruno@clisp.org>
46783
46784         Fix test failure on platforms with non-GNU iconv.
46785         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
46786         (U_TO_U8): Use it, rather than u16_to_u8.
46787         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
46788         units at the end of the input string.
46789         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
46790
46791 2008-04-20  Bruno Haible  <bruno@clisp.org>
46792
46793         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
46794         when the resulting length is 0.
46795         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
46796
46797 2008-04-20  Bruno Haible  <bruno@clisp.org>
46798
46799         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
46800         works.
46801         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
46802
46803 2008-04-20  Bruno Haible  <bruno@clisp.org>
46804
46805         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
46806         * modules/tsearch-tests (configure.ac): Test for initstate function.
46807
46808 2008-04-20  Bruno Haible  <bruno@clisp.org>
46809
46810         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
46811         for nlink_t if missing.
46812         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
46813
46814 2008-04-19  Bruno Haible  <bruno@clisp.org>
46815
46816         Work around snprintf bug on Linux libc5.
46817         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
46818         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
46819         gl_SNPRINTF_SIZE1.
46820         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46821         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
46822         that test failed.
46823         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
46824         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
46825         * modules/snprintf (Files): Add m4/printf.m4.
46826         * modules/vsnprintf (Files): Likewise.
46827         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
46828         * doc/posix-functions/vsnprintf.texi: Likewise.
46829
46830 2008-04-19  Bruno Haible  <bruno@clisp.org>
46831
46832         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
46833         from 0.0058 to less than 10^-7.
46834
46835 2008-04-19  Bruno Haible  <bruno@clisp.org>
46836
46837         Fix rounding when a precision is given.
46838         * lib/vasnprintf.c (is_borderline): New function.
46839         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
46840         9...9x.
46841         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
46842         %e, %g.
46843         * tests/test-vasprintf-posix.c (test_function): Likewise.
46844         * tests/test-snprintf-posix.h (test_function): Likewise.
46845         * tests/test-sprintf-posix.h (test_function): Likewise.
46846         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
46847         * tests/test-printf-posix.h (test_function): Likewise.
46848         * tests/test-printf-posix.output: Update.
46849         Reported by John Darrington <john@darrington.wattle.id.au> via
46850         Ben Pfaff <blp@cs.stanford.edu>.
46851
46852 2008-04-18  Simon Josefsson  <simon@josefsson.org>
46853
46854         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
46855         Suggested by Bruno Haible <bruno@clisp.org>.
46856
46857 2008-04-17  Bruno Haible  <bruno@clisp.org>
46858
46859         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
46860         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
46861         implementation.
46862         Patch by Bruce Merry <bmerry@gmail.com>.
46863
46864 2008-04-17  Simon Josefsson  <simon@josefsson.org>
46865
46866         * doc/posix-functions/strftime.texi (strftime): Mention that %e
46867         doesn't work under Windows.
46868
46869 2008-04-16  Bruno Haible  <bruno@clisp.org>
46870
46871         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
46872         New macros.
46873         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
46874         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
46875         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
46876         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
46877         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
46878         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
46879         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
46880         macros.
46881         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
46882         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
46883         Northern Sotho, Uighur.
46884
46885 2008-04-16  Bruno Haible  <bruno@clisp.org>
46886
46887         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
46888         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
46889         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
46890         Reported by Daniel Bergström <daniel@octocode.com>.
46891
46892 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
46893             Bruno Haible  <bruno@clisp.org>
46894
46895         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
46896         function.
46897         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
46898         New functions, mostly extracted from gl_locale_name_default.
46899         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
46900
46901 2008-04-16  Eric Blake  <ebb9@byu.net>
46902
46903         Adjust strtod detection to catch glibc 2.7 bug.
46904         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
46905         Reported by John Gatewood Ham.
46906
46907 2008-04-16  Bruno Haible  <bruno@clisp.org>
46908
46909         Add tentative support for Linux libc5.
46910         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
46911         * lib/fpurge.c (fpurge): Likewise.
46912         * lib/freadable.c (freadable): Likewise.
46913         * lib/freadahead.c (freadahead): Likewise.
46914         * lib/freading.c (freading): Likewise.
46915         * lib/freadptr.c (freadptr): Likewise.
46916         * lib/freadseek.c (freadptrinc): Likewise.
46917         * lib/fseeko.c (rpl_fseeko): Likewise.
46918         * lib/fseterr.c (fseterr): Likewise.
46919         * lib/fwritable.c (fwritable): Likewise.
46920         * lib/fwriting.c (fwriting): Likewise.
46921         Reported by Alain Guibert <alguibert+bts@free.fr>.
46922
46923 2008-04-15  Bruno Haible  <bruno@clisp.org>
46924
46925         * modules/mathl (configure.ac): Define module indicator.
46926
46927 2008-04-15  Bruno Haible  <bruno@clisp.org>
46928
46929         * lib/logl.c (logl): Remove unused variables.
46930
46931 2008-04-15  Bruno Haible  <bruno@clisp.org>
46932
46933         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
46934         fails.
46935
46936 2008-04-15  Bruno Haible  <bruno@clisp.org>
46937
46938         * lib/trim.c (trim2): Fix argument of isspace() macro.
46939
46940 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
46941
46942         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
46943         to 0.
46944         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
46945
46946 2008-04-14  Bruno Haible  <bruno@clisp.org>
46947
46948         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
46949         AC_LANG_PROGRAM argument.
46950         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
46951         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
46952         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
46953         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
46954         * m4/math_h.m4 (gl_MATH_H): Likewise.
46955         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
46956         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46957         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
46958         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
46959         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46960         * m4/regex.m4 (gl_REGEX): Likewise.
46961         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
46962         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
46963         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46964         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
46965         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46966         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46967         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46968         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
46969
46970 2008-04-14  Jim Meyering  <meyering@redhat.com>
46971
46972         test-strtod: fix typos: s/abs/fabs/
46973         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
46974
46975 2008-04-13  Bruno Haible  <bruno@clisp.org>
46976
46977         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
46978         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
46979         module is also used and while not building the reloc-wrapper.
46980
46981 2008-04-13  Bruno Haible  <bruno@clisp.org>
46982
46983         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
46984
46985 2008-04-13  Bruno Haible  <bruno@clisp.org>
46986
46987         Fix AIX compilation failure introduced on 2008-04-02.
46988         * tests/test-frexp.c (exp): Undefine before redefining.
46989         * tests/test-frexpl.c (exp): Likewise.
46990
46991 2008-04-13  Bruno Haible  <bruno@clisp.org>
46992
46993         Work around a HP-UX stdio bug.
46994         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
46995         * tests/test-ftello.c (main): Likewise.
46996         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
46997         * doc/posix-functions/ftello.texi: Likewise.
46998
46999 2008-04-13  Bruno Haible  <bruno@clisp.org>
47000
47001         Make test-signbit pass on HP-UX/hppa.
47002         * tests/test-signbit.c (minus_zerol): New variable.
47003         (test_signbitl): Use it.
47004
47005 2008-04-13  Bruno Haible  <bruno@clisp.org>
47006
47007         Make truncl work on OSF/1 4.0.
47008         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
47009         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
47010         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
47011         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
47012         HAVE_DECL_TRUNCL.
47013         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
47014         HAVE_DECL_TRUNCL.
47015         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
47016
47017 2008-04-13  Bruno Haible  <bruno@clisp.org>
47018
47019         * lib/unictype.h: Remove trailing comma from enumeration definitions.
47020
47021 2008-04-13  Bruno Haible  <bruno@clisp.org>
47022
47023         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
47024         expression, so as to avoid HP-UX 11 cc compiler bug.
47025
47026 2008-04-13  Bruno Haible  <bruno@clisp.org>
47027
47028         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
47029
47030 2008-04-13  Bruno Haible  <bruno@clisp.org>
47031
47032         * lib/git-merge-changelog.c: Remove empty declaration outside of
47033         functions.
47034
47035 2008-04-13  Bruno Haible  <bruno@clisp.org>
47036
47037         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
47038
47039 2008-04-13  Bruno Haible  <bruno@clisp.org>
47040
47041         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
47042         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
47043         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
47044         also if it exists but lacks definitions of the SHUT_* macros.
47045         * modules/sys_socket (Description): Update.
47046         Reported by Elbert Pol <e.pol@chello.nl>.
47047
47048 2008-04-13  Bruno Haible  <bruno@clisp.org>
47049
47050         * lib/localcharset.c (OS2): Don't redefine if already defined.
47051         Reported by Elbert Pol <e.pol@chello.nl>.
47052
47053 2008-04-13  Bruno Haible  <bruno@clisp.org>
47054
47055         * lib/binary-io.h [__EMX__]: Include <io.h>.
47056         Reported by Elbert Pol <e.pol@chello.nl>.
47057
47058 2008-04-12  Bruno Haible  <bruno@clisp.org>
47059
47060         * lib/fpucw.h: Enable the definitions also for x86_64.
47061         Needed for NetBSD/x86_64.
47062         Reported by Thomas Klausner <tk@giga.or.at>.
47063
47064 2008-04-12  Bruno Haible  <bruno@clisp.org>
47065
47066         * tests/test-strtod.c: Include isnand.h.
47067         (main): Use isnand instead of isnan.
47068         Reported by Jim Meyering.
47069
47070 2008-04-12  Bruno Haible  <bruno@clisp.org>
47071
47072         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
47073         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
47074
47075 2008-04-12  Jim Meyering  <meyering@redhat.com>
47076
47077         * m4/math_h.m4 (gl_MATH_H): Fix typos.
47078
47079 2008-04-12  Bruno Haible  <bruno@clisp.org>
47080
47081         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
47082         Reported by Elbert Pol <e.pol@chello.nl>.
47083
47084 2008-04-12  Eric Blake  <ebb9@byu.net>
47085
47086         Work around Solaris 10 math.h bug.
47087         * m4/math_h.m4 (gl_MATH_H): Check for bug.
47088         (gl_MATH_H_DEFAULTS): Set up default.
47089         * modules/math (Makefile.am): Replace new indicators.
47090         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
47091         * tests/test-math.c (main): Test this.
47092         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
47093         * doc/posix-headers/math.texi (math.h): Mention bug.
47094         Reported by Nelson H. F. Beebe and Jim Meyering.
47095
47096 2008-04-11  Bruno Haible  <bruno@clisp.org>
47097
47098         Adapt to future versions of Apple GCC.
47099         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
47100         Reported by Peter O'Gorman <peter@pogma.com>.
47101
47102 2008-04-11  Bruno Haible  <bruno@clisp.org>
47103
47104         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
47105
47106 2008-04-11  Bruno Haible  <bruno@clisp.org>
47107
47108         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
47109
47110         * modules/getaddrinfo-tests (Makefile.am): Define
47111         test_getaddrinfo_LDADD.
47112
47113 2008-04-11  Bruno Haible  <bruno@clisp.org>
47114
47115         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
47116         (init): Fix syntax error.
47117         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
47118         is declared.
47119
47120 2008-04-11  Bruno Haible  <bruno@clisp.org>
47121
47122         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
47123         * modules/glob (Depends-on): Add stdbool.
47124
47125 2008-04-11  Bruno Haible  <bruno@clisp.org>
47126
47127         * lib/trim.c: Include <string.h>.
47128
47129 2008-04-11  Eric Blake  <ebb9@byu.net>
47130
47131         Avoid compile failure on OS/2.
47132         * lib/regex_internal.h (internal_function): Disable optimization
47133         on OS/2 (__EMX__), where it caused compiler error.
47134         Reported by Elbert Pol.
47135
47136 2008-04-11  Bruno Haible  <bruno@clisp.org>
47137
47138         Flush the standard error stream before aborting. Needed on mingw.
47139         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
47140         * tests/test-array_list.c (ASSERT): Likewise.
47141         * tests/test-array_oset.c (ASSERT): Likewise.
47142         * tests/test-avltree_list.c (ASSERT): Likewise.
47143         * tests/test-avltree_oset.c (ASSERT): Likewise.
47144         * tests/test-avltreehash_list.c (ASSERT): Likewise.
47145         * tests/test-binary-io.c (ASSERT): Likewise.
47146         * tests/test-byteswap.c (ASSERT): Likewise.
47147         * tests/test-c-ctype.c (ASSERT): Likewise.
47148         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
47149         * tests/test-c-strcasestr.c (ASSERT): Likewise.
47150         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
47151         * tests/test-c-strstr.c (ASSERT): Likewise.
47152         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
47153         * tests/test-canonicalize.c (ASSERT): Likewise.
47154         * tests/test-carray_list.c (ASSERT): Likewise.
47155         * tests/test-ceilf1.c (ASSERT): Likewise.
47156         * tests/test-ceilf2.c (ASSERT): Likewise.
47157         * tests/test-ceill.c (ASSERT): Likewise.
47158         * tests/test-count-one-bits.c (ASSERT): Likewise.
47159         * tests/test-fbufmode.c (ASSERT): Likewise.
47160         * tests/test-fflush2.c (ASSERT): Likewise.
47161         * tests/test-floorf1.c (ASSERT): Likewise.
47162         * tests/test-floorf2.c (ASSERT): Likewise.
47163         * tests/test-floorl.c (ASSERT): Likewise.
47164         * tests/test-fopen.c (ASSERT): Likewise.
47165         * tests/test-fpending.c (ASSERT): Likewise.
47166         * tests/test-fprintf-posix.c (ASSERT): Likewise.
47167         * tests/test-fpurge.c (ASSERT): Likewise.
47168         * tests/test-freadable.c (ASSERT): Likewise.
47169         * tests/test-freadahead.c (ASSERT): Likewise.
47170         * tests/test-freading.c (ASSERT): Likewise.
47171         * tests/test-freadptr.c (ASSERT): Likewise.
47172         * tests/test-freadptr2.c (ASSERT): Likewise.
47173         * tests/test-freadseek.c (ASSERT): Likewise.
47174         * tests/test-freopen.c (ASSERT): Likewise.
47175         * tests/test-frexp.c (ASSERT): Likewise.
47176         * tests/test-frexpl.c (ASSERT): Likewise.
47177         * tests/test-fseek.c (ASSERT): Likewise.
47178         * tests/test-fseeko.c (ASSERT): Likewise.
47179         * tests/test-fstrcmp.c (ASSERT): Likewise.
47180         * tests/test-ftell.c (ASSERT): Likewise.
47181         * tests/test-ftello.c (ASSERT): Likewise.
47182         * tests/test-func.c (ASSERT): Likewise.
47183         * tests/test-fwritable.c (ASSERT): Likewise.
47184         * tests/test-fwriting.c (ASSERT): Likewise.
47185         * tests/test-getdelim.c (ASSERT): Likewise.
47186         * tests/test-getline.c (ASSERT): Likewise.
47187         * tests/test-i-ring.c (ASSERT): Likewise.
47188         * tests/test-iconv-utf.c (ASSERT): Likewise.
47189         * tests/test-iconv.c (ASSERT): Likewise.
47190         * tests/test-isfinite.c (ASSERT): Likewise.
47191         * tests/test-isnand.c (ASSERT): Likewise.
47192         * tests/test-isnanf.c (ASSERT): Likewise.
47193         * tests/test-isnanl.h (ASSERT): Likewise.
47194         * tests/test-ldexpl.c (ASSERT): Likewise.
47195         * tests/test-linked_list.c (ASSERT): Likewise.
47196         * tests/test-linkedhash_list.c (ASSERT): Likewise.
47197         * tests/test-localename.c (ASSERT): Likewise.
47198         * tests/test-lseek.c (ASSERT): Likewise.
47199         * tests/test-mbscasecmp.c (ASSERT): Likewise.
47200         * tests/test-mbscasestr1.c (ASSERT): Likewise.
47201         * tests/test-mbscasestr2.c (ASSERT): Likewise.
47202         * tests/test-mbscasestr3.c (ASSERT): Likewise.
47203         * tests/test-mbscasestr4.c (ASSERT): Likewise.
47204         * tests/test-mbschr.c (ASSERT): Likewise.
47205         * tests/test-mbscspn.c (ASSERT): Likewise.
47206         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
47207         * tests/test-mbspbrk.c (ASSERT): Likewise.
47208         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
47209         * tests/test-mbsrchr.c (ASSERT): Likewise.
47210         * tests/test-mbsspn.c (ASSERT): Likewise.
47211         * tests/test-mbsstr1.c (ASSERT): Likewise.
47212         * tests/test-mbsstr2.c (ASSERT): Likewise.
47213         * tests/test-mbsstr3.c (ASSERT): Likewise.
47214         * tests/test-memchr2.c (ASSERT): Likewise.
47215         * tests/test-memmem.c (ASSERT): Likewise.
47216         * tests/test-open.c (ASSERT): Likewise.
47217         * tests/test-printf-frexp.c (ASSERT): Likewise.
47218         * tests/test-printf-frexpl.c (ASSERT): Likewise.
47219         * tests/test-printf-posix.c (ASSERT): Likewise.
47220         * tests/test-quotearg.c (ASSERT): Likewise.
47221         * tests/test-rbtree_list.c (ASSERT): Likewise.
47222         * tests/test-rbtree_oset.c (ASSERT): Likewise.
47223         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
47224         * tests/test-round1.c (ASSERT): Likewise.
47225         * tests/test-roundf1.c (ASSERT): Likewise.
47226         * tests/test-roundl.c (ASSERT): Likewise.
47227         * tests/test-signbit.c (ASSERT): Likewise.
47228         * tests/test-sleep.c (ASSERT): Likewise.
47229         * tests/test-snprintf-posix.c (ASSERT): Likewise.
47230         * tests/test-snprintf.c (ASSERT): Likewise.
47231         * tests/test-sprintf-posix.c (ASSERT): Likewise.
47232         * tests/test-stat-time.c (ASSERT): Likewise.
47233         * tests/test-strcasestr.c (ASSERT): Likewise.
47234         * tests/test-strerror.c (ASSERT): Likewise.
47235         * tests/test-striconv.c (ASSERT): Likewise.
47236         * tests/test-striconveh.c (ASSERT): Likewise.
47237         * tests/test-striconveha.c (ASSERT): Likewise.
47238         * tests/test-strsignal.c (ASSERT): Likewise.
47239         * tests/test-strstr.c (ASSERT): Likewise.
47240         * tests/test-strtod.c (ASSERT): Likewise.
47241         * tests/test-trunc1.c (ASSERT): Likewise.
47242         * tests/test-trunc2.c (ASSERT): Likewise.
47243         * tests/test-truncf1.c (ASSERT): Likewise.
47244         * tests/test-truncf2.c (ASSERT): Likewise.
47245         * tests/test-truncl.c (ASSERT): Likewise.
47246         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
47247         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
47248         * tests/test-vasnprintf.c (ASSERT): Likewise.
47249         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
47250         * tests/test-vasprintf.c (ASSERT): Likewise.
47251         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
47252         * tests/test-vprintf-posix.c (ASSERT): Likewise.
47253         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
47254         * tests/test-vsnprintf.c (ASSERT): Likewise.
47255         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
47256         * tests/test-wcwidth.c (ASSERT): Likewise.
47257         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
47258         * tests/test-xprintf-posix.c (ASSERT): Likewise.
47259         * tests/test-xvasprintf.c (ASSERT): Likewise.
47260         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
47261         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
47262         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
47263         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
47264         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
47265         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
47266         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
47267         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
47268         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
47269         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
47270         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
47271         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
47272         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
47273         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
47274         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
47275         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
47276         * tests/unictype/test-block_list.c (ASSERT): Likewise.
47277         * tests/unictype/test-block_of.c (ASSERT): Likewise.
47278         * tests/unictype/test-block_test.c (ASSERT): Likewise.
47279         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
47280         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
47281         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
47282         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
47283         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
47284         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
47285         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
47286         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
47287         * tests/unictype/test-combining.c (ASSERT): Likewise.
47288         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
47289         * tests/unictype/test-digit.c (ASSERT): Likewise.
47290         * tests/unictype/test-mirror.c (ASSERT): Likewise.
47291         * tests/unictype/test-numeric.c (ASSERT): Likewise.
47292         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
47293         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
47294         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
47295         * tests/unictype/test-scripts.c (ASSERT): Likewise.
47296         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
47297         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
47298         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
47299         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
47300         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
47301         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
47302         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
47303         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
47304         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
47305         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
47306         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
47307         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
47308         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
47309         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
47310         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
47311         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
47312         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
47313         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
47314         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
47315         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
47316         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
47317         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
47318         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
47319         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
47320         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
47321         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
47322         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
47323         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
47324         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
47325         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
47326         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
47327         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
47328         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
47329         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
47330         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
47331         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
47332         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
47333         Reported by Eric Blake.
47334
47335 2008-04-11  Bruno Haible  <bruno@clisp.org>
47336
47337         * lib/wchar.in.h: Tweak comment.
47338
47339 2008-04-11  Bruno Haible  <bruno@clisp.org>
47340
47341         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
47342         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
47343         gl_COMMON.
47344         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
47345
47346 2008-04-11  Bruno Haible  <bruno@clisp.org>
47347
47348         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
47349
47350 2008-04-11  Simon Josefsson  <simon@josefsson.org>
47351
47352         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
47353         of attempting to use non-existing /dev/*random.  Based on patch
47354         from Adam Strzelecki <ono@java.pl> in
47355         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
47356
47357 2008-04-08  Bruno Haible  <bruno@clisp.org>
47358
47359         Add tentative support for emx+gcc.
47360         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
47361         * lib/fpurge.c (fpurge): Likewise.
47362         * lib/freadable.c (freadable): Likewise.
47363         * lib/freadahead.c (freadahead): Likewise.
47364         * lib/freading.c (freading): Likewise.
47365         * lib/freadptr.c (freadptr): Likewise.
47366         * lib/freadseek.c (freadptrinc): Likewise.
47367         * lib/fseeko.c (rpl_fseeko): Likewise.
47368         * lib/fseterr.c (fseterr): Likewise.
47369         * lib/fwritable.c (fwritable): Likewise.
47370         * lib/fwriting.c (fwriting): Likewise.
47371         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
47372
47373 2008-04-09  Eric Blake  <ebb9@byu.net>
47374
47375         Avoid some autoconf warnings.
47376         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
47377         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
47378         * m4/afs.m4 (gl_AFS): Likewise.
47379         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
47380         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
47381         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47382         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
47383         (gl_INTEGER_TYPE_SUFFIX): Likewise.
47384         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
47385         (AC_CHECK_DECLS_ONCE): Likewise.
47386         Rename file...
47387         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
47388         gnulib-tool requires autoconf 2.59 or better.
47389         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
47390
47391 2008-04-08  Eric Blake  <ebb9@byu.net>
47392
47393         Use 'git describe --match' if present (added in git 1.5.5).
47394         * build-aux/git-version-gen: Limit result to tags that match 'v*'
47395         if possible.
47396
47397 2008-04-08  Bruno Haible  <bruno@clisp.org>
47398
47399         Add tentative support for OpenServer.
47400         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
47401         _ptr, _cnt.
47402         * lib/fpurge.c (fpurge): Likewise.
47403         * lib/freadable.c (freadable): Likewise.
47404         * lib/freadahead.c (freadahead): Likewise.
47405         * lib/freading.c (freading): Likewise.
47406         * lib/freadptr.c (freadptr): Likewise.
47407         * lib/freadseek.c (freadptrinc): Likewise.
47408         * lib/fseeko.c (rpl_fseeko): Likewise.
47409         * lib/fseterr.c (fseterr): Likewise.
47410         * lib/fwritable.c (fwritable): Likewise.
47411         * lib/fwriting.c (fwriting): Likewise.
47412         Reported by Roger Cornelius <rac@tenzing.org> and
47413         Brian K. White <brian@aljex.com>.
47414
47415 2008-04-06  Jim Meyering  <meyering@redhat.com>
47416
47417         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
47418
47419 2008-04-06  Bruno Haible  <bruno@clisp.org>
47420
47421         Avoid possible error with non-ASCII bytes in UTF-8 locales.
47422         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
47423         * tests/test-printf-posix.sh: Likewise.
47424         * tests/test-vfprintf-posix.sh: Likewise.
47425         * tests/test-vprintf-posix.sh: Likewise.
47426         * tests/test-xprintf-posix.sh: Likewise.
47427
47428 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47429
47430         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
47431         hide error from 'ls', needed on OS/2.
47432         Report by Elbert Pol <elbert.pol@gmail.com>.
47433
47434 2008-04-04  Eric Blake  <ebb9@byu.net>
47435
47436         Make test-fseeko.c failures meaningful.
47437         * tests/test-fseeko.c: Print line number on failure.
47438         * tests/test-fseek.c: Likewise.
47439         Reported by Nelson H. F. Beebe.
47440
47441         Improve strtod bug detection check.
47442         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
47443         required for Solaris 10.
47444         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
47445
47446 2008-04-04  Bruno Haible  <bruno@clisp.org>
47447
47448         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
47449         by m4/setenv.m4.
47450
47451 2008-04-03  Eric Blake  <ebb9@byu.net>
47452
47453         Ensure sane .version contents.
47454         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
47455         version string.
47456         * build-aux/git-version-gen: Improve documentation.
47457
47458         Make GNU make output nicer.
47459         * top/GNUmakefile [!_have-Makefile]: Add dependency on
47460         MAKECMDGOALS to enforce message for all command line targets.  Set
47461         srcdir for use in maint.mk.
47462
47463         Another maintainer tweak.
47464         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
47465         a target that regenerates version.
47466
47467 2008-04-03  Jim Meyering  <meyering@redhat.com>
47468
47469         vc-list-files: don't cause coreutils "make po-check" failure
47470         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
47471
47472 2008-04-03  Eric Blake  <ebb9@byu.net>
47473
47474         Allow VPATH usage of vc-list-files.
47475         * build-aux/vc-list-files (scriptversion): Add timestamp.
47476         (options): Add --help, --version, -C.
47477         (CVS): Support installed cvsu.
47478
47479 2008-04-02  Bruno Haible  <bruno@clisp.org>
47480
47481         Avoid some "statement with no effect" warnings from gcc.
47482         * tests/test-wctype.c (main): Explicitly ignore unused values.
47483         Reported by Jim Meyering.
47484
47485 2008-04-02  Jim Meyering  <meyering@redhat.com>
47486
47487         Avoid some warnings from "gcc -Wshadow".
47488         * tests/test-frexp.c (exp): Define to a different identifier.
47489         * tests/test-frexpl.c (exp): Likewise.
47490
47491 2008-04-03  Jim Meyering  <meyering@redhat.com>
47492
47493         bootstrap: remove dangling *.[ch] symlinks from lib
47494         * build-aux/bootstrap [dangling symlink removal]: Move find's
47495         -depth option to precede all others, to avoid a warning.
47496         Remove *.[ch] files too, and from "$source_base" (usually lib/).
47497
47498 2008-04-02  Bruno Haible  <bruno@clisp.org>
47499
47500         Avoid some warnings from "gcc -Wshadow".
47501         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
47502         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
47503         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
47504         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
47505         Reported by Jim Meyering.
47506
47507 2008-04-01  Bruno Haible  <bruno@clisp.org>
47508
47509         Fix test to work on IRIX 6.5 with cc.
47510         * tests/test-math.c (numeric_equal): New function.
47511         (main): Use it.
47512
47513 2008-04-01  Bruno Haible  <bruno@clisp.org>
47514
47515         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
47516
47517 2008-04-01  Bruno Haible  <bruno@clisp.org>
47518
47519         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
47520         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47521         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
47522         (Depends-on): Remove math.
47523
47524         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
47525         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47526         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
47527         (Depends-on): Remove math.
47528
47529         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
47530         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47531         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
47532         (Depends-on): Remove math.
47533         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
47534         (Depends-on): Remove math.
47535
47536         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
47537         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47538         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
47539         (Depends-on): Remove math.
47540         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
47541         (Depends-on): Remove math.
47542
47543         * tests/test-round1.c: Include nan.h.
47544         (main): Use NaNd instead of NAN.
47545         * modules/round-tests (Files): Add tests/nan.h.
47546
47547         * tests/test-trunc1.c: Include nan.h.
47548         (main): Use NaNd instead of NAN.
47549         * modules/trunc-tests (Files): Add tests/nan.h.
47550
47551         * tests/test-roundf1.c: Include nan.h.
47552         (main): Use NaNf instead of NAN.
47553         * modules/roundf-tests (Files): Add tests/nan.h.
47554
47555         * tests/test-truncf1.c: Include nan.h.
47556         (main): Use NaNf instead of NAN.
47557         * modules/truncf-tests (Files): Add tests/nan.h.
47558
47559         * tests/test-ceilf1.c: Include nan.h.
47560         (main): Use NaNf instead of NAN.
47561         * modules/ceilf-tests (Files): Add tests/nan.h.
47562
47563         * tests/test-floorf1.c: Include nan.h.
47564         (main): Use NaNf instead of NAN.
47565         * modules/floorf-tests (Files): Add tests/nan.h.
47566
47567         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
47568         (main): Use NaNf instead of NAN.
47569         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
47570
47571         * tests/test-isnand.c: Include nan.h instead of <math.h>.
47572         (main): Use NaNd instead of NAN.
47573         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
47574
47575         * tests/test-frexp.c: Include nan.h.
47576         (main): Use NaNd instead of NAN.
47577         * modules/frexp-tests (Files): Add tests/nan.h.
47578
47579         * lib/isnan.c: Don't include <math.h>.
47580         (FUNC): Don't use NAN macro.
47581         * modules/isnand-nolibm (Depends-on): Remove math.
47582         * modules/isnanf-nolibm (Depends-on): Remove math.
47583         * modules/isnanl (Depends-on): Remove math.
47584         * modules/isnanl-nolibm (Depends-on): Remove math.
47585
47586         * tests/nan.h: New file.
47587
47588 2008-04-01  Eric Blake  <ebb9@byu.net>
47589
47590         Fix typos.
47591         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
47592         values to be the right type.
47593
47594         For now, cater to gnulib strtod inaccuracies.
47595         * tests/test-strtod.c (main): Allow 1-ulp error on expected
47596         fractional results.  While not as nice from a QoI perspective, it
47597         is a quicker patch than correctly implementing decimal to binary
47598         rounding.
47599
47600 2008-03-31  Eric Blake  <ebb9@byu.net>
47601
47602         Guarantee a definition of NAN.
47603         * lib/math.in.h (NAN): Define if missing.
47604         * tests/test-math.c (main): Test it.
47605         * doc/posix-headers/math.texi (math.h): Document this.
47606         * lib/isnan.c (rpl_isnand): Use it.
47607         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
47608         * tests/test-floorf1.c (NaN): Likewise.
47609         * tests/test-frexp.c (NaN): Likewise.
47610         * tests/test-isnand.c (NaN): Likewise.
47611         * tests/test-isnanf.c (NaN): Likewise.
47612         * tests/test-round1.c (NaN): Likewise.
47613         * tests/test-roundf1.c (NaN): Likewise.
47614         * tests/test-snprintf-posix.h (NaN): Likewise.
47615         * tests/test-sprintf-posix.h (NaN): Likewise.
47616         * tests/test-trunc1.c (NaN): Likewise.
47617         * tests/test-truncf1.c (NaN): Likewise.
47618         * tests/test-vasnprintf-posix.c (NaN): Likewise.
47619         * tests/test-vasprintf-posix.c (NaN): Likewise.
47620         * modules/isnand-nolibm (Depends-on): Add math.
47621         * modules/isnanf-nolibm (Depends-on): Likewise.
47622         * modules/isnanl (Depends-on): Likewise.
47623         * modules/isnanl-nolibm (Depends-on): Likewise.
47624         * modules/snprintf-posix-tests (Depends-on): Likewise.
47625         * modules/sprintf-posix-tests (Depends-on): Likewise.
47626         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
47627         * modules/vsprintf-posix-tests (Depends-on): Likewise.
47628         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
47629         * modules/vasprintf-posix-tests (Depends-on): Likewise.
47630
47631 2008-03-31  Bruno Haible  <bruno@clisp.org>
47632
47633         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
47634         * doc/posix-functions/strtod.texi: Likewise.
47635
47636 2008-03-31  Bruno Haible  <bruno@clisp.org>
47637
47638         * tests/test-strtod.c (main): Don't use C99 syntax.
47639
47640 2008-03-31  Bruno Haible  <bruno@clisp.org>
47641
47642         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
47643         Reported by Eric Blake.
47644
47645 2008-03-31  Jim Meyering  <meyering@redhat.com>
47646
47647         Don't compare actual signbit return values.
47648         * tests/test-strtod.c (main): Rather, compare only their
47649         zero/non-zero nature.
47650
47651 2008-03-31  Eric Blake  <ebb9@byu.net>
47652
47653         More strtod documentation.
47654         * doc/posix-functions/strtod.texi (strtod): Interpret more test
47655         failures as distinct bugs.
47656
47657 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
47658
47659         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
47660         Problem reported by Erik Benada in
47661         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
47662
47663 2008-03-30  Bruno Haible  <bruno@clisp.org>
47664
47665         * tests/test-strtod.c: Add comments about which assertion fails on which
47666         platform.
47667         * doc/posix-functions/strtod.texi: Add info about many more platforms.
47668
47669 2008-03-30  Eric Blake  <ebb9@byu.net>
47670
47671         Test signbit behavior on zeros.
47672         * tests/test-signbit.c (test_signbitf): Add tests for zero.
47673         (test_signbitd, test_signbitl): Likewise.
47674
47675         More strtod touchups.
47676         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
47677         sign of negative underflow, for now.  Use .5, not .1.
47678         * doc/posix-functions/strtod.texi (strtod): Mention these
47679         limitations.
47680         Reported by Jim Meyering.
47681
47682 2008-03-30  Bruno Haible  <bruno@clisp.org>
47683
47684         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
47685         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
47686
47687 2008-03-30  Bruno Haible  <bruno@clisp.org>
47688
47689         Avoid failure when attempting to return empty iconv results on some
47690         platforms.
47691         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
47692         allocation, don't report ENOMEM when the resulting string is empty.
47693
47694 2008-03-30  Bruno Haible  <bruno@clisp.org>
47695
47696         Fix buffer overrun.
47697         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
47698         Don't consider the width for tmp_length. Check count against tmp_length
47699         before doing the padding. Ensure enough allocation during padding.
47700
47701 2008-03-30  Eric Blake  <ebb9@byu.net>
47702
47703         strtod touchups.
47704         * lib/strtod.c (strtod): Avoid compiler warnings.
47705         Reported by Jim Meyering.
47706
47707 2008-03-30  Bruno Haible  <bruno@clisp.org>
47708
47709         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
47710         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
47711         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
47712         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
47713         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
47714         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
47715         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
47716         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
47717
47718         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
47719         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
47720         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
47721         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
47722         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
47723         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
47724         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
47725         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
47726
47727         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
47728         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
47729         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
47730         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
47731         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
47732         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
47733         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
47734         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
47735
47736         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
47737         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
47738
47739         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
47740         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
47741
47742         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
47743         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
47744
47745         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
47746         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
47747         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
47748
47749         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
47750         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
47751         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
47752
47753         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
47754         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
47755         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
47756
47757         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
47758         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
47759         * modules/vasprintf (Depends-on): Add EOVERFLOW.
47760
47761         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
47762         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
47763         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
47764         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
47765         (Depends-on): Add EOVERFLOW.
47766         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
47767         (Depends-on): Add EOVERFLOW.
47768         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47769         (Depends-on): Add EOVERFLOW.
47770         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47771         (Depends-on): Add EOVERFLOW.
47772         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47773         (Depends-on): Add EOVERFLOW.
47774         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47775         (Depends-on): Add EOVERFLOW.
47776         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47777         (Depends-on): Add EOVERFLOW.
47778         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47779         (Depends-on): Add EOVERFLOW.
47780
47781         * lib/sprintf.c (EOVERFLOW): Remove fallback.
47782         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
47783         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
47784
47785         * lib/snprintf.c (EOVERFLOW): Remove fallback.
47786         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
47787         * modules/snprintf (Depends-on): Add EOVERFLOW.
47788
47789         * lib/poll.c (EOVERFLOW): Remove fallback.
47790         * modules/poll (Depends-on): Add EOVERFLOW.
47791
47792         * lib/getugroups.c (EOVERFLOW): Remove fallback.
47793         * modules/getugroups (Depends-on): Add EOVERFLOW.
47794
47795         * lib/getdelim.c (EOVERFLOW): Remove fallback.
47796         * modules/getdelim (Depends-on): Add EOVERFLOW.
47797
47798         * lib/ftell.c (EOVERFLOW): Remove fallback.
47799         * modules/ftell (Depends-on): Add EOVERFLOW.
47800
47801         * lib/fprintf.c (EOVERFLOW): Remove fallback.
47802         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
47803         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
47804
47805         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
47806
47807         * modules/EOVERFLOW-tests: New file.
47808         * tests/test-EOVERFLOW.c: New file.
47809
47810         * modules/EOVERFLOW: New file.
47811         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
47812
47813 2008-03-30  Bruno Haible  <bruno@clisp.org>
47814
47815         Fix bug introduced on 2007-06-10.
47816         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
47817         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
47818
47819 2008-03-30  Bruno Haible  <bruno@clisp.org>
47820
47821         Improve freadseek's efficiency after ungetc.
47822         * lib/freadseek.c: Include freadahead.h.
47823         (freadptrinc): New function, extracted from freadseek.
47824         (freadseek): Use it in a loop. Use freadahead to determine the number
47825         of loop iterations.
47826         * modules/freadseek (Depends-on): Add freadahead.
47827         (configure.ac): Require AC_C_INLINE.
47828
47829 2008-03-30  Bruno Haible  <bruno@clisp.org>
47830
47831         * lib/freadseek.c (freadseek): Don't ignore the return value of
47832         freadptr.
47833
47834 2008-03-29  Eric Blake  <ebb9@byu.net>
47835
47836         Add hex float support.
47837         * modules/strtod (Depends-on): Add c-ctype.
47838         (Link): Mention POW_LIB.
47839         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
47840         whitespace between 'e' and exponent.
47841         * tests/test-strtod.c (main): Enable hex float tests.
47842         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
47843         now provides.
47844
47845         Document various strtod bugs, with some fixes.
47846         * doc/posix-functions/strtod.texi (strtod): Document bugs with
47847         "-0x", "inf", "nan", and hex constants.
47848         * doc/posix-functions/atof.texi (atof): Likewise.
47849         * modules/stdlib (Makefile.am): Support strtod.
47850         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
47851         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
47852         detect additional strtod bugs.
47853         * lib/stdlib.in.h (rpl_strtod): Add declarations.
47854         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
47855         bool where appropriate.  Parse 'inf' and 'nan'.
47856         * tests/test-strtod.c: New file.
47857         * modules/strtod (Depends-on): Add stdbool, stdlib.
47858         (configure.ac): Turn on module indicator.
47859         * modules/strtod-tests: New module.
47860
47861 2008-03-29  Eric Blake  <ebb9@byu.net>
47862
47863         Fix ftell on mingw.
47864         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
47865         * modules/ftell-tests (Depends-on): Add binary-io.
47866         * modules/ftello-tests (Depends-on): Likewise.
47867         * tests/test-ftell.c (main): Enhance test to cover behavior after
47868         ungetc.  Enforce binary mode.
47869         * tests/test-ftello.c (main): Likewise.
47870
47871         Pass test-freadseek on cygwin.
47872         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
47873         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
47874         ungetc buffer.
47875
47876         * tests/test-fflush2.c (main): Fix typo.
47877
47878 2008-03-29  Bruno Haible  <bruno@clisp.org>
47879
47880         * tests/test-fflush2.c (main): Temporarily disable the contents of
47881         this test.
47882         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
47883         Reported by Eric Blake.
47884
47885 2008-03-28  Simon Josefsson  <simon@josefsson.org>
47886
47887         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
47888         (GC_SHA224_DIGEST_SIZE): Add.
47889
47890         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
47891         (gc_hash_digest_length): Likewise.
47892         (gc_hash_buffer): Likewise.
47893
47894 2008-03-25  Bruno Haible  <bruno@clisp.org>
47895
47896         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
47897         detail which gettext release to use.
47898         Reported by Simon Josefsson.
47899
47900 2008-03-26  Jim Meyering  <meyering@redhat.com>
47901
47902         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
47903         * modules/gnumakefile (clean-GNUmakefile): Also, use
47904         test ... && ... || : syntax rather than if-then ... fi.
47905
47906         gnumakefile: Don't double-quote-expand $(VPATH) value.
47907         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
47908
47909 2008-03-24  Eric Blake  <ebb9@byu.net>
47910
47911         Alter GNUmakefile to install into top directory.
47912         * modules/maintainer-makefile: Split, and add dependency...
47913         * modules/gnumakefile: to this new module.
47914         * build-aux/GNUmakefile: Move...
47915         * top/GNUmakefile: ...here.
47916         * build-aux/maint.mk: Move...
47917         * top/maint.mk: ...here.
47918         * MODULES.html.sh (Support for maintaining...): Document new
47919         module.
47920
47921 2008-03-23  Bruno Haible  <bruno@clisp.org>
47922
47923         * gnulib-tool: New options --vc-files, --no-vc-files.
47924         (func_usage): Document them.
47925         (vc_files): New variable.
47926         (func_import): Consider vc_files.
47927         (func_create_testdir): Set vc_files to empty.
47928         Suggested by Jim Meyering and Karl Berry.
47929
47930 2008-03-23  Bruno Haible  <bruno@clisp.org>
47931
47932         Fix regex compilation error on HP-UX 11.
47933         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
47934         * modules/regex (Files): Add m4/mbstate_t.m4.
47935         Reported by Ton Voon <ton.voon@altinity.com>.
47936
47937 2008-03-23  Bruno Haible  <bruno@clisp.org>
47938
47939         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
47940
47941 2008-03-23  Eric Blake  <ebb9@byu.net>
47942             Bruno Haible  <bruno@clisp.org>
47943
47944         Install files from top/ in the destination directory.
47945         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
47946         augmentation also for the files from top/.
47947         (func_import, func_create_testdir): Rewrite file names:
47948         top/filename -> filename.
47949
47950 2008-03-23  Bruno Haible  <bruno@clisp.org>
47951
47952         Tweak "gnulib --version" output.
47953         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
47954
47955 2008-03-23  Bruno Haible  <bruno@clisp.org>
47956
47957         Tweak "gnulib --version" output.
47958         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
47959         rather than contents of ChangeLog, when possible.
47960
47961 2008-03-21  Eric Blake  <ebb9@byu.net>
47962
47963         More --version tweaks.
47964         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
47965         date of last ChangeLog entry.
47966
47967 2008-03-21  Jim Meyering  <meyering@redhat.com>
47968
47969         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
47970
47971 2008-03-20  Eric Blake  <ebb9@byu.net>
47972
47973         VPATH fix.
47974         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
47975
47976 2008-03-20  Simon Josefsson  <simon@josefsson.org>
47977
47978         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
47979         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
47980
47981 2008-03-20  Eric Blake  <ebb9@byu.net>
47982
47983         Sync GNUmakefile with coreutils.
47984         * build-aux/GNUmakefile (have-Makefile): Rename...
47985         (_have-Makefile): ...to this, for namespace consideration.
47986         (GNUmakefile.cfg): Include, if present.
47987         (_autoreconf): Define a default.
47988         (_is-dist-target): New rule for rebuilds to pick up intra-release
47989         version.
47990         (maint-cfg.mk): Rename...
47991         (cfg.mk): ...to this.
47992
47993 2008-03-18  Jim Meyering  <meyering@redhat.com>
47994
47995         New script and module: mktempd
47996         * MODULES.html.sh (maint+release support): Add mktempd.
47997         * build-aux/mktempd: New file.
47998         * modules/mktempd: New file.
47999
48000 2008-03-15  Jim Meyering  <meyering@redhat.com>
48001
48002         Undo last change.
48003         * lib/sha1.c, lib/md5.c: 63 != ~63.
48004         Reported by Andreas Schwab.
48005
48006         sha1.c, md5.c: Hoist a redundant expression.
48007         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
48008         "ctx->buflen" only once, before calling *_process_block.
48009         * lib/md5.c (md5_process_bytes): Likewise.
48010
48011 2008-03-14  Eric Blake  <ebb9@byu.net>
48012
48013         Bump copyright year in files generated by gnulib-tool.
48014         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
48015         gnulib-tool, rather than hard-coding it.
48016
48017         Fix 'gnulib-tool --version' output to work with git.
48018         * gnulib-tool (func_gnulib_dir): New function, extracted from...
48019         (startup): ...here.
48020         (func_version): Use it to invoke git-version-gen, rather than
48021         relying on CVS keyword expansion.  Modernize wording.
48022         (cvsdatestamp, last_checkin_date, version): Kill unused
48023         variables.
48024
48025 2008-03-12  Jim Meyering  <meyering@redhat.com>
48026
48027         Recognize optional cast of the argument to free.
48028         * build-aux/useless-if-before-free: Update regexps.
48029
48030         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
48031
48032 2008-03-11  Bruno Haible  <bruno@clisp.org>
48033
48034         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
48035         by a single package.
48036         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
48037         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
48038         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
48039         Reported by Sam Steingold <sds@gnu.org>.
48040
48041 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48042
48043         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
48044         repositories.
48045
48046 2008-03-11  Bruno Haible  <bruno@clisp.org>
48047
48048         Avoid conflicts between local macro definitions.
48049         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
48050         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
48051
48052 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
48053             Bruno Haible  <bruno@clisp.org>
48054
48055         Make va_copy work with some version of xlc on AIX 5.1.
48056         * lib/stdarg.in.h: New file.
48057         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
48058         On AIX, use a <stdarg.h> file substitute.
48059         * modules/stdarg (Files): Add lib/stdarg.in.h.
48060         (Depends-on): Add include_next.
48061         (Makefile.am): Build a stdarg.h substitute if requested.
48062         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
48063
48064 2008-03-10  Bruno Haible  <bruno@clisp.org>
48065
48066         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
48067         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48068         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
48069
48070 2008-03-10  Bruno Haible  <bruno@clisp.org>
48071
48072         * modules/stdlib (Depends-on): Add include_next, remove
48073         absolute-header.
48074
48075 2008-03-09  Bruno Haible  <bruno@clisp.org>
48076
48077         * lib/freadahead.h (freadahead): Document more precisely.
48078         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
48079         the sum of both buffer sizes.
48080         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
48081         * NEWS: Document the change.
48082
48083 2008-03-09  Bruno Haible  <bruno@clisp.org>
48084
48085         Extend freadptr to return also the buffer size.
48086         * lib/freadptr.h (freadptr): Add sizep argument.
48087         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
48088         (freadptr): Add sizep argument. Determine buffer size like freadahead
48089         does.
48090         * tests/test-freadptr.c: Don't include freadahead.h.
48091         (main): Adapt for new calling convention of freadptr.
48092         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
48093         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
48094         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
48095         tests/test-freadptr2.sh.
48096         (Depends): Remove freadahead.
48097         (TESTS): Add test-freadptr2.sh.
48098         (check_PROGRAMS): Add test-freadptr2.
48099
48100 2008-03-09  Bruno Haible  <bruno@clisp.org>
48101
48102         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
48103         Report and solution by Simon Josefsson.
48104
48105 2008-03-06  Bruno Haible  <bruno@clisp.org>
48106
48107         Make fflush after ungetc work on BSD platforms.
48108         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
48109         * tests/test-fflush2.c: New file.
48110         * tests/test-fflush2.sh: New file.
48111         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
48112         tests/test-fflush2.c.
48113         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
48114         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
48115
48116 2008-03-06  Eric Blake  <ebb9@byu.net>
48117
48118         Likewise for ftello.
48119         * modules/ftello (Dependencies): Add extensions.
48120         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
48121
48122 2008-03-06  Bruno Haible  <bruno@clisp.org>
48123
48124         * modules/fseeko (Dependencies): Add extensions.
48125         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
48126         Needed on glibc systems.
48127
48128 2008-03-06  Bruno Haible  <bruno@clisp.org>
48129
48130         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
48131         email address.
48132         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48133
48134 2008-03-06  Bruno Haible  <bruno@clisp.org>
48135
48136         * users.txt: Add libgnupdf.
48137
48138 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
48139
48140         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
48141         (Header File Substitutes, Function Substitutes,
48142         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
48143         (Build robot for gnulib): Fix typo.
48144
48145 2008-03-06  Bruno Haible  <bruno@clisp.org>
48146
48147         * doc/gnulib-tool.texi (VCS Issues): Small updates.
48148         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48149
48150 2008-03-06  Bruno Haible  <bruno@clisp.org>
48151
48152         * doc/func.texi: New file, extracted from doc/gnulib.texi.
48153         * doc/gnulib.texi: Include it.
48154
48155 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48156
48157         * modules/func (License): Change license to unlimited; there was
48158         no LGPL parts in the module anyway.
48159
48160 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48161
48162         * modules/__func__: Renamed to modules/func.
48163         * modules/__func__-tests: Renamed to modules/func-tests.
48164         * tests/test-__func__.c: Renamed to tests/test-func.c.
48165         * m4/__func__.m4: Renamed to m4/func.m4.
48166         * doc/gnulib.texi (__func__): Section renamed to func.
48167         Suggested by Eric Blake <ebb9@byu.net>.
48168
48169 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48170
48171         * doc/gnulib.texi (__func__): Use C99 terminology when talking
48172         about __func__.  Make example self-contained.  Suggested by Eric
48173         Blake <ebb9@byu.net>.
48174
48175         * tests/test-__func__.c (main): Avoid extraneous () around __func.
48176         Suggested by Eric Blake <ebb9@byu.net>.
48177
48178 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48179
48180         * modules/__func__: New file.
48181         * modules/__func__-tests: New file.
48182         * tests/test-__func__.c: New file.
48183         * m4/__func__.m4: New file.
48184         * doc/gnulib.texi (__func__): Document __func__ module.
48185
48186 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48187
48188         * modules/byteswap (License): Re-license as LGPLv2+.
48189
48190 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48191
48192         * doc/Makefile: Add pdf target.
48193
48194 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48195
48196         * modules/inline (License): Use 'unlimited', since there are only
48197         *.m4 files in this module.
48198
48199 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
48200             Bruno Haible  <bruno@clisp.org>
48201
48202         Add support for HP C 7.1 on OpenVMS 8.3.
48203         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
48204
48205 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
48206
48207         Update VMS specifics.
48208         * lib/getopt.c [VMS]: Remove include of unixlib.h.
48209
48210 2008-03-02  Jim Meyering  <meyering@redhat.com>
48211
48212         Remove the last dependency on the "free" module.
48213         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
48214         Reported by Bob Proulx.
48215
48216         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
48217
48218         Remove useless "if" tests before free.  Deprecate "free" module.
48219         * doc/posix-functions/free.texi: Mention that this
48220         module is no longer useful.
48221         * modules/free (Notice): Say this module is obsolete.
48222         * modules/readutmp (Depends-on): Remove free.
48223         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
48224         * lib/putenv.c (putenv): Likewise.
48225         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
48226         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
48227         * tests/test-c-strcasestr.c (main): Likewise.
48228         * tests/test-c-strstr.c (main): Likewise.
48229         * tests/test-mbscasestr1.c (main): Likewise.
48230         * tests/test-mbscasestr2.c (main): Likewise.
48231         * tests/test-mbsstr1.c (main): Likewise.
48232         * tests/test-mbsstr2.c (main): Likewise.
48233         * tests/test-memmem.c (main): Likewise.
48234         * tests/test-strcasestr.c (main): Likewise.
48235         * tests/test-striconv.c (main): Likewise.
48236         * tests/test-striconveh.c (main): Likewise.
48237         * tests/test-striconveha.c (main): Likewise.
48238         * tests/test-strstr.c (main): Likewise.
48239
48240         * build-aux/git-version-gen: Adjust a comment and the Usage string.
48241
48242         bootstrap: sync from coreutils again
48243         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
48244
48245 2008-03-01  Jim Meyering  <meyering@redhat.com>
48246
48247         bootstrap: sync from coreutils
48248         * build-aux/bootstrap (update_po_files): Copy a .po file into place
48249         also when the target doesn't exist.
48250
48251 2008-03-01  Eric Blake  <ebb9@byu.net>
48252
48253         Fix bugs in last patch.
48254         * lib/memchr2.c (memchr2): Fix typo.
48255         * tests/test-memchr2.c: Test previous bug, and don't use GNU
48256         extension.
48257         Reported by Bruce Korb.
48258
48259         New module 'memchr2'.
48260         * modules/memchr2: New file.
48261         * modules/memchr2-tests: Likewise.
48262         * lib/memchr2.h: Likewise.
48263         * lib/memchr2.c: Likewise, based on memchr.c.
48264         * tests/test-memchr2.c: New test.
48265         * MODULES.html.sh (String handling): Add memchr2.
48266
48267 2008-02-29  Bruno Haible  <bruno@clisp.org>
48268
48269         * modules/freadseek-tests: New file.
48270         * tests/test-freadseek.sh: New file.
48271         * tests/test-freadseek.c: New file.
48272
48273         New module 'freadseek'.
48274         * modules/freadseek: New file.
48275         * lib/freadseek.h: New file.
48276         * lib/freadseek.c: New file.
48277         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
48278
48279 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
48280
48281         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
48282         wydawca.
48283
48284         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
48285         program_invocation_name and program_invocation_short_name are
48286         present.
48287
48288 2008-02-28  Bruno Haible  <bruno@clisp.org>
48289
48290         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
48291         * tests/test-freadptr.sh: Also test non-seekable stdin.
48292
48293 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
48294
48295         * build-aux/bootstrap (source_base, m4_base)
48296         (doc_base, tests_base): New variables.
48297         (gnulib_tool_options): Do not hardcode base directories, use
48298         the above variables instead.
48299
48300 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
48301
48302         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
48303
48304 2008-02-28  Bruno Haible  <bruno@clisp.org>
48305
48306         * modules/freadptr-tests: New file.
48307         * tests/test-freadptr.sh: New file.
48308         * tests/test-freadptr.c: New file.
48309
48310         New module 'freadptr'.
48311         * modules/freadptr: New file.
48312         * lib/freadptr.h: New file.
48313         * lib/freadptr.c: New file.
48314         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
48315
48316 2008-02-26  Karl Berry  <karl@freefriends.org>
48317
48318         Sync from Libtool:
48319         * libltdl/argz.c (argz_add, argz_count): New functions.
48320         * libltdl/argz.in.h: Declare them.
48321         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
48322
48323 2008-02-22  Bruno Haible  <bruno@clisp.org>
48324
48325         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
48326         is a pointer type.  Needed for HP-UX 10.
48327         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
48328         * doc/posix-functions/gmtime_r.texi: Likewise.
48329         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
48330
48331 2008-02-24  Bruno Haible  <bruno@clisp.org>
48332
48333         * modules/environ-tests: New file.
48334         * tests/test-environ.c: New file.
48335
48336         New module 'environ'.
48337         * modules/environ: New file.
48338         * lib/unistd.in.h (environ): New declaration.
48339         * m4/environ.m4: New file.
48340         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
48341         after use.
48342         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
48343         HAVE_DECL_ENVIRON.
48344         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
48345         HAVE_DECL_ENVIRON.
48346         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
48347         wrong claim that 'environ' is missing on some systems.
48348         * modules/execute (Depends-on): Add environ.
48349         * lib/execute.c (environ): Remove fallback declaration.
48350         * modules/pipe (Depends-on): Add environ.
48351         * lib/pipe.c (environ): Remove fallback declaration.
48352         * modules/setenv (Depends-on): Add environ.
48353         * lib/setenv.c (environ): Remove fallback declaration.
48354         * modules/unsetenv (Depends-on): Add environ.
48355         * lib/unsetenv.c (environ): Remove fallback declaration.
48356         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
48357         m4/environ.m4.
48358         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
48359         (gl_PREREQ_UNSETENV): Likewise.
48360
48361 2008-02-24  Bruno Haible  <bruno@clisp.org>
48362
48363         * doc/posix-functions/environ.texi: Document the MacOS X problem.
48364
48365 2008-02-20  Bob Proulx  <bob@proulx.com>
48366
48367         Enable use of older two part flavor 'git describe'.
48368         * build-aux/git-version-gen: If using the older two part flavor of
48369         git version then recreate the third part now present in the
48370         newer three part flavor of git describe.
48371
48372 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
48373
48374         * lib/fts.c (fts_build): Typo correction to comment.
48375
48376 2008-02-17  Bruno Haible  <bruno@clisp.org>
48377
48378         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
48379         generating no-op conflicts.
48380
48381 2008-02-17  Bruno Haible  <bruno@clisp.org>
48382
48383         Speed up by 10%.
48384         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
48385         result_entries, rather than an index-based loop.
48386
48387 2008-02-17  Bruno Haible  <bruno@clisp.org>
48388
48389         Speed up by 25%.
48390         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
48391         'hashcode_cached'.
48392         (entry_create): New function.
48393         (entry_hashcode): Use the cached hashcode if possible.
48394         (read_changelog_file, try_split_merged_entry): Use entry_create.
48395
48396 2008-02-17  Bruno Haible  <bruno@clisp.org>
48397
48398         Speed up from O(n^2) to O(n) for long ChangeLog files.
48399         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
48400         (read_changelog_file): Change implementation of entries_reversed list
48401         to rbtreehash.
48402         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
48403
48404 2008-02-17  Bruno Haible  <bruno@clisp.org>
48405
48406         New option --split-merged-entry.
48407         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
48408         (find_paragraph_end, try_split_merged_entry): New functions.
48409         (long_options): Add option --split-merged-entry.
48410         (usage): Document option --split-merged-entry.
48411         (main): Implement option --split-merged-entry.
48412         Reported by Eric Blake.
48413
48414 2008-02-17  Bruno Haible  <bruno@clisp.org>
48415
48416         * lib/git-merge-changelog.c: Include c-strstr.h.
48417         (main): Support the "git pull --rebase" situation.
48418         * modules/git-merge-changelog (Depends-on): Add c-strstr.
48419         Reported by Eric Blake.
48420
48421 2008-02-16  Eric Blake  <ebb9@byu.net>
48422
48423         Avoid doubling \ in common case of "c-maybe" quoting style.
48424         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
48425         eliding outer quotes.
48426         * lib/quotearg.h: Document this.
48427         * tests/test-quotearg.c (result_strings, inputs, results_g)
48428         (flag_results, locale_results): Test it by adding a new string to
48429         each test group.
48430         (compare_strings): Test new string.
48431
48432 2008-02-13  Eric Blake  <ebb9@byu.net>
48433
48434         Avoid trigraph quoting in default output.
48435         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
48436         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
48437         unless explicitly requested.
48438         * tests/test-quotearg.c (flag_results, main): Add additional tests.
48439
48440 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
48441
48442         Don't rely on signed integer overflowing to negative value.
48443         * lib/getugroups.c (getugroups): Include <limits.h>.
48444         Instead, compare against INT_MAX, and increment only if the test passes.
48445
48446 2008-02-13  Jim Meyering  <meyering@redhat.com>
48447         and Eric Blake  <ebb9@byu.net>
48448
48449         Avoid shadowing warning and compile errors on Linux.
48450         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
48451         forwarding macros on Linux.
48452         (dcgettext): Define a stub, for Linux.
48453         (results_g, main): Avoid warnings.
48454
48455 2008-02-12  Eric Blake  <ebb9@byu.net>
48456
48457         Silence warning in last patch.
48458         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
48459
48460         Quotearg part 4: add tests, fix c-maybe colon quoting.
48461         * lib/quotearg.h: Improve documentation.
48462         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
48463         escapes when adding outer quotes.  When quoting trigraphs, use
48464         valid C notation.  When quoting NUL, omit extra characters if next
48465         character is not digit.  Alter prototype.
48466         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
48467         callers.
48468         * modules/quotearg-tests: New module.
48469         * tests/test-quotearg.c: New test.
48470
48471 2008-02-07  Eric Blake  <ebb9@byu.net>
48472
48473         Quotearg part 3: add flag to control outer quote elision.
48474         * lib/quotearg.h (c_maybe_quoting_style): New style.
48475         (enum quoting_flags): Better documentation of flags.
48476         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
48477         c-maybe style.
48478         (quotearg_buffer_restyled): Handle new flag to elide outer
48479         quotes.
48480
48481         Quotearg part 2: add flag that can control NUL elision.
48482         * lib/quotearg.h (set_quoting_flags): New prototype.
48483         * lib/quotearg.c (struct quoting_options): Add flag field.
48484         (set_quoting_flags): New function.
48485         (quotearg_buffer_restyled): Add flags parameter.
48486         (quotearg_alloc_mem): Set the flag if length cannot be returned.
48487         (quotearg_n_options): Set the flag, since length cannot be
48488         returned.
48489         (quoting_options_from_style): Default flags correctly.
48490
48491         Quotearg part 1: more wrappers, restore quotearg_char state.
48492         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
48493         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
48494         (quotearg_colon_mem): New wrappers.
48495         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
48496         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
48497         functions.
48498         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
48499         (quotearg_colon_mem): New functions.
48500
48501 2008-02-11  Bruno Haible  <bruno@clisp.org>
48502
48503         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
48504         library in the current directory: it does not work with parallel make.
48505         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48506
48507 2008-02-11  Bruno Haible  <bruno@clisp.org>
48508
48509         * .gitattributes: New file.
48510
48511 2008-02-11  Jim Meyering  <meyering@redhat.com>
48512
48513         useless-if-before-free: Fix reversed exit values.
48514         * build-aux/useless-if-before-free: Use correct values
48515         for EXIT_MATCH and EXIT_NO_MATCH.
48516
48517         * build-aux/useless-if-before-free: Close stdout carefully.
48518
48519 2008-02-10  Bruno Haible  <bruno@clisp.org>
48520
48521         New module 'git-merge-changelog'.
48522         * modules/git-merge-changelog: New file.
48523         * lib/git-merge-changelog.c: New file.
48524
48525 2008-02-10  Jim Meyering  <meyering@redhat.com>
48526
48527         useless-if-before-free: New option: --list (-l).
48528
48529         useless-if-before-free: Don't exit immediately upon open failure.
48530         * build-aux/useless-if-before-free: Exit 2 for errors.
48531         Upon failure to open a file, don't exit immediately.
48532         Rather, just warn and continue with any remaining files.
48533
48534 2008-02-10  Bruno Haible  <bruno@clisp.org>
48535
48536         New abstract list operation 'node_set_value'.
48537         * lib/gl_list.h (gl_list_node_set_value): New function.
48538         (struct gl_list_implementation): New field node_set_value.
48539         * lib/gl_list.c (gl_list_node_set_value): New function.
48540         * lib/gl_array_list.c (gl_array_node_set_value): New function.
48541         (gl_array_list_implementation): Update.
48542         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
48543         (gl_carray_list_implementation): Update.
48544         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
48545         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
48546         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
48547         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
48548         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
48549         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
48550         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
48551         Update.
48552         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
48553         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
48554         (gl_sublist_list_implementation): Update.
48555
48556 2008-02-10  Bruno Haible  <bruno@clisp.org>
48557
48558         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
48559         Needed when ELEMENT is #defined to 'some_type *'.
48560
48561 2008-02-10  Jim Meyering  <meyering@redhat.com>
48562
48563         New script and module: useless-if-before-free
48564         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
48565         * build-aux/useless-if-before-free: New file.
48566         * modules/useless-if-before-free: New file.
48567
48568         * build-aux/gitlog-to-changelog: Use committer date, not author date.
48569
48570         xstrtol_error: Fix typo.
48571         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
48572         s/exit_failure/exit_status/.
48573
48574 2008-02-09  Jim Meyering  <meyering@redhat.com>
48575
48576         New script and module: gitlog-to-changelog
48577         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
48578         * modules/gitlog-to-changelog: New file.
48579         * build-aux/gitlog-to-changelog: New file.
48580
48581 2008-02-08  Jim Meyering  <meyering@redhat.com>
48582
48583         Avoid two "parameter unused" warnings.
48584         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
48585         Mark "st" as used.
48586
48587         Use "git COMMAND", not "git-COMMAND".
48588         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
48589         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
48590         * build-aux/git-version-gen: Use "git status", not "git-status".
48591
48592 2008-02-07  Bruno Haible  <bruno@clisp.org>
48593
48594         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
48595         Avoids a crash on Windows Vista.
48596         Reported by Adam Strzelecki <ono@java.pl> via
48597         Simon Josefsson <simon@josefsson.org>.
48598
48599 2008-02-06  Bruno Haible  <bruno@clisp.org>
48600
48601         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
48602         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
48603         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
48604         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
48605         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48606         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48607         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
48608         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
48609         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48610         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48611         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48612         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48613         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48614         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48615         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48616         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
48617         left-adjust flag.
48618         * tests/test-snprintf-posix.h (test_function): Likewise.
48619         * tests/test-sprintf-posix.h (test_function): Likewise.
48620         * tests/test-vasprintf-posix.c (test_function): Likewise.
48621         * doc/posix-functions/fprintf.texi: Update.
48622         * doc/posix-functions/printf.texi: Update.
48623         * doc/posix-functions/snprintf.texi: Update.
48624         * doc/posix-functions/sprintf.texi: Update.
48625         * doc/posix-functions/vfprintf.texi: Update.
48626         * doc/posix-functions/vprintf.texi: Update.
48627         * doc/posix-functions/vsnprintf.texi: Update.
48628         * doc/posix-functions/vsprintf.texi: Update.
48629         Reported by Peter Fales <psfales@alcatel-lucent.com>.
48630
48631 2008-02-06  Bruno Haible  <bruno@clisp.org>
48632
48633         Fix bug introduced on 2008-01-26.
48634         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
48635
48636 2008-02-06  Bruno Haible  <bruno@clisp.org>
48637
48638         Fix bug introduced on 2007-06-10.
48639         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
48640         !NEED_PRINTF_FLAG_ZERO.
48641
48642 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
48643
48644         getloadavg: use libperfstat on AIX5
48645         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
48646
48647 2008-02-03  Bruno Haible  <bruno@clisp.org>
48648
48649         * lib/diffseq.h: Add comments about required #includes.
48650         Reported by Michael Biggs <gnulib@doubleplum.net>.
48651
48652 2008-02-01  Bruno Haible  <bruno@clisp.org>
48653
48654         * users.txt: Add gnuit.
48655
48656 2008-01-31  Bruno Haible  <bruno@clisp.org>
48657
48658         * lib/md4.c (set_uint32): Mark as inline.
48659         * lib/md5.c (set_uint32): Likewise.
48660         * lib/sha1.c (set_uint32): Likewise.
48661         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
48662         * m4/md5.m4 (gl_MD5): Likewise.
48663         * m4/sha1.m4 (gl_SHA1): Likewise.
48664
48665 2008-01-31  Jim Meyering  <meyering@redhat.com>
48666
48667         Use "sizeof VAR", rather than a literal "4".
48668         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
48669         * lib/md4.c (md4_read_ctx): Likewise.
48670         * lib/sha1.c (sha1_read_ctx): Likewise.
48671
48672 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48673
48674         * tests/test-sha1.c: New file, based on test-md5.c.
48675
48676         * modules/crypto/sha1-tests: New file.
48677
48678 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48679
48680         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
48681
48682 2008-01-31  Jim Meyering  <meyering@redhat.com>
48683
48684         Prefer "sizeof v" over the equivalent "4".
48685         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
48686         * lib/md5.c (set_uint32): Likewise.
48687         * lib/sha1.c (set_uint32): Likewise.
48688
48689 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48690
48691         * lib/sha1.c (set_uint32): Mark function as static.
48692
48693 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48694
48695         md2: clarify comments to say that alignment is not required.
48696         * lib/md2.h: Remove warning about alignment in comment.
48697         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
48698         never been required.
48699
48700 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48701
48702         md4: adapt alignment constraint fix from sha1.
48703         * lib/md4.c (set_uint32): New function, from sha1.c
48704         (md4_read_ctx): Use it.
48705         (md4_finish_ctx): Doc fix.
48706         * lib/md4.h: Doc fix.
48707
48708 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48709
48710         md5: adapt alignment constraint fix from sha1.
48711         * lib/md5.c (set_uint32): New function, from sha1.c
48712         (md5_read_ctx): Use it.
48713         (md5_finish_ctx): Doc fix.
48714         * lib/md5.h: Doc fix.
48715
48716 2008-01-30  Peter Palfrader  <weasel@debian.org>
48717
48718         sha1: remove the result buffer alignment constraint
48719         * lib/sha1.c (set_uint32): New function.
48720         (sha1_read_ctx): Rewrite to remove the result buffer alignment
48721         constraint.
48722         (sha1_finish_ctx): Remove comment warning about alignment constraint.
48723         * lib/sha1.h: Likewise.
48724
48725 2008-01-30  Andreas Schwab  <schwab@suse.de>
48726             Bruno Haible  <bruno@clisp.org>
48727
48728         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
48729         correct definition of LDBL_MIN_EXP.
48730
48731 2008-01-30  Karl Berry  <karl@gnu.org>
48732
48733         * config/srclist-update: try to preserve x bit on updates.
48734         * config/srclistvars.sh: update for karl.
48735
48736 2008-01-29  Jim Meyering  <meyering@redhat.com>
48737
48738         vasnprintf.c: Avoid warning about unused label
48739         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
48740         "overflow" label definition and associated code with the
48741         same cpp condition that guards the sole use of that label.
48742
48743 2008-01-26  Bruno Haible  <bruno@clisp.org>
48744
48745         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
48746         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
48747         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
48748         * lib/isnanl-nolibm.h (isnanl): Likewise.
48749         Reported by Paul Eggert <eggert@cs.ucla.edu>.
48750
48751 2008-01-26  Bruno Haible  <bruno@clisp.org>
48752
48753         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
48754         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
48755
48756 2008-01-26  Bruno Haible  <bruno@clisp.org>
48757
48758         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
48759         GCC >= 4.0 built-in.
48760         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
48761
48762 2008-01-26  Bruno Haible  <bruno@clisp.org>
48763
48764         Rename isnan, applicable to 'double' only, to isnand.
48765         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
48766         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
48767         (configure.ac): Update.
48768         (Include): Replace "isnan.h" with "isnand.h".
48769         * m4/isnand.m4: Renamed from m4/isnan.m4.
48770         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
48771         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
48772         instead of isnan.c.
48773         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
48774         instead of HAVE_ISNAN_IN_LIBC.
48775         (isnand): Renamed from isnan.
48776         * lib/isnand.c: New file.
48777         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
48778         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
48779         (Makefile.am): Update.
48780         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
48781         Include isnand.h instead of isnan.h.
48782         (main): Test isnand instead of isnan.
48783         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
48784         isnan-nolibm.
48785         * modules/frexp (Depends-on): Likewise.
48786         * modules/frexp-tests (Depends-on): Likewise.
48787         * modules/frexp-nolibm (Depends-on): Likewise.
48788         * modules/frexp-nolibm-tests (Depends-on): Likewise.
48789         * modules/isfinite (Depends-on): Likewise.
48790         * modules/round-tests (Depends-on): Likewise.
48791         * modules/signbit (Depends-on): Likewise.
48792         * modules/signbit-tests (Depends-on): Likewise.
48793         * modules/snprintf-posix (Depends-on): Likewise.
48794         * modules/sprintf-posix (Depends-on): Likewise.
48795         * modules/trunc-tests (Depends-on): Likewise.
48796         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48797         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48798         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48799         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48800         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48801         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48802         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48803         * modules/vasnprintf-posix (Depends-on): Likewise.
48804         * modules/vasprintf-posix (Depends-on): Likewise.
48805         * modules/vfprintf-posix (Depends-on): Likewise.
48806         * modules/vsnprintf-posix (Depends-on): Likewise.
48807         * modules/vsprintf-posix (Depends-on): Likewise.
48808         * lib/frexp.c: Include isnand.h instead of isnan.h.
48809         (ISNAN): Set to isnand instead of isnan.
48810         * lib/isfinite.c: Include isnand.h instead of isnan.h.
48811         (gl_isfinited): Use isnand instead of isnan.
48812         * lib/signbitd.c: Include isnand.h instead of isnan.h.
48813         (gl_signbitd): Use isnand instead of isnan.
48814         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
48815         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
48816         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
48817         (main): Use isnand instead of isnan.
48818         * tests/test-round1.c: Include isnand.h.
48819         (main): Use isnand instead of isnan.
48820         * tests/test-round2.c: Include isnand.h instead of isnan.h.
48821         (ISNAN): Set to isnand instead of isnan.
48822         * tests/test-trunc1.c: Include isnand.h.
48823         (main): Use isnand instead of isnan.
48824         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
48825         (equal): Use isnand instead of isnan.
48826         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
48827         isnand-nolibm.
48828         * NEWS: Mention the change.
48829
48830 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
48831             Bruno Haible  <bruno@clisp.org>
48832
48833         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
48834         the GCC builtins for signbits are present and set
48835         REPLACE_SIGNBIT_USING_GCC if so.
48836         * lib/math.in.h (signbit): Define using GCC builtins if
48837         REPLACE_SIGNBIT_USING_GCC is set.
48838         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
48839         REPLACE_SIGNBIT_USING_GCC.
48840         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
48841
48842 2008-01-25  Jim Meyering  <meyering@redhat.com>
48843
48844         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
48845         * lib/poll.c: Include <config.h>, not "config.h".
48846         * tests/test-getaddrinfo.c: Likewise.
48847
48848 2008-01-25  Simon Josefsson  <simon@josefsson.org>
48849
48850         * modules/sockets-tests: New file.
48851
48852 2008-01-24  Simon Josefsson  <simon@josefsson.org>
48853
48854         * modules/sockets: New module, can be used to call WSA_Startup and
48855         WSA_Cleanup when needed.
48856
48857         * lib/sockets.h, lib/sockets.c: New files.
48858
48859         * m4/sockets.m4: New file.
48860
48861         * tests/test-sockets.c: New file.
48862
48863 2008-01-19  Bruno Haible  <bruno@clisp.org>
48864
48865         * doc/posix-headers: Renamed from doc/headers.
48866         * doc/posix-functions: Renamed from doc/functions.
48867         * doc/gnulib.texi: Update.
48868
48869 2008-01-19  Bruno Haible  <bruno@clisp.org>
48870
48871         * doc/glibc-functions/strcasestr.texi: Include contents of
48872         doc/functions/strcasestr.texi, fixing the list of platforms.
48873         * doc/functions/strcasestr.texi: Remove file.
48874
48875 2008-01-19  Bruno Haible  <bruno@clisp.org>
48876
48877         * doc/glibc-functions/memmem.texi: Include contents of
48878         doc/functions/memmem.texi.
48879         * doc/functions/memmem.texi: Remove file.
48880
48881 2008-01-18  Bruno Haible  <bruno@clisp.org>
48882
48883         * doc/glibc-functions/*.texi: New files.
48884         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
48885         to use the new files.
48886
48887 2008-01-17  Bruno Haible  <bruno@clisp.org>
48888
48889         * tests/test-gethostname.c (main): Fix printf statement.
48890
48891 2008-01-17  Simon Josefsson  <simon@josefsson.org>
48892
48893         * modules/gethostname-tests: New file.
48894
48895         * tests/test-gethostname.c: New file.
48896
48897 2008-01-17  Simon Josefsson  <simon@josefsson.org>
48898
48899         * lib/gethostname.c: Include string.h unconditionally, strncpy is
48900         used by the UNAME case.  Reported by Bruno Haible
48901         <bruno@clisp.org>.
48902
48903 2008-01-17  Eric Blake  <ebb9@byu.net>
48904
48905         Convert c-strcasestr to be more efficient.
48906         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
48907         (Depends-on): Add c-strcase, remove malloca, strnlen.
48908         * tests/test-c-strcasestr.c (main): Enhance test.
48909         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
48910
48911 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
48912
48913         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
48914         Use it in creating po/Makevars.
48915
48916 2008-01-15  Simon Josefsson  <simon@josefsson.org>
48917
48918         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
48919         Applications that requires it should initialize libgcrypt
48920         manually.
48921
48922 2008-01-16  Simon Josefsson  <simon@josefsson.org>
48923
48924         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
48925
48926 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
48927
48928         Fix problem with getdate on mingw32 reported by Simon Josefsson
48929         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
48930         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
48931         tzname", when deciding whether to declare tzname.
48932         * lib/strftime.c (tzname): Likewise.
48933
48934 2008-01-15  Bruno Haible  <bruno@clisp.org>
48935
48936         Work around a MacOS X 10.5 bug in frexpl().
48937         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
48938         * doc/functions/frexpl.texi: Document the bug.
48939         Reported by Elias Pipping <pipping@gentoo.org>.
48940
48941 2008-01-14  Eric Blake  <ebb9@byu.net>
48942
48943         Touch up previous patch.
48944         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
48945         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
48946
48947         Convert strcasestr module to use Two-Way algorithm.
48948         * modules/strcasestr-simple: New module, based on the old
48949         strcasestr, but with Two-Way rather than KMP.
48950         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
48951         * lib/string.in.h (rpl_strcasestr): Declare.
48952         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
48953         performance.
48954         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
48955         * modules/string (Makefile.am): Support strcasestr.
48956         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
48957         * modules/strcasestr-tests (Depends-on): Check for alarm.
48958         * tests/test-strcasestr.c: Augment test.
48959         * lib/str-two-way.h: Clean up stray macro.
48960         * NEWS: Document new module.
48961         * MODULES.html.sh (string handling): Likewise.
48962         * doc/functions/strcasestr.texi: New file.
48963         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
48964         here, since it is not a POSIX function.
48965
48966 2008-01-14  Colin Watson  <cjwatson@debian.org>
48967             Bruno Haible  <bruno@clisp.org>
48968
48969         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
48970         works fine; if not, set REPLACE_STRSIGNAL.
48971         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
48972         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48973         REPLACE_STRSIGNAL.
48974         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
48975         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
48976         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
48977
48978 2008-01-14  Bruno Haible  <bruno@clisp.org>
48979
48980         * modules/strsignal (Include): Change to <string.h>.
48981
48982 2008-01-14  Colin Watson  <cjwatson@debian.org>
48983
48984         * modules/argp (Notice): Add a notice recommending to change
48985         XGETTEXT_OPTIONS.
48986         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
48987
48988 2008-01-13  Colin Watson  <cjwatson@debian.org>
48989
48990         * modules/strsignal-tests: New file.
48991         * tests/test-strsignal.c: New file.
48992
48993         * lib/strsignal.c: New file, from glibc with modifications.
48994         * lib/siglist.h: New file, from glibc with modifications.
48995         * lib/string.in.h (strsignal): New declaration.
48996         * m4/strsignal.m4: New file.
48997         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48998         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
48999         * modules/strsignal: New file.
49000         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
49001         HAVE_DECL_STRSIGNAL.
49002
49003 2008-01-13  Bruno Haible  <bruno@clisp.org>
49004
49005         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
49006         locale encoding is not ASCII. Needed for OpenBSD 4.0.
49007         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
49008         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
49009
49010 2008-01-13  Bruno Haible  <bruno@clisp.org>
49011
49012         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
49013         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
49014         * lib/argp.h (__attribute__): Likewise.
49015         * lib/c-stack.c (__attribute__): Likewise.
49016         * lib/error.h (__attribute__): Likewise.
49017         * lib/fts.c (__attribute__): Likewise.
49018         * lib/openat.h (__attribute__): Likewise.
49019         * lib/stdio.in.h (__attribute__): Likewise.
49020         * lib/string.in.h (__attribute__): Likewise.
49021         * lib/utimens.c (__attribute__): Likewise.
49022         * lib/vasnprintf.h (__attribute__): Likewise.
49023         * lib/xalloc.h (__attribute__): Likewise.
49024         * lib/xprintf.h (__attribute__): Likewise.
49025         * lib/xstrtol.h (__attribute__): Likewise.
49026         * lib/xvasprintf.h (__attribute__): Likewise.
49027
49028 2008-01-12  Bruno Haible  <bruno@clisp.org>
49029
49030         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
49031         * doc/glibc-headers/a.out.texi: New file.
49032         * doc/glibc-headers/aliases.texi: New file.
49033         * doc/glibc-headers/alloca.texi: New file.
49034         * doc/glibc-headers/ar.texi: New file.
49035         * doc/glibc-headers/argp.texi: New file.
49036         * doc/glibc-headers/argz.texi: New file.
49037         * doc/glibc-headers/byteswap.texi: New file.
49038         * doc/glibc-headers/crypt.texi: New file.
49039         * doc/glibc-headers/endian.texi: New file.
49040         * doc/glibc-headers/envz.texi: New file.
49041         * doc/glibc-headers/err.texi: New file.
49042         * doc/glibc-headers/error.texi: New file.
49043         * doc/glibc-headers/execinfo.texi: New file.
49044         * doc/glibc-headers/fpu_control.texi: New file.
49045         * doc/glibc-headers/fstab.texi: New file.
49046         * doc/glibc-headers/fts.texi: New file.
49047         * doc/glibc-headers/getopt.texi: New file.
49048         * doc/glibc-headers/ieee754.texi: New file.
49049         * doc/glibc-headers/ifaddrs.texi: New file.
49050         * doc/glibc-headers/libintl.texi: New file.
49051         * doc/glibc-headers/mcheck.texi: New file.
49052         * doc/glibc-headers/mntent.texi: New file.
49053         * doc/glibc-headers/obstack.texi: New file.
49054         * doc/glibc-headers/paths.texi: New file.
49055         * doc/glibc-headers/printf.texi: New file.
49056         * doc/glibc-headers/pty.texi: New file.
49057         * doc/glibc-headers/resolv.texi: New file.
49058         * doc/glibc-headers/shadow.texi: New file.
49059         * doc/glibc-headers/sysexits.texi: New file.
49060         * doc/glibc-headers/ttyent.texi: New file.
49061
49062 2008-01-12  Jim Meyering  <meyering@redhat.com>
49063
49064         announce-gen: emit Gnulib's git-based version string.
49065         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
49066         New option --gnulib-version=V, where V is expected to be
49067         the output of running git describe in the gnulib directory.
49068         (get_tool_versions): Request feedback on xdelta.  I suspect it's
49069         not useful, and plan to stop publishing an xdelta file with each
49070         coreutils release.
49071
49072         * build-aux/announce-gen: Also check for lzma-compressed files.
49073
49074 2008-01-11  Bruno Haible  <bruno@clisp.org>
49075
49076         * tests/test-memmem.c (main): Increase maximum allowed time.
49077         * tests/test-strstr.c (main): Likewise.
49078
49079 2008-01-11  Bruno Haible  <bruno@clisp.org>
49080
49081         * doc/functions/memmem.texi: Add more precisions about platforms.
49082         * doc/functions/strstr.texi: Likewise.
49083
49084 2008-01-10  Eric Blake  <ebb9@byu.net>
49085
49086         * m4/strstr.m4: Delete cruft from copy-n-paste.
49087         Reported by Bruno Haible.
49088
49089 2008-01-10  Bruno Haible  <bruno@clisp.org>
49090
49091         Make c-strstr rely on strstr.
49092         * lib/c-strstr.c: Don't include str-kmp.h.
49093         (c_strstr): Define in terms of strstr.
49094         * modules/c-strstr (Files): Remove lib/str-kmp.h.
49095         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
49096
49097 2008-01-10  Bruno Haible  <bruno@clisp.org>
49098
49099         * doc/gnulib.texi (String Functions in C Locale): New section.
49100         * doc/c-ctype.texi: New file.
49101         * doc/c-strcase.texi: New file.
49102         * doc/c-strcaseeq.texi: New file.
49103         * doc/c-strcasestr.texi: New file.
49104         * doc/c-strstr.texi: New file.
49105         * doc/c-strtod.texi: New file.
49106         * doc/c-strtold.texi: New file.
49107
49108 2008-01-10  Eric Blake  <ebb9@byu.net>
49109
49110         * lib/relocatable.h: Fix a comment.
49111
49112 2008-01-10  Eric Blake  <ebb9@byu.net>
49113
49114         Share two-way algorithm.
49115         * lib/str-two-way.h: New file, merged from...
49116         * lib/memmem.c: ...here...
49117         * lib/strstr.c: ...and here.
49118         * modules/memmem (Files): Use it.
49119         * modules/strstr (Files): Likewise.
49120
49121         Avoid quadratic strstr implementations.
49122         * lib/strstr.c: New file.
49123         * m4/strstr.m4: Likewise.
49124         * modules/strstr: Likewise.
49125         * modules/strstr-tests: Likewise.
49126         * tests/test-strstr.c: Likewise.
49127         * lib/string.in.h (rpl_strstr): Declare.
49128         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
49129         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
49130         * modules/string (Makefile.am): Likewise.
49131         * MODULES.html.sh (string handling): Mention new module.
49132         * doc/functions/strstr.texi (strstr): Document the bug.
49133
49134 2008-01-10  Bruno Haible  <bruno@clisp.org>
49135
49136         * lib/relocatable.h (relocate): State whether result is freshly
49137         allocated or not.
49138         * lib/relocatable.c (relocate): Return a freshly allocated string
49139         instead of a pointer to a privately held string.
49140         Reported by Sylvain Beucler <beuc@gnu.org>.
49141
49142 2008-01-10  Colin Watson  <cjwatson@debian.org>
49143
49144         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
49145         s/S_ISNLK/S_ISLNK/.
49146
49147 2008-01-09  Bruno Haible  <bruno@clisp.org>
49148
49149         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
49150         and other files.
49151         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
49152         if it's only a guess.
49153         * modules/memmem: Simplify by depending on memmem-simple.
49154
49155 2008-01-09  Bruno Haible  <bruno@clisp.org>
49156
49157         Work around OpenBSD 4.0 tdelete() bug.
49158         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
49159         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
49160         macros and don't redefine the enum values.
49161         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
49162         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
49163         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
49164
49165 2008-01-09  Bruno Haible  <bruno@clisp.org>
49166
49167         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
49168         (main): Don't perform the tests if setlocale did not install a UTF-8
49169         locale. Needed on OpenBSD 4.0.
49170         * modules/wcwidth-tests (Depends-on): Add localcharset.
49171
49172 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
49173
49174         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
49175         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
49176         * NEWS: announce this.
49177         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
49178
49179 2008-01-09  Simon Josefsson  <simon@josefsson.org>
49180         and Eric Blake  <ebb9@byu.net>
49181
49182         Add memmem-simple module.
49183         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
49184         (gl_FUNC_MEMMEM): Separate performance from presence checks.
49185         * modules/memmem-simple: New file.
49186         * modules/memmem (Description): Tweak.
49187         * MODULES.html.sh (string handling): Mention new module.
49188         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
49189         addressed by memmem-simple.
49190         * NEWS: Document the difference.
49191
49192 2008-01-09  Eric Blake  <ebb9@byu.net>
49193
49194         Give gcc some memmem optimization hints.
49195         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
49196         (strcasestr): Declare as pure.
49197         * modules/memmem (Maintainer): Claim my implementation.
49198
49199 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49200
49201         Support AIX 6.1 and higher.
49202         * build-aux/config.libpath: Likewise.
49203         * build-aux/config.rpath: Likewise.
49204
49205 2008-01-08  Jim Meyering  <meyering@redhat.com>
49206             Bruno Haible  <bruno@clisp.org>
49207
49208         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
49209         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
49210         Reported by Peter Fales in
49211         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
49212
49213 2008-01-08  Bruno Haible  <bruno@clisp.org>
49214
49215         * modules/unictype/category-of (Depends-on): Add
49216         unictype/category-none.
49217         * modules/unictype/category-and-tests (Depends-on): Add
49218         unictype/category-{L,N,Lu,Nd}.
49219         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
49220         * modules/unictype/category-or-tests (Depends-on): Add
49221         unictype/category-{L,N}.
49222         * modules/unictype/category-name-tests (Depends-on): Add
49223         unictype/category-{Z,Nl}.
49224         Reported by Simon Josefsson.
49225
49226 2008-01-08  Bruno Haible  <bruno@clisp.org>
49227
49228         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
49229         convention better.
49230         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
49231         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
49232         Reported by Peter Miller <millerp@canb.auug.org.au>.
49233
49234 2008-01-08  Eric Blake  <ebb9@byu.net>
49235
49236         Rewrite memmem to guarantee linear complexity without malloc.
49237         * lib/memmem.c (memmem): Use Two-Way rather than
49238         Knuth-Morris-Pratt, to allow O(1) space usage.
49239         (critical_factorization, two_way_short_needle)
49240         (two_way_long_needle): New functions.
49241         (knuth_morris_pratt): Delete.
49242         * modules/memmem (Depends-on): No longer need malloca or stdbool.
49243         Add stdint.
49244         * tests/test-memmem.c (main): Add tests for periodic needle and
49245         sublinear performance.
49246         * doc/functions/memmem.texi (memmem): Document other deficiencies
49247         in cygwin and older glibc.
49248
49249 2008-01-08  Bruno Haible  <bruno@clisp.org>
49250
49251         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
49252         augmentation.
49253
49254 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
49255
49256         Add a configure time option: --disable-acl.
49257         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
49258         AC_ARG_ENABLE(acl).
49259
49260 2008-01-06  Simon Josefsson  <simon@josefsson.org>
49261
49262         * tests/test-localename.c: Don't include obsolete "setenv.h".
49263
49264         * modules/localename-tests (Depends-on): Need unsetenv.
49265
49266 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49267
49268         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
49269
49270 2008-01-06  Colin Watson  <cjwatson@debian.org>
49271
49272         * users.txt: Add man-db.
49273
49274 2008-01-07  Bruno Haible  <bruno@clisp.org>
49275
49276         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
49277         previous section name.
49278
49279 2008-01-07  Bruno Haible  <bruno@clisp.org>
49280
49281         * lib/progname.c (set_program_name): Don't strip off a leading
49282         "lt-" prefix outside a .libs directory.
49283         Suggested by Paul Eggert.
49284
49285 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
49286             Bruno Haible  <bruno@clisp.org>
49287
49288         Improve memory cleanup in 'relocatable' module.
49289         * lib/relocatable.h (compute_curr_prefix): Change return type to
49290         'char *'.
49291         * lib/relocatable.c (compute_curr_prefix): Change return type to
49292         'char *'. Free curr_installdir after use.
49293         (relocate): Free curr_prefix_better after use.
49294         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
49295
49296 2008-01-01  Bruno Haible  <bruno@clisp.org>
49297
49298         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
49299         failure on older glibc systems.
49300         Reported by Peter Fales <psfales@alcatel-lucent.com>.
49301
49302 2008-01-05  Eric Blake  <ebb9@byu.net>
49303
49304         Avoid quadratic system memmem.
49305         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
49306         Reported by Ralf Wildenhues.
49307
49308         Fix memmem test for mingw.
49309         * modules/memmem-tests (configure.ac): Check for alarm.
49310         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
49311         it.
49312         * doc/functions/memmem.texi: New file.
49313         * doc/gnulib.texi (Function Substitutes): Add memmem.
49314         Reported by Bruno Haible.
49315
49316 2008-01-04  Bruno Haible  <bruno@clisp.org>
49317
49318         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
49319         Require gl_HEADER_STRINGS_H_DEFAULTS, not
49320         gl_HEADER_STRING_H_DEFAULTS.
49321
49322 2008-01-04  Eric Blake  <ebb9@byu.net>
49323
49324         Shorten duration of memmem test.
49325         * tests/test-memmem.c (main): Use alarm to declare failure if test
49326         is taking too long.
49327         Reported by Ralf Wildenhues.
49328
49329 2007-12-21  Simon Josefsson  <simon@josefsson.org>
49330
49331         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
49332         string, needed by strerror.
49333
49334 2008-01-03  Colin Watson  <cjwatson@debian.org>
49335             Bruno Haible  <bruno@clisp.org>
49336
49337         * doc/gnulib-tool.texi (Localization): New section.
49338
49339 2008-01-02  Bruno Haible  <bruno@clisp.org>
49340
49341         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
49342         variables to 'unsigned char *' type.
49343         Reported by Paul Eggert.
49344
49345 2008-01-02  Jim Meyering  <jim@meyering.net>
49346
49347         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
49348
49349 2007-12-31  Jim Meyering  <jim@meyering.net>
49350
49351         Avoid use of private FTS type name.
49352         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
49353
49354 2007-12-30  Karl Berry  <karl@gnu.org>
49355
49356         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
49357         work around defect in Texinfo and/or the standalone Info browser.
49358
49359 2007-12-30  Bruno Haible  <bruno@clisp.org>
49360
49361         Unify 5 copies of the KMP code.
49362         * lib/str-kmp.h: New file.
49363         * lib/c-strcasestr.c: Include str-kmp.h.
49364         (knuth_morris_pratt): Remove function.
49365         (c_strcasestr): Update.
49366         * lib/c-strstr.c: Include str-kmp.h.
49367         (knuth_morris_pratt): Remove function.
49368         (c_strcasestr): Update.
49369         * lib/mbscasestr.c: Include str-kmp.h.
49370         (knuth_morris_pratt_unibyte): Remove function.
49371         * lib/mbsstr.c: Include str-kmp.h.
49372         (knuth_morris_pratt_unibyte): Remove function.
49373         * lib/strcasestr.c: Include str-kmp.h.
49374         (knuth_morris_pratt): Remove function.
49375         (strcasestr): Update.
49376         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
49377         * modules/c-strstr (Files): Likewise.
49378         * modules/mbscasestr (Files): Likewise.
49379         * modules/mbsstr (Files): Likewise.
49380         * modules/strcasestr (Files): Likewise.
49381         Suggested by Paul Eggert.
49382
49383 2007-12-30  Bruno Haible  <bruno@clisp.org>
49384
49385         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
49386         defined.
49387
49388 2007-12-30  Bruno Haible  <bruno@clisp.org>
49389
49390         * lib/xmalloca.h: Include xalloc.h.
49391         (xnmalloca): New macro.
49392
49393 2007-12-30  Bruno Haible  <bruno@clisp.org>
49394
49395         * lib/malloca.h (nmalloca): New macro.
49396         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
49397         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
49398         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
49399         knuth_morris_pratt_multibyte): Likewise.
49400         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
49401         knuth_morris_pratt_multibyte): Likewise.
49402         * lib/memmem.c (knuth_morris_pratt): Likewise.
49403         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
49404
49405 2007-12-25  Bruno Haible  <bruno@clisp.org>
49406
49407         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
49408         * lib/glob.c: Don't include openat.h.
49409         (link_exists2_p): Add back the code that deals with the
49410         !GLOB_ALTDIRFUNC case.
49411         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
49412         let it do the filename concatenation.
49413         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
49414         * modules/glob (Depends-on): Remove openat.
49415
49416 2007-12-31  Bruno Haible  <bruno@clisp.org>
49417
49418         * modules/dirfd (License): Change to LGPLv2+.
49419         Approved by Jim Meyering.
49420
49421 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
49422
49423         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
49424         when multiplying M by sizeof (size_t).
49425
49426 2007-12-10  Martin Lambers  <marlam@marlam.de>
49427
49428         Override getpagesize on mingw.
49429         * lib/getpagesize.c: New file.
49430         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
49431         * modules/getpagesize (Files): Add lib/getpagesize.c.
49432         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
49433         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49434         REPLACE_GETPAGESIZE.
49435         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
49436
49437 2007-12-25  Bruno Haible  <bruno@clisp.org>
49438
49439         * modules/localcharset (Notice): New field.
49440         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
49441         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
49442
49443 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
49444             Bruno Haible  <bruno@clisp.org>
49445
49446         Avoid using the syntax symbol() in formatted documentation.
49447         * MODULES.html.sh (func_module): When replacing symbol() with a
49448         hyperlink, remove the parentheses. Show an error if some remain.
49449         Recognize and render the '...' syntax.
49450         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
49451         Rework. Add paragraph about GCC's inlining.
49452         * doc/alloca.texi: Likewise.
49453         * doc/error.texi: Remove parentheses from symbol reference.
49454         * doc/gnulib-intro.texi: Likewise.
49455         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
49456         * modules/fnmatch (Description): Reword to say "the ... function".
49457         * modules/full-read (Description): Likewise.
49458         * modules/full-write (Description): Likewise.
49459         * modules/safe-read (Description): Likewise.
49460         * modules/safe-write (Description): Likewise.
49461         * modules/strchrnul (Description): Likewise.
49462         * modules/trim (Description): Likewise.
49463         * modules/error (Description): Remove parentheses from symbol
49464         references.
49465         * modules/verror (Description): Likewise.
49466         Reported by Karl Berry.
49467
49468 2007-12-25  Bruno Haible  <bruno@clisp.org>
49469
49470         Fixup after 2007-10-16 commit.
49471         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
49472
49473 2007-12-24  Bruno Haible  <bruno@clisp.org>
49474
49475         Make --enable-relocatable work with DESTDIR.
49476         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
49477         to compute installdir from destprog.
49478         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
49479         also set the RELOC_DESTDIR variable.
49480         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49481
49482 2007-12-24  Bruno Haible  <bruno@clisp.org>
49483
49484         Fix link error due to xalloc_die().
49485         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
49486         of xreadlink.
49487         * lib/relocwrapper.c: Update comments.
49488         * build-aux/install-reloc: Remove xreadlink.c from file list.
49489         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
49490         xreadlink.c.
49491         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49492
49493 2007-12-24  Bruno Haible  <bruno@clisp.org>
49494
49495         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
49496         * lib/setenv.h: Remove file.
49497         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
49498         lib/setenv.h.
49499         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
49500         (Depends-on): Add stdlib.
49501         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
49502         gl_FUNC_UNSETENV.
49503         (Include): Replace setenv.h with <stdlib.h>.
49504         * modules/unsetenv: New file.
49505         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
49506         * lib/unsetenv.c: Include <stdlib.h> first.
49507         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
49508         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
49509         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
49510         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
49511         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
49512         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
49513         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
49514         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
49515         * doc/functions/unsetenv.texi: Update.
49516         * modules/xsetenv (Depends-on): Add unsetenv.
49517         * modules/getdate (Depends-on): Likewise.
49518         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
49519         * lib/xsetenv.c: Don't include setenv.h.
49520         * lib/getdate.y: Likewise.
49521         * lib/relocwrapper.c: Likewise.
49522         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
49523         (Depends-on): Add stdlib.
49524         * NEWS: Mention the changes.
49525         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49526
49527 2007-12-23  Bruno Haible  <bruno@clisp.org>
49528
49529         * lib/memmem.c (memmem): Use lowercase variable names. Tab
49530         indentation.
49531
49532 2007-12-23  Bruno Haible  <bruno@clisp.org>
49533
49534         * lib/c-strcasestr.c: Add more comments.
49535         * lib/c-strstr.c: Likewise.
49536         * lib/mbscasestr.c: Likewise.
49537         * lib/mbsstr.c: Likewise.
49538         * lib/strcasestr.c: Likewise.
49539         * lib/memmem.c: Likewise.
49540
49541 2007-12-23  Bruno Haible  <bruno@clisp.org>
49542
49543         * tests/test-memmem.c: Include <string.h> first.
49544
49545 2007-12-22  Bruno Haible  <bruno@clisp.org>
49546
49547         * gnulib-tool (func_create_testdir): Change $auxdir while generating
49548         the contents of $testsbase.
49549         Reported by Ralf Wildenhues.
49550
49551 2007-12-22  Bruno Haible  <bruno@clisp.org>
49552
49553         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
49554         two variables local_ldadd_before, local_ldadd_last.
49555
49556 2007-12-20  Eric Blake  <ebb9@byu.net>
49557
49558         Work around circular library issue when cross-compiling.
49559         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
49560         that progname.o does not need to pull in rpl_memcmp.
49561
49562 2007-12-19  Eric Blake  <ebb9@byu.net>
49563
49564         Fix memmem to avoid O(n^2) worst-case complexity.
49565         * lib/memmem.c (knuth_morris_pratt): New function.
49566         (memmem): Use it if first few naive iterations fail.
49567         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
49568         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
49569         * modules/memchr (License): Likewise.
49570         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
49571         malloca.
49572         * tests/test-memmem.c: Rewrite, borrowing ideas from
49573         test-mbsstr1.c; the old version wouldn't even compile!
49574         * modules/memmem-tests: New file.
49575         * lib/string.in.h (rpl_memmem): Add declaration.
49576         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
49577         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
49578         REPLACE_MEMMEM.
49579
49580 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
49581
49582         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
49583         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
49584         before any system include files, and undef after them all.  This
49585         should fix a problem on VMS reported by John E. Malmberg in
49586         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
49587
49588 2007-12-17  Eric Blake  <ebb9@byu.net>
49589
49590         Revert addition of verify, for BSD/OS.
49591         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
49592         can't handle large files, for the sake of obsolete platforms.
49593         * modules/fseeko (Depends-on): Remove verify.
49594         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
49595         * doc/functions/ftello.texi (ftello): Likewise.
49596         * doc/functions/fgetpos.texi (fgetpos): Likewise.
49597         Reported by Larry Jones.
49598
49599 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
49600
49601         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
49602         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
49603
49604 2007-12-17  Jim Meyering  <meyering@redhat.com>
49605
49606         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
49607         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
49608         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
49609         * modules/getcwd (Depends-on): Add openat.
49610         Reported by Petr Salinger.
49611
49612 2007-12-17  Bruno Haible  <bruno@clisp.org>
49613
49614         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
49615         avoid a segmentation fault of the configure test on x86_64 systems.
49616
49617 2007-12-15  Jim Meyering  <meyering@redhat.com>
49618
49619         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
49620
49621 2007-12-13  Eric Blake  <ebb9@byu.net>
49622
49623         Another fseek test.
49624         * tests/test-fseek.c (main): Also test ungetc handling.
49625         * tests/test-fseeko.c (main): Likewise.
49626         * modules/fseeko (Depends-on): Add verify.
49627         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
49628         large.
49629         Reported by Larry Jones.
49630
49631         Fix fseeko on mingw.
49632         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
49633         seek.
49634
49635         Beef up fseek tests.
49636         * tests/test-fseek.c (main): Also test eof handling.
49637         * tests/test-fseeko.c (main): Likewise.
49638         Reported by Larry Jones.
49639
49640 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
49641
49642         Fix fseeko on BSD-based platforms.
49643         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
49644         successful seek.
49645
49646 2007-12-12  Eric Blake  <ebb9@byu.net>
49647
49648         Allow circular dependency of separate libtests.a
49649         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
49650         when use_libtests.
49651
49652 2007-12-11  Eric Blake  <ebb9@byu.net>
49653
49654         Fix bug with -0.0L in previous patch.
49655         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
49656         * tests/test-isnan.c (main): Also test on zeroes.
49657         * tests/test-isnanf.c (main): Likewise.
49658         * tests/test-isnanl.h (main): Likewise.
49659
49660         Detect pseudo-denormals on x86 even when cross-compiling.
49661         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
49662         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
49663         invalid bit patterns that happen to satisfy ==.
49664
49665         Avoid link failures with separate libtests.a.
49666         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
49667         last, to satisfy circular dependencies.
49668
49669 2007-12-11  Eric Blake  <ebb9@byu.net>
49670         and Bruno Haible  <bruno@clisp.org>
49671
49672         Fix OpenBSD 4.0 <float.h> handling of long double.
49673         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
49674         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
49675         * doc/headers/float.texi (float.h): Document OpenBSD bug.
49676
49677 2007-12-11  Jim Meyering  <meyering@redhat.com>
49678
49679         * users.txt: Add libvirt.
49680
49681         Support versions of autoconf prior to 2.59c.
49682         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
49683         if it is not already defined.
49684
49685 2007-12-09  Bruno Haible  <bruno@clisp.org>
49686
49687         Let 'gnulib-tool --import' collect sources needed for the tests in
49688         tests/ rather than in lib/.
49689         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
49690         argument. If true, add rules to generate libtests.a, and put libtests.a
49691         into $(LDADD). Consider source files in subdirectories and set
49692         uses_subdirs.
49693         (func_emit_initmacro_start, func_emit_initmacro_end,
49694         func_emit_initmacro_done): Pass all arguments explicitly.
49695         (func_import): Determine two module lists main_modules,
49696         testsrelated_modules. Determine use_libtests. Determine two variables
49697         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
49698         instead of just sed_transform_lib_file. Determine two variables
49699         main_files and testsrelated_files. Compute 'files' as the union of
49700         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
49701         func_add_or_update. In the generated gnulib-comp.m4, collect the
49702         object files for tests/ in different variables than those for lib/.
49703         Substitute LIBTESTS_LIBDEPS.
49704         (func_create_testdir): Combine the uses_subdirs results from
49705         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
49706
49707 2007-12-09  Bruno Haible  <bruno@clisp.org>
49708
49709         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
49710         the build-aux directory.
49711
49712 2007-12-09  Bruno Haible  <bruno@clisp.org>
49713
49714         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
49715         introduced on 2006-09-09.
49716
49717 2007-12-07  Jim Meyering  <meyering@redhat.com>
49718
49719         Let these macros work also with autoconf-2.59.
49720         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
49721         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
49722         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
49723
49724 2007-12-06  Jim Meyering  <meyering@redhat.com>
49725
49726         Avoid a configure-time syntax error in gl_FUNC_ACL.
49727         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
49728         function in each branch, before testing the cache variable.
49729
49730 2007-12-04  Eric Blake  <ebb9@byu.net>
49731
49732         Make scripts executable.
49733         * build-aux/config.guess: Add execute permissions.
49734         * build-aux/config.sub: Likewise.
49735         * build-aux/gendocs.sh: Likewise.
49736
49737         Fix frexp on mingw.
49738         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
49739         cross-compiling.
49740         * doc/functions/frexp.texi (frexp): Document the bug.
49741
49742         Make cygwin fseeko check more reliable.
49743         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
49744         version numbers, rather than unrelated feature check.
49745         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
49746         * doc/functions/ftello.texi (ftello): Likewise.
49747         Reported by Bruno Haible.
49748
49749         * m4/strerror.m4: Bump version number.
49750
49751 2007-12-03  Bruno Haible  <bruno@clisp.org>
49752
49753         * doc/functions/mprotect.texi: Mention the mingw problem.
49754
49755 2007-12-03  Eric Blake  <ebb9@byu.net>
49756
49757         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
49758         REPLACE_STRERROR is initialized before this macro.
49759
49760 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
49761
49762         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
49763         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
49764         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
49765         put -lsec in even for programs other than 'ls'.  This fixes a problem
49766         for gettext reported by Bruno Haible in
49767         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
49768         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
49769         Add support for Solaris 10.  This isn't efficient, but should get the
49770         job done for now.
49771
49772 2007-12-03  James Youngman  <jay@gnu.org>
49773
49774         * doc/regexprops-generic.texi: change "an close-group" to "a
49775         close-group" and "illegal" to "not allowed".
49776
49777 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49778
49779         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
49780         pr_byname.h. Needed for the rare case when the maintainer has done
49781         "make maintainer-clean" in the source directory and then attempts a
49782         build outside the source directory.
49783         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
49784         scripts_byname.h.
49785
49786 2007-12-02  Martin Lambers <marlam@marlam.de>
49787             Bruno Haible  <bruno@clisp.org>
49788
49789         * lib/getpagesize.h: Remove file.
49790         * lib/unistd.in.h: Include declaration of getpagesize here.
49791         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
49792         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
49793         HAVE_SYS_PARAM_H.
49794         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
49795         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49796         * modules/getpagesize (Files): Remove lib/getpagesize.h.
49797         (Depends-on): Add unistd.
49798         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49799         (Include): Use <unistd.h> instead of getpagesize.h.
49800         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
49801         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49802         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
49803         gl_GETPAGESIZE invocation, already handled by module dependency.
49804         * lib/pagealign_alloc.c: Don't include getpagesize.h.
49805
49806 2007-12-02  Bruno Haible  <bruno@clisp.org>
49807
49808         * modules/strings-tests: New file.
49809         * tests/test-strings.c: New file.
49810
49811         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
49812         * lib/strings.in.h: New file.
49813         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
49814         * m4/strings_h.m4: New file.
49815         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
49816         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
49817         * modules/strings: New file.
49818         * modules/string (Makefile.am): Update.
49819         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
49820         Reported by Karl Berry.
49821
49822 2007-12-01  Eric Blake  <ebb9@byu.net>
49823
49824         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
49825         accomodate fix in cygwin 1.5.25.
49826
49827 2007-12-01  Jim Meyering  <meyering@redhat.com>
49828
49829         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
49830         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
49831         that would inhibit utf8-optimization of a regexp containing line-
49832         or buffer-anchors, e.g., `^', `$'.
49833
49834 2007-11-30  Bruno Haible  <bruno@clisp.org>
49835
49836         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
49837         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
49838         glthread_recursive_lock_init.
49839         * lib/lock.c (glthread_recursive_lock_init)
49840         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
49841         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49842
49843 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
49844
49845         New function qset_acl, like set_acl but with syscall semantics.
49846         * lib/acl.h (qset_acl): New decl.
49847         * lib/acl.c (qset_acl): New function.
49848         (set_acl): Use new function.  Use more-consistent diagnostics.
49849
49850 2007-11-28  Jim Meyering  <meyering@redhat.com>
49851
49852         * modules/physmem (License): Change from GPL to LGPLv2+.
49853
49854 2007-11-26  Bruno Haible  <bruno@clisp.org>
49855
49856         * lib/vasnprintf.c (decode_long_double): Don't abort if the
49857         'long double' type has excess precision.
49858         Reported by Jim Meyering in
49859         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
49860
49861 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49862
49863         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
49864         Sync from <http://gnu.org/licenses>.
49865         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
49866         with license text from same location.
49867         * doc/maintain.texi, doc/standards.texi:  Sync from
49868         <http://savannah.gnu.org/projects/gnustandards>.
49869
49870 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
49871         and Jim Meyering  <meyering@redhat.com>
49872
49873         Adjust getdate' grammar to accept a slightly more regular language.
49874         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
49875         Before, the former was rejected.
49876         * lib/getdate.y (digits_to_date_time): New function, factored
49877         out of ...
49878         (number): ...here.  Just call digits_to_date_time.
49879         (hybrid): New non-terminal to handle an <unsigned number,
49880         signed relative offset> sequence consistently.
49881
49882 2007-11-18  Jim Meyering  <meyering@redhat.com>
49883
49884         Pull my changes from coreutils:
49885         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
49886         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
49887         use of $gnulib_tool_option_extras, so that it's separated from the
49888         preceding argument.
49889
49890         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
49891         * build-aux/bootstrap (cp_mark_as_generated): Create any required
49892         parent destination directories before copying a file into place.
49893
49894 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
49895
49896         bootstrap: work also with 4-argument variant of AC_INIT
49897         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
49898
49899 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
49900
49901         Port test-getaddrinfo to Solaris.
49902         Problem reported by Bruno Haible in
49903         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
49904         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
49905         explanation of setting 'hints'.
49906         Don't reject an implementation merely because it returns EAI_SERVICE.
49907         (EAI_SERVICE): Define to 0 if not defined.
49908
49909 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
49910
49911         The license of gnu-make and posix-shell is now "GPLed build tool".
49912         * modules/gnu-make (License): Likewise.
49913         * modules/posix-shell (License): Likewise.
49914
49915         New module posix-shell, for determining a POSIX shell
49916         or perhaps something that is close enough to a POSIX shell.
49917         * m4/posix-shell.m4: New file.
49918         * modules/posix-shell: New file.
49919
49920         * MODULES.html.sh: Mention new module.
49921
49922         New module gnu-make, for determining whether we're using GNU Make.
49923         * m4/gnu-make.m4: New file.
49924         * modules/gnu-make: New file.
49925         * MODULES.html.sh: Mention new module.
49926
49927 2007-11-14  Jim Meyering  <meyering@redhat.com>
49928
49929         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
49930         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
49931         use this macro to create a function _definition_.
49932         Remove useless "#undef ARGMATCH_DIE".
49933
49934 2007-11-14  Bruno Haible  <bruno@clisp.org>
49935
49936         * lib/config.charset: Update for OpenBSD 4.1.
49937         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
49938
49939 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
49940
49941         Document 64-bit #if problems in stdint.texi.
49942         * doc/headers/stdint.texi (stdint.h): Mention problems with
49943         64-bit-#if, and how to work around them.
49944
49945         Don't insist on 'long long int' support in the preprocessor.  It
49946         breaks too many things.  For example, PRIdMAX still uses a 'long
49947         long int' format with the latest Sun compiler, even though
49948         HAVE_LONG_LONG_INT isn't defined due to that compiler's
49949         preprocessor problem.  This causes the latest coreutils to dump
49950         core on Solaris 10 sparc with the Sun C compiler.
49951         Instead, fix the 2007-10-16 problem in a different way, by evaluating
49952         the troublesome expressions at configure-time, not at #if-time.
49953         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
49954         preprocessor.
49955         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
49956         compile-time C checks, done at 'configure'-time.
49957         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
49958         * modules/inttypes (Makefile): Substitute the new symbols that
49959         gl_INTTYPES_H now generates.
49960         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
49961
49962 2007-11-12  Bruno Haible  <bruno@clisp.org>
49963
49964         Tests for Unicode character classification functions.
49965
49966         * modules/unictype/bidicategory-byname-tests: New file.
49967         * modules/unictype/bidicategory-name-tests: New file.
49968         * modules/unictype/bidicategory-of-tests: New file.
49969         * modules/unictype/bidicategory-test-tests: New file.
49970         * modules/unictype/block-list-tests: New file.
49971         * modules/unictype/block-of-tests: New file.
49972         * modules/unictype/block-test-tests: New file.
49973         * modules/unictype/category-C-tests: New file.
49974         * modules/unictype/category-Cc-tests: New file.
49975         * modules/unictype/category-Cf-tests: New file.
49976         * modules/unictype/category-Cn-tests: New file.
49977         * modules/unictype/category-Co-tests: New file.
49978         * modules/unictype/category-Cs-tests: New file.
49979         * modules/unictype/category-L-tests: New file.
49980         * modules/unictype/category-Ll-tests: New file.
49981         * modules/unictype/category-Lm-tests: New file.
49982         * modules/unictype/category-Lo-tests: New file.
49983         * modules/unictype/category-Lt-tests: New file.
49984         * modules/unictype/category-Lu-tests: New file.
49985         * modules/unictype/category-M-tests: New file.
49986         * modules/unictype/category-Mc-tests: New file.
49987         * modules/unictype/category-Me-tests: New file.
49988         * modules/unictype/category-Mn-tests: New file.
49989         * modules/unictype/category-N-tests: New file.
49990         * modules/unictype/category-Nd-tests: New file.
49991         * modules/unictype/category-Nl-tests: New file.
49992         * modules/unictype/category-No-tests: New file.
49993         * modules/unictype/category-P-tests: New file.
49994         * modules/unictype/category-Pc-tests: New file.
49995         * modules/unictype/category-Pd-tests: New file.
49996         * modules/unictype/category-Pe-tests: New file.
49997         * modules/unictype/category-Pf-tests: New file.
49998         * modules/unictype/category-Pi-tests: New file.
49999         * modules/unictype/category-Po-tests: New file.
50000         * modules/unictype/category-Ps-tests: New file.
50001         * modules/unictype/category-S-tests: New file.
50002         * modules/unictype/category-Sc-tests: New file.
50003         * modules/unictype/category-Sk-tests: New file.
50004         * modules/unictype/category-Sm-tests: New file.
50005         * modules/unictype/category-So-tests: New file.
50006         * modules/unictype/category-Z-tests: New file.
50007         * modules/unictype/category-Zl-tests: New file.
50008         * modules/unictype/category-Zp-tests: New file.
50009         * modules/unictype/category-Zs-tests: New file.
50010         * modules/unictype/category-and-not-tests: New file.
50011         * modules/unictype/category-and-tests: New file.
50012         * modules/unictype/category-byname-tests: New file.
50013         * modules/unictype/category-name-tests: New file.
50014         * modules/unictype/category-none-tests: New file.
50015         * modules/unictype/category-of-tests: New file.
50016         * modules/unictype/category-or-tests: New file.
50017         * modules/unictype/category-test-withtable-tests: New file.
50018         * modules/unictype/combining-class-tests: New file.
50019         * modules/unictype/ctype-alnum-tests: New file.
50020         * modules/unictype/ctype-alpha-tests: New file.
50021         * modules/unictype/ctype-blank-tests: New file.
50022         * modules/unictype/ctype-cntrl-tests: New file.
50023         * modules/unictype/ctype-digit-tests: New file.
50024         * modules/unictype/ctype-graph-tests: New file.
50025         * modules/unictype/ctype-lower-tests: New file.
50026         * modules/unictype/ctype-print-tests: New file.
50027         * modules/unictype/ctype-punct-tests: New file.
50028         * modules/unictype/ctype-space-tests: New file.
50029         * modules/unictype/ctype-upper-tests: New file.
50030         * modules/unictype/ctype-xdigit-tests: New file.
50031         * modules/unictype/decimal-digit-tests: New file.
50032         * modules/unictype/digit-tests: New file.
50033         * modules/unictype/mirror-tests: New file.
50034         * modules/unictype/numeric-tests: New file.
50035         * modules/unictype/property-alphabetic-tests: New file.
50036         * modules/unictype/property-ascii-hex-digit-tests: New file.
50037         * modules/unictype/property-bidi-arabic-digit-tests: New file.
50038         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
50039         * modules/unictype/property-bidi-block-separator-tests: New file.
50040         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
50041         * modules/unictype/property-bidi-common-separator-tests: New file.
50042         * modules/unictype/property-bidi-control-tests: New file.
50043         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
50044         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
50045         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
50046         * modules/unictype/property-bidi-european-digit-tests: New file.
50047         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
50048         * modules/unictype/property-bidi-left-to-right-tests: New file.
50049         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
50050         * modules/unictype/property-bidi-other-neutral-tests: New file.
50051         * modules/unictype/property-bidi-pdf-tests: New file.
50052         * modules/unictype/property-bidi-segment-separator-tests: New file.
50053         * modules/unictype/property-bidi-whitespace-tests: New file.
50054         * modules/unictype/property-byname-tests: New file.
50055         * modules/unictype/property-combining-tests: New file.
50056         * modules/unictype/property-composite-tests: New file.
50057         * modules/unictype/property-currency-symbol-tests: New file.
50058         * modules/unictype/property-dash-tests: New file.
50059         * modules/unictype/property-decimal-digit-tests: New file.
50060         * modules/unictype/property-default-ignorable-code-point-tests: New file.
50061         * modules/unictype/property-deprecated-tests: New file.
50062         * modules/unictype/property-diacritic-tests: New file.
50063         * modules/unictype/property-extender-tests: New file.
50064         * modules/unictype/property-format-control-tests: New file.
50065         * modules/unictype/property-grapheme-base-tests: New file.
50066         * modules/unictype/property-grapheme-extend-tests: New file.
50067         * modules/unictype/property-grapheme-link-tests: New file.
50068         * modules/unictype/property-hex-digit-tests: New file.
50069         * modules/unictype/property-hyphen-tests: New file.
50070         * modules/unictype/property-id-continue-tests: New file.
50071         * modules/unictype/property-id-start-tests: New file.
50072         * modules/unictype/property-ideographic-tests: New file.
50073         * modules/unictype/property-ids-binary-operator-tests: New file.
50074         * modules/unictype/property-ids-trinary-operator-tests: New file.
50075         * modules/unictype/property-ignorable-control-tests: New file.
50076         * modules/unictype/property-iso-control-tests: New file.
50077         * modules/unictype/property-join-control-tests: New file.
50078         * modules/unictype/property-left-of-pair-tests: New file.
50079         * modules/unictype/property-line-separator-tests: New file.
50080         * modules/unictype/property-logical-order-exception-tests: New file.
50081         * modules/unictype/property-lowercase-tests: New file.
50082         * modules/unictype/property-math-tests: New file.
50083         * modules/unictype/property-non-break-tests: New file.
50084         * modules/unictype/property-not-a-character-tests: New file.
50085         * modules/unictype/property-numeric-tests: New file.
50086         * modules/unictype/property-other-alphabetic-tests: New file.
50087         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
50088         * modules/unictype/property-other-grapheme-extend-tests: New file.
50089         * modules/unictype/property-other-id-continue-tests: New file.
50090         * modules/unictype/property-other-id-start-tests: New file.
50091         * modules/unictype/property-other-lowercase-tests: New file.
50092         * modules/unictype/property-other-math-tests: New file.
50093         * modules/unictype/property-other-uppercase-tests: New file.
50094         * modules/unictype/property-paired-punctuation-tests: New file.
50095         * modules/unictype/property-paragraph-separator-tests: New file.
50096         * modules/unictype/property-pattern-syntax-tests: New file.
50097         * modules/unictype/property-pattern-white-space-tests: New file.
50098         * modules/unictype/property-private-use-tests: New file.
50099         * modules/unictype/property-punctuation-tests: New file.
50100         * modules/unictype/property-quotation-mark-tests: New file.
50101         * modules/unictype/property-radical-tests: New file.
50102         * modules/unictype/property-sentence-terminal-tests: New file.
50103         * modules/unictype/property-soft-dotted-tests: New file.
50104         * modules/unictype/property-space-tests: New file.
50105         * modules/unictype/property-terminal-punctuation-tests: New file.
50106         * modules/unictype/property-test-tests: New file.
50107         * modules/unictype/property-titlecase-tests: New file.
50108         * modules/unictype/property-unassigned-code-value-tests: New file.
50109         * modules/unictype/property-unified-ideograph-tests: New file.
50110         * modules/unictype/property-uppercase-tests: New file.
50111         * modules/unictype/property-variation-selector-tests: New file.
50112         * modules/unictype/property-white-space-tests: New file.
50113         * modules/unictype/property-xid-continue-tests: New file.
50114         * modules/unictype/property-xid-start-tests: New file.
50115         * modules/unictype/property-zero-width-tests: New file.
50116         * modules/unictype/scripts-tests: New file.
50117         * modules/unictype/syntax-c-ident-tests: New file.
50118         * modules/unictype/syntax-c-whitespace-tests: New file.
50119         * modules/unictype/syntax-java-ident-tests: New file.
50120         * modules/unictype/syntax-java-whitespace-tests: New file.
50121         * tests/unictype/test-bidi_byname.c: New file.
50122         * tests/unictype/test-bidi_name.c: New file.
50123         * tests/unictype/test-bidi_of.c: New file.
50124         * tests/unictype/test-bidi_test.c: New file.
50125         * tests/unictype/test-block_list.c: New file.
50126         * tests/unictype/test-block_of.c: New file.
50127         * tests/unictype/test-block_test.c: New file.
50128         * tests/unictype/test-categ_and.c: New file.
50129         * tests/unictype/test-categ_and_not.c: New file.
50130         * tests/unictype/test-categ_byname.c: New file.
50131         * tests/unictype/test-categ_name.c: New file.
50132         * tests/unictype/test-categ_none.c: New file.
50133         * tests/unictype/test-categ_of.c: New file.
50134         * tests/unictype/test-categ_or.c: New file.
50135         * tests/unictype/test-categ_test_withtable.c: New file.
50136         * tests/unictype/test-combining.c: New file.
50137         * tests/unictype/test-decdigit.c: New file.
50138         * tests/unictype/test-digit.c: New file.
50139         * tests/unictype/test-mirror.c: New file.
50140         * tests/unictype/test-numeric.c: New file.
50141         * tests/unictype/test-pr_byname.c: New file.
50142         * tests/unictype/test-pr_test.c: New file.
50143         * tests/unictype/test-predicate-part1.h: New file.
50144         * tests/unictype/test-predicate-part2.h: New file.
50145         * tests/unictype/test-scripts.c: New file.
50146         * tests/unictype/test-sy_c_ident.c: New file.
50147         * tests/unictype/test-sy_java_ident.c: New file.
50148
50149         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
50150         for Unicode 5.0.0.
50151         * tests/unictype/test-categ_Cc.c: Likewise.
50152         * tests/unictype/test-categ_Cf.c: Likewise.
50153         * tests/unictype/test-categ_Cn.c: Likewise.
50154         * tests/unictype/test-categ_Co.c: Likewise.
50155         * tests/unictype/test-categ_Cs.c: Likewise.
50156         * tests/unictype/test-categ_L.c: Likewise.
50157         * tests/unictype/test-categ_Ll.c: Likewise.
50158         * tests/unictype/test-categ_Lm.c: Likewise.
50159         * tests/unictype/test-categ_Lo.c: Likewise.
50160         * tests/unictype/test-categ_Lt.c: Likewise.
50161         * tests/unictype/test-categ_Lu.c: Likewise.
50162         * tests/unictype/test-categ_M.c: Likewise.
50163         * tests/unictype/test-categ_Mc.c: Likewise.
50164         * tests/unictype/test-categ_Me.c: Likewise.
50165         * tests/unictype/test-categ_Mn.c: Likewise.
50166         * tests/unictype/test-categ_N.c: Likewise.
50167         * tests/unictype/test-categ_Nd.c: Likewise.
50168         * tests/unictype/test-categ_Nl.c: Likewise.
50169         * tests/unictype/test-categ_No.c: Likewise.
50170         * tests/unictype/test-categ_P.c: Likewise.
50171         * tests/unictype/test-categ_Pc.c: Likewise.
50172         * tests/unictype/test-categ_Pd.c: Likewise.
50173         * tests/unictype/test-categ_Pe.c: Likewise.
50174         * tests/unictype/test-categ_Pf.c: Likewise.
50175         * tests/unictype/test-categ_Pi.c: Likewise.
50176         * tests/unictype/test-categ_Po.c: Likewise.
50177         * tests/unictype/test-categ_Ps.c: Likewise.
50178         * tests/unictype/test-categ_S.c: Likewise.
50179         * tests/unictype/test-categ_Sc.c: Likewise.
50180         * tests/unictype/test-categ_Sk.c: Likewise.
50181         * tests/unictype/test-categ_Sm.c: Likewise.
50182         * tests/unictype/test-categ_So.c: Likewise.
50183         * tests/unictype/test-categ_Z.c: Likewise.
50184         * tests/unictype/test-categ_Zl.c: Likewise.
50185         * tests/unictype/test-categ_Zp.c: Likewise.
50186         * tests/unictype/test-categ_Zs.c: Likewise.
50187         * tests/unictype/test-ctype_alnum.c: Likewise.
50188         * tests/unictype/test-ctype_alpha.c: Likewise.
50189         * tests/unictype/test-ctype_blank.c: Likewise.
50190         * tests/unictype/test-ctype_cntrl.c: Likewise.
50191         * tests/unictype/test-ctype_digit.c: Likewise.
50192         * tests/unictype/test-ctype_graph.c: Likewise.
50193         * tests/unictype/test-ctype_lower.c: Likewise.
50194         * tests/unictype/test-ctype_print.c: Likewise.
50195         * tests/unictype/test-ctype_punct.c: Likewise.
50196         * tests/unictype/test-ctype_space.c: Likewise.
50197         * tests/unictype/test-ctype_upper.c: Likewise.
50198         * tests/unictype/test-ctype_xdigit.c: Likewise.
50199         * tests/unictype/test-decdigit.h: Likewise.
50200         * tests/unictype/test-digit.h: Likewise.
50201         * tests/unictype/test-numeric.h: Likewise.
50202         * tests/unictype/test-pr_alphabetic.c: Likewise.
50203         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
50204         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
50205         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
50206         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
50207         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
50208         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
50209         * tests/unictype/test-pr_bidi_control.c: Likewise.
50210         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
50211         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
50212         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
50213         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
50214         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
50215         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
50216         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
50217         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
50218         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
50219         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
50220         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
50221         * tests/unictype/test-pr_combining.c: Likewise.
50222         * tests/unictype/test-pr_composite.c: Likewise.
50223         * tests/unictype/test-pr_currency_symbol.c: Likewise.
50224         * tests/unictype/test-pr_dash.c: Likewise.
50225         * tests/unictype/test-pr_decimal_digit.c: Likewise.
50226         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
50227         * tests/unictype/test-pr_deprecated.c: Likewise.
50228         * tests/unictype/test-pr_diacritic.c: Likewise.
50229         * tests/unictype/test-pr_extender.c: Likewise.
50230         * tests/unictype/test-pr_format_control.c: Likewise.
50231         * tests/unictype/test-pr_grapheme_base.c: Likewise.
50232         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
50233         * tests/unictype/test-pr_grapheme_link.c: Likewise.
50234         * tests/unictype/test-pr_hex_digit.c: Likewise.
50235         * tests/unictype/test-pr_hyphen.c: Likewise.
50236         * tests/unictype/test-pr_id_continue.c: Likewise.
50237         * tests/unictype/test-pr_id_start.c: Likewise.
50238         * tests/unictype/test-pr_ideographic.c: Likewise.
50239         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
50240         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
50241         * tests/unictype/test-pr_ignorable_control.c: Likewise.
50242         * tests/unictype/test-pr_iso_control.c: Likewise.
50243         * tests/unictype/test-pr_join_control.c: Likewise.
50244         * tests/unictype/test-pr_left_of_pair.c: Likewise.
50245         * tests/unictype/test-pr_line_separator.c: Likewise.
50246         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
50247         * tests/unictype/test-pr_lowercase.c: Likewise.
50248         * tests/unictype/test-pr_math.c: Likewise.
50249         * tests/unictype/test-pr_non_break.c: Likewise.
50250         * tests/unictype/test-pr_not_a_character.c: Likewise.
50251         * tests/unictype/test-pr_numeric.c: Likewise.
50252         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
50253         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
50254         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
50255         * tests/unictype/test-pr_other_id_continue.c: Likewise.
50256         * tests/unictype/test-pr_other_id_start.c: Likewise.
50257         * tests/unictype/test-pr_other_lowercase.c: Likewise.
50258         * tests/unictype/test-pr_other_math.c: Likewise.
50259         * tests/unictype/test-pr_other_uppercase.c: Likewise.
50260         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
50261         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
50262         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
50263         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
50264         * tests/unictype/test-pr_private_use.c: Likewise.
50265         * tests/unictype/test-pr_punctuation.c: Likewise.
50266         * tests/unictype/test-pr_quotation_mark.c: Likewise.
50267         * tests/unictype/test-pr_radical.c: Likewise.
50268         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
50269         * tests/unictype/test-pr_soft_dotted.c: Likewise.
50270         * tests/unictype/test-pr_space.c: Likewise.
50271         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
50272         * tests/unictype/test-pr_titlecase.c: Likewise.
50273         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
50274         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
50275         * tests/unictype/test-pr_uppercase.c: Likewise.
50276         * tests/unictype/test-pr_variation_selector.c: Likewise.
50277         * tests/unictype/test-pr_white_space.c: Likewise.
50278         * tests/unictype/test-pr_xid_continue.c: Likewise.
50279         * tests/unictype/test-pr_xid_start.c: Likewise.
50280         * tests/unictype/test-pr_zero_width.c: Likewise.
50281         * tests/unictype/test-sy_c_whitespace.c: Likewise.
50282         * tests/unictype/test-sy_java_whitespace.c: Likewise.
50283
50284 2007-11-12  Bruno Haible  <bruno@clisp.org>
50285
50286         Unicode character classification functions.
50287         * lib/unictype.h: New file.
50288         * modules/unictype/base: New file.
50289         * modules/unictype/category-L: New file.
50290         * modules/unictype/category-Lu: New file.
50291         * modules/unictype/category-Ll: New file.
50292         * modules/unictype/category-Lt: New file.
50293         * modules/unictype/category-Lm: New file.
50294         * modules/unictype/category-Lo: New file.
50295         * modules/unictype/category-M: New file.
50296         * modules/unictype/category-Mn: New file.
50297         * modules/unictype/category-Mc: New file.
50298         * modules/unictype/category-Me: New file.
50299         * modules/unictype/category-N: New file.
50300         * modules/unictype/category-Nd: New file.
50301         * modules/unictype/category-Nl: New file.
50302         * modules/unictype/category-No: New file.
50303         * modules/unictype/category-P: New file.
50304         * modules/unictype/category-Pc: New file.
50305         * modules/unictype/category-Pd: New file.
50306         * modules/unictype/category-Ps: New file.
50307         * modules/unictype/category-Pe: New file.
50308         * modules/unictype/category-Pi: New file.
50309         * modules/unictype/category-Pf: New file.
50310         * modules/unictype/category-Po: New file.
50311         * modules/unictype/category-S: New file.
50312         * modules/unictype/category-Sm: New file.
50313         * modules/unictype/category-Sc: New file.
50314         * modules/unictype/category-Sk: New file.
50315         * modules/unictype/category-So: New file.
50316         * modules/unictype/category-Z: New file.
50317         * modules/unictype/category-Zs: New file.
50318         * modules/unictype/category-Zl: New file.
50319         * modules/unictype/category-Zp: New file.
50320         * modules/unictype/category-C: New file.
50321         * modules/unictype/category-Cc: New file.
50322         * modules/unictype/category-Cf: New file.
50323         * modules/unictype/category-Cs: New file.
50324         * modules/unictype/category-Co: New file.
50325         * modules/unictype/category-Cn: New file.
50326         * modules/unictype/category-or: New file.
50327         * modules/unictype/category-of: New file.
50328         * modules/unictype/category-test: New file.
50329         * modules/unictype/category-test-withtable: New file.
50330         * modules/unictype/category-byname: New file.
50331         * modules/unictype/category-none: New file.
50332         * modules/unictype/category-and: New file.
50333         * modules/unictype/category-and-not: New file.
50334         * modules/unictype/category-name: New file.
50335         * modules/unictype/combining-class: New file.
50336         * modules/unictype/category-all: New file.
50337         * modules/unictype/bidicategory-all: New file.
50338         * modules/unictype/bidicategory-byname: New file.
50339         * modules/unictype/bidicategory-name: New file.
50340         * modules/unictype/bidicategory-of: New file.
50341         * modules/unictype/bidicategory-test: New file.
50342         * modules/unictype/decimal-digit: New file.
50343         * modules/unictype/digit: New file.
50344         * modules/unictype/numeric: New file.
50345         * modules/unictype/mirror: New file.
50346         * modules/unictype/property-white-space: New file.
50347         * modules/unictype/property-alphabetic: New file.
50348         * modules/unictype/property-other-alphabetic: New file.
50349         * modules/unictype/property-not-a-character: New file.
50350         * modules/unictype/property-default-ignorable-code-point: New file.
50351         * modules/unictype/property-other-default-ignorable-code-point: New
50352         file.
50353         * modules/unictype/property-deprecated: New file.
50354         * modules/unictype/property-logical-order-exception: New file.
50355         * modules/unictype/property-variation-selector: New file.
50356         * modules/unictype/property-private-use: New file.
50357         * modules/unictype/property-unassigned-code-value: New file.
50358         * modules/unictype/property-uppercase: New file.
50359         * modules/unictype/property-other-uppercase: New file.
50360         * modules/unictype/property-lowercase: New file.
50361         * modules/unictype/property-other-lowercase: New file.
50362         * modules/unictype/property-titlecase: New file.
50363         * modules/unictype/property-soft-dotted: New file.
50364         * modules/unictype/property-id-start: New file.
50365         * modules/unictype/property-other-id-start: New file.
50366         * modules/unictype/property-id-continue: New file.
50367         * modules/unictype/property-other-id-continue: New file.
50368         * modules/unictype/property-xid-start: New file.
50369         * modules/unictype/property-xid-continue: New file.
50370         * modules/unictype/property-pattern-white-space: New file.
50371         * modules/unictype/property-pattern-syntax: New file.
50372         * modules/unictype/property-join-control: New file.
50373         * modules/unictype/property-grapheme-base: New file.
50374         * modules/unictype/property-grapheme-extend: New file.
50375         * modules/unictype/property-other-grapheme-extend: New file.
50376         * modules/unictype/property-grapheme-link: New file.
50377         * modules/unictype/property-bidi-control: New file.
50378         * modules/unictype/property-bidi-left-to-right: New file.
50379         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
50380         * modules/unictype/property-bidi-arabic-right-to-left: New file.
50381         * modules/unictype/property-bidi-european-digit: New file.
50382         * modules/unictype/property-bidi-eur-num-separator: New file.
50383         * modules/unictype/property-bidi-eur-num-terminator: New file.
50384         * modules/unictype/property-bidi-arabic-digit: New file.
50385         * modules/unictype/property-bidi-common-separator: New file.
50386         * modules/unictype/property-bidi-block-separator: New file.
50387         * modules/unictype/property-bidi-segment-separator: New file.
50388         * modules/unictype/property-bidi-whitespace: New file.
50389         * modules/unictype/property-bidi-non-spacing-mark: New file.
50390         * modules/unictype/property-bidi-boundary-neutral: New file.
50391         * modules/unictype/property-bidi-pdf: New file.
50392         * modules/unictype/property-bidi-embedding-or-override: New file.
50393         * modules/unictype/property-bidi-other-neutral: New file.
50394         * modules/unictype/property-hex-digit: New file.
50395         * modules/unictype/property-ascii-hex-digit: New file.
50396         * modules/unictype/property-ideographic: New file.
50397         * modules/unictype/property-unified-ideograph: New file.
50398         * modules/unictype/property-radical: New file.
50399         * modules/unictype/property-ids-binary-operator: New file.
50400         * modules/unictype/property-ids-trinary-operator: New file.
50401         * modules/unictype/property-zero-width: New file.
50402         * modules/unictype/property-space: New file.
50403         * modules/unictype/property-non-break: New file.
50404         * modules/unictype/property-iso-control: New file.
50405         * modules/unictype/property-format-control: New file.
50406         * modules/unictype/property-dash: New file.
50407         * modules/unictype/property-hyphen: New file.
50408         * modules/unictype/property-punctuation: New file.
50409         * modules/unictype/property-line-separator: New file.
50410         * modules/unictype/property-paragraph-separator: New file.
50411         * modules/unictype/property-quotation-mark: New file.
50412         * modules/unictype/property-sentence-terminal: New file.
50413         * modules/unictype/property-terminal-punctuation: New file.
50414         * modules/unictype/property-currency-symbol: New file.
50415         * modules/unictype/property-math: New file.
50416         * modules/unictype/property-other-math: New file.
50417         * modules/unictype/property-paired-punctuation: New file.
50418         * modules/unictype/property-left-of-pair: New file.
50419         * modules/unictype/property-combining: New file.
50420         * modules/unictype/property-composite: New file.
50421         * modules/unictype/property-decimal-digit: New file.
50422         * modules/unictype/property-numeric: New file.
50423         * modules/unictype/property-diacritic: New file.
50424         * modules/unictype/property-extender: New file.
50425         * modules/unictype/property-ignorable-control: New file.
50426         * modules/unictype/property-test: New file.
50427         * modules/unictype/property-byname: New file.
50428         * modules/unictype/property-all: New file.
50429         * modules/unictype/scripts: New file.
50430         * modules/unictype/scripts-all: New file.
50431         * modules/unictype/block-of: New file.
50432         * modules/unictype/block-test: New file.
50433         * modules/unictype/block-list: New file.
50434         * modules/unictype/block-all: New file.
50435         * modules/unictype/syntax-c-whitespace: New file.
50436         * modules/unictype/syntax-java-whitespace: New file.
50437         * modules/unictype/syntax-c-ident: New file.
50438         * modules/unictype/syntax-java-ident: New file.
50439         * modules/unictype/ctype-alnum: New file.
50440         * modules/unictype/ctype-alpha: New file.
50441         * modules/unictype/ctype-cntrl: New file.
50442         * modules/unictype/ctype-digit: New file.
50443         * modules/unictype/ctype-graph: New file.
50444         * modules/unictype/ctype-lower: New file.
50445         * modules/unictype/ctype-print: New file.
50446         * modules/unictype/ctype-punct: New file.
50447         * modules/unictype/ctype-space: New file.
50448         * modules/unictype/ctype-upper: New file.
50449         * modules/unictype/ctype-xdigit: New file.
50450         * modules/unictype/ctype-blank: New file.
50451         * lib/unictype/bidi_byname.c: New file.
50452         * lib/unictype/bidi_name.c: New file.
50453         * lib/unictype/bidi_of.c: New file.
50454         * lib/unictype/bidi_test.c: New file.
50455         * lib/unictype/bitmap.h: New file.
50456         * lib/unictype/block_test.c: New file.
50457         * lib/unictype/blocks.c: New file.
50458         * lib/unictype/categ_C.c: New file.
50459         * lib/unictype/categ_Cc.c: New file.
50460         * lib/unictype/categ_Cf.c: New file.
50461         * lib/unictype/categ_Cn.c: New file.
50462         * lib/unictype/categ_Co.c: New file.
50463         * lib/unictype/categ_Cs.c: New file.
50464         * lib/unictype/categ_L.c: New file.
50465         * lib/unictype/categ_Ll.c: New file.
50466         * lib/unictype/categ_Lm.c: New file.
50467         * lib/unictype/categ_Lo.c: New file.
50468         * lib/unictype/categ_Lt.c: New file.
50469         * lib/unictype/categ_Lu.c: New file.
50470         * lib/unictype/categ_M.c: New file.
50471         * lib/unictype/categ_Mc.c: New file.
50472         * lib/unictype/categ_Me.c: New file.
50473         * lib/unictype/categ_Mn.c: New file.
50474         * lib/unictype/categ_N.c: New file.
50475         * lib/unictype/categ_Nd.c: New file.
50476         * lib/unictype/categ_Nl.c: New file.
50477         * lib/unictype/categ_No.c: New file.
50478         * lib/unictype/categ_P.c: New file.
50479         * lib/unictype/categ_Pc.c: New file.
50480         * lib/unictype/categ_Pd.c: New file.
50481         * lib/unictype/categ_Pe.c: New file.
50482         * lib/unictype/categ_Pf.c: New file.
50483         * lib/unictype/categ_Pi.c: New file.
50484         * lib/unictype/categ_Po.c: New file.
50485         * lib/unictype/categ_Ps.c: New file.
50486         * lib/unictype/categ_S.c: New file.
50487         * lib/unictype/categ_Sc.c: New file.
50488         * lib/unictype/categ_Sk.c: New file.
50489         * lib/unictype/categ_Sm.c: New file.
50490         * lib/unictype/categ_So.c: New file.
50491         * lib/unictype/categ_Z.c: New file.
50492         * lib/unictype/categ_Zl.c: New file.
50493         * lib/unictype/categ_Zp.c: New file.
50494         * lib/unictype/categ_Zs.c: New file.
50495         * lib/unictype/categ_and.c: New file.
50496         * lib/unictype/categ_and_not.c: New file.
50497         * lib/unictype/categ_byname.c: New file.
50498         * lib/unictype/categ_name.c: New file.
50499         * lib/unictype/categ_none.c: New file.
50500         * lib/unictype/categ_of.c: New file.
50501         * lib/unictype/categ_or.c: New file.
50502         * lib/unictype/categ_test.c: New file.
50503         * lib/unictype/combining.c: New file.
50504         * lib/unictype/ctype_alnum.c: New file.
50505         * lib/unictype/ctype_alpha.c: New file.
50506         * lib/unictype/ctype_blank.c: New file.
50507         * lib/unictype/ctype_cntrl.c: New file.
50508         * lib/unictype/ctype_digit.c: New file.
50509         * lib/unictype/ctype_graph.c: New file.
50510         * lib/unictype/ctype_lower.c: New file.
50511         * lib/unictype/ctype_print.c: New file.
50512         * lib/unictype/ctype_punct.c: New file.
50513         * lib/unictype/ctype_space.c: New file.
50514         * lib/unictype/ctype_upper.c: New file.
50515         * lib/unictype/ctype_xdigit.c: New file.
50516         * lib/unictype/decdigit.c: New file.
50517         * lib/unictype/digit.c: New file.
50518         * lib/unictype/identsyntaxmap.h: New file.
50519         * lib/unictype/mirror.c: New file.
50520         * lib/unictype/numeric.c: New file.
50521         * lib/unictype/pr_alphabetic.c: New file.
50522         * lib/unictype/pr_ascii_hex_digit.c: New file.
50523         * lib/unictype/pr_bidi_arabic_digit.c: New file.
50524         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
50525         * lib/unictype/pr_bidi_block_separator.c: New file.
50526         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
50527         * lib/unictype/pr_bidi_common_separator.c: New file.
50528         * lib/unictype/pr_bidi_control.c: New file.
50529         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
50530         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
50531         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
50532         * lib/unictype/pr_bidi_european_digit.c: New file.
50533         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
50534         * lib/unictype/pr_bidi_left_to_right.c: New file.
50535         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
50536         * lib/unictype/pr_bidi_other_neutral.c: New file.
50537         * lib/unictype/pr_bidi_pdf.c: New file.
50538         * lib/unictype/pr_bidi_segment_separator.c: New file.
50539         * lib/unictype/pr_bidi_whitespace.c: New file.
50540         * lib/unictype/pr_byname.c: New file.
50541         * lib/unictype/pr_byname.gperf: New file.
50542         * lib/unictype/pr_combining.c: New file.
50543         * lib/unictype/pr_composite.c: New file.
50544         * lib/unictype/pr_currency_symbol.c: New file.
50545         * lib/unictype/pr_dash.c: New file.
50546         * lib/unictype/pr_decimal_digit.c: New file.
50547         * lib/unictype/pr_default_ignorable_code_point.c: New file.
50548         * lib/unictype/pr_deprecated.c: New file.
50549         * lib/unictype/pr_diacritic.c: New file.
50550         * lib/unictype/pr_extender.c: New file.
50551         * lib/unictype/pr_format_control.c: New file.
50552         * lib/unictype/pr_grapheme_base.c: New file.
50553         * lib/unictype/pr_grapheme_extend.c: New file.
50554         * lib/unictype/pr_grapheme_link.c: New file.
50555         * lib/unictype/pr_hex_digit.c: New file.
50556         * lib/unictype/pr_hyphen.c: New file.
50557         * lib/unictype/pr_id_continue.c: New file.
50558         * lib/unictype/pr_id_start.c: New file.
50559         * lib/unictype/pr_ideographic.c: New file.
50560         * lib/unictype/pr_ids_binary_operator.c: New file.
50561         * lib/unictype/pr_ids_trinary_operator.c: New file.
50562         * lib/unictype/pr_ignorable_control.c: New file.
50563         * lib/unictype/pr_iso_control.c: New file.
50564         * lib/unictype/pr_join_control.c: New file.
50565         * lib/unictype/pr_left_of_pair.c: New file.
50566         * lib/unictype/pr_line_separator.c: New file.
50567         * lib/unictype/pr_logical_order_exception.c: New file.
50568         * lib/unictype/pr_lowercase.c: New file.
50569         * lib/unictype/pr_math.c: New file.
50570         * lib/unictype/pr_non_break.c: New file.
50571         * lib/unictype/pr_not_a_character.c: New file.
50572         * lib/unictype/pr_numeric.c: New file.
50573         * lib/unictype/pr_other_alphabetic.c: New file.
50574         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
50575         * lib/unictype/pr_other_grapheme_extend.c: New file.
50576         * lib/unictype/pr_other_id_continue.c: New file.
50577         * lib/unictype/pr_other_id_start.c: New file.
50578         * lib/unictype/pr_other_lowercase.c: New file.
50579         * lib/unictype/pr_other_math.c: New file.
50580         * lib/unictype/pr_other_uppercase.c: New file.
50581         * lib/unictype/pr_paired_punctuation.c: New file.
50582         * lib/unictype/pr_paragraph_separator.c: New file.
50583         * lib/unictype/pr_pattern_syntax.c: New file.
50584         * lib/unictype/pr_pattern_white_space.c: New file.
50585         * lib/unictype/pr_private_use.c: New file.
50586         * lib/unictype/pr_punctuation.c: New file.
50587         * lib/unictype/pr_quotation_mark.c: New file.
50588         * lib/unictype/pr_radical.c: New file.
50589         * lib/unictype/pr_sentence_terminal.c: New file.
50590         * lib/unictype/pr_soft_dotted.c: New file.
50591         * lib/unictype/pr_space.c: New file.
50592         * lib/unictype/pr_terminal_punctuation.c: New file.
50593         * lib/unictype/pr_test.c: New file.
50594         * lib/unictype/pr_titlecase.c: New file.
50595         * lib/unictype/pr_unassigned_code_value.c: New file.
50596         * lib/unictype/pr_unified_ideograph.c: New file.
50597         * lib/unictype/pr_uppercase.c: New file.
50598         * lib/unictype/pr_variation_selector.c: New file.
50599         * lib/unictype/pr_white_space.c: New file.
50600         * lib/unictype/pr_xid_continue.c: New file.
50601         * lib/unictype/pr_xid_start.c: New file.
50602         * lib/unictype/pr_zero_width.c: New file.
50603         * lib/unictype/scripts.c: New file.
50604         * lib/unictype/sy_c_ident.c: New file.
50605         * lib/unictype/sy_c_whitespace.c: New file.
50606         * lib/unictype/sy_java_ident.c: New file.
50607         * lib/unictype/sy_java_whitespace.c: New file.
50608
50609         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
50610         Unicode 5.0.0.
50611         * lib/unictype/blocks.h: Likewise.
50612         * lib/unictype/categ_C.h: Likewise.
50613         * lib/unictype/categ_Cc.h: Likewise.
50614         * lib/unictype/categ_Cf.h: Likewise.
50615         * lib/unictype/categ_Cn.h: Likewise.
50616         * lib/unictype/categ_Co.h: Likewise.
50617         * lib/unictype/categ_Cs.h: Likewise.
50618         * lib/unictype/categ_L.h: Likewise.
50619         * lib/unictype/categ_Ll.h: Likewise.
50620         * lib/unictype/categ_Lm.h: Likewise.
50621         * lib/unictype/categ_Lo.h: Likewise.
50622         * lib/unictype/categ_Lt.h: Likewise.
50623         * lib/unictype/categ_Lu.h: Likewise.
50624         * lib/unictype/categ_M.h: Likewise.
50625         * lib/unictype/categ_Mc.h: Likewise.
50626         * lib/unictype/categ_Me.h: Likewise.
50627         * lib/unictype/categ_Mn.h: Likewise.
50628         * lib/unictype/categ_N.h: Likewise.
50629         * lib/unictype/categ_Nd.h: Likewise.
50630         * lib/unictype/categ_Nl.h: Likewise.
50631         * lib/unictype/categ_No.h: Likewise.
50632         * lib/unictype/categ_P.h: Likewise.
50633         * lib/unictype/categ_Pc.h: Likewise.
50634         * lib/unictype/categ_Pd.h: Likewise.
50635         * lib/unictype/categ_Pe.h: Likewise.
50636         * lib/unictype/categ_Pf.h: Likewise.
50637         * lib/unictype/categ_Pi.h: Likewise.
50638         * lib/unictype/categ_Po.h: Likewise.
50639         * lib/unictype/categ_Ps.h: Likewise.
50640         * lib/unictype/categ_S.h: Likewise.
50641         * lib/unictype/categ_Sc.h: Likewise.
50642         * lib/unictype/categ_Sk.h: Likewise.
50643         * lib/unictype/categ_Sm.h: Likewise.
50644         * lib/unictype/categ_So.h: Likewise.
50645         * lib/unictype/categ_Z.h: Likewise.
50646         * lib/unictype/categ_Zl.h: Likewise.
50647         * lib/unictype/categ_Zp.h: Likewise.
50648         * lib/unictype/categ_Zs.h: Likewise.
50649         * lib/unictype/categ_of.h: Likewise.
50650         * lib/unictype/combining.h: Likewise.
50651         * lib/unictype/ctype_alnum.h: Likewise.
50652         * lib/unictype/ctype_alpha.h: Likewise.
50653         * lib/unictype/ctype_blank.h: Likewise.
50654         * lib/unictype/ctype_cntrl.h: Likewise.
50655         * lib/unictype/ctype_digit.h: Likewise.
50656         * lib/unictype/ctype_graph.h: Likewise.
50657         * lib/unictype/ctype_lower.h: Likewise.
50658         * lib/unictype/ctype_print.h: Likewise.
50659         * lib/unictype/ctype_punct.h: Likewise.
50660         * lib/unictype/ctype_space.h: Likewise.
50661         * lib/unictype/ctype_upper.h: Likewise.
50662         * lib/unictype/ctype_xdigit.h: Likewise.
50663         * lib/unictype/decdigit.h: Likewise.
50664         * lib/unictype/digit.h: Likewise.
50665         * lib/unictype/mirror.h: Likewise.
50666         * lib/unictype/numeric.h: Likewise.
50667         * lib/unictype/pr_alphabetic.h: Likewise.
50668         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
50669         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
50670         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
50671         * lib/unictype/pr_bidi_block_separator.h: Likewise.
50672         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
50673         * lib/unictype/pr_bidi_common_separator.h: Likewise.
50674         * lib/unictype/pr_bidi_control.h: Likewise.
50675         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
50676         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
50677         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
50678         * lib/unictype/pr_bidi_european_digit.h: Likewise.
50679         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
50680         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
50681         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
50682         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
50683         * lib/unictype/pr_bidi_pdf.h: Likewise.
50684         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
50685         * lib/unictype/pr_bidi_whitespace.h: Likewise.
50686         * lib/unictype/pr_combining.h: Likewise.
50687         * lib/unictype/pr_composite.h: Likewise.
50688         * lib/unictype/pr_currency_symbol.h: Likewise.
50689         * lib/unictype/pr_dash.h: Likewise.
50690         * lib/unictype/pr_decimal_digit.h: Likewise.
50691         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
50692         * lib/unictype/pr_deprecated.h: Likewise.
50693         * lib/unictype/pr_diacritic.h: Likewise.
50694         * lib/unictype/pr_extender.h: Likewise.
50695         * lib/unictype/pr_format_control.h: Likewise.
50696         * lib/unictype/pr_grapheme_base.h: Likewise.
50697         * lib/unictype/pr_grapheme_extend.h: Likewise.
50698         * lib/unictype/pr_grapheme_link.h: Likewise.
50699         * lib/unictype/pr_hex_digit.h: Likewise.
50700         * lib/unictype/pr_hyphen.h: Likewise.
50701         * lib/unictype/pr_id_continue.h: Likewise.
50702         * lib/unictype/pr_id_start.h: Likewise.
50703         * lib/unictype/pr_ideographic.h: Likewise.
50704         * lib/unictype/pr_ids_binary_operator.h: Likewise.
50705         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
50706         * lib/unictype/pr_ignorable_control.h: Likewise.
50707         * lib/unictype/pr_iso_control.h: Likewise.
50708         * lib/unictype/pr_join_control.h: Likewise.
50709         * lib/unictype/pr_left_of_pair.h: Likewise.
50710         * lib/unictype/pr_line_separator.h: Likewise.
50711         * lib/unictype/pr_logical_order_exception.h: Likewise.
50712         * lib/unictype/pr_lowercase.h: Likewise.
50713         * lib/unictype/pr_math.h: Likewise.
50714         * lib/unictype/pr_non_break.h: Likewise.
50715         * lib/unictype/pr_not_a_character.h: Likewise.
50716         * lib/unictype/pr_numeric.h: Likewise.
50717         * lib/unictype/pr_other_alphabetic.h: Likewise.
50718         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
50719         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
50720         * lib/unictype/pr_other_id_continue.h: Likewise.
50721         * lib/unictype/pr_other_id_start.h: Likewise.
50722         * lib/unictype/pr_other_lowercase.h: Likewise.
50723         * lib/unictype/pr_other_math.h: Likewise.
50724         * lib/unictype/pr_other_uppercase.h: Likewise.
50725         * lib/unictype/pr_paired_punctuation.h: Likewise.
50726         * lib/unictype/pr_paragraph_separator.h: Likewise.
50727         * lib/unictype/pr_pattern_syntax.h: Likewise.
50728         * lib/unictype/pr_pattern_white_space.h: Likewise.
50729         * lib/unictype/pr_private_use.h: Likewise.
50730         * lib/unictype/pr_punctuation.h: Likewise.
50731         * lib/unictype/pr_quotation_mark.h: Likewise.
50732         * lib/unictype/pr_radical.h: Likewise.
50733         * lib/unictype/pr_sentence_terminal.h: Likewise.
50734         * lib/unictype/pr_soft_dotted.h: Likewise.
50735         * lib/unictype/pr_space.h: Likewise.
50736         * lib/unictype/pr_terminal_punctuation.h: Likewise.
50737         * lib/unictype/pr_titlecase.h: Likewise.
50738         * lib/unictype/pr_unassigned_code_value.h: Likewise.
50739         * lib/unictype/pr_unified_ideograph.h: Likewise.
50740         * lib/unictype/pr_uppercase.h: Likewise.
50741         * lib/unictype/pr_variation_selector.h: Likewise.
50742         * lib/unictype/pr_white_space.h: Likewise.
50743         * lib/unictype/pr_xid_continue.h: Likewise.
50744         * lib/unictype/pr_xid_start.h: Likewise.
50745         * lib/unictype/pr_zero_width.h: Likewise.
50746         * lib/unictype/scripts.h: Likewise.
50747         * lib/unictype/scripts_byname.gperf: Likewise.
50748         * lib/unictype/sy_c_ident.h: Likewise.
50749         * lib/unictype/sy_c_whitespace.h: Likewise.
50750         * lib/unictype/sy_java_ident.h: Likewise.
50751         * lib/unictype/sy_java_whitespace.h: Likewise.
50752
50753         * lib/unictype/Makefile: New file.
50754         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
50755         glibc.
50756         * lib/unictype/3level.h: New file, copied from glibc.
50757         * lib/unictype/3levelbit.h: New file.
50758
50759 2007-11-11  Bruno Haible  <bruno@clisp.org>
50760
50761         * modules/gperf: New file.
50762         * modules/iconv_open (Depends-on): Add it.
50763         (Makefile.am): Remove the GPERF definition.
50764
50765 2007-11-11  Bruno Haible  <bruno@clisp.org>
50766
50767         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
50768         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
50769
50770 2007-11-11  Bruno Haible  <bruno@clisp.org>
50771
50772         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
50773         (usage): Remove function.
50774
50775 2007-11-11  Bruno Haible  <bruno@clisp.org>
50776
50777         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
50778         gl_FUNC_CEILF_LIBS.
50779         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
50780         gl_FUNC_CEIL_LIBS.
50781         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
50782         gl_FUNC_CEILL_LIBS.
50783         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
50784         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
50785         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
50786
50787 2007-11-11  Bruno Haible  <bruno@clisp.org>
50788
50789         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
50790         roundf were declared but do not exist on functions.
50791         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
50792         roundl were declared but do not exist on functions.
50793         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
50794         HAVE_FLOORL_AND_CEILL, respectively.
50795         Needed for Sun C on Solaris 10.
50796
50797 2007-11-11  Bruno Haible  <bruno@clisp.org>
50798
50799         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
50800         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
50801         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
50802         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
50803         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
50804         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
50805         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
50806         HAVE_DECL_ROUNDF.
50807         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
50808         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
50809         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
50810         of HAVE_DECL_ROUND*.
50811         * modules/math (Makefile.am): Update.
50812
50813 2007-11-10  Bruno Haible  <bruno@clisp.org>
50814
50815         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
50816         ptrdiff_t as m4/intl.m4.
50817
50818 2007-11-10  Jim Meyering  <meyering@redhat.com>
50819
50820         Avoid link failure for the argmatch test.
50821         * tests/test-argmatch.c (usage): Define function to avoid a link
50822         failure: argmatch_die requires a usage function.
50823
50824 2007-11-09  Bruno Haible  <bruno@clisp.org>
50825
50826         * doc/functions/snprintf.texi: Mention BeOS deficiency.
50827         * doc/functions/vsnprintf.texi: Likewise.
50828         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
50829         with a size argument < 2.
50830
50831 2007-11-09  Bruno Haible  <bruno@clisp.org>
50832
50833         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
50834         buffer. Fixes an inefficiency introduced on 2007-11-03.
50835
50836 2007-11-09  Bruno Haible  <bruno@clisp.org>
50837
50838         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
50839         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
50840
50841 2007-11-08  Jim Meyering  <meyering@redhat.com>
50842
50843         Change cache variable name prefix "jm_" to "gl_" everywhere.
50844         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
50845         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
50846         * m4/uptime.m4: s/gl_/jm_/
50847
50848 2007-11-07  Bruno Haible  <bruno@clisp.org>
50849
50850         Update to GNU gettext 0.17.
50851         * m4/intl.m4: Update to GNU gettext 0.17.
50852         * m4/po.m4: Likewise.
50853         * modules/gettext (Files): Remove m4/ulonglong.m4.
50854         (configure.ac): Require gettext infrastructure from version 0.17.
50855
50856 2007-11-06  Bruno Haible  <bruno@clisp.org>
50857
50858         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
50859         symbolic values are not defined in a public header.
50860         * lib/freadable.c (freadable) [QNX]: Likewise.
50861         * lib/freadahead.c (freadahead) [QNX]: Likewise.
50862         * lib/freading.c (freading) [QNX]: Likewise.
50863         * lib/fseterr.c (fseterr) [QNX]: Likewise.
50864         * lib/fwritable.c (fwritable) [QNX]: Likewise.
50865         * lib/fwriting.c (fwriting) [QNX]: Likewise.
50866         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
50867         Reported by Alain Magloire.
50868
50869         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
50870
50871 2007-11-05  Bruno Haible  <bruno@clisp.org>
50872
50873         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
50874         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
50875         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
50876         Reported by Eric Blake.
50877
50878 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50879             Bruno Haible  <bruno@clisp.org>
50880
50881         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
50882         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
50883         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
50884         (malloc): Undefine also before including <stdlib.h>.
50885         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
50886         Needed on OSF/1 4.0.
50887
50888 2007-11-05  Jim Meyering  <meyering@redhat.com>
50889
50890         git-version-gen: sync from coreutils.
50891         * build-aux/git-version-gen: Add comments.
50892         Change the first '-' to '.' in the snapshot version string,
50893         e.g., 6.9-377-08144 -> 6.9.377-08144
50894         Remove first parameter.
50895         Don't declare a version "-dirty" merely because a time
50896         stamp has changed.
50897
50898 2007-11-04  Bruno Haible  <bruno@clisp.org>
50899
50900         * lib/lock.h: Protect all macro definitions containing an 'if'
50901         statement through a "do { ... } while (0)".
50902         * lib/tls.h: Likewise.
50903
50904 2007-11-04  Bruno Haible  <bruno@clisp.org>
50905
50906         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
50907
50908 2007-11-04  Bruno Haible  <bruno@clisp.org>
50909
50910         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
50911         * modules/fprintf-posix (Depends-on): Add nocrash.
50912         * modules/snprintf-posix (Depends-on): Likewise.
50913         * modules/sprintf-posix (Depends-on): Likewise.
50914         * modules/vasnprintf-posix (Depends-on): Likewise.
50915         * modules/vasprintf-posix (Depends-on): Likewise.
50916         * modules/vfprintf-posix (Depends-on): Likewise.
50917         * modules/vsnprintf-posix (Depends-on): Likewise.
50918         * modules/vsprintf-posix (Depends-on): Likewise.
50919         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50920         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50921         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50922         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50923         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
50924         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
50925         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
50926
50927 2007-11-04  Bruno Haible  <bruno@clisp.org>
50928
50929         * modules/nocrash: New file.
50930         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
50931         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
50932
50933 2007-11-04  Bruno Haible  <bruno@clisp.org>
50934
50935         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
50936         precision handling.
50937         * tests/test-vasprintf-posix.c (test_function): Likewise.
50938         * tests/test-snprintf-posix.h (test_function): Likewise.
50939         * tests/test-sprintf-posix.h (test_function): Likewise.
50940
50941         Fix *printf behaviour for large precisions on mingw and BeOS.
50942         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
50943         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
50944         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
50945         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50946         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50947         gl_PRINTF_PRECISION and test its result. Invoke
50948         gl_PREREQ_VASNPRINTF_PRECISION.
50949         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50950         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50951         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50952         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50953         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50954         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50955         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50956         * doc/functions/fprintf.texi: Update.
50957         * doc/functions/printf.texi: Update.
50958         * doc/functions/snprintf.texi: Update.
50959         * doc/functions/sprintf.texi: Update.
50960         * doc/functions/vfprintf.texi: Update.
50961         * doc/functions/vprintf.texi: Update.
50962         * doc/functions/vsnprintf.texi: Update.
50963         * doc/functions/vsprintf.texi: Update.
50964
50965 2007-11-04  Bruno Haible  <bruno@clisp.org>
50966
50967         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
50968
50969 2007-11-04  Bruno Haible  <bruno@clisp.org>
50970
50971         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
50972         Reported by Sylvain Beucler <beuc@gnu.org>.
50973
50974 2007-11-03  Bruno Haible  <bruno@clisp.org>
50975
50976         * tests/test-fprintf-posix2.sh: New file.
50977         * tests/test-fprintf-posix2.c: New file.
50978         * modules/fprintf-posix-tests (Files): Add them.
50979         (TESTS): Add test-fprintf-posix2.sh.
50980         (configure.ac): Check for getrlimit and setrlimit.
50981         (check_PROGRAMS): Add test-fprintf-posix2.
50982
50983         * tests/test-printf-posix2.sh: New file.
50984         * tests/test-printf-posix2.c: New file.
50985         * modules/printf-posix-tests (Files): Add them.
50986         (TESTS): Add test-printf-posix2.sh.
50987         (configure.ac): Check for getrlimit and setrlimit.
50988         (check_PROGRAMS): Add test-printf-posix2.
50989
50990         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
50991         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
50992         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
50993         (decode_double): New function, copied from decode_long_double.
50994         (scale10_round_decimal_decoded): New function, extracted from
50995         scale10_round_decimal_long_double.
50996         (scale10_round_decimal_long_double): Use it.
50997         (scale10_round_decimal_double): New function.
50998         (floorlog10): New function.
50999         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
51000         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
51001         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51002         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51003         gl_PRINTF_ENOMEM and test its result. Invoke
51004         gl_PREREQ_VASNPRINTF_ENOMEM.
51005         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51006         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51007         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51008         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51009         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51010         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51011         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51012         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
51013         * modules/snprintf-posix (Depends-on): Likewise.
51014         * modules/sprintf-posix (Depends-on): Likewise.
51015         * modules/vasnprintf-posix (Depends-on): Likewise.
51016         * modules/vasprintf-posix (Depends-on): Likewise.
51017         * modules/vfprintf-posix (Depends-on): Likewise.
51018         * modules/vsnprintf-posix (Depends-on): Likewise.
51019         * modules/vsprintf-posix (Depends-on): Likewise.
51020         * doc/functions/fprintf.texi: Update.
51021         * doc/functions/printf.texi: Update.
51022         * doc/functions/snprintf.texi: Update.
51023         * doc/functions/sprintf.texi: Update.
51024         * doc/functions/vfprintf.texi: Update.
51025         * doc/functions/vprintf.texi: Update.
51026         * doc/functions/vsnprintf.texi: Update.
51027         * doc/functions/vsprintf.texi: Update.
51028
51029 2007-11-03  Bruno Haible  <bruno@clisp.org>
51030
51031         * modules/frexp-nolibm-tests: New file.
51032
51033         * modules/frexp-nolibm: New file.
51034         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
51035
51036 2007-11-03  Bruno Haible  <bruno@clisp.org>
51037
51038         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
51039         value is C99 compliant.
51040         Needed for OSF/1 5.1.
51041
51042 2007-11-03  Bruno Haible  <bruno@clisp.org>
51043
51044         Fix out-of-memory handling of vasnprintf.
51045         * lib/printf-parse.c: Include <errno.h>.
51046         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
51047         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
51048         is already set.
51049
51050 2007-11-02  Eric Blake  <ebb9@byu.net>
51051
51052         Fix tests on cygwin.
51053         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
51054
51055 2007-11-01  Bruno Haible  <bruno@clisp.org>
51056
51057         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
51058         warning.
51059         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
51060         needed for POSIX compatibility.
51061
51062 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
51063
51064         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
51065         for compatibility with GNU.
51066
51067 2007-11-01  Bruno Haible  <bruno@clisp.org>
51068
51069         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
51070         (putenv): Renamed from rpl_putenv. Change argument type from
51071         'const char *' to 'char *'.
51072         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
51073         of defining putenv in config.h, just set REPLACE_PUTENV.
51074         * modules/putenv (Depends-on): Add stdlib.
51075         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51076         (Include): Use <stdlib.h>.
51077         * lib/stdlib.in.h (putenv): New declaration.
51078         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
51079         REPLACE_PUTENV.
51080         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
51081         REPLACE_PUTENV.
51082         Needed for MacOS X 10.5.0.
51083         Reported by Peter O'Gorman <peter@pogma.com>.
51084
51085 2007-11-01  Jim Meyering  <meyering@redhat.com>
51086
51087         Treat an empty date string exactly like "0".
51088         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
51089         if the remaining date string (to be parsed) is empty, use "0".
51090         Reported by Mischa Molhoek and discussed in this thread:
51091         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
51092
51093 2007-10-31  Bruno Haible  <bruno@clisp.org>
51094
51095         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
51096         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
51097         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
51098         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
51099         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
51100         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
51101
51102 2007-10-31  Bruno Haible  <bruno@clisp.org>
51103
51104         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
51105         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
51106         (AC_TYPE_LONG_LONG_INT): Use it.
51107         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
51108         it as well.
51109         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
51110         to m4/longlong.m4.
51111         * modules/stdint (Files): Remove m4/ulonglong.m4.
51112         * modules/strtoull (Files): Use m4/longlong.m4 instead of
51113         m4/ulonglong.m4.
51114         * modules/strtoumax (Files): Likewise.
51115
51116 2007-10-30  Bruno Haible  <bruno@clisp.org>
51117
51118         * modules/xvasprintf-posix: New file.
51119         Suggested by Eric Blake.
51120
51121 2007-10-30  Bruno Haible  <bruno@clisp.org>
51122
51123         * modules/xprintf-posix-tests: New file.
51124         * tests/test-xprintf-posix.sh: New file.
51125         * tests/test-xprintf-posix.c: New file.
51126         * tests/test-xfprintf-posix.c: New file.
51127
51128         * modules/xprintf-posix: New file.
51129
51130 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51131
51132         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
51133         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
51134         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
51135
51136 2007-10-29  Bruno Haible  <bruno@clisp.org>
51137
51138         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
51139         contain the special marker '_cv_'.
51140         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
51141         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
51142         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
51143         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
51144         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
51145         Reported by Ralf Wildenhues.
51146
51147 2007-10-29  Bruno Haible  <bruno@clisp.org>
51148
51149         * gnulib-tool (func_import): When --lgpl is not specified, set
51150         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
51151         GPLv3.
51152         Reported by Simon Josefsson.
51153
51154 2007-10-28  Bruno Haible  <bruno@clisp.org>
51155
51156         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
51157         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
51158         HAVE_DECL_ISFINITE.
51159         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
51160         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
51161         HAVE_DECL_ISFINITE.
51162
51163 2007-10-28  Bruno Haible  <bruno@clisp.org>
51164
51165         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
51166         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
51167
51168 2007-10-28  Bruno Haible  <bruno@clisp.org>
51169
51170         Fix link errors with Sun C 5.0 on Solaris 10.
51171         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
51172         function is declared but not present in the compiler's libm.
51173         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
51174         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
51175         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
51176         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
51177         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
51178         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
51179         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
51180         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
51181         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
51182         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
51183         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
51184         HAVE_DECL_FLOORL.
51185
51186 2007-10-28  Bruno Haible  <bruno@clisp.org>
51187
51188         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
51189         gl_FUNC_FLOORL. Cache the result.
51190         (gl_FUNC_FLOORL): Use it.
51191         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
51192         gl_FUNC_CEILL. Cache the result.
51193         (gl_FUNC_CEILL): Use it.
51194
51195         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
51196         gl_FUNC_FLOOR. Cache the result.
51197         (gl_FUNC_FLOOR): Use it.
51198         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
51199         gl_FUNC_CEIL. Cache the result.
51200         (gl_FUNC_CEIL): Use it.
51201
51202         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
51203         gl_FUNC_FLOORF. Cache the result.
51204         (gl_FUNC_FLOORF): Use it.
51205         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
51206         gl_FUNC_CEILF. Cache the result.
51207         (gl_FUNC_CEILF): Use it.
51208
51209 2007-10-28  Bruno Haible  <bruno@clisp.org>
51210
51211         * gnulib-tool: Allow specifying the LGPL version number through
51212         --lgpl=2 or --lgpl=3.
51213         (func_usage): Document --lgpl with argument.
51214         Handle --lgpl=... arguments.
51215         (func_import): Recognize also gl_LGPL calls with an argument. When
51216         --lgpl=2 is used and the module's license is just LGPL, report an
51217         error. Set sed_transform_lib_file according to the lgpl variable. In
51218         the generated files, use --lgpl or gl_LGPL invocations with argument,
51219         if necessary.
51220         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
51221         an LGPv2+ license.
51222         * doc/gnulib-tool.texi (Modified imports): Update explanation of
51223         gl_LGPL macro.
51224
51225 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51226             Bruno Haible  <bruno@clisp.org>
51227
51228         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
51229         (u16_uctomb_aux): Likewise.
51230         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
51231         !HAVE_INLINE.
51232         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
51233
51234 2007-10-28  Bruno Haible  <bruno@clisp.org>
51235
51236         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
51237         Invoke AM_GETTEXT_OPTION if it exists.
51238         * modules/vasprintf: Likewise.
51239         * modules/verror: Likewise.
51240         * modules/xprintf: Likewise.
51241         * modules/xvasprintf: Likewise.
51242
51243 2007-10-27  Ben Pfaff  <blp@gnu.org>
51244
51245         * lib/math.in.h: Define isfinite macro and prototypes for
51246         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
51247         implementations.
51248         * m4/math_h.m4: New substitutions for isfinite module.
51249         * lib/isfinite.c: New file.
51250         * m4/isfinite.m4: New file.
51251         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
51252         * modules/isfinite: New file.
51253         * modules/isfinite-tests: New file.
51254         * tests/tests-isfinite.c: New file.
51255         * doc/functions/isfinite.texi: Mention isfinite module.
51256         * MODULES.html.sh: Mention new module.
51257
51258 2007-10-27  Ben Pfaff  <blp@gnu.org>
51259
51260         Ralf Wildenhues reported that Tru64 4.0D declares the round
51261         functions but does not have definitions.
51262         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
51263         cannot be found in any library, set the output variable to
51264         "missing" instead of "".
51265         * m4/round.m4: Also use our substitute if we cannot find round in
51266         any library, even if it is declared.
51267         * m4/roundf.m4: Likewise for roundf.
51268         * m4/roundl.m4: Likewise for roundl.
51269         * lib/math.in.h: Undefine roundf, round, roundl before defining
51270         their replacements, to allow for hypothetical systems where these
51271         may be defined as macros but not available in libraries.
51272
51273 2007-10-27  Bruno Haible  <bruno@clisp.org>
51274
51275         * doc/gnulib.texi: Invoke @firstparagraphindent.
51276         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
51277         changes in gnulib.
51278         (Source changes): New section.
51279
51280 2007-10-26  Bruno Haible  <bruno@clisp.org>
51281
51282         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
51283         borrowed from autoconf.
51284
51285 2007-10-26  Bruno Haible  <bruno@clisp.org>
51286
51287         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
51288         strerror returned the empty string. Needed on HP-UX 11.00.
51289
51290 2007-10-24  Micah Cowan  <micah@cowan.name>
51291
51292         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
51293         * build-aux/bootstrap: Remove support for now-unnecessary option,
51294         --cvs-user, and envvars CVS_USER, CVS_RSH.
51295
51296 2007-10-24  Jim Meyering  <meyering@redhat.com>
51297
51298         Avoid diagnostics from sha1sum when there is no cached checksum.
51299         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
51300         if the po.s1 file hasn't been created yet.
51301
51302         * build-aux/bootstrap: Sync from coreutils:
51303         2007-10-24  Jim Meyering  <meyering@redhat.com>
51304         Get gnulib from the git repository, not from an obsolete cvs one.
51305         * build-aux/bootstrap: Suggestion from Micah Cowan.
51306         2007-10-04  Jim Meyering  <jim@meyering.net>
51307         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
51308         (update_po_files): Work also when there are no .po files in po/.
51309
51310 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51311
51312         * README: Append ".git" to git and cg examples.
51313         Problem reported by Benoit Sigoure.
51314
51315 2007-10-23  Micah Cowan  <micah@cowan.name>
51316
51317         * users.txt: Add wget.
51318
51319 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51320
51321         Fix linking of some unistdio tests on FreeBSD.
51322         * modules/unistdio/u16-vsnprintf-tests
51323         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
51324         * modules/unistdio/u16-vsprintf-tests
51325         (test_u16_vsnprintf1_LDADD): Likewise.
51326         * modules/unistdio/u32-vsnprintf-tests
51327         (test_u32_vsnprintf1_LDADD): Likewise.
51328         * modules/unistdio/u32-vsprintf-tests
51329         (test_u32_vsprintf1_LDADD): Likewise.
51330         * modules/unistdio/u8-vsnprintf-tests
51331         (test_u8_vsnprintf1_LDADD): Likewise.
51332         * modules/unistdio/u8-vsprintf-tests
51333         (test_u8_vsprintf1_LDADD): Likewise.
51334         * modules/unistdio/ulc-vsnprintf-tests
51335         (test_ulc_vsnprintf1_LDADD): Likewise.
51336         * modules/unistdio/ulc-vsprintf-tests
51337         (test_ulc_vsprintf1_LDADD): Likewise.
51338
51339         Fix linking of some uniconv tests on FreeBSD.
51340         * modules/uniconv/u16-conv-from-enc-tests
51341         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
51342         * modules/uniconv/u16-conv-to-enc-tests
51343         (test_u16_conv_to_enc_LDADD): Likewise.
51344         * modules/uniconv/u16-strconv-from-enc-tests
51345         (test_u16_strconv_from_enc_LDADD): Likewise.
51346         * modules/uniconv/u16-strconv-to-enc-tests
51347         (test_u16_strconv_to_enc_LDADD): Likewise.
51348         * modules/uniconv/u32-conv-from-enc-tests
51349         (test_u32_conv_from_enc_LDADD): Likewise.
51350         * modules/uniconv/u32-conv-to-enc-tests
51351         (test_u32_conv_to_enc_LDADD): Likewise.
51352         * modules/uniconv/u32-strconv-from-enc-tests
51353         (test_u32_strconv_from_enc_LDADD): Likewise.
51354         * modules/uniconv/u32-strconv-to-enc-tests
51355         (test_u32_strconv_to_enc_LDADD): Likewise.
51356         * modules/uniconv/u8-conv-from-enc-tests
51357         (test_u8_conv_from_enc_LDADD): Likewise.
51358         * modules/uniconv/u8-conv-to-enc-tests
51359         (test_u8_conv_to_enc_LDADD): Likewise.
51360         * modules/uniconv/u8-strconv-from-enc-tests
51361         (test_u8_strconv_from_enc_LDADD): Likewise.
51362         * modules/uniconv/u8-strconv-to-enc-tests
51363         (test_u8_strconv_to_enc_LDADD): Likewise.
51364
51365 2007-10-22  Bruno Haible  <bruno@clisp.org>
51366
51367         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
51368         size.
51369
51370 2007-10-22  Eric Blake  <ebb9@byu.net>
51371
51372         Tweak x*printf documentation.
51373         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
51374         variable name and comments.
51375         Suggested by Bruno Haible.
51376
51377 2007-10-22  Bruno Haible  <bruno@clisp.org>
51378
51379         * lib/acl.c (copy_acl): Fix file name in comment.
51380
51381 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
51382
51383         Fix Tru64 problem with stdbool.h.
51384         * lib/stdbool.in.h (false, true):
51385         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
51386         Don't declare as an enum in this situation; it runs afoul of Tru64.
51387         Problem reported by Steven M. Schweda in
51388         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
51389
51390 2007-10-22  Eric Blake  <ebb9@byu.net>
51391
51392         Also wrap vf?printf.
51393         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
51394         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
51395         (xvprintf, xvfprintf): New functions.
51396
51397 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51398
51399         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
51400         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
51401
51402         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
51403         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
51404
51405 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
51406
51407         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
51408         by Bruno Haible.
51409
51410 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51411
51412         * lib/getloadavg.c
51413         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
51414         Undef `sys' after including sys/table.h, for Tru64 4.0D.
51415
51416         * tests/test-i-ring.c: Work for C89.
51417
51418 2007-10-22  Bruno Haible  <bruno@clisp.org>
51419
51420         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
51421         -1u, in preprocessor expression, so that we don't test for the bug
51422         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
51423         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
51424
51425 2007-10-22  Eric Blake  <ebb9@byu.net>
51426
51427         * tests/test-yesno.sh: Silence stderr during test.
51428
51429 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51430
51431         * modules/crypto/gc-camellia: New file.
51432
51433         * m4/gc-camellia.m4: New file.
51434
51435         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
51436
51437         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
51438
51439 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51440
51441         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
51442         --help to stdout.  Reported by sms@antinode.org (Steven
51443         M. Schweda).
51444
51445 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51446
51447         * users.txt: Fix link to libksba.
51448
51449 2007-10-21  Ben Pfaff  <blp@gnu.org>
51450
51451         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
51452         round.c roundf implementation that depends on floorf and ceilf to
51453         be tested unconditionally.
51454
51455 2007-10-21  Ben Pfaff  <blp@gnu.org>
51456
51457         * m4/check-libm-func.m4: Removed.
51458         * m4/check-math-lib.m4: New file.
51459         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
51460         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
51461         definition and lack of AC_LIBOBJ([roundf]).
51462         * m4/roundl.m4: Ditto, and similarly for roundl.
51463         * modules/round: Reference new m4 file.
51464         * modules/roundf: Ditto.
51465         * modules/roundl: Ditto.
51466         * tests/test-round2.c (main): Use ROUND instead of round.
51467         Bug report from Bruno Haible.
51468
51469 2007-10-21  Bruno Haible  <bruno@clisp.org>
51470
51471         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
51472         context.
51473
51474 2007-10-21  Bruno Haible  <bruno@clisp.org>
51475
51476         * tests/test-wcwidth.c (main): Allow negative result for some control
51477         characters.
51478
51479         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
51480         Needed on OSF/1 5.1.
51481
51482 2007-10-21  Bruno Haible  <bruno@clisp.org>
51483
51484         * tests/test-floorf1.c: Include isnanf.h.
51485         (main): Use isnanf() instead of isnan().
51486         * tests/test-ceilf1.c: Include isnanf.h.
51487         (main): Use isnanf() instead of isnan().
51488         * tests/test-truncf1.c: Include isnanf.h.
51489         (main): Use isnanf() instead of isnan().
51490         * tests/test-roundf1.c: Include isnanf.h.
51491         (main): Use isnanf() instead of isnan().
51492
51493 2007-10-21  Eric Blake  <ebb9@byu.net>
51494
51495         * users.txt: Update URL for m4.
51496
51497 2007-10-21  Bruno Haible  <bruno@clisp.org>
51498
51499         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
51500
51501 2007-10-21  Bruno Haible  <bruno@clisp.org>
51502
51503         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
51504         Git's management files if the CVS files are not present.
51505
51506 2007-10-20  Bruno Haible  <bruno@clisp.org>
51507
51508         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
51509         gcc-3.4.x.
51510
51511 2007-10-20  Ben Pfaff  <blp@gnu.org>
51512
51513         * lib/math.in.h: Declare round, roundf, roundl if we are providing
51514         implementations.
51515         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
51516         * lib/round.c: New file.
51517         * lib/roundf.c: New file.
51518         * lib/roundl.c: New file.
51519         * m4/round.m4: New file.
51520         * m4/roundf.m4: New file.
51521         * m4/roundl.m4: New file.
51522         * m4/check-libm-func-m4: New file.
51523         * modules/math: Replace round, roundf, roundl related @VARS@ in
51524         math.in.h.
51525         * modules/round: New file.
51526         * modules/round-tests: New file.
51527         * modules/roundf: New file.
51528         * modules/roundf-tests: New file.
51529         * modules/roundl: New file.
51530         * modules/roundl-tests: New file.
51531         * tests/test-round1.c: New file.
51532         * tests/test-round2.c: New file.
51533         * tests/test-roundf1.c: New file.
51534         * tests/test-roundf2.c: New file.
51535         * tests/test-roundl.c: New file.
51536         * doc/functions/round.texi: Mention round module.
51537         * doc/functions/roundf.texi: Mention roundf module.
51538         * doc/functions/roundl.texi: Mention roundl module.
51539         * MODULES.html.sh: Mention new modules.
51540         Thanks to Bruno Haible for suggestions.
51541
51542 2007-10-20  Jim Meyering  <meyering@redhat.com>
51543
51544         * lib/xprintf.c: Include <config.h> unconditionally.
51545
51546         Change xprintf's license to GPL.
51547         * modules/xprintf (License): s/LGPL/GPL/, since this module
51548         depends on modules (exit and exitfail) which are GPL.
51549         Suggestion from Bruno Haible.
51550
51551         xprintf fixes.
51552         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
51553         Use a clearer diagnostic.
51554         Patch from Bruno Haible.
51555
51556 2007-10-20  Bruno Haible  <bruno@clisp.org>
51557
51558         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
51559         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
51560         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51561
51562 2007-10-20  Bruno Haible  <bruno@clisp.org>
51563
51564         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
51565         precision in the comparison result > x - 1 or similar.
51566         * tests/test-ceilf2.c (correct_result_p): Likewise.
51567         * tests/test-truncf2.c (correct_result_p): Likewise.
51568         * tests/test-trunc2.c (correct_result_p): Likewise.
51569         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51570
51571 2007-10-20  Bruno Haible  <bruno@clisp.org>
51572
51573         * modules/ceil: New file.
51574         * m4/ceil.m4: New file.
51575         * doc/functions/ceil.texi: Mention the 'ceil' module.
51576
51577 2007-10-20  Bruno Haible  <bruno@clisp.org>
51578
51579         * modules/floor: New file.
51580         * m4/floor.m4: New file.
51581         * doc/functions/floor.texi: Mention the 'floor' module.
51582
51583 2007-10-20  Bruno Haible  <bruno@clisp.org>
51584
51585         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
51586         of %a.
51587         * modules/floorf-tests (Depends-on): Likewise.
51588         * modules/truncf-tests (Depends-on): Likewise.
51589         * modules/trunc-tests (Depends-on): Likewise.
51590         Reported by Ben Pfaff.
51591
51592 2007-10-19  Jim Meyering  <meyering@redhat.com>
51593
51594         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
51595         Don't bother testing specific errno values.  Just test ferror.
51596
51597         New module: xprintf
51598         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
51599
51600 2007-10-19  Bruno Haible  <bruno@clisp.org>
51601
51602         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
51603         syntax.
51604         * modules/javaexec (Makefile.am): Likewise.
51605         * modules/relocatable-prog (Makefile.am): Likewise.
51606         Suggested by Jim Meyering.
51607
51608 2007-10-18  Bruno Haible  <bruno@clisp.org>
51609
51610         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
51611         Reported by Jim Meyering.
51612
51613 2007-10-18  Eric Blake  <ebb9@byu.net>
51614
51615         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
51616
51617 2007-10-18  Bruno Haible  <bruno@clisp.org>
51618
51619         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
51620         the format string into writable memory. Needed in Fortify conditions.
51621
51622 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
51623             Bruno Haible  <bruno@clisp.org>
51624
51625         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
51626         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
51627         * modules/trim (Depends-on): Add mbchar.
51628         (configure.ac): Add gl_FUNC_MBRTOWC.
51629         (Makefile.am): Augment lib_SOURCES.
51630
51631 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
51632
51633         Modify glob.c to use fstatat and dirfd, to simplify it.
51634         Suggested by Eric Blake.
51635         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
51636         Don't include <stdbool.h>; not used.
51637         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
51638         (link_exists_p): Simplify implementation, since we can now assume
51639         dirfd and fstatat.
51640         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
51641
51642 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51643
51644         * gnulib-tool (func_get_dependencies): Fix sed script to
51645         match only tests.
51646
51647 2007-10-17  Bruno Haible  <bruno@clisp.org>
51648
51649         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
51650         allow locale names without encoding suffix.
51651         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
51652         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51653
51654 2007-10-16  Bruno Haible  <bruno@clisp.org>
51655
51656         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
51657         * lib/getgroups.c (getgroups): Likewise.
51658         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
51659
51660 2007-10-16  Bruno Haible  <bruno@clisp.org>
51661
51662         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
51663         * modules/malloc-posix (License): Likewise.
51664         * modules/realloc-posix (License): Likewise.
51665         * modules/calloc-posix (License): Likewise.
51666         * modules/intprops (License): Change from GPL to LGPL, with
51667         Paul Eggert's approval.
51668
51669 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51670
51671         Merge glibc changes into lib/glob.c.
51672
51673         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
51674         2007-10-15 04:59:03 UTC.  Here are the changes:
51675
51676         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
51677
51678         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
51679
51680         * lib/glob.c: Add some branch prediction throughout.
51681
51682         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
51683
51684         [BZ #5103]
51685         * lib/glob.c (glob): Recognize patterns starting \/.
51686
51687         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
51688
51689         [BZ #3996]
51690         * lib/glob.c (attribute_hidden): Define if not defined.
51691         (glob): Unescape dirname, filename or username when needed and not
51692         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
51693         is NULL.  Handle unescaped [ in pattern without closing ].
51694         Don't pass GLOB_CHECK down to recursive glob for directories.
51695         (__glob_pattern_type): New function.
51696         (__glob_pattern_p): Implement using __glob_pattern_type.
51697         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
51698         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
51699         Remove unreachable code.
51700
51701         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
51702
51703         * lib/glob.c (glob_in_dir): Add some comments and asserts to
51704         explain why there are no leaks.
51705
51706         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
51707
51708         [BZ #3253]
51709         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
51710         time, rather allocate increasingly bigger arrays of pointers, if
51711         possible with alloca, if too large with malloc.
51712
51713 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51714
51715         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
51716         Problem reported by H.Merijn Brand in
51717         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
51718         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
51719         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
51720
51721 2007-10-15  Bruno Haible  <bruno@clisp.org>
51722
51723         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
51724         with explicit rpl_ prefix.
51725         * lib/fopen.c (fopen): Likewise.
51726         * lib/freopen.c (freopen): Likewise.
51727         * lib/iconv.c (iconv): Likewise.
51728         * lib/iconv_close.c (iconv_close): Likewise.
51729
51730 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51731
51732         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
51733
51734 2007-10-15  Bruno Haible  <bruno@clisp.org>
51735
51736         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
51737         <stddef.h> instead of <stdlib.h> since we only need NULL.
51738         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51739
51740 2007-10-15  Bruno Haible  <bruno@clisp.org>
51741
51742         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
51743         Replace paragraph talking about LIBOBJS.
51744         Reported by Colin Watson <cjwatson@debian.org>.
51745
51746 2007-10-15  Bruno Haible  <bruno@clisp.org>
51747
51748         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
51749         <stdlib.h> before using NULL.
51750
51751 2007-10-15  Simon Josefsson  <simon@josefsson.org>
51752
51753         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
51754         Reported by Albert Chin <china@thewrittenword.com>.
51755
51756 2007-10-14  Bruno Haible  <bruno@clisp.org>
51757
51758         * modules/iconv_open-utf-tests: New file.
51759         * tests/test-iconv-utf.c: New file.
51760
51761         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
51762         * modules/iconv_open-utf: New file.
51763         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
51764         (iconv, iconv_close): New declarations.
51765         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
51766         be defined.
51767         (iconv_open): Add special handling of conversion between UTF-8 and
51768         UTF-{16,32}{BE,LE}.
51769         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
51770         * lib/iconv_close.c: New file.
51771         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
51772         gl_FUNC_ICONV_OPEN.
51773         (gl_FUNC_ICONV_OPEN): Use it.
51774         (gl_FUNC_ICONV_OPEN_UTF): New macro.
51775         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
51776         and REPLACE_ICONV_UTF.
51777         * modules/iconv_open (Depends-on): Add c-strcase.
51778         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
51779         ICONV_CONST.
51780         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
51781
51782 2007-10-13  Albert Chin  <china@thewrittenword.com>
51783             Bruno Haible  <bruno@clisp.org>
51784
51785         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
51786         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
51787
51788 2007-10-13  Bruno Haible  <bruno@clisp.org>
51789
51790         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
51791         defined, use the ISO C99 inline semantics.
51792         * lib/argp.h (ARGP_EI): Likewise.
51793
51794 2007-10-13  Bruno Haible  <bruno@clisp.org>
51795
51796         Handle 'inline' change in gcc 4.3.0.
51797         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
51798         argp_fmtstream_write, argp_fmtstream_set_lmargin,
51799         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
51800         argp_fmtstream_point): Disable 'extern' declaration if the function
51801         definition is going to be provided inline.
51802         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
51803         semantics, not the ISO C99 inline semantics.
51804         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
51805         'extern' declaration if the function definition is going to be provided
51806         inline.
51807         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
51808         the GNU C inline semantics, not the ISO C99 inline semantics. With
51809         GCC 4.2, avoid a warning.
51810
51811 2007-10-13  Bruno Haible  <bruno@clisp.org>
51812
51813         * lib/freading.h (freading): Enable the use of __freading for
51814         glibc >= 2.7.
51815         * lib/freading.c (freading): Likewise.
51816
51817 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
51818
51819         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
51820         "warning: C99 inline functions are not supported; using GNU89".
51821
51822 2007-10-12  Bruno Haible  <bruno@clisp.org>
51823
51824         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
51825         of 2.
51826         * tests/test-ceilf2.c: New file.
51827         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
51828
51829         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
51830         * modules/ceilf-tests: Update.
51831
51832 2007-10-12  Bruno Haible  <bruno@clisp.org>
51833
51834         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
51835         of 2.
51836         * tests/test-floorf2.c: New file.
51837         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
51838
51839         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
51840         * modules/floorf-tests: Update.
51841
51842 2007-10-12  Bruno Haible  <bruno@clisp.org>
51843
51844         * tests/test-trunc2.c: New file.
51845         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
51846
51847         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
51848         * modules/trunc-tests: Update.
51849
51850 2007-10-12  Bruno Haible  <bruno@clisp.org>
51851
51852         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
51853         of 2.
51854         * tests/test-truncf2.c: New file.
51855         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
51856
51857         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
51858         * modules/truncf-tests: Update.
51859
51860 2007-10-11  Eric Blake  <ebb9@byu.net>
51861
51862         Don't claim strerror is broken on Interix.
51863         * doc/functions/strerror.texi (strerror): Known broken systems are
51864         now Solaris 8, and not Interix.
51865         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
51866         Interix on cross-compile.
51867         Reported by Martin Koeppe in
51868         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
51869
51870 2007-10-11  Bruno Haible  <bruno@clisp.org>
51871
51872         * modules/i-ring-tests: New file.
51873         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
51874         instead of assert.
51875
51876 2007-10-11  Bruno Haible  <bruno@clisp.org>
51877
51878         * modules/filenamecat-tests: New file.
51879         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
51880         * lib/filenamecat.c: Remove test code.
51881
51882 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
51883
51884         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
51885
51886         * lib/strerror.c: Include <string.h> always, to test interface,
51887         and to remove the need for the dummy.
51888         Include intprops.h to compute width instead of doing it ourselves
51889         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
51890         (strerror): Define it to return NULL if there's no system strerror.
51891         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
51892         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
51893         ancient pre-strerror Unix systems well any more.  Saying "unknown
51894         system error" is enough.
51895         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
51896         simpler strerror.c implementation.
51897         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
51898         Simplify the tests to reflect the simpler strerror implementation.
51899         * modules/strerror (Depends-on): Add intprops.
51900
51901 2007-10-09  Eric Blake  <ebb9@byu.net>
51902
51903         Silence test-fpending.
51904         * modules/fpending-tests (Files): Add wrapper script.
51905         * tests/test-fpending.sh: New file.
51906
51907 2007-10-09  Bruno Haible  <bruno@clisp.org>
51908
51909         * MODULES.html.sh (func_module): Don't create a hyperlink for
51910         function names like 'printf_frexp'.
51911         (Misc): Add crc, memxor.
51912         (Characteristics of floating types): New section.
51913         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
51914         isnanf-nolibm, signbit, trunc, truncf, truncl.
51915         (Enhancements for ISO C 99 functions): New subsection Input/output.
51916         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
51917         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
51918         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
51919         (Compatibility checks for POSIX:2001 functions): Add clock-time.
51920         (Enhancements for POSIX:2001 functions): Add chdir-long.
51921         (File system functions): Add areadlink, chdir-safer, read-file.
51922         Remove cycle-check.
51923         (File system as inode set): New section.
51924         (Date and time): Add gethrxtime.
51925         (Multithreading): Add openmp.
51926         (Internationalization functions): Add localename.
51927         (Unicode string functions): Add unistr/u*-mbsnlen.
51928         (Support for maintaining and releasing projects): Add git-version-gen.
51929         (Lone files): Remove directories.
51930
51931 2007-10-08  Ben Pfaff  <blp@gnu.org>
51932
51933         * lib/xmalloca.h: Fix typo in comment.
51934
51935 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
51936
51937         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
51938         when avoiding problems with integer overflow.  Use a portable test
51939         instead.
51940
51941 2007-10-08  Simon Josefsson  <simon@josefsson.org>
51942
51943         * modules/dummy (License): Change to LGPLv2+.
51944         * modules/float (License): Likewise
51945         * modules/realloc (License): Likewise
51946         * modules/stdlib (License): Likewise
51947
51948 2007-10-07  Bruno Haible  <bruno@clisp.org>
51949
51950         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
51951         * floor.c (TWO_MANT_DIG): Likewise.
51952         * ceil.c (TWO_MANT_DIG): Likewise.
51953         Reported by Ben Pfaff.
51954
51955 2007-10-07  Bruno Haible  <bruno@clisp.org>
51956
51957         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
51958         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
51959         * lib/frexp.c (FUNC): Likewise.
51960         * lib/printf-frexp.h (printf_frexp): Likewise.
51961         * lib/printf-frexpl.h (printf_frexpl): Likewise.
51962         * lib/printf-frexp.c (FUNC): Likewise.
51963         Suggested by Jim Meyering.
51964
51965 2007-10-07  Jim Meyering  <meyering@redhat.com>
51966
51967         Make xnanosleep's integer overflow test more robust.
51968         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
51969         so that gcc-4.3.0 doesn't optimize away this test for overflow.
51970
51971 2007-10-07  Bruno Haible  <bruno@clisp.org>
51972
51973         * NEWS: Mention the license change.
51974
51975         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
51976         abbreviations in the modules files.
51977
51978         Change copyright notice from GPLv2+ to GPLv3+.
51979         * README: Change copyright notice.
51980         * MODULES.html.sh: Likewise.
51981         * build-aux/bootstrap.conf: Likewise.
51982         * build-aux/config.libpath: Likewise.
51983         * build-aux/csharpcomp.sh.in: Likewise.
51984         * build-aux/csharpexec.sh.in: Likewise.
51985         * build-aux/install-reloc: Likewise.
51986         * build-aux/javacomp.sh.in: Likewise.
51987         * build-aux/javaexec.sh.in: Likewise.
51988         * build-aux/ldd.sh.in: Likewise.
51989         * build-aux/reloc-ldflags: Likewise.
51990         * build-aux/relocatable.sh.in: Likewise.
51991         * build-aux/x-to-1.in: Likewise.
51992         * check-module: Likewise.
51993         * config/srclistvars.sh: Likewise.
51994         * gnulib-tool: Likewise.
51995         * lib/acl-internal.h: Likewise.
51996         * lib/acl.c: Likewise.
51997         * lib/acl.h: Likewise.
51998         * lib/acl_entries.c: Likewise.
51999         * lib/areadlink-with-size.c: Likewise.
52000         * lib/areadlink.c: Likewise.
52001         * lib/areadlink.h: Likewise.
52002         * lib/argmatch.c: Likewise.
52003         * lib/argmatch.h: Likewise.
52004         * lib/argp-ba.c: Likewise.
52005         * lib/argp-eexst.c: Likewise.
52006         * lib/argp-fmtstream.c: Likewise.
52007         * lib/argp-fmtstream.h: Likewise.
52008         * lib/argp-fs-xinl.c: Likewise.
52009         * lib/argp-help.c: Likewise.
52010         * lib/argp-namefrob.h: Likewise.
52011         * lib/argp-parse.c: Likewise.
52012         * lib/argp-pin.c: Likewise.
52013         * lib/argp-pv.c: Likewise.
52014         * lib/argp-pvh.c: Likewise.
52015         * lib/argp-xinl.c: Likewise.
52016         * lib/argp.h: Likewise.
52017         * lib/at-func.c: Likewise.
52018         * lib/atanl.c: Likewise.
52019         * lib/backupfile.c: Likewise.
52020         * lib/backupfile.h: Likewise.
52021         * lib/basename.c: Likewise.
52022         * lib/binary-io.h: Likewise.
52023         * lib/byteswap.in.h: Likewise.
52024         * lib/c-stack.c: Likewise.
52025         * lib/c-stack.h: Likewise.
52026         * lib/c-strcasestr.c: Likewise.
52027         * lib/c-strcasestr.h: Likewise.
52028         * lib/c-strstr.c: Likewise.
52029         * lib/c-strstr.h: Likewise.
52030         * lib/c-strtod.c: Likewise.
52031         * lib/calloc.c: Likewise.
52032         * lib/canon-host.c: Likewise.
52033         * lib/canon-host.h: Likewise.
52034         * lib/canonicalize-lgpl.c: Likewise.
52035         * lib/canonicalize.c: Likewise.
52036         * lib/canonicalize.h: Likewise.
52037         * lib/ceil.c: Likewise.
52038         * lib/ceilf.c: Likewise.
52039         * lib/ceill.c: Likewise.
52040         * lib/chdir-long.c: Likewise.
52041         * lib/chdir-long.h: Likewise.
52042         * lib/chdir-safer.c: Likewise.
52043         * lib/chdir-safer.h: Likewise.
52044         * lib/chown.c: Likewise.
52045         * lib/classpath.c: Likewise.
52046         * lib/classpath.h: Likewise.
52047         * lib/clean-temp.c: Likewise.
52048         * lib/clean-temp.h: Likewise.
52049         * lib/cloexec.c: Likewise.
52050         * lib/close-stream.c: Likewise.
52051         * lib/closein.c: Likewise.
52052         * lib/closein.h: Likewise.
52053         * lib/closeout.c: Likewise.
52054         * lib/closeout.h: Likewise.
52055         * lib/concat-filename.c: Likewise.
52056         * lib/copy-file.c: Likewise.
52057         * lib/copy-file.h: Likewise.
52058         * lib/count-one-bits.h: Likewise.
52059         * lib/crc.c: Likewise.
52060         * lib/crc.h: Likewise.
52061         * lib/creat-safer.c: Likewise.
52062         * lib/csharpcomp.c: Likewise.
52063         * lib/csharpcomp.h: Likewise.
52064         * lib/csharpexec.c: Likewise.
52065         * lib/csharpexec.h: Likewise.
52066         * lib/cycle-check.c: Likewise.
52067         * lib/cycle-check.h: Likewise.
52068         * lib/diacrit.c: Likewise.
52069         * lib/diacrit.h: Likewise.
52070         * lib/diffseq.h: Likewise.
52071         * lib/dirchownmod.c: Likewise.
52072         * lib/dirent.in.h: Likewise.
52073         * lib/dirfd.c: Likewise.
52074         * lib/dirfd.h: Likewise.
52075         * lib/dirname.c: Likewise.
52076         * lib/dirname.h: Likewise.
52077         * lib/dummy.c: Likewise.
52078         * lib/dup-safer.c: Likewise.
52079         * lib/dup2.c: Likewise.
52080         * lib/eealloc.h: Likewise.
52081         * lib/error.c: Likewise.
52082         * lib/error.h: Likewise.
52083         * lib/euidaccess.c: Likewise.
52084         * lib/exclude.c: Likewise.
52085         * lib/exclude.h: Likewise.
52086         * lib/execute.c: Likewise.
52087         * lib/execute.h: Likewise.
52088         * lib/exitfail.c: Likewise.
52089         * lib/exitfail.h: Likewise.
52090         * lib/expl.c: Likewise.
52091         * lib/fatal-signal.c: Likewise.
52092         * lib/fatal-signal.h: Likewise.
52093         * lib/fbufmode.c: Likewise.
52094         * lib/fbufmode.h: Likewise.
52095         * lib/fchdir.c: Likewise.
52096         * lib/fchmodat.c: Likewise.
52097         * lib/fchownat.c: Likewise.
52098         * lib/fcntl--.h: Likewise.
52099         * lib/fcntl-safer.h: Likewise.
52100         * lib/fcntl.in.h: Likewise.
52101         * lib/fd-safer.c: Likewise.
52102         * lib/fflush.c: Likewise.
52103         * lib/file-has-acl.c: Likewise.
52104         * lib/file-set.c: Likewise.
52105         * lib/file-type.c: Likewise.
52106         * lib/file-type.h: Likewise.
52107         * lib/fileblocks.c: Likewise.
52108         * lib/filemode.c: Likewise.
52109         * lib/filemode.h: Likewise.
52110         * lib/filename.h: Likewise.
52111         * lib/filenamecat.c: Likewise.
52112         * lib/filenamecat.h: Likewise.
52113         * lib/findprog.c: Likewise.
52114         * lib/findprog.h: Likewise.
52115         * lib/float.in.h: Likewise.
52116         * lib/floor.c: Likewise.
52117         * lib/floorf.c: Likewise.
52118         * lib/floorl.c: Likewise.
52119         * lib/fopen-safer.c: Likewise.
52120         * lib/fopen.c: Likewise.
52121         * lib/fpending.c: Likewise.
52122         * lib/fpending.h: Likewise.
52123         * lib/fprintf.c: Likewise.
52124         * lib/fprintftime.h: Likewise.
52125         * lib/fpucw.h: Likewise.
52126         * lib/fpurge.c: Likewise.
52127         * lib/fpurge.h: Likewise.
52128         * lib/freadable.c: Likewise.
52129         * lib/freadable.h: Likewise.
52130         * lib/freadahead.c: Likewise.
52131         * lib/freadahead.h: Likewise.
52132         * lib/freading.c: Likewise.
52133         * lib/freading.h: Likewise.
52134         * lib/free.c: Likewise.
52135         * lib/freopen.c: Likewise.
52136         * lib/frexp.c: Likewise.
52137         * lib/frexpl.c: Likewise.
52138         * lib/fseek.c: Likewise.
52139         * lib/fseterr.c: Likewise.
52140         * lib/fseterr.h: Likewise.
52141         * lib/fstatat.c: Likewise.
52142         * lib/fstrcmp.c: Likewise.
52143         * lib/fstrcmp.h: Likewise.
52144         * lib/fsusage.c: Likewise.
52145         * lib/fsusage.h: Likewise.
52146         * lib/ftell.c: Likewise.
52147         * lib/ftello.c: Likewise.
52148         * lib/fts-cycle.c: Likewise.
52149         * lib/fts.c: Likewise.
52150         * lib/fts_.h: Likewise.
52151         * lib/full-read.c: Likewise.
52152         * lib/full-read.h: Likewise.
52153         * lib/full-write.c: Likewise.
52154         * lib/full-write.h: Likewise.
52155         * lib/fwritable.c: Likewise.
52156         * lib/fwritable.h: Likewise.
52157         * lib/fwriteerror.c: Likewise.
52158         * lib/fwriteerror.h: Likewise.
52159         * lib/fwriting.c: Likewise.
52160         * lib/fwriting.h: Likewise.
52161         * lib/gcd.c: Likewise.
52162         * lib/gcd.h: Likewise.
52163         * lib/getcwd.c: Likewise.
52164         * lib/getdate.h: Likewise.
52165         * lib/getdate.y: Likewise.
52166         * lib/getdomainname.c: Likewise.
52167         * lib/getdomainname.h: Likewise.
52168         * lib/getgroups.c: Likewise.
52169         * lib/gethostname.c: Likewise.
52170         * lib/gethrxtime.c: Likewise.
52171         * lib/gethrxtime.h: Likewise.
52172         * lib/getloadavg.c: Likewise.
52173         * lib/getndelim2.c: Likewise.
52174         * lib/getndelim2.h: Likewise.
52175         * lib/getnline.c: Likewise.
52176         * lib/getnline.h: Likewise.
52177         * lib/getopt.c: Likewise.
52178         * lib/getopt.in.h: Likewise.
52179         * lib/getopt1.c: Likewise.
52180         * lib/getopt_int.h: Likewise.
52181         * lib/getpagesize.h: Likewise.
52182         * lib/getsubopt.c: Likewise.
52183         * lib/gettime.c: Likewise.
52184         * lib/getugroups.c: Likewise.
52185         * lib/getugroups.h: Likewise.
52186         * lib/getusershell.c: Likewise.
52187         * lib/gl_anyavltree_list1.h: Likewise.
52188         * lib/gl_anyavltree_list2.h: Likewise.
52189         * lib/gl_anyhash_list1.h: Likewise.
52190         * lib/gl_anyhash_list2.h: Likewise.
52191         * lib/gl_anylinked_list1.h: Likewise.
52192         * lib/gl_anylinked_list2.h: Likewise.
52193         * lib/gl_anyrbtree_list1.h: Likewise.
52194         * lib/gl_anyrbtree_list2.h: Likewise.
52195         * lib/gl_anytree_list1.h: Likewise.
52196         * lib/gl_anytree_list2.h: Likewise.
52197         * lib/gl_anytree_oset.h: Likewise.
52198         * lib/gl_anytreehash_list1.h: Likewise.
52199         * lib/gl_anytreehash_list2.h: Likewise.
52200         * lib/gl_array_list.c: Likewise.
52201         * lib/gl_array_list.h: Likewise.
52202         * lib/gl_array_oset.c: Likewise.
52203         * lib/gl_array_oset.h: Likewise.
52204         * lib/gl_avltree_list.c: Likewise.
52205         * lib/gl_avltree_list.h: Likewise.
52206         * lib/gl_avltree_oset.c: Likewise.
52207         * lib/gl_avltree_oset.h: Likewise.
52208         * lib/gl_avltreehash_list.c: Likewise.
52209         * lib/gl_avltreehash_list.h: Likewise.
52210         * lib/gl_carray_list.c: Likewise.
52211         * lib/gl_carray_list.h: Likewise.
52212         * lib/gl_linked_list.c: Likewise.
52213         * lib/gl_linked_list.h: Likewise.
52214         * lib/gl_linkedhash_list.c: Likewise.
52215         * lib/gl_linkedhash_list.h: Likewise.
52216         * lib/gl_list.c: Likewise.
52217         * lib/gl_list.h: Likewise.
52218         * lib/gl_oset.c: Likewise.
52219         * lib/gl_oset.h: Likewise.
52220         * lib/gl_rbtree_list.c: Likewise.
52221         * lib/gl_rbtree_list.h: Likewise.
52222         * lib/gl_rbtree_oset.c: Likewise.
52223         * lib/gl_rbtree_oset.h: Likewise.
52224         * lib/gl_rbtreehash_list.c: Likewise.
52225         * lib/gl_rbtreehash_list.h: Likewise.
52226         * lib/gl_sublist.c: Likewise.
52227         * lib/gl_sublist.h: Likewise.
52228         * lib/group-member.c: Likewise.
52229         * lib/group-member.h: Likewise.
52230         * lib/hard-locale.c: Likewise.
52231         * lib/hard-locale.h: Likewise.
52232         * lib/hash-pjw.c: Likewise.
52233         * lib/hash-pjw.h: Likewise.
52234         * lib/hash-triple.c: Likewise.
52235         * lib/hash.c: Likewise.
52236         * lib/hash.h: Likewise.
52237         * lib/human.c: Likewise.
52238         * lib/human.h: Likewise.
52239         * lib/i-ring.c: Likewise.
52240         * lib/i-ring.h: Likewise.
52241         * lib/idcache.c: Likewise.
52242         * lib/imaxabs.c: Likewise.
52243         * lib/imaxdiv.c: Likewise.
52244         * lib/inet_pton.c: Likewise.
52245         * lib/inet_pton.h: Likewise.
52246         * lib/intprops.h: Likewise.
52247         * lib/inttostr.c: Likewise.
52248         * lib/inttostr.h: Likewise.
52249         * lib/inttypes.in.h: Likewise.
52250         * lib/isapipe.c: Likewise.
52251         * lib/isdir.c: Likewise.
52252         * lib/isnan.c: Likewise.
52253         * lib/isnan.h: Likewise.
52254         * lib/isnanf.c: Likewise.
52255         * lib/isnanf.h: Likewise.
52256         * lib/isnanl-nolibm.h: Likewise.
52257         * lib/isnanl.c: Likewise.
52258         * lib/isnanl.h: Likewise.
52259         * lib/javacomp.c: Likewise.
52260         * lib/javacomp.h: Likewise.
52261         * lib/javaexec.c: Likewise.
52262         * lib/javaexec.h: Likewise.
52263         * lib/javaversion.c: Likewise.
52264         * lib/javaversion.h: Likewise.
52265         * lib/javaversion.java: Likewise.
52266         * lib/lbrkprop.h: Likewise.
52267         * lib/lchmod.h: Likewise.
52268         * lib/lchown.c: Likewise.
52269         * lib/ldexpl.c: Likewise.
52270         * lib/linebreak.c: Likewise.
52271         * lib/linebreak.h: Likewise.
52272         * lib/linebuffer.c: Likewise.
52273         * lib/linebuffer.h: Likewise.
52274         * lib/locale.in.h: Likewise.
52275         * lib/logl.c: Likewise.
52276         * lib/long-options.c: Likewise.
52277         * lib/long-options.h: Likewise.
52278         * lib/lstat.c: Likewise.
52279         * lib/lstat.h: Likewise.
52280         * lib/math.in.h: Likewise.
52281         * lib/mbchar.c: Likewise.
52282         * lib/mbchar.h: Likewise.
52283         * lib/mbfile.h: Likewise.
52284         * lib/mbiter.h: Likewise.
52285         * lib/mbscasecmp.c: Likewise.
52286         * lib/mbscasestr.c: Likewise.
52287         * lib/mbschr.c: Likewise.
52288         * lib/mbscspn.c: Likewise.
52289         * lib/mbslen.c: Likewise.
52290         * lib/mbsncasecmp.c: Likewise.
52291         * lib/mbsnlen.c: Likewise.
52292         * lib/mbspbrk.c: Likewise.
52293         * lib/mbspcasecmp.c: Likewise.
52294         * lib/mbsrchr.c: Likewise.
52295         * lib/mbssep.c: Likewise.
52296         * lib/mbsspn.c: Likewise.
52297         * lib/mbsstr.c: Likewise.
52298         * lib/mbstok_r.c: Likewise.
52299         * lib/mbswidth.c: Likewise.
52300         * lib/mbswidth.h: Likewise.
52301         * lib/mbuiter.h: Likewise.
52302         * lib/memcasecmp.c: Likewise.
52303         * lib/memcasecmp.h: Likewise.
52304         * lib/memchr.c: Likewise.
52305         * lib/memcmp.c: Likewise.
52306         * lib/memcoll.c: Likewise.
52307         * lib/memcoll.h: Likewise.
52308         * lib/memcpy.c: Likewise.
52309         * lib/memrchr.c: Likewise.
52310         * lib/mkancesdirs.c: Likewise.
52311         * lib/mkdir-p.c: Likewise.
52312         * lib/mkdir-p.h: Likewise.
52313         * lib/mkdir.c: Likewise.
52314         * lib/mkdirat.c: Likewise.
52315         * lib/mkdtemp.c: Likewise.
52316         * lib/mkstemp-safer.c: Likewise.
52317         * lib/mkstemp.c: Likewise.
52318         * lib/modechange.c: Likewise.
52319         * lib/modechange.h: Likewise.
52320         * lib/mountlist.c: Likewise.
52321         * lib/mountlist.h: Likewise.
52322         * lib/mpsort.c: Likewise.
52323         * lib/nanosleep.c: Likewise.
52324         * lib/obstack.c: Likewise.
52325         * lib/obstack.h: Likewise.
52326         * lib/open-safer.c: Likewise.
52327         * lib/open.c: Likewise.
52328         * lib/openat-die.c: Likewise.
52329         * lib/openat-priv.h: Likewise.
52330         * lib/openat-proc.c: Likewise.
52331         * lib/openat.c: Likewise.
52332         * lib/openat.h: Likewise.
52333         * lib/pagealign_alloc.c: Likewise.
52334         * lib/pagealign_alloc.h: Likewise.
52335         * lib/physmem.c: Likewise.
52336         * lib/physmem.h: Likewise.
52337         * lib/pipe-safer.c: Likewise.
52338         * lib/pipe.c: Likewise.
52339         * lib/pipe.h: Likewise.
52340         * lib/posixtm.c: Likewise.
52341         * lib/posixtm.h: Likewise.
52342         * lib/posixver.c: Likewise.
52343         * lib/printf-frexp.c: Likewise.
52344         * lib/printf-frexp.h: Likewise.
52345         * lib/printf-frexpl.c: Likewise.
52346         * lib/printf-frexpl.h: Likewise.
52347         * lib/printf.c: Likewise.
52348         * lib/progname.c: Likewise.
52349         * lib/progname.h: Likewise.
52350         * lib/progreloc.c: Likewise.
52351         * lib/putenv.c: Likewise.
52352         * lib/quote.c: Likewise.
52353         * lib/quote.h: Likewise.
52354         * lib/quotearg.c: Likewise.
52355         * lib/quotearg.h: Likewise.
52356         * lib/raise.c: Likewise.
52357         * lib/readline.c: Likewise.
52358         * lib/readline.h: Likewise.
52359         * lib/readlink.c: Likewise.
52360         * lib/readtokens.c: Likewise.
52361         * lib/readtokens.h: Likewise.
52362         * lib/readtokens0.c: Likewise.
52363         * lib/readtokens0.h: Likewise.
52364         * lib/readutmp.c: Likewise.
52365         * lib/readutmp.h: Likewise.
52366         * lib/realloc.c: Likewise.
52367         * lib/relocwrapper.c: Likewise.
52368         * lib/rename-dest-slash.c: Likewise.
52369         * lib/rename.c: Likewise.
52370         * lib/rmdir.c: Likewise.
52371         * lib/rpmatch.c: Likewise.
52372         * lib/safe-read.c: Likewise.
52373         * lib/safe-read.h: Likewise.
52374         * lib/safe-write.c: Likewise.
52375         * lib/safe-write.h: Likewise.
52376         * lib/same-inode.h: Likewise.
52377         * lib/same.c: Likewise.
52378         * lib/same.h: Likewise.
52379         * lib/save-cwd.c: Likewise.
52380         * lib/save-cwd.h: Likewise.
52381         * lib/savedir.c: Likewise.
52382         * lib/savedir.h: Likewise.
52383         * lib/savewd.c: Likewise.
52384         * lib/savewd.h: Likewise.
52385         * lib/search.in.h: Likewise.
52386         * lib/setenv.c: Likewise.
52387         * lib/setenv.h: Likewise.
52388         * lib/settime.c: Likewise.
52389         * lib/sh-quote.c: Likewise.
52390         * lib/sh-quote.h: Likewise.
52391         * lib/sig2str.c: Likewise.
52392         * lib/sig2str.h: Likewise.
52393         * lib/signal.in.h: Likewise.
52394         * lib/signbitd.c: Likewise.
52395         * lib/signbitf.c: Likewise.
52396         * lib/signbitl.c: Likewise.
52397         * lib/sigprocmask.c: Likewise.
52398         * lib/sincosl.c: Likewise.
52399         * lib/sleep.c: Likewise.
52400         * lib/sprintf.c: Likewise.
52401         * lib/sqrtl.c: Likewise.
52402         * lib/stat-time.h: Likewise.
52403         * lib/stdio--.h: Likewise.
52404         * lib/stdio-safer.h: Likewise.
52405         * lib/stdlib--.h: Likewise.
52406         * lib/stdlib-safer.h: Likewise.
52407         * lib/stdlib.in.h: Likewise.
52408         * lib/stpcpy.c: Likewise.
52409         * lib/stpncpy.c: Likewise.
52410         * lib/strchrnul.c: Likewise.
52411         * lib/strcspn.c: Likewise.
52412         * lib/strerror.c: Likewise.
52413         * lib/strftime.c: Likewise.
52414         * lib/strftime.h: Likewise.
52415         * lib/striconveh.c: Likewise.
52416         * lib/striconveh.h: Likewise.
52417         * lib/striconveha.c: Likewise.
52418         * lib/striconveha.h: Likewise.
52419         * lib/stripslash.c: Likewise.
52420         * lib/strnlen1.c: Likewise.
52421         * lib/strnlen1.h: Likewise.
52422         * lib/strtod.c: Likewise.
52423         * lib/strtoimax.c: Likewise.
52424         * lib/strtok_r.c: Likewise.
52425         * lib/strtol.c: Likewise.
52426         * lib/strtoll.c: Likewise.
52427         * lib/strtoul.c: Likewise.
52428         * lib/strtoull.c: Likewise.
52429         * lib/sysexits.in.h: Likewise.
52430         * lib/tempname.c: Likewise.
52431         * lib/tempname.h: Likewise.
52432         * lib/timespec.h: Likewise.
52433         * lib/tls.c: Likewise.
52434         * lib/tls.h: Likewise.
52435         * lib/tmpdir.c: Likewise.
52436         * lib/tmpdir.h: Likewise.
52437         * lib/tmpfile-safer.c: Likewise.
52438         * lib/tmpfile.c: Likewise.
52439         * lib/trigl.c: Likewise.
52440         * lib/trigl.h: Likewise.
52441         * lib/trim.c: Likewise.
52442         * lib/trim.h: Likewise.
52443         * lib/trunc.c: Likewise.
52444         * lib/truncf.c: Likewise.
52445         * lib/truncl.c: Likewise.
52446         * lib/tsearch.c: Likewise.
52447         * lib/unicodeio.c: Likewise.
52448         * lib/unicodeio.h: Likewise.
52449         * lib/unistd--.h: Likewise.
52450         * lib/unistd-safer.h: Likewise.
52451         * lib/unistdio/ulc-fprintf.c: Likewise.
52452         * lib/unistdio/ulc-vfprintf.c: Likewise.
52453         * lib/unlinkdir.c: Likewise.
52454         * lib/unlinkdir.h: Likewise.
52455         * lib/unlocked-io.h: Likewise.
52456         * lib/unsetenv.c: Likewise.
52457         * lib/userspec.c: Likewise.
52458         * lib/utime.c: Likewise.
52459         * lib/utimecmp.c: Likewise.
52460         * lib/utimecmp.h: Likewise.
52461         * lib/utimens.c: Likewise.
52462         * lib/verify.h: Likewise.
52463         * lib/verror.c: Likewise.
52464         * lib/verror.h: Likewise.
52465         * lib/version-etc-fsf.c: Likewise.
52466         * lib/version-etc.c: Likewise.
52467         * lib/version-etc.h: Likewise.
52468         * lib/vfprintf.c: Likewise.
52469         * lib/vprintf.c: Likewise.
52470         * lib/vsprintf.c: Likewise.
52471         * lib/w32spawn.h: Likewise.
52472         * lib/wait-process.c: Likewise.
52473         * lib/wait-process.h: Likewise.
52474         * lib/wcwidth.c: Likewise.
52475         * lib/write-any-file.c: Likewise.
52476         * lib/xalloc-die.c: Likewise.
52477         * lib/xalloc.h: Likewise.
52478         * lib/xasprintf.c: Likewise.
52479         * lib/xgetcwd.c: Likewise.
52480         * lib/xgetcwd.h: Likewise.
52481         * lib/xgetdomainname.c: Likewise.
52482         * lib/xgetdomainname.h: Likewise.
52483         * lib/xgethostname.c: Likewise.
52484         * lib/xmalloc.c: Likewise.
52485         * lib/xmalloca.c: Likewise.
52486         * lib/xmalloca.h: Likewise.
52487         * lib/xmemcoll.c: Likewise.
52488         * lib/xnanosleep.c: Likewise.
52489         * lib/xreadlink.c: Likewise.
52490         * lib/xreadlink.h: Likewise.
52491         * lib/xsetenv.c: Likewise.
52492         * lib/xsetenv.h: Likewise.
52493         * lib/xstriconv.c: Likewise.
52494         * lib/xstriconv.h: Likewise.
52495         * lib/xstrndup.c: Likewise.
52496         * lib/xstrndup.h: Likewise.
52497         * lib/xstrtod.c: Likewise.
52498         * lib/xstrtod.h: Likewise.
52499         * lib/xstrtol-error.c: Likewise.
52500         * lib/xstrtol.c: Likewise.
52501         * lib/xstrtol.h: Likewise.
52502         * lib/xtime.h: Likewise.
52503         * lib/xvasprintf.c: Likewise.
52504         * lib/xvasprintf.h: Likewise.
52505         * lib/yesno.c: Likewise.
52506         * lib/yesno.h: Likewise.
52507         * posix-modules: Likewise.
52508         * tests/test-alloca-opt.c: Likewise.
52509         * tests/test-arcfour.c: Likewise.
52510         * tests/test-arctwo.c: Likewise.
52511         * tests/test-argmatch.c: Likewise.
52512         * tests/test-argp-2.sh: Likewise.
52513         * tests/test-argp.c: Likewise.
52514         * tests/test-arpa_inet.c: Likewise.
52515         * tests/test-array_list.c: Likewise.
52516         * tests/test-array_oset.c: Likewise.
52517         * tests/test-atexit.c: Likewise.
52518         * tests/test-avltree_list.c: Likewise.
52519         * tests/test-avltree_oset.c: Likewise.
52520         * tests/test-avltreehash_list.c: Likewise.
52521         * tests/test-base64.c: Likewise.
52522         * tests/test-binary-io.c: Likewise.
52523         * tests/test-byteswap.c: Likewise.
52524         * tests/test-c-ctype.c: Likewise.
52525         * tests/test-c-strcasecmp.c: Likewise.
52526         * tests/test-c-strcasestr.c: Likewise.
52527         * tests/test-c-strncasecmp.c: Likewise.
52528         * tests/test-c-strstr.c: Likewise.
52529         * tests/test-canonicalize-lgpl.c: Likewise.
52530         * tests/test-canonicalize.c: Likewise.
52531         * tests/test-carray_list.c: Likewise.
52532         * tests/test-ceilf.c: Likewise.
52533         * tests/test-ceill.c: Likewise.
52534         * tests/test-count-one-bits.c: Likewise.
52535         * tests/test-crc.c: Likewise.
52536         * tests/test-dirname.c: Likewise.
52537         * tests/test-fbufmode.c: Likewise.
52538         * tests/test-fcntl.c: Likewise.
52539         * tests/test-fflush.c: Likewise.
52540         * tests/test-floorf.c: Likewise.
52541         * tests/test-floorl.c: Likewise.
52542         * tests/test-fopen.c: Likewise.
52543         * tests/test-fprintf-posix.c: Likewise.
52544         * tests/test-fprintf-posix.h: Likewise.
52545         * tests/test-fpurge.c: Likewise.
52546         * tests/test-freadable.c: Likewise.
52547         * tests/test-freadahead.c: Likewise.
52548         * tests/test-freading.c: Likewise.
52549         * tests/test-freopen.c: Likewise.
52550         * tests/test-frexp.c: Likewise.
52551         * tests/test-frexpl.c: Likewise.
52552         * tests/test-fseek.c: Likewise.
52553         * tests/test-fseeko.c: Likewise.
52554         * tests/test-fseterr.c: Likewise.
52555         * tests/test-fstrcmp.c: Likewise.
52556         * tests/test-ftell.c: Likewise.
52557         * tests/test-ftello.c: Likewise.
52558         * tests/test-fwritable.c: Likewise.
52559         * tests/test-fwriting.c: Likewise.
52560         * tests/test-getaddrinfo.c: Likewise.
52561         * tests/test-getpass.c: Likewise.
52562         * tests/test-gettimeofday.c: Likewise.
52563         * tests/test-hmac-md5.c: Likewise.
52564         * tests/test-hmac-sha1.c: Likewise.
52565         * tests/test-iconv.c: Likewise.
52566         * tests/test-iconvme.c: Likewise.
52567         * tests/test-inttypes.c: Likewise.
52568         * tests/test-isnan.c: Likewise.
52569         * tests/test-isnanf.c: Likewise.
52570         * tests/test-isnanl-nolibm.c: Likewise.
52571         * tests/test-isnanl.c: Likewise.
52572         * tests/test-isnanl.h: Likewise.
52573         * tests/test-ldexpl.c: Likewise.
52574         * tests/test-linked_list.c: Likewise.
52575         * tests/test-linkedhash_list.c: Likewise.
52576         * tests/test-locale.c: Likewise.
52577         * tests/test-localename.c: Likewise.
52578         * tests/test-lock.c: Likewise.
52579         * tests/test-lseek.c: Likewise.
52580         * tests/test-malloca.c: Likewise.
52581         * tests/test-math.c: Likewise.
52582         * tests/test-mbscasecmp.c: Likewise.
52583         * tests/test-mbscasestr1.c: Likewise.
52584         * tests/test-mbscasestr2.c: Likewise.
52585         * tests/test-mbscasestr3.c: Likewise.
52586         * tests/test-mbscasestr4.c: Likewise.
52587         * tests/test-mbschr.c: Likewise.
52588         * tests/test-mbscspn.c: Likewise.
52589         * tests/test-mbsncasecmp.c: Likewise.
52590         * tests/test-mbspbrk.c: Likewise.
52591         * tests/test-mbspcasecmp.c: Likewise.
52592         * tests/test-mbsrchr.c: Likewise.
52593         * tests/test-mbsspn.c: Likewise.
52594         * tests/test-mbsstr1.c: Likewise.
52595         * tests/test-mbsstr2.c: Likewise.
52596         * tests/test-mbsstr3.c: Likewise.
52597         * tests/test-md5.c: Likewise.
52598         * tests/test-memmem.c: Likewise.
52599         * tests/test-netinet_in.c: Likewise.
52600         * tests/test-open.c: Likewise.
52601         * tests/test-printf-frexp.c: Likewise.
52602         * tests/test-printf-frexpl.c: Likewise.
52603         * tests/test-printf-posix.c: Likewise.
52604         * tests/test-printf-posix.h: Likewise.
52605         * tests/test-rbtree_list.c: Likewise.
52606         * tests/test-rbtree_oset.c: Likewise.
52607         * tests/test-rbtreehash_list.c: Likewise.
52608         * tests/test-read-file.c: Likewise.
52609         * tests/test-rijndael.c: Likewise.
52610         * tests/test-search.c: Likewise.
52611         * tests/test-signbit.c: Likewise.
52612         * tests/test-sleep.c: Likewise.
52613         * tests/test-snprintf-posix.c: Likewise.
52614         * tests/test-snprintf-posix.h: Likewise.
52615         * tests/test-snprintf.c: Likewise.
52616         * tests/test-sprintf-posix.c: Likewise.
52617         * tests/test-sprintf-posix.h: Likewise.
52618         * tests/test-stat-time.c: Likewise.
52619         * tests/test-stdbool.c: Likewise.
52620         * tests/test-stdint.c: Likewise.
52621         * tests/test-stdio.c: Likewise.
52622         * tests/test-stdlib.c: Likewise.
52623         * tests/test-stpncpy.c: Likewise.
52624         * tests/test-strcasestr.c: Likewise.
52625         * tests/test-striconv.c: Likewise.
52626         * tests/test-striconveh.c: Likewise.
52627         * tests/test-striconveha.c: Likewise.
52628         * tests/test-string.c: Likewise.
52629         * tests/test-sys_select.c: Likewise.
52630         * tests/test-sys_socket.c: Likewise.
52631         * tests/test-sys_stat.c: Likewise.
52632         * tests/test-sys_time.c: Likewise.
52633         * tests/test-sysexits.c: Likewise.
52634         * tests/test-time.c: Likewise.
52635         * tests/test-tls.c: Likewise.
52636         * tests/test-trunc.c: Likewise.
52637         * tests/test-truncf.c: Likewise.
52638         * tests/test-truncl.c: Likewise.
52639         * tests/test-unistd.c: Likewise.
52640         * tests/test-vasnprintf-posix.c: Likewise.
52641         * tests/test-vasnprintf-posix2.c: Likewise.
52642         * tests/test-vasnprintf.c: Likewise.
52643         * tests/test-vasprintf-posix.c: Likewise.
52644         * tests/test-vasprintf.c: Likewise.
52645         * tests/test-verify.c: Likewise.
52646         * tests/test-vfprintf-posix.c: Likewise.
52647         * tests/test-vprintf-posix.c: Likewise.
52648         * tests/test-vsnprintf-posix.c: Likewise.
52649         * tests/test-vsnprintf.c: Likewise.
52650         * tests/test-vsprintf-posix.c: Likewise.
52651         * tests/test-wchar.c: Likewise.
52652         * tests/test-wctype.c: Likewise.
52653         * tests/test-wcwidth.c: Likewise.
52654         * tests/test-xstrtol.c: Likewise.
52655         * tests/test-xvasprintf.c: Likewise.
52656         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
52657         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
52658         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
52659         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
52660         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
52661         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
52662         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
52663         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
52664         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
52665         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
52666         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
52667         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
52668         * tests/uniname/test-uninames.c: Likewise.
52669         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
52670         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
52671         * tests/unistdio/test-u16-printf1.h: Likewise.
52672         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
52673         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
52674         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
52675         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
52676         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
52677         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
52678         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
52679         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
52680         * tests/unistdio/test-u32-printf1.h: Likewise.
52681         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
52682         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
52683         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
52684         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
52685         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
52686         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
52687         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
52688         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
52689         * tests/unistdio/test-u8-printf1.h: Likewise.
52690         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
52691         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
52692         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
52693         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
52694         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
52695         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
52696         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
52697         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
52698         * tests/unistdio/test-ulc-printf1.h: Likewise.
52699         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
52700         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
52701         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
52702         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
52703         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
52704         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
52705         * tests/uniwidth/test-u16-strwidth.c: Likewise.
52706         * tests/uniwidth/test-u16-width.c: Likewise.
52707         * tests/uniwidth/test-u32-strwidth.c: Likewise.
52708         * tests/uniwidth/test-u32-width.c: Likewise.
52709         * tests/uniwidth/test-u8-strwidth.c: Likewise.
52710         * tests/uniwidth/test-u8-width.c: Likewise.
52711         * tests/uniwidth/test-uc_width.c: Likewise.
52712         * config/srclist-update: Likewise.
52713         (fixlicense): Update to GPLv3+.
52714
52715         Change copyright notice from LGPLv2.1+ to LGPLv3+.
52716         * tests/test-tsearch.c: Change copyright notice.
52717
52718         Change copyright notice from LGPLv2.0+ to LGPLv3+.
52719         * lib/c-strcaseeq.h: Change copyright notice.
52720         * lib/streq.h: Likewise.
52721         * lib/uniconv.h: Likewise.
52722         * lib/uniconv/u-conv-from-enc.h: Likewise.
52723         * lib/uniconv/u-conv-to-enc.h: Likewise.
52724         * lib/uniconv/u-strconv-from-enc.h: Likewise.
52725         * lib/uniconv/u-strconv-to-enc.h: Likewise.
52726         * lib/uniconv/u16-conv-from-enc.c: Likewise.
52727         * lib/uniconv/u16-conv-to-enc.c: Likewise.
52728         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
52729         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
52730         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
52731         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
52732         * lib/uniconv/u32-conv-from-enc.c: Likewise.
52733         * lib/uniconv/u32-conv-to-enc.c: Likewise.
52734         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
52735         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
52736         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
52737         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
52738         * lib/uniconv/u8-conv-from-enc.c: Likewise.
52739         * lib/uniconv/u8-conv-to-enc.c: Likewise.
52740         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
52741         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
52742         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
52743         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
52744         * lib/uniname.h: Likewise.
52745         * lib/uniname/uniname.c: Likewise.
52746         * lib/unistdio.h: Likewise.
52747         * lib/unistdio/u-asnprintf.h: Likewise.
52748         * lib/unistdio/u-asprintf.h: Likewise.
52749         * lib/unistdio/u-printf-args.c: Likewise.
52750         * lib/unistdio/u-printf-args.h: Likewise.
52751         * lib/unistdio/u-printf-parse.h: Likewise.
52752         * lib/unistdio/u-snprintf.h: Likewise.
52753         * lib/unistdio/u-sprintf.h: Likewise.
52754         * lib/unistdio/u-vasprintf.h: Likewise.
52755         * lib/unistdio/u-vsnprintf.h: Likewise.
52756         * lib/unistdio/u-vsprintf.h: Likewise.
52757         * lib/unistdio/u16-asnprintf.c: Likewise.
52758         * lib/unistdio/u16-asprintf.c: Likewise.
52759         * lib/unistdio/u16-printf-parse.c: Likewise.
52760         * lib/unistdio/u16-snprintf.c: Likewise.
52761         * lib/unistdio/u16-sprintf.c: Likewise.
52762         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
52763         * lib/unistdio/u16-u16-asprintf.c: Likewise.
52764         * lib/unistdio/u16-u16-snprintf.c: Likewise.
52765         * lib/unistdio/u16-u16-sprintf.c: Likewise.
52766         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
52767         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
52768         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
52769         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
52770         * lib/unistdio/u16-vasnprintf.c: Likewise.
52771         * lib/unistdio/u16-vasprintf.c: Likewise.
52772         * lib/unistdio/u16-vsnprintf.c: Likewise.
52773         * lib/unistdio/u16-vsprintf.c: Likewise.
52774         * lib/unistdio/u32-asnprintf.c: Likewise.
52775         * lib/unistdio/u32-asprintf.c: Likewise.
52776         * lib/unistdio/u32-printf-parse.c: Likewise.
52777         * lib/unistdio/u32-snprintf.c: Likewise.
52778         * lib/unistdio/u32-sprintf.c: Likewise.
52779         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
52780         * lib/unistdio/u32-u32-asprintf.c: Likewise.
52781         * lib/unistdio/u32-u32-snprintf.c: Likewise.
52782         * lib/unistdio/u32-u32-sprintf.c: Likewise.
52783         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
52784         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
52785         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
52786         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
52787         * lib/unistdio/u32-vasnprintf.c: Likewise.
52788         * lib/unistdio/u32-vasprintf.c: Likewise.
52789         * lib/unistdio/u32-vsnprintf.c: Likewise.
52790         * lib/unistdio/u32-vsprintf.c: Likewise.
52791         * lib/unistdio/u8-asnprintf.c: Likewise.
52792         * lib/unistdio/u8-asprintf.c: Likewise.
52793         * lib/unistdio/u8-printf-parse.c: Likewise.
52794         * lib/unistdio/u8-snprintf.c: Likewise.
52795         * lib/unistdio/u8-sprintf.c: Likewise.
52796         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
52797         * lib/unistdio/u8-u8-asprintf.c: Likewise.
52798         * lib/unistdio/u8-u8-snprintf.c: Likewise.
52799         * lib/unistdio/u8-u8-sprintf.c: Likewise.
52800         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
52801         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
52802         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
52803         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
52804         * lib/unistdio/u8-vasnprintf.c: Likewise.
52805         * lib/unistdio/u8-vasprintf.c: Likewise.
52806         * lib/unistdio/u8-vsnprintf.c: Likewise.
52807         * lib/unistdio/u8-vsprintf.c: Likewise.
52808         * lib/unistdio/ulc-asnprintf.c: Likewise.
52809         * lib/unistdio/ulc-asprintf.c: Likewise.
52810         * lib/unistdio/ulc-printf-parse.c: Likewise.
52811         * lib/unistdio/ulc-snprintf.c: Likewise.
52812         * lib/unistdio/ulc-sprintf.c: Likewise.
52813         * lib/unistdio/ulc-vasnprintf.c: Likewise.
52814         * lib/unistdio/ulc-vasprintf.c: Likewise.
52815         * lib/unistdio/ulc-vsnprintf.c: Likewise.
52816         * lib/unistdio/ulc-vsprintf.c: Likewise.
52817         * lib/unistr.h: Likewise.
52818         * lib/unistr/u-cpy-alloc.h: Likewise.
52819         * lib/unistr/u-cpy.h: Likewise.
52820         * lib/unistr/u-endswith.h: Likewise.
52821         * lib/unistr/u-move.h: Likewise.
52822         * lib/unistr/u-set.h: Likewise.
52823         * lib/unistr/u-startswith.h: Likewise.
52824         * lib/unistr/u-stpcpy.h: Likewise.
52825         * lib/unistr/u-stpncpy.h: Likewise.
52826         * lib/unistr/u-strcat.h: Likewise.
52827         * lib/unistr/u-strcpy.h: Likewise.
52828         * lib/unistr/u-strcspn.h: Likewise.
52829         * lib/unistr/u-strdup.h: Likewise.
52830         * lib/unistr/u-strlen.h: Likewise.
52831         * lib/unistr/u-strncat.h: Likewise.
52832         * lib/unistr/u-strncpy.h: Likewise.
52833         * lib/unistr/u-strnlen.h: Likewise.
52834         * lib/unistr/u-strpbrk.h: Likewise.
52835         * lib/unistr/u-strspn.h: Likewise.
52836         * lib/unistr/u-strstr.h: Likewise.
52837         * lib/unistr/u-strtok.h: Likewise.
52838         * lib/unistr/u16-check.c: Likewise.
52839         * lib/unistr/u16-chr.c: Likewise.
52840         * lib/unistr/u16-cmp.c: Likewise.
52841         * lib/unistr/u16-cpy-alloc.c: Likewise.
52842         * lib/unistr/u16-cpy.c: Likewise.
52843         * lib/unistr/u16-endswith.c: Likewise.
52844         * lib/unistr/u16-mblen.c: Likewise.
52845         * lib/unistr/u16-mbsnlen.c: Likewise.
52846         * lib/unistr/u16-mbtouc-aux.c: Likewise.
52847         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
52848         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
52849         * lib/unistr/u16-mbtouc.c: Likewise.
52850         * lib/unistr/u16-mbtoucr.c: Likewise.
52851         * lib/unistr/u16-move.c: Likewise.
52852         * lib/unistr/u16-next.c: Likewise.
52853         * lib/unistr/u16-prev.c: Likewise.
52854         * lib/unistr/u16-set.c: Likewise.
52855         * lib/unistr/u16-startswith.c: Likewise.
52856         * lib/unistr/u16-stpcpy.c: Likewise.
52857         * lib/unistr/u16-stpncpy.c: Likewise.
52858         * lib/unistr/u16-strcat.c: Likewise.
52859         * lib/unistr/u16-strchr.c: Likewise.
52860         * lib/unistr/u16-strcmp.c: Likewise.
52861         * lib/unistr/u16-strcpy.c: Likewise.
52862         * lib/unistr/u16-strcspn.c: Likewise.
52863         * lib/unistr/u16-strdup.c: Likewise.
52864         * lib/unistr/u16-strlen.c: Likewise.
52865         * lib/unistr/u16-strmblen.c: Likewise.
52866         * lib/unistr/u16-strmbtouc.c: Likewise.
52867         * lib/unistr/u16-strncat.c: Likewise.
52868         * lib/unistr/u16-strncmp.c: Likewise.
52869         * lib/unistr/u16-strncpy.c: Likewise.
52870         * lib/unistr/u16-strnlen.c: Likewise.
52871         * lib/unistr/u16-strpbrk.c: Likewise.
52872         * lib/unistr/u16-strrchr.c: Likewise.
52873         * lib/unistr/u16-strspn.c: Likewise.
52874         * lib/unistr/u16-strstr.c: Likewise.
52875         * lib/unistr/u16-strtok.c: Likewise.
52876         * lib/unistr/u16-to-u32.c: Likewise.
52877         * lib/unistr/u16-to-u8.c: Likewise.
52878         * lib/unistr/u16-uctomb-aux.c: Likewise.
52879         * lib/unistr/u16-uctomb.c: Likewise.
52880         * lib/unistr/u32-check.c: Likewise.
52881         * lib/unistr/u32-chr.c: Likewise.
52882         * lib/unistr/u32-cmp.c: Likewise.
52883         * lib/unistr/u32-cpy-alloc.c: Likewise.
52884         * lib/unistr/u32-cpy.c: Likewise.
52885         * lib/unistr/u32-endswith.c: Likewise.
52886         * lib/unistr/u32-mblen.c: Likewise.
52887         * lib/unistr/u32-mbsnlen.c: Likewise.
52888         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
52889         * lib/unistr/u32-mbtouc.c: Likewise.
52890         * lib/unistr/u32-mbtoucr.c: Likewise.
52891         * lib/unistr/u32-move.c: Likewise.
52892         * lib/unistr/u32-next.c: Likewise.
52893         * lib/unistr/u32-prev.c: Likewise.
52894         * lib/unistr/u32-set.c: Likewise.
52895         * lib/unistr/u32-startswith.c: Likewise.
52896         * lib/unistr/u32-stpcpy.c: Likewise.
52897         * lib/unistr/u32-stpncpy.c: Likewise.
52898         * lib/unistr/u32-strcat.c: Likewise.
52899         * lib/unistr/u32-strchr.c: Likewise.
52900         * lib/unistr/u32-strcmp.c: Likewise.
52901         * lib/unistr/u32-strcpy.c: Likewise.
52902         * lib/unistr/u32-strcspn.c: Likewise.
52903         * lib/unistr/u32-strdup.c: Likewise.
52904         * lib/unistr/u32-strlen.c: Likewise.
52905         * lib/unistr/u32-strmblen.c: Likewise.
52906         * lib/unistr/u32-strmbtouc.c: Likewise.
52907         * lib/unistr/u32-strncat.c: Likewise.
52908         * lib/unistr/u32-strncmp.c: Likewise.
52909         * lib/unistr/u32-strncpy.c: Likewise.
52910         * lib/unistr/u32-strnlen.c: Likewise.
52911         * lib/unistr/u32-strpbrk.c: Likewise.
52912         * lib/unistr/u32-strrchr.c: Likewise.
52913         * lib/unistr/u32-strspn.c: Likewise.
52914         * lib/unistr/u32-strstr.c: Likewise.
52915         * lib/unistr/u32-strtok.c: Likewise.
52916         * lib/unistr/u32-to-u16.c: Likewise.
52917         * lib/unistr/u32-to-u8.c: Likewise.
52918         * lib/unistr/u32-uctomb.c: Likewise.
52919         * lib/unistr/u8-check.c: Likewise.
52920         * lib/unistr/u8-chr.c: Likewise.
52921         * lib/unistr/u8-cmp.c: Likewise.
52922         * lib/unistr/u8-cpy-alloc.c: Likewise.
52923         * lib/unistr/u8-cpy.c: Likewise.
52924         * lib/unistr/u8-endswith.c: Likewise.
52925         * lib/unistr/u8-mblen.c: Likewise.
52926         * lib/unistr/u8-mbsnlen.c: Likewise.
52927         * lib/unistr/u8-mbtouc-aux.c: Likewise.
52928         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
52929         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
52930         * lib/unistr/u8-mbtouc.c: Likewise.
52931         * lib/unistr/u8-mbtoucr.c: Likewise.
52932         * lib/unistr/u8-move.c: Likewise.
52933         * lib/unistr/u8-next.c: Likewise.
52934         * lib/unistr/u8-prev.c: Likewise.
52935         * lib/unistr/u8-set.c: Likewise.
52936         * lib/unistr/u8-startswith.c: Likewise.
52937         * lib/unistr/u8-stpcpy.c: Likewise.
52938         * lib/unistr/u8-stpncpy.c: Likewise.
52939         * lib/unistr/u8-strcat.c: Likewise.
52940         * lib/unistr/u8-strchr.c: Likewise.
52941         * lib/unistr/u8-strcmp.c: Likewise.
52942         * lib/unistr/u8-strcpy.c: Likewise.
52943         * lib/unistr/u8-strcspn.c: Likewise.
52944         * lib/unistr/u8-strdup.c: Likewise.
52945         * lib/unistr/u8-strlen.c: Likewise.
52946         * lib/unistr/u8-strmblen.c: Likewise.
52947         * lib/unistr/u8-strmbtouc.c: Likewise.
52948         * lib/unistr/u8-strncat.c: Likewise.
52949         * lib/unistr/u8-strncmp.c: Likewise.
52950         * lib/unistr/u8-strncpy.c: Likewise.
52951         * lib/unistr/u8-strnlen.c: Likewise.
52952         * lib/unistr/u8-strpbrk.c: Likewise.
52953         * lib/unistr/u8-strrchr.c: Likewise.
52954         * lib/unistr/u8-strspn.c: Likewise.
52955         * lib/unistr/u8-strstr.c: Likewise.
52956         * lib/unistr/u8-strtok.c: Likewise.
52957         * lib/unistr/u8-to-u16.c: Likewise.
52958         * lib/unistr/u8-to-u32.c: Likewise.
52959         * lib/unistr/u8-uctomb-aux.c: Likewise.
52960         * lib/unistr/u8-uctomb.c: Likewise.
52961         * lib/unitypes.h: Likewise.
52962         * lib/uniwidth.h: Likewise.
52963         * lib/uniwidth/cjk.h: Likewise.
52964         * lib/uniwidth/u16-strwidth.c: Likewise.
52965         * lib/uniwidth/u16-width.c: Likewise.
52966         * lib/uniwidth/u32-strwidth.c: Likewise.
52967         * lib/uniwidth/u32-width.c: Likewise.
52968         * lib/uniwidth/u8-strwidth.c: Likewise.
52969         * lib/uniwidth/u8-width.c: Likewise.
52970         * lib/uniwidth/width.c: Likewise.
52971
52972 2007-10-07  Bruno Haible  <bruno@clisp.org>
52973
52974         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
52975         The file is still under LGPL (see modules/inttypes).
52976
52977 2007-10-06  Bruno Haible  <bruno@clisp.org>
52978
52979         * modules/trunc (Dependencies): Add 'extensions'.
52980         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
52981         Reported by Ben Pfaff <blp@gnu.org>.
52982
52983 2007-10-06  Bruno Haible  <bruno@clisp.org>
52984
52985         * modules/freopen-tests: New file.
52986         * tests/test-freopen.c: New file.
52987
52988         * modules/fopen-tests: New file.
52989         * tests/test-fopen.c: New file.
52990
52991         * modules/fopen: New file.
52992         * lib/fopen.c: New file.
52993         * m4/fopen.m4: New file.
52994         * modules/freopen: New file.
52995         * lib/freopen.c: New file.
52996         * m4/freopen.m4: New file.
52997         * lib/stdio.in.h (fopen, freopen): New declarations.
52998         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
52999         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
53000         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
53001         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
53002         * doc/functions/fopen.texi: Mention the 'fopen' module.
53003         * doc/functions/freopen.texi: Mention the 'freopen' module.
53004
53005 2007-10-06  Bruno Haible  <bruno@clisp.org>
53006
53007         * modules/open-tests: New file.
53008         * tests/test-open.c: New file.
53009
53010         * modules/open: New file.
53011         * lib/open.c: New file.
53012         * m4/open.m4: New file.
53013         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
53014         lib/open.c does.
53015         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
53016         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
53017         macros.
53018         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
53019         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
53020         REPLACE_OPEN.
53021         * doc/functions/open.texi: Mention the 'open' module.
53022
53023 2007-10-04  Bruno Haible  <bruno@clisp.org>
53024
53025         * modules/ceill-tests: New file.
53026         * tests/test-ceill.c: New file.
53027
53028         * modules/ceill: New file.
53029         * lib/ceill.c: Replace entire file.
53030         * m4/ceill.m4: New file.
53031         * lib/math.in.h (ceill): Replace declaration.
53032         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
53033         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
53034         * doc/functions/ceill.texi: Mention the 'ceill' module.
53035         * modules/mathl (Files): Remove lib/ceill.c.
53036         (Depends-on): Add ceill.
53037
53038 2007-10-04  Bruno Haible  <bruno@clisp.org>
53039
53040         * modules/ceilf-tests: New file.
53041         * tests/test-ceilf.c: New file.
53042
53043         * modules/ceilf: New file.
53044         * lib/ceil.c: New file.
53045         * lib/ceilf.c: New file.
53046         * m4/ceilf.m4: New file.
53047         * lib/math.in.h (ceilf): New declaration.
53048         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
53049         HAVE_DECL_CEILF.
53050         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
53051         HAVE_DECL_CEILF.
53052         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
53053
53054 2007-10-04  Bruno Haible  <bruno@clisp.org>
53055
53056         * modules/floorl-tests: New file.
53057         * tests/test-floorl.c: New file.
53058
53059         * modules/floorl: New file.
53060         * lib/floorl.c: Replace entire file.
53061         * m4/floorl.m4: New file.
53062         * lib/math.in.h (floorl): Replace declaration.
53063         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
53064         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
53065         * doc/functions/floorl.texi: Mention the 'floorl' module.
53066         * modules/mathl (Files): Remove lib/floorl.c.
53067         (Depends-on): Add floorl.
53068
53069 2007-10-04  Bruno Haible  <bruno@clisp.org>
53070
53071         * modules/floorf-tests: New file.
53072         * tests/test-floorf.c: New file.
53073
53074         * modules/floorf: New file.
53075         * lib/floor.c: New file.
53076         * lib/floorf.c: New file.
53077         * m4/floorf.m4: New file.
53078         * lib/math.in.h (floorf): New declaration.
53079         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
53080         HAVE_DECL_FLOORF.
53081         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
53082         HAVE_DECL_FLOORF.
53083         * doc/functions/floorf.texi: Mention the 'floorf' module.
53084
53085 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
53086             Bruno Haible  <bruno@clisp.org>
53087
53088         Advertise for the Git server instead of the CVS server.
53089         * doc/gnulib-intro.texi (Steady Development): Mention the Git
53090         repository instead of the CVS one.
53091         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
53092         about all VCS systems generically.
53093         * doc/gnulib.texi (Introduction): Capitalize `Git'.
53094
53095 2007-10-04  Bruno Haible  <bruno@clisp.org>
53096
53097         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
53098         means.
53099         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
53100
53101 2007-10-04  Bruno Haible  <bruno@clisp.org>
53102
53103         * modules/truncl-tests: New file.
53104         * tests/test-truncl.c: New file.
53105
53106         * modules/truncl: New file.
53107         * lib/truncl.c: New file.
53108         * m4/truncl.m4: New file.
53109         * lib/math.in.h (truncl): New declaration.
53110         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
53111         HAVE_DECL_TRUNCL.
53112         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
53113         HAVE_DECL_TRUNCL.
53114         * doc/functions/truncl.texi: Mention the 'truncl' module.
53115
53116 2007-10-04  Bruno Haible  <bruno@clisp.org>
53117
53118         * modules/truncf-tests: New file.
53119         * tests/test-truncf.c: New file.
53120
53121         * modules/truncf: New file.
53122         * lib/trunc.c: Make paramerizable through USE_* macros.
53123         * lib/truncf.c: New file.
53124         * m4/truncf.m4: New file.
53125         * lib/math.in.h (truncf): New declaration.
53126         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
53127         HAVE_DECL_TRUNCF.
53128         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
53129         HAVE_DECL_TRUNCF.
53130         * doc/functions/truncf.texi: Mention the 'truncf' module.
53131
53132 2007-10-03  Bruno Haible  <bruno@clisp.org>
53133
53134         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
53135         augmentation also for tests modules.
53136         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
53137         * modules/atexit-tests (Makefile.am): Likewise.
53138         * modules/binary-io-tests (Makefile.am): Likewise.
53139         * modules/c-strcase-tests (Makefile.am): Likewise.
53140         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
53141         * modules/canonicalize-tests (Makefile.am): Likewise.
53142         * modules/closein-tests (Makefile.am): Likewise.
53143         * modules/fprintf-posix-tests (Makefile.am): Likewise.
53144         * modules/freadahead-tests (Makefile.am): Likewise.
53145         * modules/fseek-tests (Makefile.am): Likewise.
53146         * modules/fseeko-tests (Makefile.am): Likewise.
53147         * modules/ftell-tests (Makefile.am): Likewise.
53148         * modules/ftello-tests (Makefile.am): Likewise.
53149         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
53150         * modules/isnanl-tests (Makefile.am): Likewise.
53151         * modules/lseek-tests (Makefile.am): Likewise.
53152         * modules/mbscasecmp-tests (Makefile.am): Likewise.
53153         * modules/mbscasestr-tests (Makefile.am): Likewise.
53154         * modules/mbschr-tests (Makefile.am): Likewise.
53155         * modules/mbscspn-tests (Makefile.am): Likewise.
53156         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
53157         * modules/mbspbrk-tests (Makefile.am): Likewise.
53158         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
53159         * modules/mbsrchr-tests (Makefile.am): Likewise.
53160         * modules/mbsspn-tests (Makefile.am): Likewise.
53161         * modules/mbsstr-tests (Makefile.am): Likewise.
53162         * modules/printf-posix-tests (Makefile.am): Likewise.
53163         * modules/snprintf-posix-tests (Makefile.am): Likewise.
53164         * modules/sprintf-posix-tests (Makefile.am): Likewise.
53165         * modules/tsearch-tests (Makefile.am): Likewise.
53166         * modules/uniname/uniname-tests (Makefile.am): Likewise.
53167         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
53168         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
53169         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
53170         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
53171         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
53172         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
53173         * modules/vprintf-posix-tests (Makefile.am): Likewise.
53174         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
53175         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
53176         * modules/xstrtoimax-tests (Makefile.am): Likewise.
53177         * modules/xstrtol-tests (Makefile.am): Likewise.
53178         * modules/xstrtoumax-tests (Makefile.am): Likewise.
53179         * modules/yesno-tests (Makefile.am): Likewise.
53180
53181 2007-10-03  Bruno Haible  <bruno@clisp.org>
53182
53183         * modules/trunc-tests: New file.
53184         * tests/test-trunc.c: New file.
53185
53186         * modules/trunc: New file.
53187         * lib/trunc.c: New file.
53188         * m4/trunc.m4: New file.
53189         * lib/math.in.h (trunc): New declaration.
53190         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
53191         HAVE_DECL_TRUNC.
53192         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
53193         HAVE_DECL_TRUNC.
53194         * doc/functions/trunc.texi: Mention the 'trunc' module.
53195
53196 2007-10-03  Bruno Haible  <bruno@clisp.org>
53197
53198         * tests/test-fpending.c: New file, mostly copied
53199         from coreutils/lib/t-fpending.c.
53200         * modules/fpending-tests: New file.
53201
53202 2007-10-03  Bruno Haible  <bruno@clisp.org>
53203
53204         Port the stdio extensions to QNX (untested).
53205         * lib/fseterr.c (fseterr): Add support for QNX.
53206         * lib/fbufmode.c (fbufmode): Likewise.
53207         * lib/freadable.c (freadable): Likewise.
53208         * lib/fwritable.c (fwritable): Likewise.
53209         * lib/freading.c (freading): Likewise.
53210         * lib/fwriting.c (fwriting): Likewise.
53211         * lib/freadahead.c (freadahed): Likewise.
53212         * lib/fpurge.c (fpurge): Likewise.
53213         * lib/fseeko.c (rpl_fseeko): Likewise.
53214
53215 2007-10-03  Bruno Haible  <bruno@clisp.org>
53216             Jim Meyering  <jim@meyering.net>
53217             Eric Blake  <ebb9@byu.net>
53218
53219         * doc/relocatable.texi: Use @command instead of @program.
53220
53221 2007-10-02  Jim Meyering  <jim@meyering.net>
53222
53223         Perform one more "_.h" -> ".in.h" substitution.
53224         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
53225         instead of unistd_.h here, too.
53226
53227 2007-10-01  Bruno Haible  <bruno@clisp.org>
53228
53229         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
53230         Needed for the alloca-opt module.
53231
53232 2007-09-30  Bruno Haible  <bruno@clisp.org>
53233
53234         * lib/alloca.in.h: Renamed from lib/alloca_.h.
53235         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
53236         alloca_.h.
53237         * lib/argz.in.h: Renamed from lib/argz_.h.
53238         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
53239         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
53240         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
53241         byteswap_.h.
53242         * lib/dirent.in.h: Renamed from lib/dirent_.h.
53243         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
53244         dirent_.h.
53245         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
53246         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
53247         fcntl_.h.
53248         * lib/float.in.h: Renamed from lib/float_.h.
53249         * modules/float (Files, Makefile.am): Use float.in.h instead of
53250         float_.h.
53251         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
53252         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
53253         fnmatch_.h.
53254         * lib/getopt.in.h: Renamed from lib/getopt_.h.
53255         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
53256         getopt_.h.
53257         * lib/glob.in.h: Renamed from lib/glob_.h.
53258         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
53259         * lib/iconv.in.h: Renamed from lib/iconv_.h.
53260         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
53261         iconv_.h.
53262         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
53263         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
53264         inttypes_.h.
53265         * lib/locale.in.h: Renamed from lib/locale_.h.
53266         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
53267         locale_.h.
53268         * lib/math.in.h: Renamed from lib/math_.h.
53269         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
53270         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
53271         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
53272         of netinet_in_.h. Add dependency.
53273         * lib/poll.in.h: Renamed from lib/poll_.h.
53274         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
53275         * lib/search.in.h: Renamed from lib/search_.h.
53276         * modules/search (Files, Makefile.am): Use search.in.h instead of
53277         search_.h.
53278         * lib/signal.in.h: Renamed from lib/signal_.h.
53279         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
53280         _signal.h.
53281         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
53282         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
53283         stdbool_.h.
53284         * lib/stdint.in.h: Renamed from lib/stdint_.h.
53285         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
53286         stdint_.h.
53287         * lib/stdio.in.h: Renamed from lib/stdio_.h.
53288         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
53289         stdio_.h.
53290         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
53291         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
53292         stdlib_.h.
53293         * lib/string.in.h: Renamed from lib/string_.h.
53294         * modules/string (Files, Makefile.am): Use string.in.h instead of
53295         string_.h.
53296         * doc/gnulib-tool.texi (Initial import): Update.
53297         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
53298         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
53299         of sys_select_.h. Add dependency.
53300         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
53301         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
53302         of sys_socket_.h.
53303         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
53304         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
53305         sys_stat_.h.
53306         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
53307         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
53308         sys_time_.h.
53309         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
53310         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
53311         sysexits_.h.
53312         * lib/time.in.h: Renamed from lib/time_.h.
53313         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
53314         * lib/unistd.in.h: Renamed from lib/unistd_.h.
53315         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
53316         unistd_.h.
53317         * lib/wchar.in.h: Renamed from lib/wchar_.h.
53318         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
53319         wchar_.h.
53320         * lib/wctype.in.h: Renamed from lib/wctype_.h.
53321         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
53322         wctype_.h.
53323         * build-aux/bootstrap (slurp): Update.
53324         * lib/.cppi-disable: Update.
53325
53326 2007-09-30  Bruno Haible  <bruno@clisp.org>
53327
53328         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
53329         Needed on BeOS.
53330
53331 2007-09-30  Bruno Haible  <bruno@clisp.org>
53332
53333         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
53334
53335 2007-09-29  Bruno Haible  <bruno@clisp.org>
53336
53337         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
53338
53339 2007-09-29  Bruno Haible  <bruno@clisp.org>
53340
53341         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
53342         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
53343         * build-aux/install-reloc: Compile also areadlink.c.
53344         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
53345
53346 2007-09-29  Bruno Haible  <bruno@clisp.org>
53347
53348         * gnulib-tool (func_emit_initmacro_done): Indentation.
53349
53350 2007-09-29  Bruno Haible  <bruno@clisp.org>
53351
53352         * README: Add CVS checkout update instructions.
53353         Info from Bob Proulx <bob@proulx.com>.
53354
53355 2007-09-28  Eric Blake  <ebb9@byu.net>
53356
53357         Provide move-if-change.
53358         * build-aux/move-if-change: New file, based on best practice
53359         rather than any canonical upstream location.
53360
53361 2007-09-28  Jim Meyering  <jim@meyering.net>
53362
53363         Fix canonicalize loop-detection corner case.
53364         Do not attempt to stat the symlink values stored via seen_triple.
53365         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
53366         on linux-2.6.18, (but not 2.6.22).
53367         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
53368         triple_compare.  The former compares dev,ino,filename, while the latter
53369         would actually stat dirname(filename) when dev and ino were equal.
53370         * lib/hash-triple.c: Install <string.h>.
53371         (STREQ): Define.
53372         (triple_compare_ino_str): New function.
53373         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
53374
53375 2007-09-28  Eric Blake  <ebb9@byu.net>
53376
53377         Enforce that AC_REPLACE_FUNCS files exist.
53378         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
53379         override check for typos.
53380
53381         Fix test-closein on Solaris 10.
53382         * tests/test-closein.c (main): Don't assume stdin can be inherited
53383         closed on all systems.
53384         * tests/test-closein.sh: Likewise.
53385         Reported by Piotr Tarnowski.
53386
53387 2007-09-28  Jim Meyering  <jim@meyering.net>
53388
53389         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
53390
53391 2007-09-27  Jim Meyering  <jim@meyering.net>
53392
53393         canonicalize: Avoid a false-positive cycle failure.
53394         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
53395         Sort.  Remove cycle-check.
53396         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
53397         not cycle-check.h.
53398         (seen_triple): New function.
53399         (canonicalize_filename_mode): Use it instead of cycle-check.
53400         * tests/test-canonicalize.c: Add a test for this bug.
53401         * tests/test-canonicalize.sh: Set up and run the test.
53402
53403         New module, file-set, from coreutils.
53404         * modules/file-set: Define it.
53405         * lib/file-set.c, lib/file-set.h: Implement.
53406
53407         New module, hash-triple, from coreutils.
53408         * modules/hash-triple: Define it.
53409         * lib/hash-triple.c, lib/hash-triple.h: Implement.
53410
53411 2007-09-25  Eric Blake  <ebb9@byu.net>
53412
53413         Fix strerror on Interix.
53414         * lib/string_.h (strerror): Declare replacement.
53415         * doc/functions/strerror.texi (strerror): Document the Interix
53416         shortcoming.
53417         * modules/string (Makefile.am): Support new hooks.
53418         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
53419         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
53420         gl_FUNC_STRERROR_SEPARATE.
53421         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
53422         * lib/strerror.c (rpl_strerror): Provide replacement.
53423         * modules/strerror (Depends-on): Add string.
53424         (configure.ac): Detect use of module.
53425         * tests/test-strerror.c: New file.
53426         * modules/strerror-tests: New test module.
53427         * modules/argp (Depends-on): Add strerror.
53428         * modules/error (Depends-on): Likewise.
53429         Reported by Martin Koeppe.
53430
53431 2007-09-24  Bruno Haible  <bruno@clisp.org>
53432
53433         * README: Update git instructions.
53434
53435 2007-09-24  Eric Blake  <ebb9@byu.net>
53436
53437         Revert fpending breakage from 2007-09-08.
53438         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
53439         __fpending.c.
53440
53441 2007-09-24  Jim Meyering  <jim@meyering.net>
53442
53443         filenamecat.c: Add a test.
53444         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
53445         showing how the function works when DIR is the empty string.
53446
53447 2007-09-21  Simon Josefsson  <simon@josefsson.org>
53448
53449         * tests/test-canonicalize.sh: Turn on executable bit.
53450
53451 2007-09-19  Eric Blake  <ebb9@byu.net>
53452
53453         * README: Update CVS instructions.
53454
53455 2007-09-18  Bruno Haible  <bruno@clisp.org>
53456
53457         * modules/areadlink: New file.
53458         * lib/areadlink.h (areadlink): New declaration.
53459         * lib/areadlink.c: New file, based on lib/xreadlink.c.
53460
53461 2007-09-17  Jim Meyering  <jim@meyering.net>
53462
53463         * lib/savewd.c (ESTALE) [!defined]: Define.
53464         Reported to be required on Interix by Martin Koeppe.
53465
53466 2007-09-17  Bruno Haible  <bruno@clisp.org>
53467
53468         * gnulib-tool (func_version): Use $version.
53469
53470 2007-09-16  Bruno Haible  <bruno@clisp.org>
53471
53472         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
53473         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
53474         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
53475         Reported by Greg Schafer <gschafer@zip.com.au>.
53476
53477 2007-09-15  Bruno Haible  <bruno@clisp.org>
53478
53479         * gnulib-tool (sed): Try a little harder to make bash understand the
53480         alias.
53481         Reported by Bruce Korb <bruce.korb@gmail.com>.
53482
53483 2007-09-13  Eric Blake  <ebb9@byu.net>
53484
53485         * ChangeLog: Remove conflict markers.
53486
53487 2007-09-13  Simon Josefsson  <simon@josefsson.org>
53488
53489         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
53490         Reported by Bruno Haible <bruno@clisp.org>.
53491
53492 2007-09-12  Bruno Haible  <bruno@clisp.org>
53493
53494         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
53495         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
53496         is not defined.
53497
53498 2007-09-12  Eric Blake  <ebb9@byu.net>
53499
53500         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
53501         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
53502         Autoconf definition.
53503         * modules/euidaccess (Depends-on): Add extensions, for
53504         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
53505         * modules/fnmatch (Depends-on): Likewise.
53506         * modules/getaddrinfo (Depends-on): Likewise.
53507         * modules/getdelim (Depends-on): Likewise.
53508         * modules/getline (Depends-on): Likewise.
53509         * modules/getsubopt (Depends-on): Likewise.
53510         * modules/gettext (Depends-on): Likewise.
53511         * modules/group-member (Depends-on): Likewise.
53512         * modules/mbchar (Depends-on): Likewise.
53513         * modules/memmem (Depends-on): Likewise.
53514         * modules/mempcpy (Depends-on): Likewise.
53515         * modules/memrchr (Depends-on): Likewise.
53516         * modules/pagealign_alloc (Depends-on): Likewise.
53517         * modules/readutmp (Depends-on): Likewise.
53518         * modules/stpcpy (Depends-on): Likewise.
53519         * modules/stpncpy (Depends-on): Likewise.
53520         * modules/strchrnul (Depends-on): Likewise.
53521         * modules/strndup (Depends-on): Likewise.
53522         * modules/strsep (Depends-on): Likewise.
53523         * modules/strverscmp (Depends-on): Likewise.
53524         * modules/vasprintf (Depends-on): Likewise.
53525         * modules/wcwidth (Depends-on): Likewise.
53526         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
53527         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
53528         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
53529         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
53530         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53531         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
53532         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
53533         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
53534         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
53535         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
53536         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53537         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
53538         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
53539         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
53540         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
53541         * m4/readutmp.m4 (gl_READUTMP): Likewise.
53542         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53543         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
53544         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53545         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
53546         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53547         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
53548         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
53549         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
53550         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
53551         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
53552         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
53553         so that lock.m4 can be used in gettext without extensions module.
53554
53555 2007-09-11  Bruno Haible  <bruno@clisp.org>
53556
53557         * m4/isc-posix.m4: Remove file.
53558         Suggested by Eric Blake.
53559
53560 2007-09-11  Eric Blake  <ebb9@byu.net>
53561
53562         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
53563
53564 2007-09-10  Bruno Haible  <bruno@clisp.org>
53565
53566         * posix-modules: Fix typo in error message.
53567         Reported by Matt <mkraai@beckman.com>.
53568
53569 2007-09-09  Bruno Haible  <bruno@clisp.org>
53570
53571         * doc/functions/getdelim.texi: Update list of platforms lacking the
53572         function.
53573         * doc/functions/getline.texi: Likewise.
53574
53575 2007-09-09  Jim Meyering  <jim@meyering.net>
53576
53577         * lib/hash.c (hash_initialize): Detect calloc failure.
53578         Reported by Bruno Haible.
53579
53580 2007-09-09  Bruno Haible  <bruno@clisp.org>
53581
53582         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
53583         malloc or realloc fails.
53584
53585 2007-09-09  Bruno Haible  <bruno@clisp.org>
53586
53587         * modules/getcwd (Depends-on): Add malloc-posix.
53588         * modules/glob (Depends-on): Likewise.
53589         * modules/putenv (Depends-on): Likewise.
53590         * modules/strdup (Depends-on): Likewise.
53591         * modules/getdelim (Depends-on): Add realloc-posix.
53592         * modules/read-file (Depends-on): Likewise.
53593
53594 2007-09-09  Bruno Haible  <bruno@clisp.org>
53595
53596         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
53597         (gl_FUNC_MALLOC_POSIX): Require it.
53598         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
53599         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
53600         * modules/realloc (Files): Add m4/malloc.m4.
53601         * modules/calloc (Files): Likewise.
53602
53603 2007-09-09  Bruno Haible  <bruno@clisp.org>
53604
53605         * modules/malloc-posix: New file.
53606         * modules/malloc (Depends-on): Add malloc-posix.
53607         * lib/malloc.c: Include errno.h.
53608         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
53609         and a POSIX-compatible malloc into a single function. Set ENOMEM
53610         when returning NULL.
53611         * m4/malloc.m4: New file.
53612         * doc/functions/malloc.texi: Mention the malloc-posix module.
53613         * lib/stdlib_.h (malloc): New declaration.
53614         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53615         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
53616         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
53617         and HAVE_MALLOC_POSIX.
53618
53619 2007-09-09  Bruno Haible  <bruno@clisp.org>
53620
53621         * modules/realloc-posix: New file.
53622         * modules/realloc (Depends-on): Add realloc-posix.
53623         * lib/realloc.c: Include errno.h.
53624         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
53625         and a POSIX-compatible realloc into a single function. Set ENOMEM
53626         when returning NULL.
53627         * m4/realloc.m4: New file.
53628         * doc/functions/realloc.texi: Mention the realloc-posix module.
53629         * lib/stdlib_.h (realloc): New declaration.
53630         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53631         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
53632         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
53633         and HAVE_REALLOC_POSIX.
53634
53635 2007-09-09  Bruno Haible  <bruno@clisp.org>
53636
53637         * modules/calloc-posix: New file.
53638         * modules/calloc (Depends-on): Add calloc-posix.
53639         * lib/calloc.c: Include errno.h.
53640         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
53641         and a POSIX-compatible calloc into a single function. Set ENOMEM
53642         when returning NULL.
53643         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
53644         * doc/functions/calloc.texi: Mention the calloc-posix module.
53645         * lib/stdlib_.h (calloc): New declaration.
53646         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53647         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
53648         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
53649         and HAVE_CALLOC_POSIX.
53650
53651 2007-09-09  Bruno Haible  <bruno@clisp.org>
53652
53653         Allow for modules to show an arbitrary notice.
53654         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
53655         * gnulib-tool: New option --extract-notice.
53656         (func_usage): Document it.
53657         (sed_extract_prog): Update.
53658         (func_get_notice): New function.
53659         (func_modules_notice): New function.
53660         (func_import, func_create_testdir): Invoke it.
53661         Suggested by Jim Meyering.
53662
53663 2007-09-09  Bruno Haible  <bruno@clisp.org>
53664
53665         * gnulib-tool: New options --verbose, --quiet.
53666         (func_usage): Document them.
53667         (verbose): New variable.
53668         (func_execute_command): New function.
53669         (func_import): Don't show the module list and the file list if
53670         $verbose < 0.
53671         (func_create_testdir): Likewise. Use func_execute_command.
53672         (func_create_megatestdir): Use func_execute_command.
53673
53674 2007-09-08  Bruno Haible  <bruno@clisp.org>
53675
53676         * gnulib-tool (func_import): Prefer rsync over wget when available,
53677         for fetching the PO files.
53678
53679 2007-09-08  Bruno Haible  <bruno@clisp.org>
53680
53681         * posix-modules: New file. Portions copied from gnulib-tool.
53682         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
53683
53684 2007-09-08  Jim Meyering  <jim@meyering.net>
53685
53686         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
53687         * lib/fpending.h: Rename from __fpending.h.
53688         * lib/fpending.c: Rename from __fpending.c.
53689         Include "fpending.h", not "__fpending.h".
53690         * lib/__fpending.h, lib/__fpending.c: Remove files.
53691         * modules/fpending (Files): Reflect new file names.
53692         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
53693
53694 2007-09-08  Bruno Haible  <bruno@clisp.org>
53695
53696         * m4/inttypes-h.m4: Remove stub file.
53697
53698 2007-09-07  Simon Josefsson  <simon@josefsson.org>
53699
53700         * doc/headers/stdint.texi: Discuss #include_next issue.
53701
53702 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53703
53704         * build-aux/bootstrap: Remove obsolete comment about wget --help.
53705
53706 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53707
53708         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
53709         in variable name.
53710
53711 2007-09-03  Jim Meyering  <jim@meyering.net>
53712
53713         New module: git-version-gen.
53714         * modules/git-version-gen: New file.
53715
53716         Import changes from coreutils for bootstrap script.
53717
53718         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
53719
53720         bootstrap: uses rsync to download the .po files
53721         * build-aux/bootstrap (po_download_command_format): New global.
53722         (download_po_files): Use rsync.
53723         (update_po_files): Don't remove .po files after download,
53724         so future rsync runs can take advantage of the copies.
53725
53726         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
53727
53728         Solve the unnecessary-.po-file-regeneration problem once and for all.
53729         * build-aux/bootstrap (download_po_files): New function, renamed from
53730         get_translations.  Now, downloads, but doesn't update LINGUAS.
53731         (update_po_files): New function.
53732
53733         bootstrap: Ignore more.
53734         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
53735         uniwidth to e.g., lib/.gitignore.
53736         (slurp): Handle the sys_stat_.h -> sys mapping, too.
53737
53738         * build-aux/bootstrap: New setting: vc_ignore.
53739         (insert_sorted_if_absent): Create $file if absent.
53740         Adapt to new, possibly empty, list: $vc_ignore.
53741
53742         bootstrap: generate more ignorable names
53743         * build-aux/bootstrap (slurp): When generating ignorable names,
53744         also map .sin to .sed, .gperf to .c, and .y to .c.
53745
53746 2007-09-03  Jim Meyering  <jim@meyering.net>
53747
53748         * build-aux/git-version-gen: New file, from coreutils.  For details, see
53749         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
53750
53751 2007-09-02  Bruno Haible  <bruno@clisp.org>
53752
53753         Fix mis-recognition of 'mcs' on QNX 6.
53754         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
53755         output contains the string "Mono".
53756         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
53757         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
53758
53759 2007-09-01  Bruno Haible  <bruno@clisp.org>
53760
53761         Fix collision between uniwidth/* and linebreak modules.
53762         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
53763         u32_width): Remove declarations.
53764         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
53765         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
53766         streq3, streq2, streq1, streq0): Remove functions.
53767         (STREQ): Remove macro.
53768         (is_cjk_encoding): Remove function.
53769         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
53770         (uc_width, u8_width, u16_width, u32_width): Remove functions.
53771         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
53772         * NEWS: Document the change.
53773
53774 2007-09-01  Bruno Haible  <bruno@clisp.org>
53775
53776         * lib/streq.h: Add double-inclusion guard.
53777
53778 2007-09-01  Karl Berry  <karl@gnu.org>
53779
53780         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
53781
53782 2007-08-28  Jim Meyering  <jim@meyering.net>
53783
53784         Rename mreadlink_with_size to areadlink_with_size.
53785         * NEWS: Document the change.
53786         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
53787         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
53788         * lib/mreadlink.h: Rename this to...
53789         * lib/areadlink.h: ...this.
53790         * modules/mreadlink-with-size: Rename this to...
53791         * modules/areadlink-with-size: ...this.
53792         * lib/canonicalize.c: Reflect the renaming.
53793         * modules/canonicalize: Likewise.
53794
53795 2007-08-26  Bruno Haible  <bruno@clisp.org>
53796
53797         * gnulib-tool (func_import): When deciding which files to remove,
53798         consider also dangling symbolic links.
53799         Reported by Eric Blake.
53800
53801 2007-08-26  Bruno Haible  <bruno@clisp.org>
53802
53803         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
53804
53805 2007-08-23  Simon Josefsson  <simon@josefsson.org>
53806
53807         * lib/readline.c: Don't include getline.h, the prototype is now
53808         found in stdio.h.
53809
53810 2007-08-23  Jim Meyering  <jim@meyering.net>
53811
53812         Getdelim touchup.
53813         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
53814         around the funlockfile call, since funlockfile never sets errno.
53815         Don't set errno upon failed realloc.
53816
53817 2007-08-22  Eric Blake  <ebb9@byu.net>
53818
53819         Getline touchups.
53820         * lib/getdelim.c (getdelim): Revert regression that required *n to
53821         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
53822         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
53823         getdelim, rather than whether implementation is missing.
53824         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
53825         * lib/stdio_.h (getline): Also declare if replacement is
53826         required.
53827         * doc/functions/getdelim.texi: New file.
53828         * doc/functions/getline.texi: Likewise.
53829         * doc/gnulib.texi (Function Substitutes): Add new files.
53830         Reported by Bruno Haible.
53831
53832 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
53833
53834         * users.txt: Add Guile.
53835
53836 2007-08-22  Eric Blake  <ebb9@byu.net>
53837
53838         * tests/test-getdelim.c (main): Use remove, not unlink.
53839         * tests/test-getline.c (main): Likewise.
53840
53841         Move getline and getdelim into stdio.h, per POSIX 200x.
53842         * modules/getline (Files): Remove getline.h.
53843         (Depends-on): Add stdio.
53844         (configure.ac): Add module indicator.
53845         * modules/getdelim (Files): Remove getdelim.h.
53846         (Depends-on): Add stdio.
53847         (configure.ac): Add module indicator.
53848         * modules/stdio (Makefile.am): Work with new indicators.
53849         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
53850         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
53851         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
53852         * lib/getdelim.h: Delete.
53853         * lib/getline.h: Delete.
53854         * lib/stdio_.h (getdelim, getline): Declare.
53855         * modules/getdelim-tests: New module.
53856         * modules/getline-tests: Likewise.
53857         * tests/test-getdelim.c: New file.
53858         * tests/test-getline.c: Likewise.
53859         * NEWS: Document the change.
53860         * lib/getline.c: Update choice of header.
53861         * lib/csharpcomp.c: Likewise.
53862         * lib/getpass.c: Likewise.
53863         * lib/javacomp.c: Likewise.
53864         * lib/javaversion.c: Likewise.
53865         * lib/yesno.c: Likewise.
53866         * lib/getdelim.c: Likewise.
53867         (getdelim): Set errno on failure, and avoid memory leak.
53868
53869 2007-08-19  Bruno Haible  <bruno@clisp.org>
53870
53871         * modules/closein (Depends-on): Add freadahead.
53872         * lib/closein.c: Include freadahead.h.
53873         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
53874         is zero.
53875
53876 2007-08-19  Bruno Haible  <bruno@clisp.org>
53877
53878         * modules/freadahead-tests: New file.
53879         * tests/test-freadahead.sh: New file.
53880         * tests/test-freadahead.c: New file.
53881
53882         * modules/freadahead: New file.
53883         * lib/freadahead.h: New file.
53884         * lib/freadahead.c: New file.
53885         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
53886         fbufmode, fpurge, freadable, fwritable.
53887
53888 2007-08-19  Eric Blake  <ebb9@byu.net>
53889
53890         Test yesno in combination with closein.
53891         * lib/yesno.c (yesno): Document use of stdin.
53892         * modules/yesno-tests (Files): New module.
53893         * tests/test-yesno.c (main): New file.
53894         * tests/test-yesno.sh: Likewise.
53895
53896 2007-08-19  Bruno Haible  <bruno@clisp.org>
53897
53898         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
53899         * lib/fseeko.c (rpl_fseeko): Likewise.
53900         * lib/fseterr.c (fseterr): Likewise.
53901
53902 2007-08-19  Bruno Haible  <bruno@clisp.org>
53903
53904         * tests/test-lseek.c (main): Disable a test for BeOS.
53905         * doc/functions/lseek.texi: Document the BeOS bug.
53906
53907 2007-08-19  Bruno Haible  <bruno@clisp.org>
53908             Eric Blake  <ebb9@byu.net>
53909
53910         * lib/lseek.c: Include <sys/stat.h>.
53911         (rpl_lseek): Add workaround code also for Unix platforms.
53912         Needed for BeOS.
53913         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
53914         * doc/functions/lseek.texi: Document BeOS definiency.
53915
53916 2007-08-18  Bruno Haible  <bruno@clisp.org>
53917
53918         * modules/fstrcmp-tests: New file.
53919         * tests/test-fstrcmp.c: New file.
53920
53921 2007-08-18  Bruno Haible  <bruno@clisp.org>
53922
53923         * modules/fstrcmp: New file, from GNU gettext with modifications.
53924         * lib/fstrcmp.h: New file, from GNU gettext.
53925         * lib/fstrcmp.c: New file, from GNU gettext.
53926         * MODULES.html.sh (String handling): Add fstrcmp.
53927
53928 2007-08-18  Bruno Haible  <bruno@clisp.org>
53929
53930         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
53931         'bool'.
53932         (diag, compareseq): Remove const from the ctxt argument.
53933         (USE_HEURISTIC): Undefine at the end.
53934
53935 2007-08-18  Jim Meyering  <jim@meyering.net>
53936
53937         New file: lib/idcache.h
53938         * NEWS: Mention the addition.
53939         * modules/idcache (Files): Add lib/idcache.h
53940         * lib/idcache.c: Include "idcache.h".
53941         Don't include <sys/types.h>.
53942         Add a FIXME comment.
53943         Move file-scoped "static" declarations to the top.
53944         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
53945
53946 2007-08-17  Bruno Haible  <bruno@clisp.org>
53947         and Paul Eggert  <eggert@cs.ucla.edu>
53948
53949         * MODULES.html.sh: Add diffseq.
53950         * modules/diffseq: New file.
53951         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
53952         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
53953
53954 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
53955
53956         Import changes from coreutils for bootstrap script.
53957
53958         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
53959
53960         * build-aux/bootstrap (slurp): Work even in environments where
53961         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
53962         current code does not slurp files whose names start with ".", and
53963         this looks like it might be a troublesome area.
53964
53965         2007-07-11  Jim Meyering  <jim@meyering.net>
53966
53967         If there's a GPL vN copyright comment, require that N == 3.
53968
53969         2007-07-08  Jim Meyering  <jim@meyering.net>
53970
53971         Run the coreutils-specific code only if tests/Makefile.am.in exists.
53972         * build-aux/bootstrap (mam_template): Move definition out of loop.
53973
53974         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
53975
53976         * build-aux/bootstrap (symlink_to_dir): Rename function from
53977         symlink_to_gnulib.  Add a directory parameter.  Update all
53978         callers.
53979         (cp_mark_as_generated): Also check for -- and link to -- files in
53980         gl/.
53981
53982         2007-07-08  Jim Meyering  <jim@meyering.net>
53983
53984         Adapt to deeper hierarchy in gnulib.
53985         * build-aux/bootstrap (symlink_to_dir): If the destination
53986         directory doesn't exist, create it. This is required at least for
53987         "lib/uniwidth/cjk.h".
53988
53989         2007-05-15  Jim Meyering  <jim@meyering.net>
53990
53991         * build-aux/bootstrap: Now that generated Makefile.am files
53992         are no longer under version control, they must be created at
53993         bootstrap time.
53994
53995 2007-08-14  Ben Pfaff  <blp@gnu.org>
53996
53997         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
53998
53999 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54000
54001         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
54002         given the changes below.
54003         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
54004         even on hosts that have padding bits beyond the supported 64.
54005
54006 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
54007
54008         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
54009         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
54010         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
54011         depends on it.
54012         (xstrtol_error): Remove.
54013         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
54014         but with a different signature.
54015         (ATTRIBUTE_NORETURN, __attribute__): New macros.
54016         * lib/xstrtol-error.c: Include exitfail.h.
54017         (xstrtol_fatal): New function, with a different signature from the
54018         old xstrtol_error, so that the caller need not worry about passing
54019         in an exit status, or about storage management of the option argument.
54020         (xstrtol_error): Now a static function.  Redo signature to
54021         implement xstrtol_fatal.  Output the correct number of hyphens in
54022         front of the option so that the caller need not worry about
54023         storage management.
54024         (N_): New macro.
54025         (_): Remove; not used now.
54026         * modules/xstrtol: Depend on getopt.
54027         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
54028         of old STRTOL_FATAL_ERROR macro.
54029         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
54030         of test program.
54031         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
54032         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
54033
54034 2007-08-08  Eric Blake  <ebb9@byu.net>
54035
54036         * lib/xstrtol-error.c: Add missing include.
54037
54038         Move xstrtol messages into gnulib domain, when --pobase is used.
54039         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
54040         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
54041         * modules/xstrtol (Files): Distribute new file.
54042         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
54043         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
54044         * tests/test-xstrtol.c: ...into new file.
54045         * tests/test-xstrtoul.c: Also test xstrtoul.
54046         * tests/test-xstrtoimax.c: Also test xstrtoimax.
54047         * tests/test-xstrtoumax.c: Also test xstrtoumax.
54048         * tests/test-xstrtol.sh: Drive the tests.
54049         * tests/test-xstrtoimax.sh: Likewise.
54050         * tests/test-xstrtoumax.sh: Likewise.
54051         * modules/xstrtol-tests: New module.
54052         * modules/xstrtoimax-tests: Likewise.
54053         * modules/xstrtoumax-tests: Likewise.
54054
54055 2007-08-08  Jim Meyering  <jim@meyering.net>
54056
54057         New function: mfile_name_concat.
54058         * lib/filenamecat.c (mfile_name_concat): New function, just like
54059         file_name_concat, but return NULL upon failure rather than exiting
54060         with a diagnostic.
54061         * lib/filenamecat.h: Declare it.
54062
54063 2007-08-07  Bruno Haible  <bruno@clisp.org>
54064
54065         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
54066         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
54067         warning from gcc.
54068         Reported by Eric Blake.
54069
54070 2007-08-07  Simon Josefsson  <simon@josefsson.org>
54071
54072         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
54073         * modules/crypto/arcfour (License): Likewise.
54074         * modules/crypto/des-tests (License): Likewise.
54075         * modules/crypto/gc-arctwo-tests (License): Likewise.
54076         * modules/crypto/gc-des-tests (License): Likewise.
54077         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
54078         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
54079         * modules/crypto/gc-md2-tests (License): Likewise.
54080         * modules/crypto/gc-md4-tests (License): Likewise.
54081         * modules/crypto/gc-md5-tests (License): Likewise.
54082         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
54083         * modules/crypto/gc-rijndael-tests (License): Likewise.
54084         * modules/crypto/gc-sha1-tests (License): Likewise.
54085         * modules/crypto/gc-tests (License): Likewise.
54086         * modules/crypto/hmac-md5 (License): Likewise.
54087         * modules/crypto/hmac-sha1 (License): Likewise.
54088         * modules/crypto/md2-tests (License): Likewise.
54089         * modules/crypto/md4-tests (License): Likewise.
54090         * modules/crypto/md5 (License): Likewise.
54091         * modules/crypto/rijndael (License): Likewise.
54092         * modules/crypto/sha1 (License): Likewise.
54093         * modules/memxor (License): Likewise.
54094
54095 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54096         and Bruno Haible  <bruno@clisp.org>
54097
54098         * NEWS: Describe interface changes to human, xstrtol.
54099         * lib/human.h: Include <xstrtol.h>.
54100         (human_options): Return enum strtol_error, not int.  Remove
54101         bool arg; take int * instead.
54102         * lib/human.c: Don't include "gettext.h".
54103         (_): Remove; no longer used.
54104         Don't include <xstrtol.h>, since human.h does it.
54105         (human_options): Adjust to abovementioned interface changes.
54106         Do not report error to stderr; that's now the caller's
54107         responsibility.
54108         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
54109         interface change.
54110         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
54111         Str, Argument_type_string.  All uses changed.  Put " argument"
54112         in diagnostics to make them clearer.  Change wording of suffix
54113         message for clarity.
54114         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
54115         Argument_type_string.
54116         (STRTOL_FATAL_WARN): Remove; no longer used.
54117         * modules/human (Depends-on): Remove gettext-h.
54118
54119 2007-08-06  Simon Josefsson  <simon@josefsson.org>
54120
54121         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
54122
54123 2007-07-31  Bruno Haible  <bruno@clisp.org>
54124
54125         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
54126         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
54127         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
54128
54129 2007-07-31  Bruno Haible  <bruno@clisp.org>
54130
54131         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
54132         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
54133
54134 2007-07-30  Bruno Haible  <bruno@clisp.org>
54135
54136         * modules/base64 (License): Use the synonymous term "LGPLv2+".
54137         * modules/c-ctype (License): Likewise.
54138         * modules/c-strcase (License): Likewise.
54139         * modules/check-version (License): Likewise.
54140         * modules/iconv (License): Likewise.
54141         * modules/iconv_open (License): Likewise.
54142         * modules/read-file (License): Likewise.
54143         * modules/striconv (License): Likewise.
54144         * modules/strverscmp (License): Likewise.
54145         * modules/vasprintf (License): Likewise.
54146         * modules/crypto/des (License): Likewise.
54147         * modules/crypto/gc (License): Likewise.
54148         * modules/crypto/gc-arcfour (License): Likewise.
54149         * modules/crypto/gc-arctwo (License): Likewise.
54150         * modules/crypto/gc-des (License): Likewise.
54151         * modules/crypto/gc-hmac-md5 (License): Likewise.
54152         * modules/crypto/gc-hmac-sha1 (License): Likewise.
54153         * modules/crypto/gc-md2 (License): Likewise.
54154         * modules/crypto/gc-md4 (License): Likewise.
54155         * modules/crypto/gc-md5 (License): Likewise.
54156         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
54157         * modules/crypto/gc-random (License): Likewise.
54158         * modules/crypto/gc-rijndael (License): Likewise.
54159         * modules/crypto/gc-sha1 (License): Likewise.
54160         * modules/crypto/md2 (License): Likewise.
54161         * modules/crypto/md4 (License): Likewise.
54162
54163 2007-07-30  Jim Meyering  <jim@meyering.net>
54164
54165         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
54166         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
54167         it has valid stat data.  This bug would cause du not to count the
54168         sizes of inaccessible directories.
54169         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
54170         in <http://bugzilla.redhat.com/250077>.
54171
54172 2007-07-25  Peter O'Gorman  <peter@pogma.com>
54173             Bruno Haible  <bruno@clisp.org>
54174
54175         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
54176         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
54177         #include_next, gives a diagnostic about it, but reports no error in
54178         the exit code.
54179         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
54180
54181 2007-07-24  Ben Pfaff  <blp@gnu.org>
54182
54183         Improve name: "count-one-bits" is better than "popcount".
54184         * MODULES.html.sh: Update name.
54185         * lib/popcount.h: Renamed lib/count-one-bits.h.
54186         (popcount): Renamed count_one_bits.
54187         (popcountl): Renamed count_one_bits_l.
54188         (popcountll): Renamed count_one_bits_ll.
54189         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
54190         * modules/popcount: Renamed module/count-one-bits.
54191         * modules/popcount-tests: Renamed module/count-one-bits-tests.
54192         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
54193
54194 2007-07-23  Ben Pfaff  <blp@gnu.org>
54195
54196         * lib/popcount.h (popcount32): Reduce size of constants, to allow
54197         better code generation, and add U to large constants to avoid
54198         warnings, in non-GCC case.
54199         Suggested by Bruno Haible.
54200
54201 2007-07-23  Ben Pfaff  <blp@gnu.org>
54202
54203         * lib/popcount.h: Use verify_true instead of if...abort.
54204         * modules/popcount: Depend on verify module.
54205         Suggested by Jim Meyering.
54206
54207 2007-07-23  Bruno Haible  <bruno@clisp.org>
54208
54209         * gnulib-tool (func_import): Create a .cvsignore file also when the
54210         directory is not yet in CVS but the toplevel directory is. When
54211         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
54212         Reported by Karl Berry.
54213
54214 2007-07-22  Ben Pfaff  <blp@gnu.org>
54215
54216         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
54217         case.
54218         Suggested by Eric Blake.
54219
54220 2007-07-22  Ben Pfaff  <blp@gnu.org>
54221
54222         New module: popcount.
54223         * MODULES.html.sh: Add popcount.
54224         * modules/popcount: New file.
54225         * modules/popcount-tests: New file.
54226         * tests/test-popcount.c: New file.
54227         * lib/popcount.h: New file.
54228         * m4/popcount.m4: New file.
54229
54230 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
54231
54232         * build-aux/announce-gen: Update to GPLv3.
54233
54234         * build-aux/config.guess: Update from config.
54235
54236 2007-07-21  Bruno Haible  <bruno@clisp.org>
54237
54238         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
54239         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
54240
54241 2007-07-20  Jim Meyering  <jim@meyering.net>
54242
54243         * check-module: Diagnose a self-dependency.
54244
54245 2007-07-19  Bruno Haible  <bruno@clisp.org>
54246
54247         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
54248         empty.
54249         Reported by Eric Blake.
54250
54251 2007-07-18  Bruno Haible  <bruno@clisp.org>
54252
54253         * gnulib-tool: New options --po-base, --po-domain.
54254         (func_usage): Document them.
54255         (pobase, po_domain): New variables.
54256         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
54257         DEFAULT_TEXT_DOMAIN.
54258         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
54259         (func_import): Consider pobase and po_domain. Create a po/ directory.
54260         (func_create_testdir): Set pobase and po_domain to empty.
54261         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
54262         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
54263
54264 2007-07-18  Bruno Haible  <bruno@clisp.org>
54265
54266         * gnulib-tool (func_get_automake_snippet): Synthesize also an
54267         EXTRA_DIST augmentation for files in build-aux/.
54268
54269 2007-07-16  Bruno Haible  <bruno@clisp.org>
54270
54271         * modules/lseek (License): Use the synonymous term "LGPLv2+".
54272         * modules/getdelim (License): Likewise.
54273
54274 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54275
54276         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
54277         * modules/d-type (License): Likewise.
54278         * modules/extensions (License): Likewise.
54279         * modules/fnmatch (License): Likewise.
54280         * modules/fseeko (License): Likewise.
54281         * modules/getaddrinfo (License): Likewise.
54282         * modules/getline (License): Likewise.
54283         * modules/getlogin_r (License): Likewise.
54284         * modules/getpass (License): Likewise.
54285         * modules/gettimeofday (License): Likewise.
54286         * modules/glob (License): Likewise.
54287         * modules/inet_ntop (License): Likewise.
54288         * modules/malloc (License): Likewise.
54289         * modules/malloca (License): Likewise.
54290         * modules/memmem (License): Likewise.
54291         * modules/mempcpy (License): Likewise.
54292         * modules/memset (License): Likewise.
54293         * modules/minmax (License): Likewise.
54294         * modules/mktime (License): Likewise.
54295         * modules/netinet_in (License): Likewise.
54296         * modules/pathmax (License): Likewise.
54297         * modules/poll (License): Likewise.
54298         * modules/regex (License): Likewise.
54299         * modules/snprintf (License): Likewise.
54300         * modules/stdbool (License): Likewise.
54301         * modules/stdint (License): Likewise.
54302         * modules/stdio (License): Likewise.
54303         * modules/strcase (License): Likewise.
54304         * modules/strcasestr (License): Likewise.
54305         * modules/strdup (License): Likewise.
54306         * modules/string (License): Likewise.
54307         * modules/strndup (License): Likewise.
54308         * modules/strnlen (License): Likewise.
54309         * modules/strpbrk (License): Likewise.
54310         * modules/strptime (License): Likewise.
54311         * modules/strsep (License): Likewise.
54312         * modules/sys_select (License): Likewise.
54313         * modules/sys_socket (License): Likewise.
54314         * modules/sys_stat (License): Likewise.
54315         * modules/sys_time (License): Likewise.
54316         * modules/time (License): Likewise.
54317         * modules/time_r (License): Likewise.
54318         * modules/timegm (License): Likewise.
54319         * modules/unistd (License): Likewise.
54320         * modules/vsnprintf (License): Likewise.
54321         * modules/wctype (License): Likewise.
54322
54323 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54324
54325         * modules/argz (License): LGPLv2+.
54326
54327 2007-07-15  Karl Berry  <karl@gnu.org>
54328
54329         * doc/gnulib.texi: revise node structure per new fdl.texi.
54330
54331 2007-07-14  Bruno Haible  <bruno@clisp.org>
54332
54333         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
54334         the output file.
54335         * lib/uniname/uninames.h: Regenerated.
54336
54337 2007-07-14  Karl Berry  <karl@gnu.org>
54338
54339         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
54340         omitting sectioning and index commands.
54341
54342 2007-07-13  Bruno Haible  <bruno@clisp.org>
54343
54344         New gnulib-tool option --more-symlinks.
54345         * gnulib-tool (func_usage): Document --more-symlinks.
54346         (do_copyrights): New variable.
54347         Recognize option --more-symlinks.
54348         (func_import): Don't add a copyright notice transform to
54349         sed_transform_lib_file if do_copyrights is empty.
54350
54351 2007-07-13  Bruno Haible  <bruno@clisp.org>
54352
54353         * lib/vasnprintf.c (decimal_point_char): Define also if
54354         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
54355         && !NEED_PRINTF_DIRECTIVE_A.
54356         Reported by Clemens Koller <clemens.koller@anagramm.de> via
54357         Gary V. Vaughan <gary@gnu.org>.
54358
54359 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
54360
54361         * lib/inttypes_.h: Undo previous change, since it was fixed
54362         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
54363
54364 2007-07-13  Bruno Haible  <bruno@clisp.org>
54365
54366         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
54367         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
54368
54369 2007-07-13  Jim Meyering  <jim@meyering.net>
54370
54371         df: Don't fail for Tru64's "file-on-file mount".
54372         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
54373         so we fall through and use statfs instead.  Details here:
54374         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
54375         Reported by Albert Chin.
54376
54377 2007-07-13  Bruno Haible  <bruno@clisp.org>
54378
54379         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
54380         * modules/configmake (License): Likewise.
54381         * modules/gettext (License): Likewise.
54382         * modules/gettext-h (License): Likewise.
54383         * modules/include_next (License): Likewise.
54384         * modules/link-warning (License): Likewise.
54385         * modules/localcharset (License): Likewise.
54386         * modules/localename (License): Likewise.
54387         * modules/lock (License): Likewise.
54388         * modules/relocatable-lib-lgpl (License): Likewise.
54389         * modules/size_max (License): Likewise.
54390         * modules/vasnprintf (License): Likewise.
54391         * modules/wchar (License): Likewise.
54392         * modules/xsize (License): Likewise.
54393
54394 2007-07-13  Bruno Haible  <bruno@clisp.org>
54395
54396         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
54397         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
54398
54399 2007-07-12  Bruno Haible  <bruno@clisp.org>
54400
54401         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
54402         in the modules files.
54403
54404 2007-07-11  Karl Berry  <karl@gnu.org>
54405
54406         * MODULES.html.sh (func_module): use
54407          sed -e '\|^'"${includefile}"'$|d'
54408          instead of /.../d, to avoid errors on $includefile's containing /.
54409
54410 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
54411
54412         * gnulib-tool (func_import): Avoid duplication of --avoid
54413         statements
54414         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
54415         names to `_' in variable names.
54416
54417 2007-07-10  Eric Blake  <ebb9@byu.net>
54418
54419         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
54420         * NEWS: Document this change.
54421
54422 2007-07-08  Bruno Haible  <bruno@clisp.org>
54423
54424         Update to Unicode 5.0.
54425         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
54426         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
54427         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
54428         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
54429         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
54430         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
54431         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
54432         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
54433         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
54434         U+10A3F, U+1D242..U+1D244.
54435         (nonspacing_table_ind): Update.
54436         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
54437         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
54438
54439 2007-07-08  Bruno Haible  <bruno@clisp.org>
54440
54441         Update to Unicode 5.0.
54442         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
54443         code transform. Extend the name index field of unicode_name_to_code and
54444         unicode_code_to_name from 16 to 24 bits.
54445         * lib/uniname/uniname.c (unicode_character_name,
54446         unicode_name_character): Add the range 0x12xxx to the code transform.
54447         * lib/uniname/uninames.h: Regenerated.
54448         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
54449
54450 2007-07-07  Bruno Haible  <bruno@clisp.org>
54451
54452         * modules/wcwidth-tests: New file.
54453         * tests/test-wcwidth.c: New file.
54454
54455         Work around MacOS X wcwidth() bug.
54456         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
54457         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
54458         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
54459         original wcwidth in non-UTF-8 locales.
54460         * modules/wcwidth (Depends-on): Add localcharset, streq,
54461         uniwidth/width.
54462         * doc/functions/wcwidth.texi: Update.
54463
54464 2007-07-07  Bruno Haible  <bruno@clisp.org>
54465
54466         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
54467         (wcwidth): New declaration.
54468         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
54469         macros.
54470         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
54471         here. Prepare for creating <wchar.h> unconditionally.
54472         * modules/wchar (Depends-on): Add link-warning.
54473         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
54474         REPLACE_WCWIDTH, and GL_LINK_WARNING.
54475         * lib/wcwidth.h: Remove file.
54476         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
54477         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
54478         * modules/wcwidth (Files): Remove lib/wcwidth.h.
54479         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
54480         (Include): Replace wcwidth.h with <wchar.h>.
54481         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
54482         * lib/mbchar.h: Don't include wcwidth.h.
54483         * lib/mbswidth.c: Likewise.
54484         * NEWS: Mention the change.
54485
54486 2007-07-07  Bruno Haible  <bruno@clisp.org>
54487
54488         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
54489         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
54490         definition with an external declaration.
54491         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
54492         defined as a function. Remove AC_C_INLINE requirement.
54493         * modules/wcwidth (Files): Add lib/wcwidth.c.
54494         (Makefile.am): Remove redundant statement.
54495
54496 2007-07-07  Bruno Haible  <bruno@clisp.org>
54497
54498         * MODULES.html.sh (Unicode string functions): Add the new modules.
54499
54500         * tests/uniwidth/test-u32-strwidth.c: New file.
54501         * modules/uniwidth/u32-strwidth-tests: New file.
54502
54503         * lib/uniwidth/u32-strwidth.c: New file.
54504         * modules/uniwidth/u32-strwidth: New file.
54505
54506         * tests/uniwidth/test-u16-strwidth.c: New file.
54507         * modules/uniwidth/u16-strwidth-tests: New file.
54508
54509         * lib/uniwidth/u16-strwidth.c: New file.
54510         * modules/uniwidth/u16-strwidth: New file.
54511
54512         * tests/uniwidth/test-u8-strwidth.c: New file.
54513         * modules/uniwidth/u8-strwidth-tests: New file.
54514
54515         * lib/uniwidth/u8-strwidth.c: New file.
54516         * modules/uniwidth/u8-strwidth: New file.
54517
54518         * tests/uniwidth/test-u32-width.c: New file.
54519         * modules/uniwidth/u32-width-tests: New file.
54520
54521         * lib/uniwidth/u32-width.c: New file.
54522         * modules/uniwidth/u32-width: New file.
54523
54524         * tests/uniwidth/test-u16-width.c: New file.
54525         * modules/uniwidth/u16-width-tests: New file.
54526
54527         * lib/uniwidth/u16-width.c: New file.
54528         * modules/uniwidth/u16-width: New file.
54529
54530         * tests/uniwidth/test-u8-width.c: New file.
54531         * modules/uniwidth/u8-width-tests: New file.
54532
54533         * lib/uniwidth/u8-width.c: New file.
54534         * modules/uniwidth/u8-width: New file.
54535
54536         * tests/uniwidth/test-uc_width.c: New file.
54537         * modules/uniwidth/width-tests: New file.
54538
54539         * lib/uniwidth/width.c: New file, from GNU libiconv.
54540         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
54541         * modules/uniwidth/width: New file.
54542
54543         * lib/uniwidth.h: New file, from GNU libiconv.
54544         * modules/uniwidth/base: New file.
54545
54546 2007-07-07  Bruno Haible  <bruno@clisp.org>
54547
54548         * lib/uniname.h: New file, from GNU gettext.
54549         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
54550         * lib/uniname/uninames.h: New file, from GNU gettext.
54551         * lib/uniname/uniname.c: New file, from GNU gettext.
54552         * tests/uniname/test-uninames.sh: New file.
54553         * tests/uniname/test-uninames.c: New file, from GNU gettext.
54554         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
54555         * modules/uniname/base: New file.
54556         * modules/uniname/uniname: New file.
54557         * modules/uniname/uniname-tests: New file.
54558         * MODULES.html.sh (Unicode string functions): Add the new modules.
54559
54560 2007-07-06  Bruno Haible  <bruno@clisp.org>
54561
54562         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
54563
54564 2007-07-06  Bruno Haible  <bruno@clisp.org>
54565
54566         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
54567         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
54568         includes <cygwin/sys_time.h> which includes <sys/select.h> which
54569         include <sys/time.h>.
54570         Reported by Eric Blake.
54571
54572 2007-07-06  Eric Blake  <ebb9@byu.net>
54573
54574         Fix testing canonicalize on cygwin.
54575         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
54576         Revert patch from 2007-06-19.
54577         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
54578         canonicalize module is also in use.
54579         * tests/test-canonicalize.c: New file.
54580         * tests/test-canonicalize.sh: Likewise.
54581         * modules/canonicalize-tests: Likewise.
54582
54583 2007-07-06  Jim Meyering  <jim@meyering.net>
54584
54585         * lib/getugroups.c (getugroups): Detect getgrent failure.
54586         Adjust comment to reflect reality: this function may return -1.
54587
54588 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
54589
54590         * build-aux/bootstrap (TP_URL,get_translations): Update to use
54591         the new TP address.
54592         (usage): Fix typo
54593         (gnulib_mk): New variable.
54594
54595 2007-07-05  Jim Meyering  <jim@meyering.net>
54596
54597         Don't let endgrent clobber errno, no matter how improbable.
54598         * lib/getugroups.c (getugroups): Save and restore errno around
54599         endgrent call.
54600
54601         Close the group DB even when failing with 2^31 or more members.
54602         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
54603
54604 2007-07-04  Jim Meyering  <jim@meyering.net>
54605
54606         * lib/getugroups.h: New file.
54607         * lib/getugroups.c: Include "getugroups.h".
54608         Remove uses of "register" keyword.
54609         Move local variable, "cp", down into scope where used.
54610         Give "username" parameter the "const" attribute.
54611         * modules/getugroups (Files): Add lib/getugroups.h
54612
54613 2007-07-04  Karl Berry  <karl@gnu.org>
54614
54615         * MODULES.html.sh (func_all_modules): Complete rename of
54616         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
54617
54618 2007-07-02  Bruno Haible  <bruno@clisp.org>
54619
54620         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
54621         mode, when inttypes.h comes from gnulib.
54622         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54623
54624 2007-07-02  Simon Josefsson  <simon@josefsson.org>
54625
54626         * NEWS: Mention lgpl module name change.
54627
54628         * modules/lgpl-2.1: Renamed from lgpl.
54629
54630         * NEWS: Mention gpl module name change.
54631
54632         * modules/gpl-3.0: New file, based on gpl-2.0.
54633
54634         * modules/gpl-2.0: Renamed from gpl.
54635
54636         * modules/gpl: Fix filename, doc/gpl.texi is now found at
54637         doc/gpl-2.0.texi.
54638
54639 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
54640
54641         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
54642         #define __STDC_LIMIT_MACROS temporarily while including
54643         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
54644         Problem reported by Joel E. Denny in
54645         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
54646
54647 2007-07-01  Bruno Haible  <bruno@clisp.org>
54648
54649         * lib/unistdio.h: New file.
54650         * lib/unistdio/u-asnprintf.h: New file.
54651         * lib/unistdio/u-asprintf.h: New file.
54652         * lib/unistdio/u-printf-args.c: New file.
54653         * lib/unistdio/u-printf-args.h: New file.
54654         * lib/unistdio/u-printf-parse.h: New file.
54655         * lib/unistdio/u-snprintf.h: New file.
54656         * lib/unistdio/u-sprintf.h: New file.
54657         * lib/unistdio/u-vasprintf.h: New file.
54658         * lib/unistdio/u-vsnprintf.h: New file.
54659         * lib/unistdio/u-vsprintf.h: New file.
54660         * lib/unistdio/ulc-asnprintf.c: New file.
54661         * lib/unistdio/ulc-asprintf.c: New file.
54662         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
54663         * lib/unistdio/ulc-printf-parse.c: New file.
54664         * lib/unistdio/ulc-snprintf.c: New file.
54665         * lib/unistdio/ulc-sprintf.c: New file.
54666         * lib/unistdio/ulc-vasnprintf.c: New file.
54667         * lib/unistdio/ulc-vasprintf.c: New file.
54668         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
54669         * lib/unistdio/ulc-vsnprintf.c: New file.
54670         * lib/unistdio/ulc-vsprintf.c: New file.
54671         * lib/unistdio/u8-asnprintf.c: New file.
54672         * lib/unistdio/u8-asprintf.c: New file.
54673         * lib/unistdio/u8-printf-parse.c: New file.
54674         * lib/unistdio/u8-snprintf.c: New file.
54675         * lib/unistdio/u8-sprintf.c: New file.
54676         * lib/unistdio/u8-vasnprintf.c: New file.
54677         * lib/unistdio/u8-vasprintf.c: New file.
54678         * lib/unistdio/u8-vsnprintf.c: New file.
54679         * lib/unistdio/u8-vsprintf.c: New file.
54680         * lib/unistdio/u8-u8-asnprintf.c: New file.
54681         * lib/unistdio/u8-u8-asprintf.c: New file.
54682         * lib/unistdio/u8-u8-snprintf.c: New file.
54683         * lib/unistdio/u8-u8-sprintf.c: New file.
54684         * lib/unistdio/u8-u8-vasnprintf.c: New file.
54685         * lib/unistdio/u8-u8-vasprintf.c: New file.
54686         * lib/unistdio/u8-u8-vsnprintf.c: New file.
54687         * lib/unistdio/u8-u8-vsprintf.c: New file.
54688         * lib/unistdio/u16-asnprintf.c: New file.
54689         * lib/unistdio/u16-asprintf.c: New file.
54690         * lib/unistdio/u16-printf-parse.c: New file.
54691         * lib/unistdio/u16-snprintf.c: New file.
54692         * lib/unistdio/u16-sprintf.c: New file.
54693         * lib/unistdio/u16-vasnprintf.c: New file.
54694         * lib/unistdio/u16-vasprintf.c: New file.
54695         * lib/unistdio/u16-vsnprintf.c: New file.
54696         * lib/unistdio/u16-vsprintf.c: New file.
54697         * lib/unistdio/u16-u16-asnprintf.c: New file.
54698         * lib/unistdio/u16-u16-asprintf.c: New file.
54699         * lib/unistdio/u16-u16-snprintf.c: New file.
54700         * lib/unistdio/u16-u16-sprintf.c: New file.
54701         * lib/unistdio/u16-u16-vasnprintf.c: New file.
54702         * lib/unistdio/u16-u16-vasprintf.c: New file.
54703         * lib/unistdio/u16-u16-vsnprintf.c: New file.
54704         * lib/unistdio/u16-u16-vsprintf.c: New file.
54705         * lib/unistdio/u32-asnprintf.c: New file.
54706         * lib/unistdio/u32-asprintf.c: New file.
54707         * lib/unistdio/u32-printf-parse.c: New file.
54708         * lib/unistdio/u32-snprintf.c: New file.
54709         * lib/unistdio/u32-sprintf.c: New file.
54710         * lib/unistdio/u32-vasnprintf.c: New file.
54711         * lib/unistdio/u32-vasprintf.c: New file.
54712         * lib/unistdio/u32-vsnprintf.c: New file.
54713         * lib/unistdio/u32-vsprintf.c: New file.
54714         * lib/unistdio/u32-u32-asnprintf.c: New file.
54715         * lib/unistdio/u32-u32-asprintf.c: New file.
54716         * lib/unistdio/u32-u32-snprintf.c: New file.
54717         * lib/unistdio/u32-u32-sprintf.c: New file.
54718         * lib/unistdio/u32-u32-vasnprintf.c: New file.
54719         * lib/unistdio/u32-u32-vasprintf.c: New file.
54720         * lib/unistdio/u32-u32-vsnprintf.c: New file.
54721         * lib/unistdio/u32-u32-vsprintf.c: New file.
54722         * tests/unistdio/test-ulc-asnprintf1.c: New file.
54723         * tests/unistdio/test-ulc-asnprintf1.h: New file.
54724         * tests/unistdio/test-ulc-printf1.h: New file.
54725         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
54726         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
54727         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
54728         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
54729         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
54730         * tests/unistdio/test-ulc-vasprintf1.c: New file.
54731         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
54732         * tests/unistdio/test-ulc-vsprintf1.c: New file.
54733         * tests/unistdio/test-u8-asnprintf1.c: New file.
54734         * tests/unistdio/test-u8-asnprintf1.h: New file.
54735         * tests/unistdio/test-u8-printf1.h: New file.
54736         * tests/unistdio/test-u8-vasnprintf1.c: New file.
54737         * tests/unistdio/test-u8-vasnprintf2.c: New file.
54738         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
54739         * tests/unistdio/test-u8-vasnprintf3.c: New file.
54740         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
54741         * tests/unistdio/test-u8-vasprintf1.c: New file.
54742         * tests/unistdio/test-u8-vsnprintf1.c: New file.
54743         * tests/unistdio/test-u8-vsprintf1.c: New file.
54744         * tests/unistdio/test-u16-asnprintf1.c: New file.
54745         * tests/unistdio/test-u16-asnprintf1.h: New file.
54746         * tests/unistdio/test-u16-printf1.h: New file.
54747         * tests/unistdio/test-u16-vasnprintf1.c: New file.
54748         * tests/unistdio/test-u16-vasnprintf2.c: New file.
54749         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
54750         * tests/unistdio/test-u16-vasnprintf3.c: New file.
54751         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
54752         * tests/unistdio/test-u16-vasprintf1.c: New file.
54753         * tests/unistdio/test-u16-vsnprintf1.c: New file.
54754         * tests/unistdio/test-u16-vsprintf1.c: New file.
54755         * tests/unistdio/test-u32-asnprintf1.c: New file.
54756         * tests/unistdio/test-u32-asnprintf1.h: New file.
54757         * tests/unistdio/test-u32-printf1.h: New file.
54758         * tests/unistdio/test-u32-vasnprintf1.c: New file.
54759         * tests/unistdio/test-u32-vasnprintf2.c: New file.
54760         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
54761         * tests/unistdio/test-u32-vasnprintf3.c: New file.
54762         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
54763         * tests/unistdio/test-u32-vasprintf1.c: New file.
54764         * tests/unistdio/test-u32-vsnprintf1.c: New file.
54765         * tests/unistdio/test-u32-vsprintf1.c: New file.
54766         * modules/unistdio/base: New file.
54767         * modules/unistdio/u-printf-args: New file.
54768         * modules/unistdio/ulc-asnprintf: New file.
54769         * modules/unistdio/ulc-asprintf: New file.
54770         * modules/unistdio/ulc-fprintf: New file.
54771         * modules/unistdio/ulc-printf-parse: New file.
54772         * modules/unistdio/ulc-snprintf: New file.
54773         * modules/unistdio/ulc-sprintf: New file.
54774         * modules/unistdio/ulc-vasnprintf: New file.
54775         * modules/unistdio/ulc-vasprintf: New file.
54776         * modules/unistdio/ulc-vfprintf: New file.
54777         * modules/unistdio/ulc-vsnprintf: New file.
54778         * modules/unistdio/ulc-vsprintf: New file.
54779         * modules/unistdio/u8-asnprintf: New file.
54780         * modules/unistdio/u8-asprintf: New file.
54781         * modules/unistdio/u8-printf-parse: New file.
54782         * modules/unistdio/u8-snprintf: New file.
54783         * modules/unistdio/u8-sprintf: New file.
54784         * modules/unistdio/u8-vasnprintf: New file.
54785         * modules/unistdio/u8-vasprintf: New file.
54786         * modules/unistdio/u8-vsnprintf: New file.
54787         * modules/unistdio/u8-vsprintf: New file.
54788         * modules/unistdio/u8-u8-asnprintf: New file.
54789         * modules/unistdio/u8-u8-asprintf: New file.
54790         * modules/unistdio/u8-u8-snprintf: New file.
54791         * modules/unistdio/u8-u8-sprintf: New file.
54792         * modules/unistdio/u8-u8-vasnprintf: New file.
54793         * modules/unistdio/u8-u8-vasprintf: New file.
54794         * modules/unistdio/u8-u8-vsnprintf: New file.
54795         * modules/unistdio/u8-u8-vsprintf: New file.
54796         * modules/unistdio/u16-asnprintf: New file.
54797         * modules/unistdio/u16-asprintf: New file.
54798         * modules/unistdio/u16-printf-parse: New file.
54799         * modules/unistdio/u16-snprintf: New file.
54800         * modules/unistdio/u16-sprintf: New file.
54801         * modules/unistdio/u16-vasnprintf: New file.
54802         * modules/unistdio/u16-vasprintf: New file.
54803         * modules/unistdio/u16-vsnprintf: New file.
54804         * modules/unistdio/u16-vsprintf: New file.
54805         * modules/unistdio/u16-u16-asnprintf: New file.
54806         * modules/unistdio/u16-u16-asprintf: New file.
54807         * modules/unistdio/u16-u16-snprintf: New file.
54808         * modules/unistdio/u16-u16-sprintf: New file.
54809         * modules/unistdio/u16-u16-vasnprintf: New file.
54810         * modules/unistdio/u16-u16-vasprintf: New file.
54811         * modules/unistdio/u16-u16-vsnprintf: New file.
54812         * modules/unistdio/u16-u16-vsprintf: New file.
54813         * modules/unistdio/u32-asnprintf: New file.
54814         * modules/unistdio/u32-asprintf: New file.
54815         * modules/unistdio/u32-printf-parse: New file.
54816         * modules/unistdio/u32-snprintf: New file.
54817         * modules/unistdio/u32-sprintf: New file.
54818         * modules/unistdio/u32-vasnprintf: New file.
54819         * modules/unistdio/u32-vasprintf: New file.
54820         * modules/unistdio/u32-vsnprintf: New file.
54821         * modules/unistdio/u32-vsprintf: New file.
54822         * modules/unistdio/u32-u32-asnprintf: New file.
54823         * modules/unistdio/u32-u32-asprintf: New file.
54824         * modules/unistdio/u32-u32-snprintf: New file.
54825         * modules/unistdio/u32-u32-sprintf: New file.
54826         * modules/unistdio/u32-u32-vasnprintf: New file.
54827         * modules/unistdio/u32-u32-vasprintf: New file.
54828         * modules/unistdio/u32-u32-vsnprintf: New file.
54829         * modules/unistdio/u32-u32-vsprintf: New file.
54830         * modules/unistdio/ulc-asnprintf-tests: New file.
54831         * modules/unistdio/ulc-vasnprintf-tests: New file.
54832         * modules/unistdio/ulc-vasprintf-tests: New file.
54833         * modules/unistdio/ulc-vsnprintf-tests: New file.
54834         * modules/unistdio/ulc-vsprintf-tests: New file.
54835         * modules/unistdio/u8-asnprintf-tests: New file.
54836         * modules/unistdio/u8-vasnprintf-tests: New file.
54837         * modules/unistdio/u8-vasprintf-tests: New file.
54838         * modules/unistdio/u8-vsnprintf-tests: New file.
54839         * modules/unistdio/u8-vsprintf-tests: New file.
54840         * modules/unistdio/u16-asnprintf-tests: New file.
54841         * modules/unistdio/u16-vasnprintf-tests: New file.
54842         * modules/unistdio/u16-vasprintf-tests: New file.
54843         * modules/unistdio/u16-vsnprintf-tests: New file.
54844         * modules/unistdio/u16-vsprintf-tests: New file.
54845         * modules/unistdio/u32-asnprintf-tests: New file.
54846         * modules/unistdio/u32-vasnprintf-tests: New file.
54847         * modules/unistdio/u32-vasprintf-tests: New file.
54848         * modules/unistdio/u32-vsnprintf-tests: New file.
54849         * modules/unistdio/u32-vsprintf-tests: New file.
54850         * MODULES.html.sh (Unicode string functions): Add the new modules.
54851
54852 2007-07-01  Bruno Haible  <bruno@clisp.org>
54853
54854         * lib/sprintf.c (sprintf): Limit the available length estimation,
54855         to avoid address wraparound.
54856         * lib/vsprintf.c (vsprintf): Likewise.
54857         * modules/sprintf-posix (Dependencies): Add stdint.
54858         * modules/vsprintf-posix (Dependencies): Likewise.
54859
54860 2007-07-01  Bruno Haible  <bruno@clisp.org>
54861
54862         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
54863         Windows PATH as well. Conservative double-quoting. Comments.
54864
54865 2007-07-01  Bruno Haible  <bruno@clisp.org>
54866             Eric Blake  <ebb9@byu.net>
54867             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54868
54869         * gnulib-tool (self_abspathname): Fix algorithm to cope with
54870         empty components in $PATH, denoting '.'.
54871
54872 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54873
54874         * gnulib-tool: Fix indentation.
54875         (func_create_megatestdir): Likewise.
54876         Report by Bruno Haible.
54877
54878 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54879
54880         Sync from Automake.
54881         * build-aux/gnupload: Fix shell portability issues with for loops.
54882         Report by Karl Berry.
54883
54884 2007-06-29  Simon Josefsson  <simon@josefsson.org>
54885
54886         * build-aux/maint.mk (POURL): Use translationproject.org.
54887
54888 2007-06-27  Simon Josefsson  <simon@josefsson.org>
54889             Bruno Haible  <bruno@clisp.org>
54890
54891         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
54892         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
54893         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
54894         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
54895         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
54896
54897 2007-06-27  Bruno Haible  <bruno@clisp.org>
54898
54899         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
54900         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
54901
54902 2007-06-26  Karl Berry  <karl@gnu.org>
54903
54904         * MODULES.html.sh: remove xreadlink-with-size.
54905
54906 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
54907
54908         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
54909         method that I hope also handles the double-include problem noted
54910         by Bruno Haible in
54911         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
54912
54913 2007-06-23  Bruno Haible  <bruno@clisp.org>
54914
54915         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54916         Don't let the 'mostlyclean' target fail if the last subdirectory could
54917         not be removed.
54918         Reported by Karl Berry.
54919
54920 2007-06-23  Bruno Haible  <bruno@clisp.org>
54921
54922         * gnulib-tool (echo): Add a speedier workaround for ksh.
54923         * tests/test-echo.sh: Likewise.
54924
54925 2007-06-23  Bruno Haible  <bruno@clisp.org>
54926
54927         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
54928         * tests/test-echo.sh: Likewise.
54929
54930 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54931
54932         * gnulib-tool (IFS): Initialize early, so we don't set it to
54933         empty later.
54934         (self_abspathname): Rewrite algorithm to set it, reindent.
54935         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
54936         (func_create_megatestdir): Merge some sed scripts.
54937
54938 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
54939
54940         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
54941         exposed by Sun Studio 11 cc on Solaris 8.
54942
54943 2007-06-22  Bruno Haible  <bruno@clisp.org>
54944
54945         * gnulib-tool (echo): Ensure the echo primitive does not interpret
54946         backslashes.
54947         * tests/test-echo.sh: New file.
54948
54949 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54950
54951         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
54952         simplify `sed_replace_build_aux' scripts, they are portable but
54953         echoing them with `echo' is not.
54954         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
54955
54956 2007-06-21  Karl Berry  <karl@gnu.org>
54957
54958         * config/srclist.txt: guess we can't handle the licenses via
54959         srclist at the moment.
54960
54961 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
54962
54963         * MODULES.html.sh: Add include_next.
54964         * modules/include_next: New file.
54965
54966 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
54967
54968         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
54969         INCLUDE_NEXT.
54970         (gl_CHECK_NEXT_HEADERS): New macro.
54971         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
54972         the obsolescent gl_ABSOLUTE_HEADER.
54973         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
54974         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
54975         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
54976         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
54977         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
54978         * m4/math_h.m4 (gl_MATH_H): Likewise.
54979         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
54980         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
54981         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
54982         * m4/stdint.m4 (gl_STDINT_H): Likewise.
54983         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
54984         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
54985         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
54986         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54987         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
54988         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
54989         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
54990         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
54991         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
54992         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
54993         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
54994         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
54995         * m4/inttypes.m4 (gl_INTTYPES_H): Define
54996         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
54997         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
54998         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
54999         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
55000         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
55001         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
55002         * lib/float_.h: Likewise.
55003         * lib/inttypes_.h: Likewise.
55004         * lib/math_.h: Likewise.
55005         * lib/search_.h: Likewise.
55006         * lib/signal_.h: Likewise.
55007         * lib/stdint_.h: Likewise.
55008         * lib/stdio_.h: Likewise.
55009         * lib/stdlib_.h: Likewise.
55010         * lib/string_.h: Likewise.
55011         * lib/sys_stat_.h: Likewise.
55012         * lib/sys_time_.h: Likewise.
55013         * lib/time_.h: Likewise.
55014         * lib/unistd_.h: Likewise.
55015         * lib/wchar_.h: Likewise.
55016         * lib/wctype_.h: Likewise.
55017         * lib/dirent_.h: Likewise.
55018         * lib/iconv_.h: Likewise.
55019         * lib/locale_.h: Likewise.
55020         * lib/netinet_in_.h: Likewise.
55021         * lib/sys_select_.h: Likewise.
55022         * lib/sys_socket_.h: Likewise.
55023         * lib/sysexits_.h: Likewise.
55024         * modules/fcntl (Depends-on): Depend on include_next, not
55025         absolute_header.
55026         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
55027         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
55028         * modules/fchdir: Likewise.
55029         * modules/float: Likewise.
55030         * modules/iconv_open: Likewise.
55031         * modules/inttypes: Likewise.
55032         * modules/locale: Likewise.
55033         * modules/math: Likewise.
55034         * modules/netinet_in: Likewise.
55035         * modules/search: Likewise.
55036         * modules/signal: Likewise.
55037         * modules/stdint: Likewise.
55038         * modules/stdio: Likewise.
55039         * modules/stdlib: Likewise.
55040         * modules/string: Likewise.
55041         * modules/sys_select: Likewise.
55042         * modules/sys_socket: Likewise.
55043         * modules/sys_stat: Likewise.
55044         * modules/sys_time: Likewise.
55045         * modules/sysexits: Likewise.
55046         * modules/time: Likewise.
55047         * modules/unistd: Likewise.
55048         * modules/wchar: Likewise.
55049         * modules/wctype: Likewise.
55050         * modules/sys_stat: Change maintainer to "all".
55051         * modules/unistd: Likewise.
55052
55053 2007-06-20  Karl Berry  <karl@gnu.org>
55054
55055         * config/srclist.txt: track www changes in license files.
55056
55057 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
55058
55059         * build-aux/bootstrap: Remove stray dot.
55060         Make sure build_aux settings are honored when linking
55061         gnulib_extra_files.
55062
55063 2007-06-19  Eric Blake  <ebb9@byu.net>
55064
55065         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
55066         Allow compilation on cygwin.
55067
55068 2007-06-19  Jim Meyering  <jim@meyering.net>
55069
55070         xreadlink-with-size: Remove module.  No longer used.
55071         Ex-callers now use xreadlink or mreadlink-with-size.
55072         * modules/xreadlink-with-size: Remove module.
55073         * lib/xreadlink-with-size.c: Remove file.
55074         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
55075         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
55076         just before the function definition *is* accurate.
55077
55078         Eliminate one way canonicalize_filename_mode could exit.
55079         * lib/canonicalize.c (canonicalize_filename_mode):
55080         Use mreadlink_with_size, not xreadlink_with_size.
55081
55082 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
55083
55084         Detect porting problems to FreeBSD/arm, which has time_t wider than
55085         long int.  Original problem reported for GNU diff by Xin Li in
55086         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
55087         * modules/getdate (Depends-on): Add intprops, verify.
55088         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
55089         is an integer type no wider than long int.
55090
55091 2007-06-18  Jim Meyering  <jim@meyering.net>
55092
55093         New module: mreadlink-with-size.
55094         * MODULES.html.sh: Add mreadlink-with-size.
55095         * modules/mreadlink-with-size: New module
55096         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
55097         not xreadlink-with-size.
55098         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
55099
55100 2007-06-16  Bruno Haible  <bruno@clisp.org>
55101
55102         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
55103         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
55104         Reported by Gary V. Vaughan <gary@gnu.org>.
55105
55106 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
55107
55108         Revamp lchown so that it lives in unistd.h where it belongs.
55109         * lib/lchown.h: Remove.
55110         * lib/dirchownmod.c: Don't include lib/lchown.h.
55111         * lib/fchownat.c: Likewise.
55112         * lib/openat.c: Likewise.
55113         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
55114         does not follow symlinks.
55115         (EOPNOTSUPP): Define if not defined.
55116         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
55117         is defined to 0.
55118         (lchown): New decl.
55119         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
55120         Do not check for lchown decl.
55121         Set REPLACE_LCHOWN.
55122         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
55123         REPLACE_LCHOWN.
55124         * modules/chown: Make it clear it follows symlinks.
55125         * modules/lchown: Make it clear it doesn't follow symlinks.
55126         (Files): Remove lib/lchown.h
55127         (Depends-on): Add unistd.
55128         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
55129         (Include): Include <unistd.h>, not "lchown.h".
55130         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
55131         REPLACE_LCHOWN.
55132
55133 2007-06-15  Jim Meyering  <jim@meyering.net>
55134
55135         Change license (GPL to LGPL) of fsusage and dependents.
55136         * modules/fsusage (License): Change to LGPL.
55137         * modules/full-read (License): Likewise.
55138         * modules/full-write (License): Likewise.
55139         * modules/safe-read (License): Likewise.
55140         * modules/safe-write (License): Likewise.
55141
55142 2007-06-14  Ben Pfaff  <blp@gnu.org>
55143
55144         Missing part of allocsa -> malloca transition.
55145         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
55146         gl_MALLOCA.
55147
55148 2007-06-12  Bruno Haible  <bruno@clisp.org>
55149
55150         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
55151         to ia64, x86_64, i386.
55152         Reported by Eric Blake.
55153
55154 2007-06-12  Bruno Haible  <bruno@clisp.org>
55155
55156         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
55157         cross-compiling to x86_64.
55158
55159 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
55160
55161         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
55162         glitch reported by Ralf Wildenhues in
55163         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
55164
55165         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
55166         Vin Shelton.
55167
55168 2007-06-11  Bruno Haible  <bruno@clisp.org>
55169
55170         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
55171         replacement string.
55172         Reported by Eric Blake.
55173
55174 2007-06-10  Bruno Haible  <bruno@clisp.org>
55175
55176         Prepare vasnprintf code for use with Unicode strings.
55177         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
55178         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
55179         TYPE_U32_STRING.
55180         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
55181         a_u32_string variants.
55182         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
55183         * lib/printf-args.c: Don't include config.h and the specification
55184         header if PRINTF_FETCHARGS is already defined.
55185         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
55186         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
55187         TYPE_U16_STRING, TYPE_U32_STRING.
55188         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
55189         u16_directive, u16_directives, u32_directive, u32_directives): New
55190         types.
55191         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
55192         New declarations.
55193         * lib/printf-parse.c: Don't include config.h and the specification
55194         header if PRINTF_PARSE is already defined. Eliminate the set of
55195         parameters for WIDE_CHAR_VERSION; the user of this file must provide
55196         them now. Include c-ctype.h.
55197         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
55198         directive and CHAR_T_ONLY_ASCII.
55199         * lib/vasnprintf.c: Don't include config.h and the specification header
55200         if VASNPRINTF is already defined.
55201         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
55202         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
55203         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
55204         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
55205         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
55206         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
55207         code accordingly.
55208         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
55209         pad_ourselves also in this case, with the 'c' and 's' directives, and
55210         with a different notion of "width".
55211         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
55212
55213 2007-06-10  Bruno Haible  <bruno@clisp.org>
55214
55215         * modules/unistr/u32-mbsnlen: New file.
55216         * lib/unistr/u32-mbsnlen.c: New file.
55217
55218         * modules/unistr/u16-mbsnlen: New file.
55219         * lib/unistr/u16-mbsnlen.c: New file.
55220
55221         * modules/unistr/u8-mbsnlen: New file.
55222         * lib/unistr/u8-mbsnlen.c: New file.
55223
55224         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
55225         declarations.
55226
55227 2007-06-10  Bruno Haible  <bruno@clisp.org>
55228
55229         * lib/string_.h (mbsnlen): New declaration.
55230         * lib/mbsnlen.c: New file.
55231         * m4/mbsnlen.m4: New file.
55232         * modules/mbsnlen: New file.
55233         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
55234         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
55235         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
55236
55237 2007-06-10  Bruno Haible  <bruno@clisp.org>
55238
55239         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
55240
55241 2007-06-10  Bruno Haible  <bruno@clisp.org>
55242
55243         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
55244         * lib/mbuiter.h: Likewise.
55245
55246 2007-06-10  Bruno Haible  <bruno@clisp.org>
55247
55248         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
55249         declaration.
55250
55251 2007-06-10  Karl Berry  <karl@gnu.org>
55252
55253         * config/srclist.txt: remove gettext entries, Bruno prefers
55254         to update individually.
55255
55256 2007-06-10  Bruno Haible  <bruno@clisp.org>
55257
55258         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
55259         'maxlen'. Ensure only length + width bytes are allocated, not
55260         length + 1 + width.
55261
55262 2007-06-09  Bruno Haible  <bruno@clisp.org>
55263
55264         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
55265         (CHAR_T): Remove macro.
55266         (VASNPRINTF): Update.
55267
55268 2007-06-09  Bruno Haible  <bruno@clisp.org>
55269
55270         * MODULES.html.sh (Unicode string functions): Add the new modules.
55271
55272         * modules/uniconv/u32-conv-to-enc: New file.
55273         * lib/uniconv/u32-conv-to-enc.c: New file.
55274         * modules/uniconv/u32-conv-to-enc-tests: New file.
55275         * tests/uniconv/test-u32-conv-to-enc.c: New file.
55276
55277         * modules/uniconv/u16-conv-to-enc: New file.
55278         * lib/uniconv/u16-conv-to-enc.c: New file.
55279         * lib/uniconv/u-conv-to-enc.h: New file.
55280         * modules/uniconv/u16-conv-to-enc-tests: New file.
55281         * tests/uniconv/test-u16-conv-to-enc.c: New file.
55282
55283         * modules/uniconv/u8-conv-to-enc: New file.
55284         * lib/uniconv/u8-conv-to-enc.c: New file.
55285         * modules/uniconv/u8-conv-to-enc-tests: New file.
55286         * tests/uniconv/test-u8-conv-to-enc.c: New file.
55287
55288         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
55289         u32_conv_to_encoding): New declarations.
55290
55291 2007-06-09  Bruno Haible  <bruno@clisp.org>
55292
55293         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
55294
55295 2007-06-09  Bruno Haible  <bruno@clisp.org>
55296
55297         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
55298         * modules/malloca: Renamed from modules/allocsa, updated.
55299         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
55300         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
55301         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
55302         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
55303         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
55304         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
55305         * modules/xmalloca: Renamed from modules/xallocsa, updated.
55306         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
55307         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
55308         * modules/c-strcasestr (Depends-on): Update.
55309         * lib/c-strcasestr.c: Update.
55310         * modules/c-strstr (Depends-on): Update.
55311         * lib/c-strstr.c: Update.
55312         * modules/canonicalize-lgpl (Depends-on): Update.
55313         * lib/canonicalize-lgpl.c: Update.
55314         * modules/clean-temp (Depends-on): Update.
55315         * lib/clean-temp.c: Update.
55316         * modules/csharpcomp (Depends-on): Update.
55317         * lib/csharpcomp.c: Update.
55318         * modules/csharpexec (Depends-on): Update.
55319         * lib/csharpexec.c: Update.
55320         * modules/javacomp (Depends-on): Update.
55321         * lib/javacomp.c: Update.
55322         * modules/javaexec (Depends-on): Update.
55323         * lib/javaexec.c: Update.
55324         * modules/mbscasestr (Depends-on): Update.
55325         * lib/mbscasestr.c: Update.
55326         * modules/mbsstr (Depends-on): Update.
55327         * lib/mbsstr.c: Update.
55328         * modules/setenv (Depends-on): Update.
55329         * lib/setenv.c: Update.
55330         * modules/strcasestr (Depends-on): Update.
55331         * lib/strcasestr.c: Update.
55332         * modules/striconveha (Depends-on): Update.
55333         * lib/striconveha.c: Update.
55334         * modules/relocatable-prog-wrapper (Files): Update.
55335         * lib/relocwrapper.c: Update.
55336         * build-aux/install-reloc: Update.
55337         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
55338
55339 2007-06-08  Bruno Haible  <bruno@clisp.org>
55340
55341         Port to uClibc.
55342         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
55343         * lib/fpurge.c (fpurge): Likewise.
55344         * lib/freading.c (freading): Likewise.
55345         * lib/fseeko.c (rpl_fseeko): Likewise.
55346         * lib/fseterr.c (fseterr): Likewise.
55347         * lib/fwriting.c (fwriting): Likewise.
55348         * tests/test-fflush.c (main): Avoid a failure on uClibc.
55349
55350 2007-06-08  Bruno Haible  <bruno@clisp.org>
55351
55352         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
55353         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
55354         * modules/gettext (Files): Add m4/intlmacosx.m4.
55355
55356 2007-06-07  Bruno Haible  <bruno@clisp.org>
55357
55358         * modules/localename-tests: New file.
55359         * tests/test-localename.c: New file.
55360
55361         New module 'localename'.
55362         * lib/localename.h: New file.
55363         * lib/localename.c: New file, from GNU gettext.
55364         * m4/localename.m4: New file.
55365         * modules/localename: New file.
55366
55367 2007-06-07  Bruno Haible  <bruno@clisp.org>
55368
55369         Work around the lack of <wchar.h> on some builds of uClibc.
55370         * doc/headers/wchar.texi: Update.
55371         * lib/wchar_.h: Include <wchar.h> only if it exists.
55372         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
55373         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
55374         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
55375         doesn't exist.
55376         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
55377         * modules/mbfile (Depends-on): Add wchar.
55378         * modules/mbiter (Depends-on): Likewise.
55379         * modules/mbuiter (Depends-on): Likewise.
55380         Reported by Simon Josefsson.
55381
55382 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
55383
55384         Work around problem reported by Steven M. Schweda in
55385         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
55386         Tru64 5.1B with the Compaq compiler environment installed declares
55387         an 'isblank' function but does not define it in the C library.
55388         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
55389         * lib/regex_internal.h (isblank): Likewise.
55390         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
55391         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55392
55393 2007-06-05  Bruno Haible  <bruno@clisp.org>
55394
55395         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
55396         ia64.
55397         * modules/printf-safe: New file.
55398         * modules/fprintf-posix (Depends-on): Add printf-safe.
55399         * modules/printf-posix (Depends-on): Likewise.
55400         * modules/snprintf-posix (Depends-on): Likewise.
55401         * modules/sprintf-posix (Depends-on): Likewise.
55402         * modules/vasnprintf-posix (Depends-on): Likewise.
55403         * modules/vasprintf-posix (Depends-on): Likewise.
55404         * modules/vfprintf-posix (Depends-on): Likewise.
55405         * modules/vprintf-posix (Depends-on): Likewise.
55406         * modules/vsnprintf-posix (Depends-on): Likewise.
55407         * modules/vsprintf-posix (Depends-on): Likewise.
55408         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
55409         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
55410         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
55411         "no" on i386, x86_64, ia64.
55412         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
55413         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55414         on i386, x86_64, ia64.
55415         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
55416         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55417         on i386, x86_64, ia64.
55418         * tests/test-vasnprintf-posix.c: Include float.h.
55419         (LDBL80_WORDS): New macro.
55420         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55421         on i386, x86_64, ia64.
55422         * tests/test-vasprintf-posix.c: Include float.h.
55423         (LDBL80_WORDS): New macro.
55424         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55425         on i386, x86_64, ia64.
55426         * tests/test-snprintf-posix.c: Include float.h.
55427         * tests/test-sprintf-posix.c: Likewise.
55428         * tests/test-vsnprintf-posix.c: Likewise.
55429         * tests/test-vsprintf-posix.c: Likewise.
55430
55431 2007-06-05  Bruno Haible  <bruno@clisp.org>
55432
55433         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
55434         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
55435         non-IEEE numbers on i386, x86_64, ia64.
55436         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
55437         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
55438         * tests/test-isnanl.h: Include float.h.
55439         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
55440
55441 2007-06-05  Bruno Haible  <bruno@clisp.org>
55442
55443         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
55444         also the %a / %A. Handle the %a / %A code before this extra handling.
55445
55446 2007-06-05  Bruno Haible  <bruno@clisp.org>
55447
55448         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
55449         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
55450
55451 2007-06-05  Bruno Haible  <bruno@clisp.org>
55452
55453         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
55454         typo in variable name.
55455
55456 2007-06-05  Eric Blake  <ebb9@byu.net>
55457
55458         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
55459         Reported by Simon Josefsson.
55460
55461 2007-06-04  Bruno Haible  <bruno@clisp.org>
55462
55463         Avoid test failures on some PowerPC platforms.
55464         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
55465         Define differently for PowerPC.
55466         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
55467         Reported by Gary V. Vaughan <gary@gnu.org>.
55468
55469 2007-06-02  Bruno Haible  <bruno@clisp.org>
55470
55471         Fix test-stdint failure on FreeBSD/ia64.
55472         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
55473         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
55474         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
55475         * doc/headers/stdint.texi: Update.
55476
55477 2007-06-01  Bruno Haible  <bruno@clisp.org>
55478
55479         * tests/test-binary-io.c (main): Pass a third argument to open().
55480         Reported by Gary V. Vaughan <gary@gnu.org>.
55481
55482 2007-06-01  Bruno Haible  <bruno@clisp.org>
55483
55484         * doc/functions/frexpl.texi: Update for mingw.
55485
55486 2007-06-01  Bruno Haible  <bruno@clisp.org>
55487
55488         * tests/test-lseek.c (main): Disable test of errno for invalid third
55489         argument.
55490         * doc/functions/lseek.texi: Update.
55491         Reported by Gary V. Vaughan <gary@gnu.org>.
55492
55493 2007-05-28  Bruno Haible  <bruno@clisp.org>
55494
55495         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
55496
55497 2007-05-31  Eric Blake  <ebb9@byu.net>
55498
55499         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
55500         cross compiling.
55501
55502 2007-05-30  Eric Blake  <ebb9@byu.net>
55503         and Bruno Haible  <bruno@clisp.org>
55504
55505         Work around mingw test failures exposed by m4-1.4.9b.
55506         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
55507         * tests/test-unistd.c: Disable uid_t and git_t tests for the
55508         moment.
55509
55510 2007-05-30  Bruno Haible  <bruno@clisp.org>
55511
55512         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
55513         assuming that they are closed. Needed on HP-UX 11.
55514
55515 2007-05-29  Bruno Haible  <bruno@clisp.org>
55516
55517         Fix a problem with #include_next.
55518         * lib/dirent_.h: Split the double-inclusion guard.
55519         * lib/fcntl_.h: Likewise.
55520         * lib/float_.h: Likewise.
55521         * lib/iconv_.h: Likewise.
55522         * lib/inttypes_.h: Likewise.
55523         * lib/locale_.h: Likewise.
55524         * lib/math_.h: Likewise.
55525         * lib/netinet_in_.h: Likewise.
55526         * lib/search_.h: Likewise.
55527         * lib/signal_.h: Likewise.
55528         * lib/stdint_.h: Likewise.
55529         * lib/stdio_.h: Likewise.
55530         * lib/stdlib_.h: Likewise.
55531         * lib/string_.h: Likewise.
55532         * lib/sys_select_.h: Likewise.
55533         * lib/sys_socket_.h: Likewise.
55534         * lib/sys_stat_.h: Likewise.
55535         * lib/sys_time_.h: Likewise.
55536         * lib/sysexits_.h: Likewise.
55537         * lib/time_.h: Likewise.
55538         * lib/unistd_.h: Likewise.
55539         * lib/wchar_.h: Likewise.
55540         * lib/wctype_.h: Likewise.
55541
55542 2007-05-29  Bruno Haible  <bruno@clisp.org>
55543
55544         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
55545         for the moment.
55546
55547 2007-05-29  Bruno Haible  <bruno@clisp.org>
55548
55549         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
55550         invocation.
55551         Reported by Eric Blake.
55552
55553 2007-05-29  Bruno Haible  <bruno@clisp.org>
55554
55555         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
55556         compiling case.
55557
55558 2007-05-29  Eric Blake  <ebb9@byu.net>
55559             Bruno Haible  <bruno@clisp.org>
55560
55561         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
55562         cross compiles.
55563
55564 2007-05-28  Eric Blake  <ebb9@byu.net>
55565
55566         * modules/closein-tests (test_closein_LDADD): Support test on
55567         cygwin with libtool.
55568
55569 2007-05-28  Bruno Haible  <bruno@clisp.org>
55570
55571         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
55572         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
55573         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
55574         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
55575         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
55576         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
55577         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
55578         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
55579         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55580
55581 2007-05-28  Eric Blake  <ebb9@byu.net>
55582
55583         Unconditionally include <config.h> in unit tests.
55584         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
55585         * tests/test-allocsa.c, tests/test-arcfour.c,
55586         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
55587         tests/test-array_list.c, tests/test-array_oset.c,
55588         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
55589         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
55590         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
55591         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
55592         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
55593         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
55594         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
55595         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
55596         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
55597         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
55598         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
55599         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
55600         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
55601         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
55602         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
55603         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
55604         test-md5.c, test-memmem.c, test-printf-posix.c,
55605         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
55606         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
55607         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
55608         test-strcasestr.c, test-striconv.c, test-striconveh.c,
55609         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
55610         test-vasnprintf-posix2.c, test-vasnprintf.c,
55611         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
55612         test-vfprintf-posix.c, test-vprintf-posix.c,
55613         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
55614         test-xvasprintf.c: Likewise.
55615
55616 2007-05-28  Bruno Haible  <bruno@clisp.org>
55617
55618         * gnulib-tool (func_import): Remember the --with-tests command-line
55619         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
55620         Reported by Eric Blake.
55621
55622 2007-05-28  Bruno Haible  <bruno@clisp.org>
55623
55624         * modules/ftell-tests: New file.
55625         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
55626         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
55627
55628         * lib/ftell.c: New file.
55629         * modules/ftell: New file.
55630         * m4/ftell.m4: New file.
55631         * doc/functions/ftell.texi: Update.
55632         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
55633         REPLACE_FTELL.
55634         * lib/stdio_.h (rpl_ftell): New declaration.
55635         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
55636         REPLACE_FTELL.
55637
55638 2007-05-28  Eric Blake  <ebb9@byu.net>
55639
55640         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
55641
55642 2007-05-28  Bruno Haible  <bruno@clisp.org>
55643
55644         * modules/fseek-tests: New file.
55645         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
55646         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
55647
55648         * lib/fseek.c: New file.
55649         * modules/fseek: New file.
55650         * m4/fseek.m4: New file.
55651         * doc/functions/fseek.texi: Update.
55652         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
55653         REPLACE_FSEEK.
55654         * lib/stdio_.h (rpl_fseek): New declaration.
55655         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
55656         REPLACE_FSEEK.
55657
55658 2007-05-28  Bruno Haible  <bruno@clisp.org>
55659
55660         * lib/stdio_.h (fflush): More comments.
55661
55662 2007-05-28  Bruno Haible  <bruno@clisp.org>
55663
55664         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
55665         runtime test.
55666
55667 2007-05-28  Eric Blake  <ebb9@byu.net>
55668
55669         Improve lseek module.
55670         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
55671         * lib/unistd_.h (lseek): Scale back link warning message.
55672         * tests/test-lseek.c: Beef up test.
55673         * tests/test-lseek.sh: Exercise more facets of lseek.
55674         Reported by Bruno Haible.
55675
55676 2007-05-28  Bruno Haible  <bruno@clisp.org>
55677
55678         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
55679         to define.
55680
55681 2007-05-27  Bruno Haible  <bruno@clisp.org>
55682
55683         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
55684
55685 2007-05-27  Bruno Haible  <bruno@clisp.org>
55686
55687         * modules/openmp: New file.
55688         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
55689         Noah Misch.
55690
55691 2007-05-26  Bruno Haible  <bruno@clisp.org>
55692
55693         * modules/chdir-long (Depends-on): Add fchdir.
55694         * modules/chdir-safer (Depends-on): Likewise.
55695         * modules/fts (Depends-on): Likewise.
55696         * modules/fts-lgpl (Depends-on): Likewise.
55697         * modules/openat (Depends-on): Likewise.
55698         * modules/savewd (Depends-on): Likewise.
55699
55700 2007-05-24  Eric Blake  <ebb9@byu.net>
55701
55702         Fix lseek on mingw.
55703         * modules/lseek: New module.
55704         * m4/lseek.m4: New file.
55705         * lib/lseek.c: New file.
55706         * modules/lseek-tests: New file.
55707         * tests/test-lseek.c: New file.
55708         * tests/test-lseek.sh: New file.
55709         * MODULES.html.sh: Document lseek module.
55710         * modules/fflush (Depends-on): Add lseek, fseeko.
55711         * modules/fseeko (Depends-on): Likewise.
55712         * modules/ftello (Depends-on): Likewise.
55713         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
55714         broken.
55715         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
55716         broken.
55717         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
55718         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
55719         * lib/ftello.c (rpl_ftello): Likewise.
55720         * tests/test-fseeko.c (main): Test this.
55721         * tests/test-fseeko.sh: Likewise.
55722         * tests/test-ftello.c (main): Likewise.
55723         * tests/test-ftello.sh: Likewise.
55724         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
55725         implies replacing fseek.
55726         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
55727         HAVE_FTELLO.
55728         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
55729         * modules/unistd (Makefile.am): Likewise.
55730         * lib/unistd_.h (lseek): Declare a replacement.
55731         * doc/functions/lseek.texi (lseek): Document this fix.
55732         * doc/functions/fseek.texi (fseek): Likewise.
55733         * doc/functions/ftell.texi (ftell): Likewise.
55734
55735 2007-05-24  Bruno Haible  <bruno@clisp.org>
55736
55737         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
55738         in the printed representation of a NaN.
55739         * tests/test-vasprintf-posix.c (test_function): Likewise.
55740         * tests/test-snprintf-posix.h (test_function): Likewise.
55741         * tests/test-sprintf-posix.h (test_function): Likewise.
55742         Reported by Eric Blake.
55743
55744 2007-05-23  Eric Blake  <ebb9@byu.net>
55745
55746         Fix fseeko/ftello on cygwin 1.5.24.
55747         * doc/functions/fseeko.texi (fseeko): Document the fix.
55748         * doc/functions/ftello.texi (ftello): Document the fix.
55749         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
55750         * doc/functions/stdout.text (stdout): New file.
55751         * doc/functions/stderr.text (stderr): New file.
55752         * doc/gnulib.texi (Function Substitutes): Use new files.
55753         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
55754         prior to 1.7.0.
55755         * tests/test-ftello.c (main): Likewise for ftello.
55756         * tests/test-fseeko.sh: New file.
55757         * tests/test-ftello.sh: New file.
55758         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
55759         with seekable stdin.
55760         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
55761         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
55762         (gl_REPLACE_FSEEKO): New macro.
55763         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
55764         * modules/fseeko (Files): Distribute fseeko.c.
55765         * modules/ftello (Files): Distribute ftello.c.
55766         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
55767         mode.
55768         * lib/ftello.c (rpl_ftello): New file.
55769         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
55770         fseeko, ftello.
55771         (gl_STDIN_LARGE_OFFSET): New macro.
55772         * modules/stdio (Makefile.am): Perform the replacement.
55773         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
55774
55775 2007-05-23  Bruno Haible  <bruno@clisp.org>
55776
55777         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
55778         GNULIB_POSIXCHECK is defined.
55779
55780 2007-05-21  Bruno Haible  <bruno@clisp.org>
55781
55782         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
55783         Check also the output for NaN arguments. When cross-compiling, guess
55784         no on IRIX.
55785         * lib/vasnprintf.c: Update comments.
55786         * tests/test-vasnprintf-posix.c (strisnan): New function.
55787         (test_function): Use it.
55788         * tests/test-vasprintf-posix.c (strisnan): New function.
55789         (test_function): Use it.
55790         * tests/test-snprintf-posix.h (strisnan): New function.
55791         (test_function): Use it.
55792         * tests/test-sprintf-posix.h (strisnan): New function.
55793         (test_function): Use it.
55794         Reported by Eric Blake.
55795
55796 2007-05-20  Bruno Haible  <bruno@clisp.org>
55797
55798         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
55799         numbers that fails on BeOS.
55800         * doc/functions/frexpl.texi: Update.
55801
55802 2007-05-20  Jim Meyering  <jim@meyering.net>
55803
55804         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
55805         forced upon us by glibc-2.6.
55806
55807 2007-05-20  Bruno Haible  <bruno@clisp.org>
55808
55809         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
55810         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
55811         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
55812         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
55813         NEED_PRINTF_INFINITE.
55814         (is_infinitel): New function.
55815         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
55816         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
55817         gl_PREREQ_VASNPRINTF_INFINITE.
55818         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
55819         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55820         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
55821         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
55822         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
55823         gl_PREREQ_VASNPRINTF_INFINITE.
55824         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55825         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55826         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55827         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55828         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55829         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55830         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55831         * doc/functions/fprintf.texi: Update.
55832         * doc/functions/printf.texi: Update.
55833         * doc/functions/snprintf.texi: Update.
55834         * doc/functions/sprintf.texi: Update.
55835         * doc/functions/vfprintf.texi: Update.
55836         * doc/functions/vprintf.texi: Update.
55837         * doc/functions/vsnprintf.texi: Update.
55838         * doc/functions/vsprintf.texi: Update.
55839
55840 2007-05-20  Bruno Haible  <bruno@clisp.org>
55841
55842         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
55843         was not found in libc.
55844         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
55845
55846 2007-05-20  Bruno Haible  <bruno@clisp.org>
55847
55848         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
55849         printed as "-nan" instead of "nan".
55850         * tests/test-vasprintf-posix.c (test_function): Likewise.
55851         * tests/test-snprintf-posix.h (test_function): Likewise.
55852         * tests/test-sprintf-posix.h (test_function): Likewise.
55853         Needed for HP-UX 11.
55854
55855 2007-05-20  Jim Meyering  <jim@meyering.net>
55856
55857         Fix buggy test for the fchownat-deref bug.
55858         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
55859         symlink required for the run-test.  Without it, this test would
55860         always declare that fchownat doesn't work, and client code would
55861         unnecessarily use the replacement function with fixed libc.
55862         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
55863         Reported by Greg Schafer.
55864
55865 2007-05-19  Bruno Haible  <bruno@clisp.org>
55866
55867         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
55868         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
55869         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
55870         Needed for IRIX 6.5 and Solaris 2.5.1.
55871
55872 2007-05-19  Bruno Haible  <bruno@clisp.org>
55873
55874         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
55875         (test_function): Skip tests involving -0.0 on platforms where
55876         -0.0 = 0.0.
55877         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
55878         (test_function): Skip tests involving -0.0 on platforms where
55879         -0.0 = 0.0.
55880         * tests/test-snprintf-posix.h (have_minus_zero): New function.
55881         (test_function): Skip tests involving -0.0 on platforms where
55882         -0.0 = 0.0.
55883         * tests/test-sprintf-posix.h (have_minus_zero): New function.
55884         (test_function): Skip tests involving -0.0 on platforms where
55885         -0.0 = 0.0.
55886         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
55887         tests.
55888         * tests/test-printf-posix.h (test_function): Likewise.
55889         * tests/test-printf-posix.output: Remove all -0.0 related results.
55890         Needed for IRIX 6.5.
55891
55892 2007-05-19  Bruno Haible  <bruno@clisp.org>
55893
55894         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
55895         printed as "nan0x7fffffff" instead of "nan".
55896         * tests/test-vasprintf-posix.c (test_function): Likewise.
55897         * tests/test-snprintf-posix.h (test_function): Likewise.
55898         * tests/test-sprintf-posix.h (test_function): Likewise.
55899         * tests/test-fprintf-posix.h (NaN): Remove macro.
55900         (test_function): Remove all NaN related tests.
55901         * tests/test-printf-posix.h (NaN): Remove macro.
55902         (test_function): Remove all NaN related tests.
55903         * tests/test-printf-posix.output: Remove all NaN related results.
55904         Needed for IRIX 6.5.
55905
55906 2007-05-19  Bruno Haible  <bruno@clisp.org>
55907
55908         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
55909         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
55910
55911 2007-05-19  Bruno Haible  <bruno@clisp.org>
55912
55913         * lib/float_.h: New file.
55914         * m4/float_h.m4: New file.
55915         * modules/float: New file.
55916         * modules/isnanl (Dependencies): Add float.
55917         * modules/isnanl-nolibm (Dependencies): Likewise.
55918         * modules/mathl (Dependencies): Likewise.
55919         * modules/printf-frexpl (Dependencies): Likewise.
55920         * modules/signbit (Dependencies): Likewise.
55921         * modules/vasnprintf (Dependencies): Likewise.
55922         * doc/headers/float.texi: Update.
55923
55924 2007-05-19  Jim Meyering  <jim@meyering.net>
55925
55926         * lib/utimens.c (gl_futimens): Rename from futimens,
55927         now that glibc-2.6 declares futimens.
55928         * lib/utimens.h: Likewise.
55929
55930 2007-05-19  Bruno Haible  <bruno@clisp.org>
55931
55932         Avoid test failures on mingw.
55933         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
55934         * tests/test-printf-posix.sh: Likewise.
55935         * tests/test-vfprintf-posix.sh: Likewise.
55936         * tests/test-vprintf-posix.sh: Likewise.
55937
55938 2007-05-19  Bruno Haible  <bruno@clisp.org>
55939
55940         Fix *printf result for NaN, Inf, -0.0 on mingw.
55941         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
55942         * lib/vasnprintf.c: Include math.h and isnan.h.
55943         (is_infinite_or_zero): New function.
55944         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
55945         values in the %f, %F, %e, %E, %g, %G directives.
55946         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
55947         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55948         gl_PRINTF_INFINITE and test its result. Invoke
55949         gl_PREREQ_VASNPRINTF_INFINITE.
55950         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55951         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55952         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55953         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55954         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55955         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55956         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55957         * doc/functions/fprintf.texi: Update.
55958         * doc/functions/printf.texi: Update.
55959         * doc/functions/snprintf.texi: Update.
55960         * doc/functions/sprintf.texi: Update.
55961         * doc/functions/vfprintf.texi: Update.
55962         * doc/functions/vprintf.texi: Update.
55963         * doc/functions/vsnprintf.texi: Update.
55964         * doc/functions/vsprintf.texi: Update.
55965
55966 2007-05-19  Bruno Haible  <bruno@clisp.org>
55967
55968         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
55969         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
55970         Instead of multiplying with 10^k, set extra_zeroes to k.
55971         (scale10_round_long_double): Remove function.
55972
55973 2007-05-18  Bruno Haible  <bruno@clisp.org>
55974
55975         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
55976         introduced on 2007-05-06.
55977
55978 2007-05-18  Bruno Haible  <bruno@clisp.org>
55979
55980         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
55981         %g directives.
55982         * tests/test-vasprintf-posix.c (test_function): Likewise.
55983         * tests/test-snprintf-posix.h (test_function): Likewise.
55984         * tests/test-sprintf-posix.h (test_function): Likewise.
55985
55986 2007-05-18  Bruno Haible  <bruno@clisp.org>
55987
55988         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
55989         (strmatch): New function.
55990         (test_function): Test the %f directive on numbers of various exponents.
55991         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
55992         (strmatch): New function.
55993         (test_function): Test the %f directive on numbers of various exponents.
55994         * tests/test-snprintf-posix.h (strmatch): New function.
55995         (test_function): Test the %f directive on numbers of various exponents.
55996         * tests/test-sprintf-posix.h (strmatch): New function.
55997         (test_function): Test the %f directive on numbers of various exponents.
55998         * tests/test-snprintf-posix.c (SIZEOF): New macro.
55999         * tests/test-sprintf-posix.c (SIZEOF): New macro.
56000         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
56001         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
56002
56003 2007-05-18  Bruno Haible  <bruno@clisp.org>
56004
56005         Add support for 'long double' number output.
56006         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
56007         * lib/vasnprintf.c: Include math.h and float+.h.
56008         (mp_limb_t): New type.
56009         (GMP_LIMB_BITS): New macro.
56010         (mp_twolimb_t): New type.
56011         (GMP_TWOLIMB_BITS): New macro.
56012         (mpn_t): New type.
56013         (multiply, divide, convert_to_decimal, decode_long_double,
56014         scale10_round_long_double, scale10_round_decimal_long_double,
56015         floorlog10l): New functions.
56016         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
56017         for the %f, %F, %e, %E, %g, %G directives.
56018         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
56019         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56020         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
56021         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
56022         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56023         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56024         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56025         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56026         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56027         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56028         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56029         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
56030         * modules/snprintf-posix (Depends-on): Likewise.
56031         * modules/sprintf-posix (Depends-on): Likewise.
56032         * modules/vasnprintf-posix (Depends-on): Likewise.
56033         * modules/vasprintf-posix (Depends-on): Likewise.
56034         * modules/vfprintf-posix (Depends-on): Likewise.
56035         * modules/vsnprintf-posix (Depends-on): Likewise.
56036         * modules/vsprintf-posix (Depends-on): Likewise.
56037         * modules/vasnprintf (Files): Add lib/float+.h.
56038         * doc/functions/fprintf.texi: Update.
56039         * doc/functions/printf.texi: Update.
56040         * doc/functions/snprintf.texi: Update.
56041         * doc/functions/sprintf.texi: Update.
56042         * doc/functions/vfprintf.texi: Update.
56043         * doc/functions/vprintf.texi: Update.
56044         * doc/functions/vsnprintf.texi: Update.
56045         * doc/functions/vsprintf.texi: Update.
56046
56047 2007-05-18  Bruno Haible  <bruno@clisp.org>
56048
56049         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
56050
56051 2007-05-18  Bruno Haible  <bruno@clisp.org>
56052
56053         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
56054         for printing 64-bit integers. Needed for mingw.
56055
56056 2007-05-18  Bruno Haible  <bruno@clisp.org>
56057
56058         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
56059         gl_FUNC_FREXPL_WORKS.
56060         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
56061
56062 2007-05-18  Bruno Haible  <bruno@clisp.org>
56063
56064         * modules/frexpl-nolibm-tests: New file.
56065
56066         * modules/frexpl-nolibm: New file.
56067         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
56068
56069 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
56070
56071         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
56072         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
56073         GCC 4.2, which otherwise issues a lot of warnings.
56074         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
56075         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
56076         Likewise.
56077         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
56078         * modules/iconv_open (iconv.h): Likewise.
56079         * modules/locale (locale.h): Likewise.
56080         * modules/netinet_in (netinet/in.h): Likewise.
56081         * modules/sys_select (sys_select.h): Likewise.
56082         * modules/sys_socket (sys/socket.h): Likewise.
56083         * modules/sys_stat (sys/stat.h): Likewise.
56084         * modules/sysexits (sysexits.h): Likewise.
56085         * modules/unistd (unistd.h): Likewise.
56086
56087 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56088
56089         * modules/closein-tests (Makefile.am): Distribute
56090         `test-closein.sh'.
56091
56092 2007-05-17  Bruno Haible  <bruno@clisp.org>
56093
56094         * tests/test-printf-posix.output: Renamed from
56095         tests/test-fprintf-posix.out.
56096         * modules/fprintf-posix-tests: Update.
56097         * modules/printf-posix-tests: Update.
56098         * modules/vfprintf-posix-tests: Update.
56099         * modules/vprintf-posix-tests: Update.
56100         * tests/test-fprintf-posix.sh: Update.
56101         * tests/test-printf-posix.sh: Update.
56102         * tests/test-vfprintf-posix.sh: Update.
56103         * tests/test-vprintf-posix.sh: Update.
56104         Reported by Ralf Wildenhues.
56105
56106 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
56107
56108         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
56109         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
56110         GCC 4.2, which otherwise issues a lot of warnings.
56111         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
56112         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
56113         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
56114         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
56115         it should no longer be needed.
56116         * lib/string_.h: Likewise.
56117         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
56118         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
56119         * modules/inttypes (inttypes.h): Likewise.
56120         * modules/math (math.h): Likewise.
56121         * modules/search (search.h): Likewise.
56122         * modules/signal (signal.h): Likewise.
56123         * modules/stdint (stdint.h): Likewise.
56124         * modules/stdio (stdio.h): Likewise.
56125         * modules/stdlib (stdlib.h): Likewise.
56126         * modules/string (string.h): Likewise.
56127         * modules/sys_time (sys/time.h): Likewise.
56128         * modules/time (time.h): Likewise.
56129         * modules/wchar (wchar.h): Likewise.
56130         * modules/wctype (wtype.h): Likewise.
56131
56132 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
56133
56134         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
56135
56136 2007-05-13  Bruno Haible  <bruno@clisp.org>
56137
56138         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
56139         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56140         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
56141         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
56142         (gl_PREREQ_STRTOK_R): Don't require it here.
56143
56144 2007-05-13  Bruno Haible  <bruno@clisp.org>
56145
56146         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
56147         when used in C++ mode.
56148
56149 2007-05-12  Bruno Haible  <bruno@clisp.org>
56150
56151         * lib/linebuffer.h: Tweak doc.
56152         * lib/linebuffer.c: Likewise.
56153
56154 2007-05-12  James Youngman  <jay@gnu.org>
56155
56156         * lib/linebuffer.c (readlinebuffer_delim): New function,
56157         like readlinebuffer, but use a caller-specified delimiter.
56158         (readlinebuffer): Just call readlinebuffer_delim with '\n'
56159         as the delimiter.
56160         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
56161
56162 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56163
56164         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
56165         * modules/openat (Files): Remove openat-die.c.
56166         (Depends-on): Add openat-die.
56167         * modules/openat-die: New module.
56168
56169 2007-05-06  Bruno Haible  <bruno@clisp.org>
56170
56171         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
56172         Update with info about Cygwin.
56173         * doc/functions/fprintf.texi: Update.
56174         * doc/functions/printf.texi: Update.
56175         * doc/functions/snprintf.texi: Update.
56176         * doc/functions/sprintf.texi: Update.
56177         * doc/functions/vfprintf.texi: Update.
56178         * doc/functions/vprintf.texi: Update.
56179         * doc/functions/vsnprintf.texi: Update.
56180         * doc/functions/vsprintf.texi: Update.
56181         Reported by Eric Blake.
56182
56183 2007-05-06  Bruno Haible  <bruno@clisp.org>
56184
56185         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
56186         padding ourselves for the floating-point directives.
56187         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
56188         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
56189         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56190         gl_PRINTF_FLAG_ZERO and test its result. Invoke
56191         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
56192         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56193         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
56194         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56195         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56196         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56197         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56198         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56199         * tests/test-snprintf-posix.h (test_function): Also check the width
56200         and some flags in the %f directive.
56201         * tests/test-sprintf-posix.h (test_function): Likewise.
56202         * tests/test-vasnprintf-posix.c (test_function): Likewise.
56203         * tests/test-vasprintf-posix.c (test_function): Likewise.
56204         * doc/functions/fprintf.texi: Update.
56205         * doc/functions/printf.texi: Update.
56206         * doc/functions/snprintf.texi: Update.
56207         * doc/functions/sprintf.texi: Update.
56208         * doc/functions/vfprintf.texi: Update.
56209         * doc/functions/vprintf.texi: Update.
56210         * doc/functions/vsnprintf.texi: Update.
56211         * doc/functions/vsprintf.texi: Update.
56212
56213 2007-05-06  Bruno Haible  <bruno@clisp.org>
56214
56215         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
56216         pass the ' flag character to sprintf or snprintf.
56217         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
56218         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
56219         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56220         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
56221         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
56222         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56223         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
56224         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56225         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56226         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56227         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56228         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56229         * tests/test-snprintf-posix.h (test_function): Also check the grouping
56230         flag.
56231         * tests/test-sprintf-posix.h (test_function): Likewise.
56232         * tests/test-vasnprintf-posix.c (test_function): Likewise.
56233         * tests/test-vasprintf-posix.c (test_function): Likewise.
56234         * doc/functions/fprintf.texi: Update.
56235         * doc/functions/printf.texi: Update.
56236         * doc/functions/snprintf.texi: Update.
56237         * doc/functions/sprintf.texi: Update.
56238         * doc/functions/vfprintf.texi: Update.
56239         * doc/functions/vprintf.texi: Update.
56240         * doc/functions/vsnprintf.texi: Update.
56241         * doc/functions/vsprintf.texi: Update.
56242
56243 2007-05-01  Bruno Haible  <bruno@clisp.org>
56244
56245         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
56246
56247 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
56248
56249         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
56250         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
56251
56252 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56253
56254         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
56255         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
56256         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
56257
56258 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
56259
56260         * lib/argp-help.c (struct hol_entry): New member `ord'.
56261         (HOL_ENTRY_PTRCMP): Use ord for comparison
56262         (hol_sort): Initialize ord.
56263
56264 2007-05-01  Bruno Haible  <bruno@clisp.org>
56265
56266         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
56267         Reported by Eric Blake.
56268         * doc/gnulib.texi (Function Substitutes): Update.
56269
56270 2007-05-01  Bruno Haible  <bruno@clisp.org>
56271
56272         * doc/functions.texi: Remove file, now redundant through
56273         doc/functions/*.texi.
56274
56275 2007-05-01  Bruno Haible  <bruno@clisp.org>
56276
56277         * modules/argp (Depends-on): Add sleep.
56278
56279 2007-05-01  Bruno Haible  <bruno@clisp.org>
56280
56281         * modules/sleep-tests: New file.
56282         * tests/test-sleep.c: New file.
56283
56284         * modules/sleep: New file.
56285         * lib/sleep.c: New file.
56286         * m4/sleep.m4: New file.
56287         * lib/unistd_.h (sleep): New declaration.
56288         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
56289         HAVE_SLEEP.
56290         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
56291         * doc/functions/sleep.texi: Document the sleep module.
56292
56293 2007-05-01  Bruno Haible  <bruno@clisp.org>
56294
56295         * lib/sigprocmask.h: Remove file.
56296         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
56297         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
56298         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
56299         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
56300         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
56301         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
56302         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
56303         HAVE_SIGSET_T as a shell variable.
56304         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
56305         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
56306         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
56307         (Depends-on): Add signal. Remove verify.
56308         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
56309         (Include): Mention <signal.h> instead of sigprocmask.h.
56310         * NEWS: Mention the change.
56311         * lib/fatal-signal.c: Don't include sigprocmask.h.
56312
56313 2007-05-01  Bruno Haible  <bruno@clisp.org>
56314
56315         * modules/signal: New file.
56316         * lib/signal_.h: New file.
56317         * m4/signal_h.m4: New file.
56318
56319 2007-05-01  Bruno Haible  <bruno@clisp.org>
56320
56321         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
56322         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
56323         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
56324         HAVE_WCTYPE_CTMP_BUG into wctype.h.
56325
56326 2007-05-01  Bruno Haible  <bruno@clisp.org>
56327
56328         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
56329         configure time.
56330         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
56331         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
56332         * modules/sys_stat (Makefile.am): Substitute their values into
56333         sys/stat.h.
56334
56335 2007-05-01  Bruno Haible  <bruno@clisp.org>
56336
56337         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
56338         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
56339         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
56340
56341 2007-05-01  Bruno Haible  <bruno@clisp.org>
56342
56343         * doc/header/assert.texi: Undo last change: don't mention the gnulib
56344         'assert' module here.
56345
56346 2007-05-01  Bruno Haible  <bruno@clisp.org>
56347
56348         * doc/functions/*.texi: New files.
56349         * doc/functions/google-ranking.txt: New file.
56350         * doc/gnulib.texi (Function Substitutes): New chapter.
56351         (ctime, inet_ntoa): Remove sections.
56352         * doc/ctime.texi: Remove file.
56353         * doc/inet_ntoa.texi: Remove file.
56354         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
56355         dependencies.
56356         (%.info): New rule, specifying a --reference-limit.
56357
56358 2007-05-01  Bruno Haible  <bruno@clisp.org>
56359
56360         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
56361
56362 2007-05-01  Bruno Haible  <bruno@clisp.org>
56363
56364         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
56365         the portability of 'mkdir' to mingw systems.
56366
56367 2007-05-01  Bruno Haible  <bruno@clisp.org>
56368
56369         * doc/headers/google-ranking.txt: New file.
56370
56371 2007-04-30  Eric Blake  <ebb9@byu.net>
56372
56373         Prefer fseeko to fseek.
56374         * modules/getpass (Depends-on): Add fseeko.
56375         * lib/getpass.c (getpass): Use fseeko, not fseek.
56376
56377 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
56378
56379         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
56380         assumes the sorting is stable, while most qsort implementations
56381         are not.  Use argument addresses to ensure they never compare as
56382         equal.
56383
56384         * tests/test-argp-2.sh (usage-indent test): Fix output
56385         (func_compare): Restore diff options
56386         * tests/test-argp.c: Restore #include "progname.h"
56387
56388 2007-04-29  Bruno Haible  <bruno@clisp.org>
56389
56390         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
56391         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56392         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
56393         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56394         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
56395         (configure.ac): Define CHECK_SNPRINTF_POSIX.
56396         (TESTS, check_PROGRAMS): Add test-snprintf.
56397         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
56398         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
56399         (TESTS, check_PROGRAMS): Add test-vsnprintf.
56400         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
56401         assertions that fail on HP-UX, OSF/1, or IRIX.
56402         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
56403
56404 2007-04-29  Bruno Haible  <bruno@clisp.org>
56405
56406         * MODULES.html.sh (posix_functions): Remove 'contents'.
56407
56408 2007-04-29  Karl Berry  <karl@gnu.org>
56409
56410         * config/srclist.txt (gendocs_template_min): new entry.
56411
56412 2007-04-29  Bruno Haible  <bruno@clisp.org>
56413
56414         Work around fpurge bug on BSD systems.
56415         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
56416         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
56417         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
56418         fpurge to rpl_fpurge if the system already has this function.
56419         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
56420         the case where the system already has this function. Correct invariants
56421         on BSD systems.
56422         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
56423         BSD systems.
56424
56425 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
56426
56427         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
56428         proposed by Sven Verdoolaege.
56429
56430         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
56431         options.
56432         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
56433         (usage and help tests): Update
56434
56435 2007-04-29  Bruno Haible  <bruno@clisp.org>
56436
56437         * tests/test-fflush.c (main): Use a file of size 17, not 10.
56438         Print more information in case of failure. Disable a test on BeOS.
56439
56440 2007-04-29  Bruno Haible  <bruno@clisp.org>
56441
56442         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
56443         This helps debugging on systems on which no gdb is available.
56444
56445 2007-04-29  Bruno Haible  <bruno@clisp.org>
56446
56447         * lib/freading.h: Improve comments.
56448         * lib/fwriting.h: Likewise.
56449         * tests/test-freading.c (main): Don't check freading immediately after
56450         repositioning. Needed for glibc.
56451
56452 2007-04-29  Bruno Haible  <bruno@clisp.org>
56453
56454         * lib/freading.c (freading): Trivial simplification.
56455
56456 2007-04-28  Bruno Haible  <bruno@clisp.org>
56457
56458         * tests/test-fwriting.c (main): Also test the interaction between
56459         fflush and fwriting.
56460         * modules/fwriting-tests (Depends-on): Add fflush.
56461
56462         * tests/test-freading.c (main): Also test the interaction between
56463         fflush and freading.
56464         * modules/freading-tests (Depends-on): Add fflush.
56465
56466 2007-04-28  Bruno Haible  <bruno@clisp.org>
56467
56468         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
56469         fseeko and ftello.
56470         Suggested by Eric Blake.
56471
56472 2007-04-28  Jim Meyering  <jim@meyering.net>
56473
56474         Avoid false-negative in gl_STDINT_H's C99 conformance test.
56475         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
56476         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
56477
56478 2007-04-27  Eric Blake  <ebb9@byu.net>
56479
56480         * doc/headers/assert.texi (assert.h): Document assert module use.
56481
56482 2007-04-27  Bruno Haible  <bruno@clisp.org>
56483
56484         * doc/headers/*.texi: New files.
56485         * doc/gnulib.texi (Header File Substitutes): New chapter.
56486         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
56487         dependencies.
56488         (standards.info ,standards.html, standards.dvi): Update dependencies.
56489         (mostlyclean, clean): New targets.
56490
56491 2007-04-27  Bruno Haible  <bruno@clisp.org>
56492
56493         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
56494         * modules/sysexits (Files, Makefile.am): Update.
56495
56496         * lib/sys_socket_.h: Renamed from lib/socket_.h.
56497         * modules/sys_socket (Files, Makefile.am): Update.
56498
56499         * lib/sys_stat_.h: Renamed from lib/stat_.h.
56500         * modules/sys_stat (Files, Makefile.am): Update.
56501
56502 2007-04-27  Eric Blake  <ebb9@byu.net>
56503
56504         * lib/freading.h: Improve comments.
56505         * lib/fwriting.h: Likewise.
56506         * lib/fflush.c: Likewise.
56507
56508         Fix closein for mingw.
56509         * modules/closein-tests: Add tests for closein.
56510         * tests/test-closein.c: New file.
56511         * tests/test-closein.sh: Likewise.
56512         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
56513         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
56514
56515 2007-04-27  Bruno Haible  <bruno@clisp.org>
56516
56517         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
56518         version is < 6.
56519         * lib/math_.h [__DECC]: Likewise.
56520         * lib/stdio_.h [__DECC]: Likewise.
56521         * lib/stdlib_.h [__DECC]: Likewise.
56522         * lib/string_.h [__DECC]: Likewise.
56523         * lib/time_.h [__DECC]: Likewise.
56524         * lib/wchar_.h [__DECC]: Likewise.
56525         * lib/wctype_.h [__DECC]: Likewise.
56526
56527 2007-04-27  Bruno Haible  <bruno@clisp.org>
56528
56529         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
56530
56531 2007-04-27  Bruno Haible  <bruno@clisp.org>
56532
56533         * lib/fflush.c: Add comments.
56534         * modules/fpurge-tests (Depends-on): Add fflush.
56535         * modules/freadable-tests (Depends-on): Likewise.
56536         * modules/fwritable-tests (Depends-on): Likewise.
56537
56538 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
56539
56540         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
56541         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
56542         Report by Bruno Haible <bruno@clisp.org>.
56543
56544 2007-04-26  Eric Blake  <ebb9@byu.net>
56545
56546         Fix fflush on mingw.
56547         * modules/fflush (Depends-on): Add freading.
56548         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
56549         but unread data.
56550
56551 2007-04-26  Eric Blake  <ebb9@byu.net>
56552         and Bruno Haible  <bruno@clisp.org>
56553
56554         Implement freading and fwriting.
56555         * lib/freading.c: New file.
56556         * lib/freading.h: Likewise.
56557         * m4/freading.m4: Likewise.
56558         * modules/freading: Likewise.
56559         * modules/freading-tests: Likewise.
56560         * tests/test-freading.c: Likewise.
56561         * lib/fwriting.c: New file.
56562         * lib/fwriting.h: Likewise.
56563         * m4/fwriting.m4: Likewise.
56564         * modules/fwriting: Likewise.
56565         * modules/fwriting-tests: Likewise.
56566         * tests/test-fwriting.c: Likewise.
56567         * MODULES.html.sh (File stream based Input/Output): Mention them.
56568
56569 2007-04-26  Bruno Haible  <bruno@clisp.org>
56570
56571         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
56572         'long' when we assume it.
56573         Suggested by Eric Blake.
56574
56575 2007-04-26  Bruno Haible  <bruno@clisp.org>
56576
56577         Ensure fseeko, ftello are declared on glibc systems.
56578         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
56579         * modules/fseeko (configure.ac-early): Likewise.
56580         * modules/ftello (configure.ac-early): Likewise.
56581         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
56582         AC_FUNC_FSEEKO for this.
56583         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
56584         (gl_CHECK_FSEEKO): Remove macro.
56585
56586 2007-04-26  Bruno Haible  <bruno@clisp.org>
56587
56588         * tests/test-fflush.c (main): Also check the ftell result after
56589         fflush and fseek/fseeko.
56590         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
56591         file descriptor position cache in the stream.
56592         * lib/fseeko.c (rpl_fseeko): Likewise.
56593
56594 2007-04-26  Bruno Haible  <bruno@clisp.org>
56595
56596         * modules/fflush-tests (Depends-on): Add fseeko.
56597
56598 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
56599             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56600
56601         * lib/argz_.h: ensure error_t definition is obtained in same
56602         mechanism system argz.h would have.
56603         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
56604         argz facilities are known bad.  Err on the side of caution if
56605         cross-compiling.
56606
56607 2007-04-25  Eric Blake  <ebb9@byu.net>
56608
56609         * lib/fpurge.c (includes): Use stdlib.h for free.
56610         * tests/test-fflush.c (main): Also test fflush-fseeko.
56611
56612 2007-04-25  Bruno Haible  <bruno@clisp.org>
56613
56614         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
56615         * lib/fseeko.c: New file.
56616         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
56617         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
56618         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
56619         gl_FUNC_FSEEKO.
56620         (gl_FUNC_FSEEKO): Invoke it.
56621         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
56622         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
56623         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
56624
56625 2007-04-25  Bruno Haible  <bruno@clisp.org>
56626
56627         * modules/fflush (Depends-on): Add ftello.
56628
56629 2007-04-25  Bruno Haible  <bruno@clisp.org>
56630
56631         * modules/ftello-tests: New file.
56632         * tests/test-ftello.c: New file.
56633
56634         * modules/ftello: New file.
56635         * m4/ftello.m4: New file.
56636         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
56637         HAVE_FTELLO.
56638         * lib/stdio_.h (ftello): New declaration.
56639         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
56640         HAVE_FTELLO.
56641
56642 2007-04-25  Bruno Haible  <bruno@clisp.org>
56643
56644         * modules/fseeko-tests: New file.
56645         * tests/test-fseeko.c: New file.
56646
56647         * modules/fseeko: New file.
56648         * m4/fseeko.m4: New file.
56649         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
56650         HAVE_FSEEKO.
56651         * lib/stdio_.h (fseeko): New declaration.
56652         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
56653         HAVE_FSEEKO.
56654
56655 2007-04-25  Bruno Haible  <bruno@clisp.org>
56656
56657         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
56658
56659 2007-04-25  Bruno Haible  <bruno@clisp.org>
56660
56661         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
56662         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
56663         * tests/test-unistd.c: Likewise.
56664         * tests/test-fcntl.c: Likewise.
56665
56666 2007-04-23  Eric Blake  <ebb9@byu.net>
56667
56668         * lib/fflush.c: Fix missing include.
56669         Reported by Bruno Haible.
56670
56671 2007-04-23  Bruno Haible  <bruno@clisp.org>
56672
56673         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
56674         Reported by Eric Blake.
56675
56676 2007-04-23  Bruno Haible  <bruno@clisp.org>
56677
56678         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
56679
56680 2007-04-23  Bruno Haible  <bruno@clisp.org>
56681
56682         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
56683
56684 2007-04-23  Bruno Haible  <bruno@clisp.org>
56685
56686         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
56687         Needed on HP-UX 11.
56688
56689 2007-04-16  Eric Blake  <ebb9@byu.net>
56690
56691         Make fflush rely on fpurge.
56692         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
56693         open coding all variants.
56694         * modules/fflush (Depends-on): Add fpurge and unistd.
56695         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
56696         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
56697
56698         Fix --with-tests compilation on cygwin.
56699         * modules/argmatch-tests (Makefile.am): List gnulib library first
56700         in LDADD.
56701         * modules/argp-tests (Makefile.am): Likewise.
56702         * modules/array-list-tests (Makefile.am): Likewise.
56703         * modules/array-oset-tests (Makefile.am): Likewise.
56704         * modules/avltree-list-tests (Makefile.am): Likewise.
56705         * modules/avltree-oset-tests (Makefile.am): Likewise.
56706         * modules/avltreehash-list-tests (Makefile.am): Likewise.
56707         * modules/carray-list-tests (Makefile.am): Likewise.
56708         * modules/dirname-tests (Makefile.am): Likewise.
56709         * modules/frexp-tests (Makefile.am): Likewise.
56710         * modules/isnanl-tests (Makefile.am): Likewise.
56711         * modules/linked-list-tests (Makefile.am): Likewise.
56712         * modules/linkedhash-list-tests (Makefile.am): Likewise.
56713         * modules/lock-tests (Makefile.am): Likewise.
56714         * modules/rbtree-list-tests (Makefile.am): Likewise.
56715         * modules/rbtree-oset-tests (Makefile.am): Likewise.
56716         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
56717         * modules/tls-tests (Makefile.am): Likewise.
56718         * modules/tsearch-tests (Makefile.am): Likewise.
56719         * modules/xvasprintf-tests (Makefile.am): Likewise.
56720
56721         Fix fpurge for cygwin.
56722         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
56723         value.
56724         * modules/fpurge-tests (Depends-on): Clean up trash.
56725
56726 2007-04-16  Simon Josefsson  <simon@josefsson.org>
56727
56728         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
56729
56730         * m4/autobuild.m4: Re-indent.
56731
56732 2007-04-13  Bruno Haible  <bruno@clisp.org>
56733
56734         * modules/fpurge-tests: New file.
56735         * tests/test-fpurge.c: New file.
56736
56737         * modules/fpurge: New file.
56738         * lib/fpurge.h: New file.
56739         * lib/fpurge.c: New file.
56740         * m4/fpurge.m4: New file.
56741
56742 2007-04-13  Bruno Haible  <bruno@clisp.org>
56743
56744         * modules/fbufmode-tests: New file.
56745         * tests/test-fbufmode.c: New file.
56746
56747         * modules/fbufmode: New file.
56748         * lib/fbufmode.h: New file.
56749         * lib/fbufmode.c: New file.
56750         * m4/fbufmode.m4: New file.
56751
56752 2007-04-13  Bruno Haible  <bruno@clisp.org>
56753
56754         * modules/fwritable-tests: New file.
56755         * tests/test-fwritable.c: New file.
56756
56757         * modules/fwritable: New file.
56758         * lib/fwritable.h: New file.
56759         * lib/fwritable.c: New file.
56760         * m4/fwritable.m4: New file.
56761
56762 2007-04-13  Bruno Haible  <bruno@clisp.org>
56763
56764         * modules/freadable-tests: New file.
56765         * tests/test-freadable.c: New file.
56766
56767         * modules/freadable: New file.
56768         * lib/freadable.h: New file.
56769         * lib/freadable.c: New file.
56770         * m4/freadable.m4: New file.
56771
56772 2007-04-13  Bruno Haible  <bruno@clisp.org>
56773
56774         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
56775         MOSTLYCLEANFILES.
56776
56777 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
56778
56779         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
56780         gzip bootstrap.conf to avoid dragging in i18n machinery.
56781         (gnulib_tool_option): Use it.
56782
56783 2007-04-13  Bruno Haible  <bruno@clisp.org>
56784
56785         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
56786         %F directives.
56787         * tests/test-vasprintf-posix.c (test_function): Likewise.
56788         * tests/test-snprintf-posix.h (test_function): Likewise.
56789         * tests/test-sprintf-posix.h (test_function): Likewise.
56790         * tests/test-fprintf-posix.h (test_function): Likewise.
56791         * tests/test-printf-posix.h (test_function): Likewise.
56792         * tests/test-fprintf-posix.out: Likewise.
56793
56794 2007-04-13  Bruno Haible  <bruno@clisp.org>
56795
56796         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
56797         * modules/tls-tests (configure.ac): Likewise.
56798         Reported by Arto C. Nirkko <anirkko@insel.ch>.
56799
56800 2007-04-13  Bruno Haible  <bruno@clisp.org>
56801
56802         * lib/tls.c (glthread_tls_get): Fix return type.
56803         Patch by Arto C. Nirkko <anirkko@insel.ch>.
56804
56805 2007-04-12  Eric Blake  <ebb9@byu.net>
56806
56807         * modules/gettime (Depends-on): Remove gettime.
56808         Reported by Dmitry V. Levin.
56809
56810 2007-04-12  Bruno Haible  <bruno@clisp.org>
56811
56812         * modules/fflush (Include): Mention <stdio.h>.
56813         * modules/strtoimax (Include): Mention <inttypes.h>.
56814         * modules/strtoumax (Include): Likewise.
56815
56816 2007-04-12  Eric Blake  <ebb9@byu.net>
56817
56818         * .cvsignore: New file.
56819         * .gitignore: Likewise.
56820
56821 2007-04-12  Bruno Haible  <bruno@clisp.org>
56822
56823         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
56824         not before, since $(LDADD) often contains libgnu.a.
56825         * modules/striconv-tests (test_striconv_LDADD): Likewise.
56826         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
56827         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
56828         Needed on Cygwin.
56829
56830 2007-04-12  Eric Blake  <ebb9@byu.net>
56831
56832         Work around glibc's failure to flush stdin on fclose.
56833         * lib/closein.c (close_stdin): Flush stdin before closing.
56834
56835         Work around glibc's failure to reset seekable stdin on exit.
56836         * modules/closein: New module.
56837         * lib/closein.c: New file.
56838         * lib/closein.h: Likewise.
56839         * m4/closein.m4: Likewise.
56840         * MODULES.html.sh (File stream based Input/Output): Document it.
56841
56842 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56843
56844         * gnulib-tool: Rename generated 'autobuild' script to
56845         'do-autobuild' in --create-megatestdir output.
56846
56847         * doc/gnulib.texi (Build robot for gnulib): Fix.
56848
56849 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56850
56851         * modules/sysexits (Depends-on): Add absolute-header.
56852
56853 2007-04-12  Eric Blake  <ebb9@byu.net>
56854
56855         No need to preserve errno on success.
56856         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
56857         Reported by Bruno Haible.
56858
56859 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56860
56861         * MODULES.html.sh (Support for maintaining and releasing
56862         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
56863
56864 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56865
56866         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
56867
56868 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56869
56870         * modules/autobuild: New module.
56871
56872         * m4/autobuild.m4: New file.
56873
56874 2007-04-11  Bruno Haible  <bruno@clisp.org>
56875
56876         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
56877         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
56878         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
56879         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
56880         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56881         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56882         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56883         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56884         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56885         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56886         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
56887         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56888         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56889         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
56890         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56891         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56892         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
56893         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56894         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56895         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
56896         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56897         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56898         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
56899         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56900         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56901         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
56902         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56903         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56904         Reported by Eric Blake.
56905
56906 2007-04-11  Bruno Haible  <bruno@clisp.org>
56907
56908         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
56909
56910 2007-04-10  Bruno Haible  <bruno@clisp.org>
56911
56912         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
56913         for NaN and Infinity. Needed on FreeBSD 6.1.
56914         * tests/test-vasnprintf-posix.c (test_function): Undo last change
56915         regarding results for "%010a" of Infinity and NaN.
56916         * tests/test-vasprintf-posix.c (test_function): Likewise.
56917         * tests/test-snprintf-posix.h (test_function): Likewise.
56918         * tests/test-sprintf-posix.h (test_function): Likewise.
56919         * tests/test-fprintf-posix.h (test_function): Likewise.
56920         * tests/test-printf-posix.h (test_function): Likewise.
56921         * tests/test-fprintf-posix.out: Likewise.
56922
56923 2007-04-10  Bruno Haible  <bruno@clisp.org>
56924
56925         * modules/locale-tests: New file.
56926         * tests/test-locale.c: New file.
56927
56928         * modules/locale: New file.
56929         * lib/locale_.h: New file.
56930         * m4/locale_h.m4: New file.
56931
56932 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
56933             Bruno Haible  <bruno@clisp.org>
56934
56935         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
56936         be determined, test for availability of the copysignf, copysign,
56937         copysignl functions.
56938         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
56939         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
56940         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
56941
56942 2007-04-09  Eric Blake  <ebb9@byu.net>
56943
56944         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
56945         * modules/stdio (Makefile.am): Support fflush.
56946         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56947         * modules/fflush: New file.
56948         * lib/fflush.c: Likewise.
56949         * m4/fflush.m4: Likewise.
56950         * modules/fflush-tests: New test.
56951         * tests/test-fflush.c: Likewise.
56952         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
56953
56954 2007-04-06  Bruno Haible  <bruno@clisp.org>
56955
56956         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
56957         (VASNPRINTF): Use signbit for faster determination whether to print a
56958         minus sign.
56959         * modules/vasnprintf (Files): Remove lib/float+.h.
56960         * modules/fprintf-posix (Depends-on): Add signbit.
56961         * modules/snprintf-posix (Depends-on): Likewise.
56962         * modules/sprintf-posix (Depends-on): Likewise.
56963         * modules/vasnprintf-posix (Depends-on): Likewise.
56964         * modules/vasprintf-posix (Depends-on): Likewise.
56965         * modules/vfprintf-posix (Depends-on): Likewise.
56966         * modules/vsnprintf-posix (Depends-on): Likewise.
56967         * modules/vsprintf-posix (Depends-on): Likewise.
56968
56969 2007-04-06  Bruno Haible  <bruno@clisp.org>
56970
56971         * tests/test-frexp.c (main): Test also the sign bit of zero results.
56972         * tests/test-frexpl.c (main): Likewise.
56973         * tests/test-ldexpl.c (main): Likewise.
56974         * modules/frexp-tests (Depends-on): Add signbit.
56975         * modules/frexpl-tests (Depdends-on): Likewise.
56976         * modules/ldexpl-tests (Depdends-on): Likewise.
56977
56978 2007-04-06  Bruno Haible  <bruno@clisp.org>
56979
56980         * modules/signbit-tests: New file.
56981         * tests/test-signbit.c: New file.
56982
56983         * modules/signbit: New file.
56984         * lib/signbitf.c: New file.
56985         * lib/signbitd.c: New file.
56986         * lib/signbitl.c: New file.
56987         * m4/signbit.m4: New file.
56988         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
56989         (signbit): New macro.
56990         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
56991         REPLACE_SIGNBIT.
56992         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
56993         REPLACE_FREXPL into math.h.
56994
56995 2007-04-06  Bruno Haible  <bruno@clisp.org>
56996
56997         * modules/isnanf-nolibm-tests: New file.
56998         * tests/test-isnanf.c: New file.
56999
57000         * modules/isnanf-nolibm: New file.
57001         * lib/isnanf.h: New file.
57002         * lib/isnanf.c: New file.
57003         * lib/isnan.c: Consider the USE_FLOAT macro.
57004         * m4/isnanf.m4: New file.
57005
57006 2007-04-06  Bruno Haible  <bruno@clisp.org>
57007
57008         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
57009         (Link): New section.
57010
57011         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
57012
57013 2007-04-06  Bruno Haible  <bruno@clisp.org>
57014
57015         Assume the 'long double' type.
57016         * m4/longdouble.m4: Remove file.
57017         * config/srclist.txt: Don't mention longdouble.m4.
57018         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
57019         * lib/float+.h: Likewise.
57020         * lib/frexp.c: Likewise.
57021         * lib/printf-args.h: Likewise.
57022         * lib/printf-args.c: Likewise.
57023         * lib/printf-frexp.c: Likewise.
57024         * lib/printf-parse.c: Likewise.
57025         * lib/vasnprintf.c: Likewise.
57026         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
57027         * m4/intl.m4: Likewise.
57028         * m4/isnanl.m4: Likewise.
57029         * m4/printf.m4: Likewise.
57030         * m4/printf-frexpl.m4: Likewise.
57031         * m4/vasnprintf.m4: Likewise.
57032         * modules/allocsa (Files): Remove m4/longdouble.m4.
57033         * modules/gettext (Files): Likewise.
57034         * modules/relocatable-prog-wrapper (Files): Likewise.
57035         * modules/vasnprintf (Files): Likewise.
57036         * modules/isnanl (Files): Likewise.
57037         (Include): Simplify.
57038         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
57039         (Include): Simplify.
57040         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
57041         (Include): Simplify.
57042         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
57043         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57044         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
57045         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57046         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
57047         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57048         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
57049         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57050         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
57051         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57052         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
57053         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57054         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
57055         * tests/test-isnanl.c: Likewise.
57056         * tests/test-snprintf-posix.h: Likewise.
57057         * tests/test-sprintf-posix.h: Likewise.
57058         * tests/test-vasnprintf-posix.c: Likewise.
57059         * tests/test-vasnprintf-posix2.c: Likewise.
57060         * tests/test-vasprintf-posix.c: Likewise.
57061
57062 2007-04-06  Bruno Haible  <bruno@clisp.org>
57063
57064         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
57065         * lib/math_.h [__DECC]: Include the overridden include file through
57066         #include_next, outside the double-inclusion guard.
57067         * lib/stdio_.h [__DECC]: Likewise.
57068         * lib/stdlib_.h [__DECC]: Likewise.
57069         * lib/string_.h [__DECC]: Likewise.
57070         * lib/time_.h [__DECC]: Likewise.
57071         * lib/wchar_.h [__DECC]: Likewise.
57072         * lib/wctype_.h [__DECC]: Likewise.
57073         * lib/inttypes_.h [__DECC]: Likewise.
57074         Reported by Albert Chin <china@thewrittenword.com> in
57075         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
57076
57077 2007-04-04  Eric Blake  <ebb9@byu.net>
57078
57079         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
57080         1.5.x.
57081
57082 2007-04-04  Bruno Haible  <bruno@clisp.org>
57083
57084         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
57085         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
57086
57087 2007-04-04  Bruno Haible  <bruno@clisp.org>
57088
57089         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
57090         results for "%010a" of Infinity and NaN.
57091         * tests/test-vasprintf-posix.c (test_function): Likewise.
57092         * tests/test-snprintf-posix.h (test_function): Likewise.
57093         * tests/test-sprintf-posix.h (test_function): Likewise.
57094         * tests/test-fprintf-posix.h (test_function): Remove these tests.
57095         * tests/test-printf-posix.h (test_function): Likewise.
57096         * tests/test-fprintf-posix.out: Update.
57097         Needed for FreeBSD 6.1.
57098
57099 2007-04-04  Bruno Haible  <bruno@clisp.org>
57100
57101         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
57102         directly used by the gnulib modules nor by gnulib-tool.
57103
57104 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
57105
57106         * DEPENDENCIES: Give overall description of version dependency
57107         desirability.  Use more-typical names for apps.
57108         Add shell, coreutils, diffutils, grep, tar, gzip.
57109
57110 2007-04-04  Simon Josefsson  <simon@josefsson.org>
57111
57112         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
57113
57114 2007-04-04  Karl Berry  <karl@gnu.org>
57115
57116         * MODULES.html.sh (func_module): missing '.
57117
57118 2007-04-03  Bruno Haible  <bruno@clisp.org>
57119
57120         * modules/argmatch-tests (Makefile.am): New variable
57121         test_argmatch_LDADD.
57122         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
57123         * modules/array-list-tests (Makefile.am): New variable
57124         test_array_list_LDADD.
57125         * modules/array-oset-tests (Makefile.am): New variable
57126         test_array_oset_LDADD.
57127         * modules/avltree-list-tests (Makefile.am): New variable
57128         test_avltree_list_LDADD.
57129         * modules/avltree-oset-tests (Makefile.am): New variable
57130         test_avltree_oset_LDADD.
57131         * modules/avltreehash-list-tests (Makefile.am): New variable
57132         test_avltreehash_list_LDADD.
57133         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
57134         test_canonicalize_lgpl_LDADD.
57135         * modules/carray-list-tests (Makefile.am): New variable
57136         test_carray_list_LDADD.
57137         * modules/dirname-tests (Makefile.am): New variable
57138         test_dirname_LDADD.
57139         * modules/linked-list-tests (Makefile.am): New variable
57140         test_linked_list_LDADD.
57141         * modules/linkedhash-list-tests (Makefile.am): New variable
57142         test_linkedhash_list_LDADD.
57143         * modules/rbtree-list-tests (Makefile.am): New variable
57144         test_rbtree_list_LDADD.
57145         * modules/rbtree-oset-tests (Makefile.am): New variable
57146         test_rbtree_oset_LDADD.
57147         * modules/rbtreehash-list-tests (Makefile.am): New variable
57148         test_rbtreehash_list_LDADD.
57149         * modules/xvasprintf-tests (Makefile.am): New variable
57150         test_xvasprintf_LDADD.
57151         Reported by Eric Blake.
57152
57153 2007-04-03  Eric Blake  <ebb9@byu.net>
57154
57155         * DEPENDENCIES: Weaken m4 requirements.
57156
57157 2007-04-03  Bruno Haible  <bruno@clisp.org>
57158
57159         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
57160         * modules/isnanl-tests (configure.ac): Likewise.
57161
57162 2007-04-03  Ben Pfaff  <blp@gnu.org>
57163
57164         * modules/iconv_open: Add $(srcdir)/ to source directory
57165         references in Makefile fragments that call gperf, to fix VPATH
57166         builds.
57167
57168 2007-04-03  Bruno Haible  <bruno@clisp.org>
57169
57170         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
57171         * lib/ldexpl.c: Undo last change.
57172
57173 2007-04-03  Bruno Haible  <bruno@clisp.org>
57174
57175         * modules/printf-frexpl (Depends-on): Undo last change.
57176         (Files): Add m4/ldexpl.m4.
57177
57178 2007-04-03  Bruno Haible  <bruno@clisp.org>
57179
57180         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
57181         * modules/isnanl (Link): New section.
57182
57183         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
57184         * modules/frexp (Link): New section.
57185
57186         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
57187         * modules/frexpl (Link): New section.
57188
57189         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
57190         * modules/ldexpl (Link): New section.
57191
57192 2007-04-03  Bruno Haible  <bruno@clisp.org>
57193
57194         * modules/TEMPLATE-EXTENDED: New file.
57195         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
57196
57197 2007-04-03  Bruno Haible  <bruno@clisp.org>
57198
57199         * DEPENDENCIES: New file.
57200         Suggested by Simon Josefsson.
57201
57202 2007-04-03  Bruno Haible  <bruno@clisp.org>
57203
57204         * doc/gnulib.texi: Escape @.
57205
57206 2007-04-03  James Youngman  <jay@gnu.org>
57207         and Paul Eggert  <eggert@cs.ucla.edu>
57208
57209         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
57210         birthtime on all systems that have birthtime, not just those which
57211         use st_birthtimensec rather than st_birthtim.  Putting zero in
57212         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
57213         that the birth time is not available for files on an NFS mount.
57214
57215 2007-04-03  Simon Josefsson  <simon@josefsson.org>
57216
57217         * modules/memxor: Move back from crypto/, suggested by Bruno.
57218         * modules/crypto/hmac-sha1: Fix memxor dependency.
57219
57220         * modules/crypto/gc: Moved from ../.
57221
57222 2007-04-02  Eric Blake  <ebb9@byu.net>
57223
57224         * lib/ldexpl.c (includes): Avoid libm.
57225
57226         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
57227
57228 2007-04-02  Bruno Haible  <bruno@clisp.org>
57229
57230         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
57231         on IRIX.
57232
57233 2007-04-02  Bruno Haible  <bruno@clisp.org>
57234
57235         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
57236         x86 or x86_64 platforms running MacOS X.
57237         Reported by Ryan Schmidt <@ryandesign.com>.
57238
57239 2007-04-02  Bruno Haible  <bruno@clisp.org>
57240
57241         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
57242         i386.
57243
57244 2007-04-01  Simon Josefsson  <simon@josefsson.org>
57245
57246         * modules/crypto/arcfour: Moved from ../.
57247         * modules/crypto/arcfour-tests: Moved from ../.
57248         * modules/crypto/arctwo: Moved from ../.
57249         * modules/crypto/arctwo-tests: Moved from ../.
57250         * modules/crypto/des: Moved from ../.
57251         * modules/crypto/des-tests: Moved from ../.
57252         * modules/crypto/gc-arcfour: Moved from ../.
57253         * modules/crypto/gc-arcfour-tests: Moved from ../.
57254         * modules/crypto/gc-arctwo: Moved from ../.
57255         * modules/crypto/gc-arctwo-tests: Moved from ../.
57256         * modules/crypto/gc-des: Moved from ../.
57257         * modules/crypto/gc-des-tests: Moved from ../.
57258         * modules/crypto/gc-hmac-md5: Moved from ../.
57259         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
57260         * modules/crypto/gc-hmac-sha1: Moved from ../.
57261         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
57262         * modules/crypto/gc-md2: Moved from ../.
57263         * modules/crypto/gc-md2-tests: Moved from ../.
57264         * modules/crypto/gc-md4: Moved from ../.
57265         * modules/crypto/gc-md4-tests: Moved from ../.
57266         * modules/crypto/gc-md5: Moved from ../.
57267         * modules/crypto/gc-md5-tests: Moved from ../.
57268         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
57269         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
57270         * modules/crypto/gc-random: Moved from ../.
57271         * modules/crypto/gc-rijndael: Moved from ../.
57272         * modules/crypto/gc-rijndael-tests: Moved from ../.
57273         * modules/crypto/gc-sha1: Moved from ../.
57274         * modules/crypto/gc-sha1-tests: Moved from ../.
57275         * modules/crypto/gc-tests: Moved from ../.
57276         * modules/crypto/hmac-md5: Moved from ../.
57277         * modules/crypto/hmac-md5-tests: Moved from ../.
57278         * modules/crypto/hmac-sha1: Moved from ../.
57279         * modules/crypto/hmac-sha1-tests: Moved from ../.
57280         * modules/crypto/md2: Moved from ../.
57281         * modules/crypto/md2-tests: Moved from ../.
57282         * modules/crypto/md4: Moved from ../.
57283         * modules/crypto/md4-tests: Moved from ../.
57284         * modules/crypto/md5: Moved from ../.
57285         * modules/crypto/md5-tests: Moved from ../.
57286         * modules/crypto/memxor: Moved from ../.
57287         * modules/crypto/rijndael: Moved from ../.
57288         * modules/crypto/rijndael-tests: Moved from ../.
57289         * modules/crypto/sha1: Moved from ../.
57290
57291 2007-03-30  James Youngman  <jay@gnu.org>
57292
57293         * tests/test-stat-time.c (prepare_test): use chmod() rather than
57294         rename() to change the ctime of a file (because ctime is unaffected
57295         by rename on jfs2 on AIX 5.1).
57296         (main): Start by doing cleanup, in case a previous run failed leaving
57297         test files behind.
57298
57299 2007-03-31  Bruno Haible  <bruno@clisp.org>
57300
57301         Support old proprietary implementations of iconv.
57302         * modules/iconv_open: New file.
57303         * lib/iconv_.h: New file.
57304         * m4/iconv_h.m4: New file.
57305         * lib/iconv_open.c: New file.
57306         * lib/iconv_open-aix.gperf: New file.
57307         * lib/iconv_open-hpux.gperf: New file.
57308         * lib/iconv_open-irix.gperf: New file.
57309         * lib/iconv_open-osf.gperf: New file.
57310         * m4/iconv_open.m4: New file.
57311         * modules/linebreak (Depends-on): Add iconv_open.
57312         * modules/striconv (Depends-on): Likewise.
57313         * modules/striconveh (Depends-on): Likewise.
57314         * modules/unicodeio (Depends-on): Likewise.
57315         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
57316         (iconv_t)(-1).
57317         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
57318         conversion if cd is (iconv_t)(-1).
57319         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
57320         is not possible.
57321
57322 2007-03-31  Bruno Haible  <bruno@clisp.org>
57323
57324         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
57325         work on Solaris either. Protect also second use of "autodetect_jp".
57326
57327 2007-03-31  Bruno Haible  <bruno@clisp.org>
57328
57329         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
57330         the function is not present.
57331
57332 2007-03-31  Bruno Haible  <bruno@clisp.org>
57333
57334         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
57335         the function is not present.
57336
57337 2007-03-31  Bruno Haible  <bruno@clisp.org>
57338
57339         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
57340         a bug in HP-UX iconv_open().
57341
57342 2007-03-31  Bruno Haible  <bruno@clisp.org>
57343
57344         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
57345         (Mathematics <math.h>): New section, add fpieee.
57346         (Input/output <stdio.h>): Add fseterr.
57347         (Mathematics <math.h>): New section, add printf-frexp.
57348         (Container data structures): Add sublist.
57349         (Core language properties): Add fpucw, inline.
57350         (Functions for greatest-width integer types <inttypes.h>): Add
57351         imaxabs, imaxdiv, inttypes.
57352         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
57353         isnanl-nolibm, ldexp.
57354         (Mathematics <math.h>): New section, add printf-frexpl.
57355         (Support for systems lacking POSIX:2001): Add fprintf-posix,
57356         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
57357         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
57358         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
57359         (Unicode string functions): Add unistr/u*-mbtoucr.
57360         (Java): Add javacomp-script, javaexec-script.
57361         (C#): Add csharpcomp-script, csharpexec-script.
57362         (Support for building libraries and executables): Add havelib,
57363         relocatable-*.
57364         (Support for maintaining and releasing projects): Renamed from
57365         'Support for maintaining and release projects'. Add announce-gen.
57366
57367 2007-03-31  Bruno Haible  <bruno@clisp.org>
57368
57369         * README: Talk primarily about git.
57370         (git and CVS): Renamed from CVS.
57371         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
57372         gnulib is available through git.
57373         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
57374
57375 2007-03-30  Bruno Haible  <bruno@clisp.org>
57376
57377         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
57378         * lib/poll_.h: Likewise.
57379         * lib/stat_.h: Likewise.
57380         * lib/sys_time_.h: Likewise.
57381         * lib/sysexit_.h: Likewise.
57382         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
57383         * lib/stdbool_.h: Likewise.
57384         * lib/byteswap_.h: Add double-inclusion guard.
57385
57386 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
57387
57388         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
57389
57390 2007-03-30  Karl Berry  <karl@gnu.org>
57391
57392         * config/srclist-update: double space after USA in the license
57393         substitution, since that's how it's usually (?) written.
57394
57395 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
57396
57397         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
57398         reported by Bruno Haible.
57399
57400 2007-03-29  Bruno Haible  <bruno@clisp.org>
57401
57402         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
57403         a bug in AIX iconv().
57404
57405 2007-03-29  Bruno Haible  <bruno@clisp.org>
57406
57407         * modules/ldexpl-tests: New file.
57408         * tests/test-ldexpl.c: New file.
57409
57410 2007-03-29  Bruno Haible  <bruno@clisp.org>
57411
57412         * lib/ldexpl.c: Include fpucw.h.
57413         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
57414         multiplication.
57415         * modules/ldexpl (Depends-on): Add fpucw.
57416
57417 2007-03-29  Bruno Haible  <bruno@clisp.org>
57418
57419         * modules/ldexpl: New file.
57420         * m4/ldexpl.m4: New file.
57421         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
57422         set.
57423         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
57424         REPLACE_LDEXPL.
57425         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
57426         REPLACE_LDEXPL.
57427         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
57428         gl_FUNC_LDEXPL_WORKS.
57429         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
57430         * modules/mathl (Files): Remove lib/ldexpl.c.
57431         (Depends-on): Add ldexpl.
57432
57433 2007-03-29  Bruno Haible  <bruno@clisp.org>
57434
57435         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
57436
57437 2007-03-29  Bruno Haible  <bruno@clisp.org>
57438
57439         * tests/test-striconveh.c (main): Don't assume that a direct conversion
57440         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
57441         and possibly also HP-UX.
57442         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
57443         work on AIX, IRIX, HP-UX, OSF/1.
57444         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
57445         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
57446         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
57447         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
57448         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
57449         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
57450
57451 2007-03-29  Bruno Haible  <bruno@clisp.org>
57452
57453         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
57454
57455 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
57456
57457         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
57458         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
57459
57460 2007-03-29  Eric Blake  <ebb9@byu.net>
57461
57462         * lib/acl-internal.h: Remove redundant include.
57463         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
57464         Cygwin when a file is locked.
57465
57466 2007-03-29  Bruno Haible  <bruno@clisp.org>
57467
57468         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
57469         file.
57470         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
57471
57472 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
57473
57474         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
57475         try to remove a parent directory if the child couldn't be removed
57476         (except for the first rmdir, which could fail because the child
57477         doesn't exist).  Problem reported by Jeff Blaine in
57478         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
57479
57480 2007-03-28  Bruno Haible  <bruno@clisp.org>
57481
57482         * lib/striconveh.c (utf8conv_carefully): New function.
57483         (mem_cd_iconveh_internal): Invoke it.
57484
57485 2007-03-28  Bruno Haible  <bruno@clisp.org>
57486
57487         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
57488         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
57489         input.
57490         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
57491         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
57492         unistr/u8-uctomb.
57493
57494 2007-03-28  Bruno Haible  <bruno@clisp.org>
57495
57496         * modules/unistr/u8-mbtoucr: New file.
57497         * lib/unistr/u8-mbtoucr.c: New file.
57498         * modules/unistr/u16-mbtoucr: New file.
57499         * lib/unistr/u16-mbtoucr.c: New file.
57500         * modules/unistr/u16-mbtoucr: New file.
57501         * lib/unistr/u16-mbtoucr.c: New file.
57502         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
57503
57504 2007-03-27  Simon Josefsson  <simon@josefsson.org>
57505             Bruno Haible  <bruno@clisp.org>
57506
57507         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
57508         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
57509         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
57510
57511         * m4/stdio_h.m4: Add stubs for vasprintf too.
57512
57513         * modules/stdio: Support vasprintf in sed command.
57514
57515         * modules/vasprintf: Depend on stdio for prototypes.  Remove
57516         vasprintf.h.  Add stdio module indicator.
57517
57518         * lib/stdio_.h: Declare asprintf and vasprintf, based on
57519         vasprintf.h.
57520
57521         * lib/vasprintf.h: File removed.
57522
57523         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
57524         * lib/vasprintf.c: Ditto.
57525         * lib/xvasprintf.c: Ditto.
57526         * tests/test-vasprintf-posix.c: Ditto.
57527         * tests/test-vasprintf.c: Ditto.
57528
57529 2007-03-27  Bruno Haible  <bruno@clisp.org>
57530
57531         Make vasnprintf multithread-safe.
57532         * lib/vasnprintf.c (decimal_point_char): New function.
57533         (VASNPRINTF): Use it.
57534         Suggested by Simon Josefsson.
57535
57536 2007-03-27  Eric Blake  <ebb9@byu.net>
57537
57538         Support sub-second birthtime on cygwin.
57539         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
57540         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
57541         (get_stat_birthtime): Also work with st_birthtim.
57542
57543 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
57544
57545         * lib/stat-time.h (USE_BIRTHTIME): Remove.
57546         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
57547         (get_stat_birthtime_ns): Do not try to use "spare" fields.
57548         (get_stat_birthtime_ns): Simplify compile-time tests.
57549         (get_stat_birthtime): Change the API to look like
57550         get_stat_mtime etc., except return a negative tv_nsec on error.
57551         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
57552         Don't check for "spare" fields.
57553         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
57554         or for struct stat.st_birthtime, as these tests aren't used.
57555         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
57556
57557 2007-03-27  Bruno Haible  <bruno@clisp.org>
57558
57559         * lib/stat-time.h: Include <sys/stat.h>.
57560
57561 2007-03-27  James Youngman  <jay@gnu.org>
57562
57563         * lib/stat-time.h (get_stat_birthtime): New function for
57564           retrieving st_birthtime as provided by UFS2 (hence *BSD).
57565         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
57566           and its variants.
57567         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
57568         * modules/stat-time-test: New file.
57569         * tests/test-stat-time.c: New test, devised by Bruno Haible.
57570
57571 2007-03-26  Bruno Haible  <bruno@clisp.org>
57572
57573         Better support of signalling NaNs.
57574         * lib/atanl.c: Include isnanl.h.
57575         (atanl): Perform test for NaN at the beginning of the function and
57576         through a call to isnanl.
57577         * lib/cosl.c: Include isnanl.h.
57578         (cosl): Perform test for NaN at the beginning of the function and
57579         through a call to isnanl.
57580         * lib/ldexpl.c: Include isnanl.h.
57581         (ldexpl): Perform test for NaN through a call to isnanl.
57582         * lib/logl.c: Include isnanl.h.
57583         (logl): Perform test for NaN at the beginning of the function and
57584         through a call to isnanl.
57585         * lib/sinl.c: Include isnanl.h.
57586         (sinl): Perform test for NaN at the beginning of the function and
57587         through a call to isnanl.
57588         * lib/sqrtl.c: Include isnanl.h.
57589         (sqrtl): Perform test for NaN at the beginning of the function and
57590         through a call to isnanl.
57591         * lib/tanl.c: Include isnanl.h.
57592         (tanl): Perform test for NaN at the beginning of the function and
57593         through a call to isnanl.
57594         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
57595         * modules/mathl (Depends-on): Add isnanl.
57596
57597 2007-03-26  Eric Blake  <ebb9@byu.net>
57598
57599         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
57600         regression in logic sense of previous patch.
57601
57602 2007-03-26  Bruno Haible  <bruno@clisp.org>
57603
57604         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
57605         unportable shell command "if ! ...".
57606         Reported by Ralf Wildenhues.
57607
57608 2007-03-25  Bruno Haible  <bruno@clisp.org>
57609
57610         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
57611         <sysexits.h> file, and only add EX_CONFIG.
57612         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
57613         absolute file name and whether it is sufficient. Substitute also
57614         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
57615         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
57616         ABSOLUTE_SYSEXITS_H into sysexits.h.
57617
57618 2007-03-25  Bruno Haible  <bruno@clisp.org>
57619
57620         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
57621         hints is NULL.
57622
57623 2007-03-25  Bruno Haible  <bruno@clisp.org>
57624
57625         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
57626         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
57627
57628 2007-03-25  Bruno Haible  <bruno@clisp.org>
57629
57630         * lib/vasnprintf.c: Include langinfo.h.
57631         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
57632         multithread-safe.
57633         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
57634         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
57635         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57636         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57637         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57638         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57639         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57640         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
57641         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57642         Reported by Simon Josefsson.
57643
57644 2007-03-25  Bruno Haible  <bruno@clisp.org>
57645
57646         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
57647         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
57648         * modules/vasnprintf (Depends-on): Add stdint.
57649
57650 2007-03-25  Bruno Haible  <bruno@clisp.org>
57651
57652         * modules/fpieee: New file.
57653         * m4/fpieee.m4: New file.
57654         * modules/isnan-nolibm (Depends-on): Add fpieee.
57655         * modules/isnanl-nolibm (Depends-on): Add fpieee.
57656         * modules/isnanl (Depends-on): Add fpieee.
57657
57658 2007-03-25  Bruno Haible  <bruno@clisp.org>
57659
57660         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
57661
57662 2007-03-25  Bruno Haible  <bruno@clisp.org>
57663
57664         Avoid test failures on IRIX 6.5.
57665         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
57666         (main): Use it.
57667         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
57668         macros.
57669         (main): Use them.
57670
57671 2007-03-25  Bruno Haible  <bruno@clisp.org>
57672
57673         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
57674         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
57675         exists but doesn't work.
57676         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
57677         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
57678         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
57679         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
57680         math.h.
57681
57682 2007-03-25  Bruno Haible  <bruno@clisp.org>
57683
57684         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
57685         returns inf. Needed on IRIX 6.5.
57686
57687 2007-03-25  Bruno Haible  <bruno@clisp.org>
57688
57689         * tests/test-frexpl.c: Include isnanl-nolibm.h.
57690         (main): Use isnanl instead of x != x idiom.
57691         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
57692
57693         * tests/test-frexp.c: Include isnan.h.
57694         (main): Use isnan instead of x != x idiom.
57695         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
57696
57697 2007-03-25  Bruno Haible  <bruno@clisp.org>
57698
57699         * tests/test-frexp.c (NaN): New function/macro.
57700         (main): Use it instead of 0.0 / 0.0.
57701         * tests/test-isnan.c (NaN): New function/macro.
57702         (main): Use it instead of 0.0 / 0.0.
57703         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
57704         (test_function): Use it instead of 0.0 / 0.0.
57705         * tests/test-vasprintf-posix.c (NaN): New function/macro.
57706         (test_function): Use it instead of 0.0 / 0.0.
57707         * tests/test-snprintf-posix.h (NaN): New function/macro.
57708         (test_function): Use it instead of 0.0 / 0.0.
57709         * tests/test-sprintf-posix.h (NaN): New function/macro.
57710         (test_function): Use it instead of 0.0 / 0.0.
57711         * tests/test-fprintf-posix.h (NaN): New function/macro.
57712         (test_function): Use it instead of 0.0 / 0.0.
57713         * tests/test-printf-posix.h (NaN): New function/macro.
57714         (test_function): Use it instead of 0.0 / 0.0.
57715
57716         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
57717
57718 2007-03-25  Bruno Haible  <bruno@clisp.org>
57719
57720         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
57721
57722 2007-03-25  Bruno Haible  <bruno@clisp.org>
57723
57724         * lib/regexec.c (merge_state_with_log): Make static.
57725
57726 2007-03-25  Bruno Haible  <bruno@clisp.org>
57727
57728         * lib/trigl.c (kernel_rem_pio2): Make static.
57729
57730 2007-03-25  Bruno Haible  <bruno@clisp.org>
57731
57732         * lib/sincosl.c (sincosl_table): Make static.
57733
57734 2007-03-25  Bruno Haible  <bruno@clisp.org>
57735
57736         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
57737         if the compiler does not support C99.
57738
57739 2007-03-25  Bruno Haible  <bruno@clisp.org>
57740
57741         * modules/time (Makefile.am): Ensure all rule action lines start with a
57742         tab.
57743
57744 2007-03-24  Bruno Haible  <bruno@clisp.org>
57745
57746         * modules/tsearch-tests: New file.
57747         * tests/test-tsearch.sh: New file.
57748         * tests/test-tsearch.c: New file, mostly copied from glibc.
57749
57750         * modules/search-tests: New file.
57751         * tests/test-search.c: New file.
57752
57753         * modules/search: New file.
57754         * lib/search_.h: New file, incorporating lib/tsearch.h.
57755         * m4/search_h.m4: New file.
57756         * lib/tsearch.h: Remove file.
57757         * lib/tsearch.c: Include search.h instead of tsearch.h.
57758         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
57759         HAVE_TSEARCH.
57760         * modules/tsearch (Files): Remove lib/tsearch.h.
57761         (Depends-on): Add search.
57762         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
57763         (Include): Change tsearch.h into search.h.
57764
57765 2007-03-24  Bruno Haible  <bruno@clisp.org>
57766
57767         * modules/fpucw: New file.
57768         * lib/fpucw.h: New file.
57769         * lib/frexp.c: Include fpucw.h.
57770         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57771         (FUNC): Use them.
57772         * lib/printf-frexp.c: Include fpucw.h.
57773         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57774         (FUNC): Use them.
57775         * lib/vasnprintf.c: Include fpucw.h.
57776         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
57777         'long double' calculations.
57778         * tests/test-frexpl.c: Include fpucw.h.
57779         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57780         * tests/test-printf-frexpl.c: Include fpucw.h.
57781         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57782         * modules/frexpl (Depends-on): Add fpucw.
57783         * modules/printf-frexpl (Depends-on): Likewise.
57784         * modules/fprintf-posix (Depends-on): Likewise.
57785         * modules/snprintf-posix (Depends-on): Likewise.
57786         * modules/sprintf-posix (Depends-on): Likewise.
57787         * modules/vasnprintf-posix (Depends-on): Likewise.
57788         * modules/vasprintf-posix (Depends-on): Likewise.
57789         * modules/vfprintf-posix (Depends-on): Likewise.
57790         * modules/vsnprintf-posix (Depends-on): Likewise.
57791         * modules/vsprintf-posix (Depends-on): Likewise.
57792         * modules/frexpl-tests (Depends-on): Likewise.
57793         * modules/printf-frexpl-tests (Depends-on): Likewise.
57794
57795 2007-03-24  Bruno Haible  <bruno@clisp.org>
57796
57797         * lib/float+.h: New file.
57798         * lib/isnan.c: Include float+.h.
57799         (SIZE): New macro.
57800         (FUNC): Compare only SIZE bytes of the value.
57801         * lib/vasnprintf.c: Include float+.h.
57802         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
57803         SIZEOF_LDBL or SIZEOF_DBL bytes.
57804         * modules/isnan-nolibm (Files): Add lib/float+.h.
57805         * modules/isnanl-nolibm (Files): Add lib/float+.h.
57806         * modules/isnanl (Files): Add lib/float+.h.
57807         * modules/vasnprintf (Files): Add lib/float+.h.
57808
57809 2007-03-24  Bruno Haible  <bruno@clisp.org>
57810
57811         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
57812         include isnanl-nolibm.h.
57813
57814 2007-03-24  Bruno Haible  <bruno@clisp.org>
57815
57816         * tests/test-read-file.c (main): Don't produce spurious output for
57817         expected situations. Make the test fail if it encountered unexpected
57818         results.
57819
57820 2007-03-24  Bruno Haible  <bruno@clisp.org>
57821
57822         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
57823         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
57824
57825 2007-03-24  Bruno Haible  <bruno@clisp.org>
57826
57827         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
57828
57829 2007-03-24  Bruno Haible  <bruno@clisp.org>
57830
57831         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
57832         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
57833
57834         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
57835         * modules/utf8-ucs4: Turn into a symbolic link to module
57836         unistr/u8-mbtouc.
57837
57838         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
57839         utf8-ucs4-unsafe.
57840         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
57841         unistr/u8-mbtouc-unsafe.
57842
57843         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
57844         * modules/utf16-ucs4: Turn into a symbolic link to module
57845         unistr/u16-mbtouc.
57846
57847         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
57848         utf16-ucs4-unsafe.
57849         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
57850         unistr/u16-mbtouc-unsafe.
57851
57852         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
57853         * modules/ucs4-utf8: Turn into a symbolic link to module
57854         unistr/u8-ubtomb.
57855
57856         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
57857         * modules/ucs4-utf16: Turn into a symbolic link to module
57858         unistr/u16-ubtomb.
57859
57860 2007-03-24  Bruno Haible  <bruno@clisp.org>
57861
57862         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
57863         Enable the function only if HAVE_INLINE.
57864         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
57865         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
57866         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
57867         Enable the function only if HAVE_INLINE.
57868         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
57869         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
57870         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
57871         Enable the function only if HAVE_INLINE.
57872         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
57873         Enable the function only if HAVE_INLINE.
57874         * modules/utf8-ucs4: Update.
57875         * modules/utf8-ucs4-unsafe: Update.
57876         * modules/utf16-ucs4: Update.
57877         * modules/utf16-ucs4-unsafe: Update.
57878         * modules/ucs4-utf8: Update.
57879         * modules/ucs4-utf16: Update.
57880
57881 2007-03-24  Bruno Haible  <bruno@clisp.org>
57882
57883         * lib/utf8-ucs4.h: Remove file.
57884         * lib/utf8-ucs4-unsafe.h: Remove file.
57885         * lib/utf16-ucs4.h: Remove file.
57886         * lib/utf16-ucs4-unsafe.h: Remove file.
57887         * lib/ucs4-utf8.h: Remove file.
57888         * lib/ucs4-utf16.h: Remove file.
57889         * lib/unistr.h: Include their previous contents.
57890         * m4/utf-ucs4.m4: Remove file.
57891         * m4/ucs4-utf.m4: Remove file.
57892         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
57893         (Depends-on): Add unistr/base.
57894         (configure.ac): Remove gl_UTF_UCS4.
57895         (Makefile.am): Update.
57896         (Include): Change to unistr.h.
57897         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
57898         (Depends-on): Add unistr/base.
57899         (configure.ac): Remove gl_UTF_UCS4.
57900         (Makefile.am): Update.
57901         (Include): Change to unistr.h.
57902         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
57903         (Depends-on): Add unistr/base.
57904         (configure.ac): Remove gl_UTF_UCS4.
57905         (Makefile.am): Update.
57906         (Include): Change to unistr.h.
57907         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
57908         (Depends-on): Add unistr/base.
57909         (configure.ac): Remove gl_UTF_UCS4.
57910         (Makefile.am): Update.
57911         (Include): Change to unistr.h.
57912         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
57913         (Depends-on): Add unistr/base.
57914         (configure.ac): Remove gl_UCS4_UTF.
57915         (Makefile.am): Update.
57916         (Include): Change to unistr.h.
57917         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
57918         (Depends-on): Add unistr/base.
57919         (configure.ac): Remove gl_UCS4_UTF.
57920         (Makefile.am): Update.
57921         (Include): Change to unistr.h.
57922         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
57923         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
57924         utf8-ucs4-unsafe.h.
57925         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
57926         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
57927         utf16-ucs4-unsafe.h.
57928         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
57929         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
57930         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
57931         * lib/unistr/u8-strchr.c: Likewise.
57932         * lib/unistr/u8-strrchr.c: Likewise.
57933         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
57934         * lib/unistr/u16-strchr.c: Likewise.
57935         * lib/unistr/u16-strrchr.c: Likewise.
57936         * lib/striconveh.c: Update.
57937         * lib/linebreak.c: Update.
57938
57939 2007-03-24  Bruno Haible  <bruno@clisp.org>
57940
57941         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
57942         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
57943
57944 2007-03-22  Bruno Haible  <bruno@clisp.org>
57945
57946         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
57947
57948 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
57949
57950         * MODULES.html.sh (File system functions): New module write-any-file.
57951         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
57952         * m4/write-any-file.m4: New files.
57953
57954 2007-03-23  Eric Blake  <ebb9@byu.net>
57955
57956         * gnulib-tool: Rearrange space-tab sequences, since some editors
57957         like to eat them.
57958
57959 2007-03-23  Eric Blake  <ebb9@byu.net>
57960
57961         * lib/version-etc.c (version_etc_va): Update license wording to
57962         be more concise.  Recommended by Richard Stallman.
57963
57964 2007-03-22  Bruno Haible  <bruno@clisp.org>
57965
57966         * lib/poll.c (MSG_PEEK): New fallback definition.
57967
57968 2007-03-22  Bruno Haible  <bruno@clisp.org>
57969
57970         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
57971         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
57972         (main): Update.
57973         Fixes a compilation error on BeOS.
57974
57975 2007-03-22  Bruno Haible  <bruno@clisp.org>
57976
57977         * modules/frexpl-tests: New file.
57978         * tests/test-frexpl.c: New file.
57979
57980         * modules/frexpl: New file.
57981         * m4/frexpl.m4: New file.
57982         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
57983         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
57984         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
57985         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
57986         (Depends-on): Add frexpl. Remove isnanl-nolibm.
57987         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
57988
57989 2007-03-22  Bruno Haible  <bruno@clisp.org>
57990
57991         * lib/frexpl.c: Share code with lib/frexp.c.
57992         * modules/mathl (Files): Add lib/frexp.c.
57993         (Depends-on): Add isnanl-nolibm.
57994
57995 2007-03-22  Bruno Haible  <bruno@clisp.org>
57996
57997         * modules/printf-frexp (Files): Add m4/frexp.m4.
57998         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
57999         only if the found frexp function actually works.
58000
58001 2007-03-22  Bruno Haible  <bruno@clisp.org>
58002
58003         * lib/frexp.c: Remove older implementation that uses divisions.
58004
58005 2007-03-21  Bruno Haible  <bruno@clisp.org>
58006
58007         * modules/frexp-tests: New file.
58008         * tests/test-frexp.c: New file.
58009
58010         * modules/frexp: New file.
58011         * lib/frexp.c: New file.
58012         * m4/frexp.m4: New file.
58013         * lib/math_.h (frexp): New declaration.
58014         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
58015         REPLACE_FREXP.
58016         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
58017
58018 2007-03-21  Bruno Haible  <bruno@clisp.org>
58019
58020         * modules/isnanl-tests: New file.
58021         * tests/test-isnanl.c: New file.
58022
58023         * modules/isnanl: New file.
58024         * lib/isnanl.h: New file.
58025         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
58026         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
58027         gl_FUNC_ISNANL_WORKS.
58028         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
58029         New macros.
58030
58031 2007-03-21  Bruno Haible  <bruno@clisp.org>
58032
58033         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
58034         lib/isnanl.h.
58035         (Include): Update.
58036         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
58037         * lib/vasnprintf.c: Update.
58038         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
58039         tests/test-isnanl.h, remove tests/test-isnanl.c.
58040         (Makefile.am): Update.
58041         * tests/test-isnanl-nolibm.c: New file.
58042         * tests/test-isnanl.h: New file.
58043         * tests/test-isnanl.c: Remove file.
58044
58045 2007-03-21  Jim Meyering  <jim@meyering.net>
58046
58047         When trying to open ".", treat ESTALE like EACCES.
58048         * lib/savewd.c (savewd_save): Resort to forking not just upon
58049         failure with EACCES, but also when errno is ESTALE.
58050
58051 2007-03-20  Bruno Haible  <bruno@clisp.org>
58052
58053         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
58054         Needed on AIX 5.1. Reported by Matthew Woehlke.
58055
58056 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58057
58058         Suggestions by Bruno Haible:
58059         * lib/acl-internal.h: Include "gettext.h" rather than rolling
58060         our own.
58061         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
58062         * modules/acl (Depends-on): Add gettext.
58063
58064 2007-03-19  Bruno Haible  <bruno@clisp.org>
58065
58066         * modules/iconvme: Remove file.
58067         * lib/iconvme.h: Remove file.
58068         * lib/iconvme.c: Remove file.
58069         * m4/iconvme.m4: Remove file.
58070
58071 2007-03-19  Bruno Haible  <bruno@clisp.org>
58072
58073         * doc/relocatable-maint.texi: Break long shell script line.
58074         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
58075
58076 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58077
58078         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
58079         handle file_has_acl.
58080         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
58081         * lib/acl.c: Move header inclusions and related macro defns into
58082         lib/acl-internal.h.
58083         (S_ISLNK): Remove defn, since that's now done for us.
58084         (file_has_acl): Move to lib/file-has-acl.c.
58085         Call acl_trivial if available.  This is the crucial part of the fix.
58086         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
58087         shared within the library.  Rewrite a bit, partly to make it compatible
58088         with the GNU coding style.
58089         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
58090         Remove unnecessary double-quotes.
58091         Don't test for acl_to_text; the build will catch that.
58092         Replace acl_entries if it doesn't exist and it is needed.
58093         Check for -lsec and acl_trivial (as used on Solaris 10).
58094         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
58095         lib/file-has-acl.c.
58096         (Depends-on): Add sys_stat, for S_ISLNK.
58097
58098 2007-03-19  Ben Pfaff  <blp@gnu.org>
58099
58100         * doc/gnulib.texi: Fix typos.
58101         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
58102
58103 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58104
58105         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
58106         If size is zero here, buf must be zero.
58107
58108 2007-03-19  Simon Josefsson  <simon@josefsson.org>
58109
58110         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
58111         <bruno@clisp.org>.
58112
58113 2007-03-18  Bruno Haible  <bruno@clisp.org>
58114
58115         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
58116         Suggested by Eric Blake.
58117
58118 2007-03-18  Ben Pfaff  <blp@gnu.org>
58119
58120         * doc/relocatable.texi: Recommend using as prefix a directory
58121         that does not exist and will never be created.  Based on
58122         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
58123         and others.
58124
58125 2007-03-17  Bruno Haible  <bruno@clisp.org>
58126
58127         * lib/fchownat.c: Include lchown.h.
58128
58129 2007-03-17  Bruno Haible  <bruno@clisp.org>
58130
58131         Fix endless loop when the given allocated size was > INT_MAX.
58132         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
58133         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
58134         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
58135         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
58136         * lib/sprintf.c (sprintf): Likewise.
58137
58138 2007-03-17  Bruno Haible  <bruno@clisp.org>
58139
58140         * tests/test-argp-2.sh (func_compare): Output a context diff.
58141
58142 2007-03-17  Bruno Haible  <bruno@clisp.org>
58143
58144         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
58145         locale's decimal-point character.
58146
58147 2007-03-17  Bruno Haible  <bruno@clisp.org>
58148
58149         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
58150         before comparing it. Needed because on some platforms (e.g. x86) a
58151         'long double' occupies less bytes than sizeof (long double).
58152
58153 2007-03-17  Bruno Haible  <bruno@clisp.org>
58154
58155         * tests/test-crc.c (main): Make printf statements 64-bit clean.
58156         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
58157         * tests/test-getaddrinfo.c (simple): Likewise.
58158         * tests/test-read-file.c (main): Likewise.
58159
58160 2007-03-17  Bruno Haible  <bruno@clisp.org>
58161
58162         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
58163
58164 2007-03-17  Bruno Haible  <bruno@clisp.org>
58165
58166         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
58167         unused variable.
58168
58169 2007-03-17  Bruno Haible  <bruno@clisp.org>
58170
58171         * tests/test-c-strcasecmp.c: Include c-strcase.h.
58172         * tests/test-c-strncasecmp.c: Likewise.
58173
58174 2007-03-17  Bruno Haible  <bruno@clisp.org>
58175
58176         * modules/stdlib (Depends-on): Add unistd.
58177         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
58178         Needed for MacOS X 10.3.
58179
58180 2007-03-17  Bruno Haible  <bruno@clisp.org>
58181
58182         * lib/unistr/u-strdup.h: Include <stdlib.h>.
58183
58184 2007-03-17  Bruno Haible  <bruno@clisp.org>
58185
58186         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
58187
58188 2007-03-17  Bruno Haible  <bruno@clisp.org>
58189
58190         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
58191         to reflect files copied from gnulib (with or without modifications).
58192         Suggested by Jim Meyering.
58193
58194 2007-03-17  Eric Blake  <ebb9@byu.net>
58195
58196         * NEWS: Document stdlib change from 2007-02-18.
58197
58198 2007-03-17  Jim Meyering  <jim@meyering.net>
58199
58200         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
58201         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
58202         someone uses a name containing shell meta-characters.
58203         Reported by Alfred M. Szmidt.
58204
58205         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
58206
58207 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
58208
58209         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
58210         and copy gettext configuration files only if configure.ac contains
58211         a use of AM_GNU_GETTEXT_VERSION.
58212
58213 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
58214
58215         * build-aux/bootstrap (gnulib_name): New variable.
58216         (gnulib_tool_options): Use it.
58217
58218 2007-03-13  Simon Josefsson  <simon@josefsson.org>
58219
58220         * tests/test-des.c: Use new namespace.
58221
58222 2007-03-15  Bruno Haible  <bruno@clisp.org>
58223
58224         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
58225         Reported by James Youngman <jay@gnu.org>.
58226
58227 2007-03-15  Bruno Haible  <bruno@clisp.org>
58228
58229         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
58230         declared prototype. Needed with cc on OSF/1 5.1.
58231
58232 2007-03-15  Bruno Haible  <bruno@clisp.org>
58233
58234         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
58235         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
58236         (struct gl_list_implementation): Add dispose_fn argument to the
58237         'create_empty', 'create' methods.
58238         (struct gl_list_impl_base): Add field 'dispose_fn'.
58239         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
58240         argument.
58241         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
58242         dispose_fn argument.
58243         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
58244         dispose_fn on the dropped values.
58245         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
58246         dispose_fn argument.
58247         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
58248         dropped values.
58249         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
58250         (gl_tree_remove_node): Call dispose_fn on the dropped value.
58251         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
58252         (gl_tree_remove_node): Call dispose_fn on the dropped value.
58253         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
58254         argument.
58255         (gl_tree_list_free): Call dispose_fn on the dropped values.
58256         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
58257         the dropped values.
58258         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
58259         Add dispose_fn argument.
58260         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
58261         Call dispose_fn on the dropped values.
58262         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
58263         Add dispose_fn argument.
58264         (gl_sublist_create): Initialize the 'dispose_fn' field.
58265         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
58266         * tests/test-array_list.c (main): Update.
58267         * tests/test-carray_list.c (main): Update.
58268         * tests/test-avltree_list.c (main): Update.
58269         * tests/test-rbtree_list.c (main): Update.
58270         * tests/test-avltreehash_list.c (main): Update.
58271         * tests/test-rbtreehash_list.c (main): Update.
58272         * tests/test-linked_list.c (main): Update.
58273         * tests/test-linkedhash_list.c (main): Update.
58274         * tests/test-array_oset.c (main): Update.
58275
58276 2007-03-15  Bruno Haible  <bruno@clisp.org>
58277
58278         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
58279         (gl_oset_create_empty): Add dispose_fn argument.
58280         (struct gl_oset_implementation): Add dispose_fn argument to
58281         'create_empty' method.
58282         (struct gl_oset_impl_base): Add dispose_fn field.
58283         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
58284         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
58285         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
58286         values.
58287         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
58288         (gl_tree_oset_free): Call dispose_fn on the dropped values.
58289         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
58290         dropped value.
58291         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
58292         dropped value.
58293         * tests/test-array_oset.c (main): Update.
58294         * tests/test-avltree_oset.c (main): Update.
58295         * tests/test-rbtree_oset.c (main): Update.
58296         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
58297
58298 2007-03-13  Bruno Haible  <bruno@clisp.org>
58299
58300         * tests/test-stdbool.c (i): Update after last patch.
58301
58302 2007-03-12  Bruno Haible  <bruno@clisp.org>
58303
58304         * lib/quotearg.c: Include <wctype.h> early, before the definition of
58305         the iswprint macro. Needed on Solaris 2.5.1.
58306
58307 2007-03-12  Bruno Haible  <bruno@clisp.org>
58308
58309         * tests/test-printf-frexp.c (main): Declare x as volatile.
58310
58311 2007-03-12  Simon Josefsson  <simon@josefsson.org>
58312
58313         * doc/gnulib.texi (Build robot for gnulib): New section.
58314
58315 2007-03-12  Jim Meyering  <jim@meyering.net>
58316
58317         * build-aux/bootstrap: New file.
58318         * build-aux/bootstrap.conf: New file, from coreutils.
58319
58320 2007-03-11  Bruno Haible  <bruno@clisp.org>
58321
58322         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
58323
58324 2007-03-12  Simon Josefsson  <simon@josefsson.org>
58325
58326         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
58327         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
58328         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
58329
58330 2007-03-11  Bruno Haible  <bruno@clisp.org>
58331
58332         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
58333         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
58334
58335 2007-03-11  Bruno Haible  <bruno@clisp.org>
58336
58337         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
58338         formula. Needed for SunPRO C 5.0.
58339
58340 2007-03-11  Bruno Haible  <bruno@clisp.org>
58341
58342         * modules/long-options (Depends-on): Add getopt.
58343
58344 2007-03-11  Bruno Haible  <bruno@clisp.org>
58345
58346         * modules/modechange (Depends-on): Add stdbool.
58347
58348 2007-03-11  Bruno Haible  <bruno@clisp.org>
58349
58350         * modules/i-ring (Depends-on): Add stdbool.
58351
58352 2007-03-11  Bruno Haible  <bruno@clisp.org>
58353
58354         * modules/gc-des (Depends-on): Add stdbool.
58355
58356 2007-03-11  Bruno Haible  <bruno@clisp.org>
58357
58358         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
58359
58360 2007-03-11  Bruno Haible  <bruno@clisp.org>
58361
58362         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
58363
58364 2007-03-11  Bruno Haible  <bruno@clisp.org>
58365
58366         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
58367
58368 2007-03-11  Bruno Haible  <bruno@clisp.org>
58369
58370         * lib/vasnprintf.c (sprintf): Undefine.
58371
58372 2007-03-11  Bruno Haible  <bruno@clisp.org>
58373
58374         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
58375         initializers in SunPRO C and Compaq C compilers.
58376
58377 2007-03-11  Bruno Haible  <bruno@clisp.org>
58378
58379         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
58380         decrementing code ANSI C compliant.
58381
58382 2007-03-11  Bruno Haible  <bruno@clisp.org>
58383
58384         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
58385         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
58386
58387 2007-03-11  Bruno Haible  <bruno@clisp.org>
58388
58389         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
58390         <stdbool.h> substitute doesn't pass.
58391
58392 2007-03-11  Bruno Haible  <bruno@clisp.org>
58393
58394         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
58395
58396 2007-03-11  Bruno Haible  <bruno@clisp.org>
58397
58398         * gnulib-tool (func_create_megatestdir): Create also an autobuild
58399         script, for submission to autobuild.josefsson.org.
58400
58401 2007-03-10  Bruno Haible  <bruno@clisp.org>
58402
58403         * modules/canonicalize-lgpl-tests: New file.
58404         * tests/test-canonicalize-lgpl.sh: New file.
58405         * tests/test-canonicalize-lgpl.c: New file.
58406
58407         * modules/c-strcase-tests: New file.
58408         * tests/test-c-strcase.sh: New file.
58409         * tests/test-c-strcasecmp.c: New file.
58410         * tests/test-c-strncasecmp.c: New file.
58411
58412         * modules/atexit-tests: New file.
58413         * tests/test-atexit.sh: New file.
58414         * tests/test-atexit.c: New file.
58415
58416 2007-03-10  Bruno Haible  <bruno@clisp.org>
58417
58418         * tests/test-binary-io.sh: Use temporary filenames that are not so
58419         likely to clash with those of other tests (in a parallel make).
58420         * tests/test-binary-io.c: Likewise.
58421
58422 2007-03-10  Bruno Haible  <bruno@clisp.org>
58423
58424         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
58425         fallback; use #error instead.
58426         Suggested by Simon Josefsson.
58427
58428 2007-03-10  Bruno Haible  <bruno@clisp.org>
58429
58430         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
58431         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
58432         first and the last.
58433
58434 2007-03-10  Bruno Haible  <bruno@clisp.org>
58435
58436         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
58437
58438 2007-03-10  Bruno Haible  <bruno@clisp.org>
58439
58440         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
58441         "make distcheck".
58442         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
58443         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
58444         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
58445
58446 2007-03-10  Bruno Haible  <bruno@clisp.org>
58447
58448         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
58449         variable.
58450         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
58451         variable.
58452
58453 2007-03-09  Eric Blake  <ebb9@byu.net>
58454         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
58455
58456         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
58457         types are not being provided by gnulib.
58458         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
58459         types are supported.
58460
58461 2007-03-10  Bruno Haible  <bruno@clisp.org>
58462
58463         * lib/stdio_.h (__attribute__): New macro.
58464         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
58465         vsprintf): Specify __attribute__ __format__ for GCC.
58466         Suggested by Eric Blake.
58467
58468 2007-03-09  Bruno Haible  <bruno@clisp.org>
58469
58470         * modules/printf-posix-tests: New file.
58471         * tests/test-printf-posix.sh: New file.
58472         * tests/test-printf-posix.c: New file.
58473
58474         * modules/printf-posix: New file.
58475         * lib/printf.c: New file.
58476         * m4/printf-posix-rpl.m4: New file.
58477         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
58478         REPLACE_PRINTF.
58479         * lib/stdio_.h (printf): New declaration.
58480         (format, __format__, ____printf____, ____scanf____, ____strftime____,
58481         ____strfmon____): New macros.
58482         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
58483         REPLACE_PRINTF.
58484
58485 2007-03-09  Bruno Haible  <bruno@clisp.org>
58486
58487         * tests/test-vasnprintf-posix2.sh: New file.
58488         * tests/test-vasnprintf-posix2.c: New file.
58489         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
58490         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
58491         (Makefile.am): Activate test-vasnprintf-posix2.sh.
58492
58493         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
58494         a locale dependent decimal point, rather than always '.'.
58495
58496 2007-03-09  Eric Blake  <ebb9@byu.net>
58497
58498         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
58499         spite of platforms like Tandem/NSK that define it to -1.
58500
58501 2007-03-08  Bruno Haible  <bruno@clisp.org>
58502
58503         * modules/vprintf-posix-tests: New file.
58504         * tests/test-vprintf-posix.sh: New file.
58505         * tests/test-vprintf-posix.c: New file.
58506         * tests/test-printf-posix.h: New file.
58507
58508         * modules/vprintf-posix: New file.
58509         * lib/vprintf.c: New file.
58510         * m4/vprintf-posix.m4: New file.
58511         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
58512         REPLACE_VPRINTF.
58513         * lib/stdio_.h (vprintf): New declaration.
58514         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
58515         REPLACE_VPRINTF.
58516
58517 2007-03-08  Bruno Haible  <bruno@clisp.org>
58518
58519         * modules/fprintf-posix-tests: New file.
58520         * tests/test-fprintf-posix.sh: New file.
58521         * tests/test-fprintf-posix.c: New file.
58522
58523         * modules/fprintf-posix: New file.
58524         * lib/fprintf.c: New file.
58525         * m4/fprintf-posix.m4: New file.
58526         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
58527         REPLACE_FPRINTF.
58528         * lib/stdio_.h (fprintf): New declaration.
58529         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
58530         REPLACE_FPRINTF.
58531
58532 2007-03-08  Bruno Haible  <bruno@clisp.org>
58533
58534         * modules/vfprintf-posix-tests: New file.
58535         * tests/test-vfprintf-posix.sh: New file.
58536         * tests/test-vfprintf-posix.c: New file.
58537         * tests/test-fprintf-posix.h: New file.
58538         * tests/test-fprintf-posix.out: New file.
58539
58540         * modules/vfprintf-posix: New file.
58541         * lib/vfprintf.c: New file.
58542         * m4/vfprintf-posix.m4: New file.
58543         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
58544         REPLACE_VFPRINTF.
58545         * lib/stdio_.h (vfprintf): New declaration.
58546         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
58547         REPLACE_VFPRINTF.
58548
58549 2007-03-08  Bruno Haible  <bruno@clisp.org>
58550
58551         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
58552
58553 2007-03-08  Bruno Haible  <bruno@clisp.org>
58554
58555         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
58556         instead of 'expr' invocations.
58557         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58558         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58559         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58560         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58561         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58562         Suggested by Paul Eggert.
58563
58564 2007-03-08  Bruno Haible  <bruno@clisp.org>
58565
58566         * modules/fseterr-tests: New file.
58567         * tests/test-fseterr.c: New file.
58568
58569         * modules/fseterr: New file.
58570         * lib/fseterr.h: New file.
58571         * lib/fseterr.c: New file.
58572
58573 2007-03-08  Bruno Haible  <bruno@clisp.org>
58574
58575         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
58576         * lib/getopt_.h: Likewise.
58577         * lib/mbswidth.h: Likewise.
58578         * lib/setenv.h: Likewise.
58579         * lib/vasnprintf.h: Likewise.
58580         * lib/vasprintf.h: Likewise.
58581         * lib/verror.h: Likewise.
58582         * lib/xsetenv.h: Likewise.
58583         * lib/xvasprintf.h: Likewise.
58584
58585 2007-03-08  Jim Meyering  <jim@meyering.net>
58586
58587         * users.txt: Add parted.
58588
58589         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
58590
58591 2007-03-07  Bruno Haible  <bruno@clisp.org>
58592
58593         * m4/printf.m4: Make the shell script snippets copy&pastable.
58594
58595 2007-03-02  Bruno Haible  <bruno@clisp.org>
58596
58597         * lib/netinet_in_.h: New file.
58598         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
58599         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
58600         * modules/netinet_in (Files): Add lib/netinet_in_.h.
58601         (Depends-on): Add absolute-header.
58602         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
58603         into netinet/in.h.
58604
58605 2007-03-03  Bruno Haible  <bruno@clisp.org>
58606
58607         * lib/sys_select_.h: New file.
58608         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
58609         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
58610         * modules/sys_select (Files): Add lib/sys_select_.h.
58611         (Depends-on): Add absolute-header.
58612         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
58613         into sys/select.h.
58614
58615 2007-03-02  Bruno Haible  <bruno@clisp.org>
58616
58617         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
58618         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
58619         values.
58620         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
58621         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
58622         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
58623         * modules/sys_socket (Depends-on): Add absolute-header.
58624         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
58625         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
58626         (Include): Remove requirement of inclusion of <sys/types.h>.
58627
58628 2007-03-02  Bruno Haible  <bruno@clisp.org>
58629
58630         * lib/byteswap_.h (bswap_32): Fix formula.
58631
58632 2007-03-06  Bruno Haible  <bruno@clisp.org>
58633
58634         * modules/sprintf-posix-tests: New file.
58635         * tests/test-sprintf-posix.c: New file.
58636
58637         * modules/sprintf-posix: New file.
58638         * lib/sprintf.c: New file.
58639         * m4/sprintf-posix.m4: New file.
58640         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
58641         REPLACE_SPRINTF.
58642         * lib/stdio_.h (sprintf): New declaration.
58643         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
58644         REPLACE_SPRINTF.
58645
58646 2007-03-06  Bruno Haible  <bruno@clisp.org>
58647
58648         * modules/vsprintf-posix-tests: New file.
58649         * tests/test-vsprintf-posix.c: New file.
58650         * tests/test-sprintf-posix.h: New file.
58651
58652         * modules/vsprintf-posix: New file.
58653         * lib/vsprintf.c: New file.
58654         * m4/vsprintf-posix.m4: New file.
58655         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
58656         REPLACE_VSPRINTF.
58657         * lib/stdio_.h (vsprintf): New declaration.
58658         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
58659         REPLACE_VSPRINTF.
58660
58661 2007-03-06  Bruno Haible  <bruno@clisp.org>
58662
58663         * modules/vsnprintf (Depend-on): Remove minmax.
58664
58665 2007-03-06  Bruno Haible  <bruno@clisp.org>
58666
58667         * modules/snprintf-posix-tests: New file.
58668         * tests/test-snprintf-posix.c: New file.
58669
58670         * modules/snprintf-posix: New file.
58671         * m4/snprintf-posix.m4: New file.
58672         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
58673         gl_FUNC_SNPRINTF.
58674         (gl_FUNC_SNPRINTF): Invoke it.
58675         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
58676         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
58677         is set.
58678         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
58679
58680 2007-03-06  Bruno Haible  <bruno@clisp.org>
58681
58682         * modules/vsnprintf-posix-tests: New file.
58683         * tests/test-vsnprintf-posix.c: New file.
58684         * tests/test-snprintf-posix.h: New file.
58685
58686         * modules/vsnprintf-posix: New file.
58687         * m4/vsnprintf-posix.m4: New file.
58688         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
58689         gl_FUNC_VSNPRINTF.
58690         (gl_FUNC_VSNPRINTF): Invoke it.
58691         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
58692         * lib/stdio_.h (vsnprintf): Define as a replacement if
58693         REPLACE_VSNPRINTF is set.
58694         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
58695
58696 2007-03-06  Bruno Haible  <bruno@clisp.org>
58697
58698         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
58699         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
58700
58701 2007-03-06  Bruno Haible  <bruno@clisp.org>
58702
58703         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
58704         (asinl): Declare also if HAVE_DECL_ASINL is set.
58705         (atanl): Declare also if HAVE_DECL_ATANL is set.
58706         (ceill): Declare also if HAVE_DECL_CEILL is set.
58707         (cosl): Declare also if HAVE_DECL_COSL is set.
58708         (expl): Declare also if HAVE_DECL_EXPL is set.
58709         (floorl): Declare also if HAVE_DECL_FLOORL is set.
58710         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
58711         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
58712         (logl): Declare also if HAVE_DECL_LOGL is set.
58713         (sinl): Declare also if HAVE_DECL_SINL is set.
58714         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
58715         (tanl): Declare also if HAVE_DECL_TANL is set.
58716         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
58717         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
58718         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
58719         declaration of frexpl, ldexpl.
58720         * modules/printf-frexpl (Depends-on): Add math.
58721         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
58722
58723 2007-03-05  Bruno Haible  <bruno@clisp.org>
58724
58725         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
58726         frexpl and ldexpl are declared.
58727         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
58728
58729 2007-03-05  Bruno Haible  <bruno@clisp.org>
58730
58731         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
58732         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
58733
58734 2007-03-05  Bruno Haible  <bruno@clisp.org>
58735
58736         * lib/stdio_.h: Include <stddef.h>.
58737
58738 2007-03-05  Bruno Haible  <bruno@clisp.org>
58739
58740         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
58741
58742 2007-03-05  Bruno Haible  <bruno@clisp.org>
58743
58744         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
58745         NetBSD 4, from Ralf Wildenhues.
58746
58747 2007-03-04  Bruno Haible  <bruno@clisp.org>
58748
58749         * lib/vasprintf.h: Update #if logic for the case when the functions
58750         exist but are overridden.
58751
58752 2007-03-04  Bruno Haible  <bruno@clisp.org>
58753
58754         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
58755         implementations: glibc-2.4 and MacOS X 10.3.
58756         * tests/test-vasnprintf-posix.c (test_function): Test also the case
58757         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
58758         * tests/test-vasprintf-posix.c (test_function): Likewise.
58759
58760 2007-03-04  Bruno Haible  <bruno@clisp.org>
58761
58762         * modules/vasprintf-posix-tests: New file.
58763         * tests/test-vasprintf-posix.c: New file.
58764
58765         * modules/vasprintf-posix: New file.
58766         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
58767         defined.
58768         * m4/vasprintf-posix.m4: New file.
58769         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
58770         gl_FUNC_VASPRINTF.
58771         (gl_FUNC_VASPRINTF): Invoke it.
58772         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
58773         here.
58774         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
58775
58776 2007-03-04  Bruno Haible  <bruno@clisp.org>
58777
58778         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
58779         REPLACE_GETTIMEOFDAY.
58780         * modules/sys_time (Makefile.am): Likewise.
58781         * m4/sys_time_h.m4: Likewise.
58782         * m4/gettimeofday.m4: Likewise.
58783
58784 2007-03-04  Bruno Haible  <bruno@clisp.org>
58785
58786         * modules/vasnprintf-posix-tests: New file.
58787         * tests/test-vasnprintf-posix.c: New file.
58788
58789         * modules/vasnprintf-posix: New file.
58790         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
58791         printf-frexpl.h.
58792         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
58793         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
58794         REPLACE_VASNPRINTF is defined.
58795         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
58796         gl_FUNC_VASNPRINTF.
58797         (gl_FUNC_VASNPRINTF): Invoke it.
58798         * m4/vasnprintf-posix.m4: New file.
58799         * m4/printf.m4: New file.
58800
58801 2007-03-04  Bruno Haible  <bruno@clisp.org>
58802
58803         Compile progreloc.c only if --enable-relocatable is specified.
58804         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
58805         if --enable-relocatable was specified.
58806         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
58807         lib_SOURCES.
58808
58809 2007-03-04  Jim Meyering  <jim@meyering.net>
58810
58811         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
58812         Use it consistently, rather than enumerating errno constants.
58813
58814 2007-03-04  Bruno Haible  <bruno@clisp.org>
58815
58816         * modules/xvasprintf-tests: New file.
58817         * tests/test-xvasprintf.c: New file.
58818
58819         * modules/vasprintf-tests: New file.
58820         * tests/test-vasprintf.c: New file.
58821
58822         * modules/vasnprintf-tests: New file.
58823         * tests/test-vasnprintf.c: New file.
58824
58825         * modules/vsnprintf-tests: New file.
58826         * tests/test-vsnprintf.c: New file.
58827
58828         * modules/snprintf-tests: New file.
58829         * tests/test-snprintf.c: New file.
58830
58831 2007-03-04  Bruno Haible  <bruno@clisp.org>
58832
58833         Compile relocatable.c only if --enable-relocatable is specified.
58834         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
58835         gl_RELOCATABLE_LIBRARY.
58836         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
58837         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
58838         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
58839         gl_RELOCATABLE_LIBRARY.
58840         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
58841         (Makefile.am): Remove lib_SOURCES.
58842         * modules/relocatable-lib-lgpl (configure.ac): Invoke
58843         gl_RELOCATABLE_LIBRARY.
58844         (Makefile.am): Remove lib_SOURCES.
58845         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
58846         always.
58847         * modules/relocatable-prog-wrapper (configure.ac): Invoke
58848         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
58849
58850 2007-03-04  Bruno Haible  <bruno@clisp.org>
58851
58852         * modules/argmatch-tests: New file.
58853         * tests/test-argmatch.c: New file.
58854
58855         * tests/test-allocsa.c (main): Halve the number of loop runs.
58856
58857         * modules/alloca-opt-tests: New file.
58858         * tests/test-alloca-opt.c: New file.
58859
58860 2007-03-04  Jim Meyering  <jim@meyering.net>
58861
58862         Work around difference between Linux ACLs and Solaris 10 ZFS.
58863         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
58864         for EINVAL.
58865
58866 2007-03-03  Bruno Haible  <bruno@clisp.org>
58867
58868         * modules/relocatable-prog (Depends-on): Add back progreloc's
58869         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
58870
58871 2007-03-03  Bruno Haible  <bruno@clisp.org>
58872
58873         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
58874         * modules/relocatable-lib: New file.
58875
58876 2007-03-03  Bruno Haible  <bruno@clisp.org>
58877
58878         * modules/relocatable-prog: Renamed from modules/relocatable.
58879         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
58880
58881 2007-03-03  Bruno Haible  <bruno@clisp.org>
58882
58883         * modules/relocatable-script (Files): Add doc/relocatable.texi,
58884         m4/relocatable-lib.m4.
58885         (Depends-on): Remove 'relocatable'.
58886         (configure.ac): Add gl_RELOCATABLE_NOP.
58887
58888 2007-03-03  Bruno Haible  <bruno@clisp.org>
58889
58890         * modules/relocatable-prog-wrapper: New file.
58891         * modules/relocatable (Depends-on): Add it. Remove all other
58892         dependencies except progname.
58893         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
58894
58895         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
58896         (gl_FUNC_STRERROR): Nop.
58897         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
58898
58899         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
58900         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
58901
58902         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
58903         (gl_FUNC_READLINK): Update.
58904
58905         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
58906
58907 2007-03-03  Bruno Haible  <bruno@clisp.org>
58908
58909         * lib/xreadlink.c: Include <unistd.h> unconditionally.
58910         * modules/xreadlink (Depends-on): Add unistd.
58911         * modules/xreadlink-with-size (Depends-on): Likewise.
58912
58913 2007-03-03  Bruno Haible  <bruno@clisp.org>
58914
58915         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
58916         extracted from gt_FUNC_SETENV.
58917         (gt_FUNC_SETENV): Remove macro.
58918         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
58919         remove gt_FUNC_SETENV.
58920
58921 2007-03-03  Bruno Haible  <bruno@clisp.org>
58922
58923         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
58924         ENABLE_RELOCATABLE here.
58925         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
58926
58927 2007-03-03  Bruno Haible  <bruno@clisp.org>
58928
58929         * modules/rbtreehash-list-tests (Depends-on): Add progname.
58930         * tests/test-rbtreehash_list.c: Include progname.h.
58931         (main): Call set_program_name.
58932
58933         * modules/rbtree-oset-tests (Depends-on): Add progname.
58934         * tests/test-rbtree_oset.c: Include progname.h.
58935         (main): Call set_program_name.
58936
58937         * modules/rbtree-list-tests (Depends-on): Add progname.
58938         * tests/test-rbtree_list.c: Include progname.h.
58939         (main): Call set_program_name.
58940
58941         * modules/linked-list-tests (Depends-on): Add progname.
58942         * tests/test-linked_list.c: Include progname.h.
58943         (main): Call set_program_name.
58944
58945 2007-03-03  Bruno Haible  <bruno@clisp.org>
58946
58947         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
58948         All uses of __restrict changed to _Restrict_.
58949         * lib/glob_.h (__restrict): Remove macro.
58950
58951 2007-03-02  Bruno Haible  <bruno@clisp.org>
58952
58953         * modules/gettext (configure.ac): Require gettext infrastructure
58954         from version 0.16.1.
58955
58956 2007-03-02  Bruno Haible  <bruno@clisp.org>
58957
58958         * modules/linkedhash-list-tests (Depends-on): Add progname.
58959         * tests/test-linkedhash_list.c: Include progname.h.
58960         (main): Call set_program_name.
58961
58962         * modules/carray-list-tests (Depends-on): Add progname.
58963         * tests/test-carray_list.c: Include progname.h.
58964         (main): Call set_program_name.
58965
58966         * modules/avltreehash-list-tests (Depends-on): Add progname.
58967         * tests/test-avltreehash_list.c: Include progname.h.
58968         (main): Call set_program_name.
58969
58970         * modules/avltree-oset-tests (Depends-on): Add progname.
58971         * tests/test-avltree_oset.c: Include progname.h.
58972         (main): Call set_program_name.
58973
58974         * modules/avltree-list-tests (Depends-on): Add progname.
58975         * tests/test-avltree_list.c: Include progname.h.
58976         (main): Call set_program_name.
58977
58978         * modules/array-oset-tests (Depends-on): Add progname.
58979         * tests/test-array_oset.c: Include progname.h.
58980         (main): Call set_program_name.
58981
58982         * modules/array-list-tests (Depends-on): Add progname.
58983         * tests/test-array_list.c: Include progname.h.
58984         (main): Call set_program_name.
58985
58986         * modules/argp-tests (Depends-on): Add progname.
58987         * tests/test-argp.c: Include argp.h first. Include progname.h.
58988         (main): Call set_program_name.
58989
58990 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
58991
58992         * doc/gnulib-tool.texi (Initial import): Reword description of
58993         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
58994         limited effect even if defined after the first system include.
58995
58996 2007-03-01  Bruno Haible  <bruno@clisp.org>
58997
58998         * build-aux/config.libpath: Update to libtool-1.5.22.
58999         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59000
59001 2007-03-01  Bruno Haible  <bruno@clisp.org>
59002
59003         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
59004         foo_CFLAGS.
59005         Reported by Ralf Wildenhues.
59006
59007 2007-03-01  Bruno Haible  <bruno@clisp.org>
59008
59009         * build-aux/install-reloc: Remove object files left over by some
59010         compilers.
59011         Reported by Ralf Wildenhues.
59012
59013 2007-03-01  Bruno Haible  <bruno@clisp.org>
59014
59015         * build-aux/install-reloc: Break long lines.
59016
59017 2007-03-01  Bruno Haible  <bruno@clisp.org>
59018
59019         * doc/relocatable.texi: Document that it may not work on OpenBSD.
59020         Reported by Ralf Wildenhues.
59021
59022 2007-03-01  Bruno Haible  <bruno@clisp.org>
59023
59024         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
59025         include ordering constraints.
59026
59027 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59028
59029         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
59030         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
59031         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
59032         as another example.
59033         * lib/time_.h: Fix misspelling.
59034         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
59035         Require gl_HEADER_TIME_H_DEFAULTS.
59036         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
59037         * m4/time_r.m4 (gl_TIME_R): Likewise.
59038         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
59039
59040 2007-03-01  Bruno Haible  <bruno@clisp.org>
59041
59042         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
59043         * m4/utimens.m4 (gl_UTIMENS): Likewise.
59044
59045 2007-03-01  Jim Meyering  <jim@meyering.net>
59046
59047         * modules/xreadlink (Maintainer): Add my name.
59048         * modules/xreadlink-with-size (Depends-on): Alphabetize.
59049
59050 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
59051             Bruno Haible  <bruno@clisp.org>
59052
59053         * build-aux/install-reloc: Compile also c-ctype.c.
59054         * build-aux/relocatable.sh.in: New file.
59055         * doc/relocatable.texi: New file.
59056         * doc/relocatable-maint.texi: New file.
59057         * doc/gnulib.texi: Include relocatable-maint.texi.
59058         * lib/progreloc.c: Include unistd.h unconditionally.
59059         * lib/relocwrapper.c: Include unistd.h unconditionally.
59060         Include c-ctype.h.
59061         (add_dotbin): Use c_tolower.
59062         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
59063         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
59064         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
59065         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
59066         to m4/relocatable-lib.m4.
59067         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
59068         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
59069         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
59070         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
59071         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
59072         * modules/relocatable: New file.
59073         * modules/relocatable-lib: New file.
59074         * modules/relocatable-script: New file.
59075
59076 2007-02-28  Bruno Haible  <bruno@clisp.org>
59077
59078         Import --enable-relocatable infrastructure.
59079         * build-aux/config.libpath: New file, from GNU gettext.
59080         * build-aux/install-reloc: New file, from GNU gettext.
59081         * build-aux/reloc-ldflags: New file, from GNU gettext.
59082         * lib/relocatable.h: New file, from GNU gettext.
59083         * lib/relocatable.c: New file, from GNU gettext.
59084         * lib/relocwrapper.c: New file, from GNU gettext.
59085         * m4/relocatable.m4: New file, from GNU gettext.
59086
59087 2007-02-28  Bruno Haible  <bruno@clisp.org>
59088
59089         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
59090
59091         * modules/xreadlink: New file, from GNU gettext with modifications.
59092         * lib/xreadlink.c: New file, from GNU gettext.
59093         * lib/xreadlink.h: Add comments.
59094         (xreadlink): New declaration.
59095
59096         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
59097         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
59098         lib/xreadlink-with-size.c.
59099         (configure.ac): Remove gl_XREADLINK invocation.
59100         (Makefile.am): Augment lib_SOURCES.
59101         * m4/xreadlink.m4: Remove file.
59102         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
59103         (xreadlink_with_size): Renamed from xreadink.
59104         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
59105         * modules/canonicalize (Depends-on): Replace xreadlink with
59106         xreadlink-with-size.
59107         * lib/canonicalize.c (canonicalize_filename_mode): Update.
59108
59109 2007-02-25  Jim Meyering  <jim@meyering.net>
59110
59111         * build-aux/announce-gen: When complaining about excess arguments,
59112         list them.
59113
59114 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
59115
59116         * README: Document signed integer overflow situation more
59117         accurately.
59118
59119 2007-02-25  Bruno Haible  <bruno@clisp.org>
59120
59121         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
59122         'a' or 'A' conversion.
59123
59124 2007-02-25  Bruno Haible  <bruno@clisp.org>
59125
59126         * modules/filename: Renamed from modules/pathname.
59127         (Files): Replace lib/pathname.h with lib/filename.h. Replace
59128         lib/concatpath.c with lib/concat-filename.c.
59129         (Makefile.am): Update.
59130         (Include): Replace pathname.h with filename.h.
59131         * lib/filename.h: Renamed from lib/pathname.h.
59132         (concatenated_filename): Renamed from concatenated_pathname.
59133         * lib/concat-filename.c: Renamed from lib/concatpath.c.
59134         (concatenated_filename): Renamed from concatenated_pathname.
59135         * lib/findprog.c: Include filename.h instead of pathname.h.
59136         (find_in_path): Update.
59137         * lib/javacomp.c: Include filename.h instead of pathname.h.
59138         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
59139         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
59140         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
59141         is_oldgcj_14_13_usable, is_javac_usable): Update.
59142         * lib/javaexec.c: Include filename.h instead of pathname.h.
59143         (execute_java_class): Update.
59144         * modules/findprog: Update.
59145         * modules/javacomp: Update.
59146         * modules/javaexec: Update.
59147         * MODULES.html.sh (File system functions): Add 'filename', remove
59148         'pathname'.
59149
59150 2007-02-25  Bruno Haible  <bruno@clisp.org>
59151
59152         * modules/printf-frexpl-tests: New file.
59153         * tests/test-printf-frexpl.c: New file.
59154
59155         * modules/printf-frexpl: New file.
59156         * lib/printf-frexpl.h: New file.
59157         * lib/printf-frexpl.c: New file.
59158         * m4/printf-frexpl.m4: New file.
59159
59160 2007-02-25  Bruno Haible  <bruno@clisp.org>
59161
59162         * modules/printf-frexp-tests: New file.
59163         * tests/test-printf-frexp.c: New file.
59164
59165         * modules/printf-frexp: New file.
59166         * lib/printf-frexp.h: New file.
59167         * lib/printf-frexp.c: New file.
59168         * m4/printf-frexp.m4: New file.
59169
59170 2007-02-25  Bruno Haible  <bruno@clisp.org>
59171
59172         Assume automake >= 1.10 for the tests.
59173         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
59174         * modules/arctwo-tests: Likewise.
59175         * modules/argp-tests: Likewise.
59176         * modules/avltree-list-tests: Likewise.
59177         * modules/avltree-oset-tests: Likewise.
59178         * modules/avltreehash-list-tests: Likewise.
59179         * modules/carray-list-tests: Likewise.
59180         * modules/crc-tests: Likewise.
59181         * modules/des-tests: Likewise.
59182         * modules/gc-arcfour-tests: Likewise.
59183         * modules/gc-arctwo-tests: Likewise.
59184         * modules/gc-des-tests: Likewise.
59185         * modules/gc-hmac-md5-tests: Likewise.
59186         * modules/gc-hmac-sha1-tests: Likewise.
59187         * modules/gc-md2-tests: Likewise.
59188         * modules/gc-md4-tests: Likewise.
59189         * modules/gc-md5-tests: Likewise.
59190         * modules/gc-pbkdf2-sha1-tests: Likewise.
59191         * modules/gc-rijndael-tests: Likewise.
59192         * modules/gc-sha1-tests: Likewise.
59193         * modules/gc-tests: Likewise.
59194         * modules/getaddrinfo-tests: Likewise.
59195         * modules/hmac-md5-tests: Likewise.
59196         * modules/hmac-sha1-tests: Likewise.
59197         * modules/linked-list-tests: Likewise.
59198         * modules/linkedhash-list-tests: Likewise.
59199         * modules/lock-tests: Likewise.
59200         * modules/md2-tests: Likewise.
59201         * modules/md4-tests: Likewise.
59202         * modules/md5-tests: Likewise.
59203         * modules/rbtree-list-tests: Likewise.
59204         * modules/rbtree-oset-tests: Likewise.
59205         * modules/rbtreehash-list-tests: Likewise.
59206         * modules/read-file-tests: Likewise.
59207         * modules/rijndael-tests: Likewise.
59208         * modules/stdint-tests: Likewise.
59209         * modules/tls-tests: Likewise.
59210
59211 2007-02-24  Bruno Haible  <bruno@clisp.org>
59212
59213         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
59214         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
59215         function; instead check whether isnan with a double argument links.
59216         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
59217         function; instead check whether isnan with a 'long double' argument
59218         links.
59219         Reported by Eric Blake <ebb9@byu.net>.
59220
59221 2007-02-24  Bruno Haible  <bruno@clisp.org>
59222
59223         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
59224         defined.
59225         * lib/isnanl.c: Remove all code. Just include isnan.c.
59226         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
59227
59228 2007-02-25  Jim Meyering  <jim@meyering.net>
59229
59230         Avoid conflicting types for 'unsetenv' on FreeBSD.
59231         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
59232         conflicting with FreeBSD's (5.0 and 6.1) function declaration
59233         in stdlib.h.
59234
59235 2007-02-24  Bruno Haible  <bruno@clisp.org>
59236
59237         * modules/isnanl-nolibm-tests: New file.
59238         * tests/test-isnanl.c: New file.
59239
59240         * modules/isnanl-nolibm: New file.
59241         * lib/isnanl.h: New file.
59242         * lib/isnanl.c: New file.
59243         * m4/isnanl.m4: New file.
59244
59245 2007-02-24  Bruno Haible  <bruno@clisp.org>
59246
59247         * modules/isnan-nolibm-tests: New file.
59248         * tests/test-isnan.c: New file.
59249
59250         * modules/isnan-nolibm: New file.
59251         * lib/isnan.h: New file.
59252         * lib/isnan.c: New file.
59253         * m4/isnan.m4: New file.
59254
59255 2007-02-24  Bruno Haible  <bruno@clisp.org>
59256
59257         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
59258         assume that an exponent fits in 20 bits.
59259
59260 2007-02-24  Jim Meyering  <jim@meyering.net>
59261
59262         * m4/regex.m4: Update the description of the configure-time option,
59263         --without-included-regex, to state accurately what the defaults are,
59264         and perhaps to give people an idea why using this option is risky.
59265
59266 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
59267
59268         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
59269         loops on small arguments.  This attempts to avoid the problem
59270         Bruno Haible reported for AIX 4.3.2 in
59271         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
59272
59273 2007-02-23  Bruno Haible  <bruno@clisp.org>
59274
59275         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
59276         Needed for help2man.
59277
59278 2007-02-23  Karl Berry  <karl@gnu.org>
59279
59280         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
59281         exists, foo.h should be cvs-ignored, not committed.
59282
59283 2007-02-23  Eric Blake  <ebb9@byu.net>
59284
59285         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
59286         * lib/stat-time.h (includes): Likewise.
59287         * lib/utimecmp.c (includes): Likewise.
59288         * lib/utimens.h (includes): Likewise.
59289         * lib/getdate.y (includes): Also include "timespec.h" for use
59290         internal to the module.
59291         * modules/utimens (Depends-on): Revert yesterday's patch.
59292         * modules/nanosleep (Depends-on): Add missing dependency.
59293
59294 2007-02-22  Bruno Haible  <bruno@clisp.org>
59295
59296         * lib/glob.c: Don't include getlogin_r.h.
59297
59298 2007-02-22  Jim Meyering  <jim@meyering.net>
59299
59300         * modules/utimens (Depends-on): Add timespec, required for
59301         utimens.h's inclusion of timespec.h.
59302
59303 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
59304
59305         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
59306         long unreadable paths in GNU/Linux.  Problem reported by Andreas
59307         Schwab in
59308         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
59309         I'll try to think of a better way to fix the Solaris problem.
59310
59311         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
59312         like glibc; on Solaris 10, it fails with errno == EINVAL.
59313         POSIX says the behavior is unspecified if the first argument is NULL,
59314         so play it safe and never pass NULL to the system getcwd.
59315
59316 2007-02-21  Jim Meyering  <jim@meyering.net>
59317
59318         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
59319         of gettimeofday.  It would conflict with the one now always
59320         provided via sys_time_.h.  Reported by Matthew Woehlke, as
59321         an IRIX 6.5 build failure.
59322
59323 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
59324
59325         Minor fixups to port to Solaris 10 with Sun C 5.8.
59326         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
59327         * modules/getcwd (Depends-on): Add dirfd.
59328         * lib/putenv.c (putenv): #undef it.
59329         (rpl_putenv): New decl.
59330         (malloc, free): Include <stdlib.h> rather than prototyping separately.
59331
59332 2007-02-20  Bruno Haible  <bruno@clisp.org>
59333
59334         * modules/stdio-tests: New file.
59335         * tests/test-stdio.c: New file.
59336
59337         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
59338         (Depends-on): Add stdio.
59339         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
59340         (Include): Use <stdio.h> instead of vsnprintf.h.
59341         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
59342         HAVE_DECL_VSNPRINTF.
59343         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
59344
59345         * modules/snprintf (Files): Remove lib/snprintf.h.
59346         (Depends-on): Add stdio.
59347         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
59348         (Include): Use <stdio.h> instead of snprintf.h.
59349         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
59350         HAVE_DECL_SNPRINTF.
59351         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
59352         * lib/getaddrinfo.c: Likewise.
59353
59354         * modules/stdio: New file.
59355         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
59356         * lib/snprintf.h: Remove file.
59357         * lib/vsnprintf.h: Remove file.
59358         * lib/.cppi-disable: Remove snprintf.h.
59359         * m4/stdio_h.m4: New file.
59360         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
59361
59362 2007-02-20  Jim Meyering  <jim@meyering.net>
59363
59364         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
59365         used by e.g., mingw.  From Bruno Haible.
59366
59367 2007-02-19  Bruno Haible  <bruno@clisp.org>
59368
59369         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
59370         warnings.
59371         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59372
59373 2007-02-19  Bruno Haible  <bruno@clisp.org>
59374
59375         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
59376         from mingw users.
59377
59378 2007-02-19  Bruno Haible  <bruno@clisp.org>
59379
59380         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
59381         warnings.
59382         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
59383
59384 2007-02-19  Jim Meyering  <jim@meyering.net>
59385
59386         Don't use FD after a successful "fdopendir (fd)".
59387         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
59388         Reset it by calling dirfd on the just-obtained DIR*.
59389
59390         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
59391         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
59392
59393 2007-02-18  Bruno Haible  <bruno@clisp.org>
59394
59395         * lib/readlink.c: Include <unistd.h>.
59396         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
59397         HAVE_READLINK.
59398         * modules/readlink (Depends-on): Add unistd.
59399         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59400         (Include): Add <unistd.h>.
59401
59402         * lib/getlogin_r.h: Remove file.
59403         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
59404         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
59405         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
59406         HAVE_DECL_GETLOGIN_R.
59407         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
59408         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59409         (Include): Use <unistd.h> instead of getlogin_r.h.
59410
59411         * lib/getcwd.h: Remove file.
59412         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
59413         * lib/xgetcwd.c: Likewise.
59414         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
59415         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
59416         * modules/getcwd (Files): Remove lib/getcwd.h.
59417         (Depends-on): Add unistd.
59418         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59419         (Include): Use <unistd.h> instad of getcwd.h.
59420
59421         * lib/ftruncate.c: Include <unistd.h> first.
59422         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
59423         Set HAVE_FTRUNCATE.
59424         * modules/ftruncate (Depends-on): Add unistd.
59425         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59426
59427         * lib/fchdir.c: Include <unistd.h> first.
59428         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
59429         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
59430         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
59431         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59432         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
59433
59434         * lib/dup2.c: Include <unistd.h> first.
59435         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
59436         HAVE_DUP2.
59437         * modules/dup2 (Depends-on): Add unistd.
59438         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59439
59440         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
59441         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
59442         REPLACE_CHOWN. Don't define chown as a macro here.
59443         * modules/chown (Depends-on): Add unistd.
59444         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59445
59446         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
59447         Add definition for GL_LINK_WARNING.
59448         (chown, dup2): New declarations.
59449         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
59450         link warning.
59451         (ftruncate): New declaration.
59452         (getcwd): New declaration, taken from old getcwd.h.
59453         (getlogin_r): New declaration, taken from old getlogin_r.h.
59454         (readlink): New declaration.
59455         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
59456         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
59457         (gl_PREREQ_UNISTD): Remove macro.
59458         (gl_UNISTD_MODULE_INDICATOR): New macro.
59459         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
59460         many new variables. Don't set UNISTD_H.
59461         * modules/unistd (Description): Change.
59462         (Depends-on): Add link-warning.
59463         (configure.ac): Update.
59464         (Makefile.am): Create unistd.h always. Substitute many new variables
59465         into it.
59466
59467 2007-02-18  Bruno Haible  <bruno@clisp.org>
59468
59469         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
59470         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
59471         HAVE_GETSUBOPT.
59472         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
59473         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
59474         * lib/getsubopt.h: Remove file.
59475         * modules/getsubopt (Files): Remove lib/getsubopt.h.
59476         (Depends-on): Add stdlib.
59477         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59478         (Includes): Use <stdlib.h> instead of getsubopt.h.
59479         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
59480         Set HAVE_GETSUBOPT.
59481         * lib/getsubopt.c: Don't include getsubopt.h.
59482
59483 2007-02-18  Bruno Haible  <bruno@clisp.org>
59484
59485         * modules/fchdir (Depends-on): Add dup2.
59486
59487 2007-02-18  Bruno Haible  <bruno@clisp.org>
59488
59489         * lib/stdlib_.h: Handle glibc's special invocation convention
59490         specially.
59491
59492 2007-02-18  Bruno Haible  <bruno@clisp.org>
59493
59494         * modules/stdlib-tests: New file.
59495         * tests/test-stdlib.c: New file.
59496
59497         * modules/mkstemp (Files): Remove lib/mkstemp.h.
59498         (Depends-on): Add stdlib.
59499         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59500         (Includes): Use <stdlib.h> instead of mkstemp.h.
59501         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
59502         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
59503         * lib/mkstemp.c: Don't include mkstemp.h.
59504         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
59505         * lib/stdlib--.h: Don't include mkstemp.h.
59506
59507         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
59508         (Depends-on): Add stdlib.
59509         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59510         (Includes): Use <stdlib.h> instead of mkdtemp.h.
59511         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
59512         HAVE_MKDTEMP.
59513         * lib/mkdtemp.c: Don't include mkdtemp.h.
59514         * lib/clean-temp.c: Don't include mkdtemp.h.
59515
59516         * modules/exit (Files): Remove lib/exit.h.
59517         (Depends-on): Add stdlib.
59518         (Makefile.am): Remove lib_SOURCES.
59519         (Include): Use <stdlib.h> instead of exit.h.
59520         * lib/argmatch.c: Don't include exit.h.
59521         * lib/execute.c: Likewise.
59522         * lib/pagealign_alloc.c: Likewise.
59523         * lib/pipe.c: Likewise.
59524         * lib/wait-process.c: Likewise.
59525         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
59526         * lib/exitfail.c: Likewise.
59527         * lib/savewd.c: Likewise.
59528         * lib/xsetenv.c: Likewise.
59529
59530         * modules/stdlib: New file.
59531         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
59532         and extra comments about mkstemp().
59533         * lib/exit.h: Remove file.
59534         * lib/mkdtemp.h: Remove file.
59535         * lib/mkstemp.h: Remove file.
59536         * m4/stdlib_h.m4: New file.
59537         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
59538
59539 2007-02-18  Bruno Haible  <bruno@clisp.org>
59540
59541         * modules/math-tests: New file.
59542         * tests/test-math.c: New file.
59543
59544         * modules/math: New file.
59545         * modules/mathl (Files): Remove lib/mathl.h.
59546         (Depends-on): Add math.
59547         (Makefile.am): Don't mention mathl.h.
59548         (Include): Use <math.h> instead of mathl.h.
59549         * lib/math_.h: New file.
59550         * lib/mathl.h: Remove file.
59551         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
59552         mathl.h.
59553         * lib/asinl.c: Likewise.
59554         * lib/atanl.c: Likewise.
59555         * lib/ceill.c: Likewise.
59556         * lib/cosl.c: Likewise.
59557         * lib/expl.c: Likewise.
59558         * lib/floorl.c: Likewise.
59559         * lib/frexpl.c: Likewise.
59560         * lib/ldexpl.c: Likewise.
59561         * lib/logl.c: Likewise.
59562         * lib/sincosl.c: Likewise.
59563         * lib/sinl.c: Likewise.
59564         * lib/sqrtl.c: Likewise.
59565         * lib/tanl.c: Likewise.
59566         * lib/trigl.c: Likewise.
59567         * m4/math_h.m4: New file.
59568         * MODULES.html.sh (Mathematics): Add math.
59569
59570 2007-02-17  Bruno Haible  <bruno@clisp.org>
59571
59572         * modules/wctype-tests: New file.
59573         * tests/test-wctype.c: New file.
59574
59575         * modules/wchar-tests: New file.
59576         * tests/test-wchar.c: New file.
59577
59578         * modules/unistd-tests: New file.
59579         * tests/test-unistd.c: New file.
59580
59581         * modules/time-tests: New file.
59582         * tests/test-time.c: New file.
59583
59584         * modules/sysexits-tests: New file.
59585         * tests/test-sysexits.c: New file.
59586
59587         * modules/sys_time-tests: New file.
59588         * tests/test-sys_time.c: New file.
59589
59590         * modules/sys_stat-tests: New file.
59591         * tests/test-sys_stat.c: New file.
59592
59593         * modules/sys_socket-tests: New file.
59594         * tests/test-sys_socket.c: New file.
59595
59596         * modules/sys_select-tests: New file.
59597         * tests/test-sys_select.c: New file.
59598
59599         * modules/string-tests: New file.
59600         * tests/test-string.c: New file.
59601
59602         * modules/stdbool-tests: New file.
59603         * tests/test-stdbool.c: New file.
59604
59605         * modules/netinet_in-tests: New file.
59606         * tests/test-netinet_in.c: New file.
59607
59608         * modules/inttypes-tests: New file.
59609         * tests/test-inttypes.c: New file.
59610
59611         * modules/fcntl-tests: New file.
59612         * tests/test-fcntl.c: New file.
59613
59614         * modules/byteswap-tests: New file.
59615         * tests/test-byteswap.c: New file.
59616
59617         * modules/arpa_inet-tests: New file.
59618         * tests/test-arpa_inet.c: New file.
59619
59620 2007-02-17  Bruno Haible  <bruno@clisp.org>
59621
59622         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
59623         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
59624         if the corresponding module is not enabled. Emit link warnings if
59625         the function is used nevertheless.
59626         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
59627         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
59628         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
59629         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
59630         * modules/inttypes (Depends-on): Add link-warning.
59631         (Makefile.am): Copy the contents of build-aux/link-warning.h into
59632         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
59633         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
59634         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
59635         * modules/imaxdiv (configure.ac): Likewise.
59636         * modules/strtoimax (configure.ac): Likewise.
59637         * modules/strtoumax (configure.ac): Likewise.
59638
59639 2007-02-17  Bruno Haible  <bruno@clisp.org>
59640
59641         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
59642         gl_STRING_MODULE_INDICATOR_DEFAULTS.
59643         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
59644         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
59645
59646 2007-02-17  Bruno Haible  <bruno@clisp.org>
59647
59648         * modules/link-warning: New file.
59649         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
59650         * lib/string_.h (GL_LINK_WARNING): Remove definition.
59651         * modules/string (Depends-on): Add link-warning.
59652         (Makefile.am): Copy the contents of build-aux/link-warning.h into
59653         string.h.
59654         * MODULES.html.sh (Support for building libraries and executables): Add
59655         link-warning.
59656
59657 2007-02-17  Bruno Haible  <bruno@clisp.org>
59658
59659         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
59660         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
59661         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
59662         long lines.
59663
59664 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
59665             Bruno Haible  <bruno@clisp.org>
59666
59667         * modules/tmpfile: New file.
59668         * lib/tmpfile.c: New file.
59669         * m4/tmpfile.m4: New file.
59670         * MODULES.html.sh (func_all_modules): New section "Input/output".
59671
59672 2007-02-15  Bruno Haible  <bruno@clisp.org>
59673
59674         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
59675         (supports_delete_on_close): New function.
59676         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
59677
59678 2007-02-14  Bruno Haible  <bruno@clisp.org>
59679
59680         * modules/mbspcasecmp-tests: New file.
59681         * tests/test-mbspcasecmp.sh: New file.
59682         * tests/test-mbspcasecmp.c: New file.
59683
59684         New module mbspcasecmp.
59685         * modules/mbspcasecmp: New file.
59686         * lib/mbspcasecmp.c: New file.
59687         * lib/string_.h (strncasecmp): Change warning message.
59688         (mbspcasecmp): New declaration.
59689         * m4/mbspcasecmp.m4: New file.
59690         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59691         GNULIB_MBSPCASECMP.
59692         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
59693         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
59694
59695 2007-02-14  Bruno Haible  <bruno@clisp.org>
59696
59697         * modules/mbsncasecmp-tests: New file.
59698         * tests/test-mbsncasecmp.sh: New file.
59699         * tests/test-mbsncasecmp.c: New file.
59700
59701         New module mbsncasecmp.
59702         * modules/mbsncasecmp: New file.
59703         * lib/mbsncasecmp.c: New file.
59704         * lib/string_.h (mbsncasecmp): New declaration.
59705         * m4/mbsncasecmp.m4: New file.
59706         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59707         GNULIB_MBSNCASECMP.
59708         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
59709         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
59710
59711 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
59712
59713         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
59714         Verify that it doesn't overlap with our flags.
59715         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
59716         do not have the desired effect in multibyte locales; instead, use
59717         mbscasecmp.
59718         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
59719         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
59720         we don't require GNU fnmatch ourselves (if our users require it, they
59721         should do so explicitly).
59722
59723         Fix regex code so it doesn't rely on strcasecmp.
59724         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
59725         Otherwise, include gnulib's langinfo.h.
59726         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
59727         undesirable behavior in non-C locales.  Instead, rely on localecharset.
59728         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
59729         * modules/regex (FILES): Remove m4/codeset.m4.
59730         (Depends-on): Add localcharset.  Remove strcase.
59731
59732 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59733
59734         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
59735         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
59736
59737 2007-02-13  Bruno Haible  <bruno@clisp.org>
59738
59739         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
59740         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59741
59742 2007-02-12  Bruno Haible  <bruno@clisp.org>
59743
59744         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
59745         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
59746         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
59747         time warning rather than a link error.
59748
59749 2007-02-12  Bruno Haible  <bruno@clisp.org>
59750
59751         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
59752         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59753         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59754
59755 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59756
59757         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
59758         args, not 2.
59759
59760 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59761
59762         New module 'time', so that apps can include <time.h> as per
59763         POSIX and GNU instead of separate include files like time_r.h
59764         and timegm.h.  This implementation tries out a simpler approach
59765         for replacing decls in standard include files (as compared to
59766         the string module), somewhat as an experiment.
59767
59768         * config/srclist.txt: Comment out mktime.c for now.
59769         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
59770         since it doesn't apply any more.  Use generic wording instead.
59771         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
59772         'time'.
59773         * lib/time_.h, m4/time_h.m4, modules/time: New files.
59774         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
59775         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
59776         Don't include <sys/types.h>; no longer needed since we assume C89.
59777         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
59778         * lib/strftime.c: Likewise.
59779         * lib/time_r.c: Likewise.
59780         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
59781         * lib/nanosleep.c: Include <time.h> first, to check interface.
59782         * lib/strptime.c: Likewise.
59783         * lib/time_r.c: Likewise.
59784         * lib/timegm.c: Likewise.
59785         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
59786         needed.
59787         * lib/timegm.c: Don't include timegm.h; no longer needed.
59788         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
59789         time.h now handles any problems in that area.
59790         (struct timespec, nanosleep): Remove; time.h now arranges for these.
59791         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
59792         that time.h defines struct timespec.
59793         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
59794         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
59795         handles that.
59796         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
59797         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
59798         needed.  Set REPLACE_LOCALTIME.
59799         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
59800         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
59801         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
59802         nanosleep; time_h.m4 now does that.  Don't require
59803         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
59804         module handles this now.
59805         * modules/getdate (Depends-on): Remove timespec.  Add time.
59806         * modules/nanosleep (Depends-on): Likewise.
59807         * modules/stat-time (Depends-on): Likewise.
59808         * modules/nanosleep (Include): Include time.h, not timespec.h.
59809         * modules/strptime (Files): Remove lib/strptime.h.
59810         (Depends-on): Add extensions, time.
59811         (Include): Include time.h, not strptime.h.
59812         * modules/time_r (Files): Remove lib/time_r.h.
59813         (Depends-on): Add time.
59814         (Include): Include time.h, not time_r.h.
59815         * modules/timegm: Likewise.
59816         * modules/timespec (Description): Now does timespec-related decls
59817         of our own, instead of struct timespec itself.
59818         (Depends-on): Add time; remove extensions.
59819         (Maintainer): Add self.
59820         * modules/utimecmp (Depends-on): Add time; remove timespec.
59821         * modules/utimens (Depends-on): Likewise.
59822         * modules/xnanosleep (Depends-on): Likewise.
59823
59824 2007-02-11  Bruno Haible  <bruno@clisp.org>
59825
59826         * lib/c-strstr.c: Include allocsa.h.
59827         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59828         * lib/c-strcasestr.c: Include allocsa.h.
59829         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59830         * lib/strcasestr.c: Include allocsa.h.
59831         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59832         * lib/mbsstr.c: Include allocsa.h.
59833         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
59834         allocsa/freesa instead of malloc/free.
59835         * lib/mbscasestr.c: Include allocsa.h.
59836         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
59837         allocsa/freesa instead of malloc/free.
59838         * modules/c-strstr (Depends-on): Add allocsa.
59839         * modules/c-strcasestr (Depends-on): Likewise.
59840         * modules/strcasestr (Depends-on): Likewise.
59841         * modules/mbsstr (Depends-on): Likewise.
59842         * modules/mbscasestr (Depends-on): Likewise.
59843
59844 2007-02-11  Bruno Haible  <bruno@clisp.org>
59845
59846         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
59847
59848         * modules/mbsspn-tests: New file.
59849         * tests/test-mbsspn.sh: New file.
59850         * tests/test-mbsspn.c: New file.
59851
59852 2007-02-11  Bruno Haible  <bruno@clisp.org>
59853
59854         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
59855
59856         * modules/mbspbrk-tests: New file.
59857         * tests/test-mbspbrk.sh: New file.
59858         * tests/test-mbspbrk.c: New file.
59859
59860 2007-02-11  Bruno Haible  <bruno@clisp.org>
59861
59862         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
59863         unneeded cast.
59864
59865         * modules/mbscspn-tests: New file.
59866         * tests/test-mbscspn.sh: New file.
59867         * tests/test-mbscspn.c: New file.
59868
59869 2007-02-11  Bruno Haible  <bruno@clisp.org>
59870
59871         * modules/mbscasecmp-tests: New file.
59872         * tests/test-mbscasecmp.sh: New file.
59873         * tests/test-mbscasecmp.c: New file.
59874
59875 2007-02-11  Bruno Haible  <bruno@clisp.org>
59876
59877         Ensure O(n) worst-case complexity of mbscasestr.
59878         * lib/mbscasestr.c: Include stdbool.h.
59879         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
59880         functions.
59881         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
59882         the bookkeeping indicates that it's worth it.
59883         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
59884
59885         * modules/mbscasestr-tests: New file.
59886         * tests/test-mbscasestr1.c: New file.
59887         * tests/test-mbscasestr2.sh: New file.
59888         * tests/test-mbscasestr2.c: New file.
59889         * tests/test-mbscasestr3.sh: New file.
59890         * tests/test-mbscasestr3.c: New file.
59891         * tests/test-mbscasestr4.sh: New file.
59892         * tests/test-mbscasestr4.c: New file.
59893         * m4/locale-tr.m4: New file.
59894
59895 2007-02-11  Bruno Haible  <bruno@clisp.org>
59896
59897         Ensure O(n) worst-case complexity of mbsstr.
59898         * lib/mbsstr.c: Include stdbool.h.
59899         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
59900         functions.
59901         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
59902         bookkeeping indicates that it's worth it.
59903         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
59904
59905         * modules/mbsstr-tests: New file.
59906         * tests/test-mbsstr1.c: New file.
59907         * tests/test-mbsstr2.sh: New file.
59908         * tests/test-mbsstr2.c: New file.
59909         * tests/test-mbsstr3.sh: New file.
59910         * tests/test-mbsstr3.c: New file.
59911         * m4/locale-fr.m4: New file.
59912
59913 2007-02-11  Bruno Haible  <bruno@clisp.org>
59914
59915         * lib/mbsrchr.c (mbsrchr): Fix bug.
59916
59917         * modules/mbsrchr-tests: New file.
59918         * tests/test-mbsrchr.sh: New file.
59919         * tests/test-mbsrchr.c: New file.
59920
59921 2007-02-11  Bruno Haible  <bruno@clisp.org>
59922
59923         * lib/mbschr.c (mbschr): Fix bug.
59924
59925         * modules/mbschr-tests: New file.
59926         * tests/test-mbschr.sh: New file.
59927         * tests/test-mbschr.c: New file.
59928         * m4/locale-zh.m4: New file.
59929
59930 2007-02-11  Bruno Haible  <bruno@clisp.org>
59931
59932         Support for copying multibyte string iterators.
59933         * lib/mbiter.h: Include <string.h>.
59934         (mbiter_multi_copy): New function.
59935         (mbi_copy): New macro.
59936         * lib/mbuiter.h: Include <string.h>.
59937         (mbuiter_multi_copy): New function.
59938         (mbui_copy): New macro.
59939
59940 2007-02-11  Bruno Haible  <bruno@clisp.org>
59941
59942         New module mbslen.
59943         * modules/mbslen: New file.
59944         * lib/mbslen.c: New file.
59945         * lib/string_.h (mbslen): New declaration.
59946         * m4/mbslen.m4: New file.
59947         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59948         GNULIB_MBSLEN.
59949         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
59950         * MODULES.html.sh (Internationalization functions): Add mbslen.
59951
59952 2007-02-11  Bruno Haible  <bruno@clisp.org>
59953
59954         Ensure O(n) worst-case complexity of strcasestr substitute.
59955         * lib/strcasestr.c: Include stdbool.h.
59956         (knuth_morris_pratt): New function.
59957         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
59958         bookkeeping indicates that it's worth it.
59959         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
59960
59961         * modules/strcasestr-tests: New file.
59962         * tests/test-strcasestr.c: New file.
59963
59964 2007-02-11  Bruno Haible  <bruno@clisp.org>
59965
59966         Ensure O(n) worst-case complexity of c_strcasestr.
59967         * lib/c-strcasestr.c: Include stdbool.h, string.h.
59968         (knuth_morris_pratt): New function.
59969         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
59970         the bookkeeping indicates that it's worth it.
59971         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
59972
59973         * modules/c-strcasestr-tests: New file.
59974         * tests/test-c-strcasestr.c: New file.
59975
59976 2007-02-11  Bruno Haible  <bruno@clisp.org>
59977
59978         Ensure O(n) worst-case complexity of c_strstr.
59979         * lib/c-strstr.c: Include stdbool.h, string.h.
59980         (knuth_morris_pratt): New function.
59981         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
59982         bookkeeping indicates that it's worth it.
59983         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
59984
59985         * lib/c-strstr.c: Complete rewrite for maintainability.
59986
59987         * modules/c-strstr-tests: New file.
59988         * tests/test-c-strstr.c: New file.
59989
59990 2007-02-11  Bruno Haible  <bruno@clisp.org>
59991
59992         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
59993         5.2.1 and earlier, whereby \055 was treated just like the range
59994         delimiter '-'.
59995         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59996
59997 2007-02-08  Bruno Haible  <bruno@clisp.org>
59998
59999         * modules/regex (Depends-on): Add stdbool.
60000         Reported by Dalibor Topic <robilad@kaffe.org>.
60001
60002 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
60003
60004         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
60005         Prefer returning from main to exiting from it.
60006         Remove unnecessary parens after sizeof.
60007
60008 2007-02-05  Bruno Haible  <bruno@clisp.org>
60009
60010         New module mbssep.
60011         * modules/mbssep: New file.
60012         * lib/mbssep.c: New file.
60013         * lib/string_.h (strsep): Add a conditional link warning.
60014         (mbssep): New declaration.
60015         * m4/mbssep.m4: New file.
60016         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60017         GNULIB_MBSSEP.
60018         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
60019         * MODULES.html.sh (Internationalization functions): Add mbssep.
60020
60021 2007-02-05  Bruno Haible  <bruno@clisp.org>
60022
60023         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
60024         Optimize search in case of 1 delimiter.
60025
60026 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
60027
60028         * lib/acl.h: Include sys/types.h before sys/acl.h.
60029
60030 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
60031
60032         Merge upstream fix for glibc bugzilla #3957:
60033
60034         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
60035
60036         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
60037         bit for RE_HAT_LISTS_NOT_NEWLINE.
60038         (build_charclass_op): Remove bogus comment.
60039
60040 2007-02-05  Simon Josefsson  <simon@josefsson.org>
60041
60042         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
60043
60044 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
60045
60046         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
60047         * lib/memmem.c [!defined _LIBC]: Include config.h.
60048
60049 2007-02-04  Bruno Haible  <bruno@clisp.org>
60050
60051         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
60052         warning message.
60053
60054 2007-02-04  Bruno Haible  <bruno@clisp.org>
60055
60056         New module mbstok_r.
60057         * modules/mbstok_r: New file.
60058         * lib/mbstok_r.c: New file.
60059         * lib/string_.h (strtok_r): Change argument names to match the
60060         comments. Add a conditional link warning.
60061         (mbstok_r): New declaration.
60062         * m4/mbstok_r.m4: New file.
60063         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60064         GNULIB_MBSTOK_R.
60065         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
60066         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
60067
60068 2007-02-04  Bruno Haible  <bruno@clisp.org>
60069
60070         New module mbsspn.
60071         * modules/mbsspn: New file.
60072         * lib/mbsspn.c: New file.
60073         * lib/string_.h (strspn): Add a conditional link warning.
60074         (mbsspn): New declaration.
60075         * m4/mbsspn.m4: New file.
60076         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60077         GNULIB_MBSSPN.
60078         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
60079         * MODULES.html.sh (Internationalization functions): Add mbsspn.
60080
60081 2007-02-04  Bruno Haible  <bruno@clisp.org>
60082
60083         New module mbspbrk.
60084         * modules/mbspbrk: New file.
60085         * lib/mbspbrk.c: New file.
60086         * lib/string_.h (strpbrk): Add a conditional link warning.
60087         (mbspbrk): New declaration.
60088         * m4/mbspbrk.m4: New file.
60089         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60090         GNULIB_MBSPBRK.
60091         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
60092         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
60093
60094 2007-02-04  Bruno Haible  <bruno@clisp.org>
60095
60096         New module mbscspn.
60097         * modules/mbscspn: New file.
60098         * lib/mbscspn.c: New file.
60099         * lib/string_.h (strcspn): Add a conditional link warning.
60100         (mbscspn): New declaration.
60101         * m4/mbscspn.m4: New file.
60102         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60103         GNULIB_MBSCSPN.
60104         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
60105         * MODULES.html.sh (Internationalization functions): Add mbscspn.
60106
60107 2007-02-04  Bruno Haible  <bruno@clisp.org>
60108
60109         New module mbscasestr, reduced goal of strcasestr.
60110         * modules/mbscasestr: New file.
60111         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
60112         (mbscasestr): Renamed from strcasestr.
60113         * lib/strcasestr.c: Don't include mbuiter.h.
60114         (strcasestr): Remove support for multibyte locales.
60115         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
60116         Change the conditional link warning.
60117         (mbscasestr): New declaration.
60118         * m4/mbscasestr.m4: New file.
60119         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
60120         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
60121         REPLACE_STRCASESTR.
60122         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
60123         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60124         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
60125         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
60126         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
60127         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
60128         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
60129         (Depends-on): Remove mbuiter.
60130         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
60131
60132 2007-02-04  Bruno Haible  <bruno@clisp.org>
60133
60134         Simplify handling of strncasecmp.
60135         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
60136         the conditional link warning.
60137         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60138         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
60139         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
60140         * modules/strcase (configure.ac): Don't invoke
60141         gl_STRING_MODULE_INDICATOR.
60142         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
60143
60144 2007-02-04  Bruno Haible  <bruno@clisp.org>
60145
60146         New module mbscasecmp, reduced goal of strcasecmp.
60147         * modules/mbscasecmp: New file.
60148         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
60149         (mbscasecmp): Renamed from strcasecmp.
60150         * lib/strcasecmp.c: Don't include mbuiter.h.
60151         (strcasecmp): Remove support for multibyte locales.
60152         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
60153         Change the conditional link warning.
60154         (mbscasecmp): New declaration.
60155         * m4/mbscasecmp.m4: New file.
60156         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
60157         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
60158         REPLACE_STRCASECMP.
60159         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
60160         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60161         GNULIB_MBSCASECMP.
60162         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
60163         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
60164         * modules/strcase (Files): Remove m4/mbrtowc.m4.
60165         (Depends-on): Remove mbuiter.
60166         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
60167
60168 2007-02-04  Bruno Haible  <bruno@clisp.org>
60169
60170         New module mbsstr. Remove module strstr.
60171         * modules/mbsstr: New file.
60172         * modules/strstr: Remove file.
60173         * lib/mbsstr.c: Renamed from lib/strstr.c.
60174         (mbsstr): Renamed from strstr.
60175         * lib/string_.h (strstr): Remove declaration. Change the conditional
60176         link warning.
60177         (mbsstr): New declaration.
60178         * m4/mbsstr.m4: New file.
60179         * m4/strstr.m4: Remove file.
60180         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
60181         REPLACE_STRSTR.
60182         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
60183         Don't initialize GNULIB_STRSTR.
60184         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
60185         substitute GNULIB_STRSTR and REPLACE_STRSTR.
60186         * MODULES.html.sh (Internationalization functions): Add mbsstr.
60187         (Support for systems lacking ANSI C 89): Remove strstr.
60188
60189 2007-02-04  Bruno Haible  <bruno@clisp.org>
60190
60191         New module mbsrchr.
60192         * modules/mbsrchr: New file.
60193         * lib/mbsrchr.c: New file.
60194         * lib/string_.h (strrchr): Add a conditional link warning.
60195         (mbsrchr): New declaration.
60196         * m4/mbsrchr.m4: New file.
60197         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60198         GNULIB_MBSRCHR.
60199         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
60200         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
60201
60202 2007-02-04  Bruno Haible  <bruno@clisp.org>
60203
60204         New module mbschr.
60205         * modules/mbschr: New file.
60206         * lib/mbschr.c: New file.
60207         * lib/string_.h (strchr): Add a conditional link warning.
60208         (mbschr): New declaration.
60209         * m4/mbschr.m4: New file.
60210         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60211         GNULIB_MBSCHR.
60212         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
60213         * MODULES.html.sh (Internationalization functions): Add mbschr.
60214
60215 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
60216
60217         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
60218
60219         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
60220
60221 2007-02-04  Bruno Haible  <bruno@clisp.org>
60222
60223         New module description section 'configure.ac-early'.
60224         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
60225         (func_get_autoconf_early_snippet): New function.
60226         (func_import, func_create_testdir): Use it. Remove special cases for
60227         modules 'extensions' and 'lock'.
60228         * modules/extensions (configure.ac-early): Require
60229         gl_USE_SYSTEM_EXTENSIONS.
60230         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
60231
60232 2007-02-04  Bruno Haible  <bruno@clisp.org>
60233
60234         Make use of gcj-4.3's -fsource and -ftarget option.
60235         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
60236         and if so try the options -fsource and -ftarget.
60237         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
60238         source_version, ftarget_option, target_version arguments.
60239         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
60240         (is_envjavac_oldgcj_14_14_usable): Renamed from
60241         is_envjavac_gcj_14_14_usable.
60242         (is_envjavac_oldgcj_14_13_usable): Renamed from
60243         is_envjavac_gcj_14_13_usable.
60244         (is_gcj_present): Update.
60245         (is_gcj_43, is_gcj43_usable): New functions.
60246         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
60247         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
60248         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
60249         try the options -fsource and -ftarget.
60250
60251 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
60252
60253         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
60254         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
60255         larger value.
60256
60257 2007-02-03  Jim Meyering  <jim@meyering.net>
60258
60259         Give tools a better chance to allocate space for very large buffers.
60260         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
60261
60262         Make pwd and readlink work also when run with an unreadable parent dir
60263         on systems with openat support.
60264         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
60265         provided getcwd function, even when we have openat support.
60266         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
60267
60268 2007-02-02  Bruno Haible  <bruno@clisp.org>
60269
60270         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
60271         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
60272         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
60273         portability problems if one of these functions is only used on specific
60274         platforms.
60275         Reported by Paul Eggert.
60276
60277 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
60278
60279         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
60280         is causing more trouble than it's curing.
60281         * lib/regex_internal.h (__mempcpy): Remove.
60282         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
60283         (and make the code a tad smaller to boot).
60284         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
60285
60286 2007-02-02  Jim Meyering  <jim@meyering.net>
60287
60288         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
60289         section, not in the Makefile.am: one.
60290
60291 2007-02-02  Eric Blake  <ebb9@byu.net>
60292
60293         * lib/strchrnul.c: Always include config.h first.
60294
60295         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
60296         gnulib strstr is not necessary here.
60297
60298 2007-02-02  Simon Josefsson  <simon@josefsson.org>
60299
60300         * m4/socklen.m4: Fix typo.
60301
60302 2007-02-02  Eric Blake  <ebb9@byu.net>
60303
60304         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
60305         * modules/netinet_in (Makefile.am): Likewise.
60306
60307 2007-02-01  Bruno Haible  <bruno@clisp.org>
60308
60309         * lib/string_.h (GL_LINK_WARNING): New macro.
60310         (strcasecmp, strstr, strcasestr): If provided by the system,
60311         conditionally define as a macro that leads to a warning instead of to
60312         an error.
60313         (strncasecmp): Conditionally define as a macro that leads to a warning.
60314
60315 2007-02-01  Karl Berry  <karl@gnu.org>
60316
60317         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
60318
60319 2007-02-01  Bruno Haible  <bruno@clisp.org>
60320
60321         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
60322         renamings.
60323
60324 2007-02-01  Eric Blake  <ebb9@byu.net>
60325
60326         * modules/regex (Depends-on): Revert dependence on mempcpy.
60327         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
60328         module's definition of mempcpy.
60329         Reported by Paul Eggert.
60330
60331 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
60332
60333         * lib/string_.h: If the gnulib module XYZ is not present, undefine
60334         the symbol XYZ before redefining it.  This fixes a problem with
60335         programs that don't use XYZ, when compiled on systems that define
60336         XYZ to something else.
60337
60338 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
60339
60340         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
60341         occurs when "mkdir -m foo" creates a setgid directory that is (1)
60342         writeable to group or other and (2) is intended to have a special
60343         mode bit that is set or cleared.  In such a case, the directory
60344         should be neither group- nor other-writeable until the special
60345         mode bits are right.
60346
60347 2007-01-31  Eric Blake  <ebb9@byu.net>
60348
60349         * modules/mountlist (Depends-on): Add strstr.
60350
60351         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
60352         bug.
60353         * modules/string (Makefile.am): Remove redundant replacement.
60354         * modules/regex (Depends-on): Add mempcpy.
60355
60356 2007-01-31  Bruno Haible  <bruno@clisp.org>
60357
60358         New module description field 'Link'.
60359         * gnulib-tool (func_usage): Document --extract-link-directive.
60360         (sed_extract_prog): Recognize 'Link' directive.
60361         (func_get_link_directive): New function.
60362         (func_import): Show summary of link directives.
60363         Handle --extract-link-directive option.
60364         * modules/acl (Link): New section.
60365         * modules/clock-time (Link): New section.
60366         * modules/euidaccess (Link): New section.
60367         * modules/gettext (Link): New section.
60368         * modules/iconv (Link): New section.
60369         * modules/lock (Link): New section.
60370         * modules/nanosleep (Link): New section.
60371         * modules/readline (Link): New section.
60372
60373 2007-01-27  Bruno Haible  <bruno@clisp.org>
60374
60375         Enforce the use of gnulib modules for unportable <string.h> functions.
60376         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
60377         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
60378         (gl_HEADER_STRING_H_BODY): Require it.
60379         * lib/string_.h: If the gnulib module XYZ is not present, redefine
60380         the symbol XYZ to one that gives a link error.
60381         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
60382         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
60383         * modules/mempcpy (configure.ac): Likewise.
60384         * modules/memrchr (configure.ac): Likewise.
60385         * modules/stpcpy (configure.ac): Likewise.
60386         * modules/stpncpy (configure.ac): Likewise.
60387         * modules/strcase (configure.ac): Likewise.
60388         * modules/strcasestr (configure.ac): Likewise.
60389         * modules/strchrnul (configure.ac): Likewise.
60390         * modules/strdup (configure.ac): Likewise.
60391         * modules/strndup (configure.ac): Likewise.
60392         * modules/strnlen (configure.ac): Likewise.
60393         * modules/strpbrk (configure.ac): Likewise.
60394         * modules/strsep (configure.ac): Likewise.
60395         * modules/strstr (configure.ac): Likewise.
60396         * modules/strtok_r (configure.ac): Likewise.
60397
60398 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
60399
60400         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
60401
60402 2007-01-30  Jim Meyering  <jim@meyering.net>
60403
60404         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
60405
60406 2007-01-29  Bruno Haible  <bruno@clisp.org>
60407
60408         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
60409         * lib/execute.c: Likewise.
60410         * lib/pipe.c: Likewise.
60411         * lib/printf-args.h: Likewise.
60412         * lib/printf-args.c: Likewise.
60413         * lib/printf-parse.c: Likewise.
60414         * lib/vasnprintf.c: Likewise.
60415
60416 2007-01-29  Eric Blake  <ebb9@byu.net>
60417
60418         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
60419         declaration.
60420
60421 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
60422
60423         * lib/strptime.h (strptime): Use 'restrict' for args where
60424         POSIX requires this.
60425         * lib/strptime.c (strptime): Likewise.
60426         Change license notice from LGPL to GPL, since gnulib-tool will
60427         change this as needed.
60428         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
60429         defined.
60430         Include "strptime.h" first, to check interface.
60431         Do not #undef _LIBC and _NL_CURRENT.
60432         Do not include <stdlib.h>; no longer needed.
60433         Include "time_r.h" and declare ptime_locale_status
60434         only if _LIBC is not defined.
60435         (__P): Remove unused macro.
60436         (match_string): Bring back glibc version, but use it only if _LIBC
60437         is defined.
60438         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
60439         Remove unnecessary assertion and abort() call.
60440         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
60441         * m4/strptime.m4: Fix serial number comment.
60442         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
60443         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
60444         (Depends-on): Add time_r.
60445
60446 2007-01-29  Bruno Haible  <bruno@clisp.org>
60447
60448         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60449         strptime.
60450         * modules/strptime (Depends-on): Add stdbool.
60451         * lib/strptime.h: Include <time.h> always. Add comments.
60452
60453 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60454
60455         * modules/strptime: New file.
60456         * lib/strptime.h: New file.
60457         * lib/strptime.c: New file.
60458         * m4/strptime.m4: New file.
60459
60460 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
60461
60462         * MODULES.html.sh: New module mpsort.
60463         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
60464
60465         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
60466         a circularity problem with HP-UX ia64 reported by Bob Proulx in
60467         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
60468         All uses changed.
60469         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
60470         All uses changed.
60471         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
60472         to _Restrict_.
60473         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
60474         the parameter matches the prototype.
60475
60476 2007-01-28  Jim Meyering  <jim@meyering.net>
60477
60478         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
60479         sys/time.h here, reverting that part of the previous patch:
60480         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
60481
60482 2007-01-28  Bruno Haible  <bruno@clisp.org>
60483
60484         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
60485         value of $(SYS_TIME_H).
60486         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
60487         remove it conditionally, too. [added by Jim Meyering]
60488         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
60489         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
60490         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
60491         GETTIMEOFDAY_REPLACEMENT to 1.
60492
60493 2007-01-28  Bruno Haible  <bruno@clisp.org>
60494
60495         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
60496         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
60497         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
60498         Set UNISTD_H instead of UNISTD_H2.
60499         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
60500
60501 2007-01-28  Bruno Haible  <bruno@clisp.org>
60502
60503         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
60504         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
60505
60506 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60507
60508         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
60509         (func_create_testdir): Ensure C locale for `grep' and `tr'
60510         character ranges.
60511         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
60512         ACLOCAL_AMFLAGS parsing state machine.
60513
60514 2007-01-27  Bruno Haible  <bruno@clisp.org>
60515
60516         * modules/unistr/base: Update.
60517
60518 2007-01-27  Bruno Haible  <bruno@clisp.org>
60519
60520         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
60521         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
60522         * modules/unistr/u32-mbtouc-unsafe: Renamed from
60523         modules/unistr/u32-mbtouc.
60524         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
60525         * lib/unistr.h: Update.
60526         * lib/linebreak.c: Update.
60527         * modules/unistr/u32-mbtouc: Renamed from
60528         modules/unistr/u32-mbtouc-safe.
60529         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
60530         * lib/unistr.h: Update.
60531         * lib/unistr/u32-to-u8.c: Update.
60532         * lib/unistr/u32-to-u16.c: Update.
60533
60534 2007-01-27  Bruno Haible  <bruno@clisp.org>
60535
60536         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
60537         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
60538         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
60539         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
60540         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
60541         * modules/unistr/u16-mbtouc-unsafe: Renamed from
60542         modules/unistr/u16-mbtouc.
60543         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
60544         * lib/unistr.h: Update.
60545         * lib/linebreak.c: Update.
60546         * modules/linebreak: Update.
60547         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
60548         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
60549         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
60550         * modules/unistr/u16-mbtouc: Renamed from
60551         modules/unistr/u16-mbtouc-safe.
60552         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
60553         * lib/unistr.h: Update.
60554         * lib/unistr/u16-to-u8.c: Update.
60555         * modules/unistr/u16-to-u8: Update.
60556         * lib/unistr/u16-to-u32.c: Update.
60557         * modules/unistr/u16-to-u32: Update.
60558
60559 2007-01-27  Bruno Haible  <bruno@clisp.org>
60560
60561         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
60562         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
60563         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
60564         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
60565         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
60566         * modules/unistr/u8-mbtouc-unsafe: Renamed from
60567         modules/unistr/u8-mbtouc.
60568         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
60569         * lib/unistr.h: Update.
60570         * lib/striconveh.c: Update.
60571         * modules/striconveh: Update.
60572         * lib/linebreak.c: Update.
60573         * modules/linebreak: Update.
60574         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
60575         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
60576         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
60577         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
60578         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
60579         * lib/unistr.h: Update.
60580         * lib/striconveh.c: Update.
60581         * modules/striconveh: Update.
60582         * lib/unistr/u8-to-u16.c: Update.
60583         * modules/unistr/u8-to-u16: Update.
60584         * lib/unistr/u8-to-u32.c: Update.
60585         * modules/unistr/u8-to-u32: Update.
60586
60587 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60588
60589         Sync from Libtool.
60590         * lib/argz.c: Do not include strings.h nor memory.h, include
60591         string.h unconditionally.  Patch by Simon Josefsson.
60592
60593 2007-01-27  Bruno Haible  <bruno@clisp.org>
60594
60595         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
60596         from gl_HEADER_STRING_H_BODY.
60597         (gl_HEADER_STRING_H_BODY): Require it.
60598         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
60599         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
60600         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
60601         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
60602         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60603         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
60604         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60605         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
60606         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
60607         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
60608         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
60609         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
60610         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
60611         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60612         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60613
60614 2007-01-27  Bruno Haible  <bruno@clisp.org>
60615
60616         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
60617         check_PROGRAMS into noinst_PROGRAMS.
60618         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
60619         check_PROGRAMS in this case.
60620         (func_import): Set for_test to false.
60621         (func_create_testdir): Set for_test to true.
60622
60623 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
60624             Bruno Haible  <bruno@clisp.org>
60625
60626         * modules/strcasestr (Files): Remove lib/strcasestr.h.
60627         (Depends-on): Add string.
60628         (Includes): Use <string.h> instead of strcasestr.h.
60629         * modules/string (Makefile.am): Also substitute the value of
60630         REPLACE_STRCASESTR.
60631         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
60632         assume strcasestr is declared in <string.h> not <strings.h>. Also
60633         set REPLACE_STRCASESTR.
60634         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
60635         REPLACE_STRCASESTR.
60636         * lib/strcasestr.h: Remove file.
60637         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
60638         * lib/string_.h (strcasestr): New declaration.
60639
60640 2007-01-27  Bruno Haible  <bruno@clisp.org>
60641
60642         * lib/string_.h: Use 'extern'.
60643
60644 2007-01-27  Jim Meyering  <jim@meyering.net>
60645
60646         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
60647         of set-but-not-used local, "q".
60648
60649         * lib/mempcpy.c: Include <config.h> before <string.h>.
60650         This fixes a compilation error on HP-UX, due to the system's
60651         "restrict"-using mempcpy prototype.
60652
60653 2007-01-26  Bruno Haible  <bruno@clisp.org>
60654
60655         Small optimization.
60656         * lib/javacomp.c: Include c-strstr.h.
60657          (is_envjavac_gcj): Use c_strstr instead of strstr.
60658         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
60659
60660 2007-01-26  Bruno Haible  <bruno@clisp.org>
60661
60662         * MODULES.html.sh (Unicode string functions): Add the new modules.
60663
60664         * modules/uniconv/u32-strconv-to-locale: New file.
60665         * lib/uniconv/u32-strconv-to-locale.c: New file.
60666
60667         * modules/uniconv/u16-strconv-to-locale: New file.
60668         * lib/uniconv/u16-strconv-to-locale.c: New file.
60669
60670         * modules/uniconv/u8-strconv-to-locale: New file.
60671         * lib/uniconv/u8-strconv-to-locale.c: New file.
60672
60673         * modules/uniconv/u32-strconv-from-locale: New file.
60674         * lib/uniconv/u32-strconv-from-locale.c: New file.
60675
60676         * modules/uniconv/u16-strconv-from-locale: New file.
60677         * lib/uniconv/u16-strconv-from-locale.c: New file.
60678
60679         * modules/uniconv/u8-strconv-from-locale: New file.
60680         * lib/uniconv/u8-strconv-from-locale.c: New file.
60681
60682         * modules/uniconv/u32-strconv-to-enc: New file.
60683         * lib/uniconv/u32-strconv-to-enc.c: New file.
60684         * modules/uniconv/u32-strconv-to-enc-tests: New file.
60685         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
60686
60687         * modules/uniconv/u16-strconv-to-enc: New file.
60688         * lib/uniconv/u16-strconv-to-enc.c: New file.
60689         * lib/uniconv/u-strconv-to-enc.h: New file.
60690         * modules/uniconv/u16-strconv-to-enc-tests: New file.
60691         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
60692
60693         * modules/uniconv/u8-strconv-to-enc: New file.
60694         * lib/uniconv/u8-strconv-to-enc.c: New file.
60695         * modules/uniconv/u8-strconv-to-enc-tests: New file.
60696         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
60697
60698         * modules/uniconv/u32-strconv-from-enc: New file.
60699         * lib/uniconv/u32-strconv-from-enc.c: New file.
60700         * modules/uniconv/u32-strconv-from-enc-tests: New file.
60701         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
60702
60703         * modules/uniconv/u16-strconv-from-enc: New file.
60704         * lib/uniconv/u16-strconv-from-enc.c: New file.
60705         * modules/uniconv/u16-strconv-from-enc-tests: New file.
60706         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
60707
60708         * modules/uniconv/u8-strconv-from-enc: New file.
60709         * lib/uniconv/u8-strconv-from-enc.c: New file.
60710         * lib/uniconv/u-strconv-from-enc.h: New file.
60711         * modules/uniconv/u8-strconv-from-enc-tests: New file.
60712         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
60713
60714         * modules/uniconv/u32-conv-from-enc: New file.
60715         * lib/uniconv/u32-conv-from-enc.c: New file.
60716         * modules/uniconv/u32-conv-from-enc-tests: New file.
60717         * tests/uniconv/test-u32-conv-from-enc.c: New file.
60718
60719         * modules/uniconv/u16-conv-from-enc: New file.
60720         * lib/uniconv/u16-conv-from-enc.c: New file.
60721         * lib/uniconv/u-conv-from-enc.h: New file.
60722         * modules/uniconv/u16-conv-from-enc-tests: New file.
60723         * tests/uniconv/test-u16-conv-from-enc.c: New file.
60724
60725         * modules/uniconv/u8-conv-from-enc: New file.
60726         * lib/uniconv/u8-conv-from-enc.c: New file.
60727         * modules/uniconv/u8-conv-from-enc-tests: New file.
60728         * tests/uniconv/test-u8-conv-from-enc.c: New file.
60729
60730         * modules/uniconv/base: New file.
60731         * lib/uniconv.h: New file.
60732
60733 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
60734
60735         * doc/gnulib-tool.texi (Initial import): Update to match current
60736         behavior with strdup module.
60737         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
60738         * lib/memmem.h: Remove; all uses removed.  This is now done
60739         by <string.h>.
60740         * lib/mempcpy.h: Likewise.
60741         * lib/memrchr.h: Likewise.
60742         * lib/stpcpy.h: Likewise.
60743         * lib/stpncpy.h: Likewise.
60744         * lib/strcase.h: Likewise.
60745         * lib/strchrnul.h: Likewise.
60746         * lib/strdup.h: Likewise.
60747         * lib/strndup.h: Likewise.
60748         * lib/strnlen.h: Likewise.
60749         * lib/strpbrk.h: Likewise.
60750         * lib/strsep.h: Likewise.
60751         * lib/strstr.h: Likewise.
60752         * lib/strtok_r.h: Likewise.
60753         * lib/string_.h: New file.
60754         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
60755         Rely on <string.h> instead.
60756         * lib/canon-host.c: Likewise.
60757         * lib/chdir-long.c: Likewise.
60758         * lib/concatpath.c: Likewise.
60759         * lib/exclude.c: Likewise.
60760         * lib/fchdir.c: Likewise.
60761         * lib/getaddrinfo.c: Likewise.
60762         * lib/getcwd.c: Likewise.
60763         * lib/getsubopt.c: Likewise.
60764         * lib/glob.c: Likewise.
60765         * lib/hard-locale.c: Likewise.
60766         * lib/iconvme.c: Likewise.
60767         * lib/javacomp.c: Likewise.
60768         * lib/mempcpy.c: Likewise.
60769         * lib/memrchr.c: Likewise.
60770         * lib/regex_internal.h: Likewise.
60771         * lib/stpncpy.c: Likewise.
60772         * lib/strcasecmp.c: Likewise.
60773         * lib/strchrnul.c: Likewise.
60774         * lib/strdup.c: Likewise.
60775         * lib/striconv.c: Likewise.
60776         * lib/striconveh.c: Likewise.
60777         * lib/striconveha.c: Likewise.
60778         * lib/strncasecmp.c: Likewise.
60779         * lib/strndup.c: Likewise.
60780         * lib/strnlen.c: Likewise.
60781         * lib/strsep.c: Likewise.
60782         * lib/strstr.c: Likewise.
60783         * lib/strtok_r.c: Likewise.
60784         * lib/userspec.c: Likewise.
60785         * lib/w32spawn.h: Likewise.
60786         * lib/xstrndup.c: Likewise.
60787         * lib/mountlist.c (strstr): Remove decl.
60788         * m4/string_h.m4: New file.
60789         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
60790         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
60791         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
60792         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
60793         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
60794         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
60795         Set REPLACE_STRCASECMP if necessary.
60796         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
60797         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
60798         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
60799         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
60800         HAVE_DECL_STRDUP if necessary.
60801         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
60802         since gl_FUNC_STRNDUP does that now.
60803         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
60804         Check for decl here...
60805         (gl_PREREQ_STRNLEN): ... not here.
60806         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
60807         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
60808         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
60809         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
60810         necessary.
60811         * modules/string: New file.
60812         * modules/memmem (Files): Remove special-purpose include file.
60813         (Depends-on): Add string.
60814         (Include): Include <string.h>, not the removed file.
60815         * modules/mempcpy: Likewise.
60816         * modules/memrchr: Likewise.
60817         * modules/stpcpy: Likewise.
60818         * modules/stpncpy: Likewise.
60819         * modules/strcase: Likewise.
60820         * modules/strchrnul: Likewise.
60821         * modules/strdup: Likewise.
60822         * modules/strndup: Likewise.
60823         * modules/strnlen: Likewise.
60824         * modules/strpbrk: Likewise.
60825         * modules/strsep: Likewise.
60826         * modules/strstr: Likewise.
60827         * modules/strtok_r: Likewise.
60828         * tests/test-dirname.c: Don't include "strdup.h", since
60829         <string.h> now suffices.
60830         * tests/test-memmem.c: Don't include "memmem.h", since
60831         <string.h> now suffices.
60832
60833 2007-01-25  Bruno Haible  <bruno@clisp.org>
60834
60835         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
60836         *resultp is 0.
60837
60838         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
60839         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
60840         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
60841         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
60842
60843         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
60844         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
60845         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
60846         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
60847         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
60848         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
60849
60850 2007-01-24  Bruno Haible  <bruno@clisp.org>
60851
60852         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
60853         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
60854         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
60855         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
60856         gl_FUNC_FTS_CORE.
60857         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
60858         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
60859         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60860         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
60861         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
60862         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
60863         gl_FUNC_FCHOWNAT.
60864         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
60865         gl_FUNC_STRFTIME.
60866         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
60867         Reported by Ralf Wildenhues.
60868
60869 2007-01-24  Bruno Haible  <bruno@clisp.org>
60870
60871         Drop AC_REQUIRE calls that are redundant with the module dependencies.
60872         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
60873         gl_GETADDRINFO.
60874         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
60875         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
60876         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
60877
60878 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
60879
60880         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
60881         Don't use 'exit'; just return from 'main'.
60882         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
60883
60884         * lib/fnmatch_.h: Readjust white space and comments to match
60885         glibc, to avoid spurious diffs.
60886
60887 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60888
60889         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
60890         2004-12-01 change by Jakub Jelinek, since this code won't compile
60891         if !LIBC.  Problem reported by Bob Proulx.
60892
60893 2007-01-23  Bruno Haible  <bruno@clisp.org>
60894
60895         * lib/striconveh.c: Include c-strcaseeq.h.
60896         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
60897         * modules/striconveh (Depends-on): Add c-strcaseeq.
60898
60899 2007-01-23  Bruno Haible  <bruno@clisp.org>
60900
60901         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
60902
60903         * modules/c-strcaseeq: New file.
60904         * lib/c-strcaseeq.h: New file.
60905
60906         * modules/streq: New file.
60907         * lib/streq.h: New file.
60908
60909 2007-01-23  Bruno Haible  <bruno@clisp.org>
60910
60911         * modules/striconveha-tests: New file.
60912         * tests/test-striconveha.c: New file.
60913
60914         * lib/striconveha.h: Include <stdbool.h>.
60915         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
60916         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
60917         (mem_iconveha_notranslit): Renamed from mem_iconveha.
60918         (mem_iconveha): New function.
60919         (str_iconveha_notranslit): Renamed from str_iconveha.
60920         (str_iconveha): New function.
60921         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
60922         c-strcase.
60923
60924 2007-01-23  Bruno Haible  <bruno@clisp.org>
60925
60926         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
60927         encodings without forgiving before trying any encoding with handler.
60928         (str_iconveha): Try all encodings without forgiving before trying any
60929         encoding with handler.
60930
60931 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60932
60933         Import the following changes from libc.
60934
60935         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
60936
60937         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
60938
60939         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
60940
60941         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
60942         normal_bracket label.
60943
60944         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
60945
60946         [BZ #361]
60947         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
60948         to normal_bracket after fetching the next character.
60949
60950 2007-01-22  Bruno Haible  <bruno@clisp.org>
60951
60952         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
60953         argument.
60954         * lib/striconveh.c (iconv_carefully_1): New function.
60955         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
60956         argument.
60957         (str_cd_iconveh): Update.
60958         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
60959         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
60960         * tests/test-striconveh.c (MAGIC): New macro.
60961         (new_offsets): New function.
60962         (main): Test call with and without offsets.
60963
60964 2007-01-22  Bruno Haible  <bruno@clisp.org>
60965
60966         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
60967         * modules/sys_select (Makefile.am): Likewise.
60968         * modules/sys_socket (Makefile.am): Likewise.
60969         * modules/sys_time (Makefile.am): Likewise.
60970
60971 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
60972
60973         * modules/gettimeofday (License): Change from GPL to LGPL, since
60974         gettimeofday is a library function.
60975
60976 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60977
60978         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
60979
60980 2007-01-21  Bruno Haible  <bruno@clisp.org>
60981
60982         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
60983
60984 2007-01-21  Bruno Haible  <bruno@clisp.org>
60985
60986         * modules/striconveha: New file.
60987         * lib/striconveha.h: New file.
60988         * lib/striconveha.c: New file.
60989         * MODULES.html.sh (Internationalization functions): Add striconveha.
60990         * lib/striconv.c (str_iconv): Optimize the case of an empty input
60991         string.
60992         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
60993
60994 2007-01-21  Bruno Haible  <bruno@clisp.org>
60995
60996         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
60997         * lib/striconveh.c (str_iconveh): Likewise.
60998
60999 2007-01-21  Bruno Haible  <bruno@clisp.org>
61000
61001         * lib/striconveh.h (mem_iconveh): New declaration.
61002         * lib/striconveh.c (mem_iconveh): New function.
61003         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
61004
61005 2007-01-21  Bruno Haible  <bruno@clisp.org>
61006
61007         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
61008
61009         * lib/striconveh.h (mem_cd_iconveh): Change specification.
61010         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
61011         original result buffer.
61012         (str_cd_iconveh): Update.
61013         * tests/test-striconveh.c (main): Update.
61014
61015         * lib/striconv.h (mem_cd_iconv): Change specification.
61016         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
61017         result buffer.
61018         (str_cd_iconv): Update.
61019         * tests/test-striconv.c (main): Update.
61020
61021 2007-01-21  Bruno Haible  <bruno@clisp.org>
61022
61023         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
61024
61025 2007-01-20  Jim Meyering  <jim@meyering.net>
61026
61027         * lib/userspec.c (parse_with_separator): If a user or group string
61028         starts with "+", skip the corresponding name-to-ID look-up, since
61029         such a look-up must fail: user and group names may not include "+".
61030
61031 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
61032
61033         * lib/poll.c: Include sys/time.h and time.h unconditionally,
61034         since we now assume the sys_time module.
61035         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
61036         check for sys/time.h; no longer needed.
61037         * modules/poll (Depends-on): Depend on sys_time.
61038
61039 2007-01-18  Bruno Haible  <bruno@clisp.org>
61040
61041         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
61042         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
61043
61044         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
61045         gettimeofday.
61046
61047         * tests/test-gettimeofday.c: Include <time.h>.
61048         (dummy): Remove variable.
61049
61050         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
61051         gl_HEADER_SYS_TIME_H.
61052         (gl_HEADER_SYS_TIME_H): New macro.
61053
61054         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
61055         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61056         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
61057         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
61058         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61059         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
61060         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
61061         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61062         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
61063         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
61064         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61065
61066         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
61067         last change; it caused a compilation error when cross-compiling to
61068         Cygwin.
61069
61070 2007-01-18  Jim Meyering  <jim@meyering.net>
61071
61072         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
61073         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
61074         than the race-prone "test -d sys || mkdir sys".
61075         (configure.ac): Use AC_PROG_MKDIR_P.
61076         * modules/sys_select: Likewise.
61077         * modules/sys_socket: Likewise.
61078         * modules/sys_time: Likewise.
61079
61080 2007-01-18  Eric Blake  <ebb9@byu.net>
61081
61082         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
61083         replace gettimeofday.
61084         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
61085         name, to avoid infinite recursion.
61086
61087 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
61088
61089         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
61090         module sys_time.
61091         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
61092         assume timespec.h defines struct timeval.
61093         * lib/settime.c: Likewise.
61094         * lib/utimens.c: Likewise.
61095         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
61096         since we now assume the gettimeofday module.
61097         * lib/tempname.c (__gen_tempname): Likewise.
61098         * lib/gettimeofday.h: Remove.
61099         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
61100         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
61101         Include <time.h>, for 'time()'.
61102         (localtime_buffer_addr): Also use this workaround if
61103         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
61104         to simplify the uses.  All uses changed.
61105         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
61106         that #undef is inside {}, and 'const' follows type name consistently.
61107         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
61108         (gettimeofday): Do not use the maximum possible value for
61109         tv->tv_usec, since that might break usages other than ls.c.
61110         Instead, we'll leave ls.c alone.  This undoes today's patch
61111         by Bruno.  Add a compile-time warning for 1s-clock resolution;
61112         we've never observed the problem but might as well keep the
61113         canary.
61114         * lib/nanosleep.c: Include timespec.h first, for interface check.
61115         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
61116         now assume the sys_time module.
61117         * lib/tempname.c: Likewise.
61118         * lib/timespec.h: Likewise.
61119         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
61120         needed.
61121         * lib/strftime.c: Likewise.
61122         * lib/timespec.h: Likewise.
61123         * lib/posixtm.c: Include posixtm.h first, for interface check.
61124         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
61125         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
61126         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
61127         * lib/sys_time_.h: New file.
61128         * lib/timespec.h (struct timespec): Use long int, not long.
61129         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
61130         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
61131         Remove obsolescent call to AC_HEADER_TIME.
61132         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
61133         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61134         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
61135         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
61136         Likewise.
61137         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
61138         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
61139         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
61140         into the sys_time module.  Check for gettimeofday just once.
61141         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
61142         for gettimeofday signature to just check the signature.  Merely
61143         compile it, since linking doesn't test signature.  Improve test for
61144         whether gettimeofday.o is actually needed.
61145         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
61146         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
61147         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
61148         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61149         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
61150         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
61151         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
61152         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
61153         than worrying about sys/time.h.
61154         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
61155         Don't bother worrying about TIME_WITH_SYS_TIME.
61156         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
61157         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
61158         * m4/sys_time_h.m4: New file.
61159         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
61160         Don't include sys/time.h.  Return from main rather than exiting.
61161         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
61162         all uses changed.
61163         * modules/gethrxtime (Depends-on): Add sys_time.
61164         * modules/gettime (Depends-on): Likewise.
61165         * modules/gettimeofday (Depends-on): Likewise.
61166         * modules/nanosleep (Depends-on): Likewise.
61167         * modules/settime (Depends-on): Likewise.
61168         * modules/tempname (Depends-on): Likewise.
61169         * modules/utimens (Depends-on): Likewise.
61170         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
61171         (Include): Change back to <sys/time.h>.
61172         (Maintainer): Add self.
61173         * modules/sys_time: New file.
61174         * modules/tempname (Depends-on): Add gettimeofday.
61175         * tests/test-gettimeofday.c: Include <sys/time.h>
61176         rather than gettimeofday.h.
61177
61178 2007-01-17  Bruno Haible  <bruno@clisp.org>
61179
61180         * gnulib-tool (func_get_license): Revert last patch. Instead, let
61181         the license default to GPL.
61182         (func_create_testdir): Don't complain if a module is LGPL and its
61183         tests module depends on GPLed modules.
61184
61185 2007-01-17  Bruno Haible  <bruno@clisp.org>
61186
61187         * lib/gettimeofday.c (gettimeofday): Add code for the case
61188         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
61189         maximum possible value for tv->tv_usec, rather than the minimum one.
61190
61191 2005-10-08  Martin Lambers  <marlam@marlam.de>
61192 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61193 2007-01-16  Bruno Haible  <bruno@clisp.org>
61194
61195         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
61196         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
61197         gl_FUNC_GETTIMEOFDAY.
61198         (Include): Add gettimeofday.h.
61199         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
61200         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
61201         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
61202         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
61203         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
61204         * lib/gettimeofday.h: New file.
61205         * lib/gettimeofday.c: Include <sys/timeb.h>.
61206         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
61207         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61208         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
61209         fall back on time().
61210
61211         * tests/test-gettimeofday.c: New file.
61212         * modules/gettimeofday-tests: New file.
61213
61214 2007-01-16  Eric Blake  <ebb9@byu.net>
61215
61216         * modules/fnmatch (Depends-on): Depend on wchar.
61217         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
61218         * m4/fnmatch.m4: Likewise.
61219         * modules/mbchar (Makefile.am): Assume <wchar.h>.
61220         * m4/mbchar.m4: Likewise.
61221         * modules/mbswidth (Depends-on): Depend on wchar.
61222         * lib/mbswidth.c: Assume <wchar.h>.
61223         * m4/mbswidth.m4: Likewise.
61224         * modules/quotearg (Depends-on): Depend on wchar.
61225         * lib/quotearg.c: Assume <wchar.h>.
61226         * m4/quotearg.m4: Likewise.
61227         * modules/regex (Depends-on): Depend on wchar.
61228         * lib/regex_internal.h: Assume <wchar.h>.
61229         * m4/regex.m4: Likewise.
61230         * modules/stdint (Depends-on): Depend on wchar.
61231         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
61232         * m4/stdint.m4: Likewise.
61233         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
61234         * modules/strftime (Depends-on): Depend on wchar.
61235         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
61236         * modules/strtol (Depends-on): Depend on wchar.
61237         * lib/strtol.c: Assume <wchar.h>.
61238         * modules/wcwidth (Depends-on): Depend on wchar.
61239         * lib/wcwidth.h: Assume <wchar.h>.
61240         * m4/wcwidth.m4: Likewise.
61241
61242 2007-01-16  Bruno Haible  <bruno@clisp.org>
61243
61244         * modules/csharpexec-script: New, created from...
61245         * modules/csharpexec: ... this.
61246
61247 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
61248
61249         * modules/javaexec-script: New, created from...
61250         * modules/javaexec: ... this.
61251
61252 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61253
61254         * modules/poll (Dependencies): Add sys_select.
61255
61256 2007-01-15  Jim Meyering  <jim@meyering.net>
61257
61258         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
61259         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
61260         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
61261         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
61262
61263 2007-01-15  Bruno Haible  <bruno@clisp.org>
61264
61265         * modules/striconveh: New file.
61266         * lib/striconveh.h: New file.
61267         * lib/striconveh.c: New file.
61268         * MODULES.html.sh (Internationalization functions): Add striconveh.
61269
61270         * modules/striconveh-tests: New file.
61271         * tests/test-striconveh.c: New file.
61272
61273 2007-01-15  Bruno Haible  <bruno@clisp.org>
61274
61275         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
61276         not from GNU libiconv or GNU libc.
61277
61278 2007-01-15  Bruno Haible  <bruno@clisp.org>
61279
61280         * doc/gnulib-intro.texi (Copyright): Explain the different license
61281         terms for module descriptions, autoconf macros, tests, documentation.
61282
61283 2007-01-14  Bruno Haible  <bruno@clisp.org>
61284
61285         * modules/striconv-tests: New file.
61286         * tests/test-striconv.c: New file.
61287
61288 2007-01-14  Bruno Haible  <bruno@clisp.org>
61289
61290         * modules/iconv-tests: New file.
61291         * tests/test-iconv.c: New file.
61292
61293 2007-01-14  Bruno Haible  <bruno@clisp.org>
61294
61295         * gnulib-tool (func_get_license): For test modules, use the license of
61296         the main module.
61297
61298 2007-01-14  Bruno Haible  <bruno@clisp.org>
61299
61300         * modules/iconv (Include): Clarify that <iconv.h> can only be included
61301         if iconv is found to exist.
61302
61303 2007-01-14  Bruno Haible  <bruno@clisp.org>
61304
61305         * modules/c-ctype-tests: New file.
61306         * tests/test-c-ctype.c: New file.
61307
61308 2007-01-14  Bruno Haible  <bruno@clisp.org>
61309
61310         * modules/binary-io-tests: New file.
61311         * tests/test-binary-io.sh: New file.
61312         * tests/test-binary-io.c: New file.
61313
61314 2007-01-14  Bruno Haible  <bruno@clisp.org>
61315
61316         * modules/array-oset-tests: New file.
61317         * tests/test-array_oset.c: New file.
61318
61319 2007-01-14  Bruno Haible  <bruno@clisp.org>
61320
61321         * modules/array-list-tests: New file.
61322         * tests/test-array_list.c: New file.
61323
61324 2007-01-14  Bruno Haible  <bruno@clisp.org>
61325
61326         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
61327         and make.
61328         Reported by Simon Josefsson in
61329         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
61330
61331 2007-01-14  Bruno Haible  <bruno@clisp.org>
61332
61333         * modules/allocsa-tests: New file.
61334         * tests/test-allocsa.c: New file.
61335
61336 2007-01-14  Bruno Haible  <bruno@clisp.org>
61337
61338         * modules/fchdir (Depends-on): Add absolute-header.
61339         * modules/unistd (Depends-on): Likewise.
61340
61341 2006-12-30  Bruno Haible  <bruno@clisp.org>
61342
61343         * modules/fchdir: New file.
61344         * modules/unistd (Files): Add lib/unistd_.h.
61345         (Makefile.am): Generate unistd.h from unistd_.h.
61346         * lib/fchdir.c: New file.
61347         * lib/dirent_.h: New file.
61348         * lib/unistd_.h: New file.
61349         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
61350         * m4/fchdir.m4: New file.
61351         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
61352         (gl_HEADER_UNISTD): Invoke it.
61353         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
61354         function.
61355         * lib/backupfile.c (opendir, closedir): Undefine.
61356         * lib/chown.c (open, close): Undefine.
61357         * lib/clean-temp.c (open, close): Undefine.
61358         * lib/copy-file.c (open, close): Undefine.
61359         * lib/execute.c (open, close): Undefine.
61360         * lib/fsusage.c (open, close): Undefine.
61361         * lib/gc-gnulib.c (open, close): Undefine.
61362         * lib/getcwd.c (opendir, closedir): Undefine.
61363         * lib/glob.c (opendir, closedir): Undefine.
61364         * lib/javacomp.c (open, close): Undefine.
61365         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
61366         * lib/openat-proc.c (open, close): Undefine.
61367         * lib/pagealign_alloc.c (open, close): Undefine.
61368         * lib/pipe.c (open, close): Undefine.
61369         * lib/progreloc.c (open, close): Undefine.
61370         * lib/savedir.c (opendir, closedir): Undefine.
61371         * lib/utime.c (open, close): Undefine.
61372         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
61373
61374 2007-01-10  Bruno Haible  <bruno@clisp.org>
61375
61376         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
61377
61378 2007-01-12  Eric Blake  <ebb9@byu.net>
61379
61380         Provide a robust <wchar.h>.  Further simplifications are now
61381         possible in other modules, but not included here.
61382         * modules/wchar: New module.
61383         * m4/wchar.m4: New file.
61384         * lib/wchar_.h: Likewise.
61385         * modules/mbchar (Depends-on): Depend on wchar, as the first use
61386         of the new module.
61387         * MODULES.html.sh (Extended multibyte and wide character utilities):
61388         New section.
61389
61390 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
61391
61392         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
61393         to a reasonable default for memory allocation.
61394         (xreadlink): Don't allocate a huge buffer, to work around a buggy
61395         file system that reports garbage st_size values for symlinks.
61396         Problem reported by Liyang Hu.
61397
61398 2007-01-11  Simon Josefsson  <simon@josefsson.org>
61399
61400         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
61401         Emacs .#* auto-save files).
61402
61403 2007-01-11  Bruno Haible  <bruno@clisp.org>
61404
61405         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
61406         directory.
61407
61408 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61409
61410         Use @...@ consistently in lib/wctype_.h.
61411         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
61412         on it being set to 1 or 0.
61413         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
61414         go back to AC_SUBSTing it.
61415         * modules/wctype (Makefile.am): Undo previous change.
61416
61417 2007-01-10  Eric Blake  <ebb9@byu.net>
61418
61419         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
61420         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
61421         * modules/wctype (Makefile.am): Likewise.
61422         Reported by Chris McGuire.
61423
61424 2007-01-10  Jim Meyering  <jim@meyering.net>
61425
61426         fts.c: a small readability/maintainability improvement
61427         * lib/fts.c (fts_read): Make this code slightly more readable and
61428         maintainable by hoisting the "sp->fts_cur = p" assignments to
61429         immediately follow the statements that set P.  Derived from
61430         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
61431
61432 2007-01-10  Eric Blake  <ebb9@byu.net>
61433
61434         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
61435         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
61436         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61437         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
61438         Reported by Chris McGuire.
61439
61440 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61441
61442         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
61443         in sed script.
61444
61445 2007-01-09  Bruno Haible  <bruno@clisp.org>
61446
61447         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
61448         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
61449         variables.
61450         (func_module): Use them.
61451
61452 2007-01-09  Bruno Haible  <bruno@clisp.org>
61453
61454         * modules/unistr/base: New file.
61455         * lib/unistr.h: New file.
61456
61457         * modules/unistr/u8-to-u16: New file.
61458         * lib/unistr/u8-to-u16.c: New file.
61459
61460         * modules/unistr/u8-to-u32: New file.
61461         * lib/unistr/u8-to-u32.c: New file.
61462
61463         * modules/unistr/u16-to-u8: New file.
61464         * lib/unistr/u16-to-u8.c: New file.
61465
61466         * modules/unistr/u16-to-u32: New file.
61467         * lib/unistr/u16-to-u32.c: New file.
61468
61469         * modules/unistr/u32-to-u8: New file.
61470         * lib/unistr/u32-to-u8.c: New file.
61471
61472         * modules/unistr/u32-to-u16: New file.
61473         * lib/unistr/u32-to-u16.c: New file.
61474
61475         * modules/unistr/u8-check: New file.
61476         * modules/unistr/u16-check: New file.
61477         * modules/unistr/u32-check: New file.
61478         * lib/unistr/u8-check.c: New file.
61479         * lib/unistr/u16-check.c: New file.
61480         * lib/unistr/u32-check.c: New file.
61481
61482         * modules/unistr/u8-chr: New file.
61483         * modules/unistr/u16-chr: New file.
61484         * modules/unistr/u32-chr: New file.
61485         * lib/unistr/u8-chr.c: New file.
61486         * lib/unistr/u16-chr.c: New file.
61487         * lib/unistr/u32-chr.c: New file.
61488
61489         * modules/unistr/u8-cmp: New file.
61490         * modules/unistr/u16-cmp: New file.
61491         * modules/unistr/u32-cmp: New file.
61492         * lib/unistr/u8-cmp.c: New file.
61493         * lib/unistr/u16-cmp.c: New file.
61494         * lib/unistr/u32-cmp.c: New file.
61495
61496         * modules/unistr/u8-cpy: New file.
61497         * modules/unistr/u16-cpy: New file.
61498         * modules/unistr/u32-cpy: New file.
61499         * lib/unistr/u8-cpy.c: New file.
61500         * lib/unistr/u16-cpy.c: New file.
61501         * lib/unistr/u32-cpy.c: New file.
61502         * lib/unistr/u-cpy.h: New file.
61503
61504         * modules/unistr/u8-cpy-alloc: New file.
61505         * modules/unistr/u16-cpy-alloc: New file.
61506         * modules/unistr/u32-cpy-alloc: New file.
61507         * lib/unistr/u8-cpy-alloc.c: New file.
61508         * lib/unistr/u16-cpy-alloc.c: New file.
61509         * lib/unistr/u32-cpy-alloc.c: New file.
61510         * lib/unistr/u-cpy-alloc.h: New file.
61511
61512         * modules/unistr/u8-endswith: New file.
61513         * modules/unistr/u16-endswith: New file.
61514         * modules/unistr/u32-endswith: New file.
61515         * lib/unistr/u8-endswith.c: New file.
61516         * lib/unistr/u16-endswith.c: New file.
61517         * lib/unistr/u32-endswith.c: New file.
61518         * lib/unistr/u-endswith.h: New file.
61519
61520         * modules/unistr/u8-mblen: New file.
61521         * modules/unistr/u16-mblen: New file.
61522         * modules/unistr/u32-mblen: New file.
61523         * lib/unistr/u8-mblen.c: New file.
61524         * lib/unistr/u16-mblen.c: New file.
61525         * lib/unistr/u32-mblen.c: New file.
61526
61527         * modules/unistr/u8-mbtouc: New file.
61528         * modules/unistr/u16-mbtouc: New file.
61529         * modules/unistr/u32-mbtouc: New file.
61530         * lib/unistr/u8-mbtouc.c: New file.
61531         * lib/unistr/u16-mbtouc.c: New file.
61532         * lib/unistr/u32-mbtouc.c: New file.
61533
61534         * modules/unistr/u8-mbtouc-safe: New file.
61535         * modules/unistr/u16-mbtouc-safe: New file.
61536         * modules/unistr/u32-mbtouc-safe: New file.
61537         * lib/unistr/u8-mbtouc-safe.c: New file.
61538         * lib/unistr/u16-mbtouc-safe.c: New file.
61539         * lib/unistr/u32-mbtouc-safe.c: New file.
61540
61541         * modules/unistr/u8-move: New file.
61542         * modules/unistr/u16-move: New file.
61543         * modules/unistr/u32-move: New file.
61544         * lib/unistr/u8-move.c: New file.
61545         * lib/unistr/u16-move.c: New file.
61546         * lib/unistr/u32-move.c: New file.
61547         * lib/unistr/u-move.h: New file.
61548
61549         * modules/unistr/u8-next: New file.
61550         * modules/unistr/u16-next: New file.
61551         * modules/unistr/u32-next: New file.
61552         * lib/unistr/u8-next.c: New file.
61553         * lib/unistr/u16-next.c: New file.
61554         * lib/unistr/u32-next.c: New file.
61555
61556         * modules/unistr/u8-prev: New file.
61557         * modules/unistr/u16-prev: New file.
61558         * modules/unistr/u32-prev: New file.
61559         * lib/unistr/u8-prev.c: New file.
61560         * lib/unistr/u16-prev.c: New file.
61561         * lib/unistr/u32-prev.c: New file.
61562
61563         * modules/unistr/u8-set: New file.
61564         * modules/unistr/u16-set: New file.
61565         * modules/unistr/u32-set: New file.
61566         * lib/unistr/u8-set.c: New file.
61567         * lib/unistr/u16-set.c: New file.
61568         * lib/unistr/u32-set.c: New file.
61569         * lib/unistr/u-set.h: New file.
61570
61571         * modules/unistr/u8-startswith: New file.
61572         * modules/unistr/u16-startswith: New file.
61573         * modules/unistr/u32-startswith: New file.
61574         * lib/unistr/u8-startswith.c: New file.
61575         * lib/unistr/u16-startswith.c: New file.
61576         * lib/unistr/u32-startswith.c: New file.
61577         * lib/unistr/u-startswith.h: New file.
61578
61579         * modules/unistr/u8-stpcpy: New file.
61580         * modules/unistr/u16-stpcpy: New file.
61581         * modules/unistr/u32-stpcpy: New file.
61582         * lib/unistr/u8-stpcpy.c: New file.
61583         * lib/unistr/u16-stpcpy.c: New file.
61584         * lib/unistr/u32-stpcpy.c: New file.
61585         * lib/unistr/u-stpcpy.h: New file.
61586
61587         * modules/unistr/u8-stpncpy: New file.
61588         * modules/unistr/u16-stpncpy: New file.
61589         * modules/unistr/u32-stpncpy: New file.
61590         * lib/unistr/u8-stpncpy.c: New file.
61591         * lib/unistr/u16-stpncpy.c: New file.
61592         * lib/unistr/u32-stpncpy.c: New file.
61593         * lib/unistr/u-stpncpy.h: New file.
61594
61595         * modules/unistr/u8-strcat: New file.
61596         * modules/unistr/u16-strcat: New file.
61597         * modules/unistr/u32-strcat: New file.
61598         * lib/unistr/u8-strcat.c: New file.
61599         * lib/unistr/u16-strcat.c: New file.
61600         * lib/unistr/u32-strcat.c: New file.
61601         * lib/unistr/u-strcat.h: New file.
61602
61603         * modules/unistr/u8-strchr: New file.
61604         * modules/unistr/u16-strchr: New file.
61605         * modules/unistr/u32-strchr: New file.
61606         * lib/unistr/u8-strchr.c: New file.
61607         * lib/unistr/u16-strchr.c: New file.
61608         * lib/unistr/u32-strchr.c: New file.
61609
61610         * modules/unistr/u8-strcmp: New file.
61611         * modules/unistr/u16-strcmp: New file.
61612         * modules/unistr/u32-strcmp: New file.
61613         * lib/unistr/u8-strcmp.c: New file.
61614         * lib/unistr/u16-strcmp.c: New file.
61615         * lib/unistr/u32-strcmp.c: New file.
61616
61617         * modules/unistr/u8-strcpy: New file.
61618         * modules/unistr/u16-strcpy: New file.
61619         * modules/unistr/u32-strcpy: New file.
61620         * lib/unistr/u8-strcpy.c: New file.
61621         * lib/unistr/u16-strcpy.c: New file.
61622         * lib/unistr/u32-strcpy.c: New file.
61623         * lib/unistr/u-strcpy.h: New file.
61624
61625         * modules/unistr/u8-strcspn: New file.
61626         * modules/unistr/u16-strcspn: New file.
61627         * modules/unistr/u32-strcspn: New file.
61628         * lib/unistr/u8-strcspn.c: New file.
61629         * lib/unistr/u16-strcspn.c: New file.
61630         * lib/unistr/u32-strcspn.c: New file.
61631         * lib/unistr/u-strcspn.h: New file.
61632
61633         * modules/unistr/u8-strdup: New file.
61634         * modules/unistr/u16-strdup: New file.
61635         * modules/unistr/u32-strdup: New file.
61636         * lib/unistr/u8-strdup.c: New file.
61637         * lib/unistr/u16-strdup.c: New file.
61638         * lib/unistr/u32-strdup.c: New file.
61639         * lib/unistr/u-strdup.h: New file.
61640
61641         * modules/unistr/u8-strlen: New file.
61642         * modules/unistr/u16-strlen: New file.
61643         * modules/unistr/u32-strlen: New file.
61644         * lib/unistr/u8-strlen.c: New file.
61645         * lib/unistr/u16-strlen.c: New file.
61646         * lib/unistr/u32-strlen.c: New file.
61647         * lib/unistr/u-strlen.h: New file.
61648
61649         * modules/unistr/u8-strmblen: New file.
61650         * modules/unistr/u16-strmblen: New file.
61651         * modules/unistr/u32-strmblen: New file.
61652         * lib/unistr/u8-strmblen.c: New file.
61653         * lib/unistr/u16-strmblen.c: New file.
61654         * lib/unistr/u32-strmblen.c: New file.
61655
61656         * modules/unistr/u8-strmbtouc: New file.
61657         * modules/unistr/u16-strmbtouc: New file.
61658         * modules/unistr/u32-strmbtouc: New file.
61659         * lib/unistr/u8-strmbtouc.c: New file.
61660         * lib/unistr/u16-strmbtouc.c: New file.
61661         * lib/unistr/u32-strmbtouc.c: New file.
61662
61663         * modules/unistr/u8-strncat: New file.
61664         * modules/unistr/u16-strncat: New file.
61665         * modules/unistr/u32-strncat: New file.
61666         * lib/unistr/u8-strncat.c: New file.
61667         * lib/unistr/u16-strncat.c: New file.
61668         * lib/unistr/u32-strncat.c: New file.
61669         * lib/unistr/u-strncat.h: New file.
61670
61671         * modules/unistr/u8-strncmp: New file.
61672         * modules/unistr/u16-strncmp: New file.
61673         * modules/unistr/u32-strncmp: New file.
61674         * lib/unistr/u8-strncmp.c: New file.
61675         * lib/unistr/u16-strncmp.c: New file.
61676         * lib/unistr/u32-strncmp.c: New file.
61677
61678         * modules/unistr/u8-strncpy: New file.
61679         * modules/unistr/u16-strncpy: New file.
61680         * modules/unistr/u32-strncpy: New file.
61681         * lib/unistr/u8-strncpy.c: New file.
61682         * lib/unistr/u16-strncpy.c: New file.
61683         * lib/unistr/u32-strncpy.c: New file.
61684         * lib/unistr/u-strncpy.h: New file.
61685
61686         * modules/unistr/u8-strnlen: New file.
61687         * modules/unistr/u16-strnlen: New file.
61688         * modules/unistr/u32-strnlen: New file.
61689         * lib/unistr/u8-strnlen.c: New file.
61690         * lib/unistr/u16-strnlen.c: New file.
61691         * lib/unistr/u32-strnlen.c: New file.
61692         * lib/unistr/u-strnlen.h: New file.
61693
61694         * modules/unistr/u8-strpbrk: New file.
61695         * modules/unistr/u16-strpbrk: New file.
61696         * modules/unistr/u32-strpbrk: New file.
61697         * lib/unistr/u8-strpbrk.c: New file.
61698         * lib/unistr/u16-strpbrk.c: New file.
61699         * lib/unistr/u32-strpbrk.c: New file.
61700         * lib/unistr/u-strpbrk.h: New file.
61701
61702         * modules/unistr/u8-strrchr: New file.
61703         * modules/unistr/u16-strrchr: New file.
61704         * modules/unistr/u32-strrchr: New file.
61705         * lib/unistr/u8-strrchr.c: New file.
61706         * lib/unistr/u16-strrchr.c: New file.
61707         * lib/unistr/u32-strrchr.c: New file.
61708
61709         * modules/unistr/u8-strspn: New file.
61710         * modules/unistr/u16-strspn: New file.
61711         * modules/unistr/u32-strspn: New file.
61712         * lib/unistr/u8-strspn.c: New file.
61713         * lib/unistr/u16-strspn.c: New file.
61714         * lib/unistr/u32-strspn.c: New file.
61715         * lib/unistr/u-strspn.h: New file.
61716
61717         * modules/unistr/u8-strstr: New file.
61718         * modules/unistr/u16-strstr: New file.
61719         * modules/unistr/u32-strstr: New file.
61720         * lib/unistr/u8-strstr.c: New file.
61721         * lib/unistr/u16-strstr.c: New file.
61722         * lib/unistr/u32-strstr.c: New file.
61723         * lib/unistr/u-strstr.h: New file.
61724
61725         * modules/unistr/u8-strtok: New file.
61726         * modules/unistr/u16-strtok: New file.
61727         * modules/unistr/u32-strtok: New file.
61728         * lib/unistr/u8-strtok.c: New file.
61729         * lib/unistr/u16-strtok.c: New file.
61730         * lib/unistr/u32-strtok.c: New file.
61731         * lib/unistr/u-strtok.h: New file.
61732
61733         * modules/unistr/u8-uctomb: New file.
61734         * modules/unistr/u16-uctomb: New file.
61735         * modules/unistr/u32-uctomb: New file.
61736         * lib/unistr/u8-uctomb.c: New file.
61737         * lib/unistr/u16-uctomb.c: New file.
61738         * lib/unistr/u32-uctomb.c: New file.
61739
61740         * MODULES.html.sh (Unicode string functions): Add the new modules.
61741
61742 2007-01-08  Bruno Haible  <bruno@clisp.org>
61743
61744         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
61745         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
61746         subdirectories.
61747
61748 2007-01-08  Karl Berry  <karl@gnu.org>
61749
61750         * doc/error.texi: mention that main() fns must set program_name
61751         when progname is used.
61752
61753 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
61754
61755         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
61756         WCTYPE_H is empty, for the benefit of builds from non-distclean
61757         directories.  Problem reported by Eric Blake in
61758         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
61759
61760 2007-01-08  Bruno Haible  <bruno@clisp.org>
61761
61762         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
61763         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
61764         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
61765         PROVIDE_CANONICALIZE_FILENAME_MODE.
61766         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
61767
61768 2007-01-08  Bruno Haible  <bruno@clisp.org>
61769
61770         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
61771         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
61772         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
61773         * lib/fts.c: Likewise.
61774         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
61775
61776 2006-12-25  Bruno Haible  <bruno@clisp.org>
61777
61778         * modules/utf8-ucs4-safe: New file.
61779         * lib/utf8-ucs4-safe.h: New file.
61780         * lib/unistr/utf8-ucs4-safe.c: New file.
61781
61782         * modules/utf16-ucs4-safe: New file.
61783         * lib/utf16-ucs4-safe.h: New file.
61784         * lib/unistr/utf16-ucs4-safe.c: New file.
61785
61786         * MODULES.html.sh (Unicode string functions): Add the new modules.
61787
61788 2007-01-08  Bruno Haible  <bruno@clisp.org>
61789
61790         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
61791         (Depends-on): Add unitypes.
61792         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61793         (u8_mbtouc_aux): Move out to separate file.
61794         (u8_mbtouc): Use ucs4_t, uint8_t types.
61795         * lib/unistr/utf8-ucs4.c: New file.
61796
61797         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
61798         (Depends-on): Add unitypes.
61799         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61800         (u16_mbtouc_aux): Move out to separate file.
61801         (u16_mbtouc): Use ucs4_t, uint16_t types.
61802         * lib/unistr/utf16-ucs4.c: New file.
61803
61804         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
61805         (Depends-on): Add unitypes.
61806         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
61807         (u8_uctomb_aux): Move out to separate file.
61808         (u8_uctomb): Use ucs4_t, uint8_t types.
61809         * lib/unistr/ucs4-utf8.c: New file.
61810
61811         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
61812         (Depends-on): Add unitypes.
61813         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
61814         (u16_uctomb_aux): Move out to separate file.
61815         (u16_uctomb): Use ucs4_t, uint16_t types.
61816         * lib/unistr/ucs4-utf16.c: New file.
61817
61818 2006-12-25  Bruno Haible  <bruno@clisp.org>
61819
61820         * modules/unitypes: New file.
61821         * lib/unitypes.h: New file.
61822         * MODULES.html.sh (func_all_modules): New section "Unicode string
61823         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
61824         this section. Add unitypes.
61825
61826 2007-01-08  Bruno Haible  <bruno@clisp.org>
61827
61828         Avoid variable names that conflict with those from libtool.
61829         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
61830         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
61831         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
61832         library_names_spec to acl_library_names_spec, hardcode_* to
61833         acl_hardcode_*.
61834         Reported by Ralf Wildenhues.
61835
61836 2007-01-08  Bruno Haible  <bruno@clisp.org>
61837
61838         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
61839         definition.
61840         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
61841         definition.
61842         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
61843         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
61844         definition.
61845         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
61846         definition.
61847         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
61848         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
61849         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
61850         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
61851         definition.
61852         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
61853         definition.
61854         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
61855         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
61856         GC_USE_<algorithm>.
61857         * lib/gc-libgcrypt.c: Likewise.
61858         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
61859         * modules/gc-arctwo (configure.ac): Likewise.
61860         * modules/gc-des (configure.ac): Likewise.
61861         * modules/gc-hmac-md5 (configure.ac): Likewise.
61862         * modules/gc-hmac-sha1 (configure.ac): Likewise.
61863         * modules/gc-md2 (configure.ac): Likewise.
61864         * modules/gc-md4 (configure.ac): Likewise.
61865         * modules/gc-md5 (configure.ac): Likewise.
61866         * modules/gc-random (configure.ac): Likewise.
61867         * modules/gc-rijndael (configure.ac): Likewise.
61868         * modules/gc-sha1 (configure.ac): Likewise.
61869
61870 2007-01-08  Bruno Haible  <bruno@clisp.org>
61871
61872         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
61873         macro definition.
61874         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
61875         definition.
61876         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
61877         definition.
61878         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
61879         * modules/fcntl-safer (configure.ac): Likewise.
61880         * modules/fopen-safer (configure.ac): Likewise.
61881         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
61882         GNULIB_FWRITEERROR macro definition.
61883
61884 2007-01-08  Bruno Haible  <bruno@clisp.org>
61885
61886         * m4/gnulib-common.m4: New file.
61887         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
61888         (func_get_filelist): Add m4/gnulib-common.m4.
61889
61890 2007-01-08  Bruno Haible  <bruno@clisp.org>
61891
61892         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
61893         command.
61894
61895 2007-01-08  Jim Meyering  <jim@meyering.net>
61896
61897         Use a more robust test for a "can't happen" condition.
61898         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
61899         narrowed the st_size value.  Presuming the "can't happen" condition
61900         is true, that narrowing could conceivably convert an invalid st_size
61901         value into a valid one.  Instead, use a change based on Matthew
61902         Woehlke's original patch.
61903
61904         Slight readability improvement: use an assert-like macro
61905         in place of literal "abort ()" uses.
61906         * lib/fts.c (fts_assert): Define.
61907         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
61908         Use this macro instead of a bare 'abort'.
61909
61910 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
61911
61912         Don't worry about using IRIX 5.3's wctype.h broken definitions;
61913         simply work around them.
61914         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
61915         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
61916         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
61917         declaring.
61918         Don't bother to define as macros, since the standard doesn't require it.
61919         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
61920         longer worry about IRIX 5.3.
61921         (HAVE_WCTYPE_CTMP_BUG): Remove.
61922
61923 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61924
61925         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
61926         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
61927         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
61928         Problems reported by Georg Schwarz for IRIX 5.3.
61929
61930         * gnulib-tool (autoconf_minversion): Take the maximum version number
61931         found, not the minimum.  Problem reported by James Youngman.
61932
61933 2007-01-03  Karl Berry  <karl@gnu.org>
61934
61935         * doc/error.texi: new file, explaining interaction with progname.
61936         * doc/gnulib.texi: include it.  Update copyright.
61937
61938 2007-01-03  Simon Josefsson  <simon@josefsson.org>
61939
61940         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
61941         AC_CANONICAL_HOST, to improve autobuild outputs.
61942
61943 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
61944             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
61945
61946         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
61947         sockets, server sockets, and other file descriptors.  Count errors
61948         to compute the return value.  Reorder the code a bit to be easier
61949         to follow.  Don't set event bits that were not requested (except
61950         POLLERR and POLLHUP).
61951
61952 2007-01-01  Bruno Haible  <bruno@clisp.org>
61953
61954         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
61955
61956 2007-01-03  Jim Meyering  <jim@meyering.net>
61957
61958         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
61959
61960 2007-01-02  Bruno Haible  <bruno@clisp.org>
61961
61962         * modules/settime (Include): Require timespec.h.
61963         * modules/nanosleep (Include): Likewise.
61964
61965 2007-01-01  Bruno Haible  <bruno@clisp.org>
61966
61967         * gnulib-tool (func_emit_copyright_notice): Bump year.
61968         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
61969
61970 2007-01-01  Bruno Haible  <bruno@clisp.org>
61971
61972         Improve support for OpenBSD.
61973         * build-aux/config.rpath (libname_spec): Export.
61974         (library_names_spec): New variable. Export.
61975         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
61976         library_names_spec from the config.rpath output. Locate shared library
61977         through the name pattern in library_names_spec.
61978
61979 2007-01-01  Eric Blake  <ebb9@byu.net>
61980
61981         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
61982
61983 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
61984
61985         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
61986         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
61987         assume the C locale, and avoid an "eval" that could cause trouble.
61988         Problem with SORT reported by Bob Proulx.
61989
61990         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
61991         Define.  Trivial patch from Henning Nielsen Lund, originally
61992         sent to bug-grep@gnu.org today.
61993
61994 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61995
61996         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
61997         struct stat.  Problem reported by Henning Nielsen Lund.
61998         * lib/acl.c: Include acl.h first, to check interface.  Don't
61999         bother to include sys/types.h and sys/stat.h again.
62000
62001 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
62002
62003         Import the following change from libc; problem reported by
62004         Sven Verdoolaege.
62005
62006         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
62007
62008         [BZ #1373]
62009         * lib/argp.h: Remove __NTH for __argp_usage inline function.
62010
62011 2006-12-28  Jim Meyering  <jim@meyering.net>
62012
62013         * build-aux/announce-gen: Do not assume that the package
62014         builds any of tar.gz, tar.bz2, and .xdelta files.
62015         Suggestion from Simon Josefsson.
62016
62017 2006-12-28  Simon Josefsson  <simon@josefsson.org>
62018
62019         * modules/announce-gen: New file.
62020
62021 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
62022
62023         * lib/mbchar.h: Just include <wctype.h>; the wctype module
62024         handles its gotchas now.
62025         * lib/mbswidth.c: Likewise.
62026         * lib/wcwidth.h: Likewise.
62027         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
62028         and iswcntrl; the wctype module does this stuff now.
62029         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
62030         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62031         * modules/mbchar (Depends-on): Add wctype.
62032         * modules/mbswidth (Depends-on): Likewise.
62033         * modules/wcwidth (Depends-on): Likewise.
62034
62035 2006-12-27  Eric Blake  <ebb9@byu.net>
62036
62037         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
62038         module uses more than what <wctype.h> is required to provide.
62039
62040 2006-12-26  Eric Blake  <ebb9@byu.net>
62041
62042         * gnulib-tool (sed_extract_prog): Avoid space-tab.
62043
62044 2006-12-26  Eric Blake  <ebb9@byu.net>
62045
62046         * modules/absolute-header: New module.
62047         * modules/fcntl (Depends-on): Depend on it.
62048         * modules/inttypes (Depends-on): Likewise.
62049         * modules/stdint (Depends-on): Likewise.
62050         * modules/sys_stat (Depends-on): Likewise.
62051         * modules/wctype (Depends-on): Likewise.
62052         * MODULES.html.sh (Support for building libraries and
62053         executables): Document it.
62054
62055 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
62056
62057         * gnulib-tool (SED): Remove, undoing previous change.
62058         The problem was that it broke coreutils on Solaris, because
62059         "sed --posix" leaked into a makefile.
62060         (sed): New alias, if 'alias' and GNU sed.
62061
62062 2006-12-24  Jim Meyering  <jim@meyering.net>
62063
62064         Work around an fchownat bug in glibc-2.4:
62065         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
62066         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
62067         in spite of the -P option.
62068         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
62069         New macros.
62070         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
62071         * modules/openat (Files): Add lib/fchownat.c.
62072         * lib/openat.c (fchownat): Don't define here.  Move to...
62073         * lib/fchownat.c: ...this new file.
62074
62075 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
62076
62077         Fix bug reported by Bruno Haible in
62078         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
62079         where quotearg.c didn't compile on Mac OS X 10.2 because it
62080         lacks <wchar.h> and wint_t.
62081         * lib/wctype_.h (__wctype_wint_t): New type.
62082         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
62083         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
62084         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
62085         Arg is now of type __wctype_wint_t, not wint_t.
62086         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
62087         substitute HAVE_WINT_T.
62088         * modules/wctype (Files): Add m4/wint_t.m4.
62089         (wctype.h): Substitute HAVE_WINT_T.
62090
62091 2006-12-23  Bruno Haible  <bruno@clisp.org>
62092
62093         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
62094
62095 2006-12-23  Bruno Haible  <bruno@clisp.org>
62096
62097         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
62098         S_ISLNK.
62099         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
62100         mingw.
62101
62102 2006-12-22  Bruno Haible  <bruno@clisp.org>
62103
62104         * lib/copy-file.c: Include acl.h.
62105         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
62106         Close the file descriptors only after being done with copy_acl.
62107         * modules/copy-file (Depends-on): Add acl.
62108
62109 2006-12-22  Bruno Haible  <bruno@clisp.org>
62110
62111         * gnulib-tool (SED): New variable.
62112         Use $SED instead of sed everywhere.
62113
62114 2006-12-22  Bruno Haible  <bruno@clisp.org>
62115
62116         * modules/no-c++: New file.
62117         * m4/no-c++.m4: New file.
62118         * MODULES.html.sh (Support for building libraries and executables):
62119         Add no-c++.
62120
62121 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
62122
62123         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
62124         Include <limits.h>, and use its INT_MAX to rewrite the
62125         j loop so that it does not overflow 'int'.  Problem reported by
62126         Ralf Wildenhues in
62127         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
62128         Play it safe by shifting left by 1 rather than multiplying by 2,
62129         as GCC is less likely to optimize this away when the value
62130         is signed (when it assumes overflow leads to undefined behavior).
62131         Also, don't assume time_t uses two's complement.
62132
62133 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
62134
62135         * MODULES.html.sh: New module wctype.
62136         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
62137         * lib/fnmatch.c: Don't bother to include <wchar.h> before
62138         <wctype.h>, since the new wctype module should fix this.
62139         * lib/quotearg.c: Include <wctype.h> unconditionally, since
62140         the wctype module should arrange for it.
62141         * lib/regex_internal.h: Likewise.
62142         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
62143         since the wctype module should handle this now.
62144         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
62145         * modules/fnmatch (Depends-on): Add wctype.
62146         * modules/quotearg (Depends-on): Likewise.
62147         * modules/regex (Depends-on): Likewise.
62148
62149 2006-12-19  Bruno Haible  <bruno@clisp.org>
62150
62151         * lib/strdup.h [C++]: Wrap definitions in extern "C".
62152         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
62153
62154 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62155
62156         * modules/savewd (Depends-on): Fix dependency on fcntl.
62157
62158 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62159
62160         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
62161         conforms to C99, rather than relying on the user's environment
62162         setting of STDINT_H.
62163
62164 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62165         and Eric Blake  <ebb9@byu.net>
62166
62167         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
62168         This is more consistent with the other defines here.
62169         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
62170         Port to z/OS.  Problem reported by Paul Gilmartin.
62171         Change local vars to use gl_ prefix rather than ac_.
62172         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
62173         with other defines.
62174         * modules/double-slash-root: New module.
62175         * modules/dirname (Files): Remove m4/double-slash-root.m4.
62176         (Depends-on): Add double-slash-root.
62177         * MODULES.html.sh (File system functions): Mention new module.
62178
62179 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
62180
62181         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
62182         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
62183         This is for the benefit of gzip, which doesn't do i18n.
62184
62185 2006-12-12  Jim Meyering  <jim@meyering.net>
62186
62187         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
62188         Reported by Andreas Schwab <schwab@suse.de>.
62189
62190 2006-12-12  Bruno Haible  <bruno@clisp.org>
62191
62192         Merge these changes.
62193         2006-09-05  Bruno Haible  <bruno@clisp.org>
62194         * lib/iconvme.c (iconv_string): No need to save and restore errno when
62195         iconv_alloc succeeded.
62196         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
62197         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
62198         test for " && dest " at the end - dest is always != NULL there. Call
62199         iconv with 4xNULL arguments initially, to reset the state. Call iconv
62200         with 2xNULL arguments, also to flush the state storage. Handle the
62201         IRIX iconv behaviour. Realloc the final result, to throw away unused
62202         memory.
62203
62204 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
62205
62206         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
62207         and fchmodat unconditionally, since glibc 2.4 has them.
62208         Problem reported by Arkadiusz Miskiewicz.
62209
62210 2006-12-10  Bruno Haible  <bruno@clisp.org>
62211
62212         * gnulib-tool (func_import): Show the include files only for those
62213         modules that are copied and specified.
62214         Reported by Karl Berry.
62215
62216 2006-12-08  Jim Meyering  <jim@meyering.net>
62217
62218         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
62219         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
62220
62221         * build-aux/announce-gen: Add two new options, both optional:
62222         --bootstrap-tools=TOOL_LIST
62223               a comma-separated list of tools, e.g.,
62224               autoconf,automake,bison,gnulib
62225         --gnulib-snapshot-date=DATE
62226               if gnulib is in the bootstrap tool list,
62227               then report this as the snapshot date.
62228               If not specified, use the current date/time.
62229               If you specify a date here, be sure it's UTC.
62230
62231 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62232
62233         * tests/test-argp-2.sh: Fix test to match actual output.
62234         (func_compare): Fix sed script to be portable.
62235
62236 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
62237
62238         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
62239         workaround for this case.  It is not autoconfigured now; offhand
62240         it's hard to see how to autoconfigure it.
62241
62242 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
62243
62244         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
62245         a directory that is about to be chowned.  Such a directory's
62246         initial file permissions should permit the owner only and this
62247         should not be changed until after the chown, since the group and
62248         other bits would be incorrect if they granted permission before
62249         the chown.
62250
62251         Fix porting problem for iswctype reported by Georg Schwarz in:
62252         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
62253         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
62254         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
62255         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
62256         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62257
62258 2006-12-03  Jim Meyering  <jim@meyering.net>
62259
62260         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
62261         p->fts_statp may not yet be defined.
62262         (fts_read): Instead, set it in the caller, once p->fts_statp is
62263         sure to be defined, and corresponds to a top-level directory.
62264         This bug made du -x fail.  Here's the coreutils test case:
62265         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
62266         Reported by Mike Frysinger.
62267
62268 2006-12-01  Jim Meyering  <jim@meyering.net>
62269
62270         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
62271         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
62272         Reported by Simon Josefsson.
62273
62274 2006-11-30  Jim Meyering  <jim@meyering.net>
62275
62276         * m4/warning.m4: Use the all-permissive copyright notice
62277         recommended by RMS (rather than LGPL).
62278         * m4/vararrays.m4: Likewise.
62279         * m4/flexmember.m4: Likewise.
62280
62281 2006-11-29  Bruno Haible  <bruno@clisp.org>
62282
62283         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62284         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
62285         using +=.
62286         Reported by Simon Josefsson <simon@josefsson.org>.
62287
62288 2006-11-28  James Youngman <jay@gnu.org>
62289
62290         * README: Advise users that they might find the bug-gnulib@gnu.org
62291         and autotools-announce@gnu.org mailing lists useful.
62292
62293 2006-11-28  Bruno Haible  <bruno@clisp.org>
62294
62295         * m4/ptrdiff_max.m4: Remove file.
62296
62297 2006-11-21  Bruno Haible  <bruno@clisp.org>
62298
62299         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
62300         _AC_COMPUTE_INT.
62301         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62302         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
62303         _AC_COMPUTE_INT.
62304         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62305         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
62306         _AC_COMPUTE_INT.
62307         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62308
62309 2006-11-28  Jim Meyering  <jim@meyering.net>
62310
62311         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
62312         warning from "gcc -Wshadow" about shadowing the builtin.
62313
62314 2006-11-27  Bruno Haible  <bruno@clisp.org>
62315
62316         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
62317         _AC_COMPUTE_INT.
62318         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62319
62320 2006-11-27  Bruno Haible  <bruno@clisp.org>
62321             Paul Eggert  <eggert@cs.ucla.edu>
62322
62323         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
62324
62325 2006-11-26  Bruno Haible  <bruno@clisp.org>
62326
62327         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62328         noinst_LTLIBRARIES.
62329
62330 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
62331             Bruno Haible  <bruno@clisp.org>
62332
62333         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
62334         if compiling with "gcc -ansi".
62335
62336 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
62337
62338         Fix some incompatibilities with gcc -ansi -pedantic.
62339         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
62340         if compiling pedantically with GCC, unless it's C99 or later.
62341         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
62342         it mishandles gcc -ansi -pedantic as well.
62343         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
62344         if gcc -pedantic.
62345         * lib/regexec.c (check_node_accept_bytes): Don't use auto
62346         initializers for struct if -pedantic, unless it's C99 or later.
62347
62348 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
62349
62350         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
62351         Don't close an fd more than once. Identical atimes indicate
62352         success, not failure.
62353
62354 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
62355
62356         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
62357
62358 2006-11-23  Jim Meyering  <jim@meyering.net>
62359
62360         * build-aux/announce-gen: New file.  From coreutils.
62361
62362 2006-11-22  Jim Meyering  <jim@meyering.net>
62363
62364         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
62365         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
62366         (fts_read): Use a temporary to narrow the overused st_size member
62367         before using it in a switch statement.  Reported by Matthew Woehlke.
62368
62369         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
62370         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
62371
62372 2006-11-20  Bruno Haible  <bruno@clisp.org>
62373
62374         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
62375         changequote instead of pairs of brackets.
62376         Reported by Andreas Schwab <schwab@suse.de>.
62377
62378 2006-11-21  Jim Meyering  <jim@meyering.net>
62379
62380         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
62381         so as to remain compatible with older compilers.
62382         Patch from Michael Deutschmann.
62383
62384 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
62385
62386         * MODULES.html.sh (File system functions): Add openat.
62387
62388         * lib/openat.h (rpl_fstatat): New macro, if
62389         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
62390         (fstatat): Define to rpl_fstatat under the same conditions,
62391         unless COMPILING_FSTATAT.
62392         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
62393         seems to have the bug.
62394         * lib/fstatat.c: New file.
62395         * modules/openat (Files): Add it.
62396
62397 2006-11-20  Bruno Haible  <bruno@clisp.org>
62398
62399         * Makefile: New file.
62400
62401 2006-11-20  Jim Meyering  <jim@meyering.net>
62402
62403         The beginnings of syntax-related checks for gnulib.
62404         * lib/Makefile: New file.
62405         * lib/t-idcache: New script.  Ensure that the two halves of
62406         idcache.c stay in sync.
62407
62408         * lib/idcache.c: Adjust comments in user- and group- portions to
62409         be more accurate, and to be consistent with one another.
62410
62411 2006-11-20  Jim Meyering  <jim@meyering.net>
62412
62413         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
62414         continue using the flexible array member (thus, this module performs
62415         half as many malloc calls), with the addition that...
62416         (getgroup, getuser): Consistently record a non-match via an empty
62417         "name" string, and map an empty string match to a NULL return value.
62418         * modules/idcache (Depends-on): Re-add flexmember.
62419
62420         * lib/idcache.c (getuser): Remove all uses of the register keyword.
62421         (getuidbyname, getgroup, getgidbyname): Likewise.
62422
62423         Use cleaner syntax: NULL rather than 0.
62424         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
62425
62426 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
62427
62428         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
62429         It mishandled the case where the group was missing.
62430         Problem reported by Greg Schafer.
62431         * modules/idcache: Likewise.
62432
62433 2006-11-18  Jim Meyering  <jim@meyering.net>
62434
62435         * check-module (%exempt_header): Add exception for some
62436         conditionally-included headers.
62437
62438         * modules/i-ring (Depends-on): Add verify.
62439         (License): Change to LGPL.
62440
62441 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62442
62443         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
62444         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
62445         and inttostr.h.  Use snprintf rather than uinttostr, so that
62446         LGPLed code doesn't depend on GPLed.
62447
62448 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
62449
62450         * modules/inline (License): Change from GPL to LGPL.
62451
62452 2006-11-17  Jim Meyering  <jim@meyering.net>
62453
62454         * modules/d-type (License): Switch to LGPL.
62455
62456 2006-11-15  Bruno Haible  <bruno@clisp.org>
62457
62458         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
62459
62460 2006-11-15  Eric Blake  <ebb9@byu.net>
62461
62462         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
62463         the module dependency.
62464
62465 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62466             Bruno Haible  <bruno@clisp.org>
62467
62468         * gnulib-tool (func_create_testdir): Add license consistency check.
62469
62470 2006-11-15  Eric Blake  <ebb9@byu.net>
62471
62472         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
62473         random "(cached)" in configure output.
62474
62475 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62476
62477         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
62478         test for conforming inttypes.h is both announced and cached.
62479
62480         * MODULES.html.sh (seen_modules, seen_files): New variables.
62481         (func_module): Rewrite to use a few less gnulib-tool and sed
62482         invocations.  Avoid a couple of quadratic algorithms for ...
62483         (missed_modules, missed_files): ... these, with ...
62484         (func_append, func_tmpdir): ... these new functions, from
62485         gnulib-tool.  Analogously, install traps for cleanup.
62486
62487         * tests/test-gc.c (main): Remove unused variables.
62488         * tests/test-read-file.c: Include stdlib.h, for 'free'.
62489
62490 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
62491
62492         * modules/inttostr (License): Change to LGPL.
62493
62494 2006-11-14  Eric Blake  <ebb9@byu.net>
62495
62496         * modules/tempname (License): Change to LGPL.
62497
62498 2006-11-14  Eric Blake  <ebb9@byu.net>
62499
62500         * doc/functions.texi (Function Portability): *printf functions on
62501         Cygwin now understand all POSIX size specifiers.
62502
62503 2006-11-14  Bruno Haible  <bruno@clisp.org>
62504
62505         * modules/c-ctype (License): Change to LGPL.
62506
62507 2006-11-12  Bruno Haible  <bruno@clisp.org>
62508
62509         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
62510         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
62511         for GNOME libraries, for which the include files are installed in
62512         subdirectories of $prefix/include.
62513
62514 2006-11-12  Bruno Haible  <bruno@clisp.org>
62515
62516         * m4/lib-link.m4: Require at least autoconf-2.54.
62517         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
62518         name to underscores for the --with option.
62519
62520 2006-11-13  Bruno Haible  <bruno@clisp.org>
62521
62522         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
62523         the tests directory.
62524         Reported by Ralf Wildenhues.
62525
62526 2006-11-13  Bruno Haible  <bruno@clisp.org>
62527
62528         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
62529         (func_emit_initmacro_end): Undo the override here.
62530         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
62531         Works around the famous automake error in coreutils.
62532
62533 2006-11-13  Eric Blake  <ebb9@byu.net>
62534
62535         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
62536         element, not its node.
62537
62538 2006-11-12  Bruno Haible  <bruno@clisp.org>
62539
62540         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
62541         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
62542
62543 2006-11-12  Bruno Haible  <bruno@clisp.org>
62544
62545         * gnulib-tool: New option --local-symlink.
62546         (func_usage): Document it.
62547         (lsymbolic): New variable.
62548         (func_import, func_create_testdir): If --symlink was not specified,
62549         test whether --local-symlink was specified and the file comes from
62550         the local_gnulib_dir.
62551
62552 2006-11-12  Bruno Haible  <bruno@clisp.org>
62553
62554         * gnulib-tool (func_ln): New function.
62555         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
62556
62557 2006-11-12  Bruno Haible  <bruno@clisp.org>
62558
62559         Finish support for source files in subdirectories.
62560         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
62561         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
62562         AUTOMAKE_OPTIONS.
62563         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
62564
62565 2006-11-12  Bruno Haible  <bruno@clisp.org>
62566
62567         * gnulib-tool (func_get_automake_snippet): Synthesize also an
62568         EXTRA_lib_SOURCES augmentation.
62569         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
62570
62571 2006-11-12  Jim Meyering  <jim@meyering.net>
62572
62573         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
62574         file descriptors.  This also averts a failure on systems with
62575         native openat support when a traversed directory lacks "x" access.
62576         * lib/fts_.h: Include "i-ring.h"
62577         (struct FTS) [fts_fd_ring]: New member.
62578         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
62579         (FCHDIR): Add parentheses.
62580         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
62581         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
62582         When descending, rather than simply closing the previous
62583         fts_cwd_fd value, push that file descriptor onto the ring.
62584         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
62585         (fts_open): Initialize the new fd_ring member.
62586         (fts_close): Clear the ring.
62587         (fts_safe_changedir): When possible, use our new fd_ring to skip
62588         the diropen and fstat and dev/ino comparison that would normally
62589         accompany a virtual `chdir ("..")'.
62590
62591         * modules/fts (Depends-on): Add i-ring.
62592         * modules/i-ring: New module.
62593         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
62594         * m4/i-ring.m4: New file.
62595
62596 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62597
62598         * gnulib-tool (func_create_testdir): Fix replacement of
62599         `build-aux' in configure.ac.  Run autotools in gltests
62600         subdirectory.
62601         (func_create_testdir, func_create_megatestdir, test): There is
62602         no need for '--force' in most autotool invocations in a new
62603         tree.  Actually fail the whole test if any of the tools, or the
62604         configure or make stages fail.
62605
62606         Sync from Automake.
62607         * build-aux/gnupload: Revert last change.  Add pointer to upload
62608         instructions of the GNU Maintenance Instructions.
62609         Suggestion by Karl Berry.
62610
62611 2006-11-10  Jim Meyering  <jim@meyering.net>
62612
62613         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
62614
62615 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62616
62617         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
62618         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
62619         (bind_textdomain_codeset) [! ENABLE_NLS]:
62620         Evaluate all the arguments.  That way, callers get compatible behavior
62621         if the arguments have side effects.  Also, it avoids some GCC
62622         diagnostics in some cases; Joel E. Denny reported problems when Bison
62623         was configured with --enable-gcc-warnigs.
62624
62625 2006-11-10  Jim Meyering  <jim@meyering.net>
62626
62627         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
62628         relevant options in CFLAGS (like -O, -fno-inline) are taken into
62629         account.
62630
62631 2006-11-10  Jim Meyering  <jim@meyering.net>
62632
62633         * modules/inline: New file/module.
62634         * modules/xalloc (Files): Remove m4/inline.m4.
62635         (Depends-on): Add inline, instead.
62636         * modules/oset: Likewise.
62637         * modules/list: Likewise.
62638
62639 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62640
62641         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
62642         Problem reported by Matthew Woehlke.
62643
62644 2006-11-09  Bruno Haible  <bruno@clisp.org>
62645
62646         * lib/tempname.c (gen_tempname): Remove variant that invokes
62647         __gen_tempname.
62648         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
62649         __gen_tempname.
62650
62651 2006-11-08  Bruno Haible  <bruno@clisp.org>
62652
62653         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
62654         to 'yes' instead of 'cross-compiling'.
62655
62656 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
62657
62658         * lib/quotearg.h (quotearg_free): New decl.
62659         * lib/quotearg.c (quotearg_free): New function.
62660         (slot0, nslots, slotvec0, slotvec):
62661         Now file-scope so that quotearg_free can get at them.
62662
62663 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62664
62665         Sync from Automake.
62666         * build-aux/gnupload: Add missing 'gnu' to example URL.
62667         Report by Karl Berry.
62668
62669 2006-11-08  Bruno Haible  <bruno@clisp.org>
62670
62671         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
62672         Suggested by Paul Eggert.
62673
62674 2006-11-08  Jim Meyering  <jim@meyering.net>
62675
62676         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
62677         It's already included if !_LIBC.
62678         (fts_safe_changedir): Add a comment.
62679
62680 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62681
62682         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
62683         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
62684         Matthew Woehlke.
62685
62686         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
62687         definitions up, to avoid colliding with change below.
62688         (static_inline) [HAVE_INLINE]: New macro.
62689         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
62690         Provide extern decls when !HAVE_INLINE.  Do not define unless
62691         static_inline is defined, either by us or by xmalloc.c.  Use
62692         static_inline rather than static inline.
62693         (XCALLOC): Optimize sizeof(T) = 1 case.
62694         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
62695
62696 2006-11-07  Bruno Haible  <bruno@clisp.org>
62697
62698         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
62699         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
62700         AC_C_INLINE.
62701         * modules/xalloc (Files): Add m4/inline.m4.
62702
62703 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62704
62705         * README: Fix typo.
62706         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
62707         (Miscellanous Notes): ...from this.
62708
62709 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62710
62711         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
62712         Mention that offsetof should be used instead of sizeof.
62713         From Bruno Haible.
62714
62715 2006-11-07  Bruno Haible  <bruno@clisp.org>
62716
62717         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
62718
62719 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62720
62721         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62722         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
62723         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62724         (gl_tree_add_before, gl_tree_add_after):
62725         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
62726         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
62727         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62728         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
62729         (gl_linked_add_after, gl_linked_add_at): Likewise.
62730         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
62731         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62732         (gl_tree_add_before, gl_tree_add_after): Likewise.
62733         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
62734         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
62735         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
62736
62737 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62738
62739         * lib/gl_oset.h: Use C comment style, not C++ comment style.
62740
62741 2006-11-06  Bruno Haible  <bruno@clisp.org>
62742
62743         * m4/inline.m4: New file.
62744         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
62745         * modules/list (Files): Add m4/inline.m4.
62746         * modules/oset (Files): Likewise.
62747
62748 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62749
62750         * lib/idcache.c: Include <stddef.h>, for offsetof.
62751         (struct userid.name): Change from char * to a flexible array member.
62752         All uses changed.
62753         * modules/idcache (Depends-on): Add flexmember.
62754
62755         * MODULES.html.sh (Core language properties): New module flexmember.
62756         * modules/flexmember, m4/flexmember.m4: New files.
62757
62758         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
62759         inline functions that are identical with the old xnmalloc_inline,
62760         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
62761         that we can avoid some unnecessary integer multiplications and
62762         divisions in the common case where the element size is known at
62763         compile time.
62764         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
62765         needed.
62766         (xnboundedmalloc): Remove.
62767         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
62768         arguments, for consistency with rest of this header.
62769         (xcharalloc): Rewrite using XNMALLOC.
62770         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
62771         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
62772         versions have been moved to lib/xalloc.h and renamed to be the
62773         non-*_inline versions.
62774         (xmalloc, xrealloc): Implement without reference to the xnmalloc
62775         and xnrealloc functions, since those functions are now inline and
62776         now call us.
62777         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
62778         renaming described above.
62779         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
62780         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
62781         captures the dependency in AC_C_INLINE.
62782
62783         New module canonicalize-lgpl, proposed by Charles Wilson in
62784         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
62785         with a few small changes afterwards.
62786         * MODULES.html.sh (File system functions): New module
62787         canonicalize-lgpl.
62788         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
62789         and canonicalize_file_name.
62790         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
62791         * modules/canonicalize-lgpl: New files.
62792
62793 2006-11-05  Bruno Haible  <bruno@clisp.org>
62794
62795         * gnulib-tool (func_import, func_create_testdir): Create directories
62796         also for files in subdirectories of lib/.
62797
62798 2006-11-05  Bruno Haible  <bruno@clisp.org>
62799
62800         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
62801         ANSI C compliant.
62802
62803 2006-11-03  Bruno Haible  <bruno@clisp.org>
62804
62805         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62806         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
62807         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
62808         (xnboundedmalloc): New inline function.
62809         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
62810         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
62811         xmalloc.
62812         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
62813         xmalloc.
62814         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
62815         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
62816         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
62817         xmalloc.
62818         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
62819         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
62820         xmalloc.
62821         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
62822         gl_tree_add_after): Use XMALLOC instead of xmalloc.
62823         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
62824         xmalloc.
62825         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
62826         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
62827         gl_tree_add_after): Use XMALLOC instead of xmalloc.
62828         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
62829         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
62830         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
62831         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
62832
62833 2006-11-03  Bruno Haible  <bruno@clisp.org>
62834
62835         * lib/c-ctype.h [C++]: Define functions without name mangling.
62836         * lib/fwriteerror.h [C++]: Likewise.
62837         * lib/gcd.h [C++]: Likewise.
62838         * lib/linebreak.h [C++]: Likewise.
62839
62840 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
62841
62842         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
62843         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
62844         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
62845         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
62846         Check for functions and headers just once.
62847         Check for declaration of canonicalize_file_name.
62848         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
62849
62850 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62851
62852         * gnulib-tool (func_import): Fix typo in actioncmd.
62853
62854 2006-11-02  Bruno Haible  <bruno@clisp.org>
62855
62856         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
62857         newline sequence in the Makefile.am snippet as a space, like "make"
62858         does.
62859         Reported by Roger Persson <perrog@gmail.com>.
62860
62861 2006-11-01  Bruno Haible  <bruno@clisp.org>
62862
62863         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
62864         already declared in <string.h>.
62865         * lib/strcase.h (strncasecmp): Don't declare it if yes.
62866
62867 2006-11-01  Bruno Haible  <bruno@clisp.org>
62868
62869         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
62870         * lib/strcase.h: Include <string.h>.
62871         (strcasecmp): Define to rpl_strcasecmp here.
62872
62873 2006-11-01  Bruno Haible  <bruno@clisp.org>
62874
62875         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
62876
62877 2006-11-01  Eric Blake  <ebb9@byu.net>
62878
62879         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
62880
62881         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
62882
62883 2006-10-29  Bruno Haible  <bruno@clisp.org>
62884
62885         Make it compile in C++ mode.
62886         * lib/full-write.c (full_rw): Add a cast.
62887
62888 2006-11-01  Bruno Haible  <bruno@clisp.org>
62889
62890         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
62891         be POSIX compliant.
62892         Reported by Roger Persson <perrog@gmail.com>.
62893
62894 2006-11-01  Eric Blake  <ebb9@byu.net>
62895
62896         * lib/getopt_.h: Fix comments.
62897
62898 2006-10-31  Eric Blake  <ebb9@byu.net>
62899
62900         * modules/tmpdir (Depends-on): Add sys_stat.
62901         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
62902         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
62903         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
62904         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
62905         tempname.
62906
62907 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
62908
62909         Avoid some C++ diagnostics reported by Bruno Haible.
62910         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
62911         xmalloc.
62912         (quotearg_alloc): Use xcharalloc rather than xmalloc.
62913         (struct slotvec): Move to top level.
62914         (quotearg_n_options): Rewrite to avoid xmalloc.
62915         * lib/xalloc.h (xcharalloc): New function.
62916         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
62917         [defined __cplusplus]: Add function template that provides result
62918         type propagation.  This part of the change is from Bruno Haible.
62919
62920 2006-10-29  Bruno Haible  <bruno@clisp.org>
62921
62922         Make it compile in C++ mode.
62923         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
62924         * lib/strnlen1.c (strnlen1): Cast memchr result.
62925         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
62926         * lib/clean-temp.c (string_equals, string_hash): Add casts.
62927         (create_temp_dir): Rename local variable 'template'.
62928         (compile_csharp_using_sscli): Add cast.
62929         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
62930         * lib/findprog.c (find_in_path): Likewise.
62931         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
62932         * lib/wait-process.c (register_slave_subprocess): Likewise.
62933
62934 2006-10-22  Bruno Haible  <bruno@clisp.org>
62935
62936         * modules/tsearch: New file.
62937         * lib/tsearch.h: New file.
62938         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
62939         * m4/tsearch.m4: New file.
62940         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
62941
62942 2006-10-29  Eric Blake  <ebb9@byu.net>
62943
62944         * lib/arcfour.c: Assume config.h.
62945         * lib/arctwo.c: Likewise.
62946         * lib/base64.c: Likewise.
62947         * lib/check-version.c: Likewise.
62948         * lib/crc.c: Likewise.
62949         * lib/des.c: Likewise.
62950         * lib/gc-gnulib.c: Likewise.
62951         * lib/gc-libgcrypt.c: Likewise.
62952         * lib/gc-pbkdf2-sha1.c: Likewise.
62953         * lib/getaddrinfo.c: Likewise.
62954         * lib/getdelim.c: Likewise.
62955         * lib/getline.c: Likewise.
62956         * lib/hmac-md5.c: Likewise.
62957         * lib/hmac-sha1.c: Likewise.
62958         * lib/iconvme.c: Likewise.
62959         * lib/md2.c: Likewise.
62960         * lib/md4.c: Likewise.
62961         * lib/memxor.c: Likewise.
62962         * lib/read-file.c: Likewise.
62963         * lib/readline.c: Likewise.
62964         * lib/rijndael-alg-fst.c: Likewise.
62965         * lib/rijndael-api-fst.c: Likewise.
62966         * lib/xgetdomainname.c: Likewise.
62967
62968 2006-10-28  Eric Blake  <ebb9@byu.net>
62969
62970         * lib/xstrndup.c: Assume config.h.
62971
62972 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
62973
62974         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
62975         stat-macros.h is now for our own macros, whereas stat_h is for
62976         macros in the <sys/stat.h> name space.
62977         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
62978         (STAT_MACROS_H): Remove.
62979         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
62980         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
62981         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
62982         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
62983         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
62984         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
62985         Move these macros to ...
62986         * lib/stat_.h: here.  Don't include stat-macros.h.
62987         * lib/canonicalize.c: Don't include stat-macros.h.
62988         * lib/chown.c: Likewise.
62989         * lib/euidaccess.c: Likewise.
62990         * lib/file-type.c: Likewise.
62991         * lib/filemode.c: Likewise.
62992         * lib/glob.c: Likewise.
62993         * lib/isapipe.c: Likewise.
62994         * lib/lchown.c: Likewise.
62995         * lib/lstat.c: Likewise.
62996         * lib/mkdir-p.c: Likewise.
62997         * lib/rmdir.c: Likewise.
62998         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
62999         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
63000         unless mkdir isn't declared, to speed up 'configure'.
63001         Always create sys/stat.h, since it's unlikely any real sys/stat.h
63002         would define all the S_* symbols.
63003         * modules/canonicalize (Depends-on):
63004         Depend on sys_stat, not stat-macros.
63005         * modules/chown: Likewise.
63006         * modules/euidaccess: Likewise.
63007         * modules/filemode: Likewise.
63008         * modules/file-type: Likewise.
63009         * modules/glob: Likewise.
63010         * modules/isapipe: Likewise.
63011         * modules/lchown: Likewise.
63012         * modules/lstat: Likewise.
63013         * modules/mkancesdirs: Likewise.
63014         * modules/rmdir: Likewise.
63015         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
63016         * modules/modechange: Likewise.
63017         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
63018         (configure.ac): Remove gl_STAT_MACROS.
63019         * modules/sys_stat (Depends-on): Remove stat-macros.
63020
63021 2006-10-27  Bruno Haible  <bruno@clisp.org>
63022
63023         * m4/signed.m4: Remove file.
63024         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
63025         invocation.
63026         * modules/vasnprintf (Files): Remove m4/signed.m4.
63027
63028 2006-10-27  Bruno Haible  <bruno@clisp.org>
63029
63030         Update to GNU gettext 0.16.
63031         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
63032         m4/inttypes-h.m4, m4/signed.m4.
63033         * m4/gettext.m4: Update to GNU gettext 0.16.
63034         * m4/intl.m4: New file, from GNU gettext.
63035         * m4/intldir.m4: New file, from GNU gettext.
63036         * config/srclist.txt: Update
63037
63038 2006-10-27  Eric Blake  <ebb9@byu.net>
63039
63040         * MODULES.html.sh: Document tempname.
63041         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
63042         dependencies.
63043         (Files): Move lib/tempname.c...
63044         * modules/tempname: ...to this new module.
63045         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
63046         (gl_PREREQ_TEMPNAME): Move...
63047         * m4/tempname.m4: ...to this new file.
63048         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
63049         * modules/sys_stat (Depends-on): Add stat-macros.
63050         * lib/stat_.h (includes): Pick up stat macros.
63051         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
63052         if stat macros are broken.
63053         * lib/tempname.c (includes): No need to include "stat-macros.h".
63054         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
63055         (direxists, __path_search) [!_LIBC]: Don't compile these in
63056         gnulib; the tmpdir module covers that.
63057         * lib/tempname.h: New file.
63058
63059 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
63060
63061         * COPYING: Explain how gnulib-tool converts licence headers.
63062         Almost all wording by Eric Blake.
63063
63064 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
63065
63066         * lib/mbchar.h (is_basic_table): Make read-only.
63067         * lib/mbchar.c (is_basic_table): Likewise.
63068         Reported by John Darrington.
63069
63070 2006-10-25  Bruno Haible  <bruno@clisp.org>
63071
63072         * lib/progname.h (set_program_name): Undefine before defining.
63073
63074 2006-10-25  Bruno Haible  <bruno@clisp.org>
63075
63076         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
63077         false for non-gcc C++ compilers.
63078         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
63079
63080 2006-10-24  Bruno Haible  <bruno@clisp.org>
63081
63082         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
63083         iconv implementations like Irix iconv.
63084
63085 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63086
63087         * modules/vararrays: New file.
63088         * m4/vararrays.m4: New file, taken from diffutils.
63089         * MODULES.html.sh: New module vararrays.
63090
63091 2006-10-24  Karl Berry  <karl@gnu.org>
63092
63093         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
63094         Don't call GNU Unix.
63095
63096 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63097
63098         * users.txt: Add Libtool.
63099
63100         Sync from Libtool:
63101
63102         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63103
63104         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
63105         to gnulib's policy of including config.h unconditionally.
63106
63107 2006-10-24  Bruno Haible  <bruno@clisp.org>
63108
63109         * modules/wcwidth (Files): Add m4/wint_t.m4.
63110         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
63111         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
63112
63113 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63114
63115         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
63116         to pacify GCC with some -W flags enabled.  Problem reported by
63117         Bruno Haible.
63118
63119 2006-10-24  Jim Meyering  <jim@meyering.net>
63120
63121         * MODULES.html.sh: Remove uinttostr.  It's not a module.
63122         Reported by Karl Berry.
63123
63124 2006-10-23  Bruno Haible  <bruno@clisp.org>
63125
63126         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
63127
63128 2006-10-24  Bruno Haible  <bruno@clisp.org>
63129
63130         * lib/gl_list.h: Use C comment style, not C++ comment style.
63131
63132 2006-10-23  Eric Blake  <ebb9@byu.net>
63133
63134         * lib/getaddrinfo.c (includes): Add missing include.
63135
63136 2006-10-23  Bruno Haible  <bruno@clisp.org>
63137             Paul Eggert  <eggert@cs.ucla.edu>
63138
63139         Ability to rename obstack_free.
63140         * lib/obstack.h (__obstack_free): New macro. Declare instead of
63141         obstack_free.
63142         (obstack_free): Invoke the __obstack_free macro.
63143         * lib/obstack.c (obstack_free): Use __obstack_free macro.
63144
63145 2006-10-23  Bruno Haible  <bruno@clisp.org>
63146             Paul Eggert  <eggert@cs.ucla.edu>
63147
63148         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
63149         __argc, __argv from the declaration. (They are defined as macros on
63150         mingw.)
63151
63152 2006-10-22  Bruno Haible  <bruno@clisp.org>
63153
63154         * doc/gnulib-intro.texi: New file.
63155         * doc/gnulib.texi: Include it.
63156
63157 2006-10-21  Bruno Haible  <bruno@clisp.org>
63158
63159         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
63160         "Introduction", "Miscellanous Notes", "Particular Modules".
63161
63162 2006-10-21  Bruno Haible  <bruno@clisp.org>
63163
63164         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63165         Change mostlyclean-local rule to avoid sh syntax error from bash
63166         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
63167
63168 2006-10-23  Jim Meyering  <jim@meyering.net>
63169
63170         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
63171         in place of snprintf.
63172
63173         * modules/inttostr (Files): Add lib/uinttostr.c.
63174         * lib/uinttostr.c (inttostr): New file/function.
63175         * lib/inttostr.h (uinttostr): Declare.
63176         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
63177         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
63178         Add uinttostr.
63179         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
63180
63181 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
63182
63183         * lib/canonicalize.c (ELOOP): Define if not already defined.
63184         Problem reported by Bruno Haible in
63185         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
63186
63187 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
63188
63189         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
63190         Problem reported by Perry Smith and Ville Laurikari.
63191
63192         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
63193         uses.
63194
63195 2006-10-19  Bruno Haible  <bruno@clisp.org>
63196
63197         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
63198         for mingw.
63199
63200 2006-10-19  Bruno Haible  <bruno@clisp.org>
63201
63202         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
63203         Needed for mingw.
63204
63205 2006-10-19  Bruno Haible  <bruno@clisp.org>
63206
63207         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
63208
63209 2006-10-19  Bruno Haible  <bruno@clisp.org>
63210
63211         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
63212         it.
63213
63214 2006-10-19  Bruno Haible  <bruno@clisp.org>
63215
63216         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
63217         invocation.
63218
63219 2006-10-19  Bruno Haible  <bruno@clisp.org>
63220
63221         * gnulib-tool (func_create_testdir): Don't include ftruncate and
63222         mountlist by default.
63223
63224 2006-10-16  Bruno Haible  <bruno@clisp.org>
63225
63226         * lib/c-strstr.c: Include c-strstr.h.
63227
63228 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
63229
63230         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
63231         in a slash.
63232
63233 2006-10-18  Bruno Haible  <bruno@clisp.org>
63234
63235         * lib/lock.h [C++]: Wrap definitions in extern "C".
63236
63237 2006-10-18  Bruno Haible  <bruno@clisp.org>
63238
63239         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
63240         gl_LIBOBJS list.
63241
63242 2006-10-18  Bruno Haible  <bruno@clisp.org>
63243
63244         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
63245
63246 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
63247
63248         * lib/xstrtol.h: Include gettext.h.
63249         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
63250         Problem reported by Eric Blake.
63251         * modules/xstrtol (Depends-on): Add gettext-h.
63252
63253 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
63254
63255         * lib/strftime.c (advance): New macro.
63256         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
63257         incomplete type, so you can't add 0 to it.  Problem and patch
63258         reported by Eelco Dolstra for dietlibc.
63259
63260 2006-10-18  Jim Meyering  <jim@meyering.net>
63261
63262         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
63263         type for a local, and rename it: s/up/user_proc/.
63264
63265 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
63266
63267         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
63268         READ_UTMP_USER_PROCESS.
63269         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
63270
63271 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
63272
63273         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
63274         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
63275
63276 2006-10-17  Eric Blake  <ebb9@byu.net>
63277
63278         * lib/sigprocmask.c (sigprocmask): Fix typo.
63279
63280         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
63281
63282         * modules/clean-temp (Makefile.am): Don't add to make output...
63283         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
63284         config.h.
63285
63286 2006-10-17  Bruno Haible  <bruno@clisp.org>
63287
63288         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
63289         differently if DEFAULT_TEXT_DOMAIN is set.
63290
63291 2006-10-16  Bruno Haible  <bruno@clisp.org>
63292
63293         * lib/clean-temp.c: Include fwriteerror.h.
63294
63295 2006-10-16  Bruno Haible  <bruno@clisp.org>
63296
63297         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
63298
63299 2006-10-16  Bruno Haible  <bruno@clisp.org>
63300
63301         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
63302         * lib/sigprocmask.h: Include <sys/types.h>.
63303         (sigset_t): Use the system's definition if present.
63304
63305 2006-10-17  Eric Blake  <ebb9@byu.net>
63306
63307         * lib/xvasprintf.c (includes): Assume config.h.
63308         * lib/xasprintf.c (includes): Likewise.
63309
63310 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63311
63312         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
63313         at least as wide as intmax_t.
63314
63315 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
63316
63317         (Imported from Automake.)
63318         * build-aux/gnupload: Update to version 1.1 of directive file.
63319
63320 2006-10-16  Eric Blake  <ebb9@byu.net>
63321
63322         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
63323         match Automake 1.10a.
63324
63325 2006-10-14  Bruno Haible  <bruno@clisp.org>
63326
63327         * modules/sigprocmask: New file.
63328         * lib/sigprocmask.h: New file.
63329         * lib/sigprocmask.c: New file.
63330         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
63331         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
63332         request sigprocmask.o.
63333         (gl_PREREQ_SIGPROCMASK): New macro.
63334         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
63335         (Depends-on): Add sigprocmask.
63336         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
63337         gt_SIGNALBLOCKING. Test for 'raise' only once.
63338         * lib/fatal-signal.c: Include sigprocmask.h.
63339         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
63340         unblock_fatal_signals): Define always.
63341         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63342         sigprocmask.
63343
63344 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63345
63346         Sync from Automake.
63347         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
63348         which incorrectly sets the mode of an existing destination
63349         directory.  In some cases the unpatched install-sh could do the
63350         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
63351         system.  We hope this is rare in practice, but it's clearly worth
63352         fixing.  Problem reported by Alex Unleashed in
63353         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
63354         Also, don't bother to check for -m bugs unless we're using -m;
63355         suggested by Stepan Kasal.
63356
63357 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63358
63359         Sync from Automake.
63360         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
63361         `-c' flag, so they appear at the same position as in %FASTDEP%
63362         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
63363         which ignores unknown options only after the first non-option.
63364         Bug report against M4 by Nelson H. F. Beebe.
63365
63366 2006-10-13  Jim Meyering  <jim@meyering.net>
63367
63368         Fix a bug in yesterday's change.
63369         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
63370         p->fts_statp->st_dev would be used uninitialized.
63371         Ensures that we always call fts_stat on the very first entry.
63372         Miklos Szeredi reported that find -xdev stopped working.
63373
63374 2006-10-12  Bruno Haible  <bruno@clisp.org>
63375
63376         * gnulib-tool (func_get_automake_snippet): Append an automatically
63377         computed EXTRA_DIST augmentation.
63378         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
63379         * modules/alloca-opt (Makefile.am): Likewise.
63380         * modules/allocsa (Makefile.am): Likewise.
63381         * modules/arcfour (Makefile.am): Likewise.
63382         * modules/arctwo (Makefile.am): Likewise.
63383         * modules/argmatch (Makefile.am): Likewise.
63384         * modules/argz (Makefile.am): Likewise.
63385         * modules/atexit (Makefile.am): Likewise.
63386         * modules/backupfile (Makefile.am): Likewise.
63387         * modules/byteswap (Makefile.am): Likewise.
63388         * modules/c-strtod (Makefile.am): Likewise.
63389         * modules/c-strtold (Makefile.am): Likewise.
63390         * modules/calloc (Makefile.am): Likewise.
63391         * modules/canon-host (Makefile.am): Likewise.
63392         * modules/canonicalize (Makefile.am): Likewise.
63393         * modules/chdir-long (Makefile.am): Likewise.
63394         * modules/chdir-safer (Makefile.am): Likewise.
63395         * modules/check-version (Makefile.am): Likewise.
63396         * modules/chown (Makefile.am): Likewise.
63397         * modules/cloexec (Makefile.am): Likewise.
63398         * modules/close-stream (Makefile.am): Likewise.
63399         * modules/closeout (Makefile.am): Likewise.
63400         * modules/crc (Makefile.am): Likewise.
63401         * modules/csharpexec (Makefile.am): Likewise.
63402         * modules/cycle-check (Makefile.am): Likewise.
63403         * modules/des (Makefile.am): Likewise.
63404         * modules/dev-ino (Makefile.am): Likewise.
63405         * modules/dirfd (Makefile.am): Likewise.
63406         * modules/dirname (Makefile.am): Likewise.
63407         * modules/dup2 (Makefile.am): Likewise.
63408         * modules/eealloc (Makefile.am): Likewise.
63409         * modules/error (Makefile.am): Likewise.
63410         * modules/euidaccess (Makefile.am): Likewise.
63411         * modules/exclude (Makefile.am): Likewise.
63412         * modules/exitfail (Makefile.am): Likewise.
63413         * modules/fcntl-safer (Makefile.am): Likewise.
63414         * modules/fcntl (Makefile.am): Likewise.
63415         * modules/file-type (Makefile.am): Likewise.
63416         * modules/fileblocks (Makefile.am): Likewise.
63417         * modules/filemode (Makefile.am): Likewise.
63418         * modules/filenamecat (Makefile.am): Likewise.
63419         * modules/fnmatch (Makefile.am): Likewise.
63420         * modules/fopen-safer (Makefile.am): Likewise.
63421         * modules/fpending (Makefile.am): Likewise.
63422         * modules/fprintftime (Makefile.am): Likewise.
63423         * modules/free (Makefile.am): Likewise.
63424         * modules/fsusage (Makefile.am): Likewise.
63425         * modules/ftruncate (Makefile.am): Likewise.
63426         * modules/fts (Makefile.am): Likewise.
63427         * modules/gc-arcfour (Makefile.am): Likewise.
63428         * modules/gc-des (Makefile.am): Likewise.
63429         * modules/gc-hmac-md5 (Makefile.am): Likewise.
63430         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
63431         * modules/gc-md4 (Makefile.am): Likewise.
63432         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
63433         * modules/gc-sha1 (Makefile.am): Likewise.
63434         * modules/gc (Makefile.am): Likewise.
63435         * modules/getaddrinfo (Makefile.am): Likewise.
63436         * modules/getcwd (Makefile.am): Likewise.
63437         * modules/getdelim (Makefile.am): Likewise.
63438         * modules/getdomainname (Makefile.am): Likewise.
63439         * modules/getgroups (Makefile.am): Likewise.
63440         * modules/gethostname (Makefile.am): Likewise.
63441         * modules/gethrxtime (Makefile.am): Likewise.
63442         * modules/getline (Makefile.am): Likewise.
63443         * modules/getloadavg (Makefile.am): Likewise.
63444         * modules/getlogin_r (Makefile.am): Likewise.
63445         * modules/getndelim2 (Makefile.am): Likewise.
63446         * modules/getopt (Makefile.am): Likewise.
63447         * modules/getpagesize (Makefile.am): Likewise.
63448         * modules/getpass-gnu (Makefile.am): Likewise.
63449         * modules/getpass (Makefile.am): Likewise.
63450         * modules/getsubopt (Makefile.am): Likewise.
63451         * modules/gettime (Makefile.am): Likewise.
63452         * modules/gettimeofday (Makefile.am): Likewise.
63453         * modules/getugroups (Makefile.am): Likewise.
63454         * modules/getusershell (Makefile.am): Likewise.
63455         * modules/glob (Makefile.am): Likewise.
63456         * modules/group-member (Makefile.am): Likewise.
63457         * modules/hard-locale (Makefile.am): Likewise.
63458         * modules/hash (Makefile.am): Likewise.
63459         * modules/hmac-md5 (Makefile.am): Likewise.
63460         * modules/hmac-sha1 (Makefile.am): Likewise.
63461         * modules/human (Makefile.am): Likewise.
63462         * modules/idcache (Makefile.am): Likewise.
63463         * modules/imaxabs (Makefile.am): Likewise.
63464         * modules/imaxdiv (Makefile.am): Likewise.
63465         * modules/inet_ntop (Makefile.am): Likewise.
63466         * modules/inet_pton (Makefile.am): Likewise.
63467         * modules/intprops (Makefile.am): Likewise.
63468         * modules/inttostr (Makefile.am): Likewise.
63469         * modules/inttypes (Makefile.am): Likewise.
63470         * modules/isapipe (Makefile.am): Likewise.
63471         * modules/javaversion (Makefile.am): Likewise.
63472         * modules/lchmod (Makefile.am): Likewise.
63473         * modules/lchown (Makefile.am): Likewise.
63474         * modules/localcharset (Makefile.am): Likewise.
63475         * modules/long-options (Makefile.am): Likewise.
63476         * modules/lstat (Makefile.am): Likewise.
63477         * modules/malloc (Makefile.am): Likewise.
63478         * modules/mathl (Makefile.am): Likewise.
63479         * modules/mbchar (Makefile.am): Likewise.
63480         * modules/md2 (Makefile.am): Likewise.
63481         * modules/md4 (Makefile.am): Likewise.
63482         * modules/md5 (Makefile.am): Likewise.
63483         * modules/memcasecmp (Makefile.am): Likewise.
63484         * modules/memchr (Makefile.am): Likewise.
63485         * modules/memcmp (Makefile.am): Likewise.
63486         * modules/memcoll (Makefile.am): Likewise.
63487         * modules/memcpy (Makefile.am): Likewise.
63488         * modules/memmem (Makefile.am): Likewise.
63489         * modules/memmove (Makefile.am): Likewise.
63490         * modules/mempcpy (Makefile.am): Likewise.
63491         * modules/memrchr (Makefile.am): Likewise.
63492         * modules/memset (Makefile.am): Likewise.
63493         * modules/memxor (Makefile.am): Likewise.
63494         * modules/mkancesdirs (Makefile.am): Likewise.
63495         * modules/mkdir-p (Makefile.am): Likewise.
63496         * modules/mkdir (Makefile.am): Likewise.
63497         * modules/mkdtemp (Makefile.am): Likewise.
63498         * modules/mkstemp (Makefile.am): Likewise.
63499         * modules/mktime (Makefile.am): Likewise.
63500         * modules/modechange (Makefile.am): Likewise.
63501         * modules/mountlist (Makefile.am): Likewise.
63502         * modules/nanosleep (Makefile.am): Likewise.
63503         * modules/obstack (Makefile.am): Likewise.
63504         * modules/openat (Makefile.am): Likewise.
63505         * modules/pagealign_alloc (Makefile.am): Likewise.
63506         * modules/pathmax (Makefile.am): Likewise.
63507         * modules/physmem (Makefile.am): Likewise.
63508         * modules/poll (Makefile.am): Likewise.
63509         * modules/posixtm (Makefile.am): Likewise.
63510         * modules/posixver (Makefile.am): Likewise.
63511         * modules/putenv (Makefile.am): Likewise.
63512         * modules/quote (Makefile.am): Likewise.
63513         * modules/quotearg (Makefile.am): Likewise.
63514         * modules/raise (Makefile.am): Likewise.
63515         * modules/read-file (Makefile.am): Likewise.
63516         * modules/readline (Makefile.am): Likewise.
63517         * modules/readlink (Makefile.am): Likewise.
63518         * modules/readtokens (Makefile.am): Likewise.
63519         * modules/readutmp (Makefile.am): Likewise.
63520         * modules/realloc (Makefile.am): Likewise.
63521         * modules/regex (Makefile.am): Likewise.
63522         * modules/rename-dest-slash (Makefile.am): Likewise.
63523         * modules/rename (Makefile.am): Likewise.
63524         * modules/rijndael (Makefile.am): Likewise.
63525         * modules/rmdir (Makefile.am): Likewise.
63526         * modules/rpmatch (Makefile.am): Likewise.
63527         * modules/safe-read (Makefile.am): Likewise.
63528         * modules/safe-write (Makefile.am): Likewise.
63529         * modules/same-inode (Makefile.am): Likewise.
63530         * modules/same (Makefile.am): Likewise.
63531         * modules/save-cwd (Makefile.am): Likewise.
63532         * modules/savedir (Makefile.am): Likewise.
63533         * modules/setenv (Makefile.am): Likewise.
63534         * modules/settime (Makefile.am): Likewise.
63535         * modules/sha1 (Makefile.am): Likewise.
63536         * modules/sig2str (Makefile.am): Likewise.
63537         * modules/snprintf (Makefile.am): Likewise.
63538         * modules/stat-macros (Makefile.am): Likewise.
63539         * modules/stat-time (Makefile.am): Likewise.
63540         * modules/stdbool (Makefile.am): Likewise.
63541         * modules/stdint (Makefile.am): Likewise.
63542         * modules/stdlib-safer (Makefile.am): Likewise.
63543         * modules/stpcpy (Makefile.am): Likewise.
63544         * modules/stpncpy (Makefile.am): Likewise.
63545         * modules/strcase (Makefile.am): Likewise.
63546         * modules/strcasestr (Makefile.am): Likewise.
63547         * modules/strchrnul (Makefile.am): Likewise.
63548         * modules/strcspn (Makefile.am): Likewise.
63549         * modules/strdup (Makefile.am): Likewise.
63550         * modules/strerror (Makefile.am): Likewise.
63551         * modules/strftime (Makefile.am): Likewise.
63552         * modules/strndup (Makefile.am): Likewise.
63553         * modules/strnlen (Makefile.am): Likewise.
63554         * modules/strpbrk (Makefile.am): Likewise.
63555         * modules/strsep (Makefile.am): Likewise.
63556         * modules/strstr (Makefile.am): Likewise.
63557         * modules/strtod (Makefile.am): Likewise.
63558         * modules/strtoimax (Makefile.am): Likewise.
63559         * modules/strtok_r (Makefile.am): Likewise.
63560         * modules/strtol (Makefile.am): Likewise.
63561         * modules/strtoll (Makefile.am): Likewise.
63562         * modules/strtoul (Makefile.am): Likewise.
63563         * modules/strtoull (Makefile.am): Likewise.
63564         * modules/strtoumax (Makefile.am): Likewise.
63565         * modules/strverscmp (Makefile.am): Likewise.
63566         * modules/sys_socket (Makefile.am): Likewise.
63567         * modules/sys_stat (Makefile.am): Likewise.
63568         * modules/sysexits (Makefile.am): Likewise.
63569         * modules/time_r (Makefile.am): Likewise.
63570         * modules/timegm (Makefile.am): Likewise.
63571         * modules/timespec (Makefile.am): Likewise.
63572         * modules/tmpfile-safer (Makefile.am): Likewise.
63573         * modules/trim (Makefile.am): Likewise.
63574         * modules/unistd-safer (Makefile.am): Likewise.
63575         * modules/unlinkdir (Makefile.am): Likewise.
63576         * modules/unlocked-io (Makefile.am): Likewise.
63577         * modules/userspec (Makefile.am): Likewise.
63578         * modules/utime (Makefile.am): Likewise.
63579         * modules/utimecmp (Makefile.am): Likewise.
63580         * modules/utimens (Makefile.am): Likewise.
63581         * modules/vasnprintf (Makefile.am): Likewise.
63582         * modules/vasprintf (Makefile.am): Likewise.
63583         * modules/vsnprintf (Makefile.am): Likewise.
63584         * modules/xalloc (Makefile.am): Likewise.
63585         * modules/xgetcwd (Makefile.am): Likewise.
63586         * modules/xnanosleep (Makefile.am): Likewise.
63587         * modules/xreadlink (Makefile.am): Likewise.
63588         * modules/xstrtod (Makefile.am): Likewise.
63589         * modules/xstrtol (Makefile.am): Likewise.
63590         * modules/xstrtold (Makefile.am): Likewise.
63591         * modules/yesno (Makefile.am): Likewise.
63592         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
63593
63594 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63595
63596         * modules/error (Makefile.am): Distribute files through
63597         EXTRA_DIST, not lib_SOURCES.
63598
63599 2006-10-12  Eric Blake  <ebb9@byu.net>
63600
63601         * modules/error (Makefile.am): Distribute files in /lib.
63602         * modules/obstack (Makefile.am): Likewise.
63603
63604 2006-10-12  Bruno Haible  <bruno@clisp.org>
63605
63606         * modules/acl (Makefile.am): Distribute all files in lib/ through
63607         EXTRA_DIST.
63608         * modules/arcfour (Makefile.am): Likewise.
63609         * modules/arctwo (Makefile.am): Likewise.
63610         * modules/argmatch (Makefile.am): Likewise.
63611         * modules/argz (Makefile.am): Likewise.
63612         * modules/atexit (Makefile.am): Likewise.
63613         * modules/backupfile (Makefile.am): Likewise.
63614         * modules/c-strtod (Makefile.am): Likewise.
63615         * modules/c-strtold (Makefile.am): Likewise.
63616         * modules/calloc (Makefile.am): Likewise.
63617         * modules/canon-host (Makefile.am): Likewise.
63618         * modules/canonicalize (Makefile.am): Likewise.
63619         * modules/chdir-long (Makefile.am): Likewise.
63620         * modules/chdir-safer (Makefile.am): Likewise.
63621         * modules/check-version (Makefile.am): Likewise.
63622         * modules/chown (Makefile.am): Likewise.
63623         * modules/cloexec (Makefile.am): Likewise.
63624         * modules/close-stream (Makefile.am): Likewise.
63625         * modules/closeout (Makefile.am): Likewise.
63626         * modules/crc (Makefile.am): Likewise.
63627         * modules/cycle-check (Makefile.am): Likewise.
63628         * modules/des (Makefile.am): Likewise.
63629         * modules/dirfd (Makefile.am): Likewise.
63630         * modules/dirname (Makefile.am): Likewise.
63631         * modules/dup2 (Makefile.am): Likewise.
63632         * modules/euidaccess (Makefile.am): Likewise.
63633         * modules/exclude (Makefile.am): Likewise.
63634         * modules/exitfail (Makefile.am): Likewise.
63635         * modules/fcntl-safer (Makefile.am): Likewise.
63636         * modules/file-type (Makefile.am): Likewise.
63637         * modules/fileblocks (Makefile.am): Likewise.
63638         * modules/filemode (Makefile.am): Likewise.
63639         * modules/filenamecat (Makefile.am): Likewise.
63640         * modules/fnmatch (Makefile.am): Likewise.
63641         * modules/fopen-safer (Makefile.am): Likewise.
63642         * modules/fpending (Makefile.am): Likewise.
63643         * modules/fprintftime (Makefile.am): Likewise.
63644         * modules/free (Makefile.am): Likewise.
63645         * modules/fsusage (Makefile.am): Likewise.
63646         * modules/ftruncate (Makefile.am): Likewise.
63647         * modules/fts (Makefile.am): Likewise.
63648         * modules/gc (Makefile.am): Likewise.
63649         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
63650         * modules/getaddrinfo (Makefile.am): Likewise.
63651         * modules/getcwd (Makefile.am): Likewise.
63652         * modules/getdelim (Makefile.am): Likewise.
63653         * modules/getdomainname (Makefile.am): Likewise.
63654         * modules/getgroups (Makefile.am): Likewise.
63655         * modules/gethostname (Makefile.am): Likewise.
63656         * modules/gethrxtime (Makefile.am): Likewise.
63657         * modules/getline (Makefile.am): Likewise.
63658         * modules/getloadavg (Makefile.am): Likewise.
63659         * modules/getlogin_r (Makefile.am): Likewise.
63660         * modules/getopt (Makefile.am): Likewise.
63661         * modules/getpass (Makefile.am): Likewise.
63662         * modules/getpass-gnu (Makefile.am): Likewise.
63663         * modules/getsubopt (Makefile.am): Likewise.
63664         * modules/gettime (Makefile.am): Likewise.
63665         * modules/gettimeofday (Makefile.am): Likewise.
63666         * modules/getugroups (Makefile.am): Likewise.
63667         * modules/getusershell (Makefile.am): Likewise.
63668         * modules/glob (Makefile.am): Likewise.
63669         * modules/group-member (Makefile.am): Likewise.
63670         * modules/hard-locale (Makefile.am): Likewise.
63671         * modules/hash (Makefile.am): Likewise.
63672         * modules/hmac-md5 (Makefile.am): Likewise.
63673         * modules/hmac-sha1 (Makefile.am): Likewise.
63674         * modules/human (Makefile.am): Likewise.
63675         * modules/idcache (Makefile.am): Likewise.
63676         * modules/imaxabs (Makefile.am): Likewise.
63677         * modules/imaxdiv (Makefile.am): Likewise.
63678         * modules/inet_ntop (Makefile.am): Likewise.
63679         * modules/inet_pton (Makefile.am): Likewise.
63680         * modules/inttostr (Makefile.am): Likewise.
63681         * modules/isapipe (Makefile.am): Likewise.
63682         * modules/lchown (Makefile.am): Likewise.
63683         * modules/long-options (Makefile.am): Likewise.
63684         * modules/lstat (Makefile.am): Likewise.
63685         * modules/malloc (Makefile.am): Likewise.
63686         * modules/mathl (Makefile.am): Likewise.
63687         * modules/mbchar (Makefile.am): Likewise.
63688         * modules/md2 (Makefile.am): Likewise.
63689         * modules/md4 (Makefile.am): Likewise.
63690         * modules/md5 (Makefile.am): Likewise.
63691         * modules/memcasecmp (Makefile.am): Likewise.
63692         * modules/memchr (Makefile.am): Likewise.
63693         * modules/memcmp (Makefile.am): Likewise.
63694         * modules/memcoll (Makefile.am): Likewise.
63695         * modules/memcpy (Makefile.am): Likewise.
63696         * modules/memmem (Makefile.am): Likewise.
63697         * modules/memmove (Makefile.am): Likewise.
63698         * modules/mempcpy (Makefile.am): Likewise.
63699         * modules/memrchr (Makefile.am): Likewise.
63700         * modules/memset (Makefile.am): Likewise.
63701         * modules/memxor (Makefile.am): Likewise.
63702         * modules/mkancesdirs (Makefile.am): Likewise.
63703         * modules/mkdir (Makefile.am): Likewise.
63704         * modules/mkdir-p (Makefile.am): Likewise.
63705         * modules/mkdtemp (Makefile.am): Likewise.
63706         * modules/mkstemp (Makefile.am): Likewise.
63707         * modules/mktime (Makefile.am): Likewise.
63708         * modules/modechange (Makefile.am): Likewise.
63709         * modules/mountlist (Makefile.am): Likewise.
63710         * modules/nanosleep (Makefile.am): Likewise.
63711         * modules/openat (Makefile.am): Likewise.
63712         * modules/pagealign_alloc (Makefile.am): Likewise.
63713         * modules/physmem (Makefile.am): Likewise.
63714         * modules/poll (Makefile.am): Likewise.
63715         * modules/posixtm (Makefile.am): Likewise.
63716         * modules/posixver (Makefile.am): Likewise.
63717         * modules/putenv (Makefile.am): Likewise.
63718         * modules/quote (Makefile.am): Likewise.
63719         * modules/quotearg (Makefile.am): Likewise.
63720         * modules/raise (Makefile.am): Likewise.
63721         * modules/read-file (Makefile.am): Likewise.
63722         * modules/readline (Makefile.am): Likewise.
63723         * modules/readlink (Makefile.am): Likewise.
63724         * modules/readtokens (Makefile.am): Likewise.
63725         * modules/readutmp (Makefile.am): Likewise.
63726         * modules/realloc (Makefile.am): Likewise.
63727         * modules/regex (Makefile.am): Likewise.
63728         * modules/rename (Makefile.am): Likewise.
63729         * modules/rename-dest-slash (Makefile.am): Likewise.
63730         * modules/rijndael (Makefile.am): Likewise.
63731         * modules/rmdir (Makefile.am): Likewise.
63732         * modules/rpmatch (Makefile.am): Likewise.
63733         * modules/safe-read (Makefile.am): Likewise.
63734         * modules/safe-write (Makefile.am): Likewise.
63735         * modules/same (Makefile.am): Likewise.
63736         * modules/save-cwd (Makefile.am): Likewise.
63737         * modules/savedir (Makefile.am): Likewise.
63738         * modules/setenv (Makefile.am): Likewise.
63739         * modules/settime (Makefile.am): Likewise.
63740         * modules/sha1 (Makefile.am): Likewise.
63741         * modules/sig2str (Makefile.am): Likewise.
63742         * modules/snprintf (Makefile.am): Likewise.
63743         * modules/stdlib-safer (Makefile.am): Likewise.
63744         * modules/stpcpy (Makefile.am): Likewise.
63745         * modules/stpncpy (Makefile.am): Likewise.
63746         * modules/strcase (Makefile.am): Likewise.
63747         * modules/strcasestr (Makefile.am): Likewise.
63748         * modules/strchrnul (Makefile.am): Likewise.
63749         * modules/strcspn (Makefile.am): Likewise.
63750         * modules/strdup (Makefile.am): Likewise.
63751         * modules/strerror (Makefile.am): Likewise.
63752         * modules/strftime (Makefile.am): Likewise.
63753         * modules/strndup (Makefile.am): Likewise.
63754         * modules/strnlen (Makefile.am): Likewise.
63755         * modules/strpbrk (Makefile.am): Likewise.
63756         * modules/strsep (Makefile.am): Likewise.
63757         * modules/strstr (Makefile.am): Likewise.
63758         * modules/strtod (Makefile.am): Likewise.
63759         * modules/strtoimax (Makefile.am): Likewise.
63760         * modules/strtok_r (Makefile.am): Likewise.
63761         * modules/strtol (Makefile.am): Likewise.
63762         * modules/strtoll (Makefile.am): Likewise.
63763         * modules/strtoul (Makefile.am): Likewise.
63764         * modules/strtoull (Makefile.am): Likewise.
63765         * modules/strtoumax (Makefile.am): Likewise.
63766         * modules/strverscmp (Makefile.am): Likewise.
63767         * modules/time_r (Makefile.am): Likewise.
63768         * modules/timegm (Makefile.am): Likewise.
63769         * modules/tmpfile-safer (Makefile.am): Likewise.
63770         * modules/unistd-safer (Makefile.am): Likewise.
63771         * modules/unlinkdir (Makefile.am): Likewise.
63772         * modules/userspec (Makefile.am): Likewise.
63773         * modules/utime (Makefile.am): Likewise.
63774         * modules/utimecmp (Makefile.am): Likewise.
63775         * modules/utimens (Makefile.am): Likewise.
63776         * modules/vasnprintf (Makefile.am): Likewise.
63777         * modules/vasprintf (Makefile.am): Likewise.
63778         * modules/vsnprintf (Makefile.am): Likewise.
63779         * modules/xalloc (Makefile.am): Likewise.
63780         * modules/xgetcwd (Makefile.am): Likewise.
63781         * modules/xnanosleep (Makefile.am): Likewise.
63782         * modules/xreadlink (Makefile.am): Likewise.
63783         * modules/xstrtod (Makefile.am): Likewise.
63784         * modules/xstrtol (Makefile.am): Likewise.
63785         * modules/xstrtold (Makefile.am): Likewise.
63786         * modules/yesno (Makefile.am): Likewise.
63787
63788 2006-10-12  Jim Meyering  <jim@meyering.net>
63789
63790         * m4/getloadavg.m4: Revert the change below.
63791
63792         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
63793         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
63794         fail with a symlink, which is what coreutils' ./bootstrap now
63795         creates by default.
63796
63797 2006-10-12  Bruno Haible  <bruno@clisp.org>
63798
63799         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
63800         mingw.
63801         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
63802         MSVC and mingw explicitly.
63803
63804 2006-10-11  Simon Josefsson  <jas@extundo.com>
63805             Bruno Haible  <bruno@clisp.org>
63806
63807         Add support for multiple gnulib-tool invocations in the scope of a
63808         single configure.ac file.
63809         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
63810         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
63811         with the same contents as the _LIBADD variable.
63812         (func_emit_initmacro_start, func_emit_initmacro_end,
63813         func_emit_initmacro_done): New functions.
63814         (func_import, func_create_testdir): Invoke them. Allow the identifiers
63815         gl_LIBOBJS and gl_LTLIBOBJS.
63816
63817 2006-10-11  Bruno Haible  <bruno@clisp.org>
63818
63819         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
63820         (func_create_testdir): Don't create po/Makefile.am, don't invoke
63821         autoreconf. Instead, invoke autopoint explicitly but move back the
63822         *.m4 files from gnulib.
63823
63824 2006-10-11  Bruno Haible  <bruno@clisp.org>
63825
63826         * gnulib-tool (func_usage): Make module names after --create-testdir
63827         optional.
63828         (func_create_testdir): If no module was specified, use nearly all
63829         modules.
63830
63831 2006-10-12  Jim Meyering  <jim@meyering.net>
63832
63833         Big performance improvement for fts-based tools that use FTS_NOSTAT.
63834         Avoid spurious inode-mismatch problems on non-POSIX file systems.
63835         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
63836         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
63837         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
63838         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
63839         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
63840         (fts_set_stat_required): New function.
63841         (fts_open): Defer the calls to fts_stat, if possible or requested.
63842         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
63843         into fts_stat itself.
63844         (fts_read): Perform any required (deferred) fts_stat call.
63845         (fts_build): Likewise, for the directory we're about to open and read.
63846         In the readdir loop, carefully decide whether each entry will require
63847         an eventual call to fts_stat, using dirent.d_type info if available.
63848         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
63849         a command line argument into this function.  Update all callers.
63850         Map a return value of FTS_DOT to FTS_D for a command line argument.
63851         * modules/fts (Depends-on): Add d-type.  Alphabetize.
63852         Thanks to Miklos Szeredi for his tenacity and for the initial
63853         bug report about "find" failing on a FUSE-based file system.
63854
63855         * lib/fts.c (fts_open): Use consistent indentation.
63856
63857 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63858
63859         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
63860         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
63861         reported by Jim Meyering.  All uses of cache variables renamed
63862         to match Autoconf's.
63863         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
63864         the other one.
63865
63866         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
63867         Fix misspelling in diagnostic.
63868
63869 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63870
63871         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
63872         defined.  Problem reported by Matthew Woehlke.
63873
63874         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
63875         Add support for Tandem NonStop R series.
63876         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
63877         Use new macro.
63878
63879         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
63880         (has_trailing_slash): Omit size arg; all callers changed.
63881         Omit 'inline', since it doesn't help performance and we'd
63882         need to configure it.
63883         Don't count //, ///, etc. as having a trailing slash.
63884         As a side effect, this removes a C99ism reported by Matthew Woehlke.
63885         (rpl_rename_dest_slash): On failure, use rename's errno rather
63886         than (in some cases) an incorrect or junk errno.
63887         Simplify code by removing need to compute length; this does
63888         cause it to make two passes instead of one over the file name,
63889         but it's worth it.
63890
63891         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
63892         change, since Autoconf's version may no longer be appropriate now
63893         that we are using CVS Autoconf's version.  Add support for Tandem.
63894
63895 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63896             Bruno Haible  <bruno@clisp.org>
63897
63898         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
63899         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
63900         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
63901         gl_AC_TYPE_LONG_LONG.
63902
63903         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
63904         instead of HAVE_LONG_LONG.
63905         * lib/printf-args.c (printf_fetchargs): Likewise.
63906         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
63907         * lib/vasnprintf.c (VASNPRINTF): Likewise.
63908         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
63909         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
63910         gl_AC_TYPE_LONG_LONG.
63911
63912 2006-10-11  Bruno Haible  <bruno@clisp.org>
63913
63914         * m4/longlong.m4: Add comments.
63915         * m4/ulonglong.m4: Likewise.
63916
63917 2006-10-10  Bruno Haible  <bruno@clisp.org>
63918
63919         Make it possible to #define stpcpy, strdup to aliases.
63920         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
63921         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
63922
63923 2006-10-10  Bruno Haible  <bruno@clisp.org>
63924
63925         Make it possible to #define gcd to an alias.
63926         * lib/gcd.c: Include config.h.
63927
63928 2006-10-10  Bruno Haible  <bruno@clisp.org>
63929
63930         Make it possible to #define c_isascii to an alias.
63931         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
63932         defined. Undefine the macros before defining them, to avoid gcc
63933         warnings.
63934         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
63935         define NO_C_CTYPE_MACROS early.
63936
63937 2006-10-10  Bruno Haible  <bruno@clisp.org>
63938
63939         Make it possible to #define set_program_name to an alias.
63940         * lib/progname.c: Don't undefine set_program_name; instead, undefine
63941         ENABLE_RELOCATABLE early.
63942
63943 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63944
63945         Port to Tandem NSK OSS, which has 64-bit signed int but at most
63946         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
63947         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
63948         More generally, don't assume that 64-bit signed int is available
63949         if unsigned int is, and vice versa.
63950         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
63951         unsigned symbols, not on their signed counterparts.
63952         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
63953         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
63954         (UINT64_C, UINTMAX_C):
63955         Likewise.
63956         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
63957         unsigned counterparts.
63958         (Have_long_long, Unsigned): New macros.
63959         (Int): Renamed from INT.
63960         (strtoimax): Use the new macros.
63961         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
63962         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
63963         * modules/inttypes (inttypes.h): Substitute
63964         HAVE_UNSIGNED_LONG_LONG_INT.
63965         * modules/stdint (stdint.h): Likewise.
63966         (Files): Add m4/ulonglong.m4.
63967
63968 2006-10-10  Bruno Haible  <bruno@clisp.org>
63969
63970         Fix a gcc -Wshadow warning.
63971         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
63972         to 'bucket'.
63973         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
63974         gl_linked_indexof_from_to): Likewise.
63975         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
63976         Likewise.
63977         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
63978         Likewise.
63979         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
63980         Reported by Eric Blake.
63981
63982 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
63983
63984         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
63985         for NetBSD.  Problem reported by Bruno Haible.
63986
63987 2006-10-09  Jim Meyering  <jim@meyering.net>
63988
63989         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
63990         Patch from Bruno Haible.
63991
63992 2006-10-09  Jim Meyering  <jim@meyering.net>
63993
63994         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
63995         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
63996         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
63997
63998 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63999
64000         Don't include <config.h> twice; this doesn't work in some cases,
64001         e.g., when config.h has "#define intmax_t long long int" and
64002         we include <config.h>, <inttypes.h>, <config.h> in that order.
64003         Problem reported by Matthew Woehlke in:
64004         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
64005         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
64006         * lib/fts-cycle.c: Don't include config.h.
64007         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
64008         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
64009         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
64010         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
64011         inttypes.h.
64012         * lib/xstrtoumax.c: Likewise.
64013         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
64014         __strtol and the like, so that this module is more like its siblings.
64015         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
64016         Remove; no longer needed now that we assume gnulib inttypes.h.
64017
64018 2006-10-08  Bruno Haible  <bruno@clisp.org>
64019
64020         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
64021         option.
64022
64023 2006-10-07  Jim Meyering  <jim@meyering.net>
64024
64025         * modules/inttypes (inttypes.h): Revert what seems to have been
64026         an inadvertent part of today's change: use "|", not "/" in the
64027         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
64028
64029 2006-10-07  Bruno Haible  <bruno@clisp.org>
64030
64031         * modules/sublist: New file.
64032
64033 2006-10-07  Bruno Haible  <bruno@clisp.org>
64034
64035         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
64036         * modules/argz (argz.h): Likewise.
64037         * modules/arpa_inet (arpa/inet.h): Likewise.
64038         * modules/byteswap (byteswap.h): Likewise.
64039         * modules/configmake (configmake.h): Likewise.
64040         * modules/fcntl (fcntl.h): Likewise.
64041         * modules/fnmatch (fnmatch.h): Likewise.
64042         * modules/getopt (getopt.h): Likewise.
64043         * modules/glob (glob.h): Likewise.
64044         * modules/inttypes (inttypes.h): Likewise.
64045         * modules/netinet_in (netinet/in.h): Likewise.
64046         * modules/poll (poll.h): Likewise.
64047         * modules/stdbool (stdbool.h): Likewise.
64048         * modules/stdint (stdint.h): Likewise.
64049         * modules/sys_select (sys/select.h): Likewise.
64050         * modules/sys_socket (sys/socket.h): Likewise.
64051         * modules/sys_stat (sys/stat.h): Likewise.
64052         * modules/sysexits (sysexits.h): Likewise.
64053         * modules/unistd (unistd.h): Likewise.
64054         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64055         Add a "DO NOT EDIT" comment to the generated file.
64056         (func_import): Likewise for gnulib-comp.m4.
64057
64058 2006-10-07  Bruno Haible  <bruno@clisp.org>
64059
64060         * lib/gl_sublist.h: New file.
64061         * lib/gl_sublist.c: New file.
64062
64063 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
64064
64065         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
64066         name (relative to the original working directory) and the file
64067         name component (relative to the temporary working directory).  All
64068         callers changed.
64069         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
64070         * lib/mkdir-p.c (make_dir_parents): Likewise.
64071         * lib/mkdir-p.h (make_dir_parents): Likewise.
64072
64073 2006-10-06  Eric Blake  <ebb9@byu.net>
64074
64075         Define several macros for use by the clean-temp module.
64076         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
64077         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
64078         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
64079
64080         * lib/clean-temp.h (close_stream_temp): New declaration.
64081         * lib/clean-temp.c (includes): Pull in headers according to what
64082         other modules are in use.
64083         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
64084
64085 2006-10-06  Bruno Haible  <bruno@clisp.org>
64086
64087         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
64088         instead of fopen, fwriteerror.
64089
64090 2006-10-06  Bruno Haible  <bruno@clisp.org>
64091
64092         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
64093         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
64094         int.
64095         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
64096         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
64097         Return an error indicator.
64098         Suggested by Eric Blake.
64099
64100 2006-10-06  Bruno Haible  <bruno@clisp.org>
64101
64102         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
64103         Reported by Eric Blake.
64104
64105 2006-10-06  Bruno Haible  <bruno@clisp.org>
64106
64107         * modules/closeout (Description): Mention stderr too.
64108
64109 2006-10-06  Bruno Haible  <bruno@clisp.org>
64110         and Paul Eggert  <eggert@cs.ucla.edu>
64111
64112         * lib/closeout.c (close_stdout): Also close stderr.
64113         * lib/closeout.h: Update comment.
64114
64115 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
64116
64117         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
64118         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
64119         * lib/dirchownmod.c: Include lchown.h.
64120         * lib/lchown.c: Don't include files that lchown.h now includes.
64121         Don't declare chown, since lchown.h now does that.
64122         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
64123         (lchown): Define to rpl_chown if lchown is declared but
64124         does not exist.  Declare using a prototype if lchown is not
64125         declared.  Add a copyright notice.
64126         * lib/mkstemp.h: Include <unistd.h>.
64127         * lib/openat.c: Include lchown.h.
64128
64129         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
64130         we now test for that separately.
64131         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
64132         rather than O_NOFOLLOW, when testing whether it's possible to
64133         avoid a race condition reliably.
64134         * lib/savewd.c (savewd_chdir): Likewise.
64135
64136         Remove macros that are no longer needed now that stdint.h is
64137         reliable.
64138         * lib/fsusage.c (UINTMAX_MAX): Remove.
64139         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
64140         * lib/utimecmp.c (SIZE_MAX): Remove.
64141
64142         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
64143
64144         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
64145         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
64146         O_NOATIME works.
64147
64148 2006-10-05  Bruno Haible  <bruno@clisp.org>
64149
64150         * lib/gl_list.h (gl_sortedlist_search_from_to,
64151         gl_sortedlist_indexof_from_to): New declarations.
64152         (gl_list_implementation): New fields sortedlist_search_from_to,
64153         sortedlist_indexof_from_to.
64154         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
64155         inline functions.
64156         * lib/gl_list.c (gl_sortedlist_search_from_to,
64157         gl_sortedlist_indexof_from_to): New functions.
64158         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
64159         function.
64160         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
64161         (gl_array_sortedlist_search_from_to): New function.
64162         (gl_array_list_implementation): Update.
64163         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
64164         function.
64165         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
64166         (gl_carray_sortedlist_search_from_to): New function.
64167         (gl_carray_list_implementation): Update.
64168         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
64169         gl_linked_sortedlist_indexof_from_to): New functions.
64170         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
64171         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
64172         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
64173         gl_tree_sortedlist_indexof_from_to): New functions.
64174         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
64175         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
64176         Update.
64177         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
64178         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
64179         Update.
64180
64181 2006-10-05  Bruno Haible  <bruno@clisp.org>
64182
64183         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
64184         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
64185         (struct gl_list_implementation): Add fields search_from_to,
64186         indexof_from_to. Remove fields search, indexof.
64187         (gl_list_search): Use the search_from_to method.
64188         (gl_list_search_from, gl_list_search_from_to): New functions.
64189         (gl_list_indexof): Use the indexof_from_to method.
64190         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
64191         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
64192         (gl_list_search_from, gl_list_search_from_to): New functions.
64193         (gl_list_indexof): Use the indexof_from_to method.
64194         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
64195         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
64196         gl_array_indexof. Add start_index, end_index arguments.
64197         (gl_array_search_from_to): Renamed from gl_array_search. Add
64198         start_index, end_index arguments.
64199         (gl_array_remove, gl_array_list_implementation): Update.
64200         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
64201         gl_carray_indexof. Add start_index, end_index arguments.
64202         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
64203         start_index, end_index arguments.
64204         (gl_carray_remove, gl_carray_list_implementation): Update.
64205         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
64206         gl_linked_search. Add start_index, end_index arguments.
64207         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
64208         start_index, end_index arguments.
64209         (gl_linked_remove): Update.
64210         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
64211         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
64212         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
64213         field to 'size_t'.
64214         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
64215         gl_tree_search. Add start_index, end_index arguments.
64216         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
64217         start_index, end_index arguments.
64218         (gl_tree_remove): Update.
64219         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
64220         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
64221         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
64222         function.
64223         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
64224         gl_tree_search. Add start_index, end_index arguments.
64225         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
64226         start_index, end_index arguments.
64227         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
64228         Update.
64229         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
64230
64231 2006-10-05  Bruno Haible  <bruno@clisp.org>
64232
64233         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
64234
64235         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
64236         fwriteerror_temp): New declarations.
64237         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
64238         (descriptors): New variable.
64239         (cleanup): First, close the descriptors.
64240         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
64241         fclose_temp, fwriteerror_temp): New functions.
64242
64243 2006-10-04  Jim Meyering  <jim@meyering.net>
64244
64245         * lib/fts.c (fts_open): Tiny comment change.
64246
64247 2006-10-04  Bruno Haible  <bruno@clisp.org>
64248
64249         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
64250         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
64251         gl_LOCK_BODY.
64252         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
64253         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
64254         gl_LOCK_EARLY_BODY.
64255         (gl_LOCK): Require gl_LOCK_BODY.
64256
64257 2006-10-04  Bruno Haible  <bruno@clisp.org>
64258
64259         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
64260         (gl_oset_search_atleast): New declaration.
64261         (struct gl_oset_implementation): Add field 'search_atleast'.
64262         (gl_oset_search_atleast): New inline function.
64263         * lib/gl_oset.c (gl_oset_search_atleast): New function.
64264         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
64265         (gl_array_oset_implementation): Update.
64266         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
64267         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
64268         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
64269
64270 2006-10-04  Bruno Haible  <bruno@clisp.org>
64271
64272         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
64273
64274 2006-10-03  Bruno Haible  <bruno@clisp.org>
64275
64276         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
64277         from gl_avltreehash_list_implementation.
64278
64279 2006-10-03  Bruno Haible  <bruno@clisp.org>
64280
64281         * lib/gl_oset.c (gl_oset_add): Fix return type.
64282
64283 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
64284
64285         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
64286
64287 2006-10-02  Eric Blake  <ebb9@byu.net>
64288
64289         * modules/strnlen (Depends-on): Add extensions.
64290
64291 2006-10-02  Eric Blake  <ebb9@byu.net>
64292
64293         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
64294         definition in 2.60+.
64295
64296 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
64297
64298         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
64299         checks.
64300
64301 2006-10-02  Bruno Haible  <bruno@clisp.org>
64302
64303         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
64304         to the AUTOMAKE_OPTIONS.
64305         Reported by Jim Meyering.
64306
64307 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
64308
64309         Work around bug in Solaris 10 /proc file system:
64310         /proc/self/fd/NNN/.. isn't the parent directory of
64311         the directory whose file descriptor is NNN.  This needs to
64312         be worked around at run time, not compile time, since a
64313         program might be built on Solaris 8, where things work, and
64314         run on Solaris 10.
64315         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
64316         to use the following interface instead:
64317         (OPENAT_BUFFER_SIZE): New macro.
64318         (openat_proc_name): New function.
64319         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
64320         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
64321         Likewise.
64322         * lib/openat-proc.c: New file.
64323         * modules/openat (Files): Add lib/openat-proc.c.
64324         (Depends-on): Add same-inode, stdbool.
64325         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
64326
64327 2006-09-29  Bruno Haible  <bruno@clisp.org>
64328
64329         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
64330         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
64331         argument. Set stdout_closed before testing for ferror, not after.
64332         (fwriteerror, fwriteerror_no_ebadf): New functions.
64333
64334 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64335
64336         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
64337
64338 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
64339
64340         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
64341         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
64342
64343 2006-09-28  Jim Meyering  <jim@meyering.net>
64344
64345         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
64346         Include <unistd.h>.
64347
64348 2006-09-28  Bruno Haible  <bruno@clisp.org>
64349
64350         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
64351         * modules/linkedhash-list (Depends-on): Likewise.
64352         * modules/rbtreehash-list (Depends-on): Likewise.
64353
64354 2006-09-28  Bruno Haible  <bruno@clisp.org>
64355
64356         * lib/strndup.h: Simplify the redefinition of strndup.
64357         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
64358         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
64359
64360 2006-09-28  Bruno Haible  <bruno@clisp.org>
64361
64362         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
64363         * lib/gl_linkedhash_list.c: Likewise.
64364         * lib/gl_rbtreehash_list.c: Likewise.
64365
64366 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
64367
64368         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
64369         getaddrinfo.
64370
64371         * lib/__fpending.h: Don't include <stdio_ext.h> unless
64372         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
64373         it causes <stdio_ext.h> to cause a compile-time error.
64374         Problem reported by Nelson H. F. Beebe.
64375         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
64376         of HAVE_DECL___PENDING.
64377
64378         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
64379         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
64380         declaration.
64381
64382 2006-09-27  Jim Meyering  <jim@meyering.net>
64383
64384         This file could end up with a definition for a function
64385         named __strndup, rather than rpl_strndup on a system with
64386         incomplete weak_alias support.
64387         * lib/strndup.c (strndup): Rename from __strndup.
64388         Remove #defines that used to map __strndup to strndup.
64389         Don't use K&R prototypes.
64390         Remove LIBC-related code, since this file is not sync'd with glibc.
64391         * lib/strndup.h: Revamp, accordingly.
64392         * m4/strndup.m4: Modernize.
64393
64394 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
64395
64396         * modules/savewd (Depends-on): Add 'raise'.
64397         * lib/savewd.c: Include <signal.h>, for 'raise'.
64398
64399 2006-09-26  Jim Meyering  <jim@meyering.net>
64400
64401         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
64402         when we detect Darwin 8.7.0's acl_get_file bug.
64403         Rearrange to perform the new (below) run-test while $LIBS
64404         contains any acl-related library.  Set USE_ACL at the end.
64405         (gl_ACL_GET_FILE): New function.
64406
64407 2006-09-26  Eric Blake  <ebb9@byu.net>
64408
64409         * lib/verror.c: Include <config.h> unconditionally.
64410
64411 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
64412
64413         * modules/clock-time (Maintainer): Add self.
64414         * modules/getlogin_r (Depends-on): Add extensions.
64415
64416 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64417
64418         * modules/clock-time: New module.
64419         * modules/nanosleep (Depends-on): Add clock-time.
64420         * modules/gethrxtime (Depends-on): Likewise.
64421         * modules/gettime (Depends-on): Likewise.
64422         * modules/settime (Depends-on): Likewise.
64423
64424         * modules/fts-lgpl: Depend on openat.
64425         * modules/mkancesdirs: Depend on savewd.
64426         * modules/mkdir-p: Likewise.
64427
64428 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64429
64430         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
64431
64432         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
64433         `gl_have_arbitrary_file_name_length_limit' to
64434         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
64435         actually works between configure runs.
64436
64437 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64438             Bruno Haible  <bruno@clisp.org>
64439
64440         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
64441
64442 2006-09-25  Jim Meyering  <jim@meyering.net>
64443
64444         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
64445         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
64446
64447 2006-09-25  Eric Blake  <ebb9@byu.net>
64448
64449         * gnulib-tool (func_import, func_create_testdir): Fix typos in
64450         exec's in 2006-09-18 patch when shuffling fds.
64451
64452 2006-09-25  Bruno Haible  <bruno@clisp.org>
64453
64454         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
64455         Reported by Jim Meyering.
64456
64457 2006-09-24  Jim Meyering  <jim@meyering.net>
64458
64459         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
64460         compare a pointer against a literal "0".  That caused failures with
64461         at least HP-UX's hpcc.
64462
64463 2006-09-22  Simon Josefsson  <jas@extundo.com>
64464
64465         * modules/gc-sha1:
64466         * modules/gc-md4:
64467         * modules/gc-hmac-sha1:
64468         * modules/gc-hmac-md5:
64469         * modules/gc-des:
64470         * modules/gc-arcfour: Distribute more files.
64471
64472 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64473
64474         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
64475         (gl_linked_iterator_from_to): Initialize struct completely.
64476         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
64477         (gl_tree_iterator_from_to): Likewise
64478         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
64479         * lib/gl_array_list.c [lint] (gl_array_iterator)
64480         (gl_array_iterator_from_to): Likewise.
64481         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
64482         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
64483         (gl_carray_iterator_from_to): Likewise.
64484
64485         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
64486         * lib/md4.c (md4_process_block): Remove unused variable.
64487         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
64488         parentheses for clarity.
64489
64490 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64491
64492         * modules/bison-i18n (Depends-on): Add gettext.
64493
64494 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64495
64496         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
64497         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
64498         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
64499         also add missing comma that caused broken test.
64500         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
64501         stdlib.h, for `abort'.
64502         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
64503         variables.
64504         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
64505         include unistd.h if present, for `rmdir'.
64506         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
64507         variables.
64508         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
64509         in the process include standard headers for prototypes.
64510         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
64511         gets declared on GNU/Linux.
64512         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
64513         unistd.h, for `rmdir'.
64514         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
64515
64516         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
64517         always true.
64518         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
64519
64520         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
64521
64522 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64523
64524         * gnulib-tool (func_version): Create output all at once.  This
64525         may help avoid triggering unnecessary SIGPIPEs, and at any
64526         rate it doesn't hurt.
64527
64528 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64529             Bruno Haible  <bruno@clisp.org>
64530
64531         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
64532         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
64533         * m4/signed.m4 (bh_C_SIGNED): Likewise.
64534
64535         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
64536         (gl_FUNC_VASPRINTF): Invoke it.
64537
64538 2006-09-22  Bruno Haible  <bruno@clisp.org>
64539
64540         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
64541         getloadavg.c as first argument.
64542
64543 2006-09-22  Bruno Haible  <bruno@clisp.org>
64544
64545         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
64546         at the beginning of the gl_INIT macro.
64547         * modules/getloadavg (configure.ac): Pass $gl_source_base to
64548         gl_GETLOADAVG.
64549
64550 2006-09-22  Bruno Haible  <bruno@clisp.org>
64551
64552         * gnulib-tool (func_create_megatestdir): Don't include the config-h
64553         module.
64554         Suggested by Ralf Wildenhues.
64555
64556 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64557
64558         Import this patch from libc:
64559
64560         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
64561
64562         * lib/regex_internal.c (re_string_reconstruct): Handle
64563         offset < pstr->valid_raw_len && pstr->offsets_needed case.
64564         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
64565         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
64566         re_string_context_at.
64567
64568         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
64569         now requires it.
64570         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
64571         gl_REGEX now does it for us.
64572         (gl_REGEX): Add test taken from
64573         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
64574
64575         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
64576         Check that large offsets work.  Modernize Autoconf usages.
64577         Prefer "yes" to mean a good thing rather than a bad.
64578         Don't put "#define mkstemp" in config.h, as this might interfere
64579         with standard system headers that "#define mkstemp mkstemp64".
64580
64581         * modules/mkstemp (Depends-on): Add extensions, so that
64582         mkstemp is visible on some platforms.
64583         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
64584         (Include): Change to "mkstemp.h" from <stdlib.h>.
64585         (Files): Add mkstemp.h.
64586
64587         * lib/mkstemp.h: New file, since some standard headers
64588         #define mkstemp.
64589         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
64590         Include "mkstemp.h".
64591         Make the _LIBC code resemble glibc original more,
64592         e.g., use K&R style.
64593         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
64594         (mkstemp): Remove, since mkstemp.h does this for us.
64595         * lib/stdlib--.h: Include mkstemp.h.
64596
64597         Import this patch from libc:
64598
64599         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
64600
64601         * lib/tempname.c (__gen_tempname): Change attempts_min
64602         into a macro.  Use preprocessor to decide how to initialize
64603         attempts [Coverity CID 67].
64604
64605 2006-09-20  Bruno Haible  <bruno@clisp.org>
64606
64607         * lib/mkdtemp.c: Import from libc.
64608         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
64609                 * sysdeps/posix/tempname.c (__gen_tempname): Change
64610                 attempts_min into a macro.  Use preprocessor to decide how to
64611                 initialize attempts [Coverity CID 67].
64612         2001-11-27  Paul Eggert  <eggert@twinsun.com>
64613                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
64614                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
64615
64616 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64617
64618         * gnulib-tool (func_exit): New function, to allow to pass the
64619         exit status portably through the trap.  Use everywhere.
64620         (--help, --version): Signal a write error.
64621         (trap): catch SIGPIPE, for write errors.
64622         Exit at the end of the trap, with the correct exit status.
64623
64624 2006-09-19  Karl Berry  <karl@gnu.org>
64625
64626         * doc/gnulib.texi: note about the license texinfo files.
64627
64628 2006-09-19  Eric Blake  <ebb9@byu.net>
64629
64630         * gnulib-tool: Avoid space-tab.
64631
64632 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
64633
64634         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
64635         that prevented coreutils 6.1 from building.  Problem reported
64636         by Petter Reinholdtsen.
64637
64638 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
64639
64640         * gnulib-tool (avoidlist): Fix typo that broke options like
64641         --avoid=lock that are used by coreutils bootstrap.
64642
64643 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
64644
64645         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
64646         more systematically.
64647
64648 2006-09-18  Jim Meyering  <jim@meyering.net>
64649
64650         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
64651
64652 2006-09-18  Bruno Haible  <bruno@clisp.org>
64653
64654         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
64655
64656 2006-09-18  Bruno Haible  <bruno@clisp.org>
64657
64658         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
64659         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
64660         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
64661         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
64662         * m4/gettext.m4: Require autoconf >= 2.52.
64663         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
64664         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
64665         of gl_cv_header_inttypes_h.
64666
64667 2006-09-18  Bruno Haible  <bruno@clisp.org>
64668
64669         * lib/javaversion.c: Include configmake.h.
64670
64671 2006-09-18  Bruno Haible  <bruno@clisp.org>
64672
64673         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
64674         avoid that the while loops be executed in a subshell.
64675
64676 2006-09-18  Bruno Haible  <bruno@clisp.org>
64677
64678         * MODULES.html.sh (func_module): Break long lines.
64679         Suggested by Bruce Korb <bkorb@gnu.org>.
64680
64681 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64682
64683         Speed up by a factor of 1.12.
64684         * gnulib-tool (nl): New variable.
64685         (func_import): Rewrite include directive extraction to only read each
64686         directive once.
64687
64688 2006-09-17  Bruno Haible  <bruno@clisp.org>
64689
64690         * modules/javaversion (Makefile.am): Remove DEFS setting.
64691         (Depends-on): Add configmake, for PKGDATADIR definition.
64692
64693 2006-09-17  Bruno Haible  <bruno@clisp.org>
64694
64695         * gnulib-tool (func_create_testdir): Rewrite all files at once.
64696
64697 2006-09-17  Bruno Haible  <bruno@clisp.org>
64698
64699         * gnulib-tool (func_append): New function, stolen from libtool.m4.
64700         (func_modules_transitive_closure, func_modules_add_dummy,
64701         func_modules_to_filelist, func_import, func_create_testdir,
64702         func_create_megatestdir, ...): Use it wherever possible.
64703         Suggested by Ralf Wildenhues.
64704
64705 2006-09-16  Karl Berry  <karl@gnu.org>
64706
64707         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
64708         to avoid sectioning errors.
64709         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
64710         [ifinfo]: blank line after @center-ed titles.
64711         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
64712         Spell FSF address consistently with others.
64713         (These changes approved by rms.)
64714
64715 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64716
64717         Speed up by a factor of 1.61.
64718         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
64719         already checked module names again.
64720
64721 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64722
64723         Speed up by a factor of 1.13.
64724         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
64725         for new_files, and the input to func_add_or_update.
64726
64727 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64728
64729         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
64730         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
64731
64732 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64733
64734         * modules/mkancesdirs (Depends-on): Add fcntl.
64735         * modules/savewd: New file.
64736         * MODULES.html.sh (File system functions): Add savewd.
64737
64738         * modules/configmake (Makefile.am): Add support for the
64739         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
64740
64741 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64742
64743         * m4/savewd.m4: New file.
64744
64745 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64746
64747         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
64748         (dirchownmod): New arg FD.  All callers changed.
64749         Use FD rather than opening the directory ourself, as opening is
64750         now the caller's responsibility.
64751         * lib/dirchownmod.h: Likewise.
64752         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
64753         hosts that require <sys/types.h> before <sys/stat.h>.  Include
64754         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
64755         (test_dir): Remove.
64756         (mkancesdirs): Return length of prefix of FILE that has already
64757         been made, or -2 if there is a child doing the work.  Redo
64758         algorithm so that it is O(N) rather than O(N**2).  Optimize away
64759         ".", and treat ".." specially since it might stray back into
64760         already-created areas.  Use a subprocess if necessary.  New arg
64761         WD; all users changed.  MAKE_DIR function should now return 1
64762         if it creates a directory that is not readable.  Return -2 if
64763         a child process is spun off.
64764         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
64765         Adjust signature to match code.
64766         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
64767         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
64768         all users changed.
64769         * lib/savewd.c, lib/savewd.h: New files.
64770
64771 2006-09-15  Jim Meyering  <jim@meyering.net>
64772
64773         * modules/rename-dest-slash: New module.
64774         * MODULES.html.sh (posix_compat): Add it here.
64775
64776         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
64777
64778 2006-09-15  Jim Meyering  <jim@meyering.net>
64779
64780         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
64781         file.
64782
64783         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
64784
64785 2006-09-15  Jim Meyering  <jim@meyering.net>
64786
64787         * lib/rename-dest-slash.c (has_trailing_slash): Use
64788         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
64789         (rpl_rename_dest_slash): Perform the cheaper trailing slash
64790         test before testing whether SRC is a directory.
64791         Suggestions from Bruno Haible.
64792
64793         Avoid a warning about an unused variable.
64794         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
64795         into the #ifdef block where it's used.
64796
64797         * lib/rename-dest-slash.c: New file.
64798
64799 2006-09-14  Bruno Haible  <bruno@clisp.org>
64800
64801         * lib/allocsa.c: Include <config.h> unconditionally.
64802         * lib/asnprintf.c: Likewise.
64803         * lib/asprintf.c: Likewise.
64804         * lib/c-strcasecmp.c: Likewise.
64805         * lib/c-strcasestr.c: Likewise.
64806         * lib/c-strncasecmp.c: Likewise.
64807         * lib/c-strstr.c: Likewise.
64808         * lib/classpath.c: Likewise.
64809         * lib/clean-temp.c: Likewise.
64810         * lib/concatpath.c: Likewise.
64811         * lib/copy-file.c: Likewise.
64812         * lib/csharpcomp.c: Likewise.
64813         * lib/csharpexec.c: Likewise.
64814         * lib/execute.c: Likewise.
64815         * lib/fatal-signal.c: Likewise.
64816         * lib/findprog.c: Likewise.
64817         * lib/fwriteerror.c: Likewise.
64818         * lib/gl_array_list.c: Likewise.
64819         * lib/gl_array_oset.c: Likewise.
64820         * lib/gl_avltree_list.c: Likewise.
64821         * lib/gl_avltree_oset.c: Likewise.
64822         * lib/gl_avltreehash_list.c: Likewise.
64823         * lib/gl_carray_list.c: Likewise.
64824         * lib/gl_linked_list.c: Likewise.
64825         * lib/gl_linkedhash_list.c: Likewise.
64826         * lib/gl_list.c: Likewise.
64827         * lib/gl_oset.c: Likewise.
64828         * lib/gl_rbtree_list.c: Likewise.
64829         * lib/gl_rbtree_oset.c: Likewise.
64830         * lib/gl_rbtreehash_list.c: Likewise.
64831         * lib/imaxabs.c: Likewise.
64832         * lib/imaxdiv.c: Likewise.
64833         * lib/javacomp.c: Likewise.
64834         * lib/javaexec.c: Likewise.
64835         * lib/javaversion.c: Likewise.
64836         * lib/linebreak.c: Likewise.
64837         * lib/localcharset.c: Likewise.
64838         * lib/lock.c: Likewise.
64839         * lib/mbchar.c: Likewise.
64840         * lib/mbswidth.c: Likewise.
64841         * lib/mkdtemp.c: Likewise.
64842         * lib/pipe.c: Likewise.
64843         * lib/printf-args.c: Likewise.
64844         * lib/printf-parse.c: Likewise.
64845         * lib/progname.c: Likewise.
64846         * lib/progreloc.c: Likewise.
64847         * lib/readlink.c: Likewise.
64848         * lib/sh-quote.c: Likewise.
64849         * lib/stpcpy.c: Likewise.
64850         * lib/stpncpy.c: Likewise.
64851         * lib/strcasecmp.c: Likewise.
64852         * lib/strcasestr.c: Likewise.
64853         * lib/strcspn.c: Likewise.
64854         * lib/striconv.c: Likewise.
64855         * lib/strncasecmp.c: Likewise.
64856         * lib/strnlen1.c: Likewise.
64857         * lib/strstr.c: Likewise.
64858         * lib/strtok_r.c: Likewise.
64859         * lib/tls.c: Likewise.
64860         * lib/tmpdir.c: Likewise.
64861         * lib/unicodeio.c: Likewise.
64862         * lib/unsetenv.c: Likewise.
64863         * lib/vasnprintf.c: Likewise.
64864         * lib/vasprintf.c: Likewise.
64865         * lib/wait-process.c: Likewise.
64866         * lib/xallocsa.c: Likewise.
64867         * lib/xsetenv.c: Likewise.
64868         * lib/xstriconv.c: Likewise.
64869
64870 2006-09-13  Simon Josefsson  <jas@extundo.com>
64871
64872         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
64873         that internally, suggested by Ralf Wildenhues
64874         <Ralf.Wildenhues@gmx.de>.
64875
64876 2006-09-13  Simon Josefsson  <jas@extundo.com>
64877
64878         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
64879         @LIBOBJS@.
64880         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64881
64882 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64883
64884         * lib/_fpending.c: Include <config.h> unconditionally, since we no
64885         longer worry about uses that don't define HAVE_CONFIG_H.
64886         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
64887         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
64888         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
64889         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
64890         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
64891         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
64892         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
64893         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
64894         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
64895         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
64896         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
64897         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
64898         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
64899         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
64900         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
64901         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
64902         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
64903         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
64904         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
64905         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
64906         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
64907         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
64908         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
64909         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
64910         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
64911         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
64912         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
64913         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
64914         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
64915         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
64916         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
64917         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
64918         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
64919         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
64920         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
64921         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
64922         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
64923         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
64924         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
64925         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
64926         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
64927         Likewise.
64928
64929 2006-09-13  Eric Blake  <ebb9@byu.net>
64930
64931         * lib/getopt.c: Fix typo in last commit.
64932
64933 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64934
64935         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
64936         dgettext.
64937
64938 2006-09-12  Jim Meyering  <jim@meyering.net>
64939
64940         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
64941         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
64942         Reported by Nelson H. F. Beebe.
64943
64944 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64945
64946         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
64947         program_invocation_name and program_invocation_short_name are
64948         initialized.
64949         * lib/argp-namefrob.h: Move declarations of program_invocation_name
64950         and program_invocation_short_name to argp.h, so they are visible
64951         to user programs.
64952         * lib/argp.h: Likewise
64953
64954 2006-09-10  Bruno Haible  <bruno@clisp.org>
64955
64956         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
64957         m4/inttypes_h.m4, m4/uintmax_t.m4.
64958
64959 2006-09-10  Bruno Haible  <bruno@clisp.org>
64960
64961         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
64962         gl_AC_TYPE_UINTMAX_T.
64963
64964 2006-09-10  Bruno Haible  <bruno@clisp.org>
64965
64966         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
64967
64968 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64969
64970         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
64971         convention.  Text proposed by Bruno Haible.
64972         (struct argp_option): Document the use of N_() wrappers.
64973
64974         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
64975         '\v', and translate the two parts separately, instead of feeding
64976         the whole string to gettext.  This allows to exclude
64977         '\v' from the strings visible to the translator by writing doc
64978         strings as N_("..") "\v" N_("..").
64979
64980 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
64981
64982         * config/srclist.txt: Undo latest change; the bug was fixed.
64983
64984 2006-09-09  Bruno Haible  <bruno@clisp.org>
64985
64986         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
64987         assignments if building a library without libtool.
64988         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
64989         in func_emit_lib_Makefile_am.
64990         (func_import): When building a static library libfoo.a, arrange to
64991         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
64992         (func_create_testdir): Likewise.
64993         * modules/gc (configure.ac, Makefile.am): If building statically,
64994         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
64995         * modules/iconvme (configure.ac, Makefile.am): Likewise.
64996         * modules/striconv (configure.ac, Makefile.am): Likewise.
64997         Based on a suggestion by Ralf Wildenhues.
64998
64999 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65000
65001         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65002         Check for unistd.h too, since Autoconf doesn't assume POSIX.
65003         Also:
65004
65005         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65006         Add year_2050_test to catch glibc bug 2821
65007         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
65008
65009         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65010         Prefer #ifdef to #if.
65011
65012         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
65013         Return from 'main' instead of calling 'exit'.
65014
65015 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65016
65017         * lib/mktime.c (guess_time_tm): Fix bug where mktime
65018         returned the maximum time_t value rather than (time_t) -1.
65019         Problem originally reported by William Bardwell
65020         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
65021
65022         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
65023         Moved to here ...
65024         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
65025         ... from here.
65026
65027 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65028
65029         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
65030         2821 is fixed.
65031
65032 2006-09-08  Jim Meyering  <jim@meyering.net>
65033
65034         Don't make generated files read-only.  That would bother too many
65035         people.  However, do retain the ability to work when targets are
65036         read-only: remove the destination and temporary files before writing
65037         them (when generated via sed or echo), or by using the -f option for
65038         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
65039         * modules/alloca-opt, modules/argz, modules/arpa_inet:
65040         * modules/byteswap, modules/configmake, modules/fcntl:
65041         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
65042         * modules/localcharset, modules/netinet_in, modules/poll:
65043         * modules/stdbool, modules/stdint, modules/sys_select:
65044         * modules/sys_socket, modules/sys_stat, modules/sysexits:
65045
65046 2006-09-08  Jim Meyering  <jim@meyering.net>
65047
65048         Avoid new build failure on FreeBSD 6.0.
65049         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
65050         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
65051         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
65052
65053 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65054
65055         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
65056
65057 2006-09-07  Jim Meyering  <jim@meyering.net>
65058
65059         Fix global typo in last change: use chmod u-w, not chmod u-x.
65060         Spotted by Paul Eggert and Bruce Korb.
65061         * modules/alloca-opt, modules/argz, modules/arpa_inet:
65062         * modules/byteswap, modules/configmake, modules/fcntl:
65063         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
65064         * modules/localcharset, modules/netinet_in, modules/poll:
65065         * modules/stdbool, modules/stdint, modules/sys_select:
65066         * modules/sys_socket, modules/sys_stat, modules/sysexits:
65067
65068 2006-09-06  Jim Meyering  <jim@meyering.net>
65069
65070         Make generated files be read-only.
65071         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
65072         Ensure that each generated file is now read-only.
65073         * modules/argz: Likewise.
65074         * modules/arpa_inet: Likewise.
65075         * modules/byteswap: Likewise.
65076         * modules/configmake: Likewise.
65077         * modules/fcntl: Likewise.
65078         * modules/fnmatch: Likewise.
65079         * modules/getopt: Likewise.
65080         * modules/glob: Likewise.
65081         * modules/inttypes: Likewise.
65082         * modules/netinet_in: Likewise.
65083         * modules/poll: Likewise.
65084         * modules/stdbool: Likewise.
65085         * modules/stdint: Likewise.
65086         * modules/sys_select: Likewise.
65087         * modules/sys_socket: Likewise.
65088         * modules/sys_stat: Likewise.
65089         * modules/sysexits: Likewise.
65090         * modules/localcharset: Same as above, but continue using temporary
65091         file named "t-$@" (why different?) rather than the "$@-t" used
65092         everywhere else.
65093
65094         * modules/sysexits (Makefile.am): Replace literal occurrences
65095         of "sysexit.h" more readable, and more consistent, "$@".
65096
65097 2006-09-06  Bruno Haible  <bruno@clisp.org>
65098
65099         * modules/striconv: New file.
65100         * modules/xstriconv: New file.
65101         * MODULES.html.sh (Internationalization functions): Add striconv,
65102         xstriconv.
65103
65104 2006-09-06  Bruno Haible  <bruno@clisp.org>
65105
65106         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
65107         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
65108         not using libtool correctly.
65109
65110 2006-09-06  Bruno Haible  <bruno@clisp.org>
65111
65112         * lib/striconv.h: New file.
65113         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
65114         iconvstring.c.
65115         * lib/xstriconv.h: New file.
65116         * lib/xstriconv.c: New file.
65117
65118 2006-09-06  Bruno Haible  <bruno@clisp.org>
65119
65120         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65121         lib_..._LDFLAGS.
65122
65123 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65124
65125         * lib/argz_.h: Sync from Libtool.
65126
65127         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
65128                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
65129
65130         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
65131
65132 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
65133
65134         * modules/trim: New file.
65135
65136 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
65137
65138         * lib/trim.h: New file.
65139         * lib/trim.c: New file.
65140
65141 2006-09-05  Bruno Haible  <bruno@clisp.org>
65142
65143         * MODULES.html.sh (String handling): Add trim.
65144
65145 2006-09-04  Karl Berry  <karl@gnu.org>
65146
65147         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
65148         until next release.
65149
65150 2006-09-03  Bruno Haible  <bruno@clisp.org>
65151
65152         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
65153         correctly.
65154
65155 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65156
65157         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
65158         not gl_GETLOADAVG.  Omit unneeded semicolons.
65159         Problems reported by Ralf Wildenhues in
65160         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
65161         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
65162         at the end, which is the usual gnulib style.
65163
65164         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
65165         of doing all the work ourselves.
65166         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
65167         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
65168
65169 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65170
65171         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
65172         Problem reported by Ralf Wildenhues in
65173         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
65174
65175         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
65176         HAVE_STRUCT_STATFS_F_FSTYPENAME.
65177
65178 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65179
65180         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
65181         yesterday's patch by changing test -n to test -z.
65182
65183 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65184
65185         * modules/getloadavg (Files): Add m4/getloadavg.m4.
65186         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
65187         the former is now obsolescent.
65188
65189         * modules/chdir-long (Depends-on): Add fcntl.
65190
65191 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65192
65193         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
65194         obsolescent, and programs should use gnulib instead.
65195         * m4/getloadavg.m4: New file, with contents taken from Autoconf
65196         but with prefixes changed.
65197
65198 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65199
65200         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
65201         or stdbool.h, because they might not exist while configuring.
65202
65203         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
65204         Don't include unistd.h or limits.h; not needed, since chdir-long.h
65205         does that for us.
65206         (O_DIRECTORY): Remove.
65207
65208 2006-08-31  Eric Blake  <ebb9@byu.net>
65209
65210         * gnulib-tool: Don't let emacs change spaces to TAB.
65211
65212 2006-08-31  Bruno Haible  <bruno@clisp.org>
65213
65214         * gnulib-tool: When calling func_import more than once, do it in a
65215         subshell.
65216         Reported by Eric Blake <ebb9@byu.net>.
65217
65218 2006-08-31  Bruno Haible  <bruno@clisp.org>
65219
65220         * gnulib-tool (nl): Remove variable.
65221         (sed_transform_lib_file): Use more robust test for config-h module.
65222         (func_import): Fix typo in 2006-08-25 patch.
65223
65224 2006-08-31  Bruno Haible  <bruno@clisp.org>
65225
65226         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
65227         specified, augment Makefile.am variables instead of assigning them.
65228
65229 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65230
65231         Work around a bug in both the Linux and SunOS 64-bit kernels:
65232         nanosleep mishandles sleeps for longer than 2**31 seconds.
65233         Problem reported by Frank v Waveren in
65234         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
65235         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
65236         Check for nanosleep bug.
65237         (LIB_NANOSLEEP): Append clock_gettime library if needed.
65238
65239 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65240
65241         Work around a bug in both the Linux and SunOS 64-bit kernels:
65242         nanosleep mishandles sleeps for longer than 2**31 seconds.
65243         Problem reported by Frank v Waveren in
65244         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
65245         * lib/nanosleep.c (BILLION): New constant.
65246         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
65247         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
65248         implementation.
65249
65250 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65251
65252         * modules/nanosleep (Depends-on): Add gettime.
65253
65254 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65255         and Simon Josefsson  <jas@extundo.com>
65256         and Oskar Liljeblad  <oskar@osk.mine.nu>
65257
65258         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
65259         * gnulib-tool (func_import): New license type 'unmodifiable license
65260         text'.
65261         * modules/fdl: Use it.  Longer description.
65262         * module/gpl, module/lgpl: New files.
65263
65264 2006-08-30  Jim Meyering  <jim@meyering.net>
65265
65266         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
65267         shadowing the parameter.
65268
65269 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65270
65271         Sync from Libtool:
65272
65273         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65274
65275         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
65276         sharing with gnulib.  Report by Eric Blake.
65277
65278 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65279
65280         * modules/isapipe: New file.
65281         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
65282
65283 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65284
65285         * modules/configmake (Makefile.am): Add a comment, and omit
65286         the CONFIGMAKE_ prefix from generated macro names.  Suggested
65287         by Bruno Haible.
65288
65289 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65290
65291         * m4/isapipe.m4: New file.
65292
65293 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65294
65295         * lib/isapipe.c, lib/isapipe.h: New files.
65296
65297 2006-08-29  Jim Meyering  <jim@meyering.net>
65298
65299         * modules/configmake (Makefile.am): Make configmake.h depend on
65300         Makefile.  Otherwise, a stale configmake.h could hang around.
65301
65302 2006-08-29  Eric Blake  <ebb9@byu.net>
65303
65304         * lib/error.c (error_at_line, print_errno_message): Match libc, after
65305         resolution of upstream bug 3044.
65306
65307 2006-08-29  Bruno Haible  <bruno@clisp.org>
65308
65309         * modules/localcharset (Depends-on): Add configmake.
65310         (Makefile.am): Remove setting of LIBDIR through DEFS.
65311
65312 2006-08-29  Bruno Haible  <bruno@clisp.org>
65313
65314         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
65315         defined.
65316
65317 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65318
65319         * modules/fcntl: New file.
65320         * modules/chdir-safer (Depends-on): Add fcntl.
65321         * modules/fts: Likewise.
65322         * modules/mkdir-p: Likewise.
65323
65324         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
65325         This undoes the most recent change, since we're now addressing the
65326         problem in a different way.
65327
65328         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
65329         into output, since the output might be called Makefile.am even
65330         if $makefile_name is something different.
65331         (func_import): Use $makefile_am rather than
65332         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
65333         empty.
65334
65335         * modules/inttypes (Files): Add m4/inttypes-h.m4.
65336
65337 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65338
65339         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
65340         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
65341         recent change to stdint.m4, since we're now addressing the problem in a
65342         different way.
65343
65344 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65345
65346         * m4/fcntl_h.m4: New file.
65347
65348 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65349
65350         * lib/fcntl_.h: New file.
65351         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
65352         the fcntl module.
65353         * lib/dirchownmod.c: Likewise.
65354         * lib/fts.c: Likewise.
65355
65356         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
65357         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
65358         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
65359         just before including <inttypes.h>, to avoid circular inclusion.
65360
65361 2006-08-28  Jim Meyering  <jim@meyering.net>
65362
65363         * doc/visibility.texi: Actually read and correct the grammar of the
65364         sentence affected by yesterday's change.
65365
65366 2006-08-28  Eric Blake  <ebb9@byu.net>
65367
65368         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
65369         needs wrapper.
65370
65371 2006-08-28  Eric Blake  <ebb9@byu.net>
65372
65373         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
65374
65375 2006-08-28  Eric Blake  <ebb9@byu.net>
65376
65377         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
65378
65379 2006-08-28  Bruno Haible  <bruno@clisp.org>
65380
65381         * modules/c-strstr: New file, from GNU gettext.
65382         * MODULES.html.sh (String handling): Add c-strstr.
65383
65384 2006-08-28  Bruno Haible  <bruno@clisp.org>
65385
65386         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
65387         macros.
65388         Reported by Eric Blake.
65389
65390 2006-08-28  Bruno Haible  <bruno@clisp.org>
65391
65392         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
65393         (VASNPRINTF): Return a string of length > INT_MAX without failing.
65394         * lib/vasprintf.c: Include errno.h, limits.h.
65395         (EOVERFLOW): New fallback definition.
65396         (vasprintf): Test here whether the string length is > INT_MAX.
65397         * lib/vsnprintf.c: Include errno.h, limits.h.
65398         (EOVERFLOW): New fallback definition.
65399         (vsnprintf): Fix bug when generated string was too long for the buffer.
65400         Test here whether the string length is > INT_MAX.
65401
65402 2006-08-28  Bruno Haible  <bruno@clisp.org>
65403
65404         * lib/inttypes_.h (SCNX*): Remove definitions.
65405         Reported by Eric Blake.
65406
65407 2006-08-28  Bruno Haible  <bruno@clisp.org>
65408
65409         * lib/c-strstr.h: New file, from GNU gettext.
65410         * lib/c-strstr.c: New file, from GNU gettext.
65411
65412 2006-08-28  Bruno Haible  <bruno@clisp.org>
65413
65414         * gnulib-tool: Reorder some statements.
65415
65416 2006-08-28  Bruno Haible  <bruno@clisp.org>
65417
65418         * gnulib-tool: New option --makefile-name.
65419         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
65420         $makefile_name.
65421         (func_import): Write $makefile_name to the cache file, and read it from
65422         there unless explicitly specified. Use $makefile_name as file name
65423         instead of Makefile.am. Adjust the recommendations accordingly.
65424
65425 2006-08-28  Bruno Haible  <bruno@clisp.org>
65426
65427         * gnulib-tool (func_verify_module): Check against misapplying patch.
65428
65429 2006-08-28  Bruno Haible  <bruno@clisp.org>
65430
65431         * gnulib-tool (func_relativize, func_relconcat): New functions.
65432         Give an error if --local-dir is given with --update.
65433         Remove trailing slashes from $local_gnulib_dir.
65434         (func_import): Store the relativized $local_gnulib_dir in
65435         gnulib-cache.m4, and read it from there if not specified explicitly.
65436
65437 2006-08-28  Bruno Haible  <bruno@clisp.org>
65438
65439         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
65440         is the current directory. Respect also $local_gnulib_dir.
65441
65442 2006-08-28  Bruno Haible  <bruno@clisp.org>
65443             Simon Josefsson  <jas@extundo.com>
65444
65445         BeOS portability.
65446         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
65447
65448 2006-08-27  Jim Meyering  <jim@meyering.net>
65449
65450         * doc/visibility.texi: Remove duplicate word: "pointer".
65451
65452 2006-08-26  Bruno Haible  <bruno@clisp.org>
65453
65454         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
65455         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
65456         (Makefile.am): Create inttypes.h from inttypes_.h.
65457         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
65458
65459         * modules/imaxabs: New file.
65460
65461         * modules/imaxdiv: New file.
65462
65463 2006-08-26  Bruno Haible  <bruno@clisp.org>
65464
65465         * m4/inttypes.m4: New file.
65466         * m4/_inttypes_h.m4: Remove file.
65467         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
65468         PRI_MACROS_BROKEN.
65469         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
65470
65471         * m4/imaxabs.m4: New file.
65472
65473         * m4/imaxdiv.m4: New file.
65474
65475 2006-08-26  Bruno Haible  <bruno@clisp.org>
65476
65477         * lib/inttypes_.h: New file.
65478         * lib/inttypes.h: Remove file.
65479         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
65480
65481         * lib/imaxabs.c: New file.
65482
65483         * lib/imaxdiv.c: New file.
65484
65485 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65486
65487         New config-h module, so that "make" output needn't be cluttered
65488         by -DHAVE_CONFIG_H.
65489         * MODULES.html.sh (Support for building libraries and executables):
65490         Add config-h.
65491         * modules/config-h: New file.
65492         * gnulib-tool (nl, sed_transform_lib_file): New vars.
65493         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
65494         the config-h module is used.
65495
65496         New configmake module, so that "make" output needn't be cluttered
65497         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
65498         * MODULES.html.sh (Support for building libraries and executables):
65499         Add configmake.
65500         * modules/configmake: New file.
65501
65502 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65503
65504         * m4/config-h.m4: New file.
65505
65506 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65507
65508         * config/srclist.txt: Add elisp-comp.
65509
65510 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65511
65512         * MODULES.html.sh (Support for building libraries and executables):
65513         Add elisp-comp.
65514         * build-aux/elisp-comp: New file.
65515         * modules/elisp-comp: New file.
65516
65517 2006-08-24  Bruno Haible  <bruno@clisp.org>
65518
65519         * gnulib-tool (func_create_testdir): Use non-default values of
65520         sourcebase and m4base.
65521
65522 2006-08-24  Bruno Haible  <bruno@clisp.org>
65523
65524         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
65525         HTML structure.
65526
65527 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65528
65529         * modules/openat (Depends-on): Add lchown.
65530
65531 2006-08-23  Bruno Haible  <bruno@clisp.org>
65532
65533         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
65534         of gl_LOCK_EARLY instead of gl_LOCK.
65535
65536 2006-08-23  Bruno Haible  <bruno@clisp.org>
65537
65538         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
65539         on OSF/1 to no.
65540         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
65541
65542 2006-08-23  Bruno Haible  <bruno@clisp.org>
65543
65544         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
65545         as unusable.
65546
65547         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
65548         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
65549         (gl_LOCK): New macro.
65550
65551 2006-08-22  Simon Josefsson  <jas@extundo.com>
65552
65553         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
65554         to md5 module.
65555
65556 2006-08-22  Simon Josefsson  <jas@extundo.com>
65557
65558         * MODULES.html.sh: Add "Support for maintaining and release
65559         projects".
65560
65561         * build-aux/gnupload: New file, from coreutils.
65562
65563 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65564
65565         Avoid the need for AC_LIBSOURCES in m4 macros.
65566         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
65567         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
65568         * modules/check-version (EXTRA_DIST): Add check-version.h.
65569         * modules/crc (EXTRA_DIST): Add crc.h.
65570         * modules/des (EXTRA_DIST): Add des.h.
65571         * modules/gc (EXTRA_DIST): Add gc.h.
65572         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
65573         * modules/getline (EXTRA_DIST): Add getline.h.
65574         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
65575         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
65576         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
65577         * modules/md2 (EXTRA_DIST): Add md2.h.
65578         * modules/md4 (EXTRA_DIST): Add md4.h.
65579         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
65580         * modules/read-file (EXTRA_DIST): Add read-file.h.
65581         * modules/readline (EXTRA_DIST): Add readline.h.
65582         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
65583         rijndael-api-fst.h.
65584
65585 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65586
65587         * m4/rijndael.m4 (gl_ARCFOUR):
65588         * m4/arctwo.m4 (gl_ARCTWO):
65589         * m4/check-version.m4 (gl_CHECK_VERSION):
65590         * m4/crc.m4 (gl_CRC):
65591         * m4/des.m4 (gl_DES):
65592         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
65593         * m4/gc.m4 (gl_GC):
65594         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
65595         * m4/getline.m4 (gl_FUNC_GETLINE):
65596         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
65597         * m4/hmac-md5.m4 (gl_HMAC_MD5):
65598         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
65599         * m4/md2.m4 (gl_MD2):
65600         * m4/md4.m4 (gl_MD4):
65601         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
65602         * m4/read-file.m4 (gl_FUNC_READ_FILE):
65603         * m4/readline.m4 (gl_FUNC_READLINE):
65604         * m4/rijndael.m4 (gl_RIJNDAEL):
65605         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
65606         to get the necessary .h files and whatnot.
65607
65608 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65609
65610         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
65611         gnulib rather than the other way around.
65612         * config/srclistvars.sh (COREUTILS): Remove.
65613
65614 2006-08-22  Jim Meyering  <jim@meyering.net>
65615
65616         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
65617
65618         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
65619
65620 2006-08-22  Eric Blake  <ebb9@byu.net>
65621
65622         * modules/regexprops-generic: New file.
65623         * MODULES.html.sh (Support for building documentation): List it.
65624
65625 2006-08-22  Eric Blake  <ebb9@byu.net>
65626
65627         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
65628         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
65629         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
65630         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
65631
65632 2006-08-22  Bruno Haible  <bruno@clisp.org>
65633
65634         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
65635         and lib_LTLIBRARIES like the other lib_* variables.
65636
65637 2006-08-22  Bruno Haible  <bruno@clisp.org>
65638
65639         * build-aux/x-to-1.in: New file, from GNU gettext.
65640
65641 2006-08-22  Bruno Haible  <bruno@clisp.org>
65642
65643         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
65644         <utmpx.h> exists.
65645
65646 2006-08-22  Bruno Haible  <bruno@clisp.org>
65647
65648         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
65649         <utmpx.h> exists.
65650
65651 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65652
65653         BeOS portability.
65654         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
65655         exist.
65656         Problem reported by Bruno Haible.
65657
65658 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65659
65660         Avoid the need for AC_LIBSOURCES in m4 macros.
65661         * modules/acl (EXTRA_DIST): Add acl.h.
65662         * modules/argmatch (Files): Add m4/argmatch.m4.
65663         (configure.ac): Add gl_ARGMATCH.
65664         (EXTRA_DIST): Renamed from lib_SOURCES, for
65665         consistency with the other modules.  Remove argmatch.c.
65666         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
65667         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
65668         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
65669         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
65670         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
65671         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
65672         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
65673         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
65674         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
65675         * modules/closeout (EXTRA_DIST): Add closeout.h.
65676         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
65677         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
65678         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
65679         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
65680         dirname.h; remove basename.c and stripslash.c.
65681         * modules/exclude (EXTRA_DIST): Add exclude.h.
65682         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
65683         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
65684         * modules/file-type (EXTRA_DIST): Add file-type.h.
65685         * modules/filemode (EXTRA_DIST): Add filemode.h.
65686         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
65687         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65688         * modules/fpending (EXTRA_DIST): Add __fpending.h.
65689         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
65690         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
65691         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
65692         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
65693         * modules/getdate (EXTRA_DIST): Add getdate.c.
65694         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
65695         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
65696         * modules/getpass (EXTRA_DIST): Add getpass.h.
65697         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
65698         * modules/group-member (EXTRA_DIST): Add group-member.h.
65699         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
65700         * modules/hash (EXTRA_DIST): Add hash.h.
65701         * modules/human (EXTRA_DIST): Add human.h.
65702         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
65703         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
65704         * modules/lchown (EXTRA_DIST): Add lchown.h.
65705         * modules/long-options (EXTRA_DIST): Add long-options.h.
65706         * modules/lstat (EXTRA_DIST): Add lstat.h.
65707         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
65708         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
65709         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
65710         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
65711         * modules/memxor (EXTRA_DIST): Add memxor.h.
65712         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
65713         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
65714         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
65715         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
65716         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
65717         * modules/physmem (EXTRA_DIST): Add physmem.h.
65718         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
65719         * modules/posixver (EXTRA_DIST): Add posixver.h.
65720         * modules/quote (EXTRA_DIST): Add quote.h.
65721         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
65722         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
65723         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
65724         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
65725         regex_internal.h regexec.c.
65726         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
65727         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
65728         * modules/same (EXTRA_DIST): Add same.h.
65729         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
65730         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
65731         * modules/savedir (EXTRA_DIST): Add savedir.h.
65732         * modules/sha1 (EXTRA_DIST): Add sha1.h.
65733         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
65734         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
65735         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
65736         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
65737         * modules/strdup (EXTRA_DIST): Add strdup.h.
65738         * modules/strftime (EXTRA_DIST): Add strftime.h.
65739         * modules/strndup (EXTRA_DIST): Add strndup.h.
65740         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
65741         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
65742         * modules/time_r (EXTRA_DIST): Add time_r.h.
65743         * modules/timespec (EXTRA_DIST): Add timespec.h.
65744         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65745         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
65746         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
65747         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
65748         * modules/userspec (EXTRA_DIST): Add userspec.h.
65749         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
65750         * modules/utimens (EXTRA_DIST): Add utimens.h.
65751         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
65752         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
65753         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
65754         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
65755         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
65756         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
65757         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
65758         * modules/yesno (EXTRA_DIST): Add yesno.h.
65759
65760 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65761
65762         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
65763
65764         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
65765         * m4/dev-ino.m4, same-inode.m4: Remove.
65766
65767         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
65768         * m4/acl.m4 (AC_FUNC_ACL):
65769         * m4/backupfile.m4 (gl_BACKUPFILE):
65770         * m4/c-strtod.m4 (gl_C99_STRTOLD):
65771         * m4/canon-host.m4 (gl_CANON_HOST):
65772         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
65773         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
65774         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
65775         * m4/cloexec.m4 (gl_CLOEXEC):
65776         * m4/close-stream.m4 (gl_CLOSE_STREAM):
65777         * m4/closeout.m4 (gl_CLOSEOUT):
65778         * m4/dirfd.m4 (gl_FUNC_DIRFD):
65779         * m4/dirname.m4 (gl_DIRNAME):
65780         * m4/exclude.m4 (gl_EXCLUDE):
65781         * m4/exitfail.m4 (gl_EXITFAIL):
65782         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
65783         * m4/file-type.m4 (gl_FILE_TYPE):
65784         * m4/filemode.m4 (gl_FILEMODE):
65785         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
65786         * m4/fpending.m4 (gl_FUNC_FPENDING):
65787         * m4/fprintftime.m4 (gl_FPRINTFTIME):
65788         * m4/fts.m4 (gl_FUNC_FTS):
65789         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
65790         * m4/getdate.m4 (gl_GETDATE):
65791         * m4/gethrxtime.m4 (gl_GETHRXTIME):
65792         * m4/getpagesize.m4 (gl_GETPAGESIZE):
65793         * m4/getpass.m4 (gl_FUNC_GETPASS):
65794         * m4/gettime.m4 (gl_GETTIME):
65795         * m4/getugroups.m4 (gl_GETUGROUPS):
65796         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
65797         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
65798         * m4/hard-locale.m4 (gl_HARD_LOCALE):
65799         * m4/hash.m4 (gl_HASH):
65800         * m4/idcache.m4 (gl_IDCACHE):
65801         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
65802         * m4/lchown.m4 (gl_FUNC_LCHOWN):
65803         * m4/long-options.m4 (gl_LONG_OPTIONS):
65804         * m4/lstat.m4 (gl_FUNC_LSTAT):
65805         * m4/md5.m4 (gl_MD5):
65806         * m4/memcasecmp.m4 (gl_MEMCASECMP):
65807         * m4/memcoll.m4 (gl_MEMCOLL):
65808         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
65809         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
65810         * m4/memxor.m4 (gl_MEMXOR):
65811         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
65812         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
65813         * m4/modechange.m4 (gl_MODECHANGE):
65814         * m4/mountlist.m4 (gl_MOUNTLIST):
65815         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65816         * m4/openat.m4 (gl_FUNC_OPENAT):
65817         * m4/pathmax.m4 (gl_PATHMAX):
65818         * m4/physmem.m4 (gl_PHYSMEM):
65819         * m4/posixtm.m4 (gl_POSIXTM):
65820         * m4/posixver.m4 (gl_POSIXVER):
65821         * m4/quote.m4 (gl_QUOTE):
65822         * m4/quotearg.m4 (gl_QUOTEARG):
65823         * m4/readtokens.m4 (gl_READTOKENS):
65824         * m4/readutmp.m4 (gl_READUTMP):
65825         * m4/regex.m4 (gl_REGEX):
65826         * m4/safe-read.m4 (gl_SAFE_READ):
65827         * m4/safe-write.m4 (gl_SAFE_WRITE):
65828         * m4/same.m4 (gl_SAME):
65829         * m4/save-cwd.m4 (gl_SAVE_CWD):
65830         * m4/savedir.m4 (gl_SAVEDIR):
65831         * m4/settime.m4 (gl_SETTIME):
65832         * m4/sha1.m4 (gl_SHA1):
65833         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
65834         * m4/stat-macros.m4 (gl_STAT_MACROS):
65835         * m4/stat-time.m4 (gl_STAT_TIME):
65836         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
65837         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
65838         * m4/strdup.m4 (gl_FUNC_STRDUP):
65839         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
65840         * m4/strndup.m4 (gl_FUNC_STRNDUP):
65841         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
65842         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
65843         * m4/time_r.m4 (gl_TIME_R):
65844         * m4/timespec.m4 (gl_TIMESPEC):
65845         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
65846         * m4/unlinkdir.m4 (gl_UNLINKDIR):
65847         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
65848         * m4/userspec.m4 (gl_USERSPEC):
65849         * m4/utimecmp.m4 (gl_UTIMECMP):
65850         * m4/utimens.m4 (gl_UTIMENS):
65851         * m4/xalloc.m4 (gl_XALLOC):
65852         * m4/xgetcwd.m4 (gl_XGETCWD):
65853         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
65854         * m4/xreadlink.m4 (gl_XREADLINK):
65855         * m4/xstrtod.m4 (gl_XSTRTOD):
65856         * m4/yesno.m4 (gl_YESNO):
65857         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
65858         to get the necessary .h files and whatnot.
65859
65860 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
65861             Bruno Haible  <bruno@clisp.org>
65862
65863         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
65864         /bin/sh understanding of '!' conditional negation.
65865
65866 2006-08-21  Jim Meyering  <jim@meyering.net>
65867
65868         * modules/openat (Depends-on): Really alphabetize.
65869
65870         * modules/acl (Depends-on): Add error and quote.
65871
65872         * check-module (find_included_lib_files): Add at-func.c to the
65873         ok-to-include-more-than-once white list.
65874
65875         * modules/openat (Depends-on): Add lstat.  Alphabetize.
65876
65877 2006-08-21  Bruno Haible  <bruno@clisp.org>
65878
65879         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65880         Emit a pkgdata_DATA variable only if some snippets add contents to it.
65881         Reported by Martin Lambers <marlam@marlam.de>.
65882
65883 2006-08-21  Bruno Haible  <bruno@clisp.org>
65884
65885         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
65886         specify an installation location, don't emit a noinst_LIBRARIES or
65887         noinst_LTLIBRARIES assignment.
65888
65889 2006-08-21  Bruno Haible  <bruno@clisp.org>
65890
65891         BeOS portability.
65892         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
65893         BeOS has mbrtowc() but no <wctype.h>.
65894
65895 2006-08-21  Bruno Haible  <bruno@clisp.org>
65896
65897         BeOS portability.
65898         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
65899         exist.
65900
65901 2006-08-21  Bruno Haible  <bruno@clisp.org>
65902
65903         BeOS portability.
65904         * lib/mbchar.h: Include <wctype.h> only if it exists.
65905
65906 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65907
65908         Remove files that are no longer needed by their respective modules.
65909         * m4/obstack.m4: Remove.
65910         * m4/strerror_r.m4: Remove.
65911         * m4/uint32_t.m4: Remove.
65912         * m4/uintptr_t.m4: Remove.
65913         * m4/ullong_max.m4: Remove.
65914         * m4/xstrtoimax.m4: Remove.
65915         * m4/xstrtoumax.m4: Remove.
65916
65917         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
65918         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
65919         dependencies now capture this.
65920
65921         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
65922         Do not use AC_LIBSOURCES, since gnulib modules now do this.
65923         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
65924         * m4/human.m4 (gl_HUMAN): Likewise.
65925         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
65926         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
65927
65928         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
65929
65930         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
65931         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
65932         stdint.
65933         * m4/human.m4 (gl_HUMAN): Likewise.
65934         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
65935         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
65936         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
65937         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
65938         * m4/xstrtol (gl_XSTRTOL): Likewise.
65939
65940         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
65941         AC_TYPE_LONG_LONG_INT.
65942         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
65943         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
65944         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
65945         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
65946
65947         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
65948         on stdbool.
65949
65950         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
65951         (gl_PREREQ_XSTRTOUL): Remove.
65952
65953         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
65954
65955         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
65956         mode.
65957
65958 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65959
65960         Add and change modules to make it easier for coreutils to use
65961         gnulib-tool.
65962         * modules/backupfile (Files): Remove m4/d-ino.m4.
65963         (Depends-on): Add d-ino.
65964         * modules/cycle-check (Depends-on): Add stdint.
65965         (lib_SOURCES): Add cycle-check.h.
65966         * modules/d-ino: New module.
65967         * modules/d-type: New module.
65968         * modules/error (Files): Remove m4/strerror_r.m4.
65969         * modules/filemode (Files): Add m4/st_dm_mode.m4.
65970         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
65971         m4/inttypes_h.m4, m4/uintmax_t.m4.
65972         (Depends-on): Add stdint.
65973         (lib_SOURCES): Add fsusage.h.
65974         * modules/getcwd (Files): Remove d-ino.m4.
65975         (Depends-on): Add d-ino.
65976         * modules/getndelim2 (Depends-on): Add stdint.
65977         * modules/glob (Files): Remove m4/d-type.m4.
65978         (Depends-on): Add d-type.
65979         * modules/host-os: New module.
65980         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
65981         m4/inttypes_h.m4, m4/uintmax_t.m4.
65982         * Depends-on: Add stdint.
65983         (lib_SOURCES): Add human.h.
65984         * modules/inttostr (Files): Remove m4/intmax_t.m4,
65985         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
65986         m4/uintmax_t.m4, m4/ulonglong.m4.
65987         (Depends-on): Add stdint.
65988         (EXTRA_DIST): Add inttostr.h.
65989         * modules/lchmod: New module.
65990         * modules/link-follow: New module.
65991         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
65992         (Depends-on): Add lchmod.
65993         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
65994         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
65995         (Depends-on): Add stdint.
65996         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
65997         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
65998         (Depends-on): Add stdint.
65999         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
66000         * modules/perl: New module.
66001         * modules/regex (Depends-on): Add stdint.
66002         * modules/rmdir-errno: New module.
66003         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
66004         m4/intmax_t.m4.
66005         (Depends-on): Add stdint.
66006         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
66007         m4/uintmax_t.m4.
66008         (Depends-on): Add stdint.
66009         * modules/unlink-busy: New module.
66010         * modules/utimecmp (Depends-on): Add stdint.
66011         * modules/uptime: New module.
66012         * modules/winsz-ioctl: New module.
66013         * modules/winsz-termios: New module.
66014         * modules/xnanosleep (Depends-on): Add nanosleep.
66015         * modules/ullong_max: Remove.
66016         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
66017         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
66018         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
66019         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
66020         (Depends-on): Add inttypes.
66021         (lib_SOURCES): Add xstrtol.h.
66022         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
66023         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
66024         * MODULES.html.sh: Move 'assert' into the assert section.
66025         Move 'dummy' into the linking section.
66026         Remove ullong_max.
66027         Add section for compatibility checks for POSIX:2001 functions,
66028         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
66029         winsz-ioctl, and winsz-termios into it.
66030         Add lchmod.
66031         Add top-level Misc section and put host-os, perl, and uptime
66032         into it.
66033
66034 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66035
66036         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
66037         now assume the stdint module.  Do not include inttypes.h.
66038         * lib/fsusage.h: Likewise.
66039         * lib/getndelim2.c: Likewise.
66040         * lib/human.h: Likewise.
66041         * lib/inttostr.h: Likewise.
66042         * lib/obstack.c: Likewise.
66043         * lib/regex_internal.h: Likewise.
66044         * lib/tempname.c: Likewise.
66045         * lib/utimecmp.c: Likewise.
66046         * lib/xstrtol.h: Likewise.
66047
66048         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
66049
66050         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
66051         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
66052         * lib/xtime.h: Likewise.
66053
66054 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66055
66056         * modules/openat (Files): Add lib/fchmodat.c.
66057         Fixes problem reported by Jay Youngman.
66058
66059 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66060
66061         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
66062         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
66063
66064 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
66065             Bruno Haible  <bruno@clisp.org>
66066
66067         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
66068         and is a script that invokes bison. Tighten the code. Add comments.
66069
66070 2006-08-18  Jim Meyering  <jim@meyering.net>
66071
66072         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
66073         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
66074         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
66075         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
66076
66077 2006-08-18  Bruno Haible  <bruno@clisp.org>
66078
66079         * modules/bison-i18n: New file.
66080         * MODULES.html.sh (Internationalization functions): Add it.
66081
66082 2006-08-18  Bruno Haible  <bruno@clisp.org>
66083
66084         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
66085         sys/statvfs.h. When getmntinfo was found, check its declaration and
66086         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
66087
66088 2006-08-18  Bruno Haible  <bruno@clisp.org>
66089
66090         * m4/bison-i18n.m4: New file, from bison.
66091
66092 2006-08-18  Bruno Haible  <bruno@clisp.org>
66093
66094         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
66095         (ME_DUMMY): Treat "kernfs" as a dummy.
66096         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
66097
66098 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66099
66100         Update from coreutils.
66101
66102         2006-08-15  Jim Meyering  <jim@meyering.net>
66103
66104         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
66105
66106         2006-01-17  Jim Meyering  <jim@meyering.net>
66107
66108         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
66109
66110         2006-01-11  Jim Meyering  <jim@meyering.net>
66111
66112         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
66113         Check for the lchmod function.
66114
66115 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66116
66117         Update from coreutils.
66118
66119         * lib/__fpending.h: Add copyright notice.
66120         * lib/fprintftime.h: Likewise.
66121         * lib/savedir.c: Use (C) in copyright notice.
66122         * lib/savedir.h: Likewise.
66123
66124         2006-08-15  Jim Meyering  <jim@meyering.net>
66125
66126         * lib/at-func.c: New file, with the logic of all emulated at-functions.
66127         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
66128         in support of the EXPECTED_ERRNO macro.
66129         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
66130         definitions.  Instead, define the appropriate symbols and include
66131         "at-func.c".
66132         * lib/mkdirat.c (mkdirat): Likewise.
66133         * lib/fchmodat.c (fchmodat): Likewise.
66134         (ENOSYS): Remove definition.
66135         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
66136         it.  Don't include "unistd--.h" -- it wasn't ever used.
66137
66138         2006-01-17  Jim Meyering  <jim@meyering.net>
66139
66140         Rewrite fts.c not to change the current working directory,
66141         by using openat, fstatat, fdopendir, etc..
66142
66143         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
66144         (HAVE_OPENAT_SUPPORT): Define.
66145         [_LIBC] (fchdir): Don't undef or define; no longer used.
66146         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
66147         Now, this `function' always succeeds, and consumes its file descriptor
66148         parameter -- so callers must not close such FDs.  Update callers.
66149         (diropen_fd, opendirat, cwd_advance_fd): New functions.
66150         (diropen): Add parameter, SP.  Adjust all callers.
66151         Implement using diropen_fd, rather than open.
66152         (fts_open): Initialize new member, fts_cwd_fd.
66153         Remove fts_rft-setting code.
66154         (fts_close): Close fts_cwd_fd, if necessary.
66155         (__opendir2): Define in terms of opendir or opendirat,
66156         depending on whether the FST_NOCHDIR flag is set.
66157         (fts_build): Since fts_safe_changedir consumes its FD, and since
66158         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
66159         and close the dup'd file descriptor upon failure.
66160         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
66161         (fts_safe_changedir): Tweak semantics to reflect that this function
66162         now calls cwd_advance_fd and hence consumes its FD argument.
66163         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
66164         [struct FTS] (fts_rft): Remove now-unused member.
66165         [struct FTS] (fts_cycle.state): Improve comment.
66166
66167         * lib/openat.c (openat_needs_fchdir): New function.
66168         * lib/openat.h (openat_needs_fchdir): Declare it.
66169
66170 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
66171
66172         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
66173         Problem and fix reported by Pádraig Brady in
66174         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
66175
66176 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66177
66178         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
66179
66180 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66181
66182         * lib/memcoll.c (memcoll): Optimize for the common case where the
66183         arguments are bytewise equal.
66184
66185 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66186
66187         * doc/regexprops-generic.texi: Add a copyright notice.
66188
66189 2006-08-15  Bruno Haible  <bruno@clisp.org>
66190
66191         * modules/tmpdir (License): Change to LGPL.
66192
66193 2006-08-15  Bruno Haible  <bruno@clisp.org>
66194
66195         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
66196         module.
66197
66198 2006-08-14  Simon Josefsson  <jas@extundo.com>
66199
66200         * config/srclist.txt: Add gnupload.
66201
66202 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66203
66204         Change copyright notice from LGPL 2 to GPL 2, since that's the
66205         standard form used in the gnulib repository.
66206         * tests/test-lock.c: Likewise.
66207         * tests/test-stdint.c: Likewise.
66208         * tests/test-tls.c: Likewise.
66209
66210         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
66211         prelude-manager.  User shorter URLs for GNU projects, without '?'.
66212         Add copyright notice.
66213
66214         * check-module: Add copyright notice.  Output a copyright
66215         notice if "--version" is specified.
66216         * modules/COPYING: New file.
66217         * tests/test-getaddrinfo.c: Add copyright notice.
66218         * tests/test-verify.c: Likewise.
66219
66220 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66221
66222         Change copyright notice from LGPL 2 to GPL 2, since that's the
66223         standard form used in the gnulib repository.
66224         * lib/lock.c: LGPL -> GPL.
66225         * lib/lock.h: Likewise.
66226         * lib/strnlen1.c: Likewise.
66227         * lib/strnlen1.h: Likewise.
66228         * lib/tls.c: Likewise.
66229         * lib/tls.h: Likewise.
66230         * lib/tmpdir.c: Likewise.
66231
66232         * lib/TODO: Remove; this belongs only in coreutils.
66233
66234 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66235
66236         Add copyright notices to long-enough files that lack them, since
66237         otherwise the files aren't clearly free.  Use the same notice that
66238         getdate.texi already uses.
66239         * doc/alloca-opt.texi: Add copyright notice.
66240         * doc/alloca.texi: Likewise.
66241         * doc/ctime.texi: Likewise.
66242         * doc/functions.texi: Likewise.
66243         * doc/gcd.texi: Likewise.
66244         * doc/gnulib-tool.texi: Likewise.
66245         * doc/inet_ntoa.texi: Likewise.
66246         * doc/visibility.texi: Likewise.
66247
66248         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
66249         * doc/quote.texi: Add copyright notice.
66250
66251         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
66252         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
66253         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
66254         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
66255         is now obsolete, and give a pointer to the Sun list.
66256         Add copyright notice.
66257
66258 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66259
66260         * config/srclistvars.sh: Add copyright notice.
66261
66262 2006-08-14  Eric Blake  <ebb9@byu.net>
66263
66264         Import the following change from libc:
66265
66266         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
66267
66268         Upstream bug 2997.
66269         * lib/misc/error.c: Add space between program name and message if file
66270         name is missing.
66271
66272 2006-08-12  Karl Berry  <karl@gnu.org>
66273
66274         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
66275         remove, these originate in gnulib now.
66276
66277 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66278
66279         * doc/Makefile (standards.info standards.html standards.dvi):
66280         Also depend on make-stds.texi.
66281
66282 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
66283
66284         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
66285         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
66286
66287         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
66288         in wchar_t.  Problem reported by Eric Blake.
66289
66290         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
66291         LEN is smaller than SIZE.  Suggested by Bruno Haible.
66292         Also, help the compiler to keep LEN in a register.
66293
66294 2006-08-11  Eric Blake  <ebb9@byu.net>
66295
66296         * users.txt: Sort.  Add tar.
66297
66298 2006-08-11  Bruno Haible  <bruno@clisp.org>
66299
66300         * users.txt: New file.
66301
66302 2006-08-11  Bruno Haible  <bruno@clisp.org>
66303
66304         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
66305         before <wchar.h>. Needed for OSF/1 and BSD/OS.
66306
66307 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66308
66309         * modules/snprintf (Depends-on): Remove minmax.
66310         (Maintainer): Add self and Bruno.
66311
66312 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66313
66314         * lib/.cppi-disable: Add snprintf.h, socket_.h.
66315         * lib/snprintf.c: Include <errno.h> and <limits.h>.
66316         (EOVERFLOW): Define if the system does not.
66317         Do not include "minmax.h"; it wasn't used.
66318         (snprintf): Don't assume size_t promotes to an unsigned type.
66319         Fix bug when generated string was too long for the buffer: the
66320         buffer's contents are supposed to be the initial prefix of the
66321         output.  Don't assume vasnprintf returns EOVERFLOW if the size
66322         exceeds INT_MAX; do the check ourselves.
66323
66324         Import the following changes from libc:
66325
66326         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
66327
66328         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
66329         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
66330         set wc to the byte which couldn't be converted.
66331         (re_string_reconstruct): Don't clear valid_raw_len before calling
66332         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
66333         tip_context using re_string_context_at.
66334
66335         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
66336
66337         * lib/posix/regex.h: g++ still cannot handled [restrict].
66338
66339         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
66340
66341         * lib/posix/regex.h: Remove special handling for VMS.
66342
66343 2006-08-10  Jim Meyering  <jim@meyering.net>
66344
66345         * modules/same-inode: New module.
66346         * modules/dev-ino: New module.
66347         * modules/cycle-check: Depend on these modules, rather than simply
66348         including their .h files.
66349         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
66350         required via m4/cycle-check.m4.
66351         * modules/same: Depend on new same-inode module, rather than
66352         including same-inode.h.
66353         * modules/chdir-safer: New file.
66354
66355         * modules/chown (Depends-on): Add stat-macros.
66356
66357 2006-08-10  Jim Meyering  <jim@meyering.net>
66358
66359         * m4/cycle-check.m4: New file.
66360         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
66361         * m4/dev-ino.m4, m4/same-inode.m4: New files.
66362
66363 2006-08-10  Eric Blake  <ebb9@byu.net>
66364
66365         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
66366         in from original proposal.
66367
66368 2006-08-10  Eric Blake  <ebb9@byu.net>
66369         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
66370
66371         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
66372         namespace.
66373
66374 2006-08-10  Bruno Haible  <bruno@clisp.org>
66375
66376         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
66377         as well.
66378
66379 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66380
66381         Sync from coreutils.
66382
66383         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
66384
66385         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
66386         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
66387
66388 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66389
66390         * modules/restrict: Remove; no longer needed now that we assume
66391         Autoconf 2.59 or later.
66392         * MODULES.html.sh: Remove 'restrict'.
66393         * modules/argp (Depends-on): Remove 'restrict'.
66394         * modules/base64 (Depends-on): Likewise.
66395         * modules/gc (Depends-on): Likewise.
66396         * modules/getaddrinfo (Depends-on): Likewise.
66397         * modules/glob (Depends-on): Likewise.
66398         * modules/inet_ntop (Depends-on): Likewise.
66399         * modules/inet_pton (Depends-on): Likewise.
66400         * modules/memxor (Depends-on): Likewise.
66401         * modules/regex (Depends-on): Likewise.
66402         * modules/strtok_r (Depends-on): Likewise.
66403         * modules/time_r (Depends-on): Likewise.
66404
66405 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66406
66407         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
66408         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
66409         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66410         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
66411         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
66412         * m4/memxor.m4 (gl_MEMXOR): Likewise.
66413         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
66414         gl_C_RESTRICT replaced by AC_C_RESTRICT.
66415
66416         Merge from coreutils.
66417         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
66418         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
66419         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66420         * m4/time_r.m4 (gl_TIME_R): Likewise.
66421
66422 2006-08-09  Karl Berry  <karl@gnu.org>
66423
66424         * config/srclist.txt: no more gettext-tools, per Bruno.
66425
66426 2006-08-08  Eric Blake  <ebb9@byu.net>
66427
66428         * modules/verror: New module.
66429         * MODULES.html.sh: Document it.
66430
66431 2006-08-08  Eric Blake  <ebb9@byu.net>
66432
66433         * lib/verror.h, lib/verror.c: New files.
66434
66435 2006-08-08  Eric Blake  <ebb9@byu.net>
66436
66437         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
66438         verror_at_line output complies with GNU Coding Standards even when
66439         file is NULL.
66440
66441 2006-08-07  Bruno Haible  <bruno@clisp.org>
66442
66443         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
66444         versions of AIX.
66445         Reported by Ralf Wildenhues.
66446
66447 2006-08-07  Bruno Haible  <bruno@clisp.org>
66448
66449         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
66450         in an AC_DEFUN. Needed so that the autoconf snippets can use
66451         AC_REQUIRE.
66452
66453 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66454
66455         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66456         Initialize pkgdata_DATA.
66457         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
66458         overriding it.
66459
66460 2006-08-06  Eric Blake  <ebb9@byu.net>
66461
66462         * lib/error.h: Fold in some upstream changes from glibc.
66463         * lib/error.c: Likewise.
66464
66465 2006-08-04  Bruno Haible  <bruno@clisp.org>
66466
66467         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66468         Make the mostlyclean-local rule depend on mostlyclean-generic.
66469         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
66470
66471 2006-07-31  Bruno Haible  <bruno@clisp.org>
66472
66473         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
66474         <stdlib.h>, <string.h>.
66475
66476 2006-07-30  Bruno Haible  <bruno@clisp.org>
66477
66478         * modules/readlink (License): Change to LGPL.
66479
66480 2006-07-30  Bruno Haible  <bruno@clisp.org>
66481
66482         * modules/javaversion (Makefile.am): Distribute javaversion.java and
66483         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
66484         set PKGDATADIR to point to it.
66485
66486 2006-07-30  Bruno Haible  <bruno@clisp.org>
66487
66488         * modules/csharpexec (configure.ac): Comment out macro invocation.
66489         * modules/javaexec (configure.ac): Likewise.
66490         * modules/javacomp-script (configure.ac): Likewise.
66491
66492         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
66493
66494 2006-07-30  Bruno Haible  <bruno@clisp.org>
66495
66496         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
66497         linked-list.
66498
66499 2006-07-30  Bruno Haible  <bruno@clisp.org>
66500
66501         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
66502
66503 2006-07-30  Bruno Haible  <bruno@clisp.org>
66504
66505         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66506         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
66507         get removed.
66508
66509 2006-07-29  Bruno Haible  <bruno@clisp.org>
66510
66511         Make it possible for gnulib-tool to work with locally modified or
66512         augmented gnulib repositories.
66513         * gnulib-tool (func_usage): Document --local-dir option.
66514         (local_gnulib_dir): New variable.
66515         Handle --local-dir option.
66516         (func_lookup_file): New function.
66517         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
66518         (func_get_description, func_get_filelist, func_get_description,
66519         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
66520         func_get_automake_snippet, func_get_include_directive,
66521         func_get_license, func_get_maintainer): Use func_lookup_file.
66522         (func_import, func_create_testdir): Use func_lookup_file.
66523
66524 2006-07-29  Bruno Haible  <bruno@clisp.org>
66525
66526         * modules/setenv (Depends-on): Add unistd.
66527
66528 2006-07-29  Bruno Haible  <bruno@clisp.org>
66529
66530         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
66531
66532 2006-07-29  Bruno Haible  <bruno@clisp.org>
66533
66534         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
66535
66536 2006-07-29  Bruno Haible  <bruno@clisp.org>
66537
66538         * gnulib-tool (import, update): If there is no Makefile.am, look at
66539         aclocal.m4, instead of bailing out.
66540
66541 2006-07-29  Bruno Haible  <bruno@clisp.org>
66542
66543         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
66544         Categorize the options by when they are useful.
66545
66546 2006-07-29  Bruno Haible  <bruno@clisp.org>
66547
66548         * gnulib-tool (func_usage): Document option --no-libtool.
66549         Handle option --no-libtool.
66550         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
66551         for changed semantics of $libtool variable.
66552         (func_import): Likewise. If libtool is not used, show this through
66553         an option --no-libtool.
66554         (func_create_testdir): Update.
66555
66556 2006-07-29  Bruno Haible  <bruno@clisp.org>
66557
66558         * gnulib-tool (func_import): Extend error message about missing
66559         --doc-base.
66560
66561 2006-07-29  Bruno Haible  <bruno@clisp.org>
66562
66563         * gnulib-tool (func_import): Don't create the $docbase directory if
66564         there is no file to store there.
66565
66566 2006-07-29  Bruno Haible  <bruno@clisp.org>
66567
66568         * gnulib-tool (autoconf_minversion): If a --dir option is given and
66569         relevant, look for configure.ac there, not in the current directory.
66570         Also use a simple search for AC_PREREQ, not "autoconf --trace".
66571
66572 2006-07-29  Bruno Haible  <bruno@clisp.org>
66573
66574         * gnulib-tool (SORT): New variable.
66575         (func_usage): Undocument --assume-autoconf option.
66576         Remove --assume-autoconf option handling.
66577         (autoconf_minversion): Determine from the contents of configure.ac.
66578         (func_import): Remove autoconf_minversion handling.
66579         Suggested by Eric Blake.
66580
66581 2006-07-29  Bruno Haible  <bruno@clisp.org>
66582
66583         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
66584
66585 2006-07-29  Bruno Haible  <bruno@clisp.org>
66586
66587         * config/srclist.txt (*setenv.[ch]): Remove rules.
66588
66589 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66590
66591         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
66592
66593 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66594
66595         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
66596         arpa/inet.h.
66597
66598 2006-07-28  Simon Josefsson  <jas@extundo.com>
66599
66600         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
66601         * modules/inet_pton (Depends-on): Likewise.
66602
66603 2006-07-28  Simon Josefsson  <jas@extundo.com>
66604
66605         * m4/netinet_in_h.m4: New file.
66606
66607 2006-07-28  Simon Josefsson  <jas@extundo.com>
66608
66609         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
66610         #include's.
66611
66612 2006-07-28  Simon Josefsson  <jas@extundo.com>
66613
66614         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
66615         #include's.
66616
66617 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
66618
66619         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
66620         setgid on directories only if they set these bits.
66621         * lib/modechange.h: Remove obsolete comment about masks.
66622
66623 2006-07-28  Eric Blake  <ebb9@byu.net>
66624
66625         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
66626         macro expansion.
66627
66628 2006-07-28  Bruno Haible  <bruno@clisp.org>
66629
66630         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
66631
66632 2006-07-28  Bruno Haible  <bruno@clisp.org>
66633
66634         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
66635
66636 2006-07-28  Bruno Haible  <bruno@clisp.org>
66637
66638         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
66639         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
66640         Define fallbacks.
66641         Avoids link error on FreeBSD 4.x.
66642         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66643
66644         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
66645         encoding.
66646         * lib/mbswidth.c (iswcntrl): Likewise.
66647
66648 2006-07-27  Bruno Haible  <bruno@clisp.org>
66649
66650         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
66651         test.
66652
66653 2006-07-27  Bruno Haible  <bruno@clisp.org>
66654
66655         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
66656         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
66657         defined.
66658
66659 2006-07-26  Eric Blake  <ebb9@byu.net>
66660
66661         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
66662
66663 2006-07-26  Eric Blake  <ebb9@byu.net>
66664
66665         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
66666         like mingw that lack mkstemp.
66667         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
66668         avoid compilation warning on mingw.
66669
66670 2006-07-26  Bruno Haible  <bruno@clisp.org>
66671
66672         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
66673         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
66674         INT_FAST*_MIN, INTPTR_MIN.
66675
66676 2006-07-25  Bruno Haible  <bruno@clisp.org>
66677
66678         * modules/version-etc (Depends-on): Add stdarg.
66679
66680 2006-07-25  Bruno Haible  <bruno@clisp.org>
66681
66682         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
66683         complex commands.
66684
66685 2006-07-25  Bruno Haible  <bruno@clisp.org>
66686
66687         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
66688         defined in <stdarg.h> or config.h.
66689
66690 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66691
66692         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
66693         (gl_STDIO_SAFER): Remove.
66694
66695 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66696
66697         * MODULES.html.sh (File stream based Input/Output):
66698         Add fopen-safer, tmpfile-safer; remove stdio-safer.
66699         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
66700         * modules/fopen-safer, modules/tmpfile-safer: New files.
66701         * modules/stdio-safer: Remove.
66702
66703 2006-07-24  Bruno Haible  <bruno@clisp.org>
66704
66705         * modules/tmpdir: New file.
66706         * MODULES.html.sh (File system functions): Add it.
66707
66708 2006-07-24  Bruno Haible  <bruno@clisp.org>
66709
66710         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
66711         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
66712
66713 2006-07-24  Bruno Haible  <bruno@clisp.org>
66714
66715         * modules/clean-temp: New file.
66716
66717 2006-07-24  Bruno Haible  <bruno@clisp.org>
66718
66719         * m4/tmpdir.m4: New file, from GNU gettext.
66720
66721 2006-07-24  Bruno Haible  <bruno@clisp.org>
66722
66723         * lib/tmpdir.h: New file, from GNU gettext.
66724         * lib/tmpdir.c: New file, from GNU gettext.
66725
66726 2006-07-24  Bruno Haible  <bruno@clisp.org>
66727
66728         * lib/clean-temp.h: New file, from GNU gettext.
66729         * lib/clean-temp.c: New file, from GNU gettext.
66730
66731 2006-07-23  Eric Blake  <ebb9@byu.net>
66732
66733         * modules/stdio-safer (Files): Add tmpfile-safer.c.
66734         (Depends-on): Add binary-io.
66735
66736 2006-07-23  Eric Blake  <ebb9@byu.net>
66737
66738         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
66739
66740 2006-07-23  Eric Blake  <ebb9@byu.net>
66741
66742         * lib/tmpfile-safer.c: New file.
66743         * lib/stdio-safer.h (fopen_safer): Add prototype.
66744         * lib/stdio--.h (tmpfile): Make safer.
66745
66746 2006-07-23  Bruno Haible  <bruno@clisp.org>
66747
66748         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
66749         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
66750         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
66751         gl_linked_remove_at): Use it.
66752
66753 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66754         and Simon Josefsson <jas@extundo.com>
66755
66756         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
66757
66758         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
66759
66760 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66761
66762         * modules/close-stream: New file.
66763         * modules/closeout (Description): Make it clear that it exits
66764         with a diagnostic on error.
66765         (Depends-on): Add close-stream.  Remove fpending, stdbool.
66766         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
66767
66768 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66769
66770         * m4/close-stream.m4: New file.
66771
66772 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66773
66774         * lib/close-stream.c, lib/close-stream.h: New files.
66775
66776 2006-07-22  Bruno Haible  <bruno@clisp.org>
66777
66778         Merge from GNU gettext 0.15.
66779
66780         2006-05-01  Bruno Haible  <bruno@clisp.org>
66781
66782                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
66783
66784         2006-07-22  Bruno Haible  <bruno@clisp.org>
66785
66786                 * modules/javaversion: New file.
66787                 * MODULES.html.sh (Java): Add javaversion.
66788
66789         2006-03-12  Bruno Haible  <bruno@clisp.org>
66790
66791                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
66792
66793         2005-12-04  Bruno Haible  <bruno@clisp.org>
66794
66795                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
66796                 (untested).
66797
66798         2006-06-21  Bruno Haible  <bruno@clisp.org>
66799
66800                 Avoid warnings from recent versions of mcs.
66801                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
66802                 -o, -L, -r any more. Use options documented since mcs-1.0
66803                 instead. Similarly for -g.
66804
66805         2005-12-04  Bruno Haible  <bruno@clisp.org>
66806
66807                 * build-aux/csharpcomp.sh.in: Suffix for resources is
66808                 .resources, not .resource.
66809
66810         2005-07-09  Bruno Haible  <bruno@clisp.org>
66811
66812                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
66813                 add a .dll suffix.
66814                 Reported by Mark Junker <mjscod@gmx.de>.
66815
66816         2006-07-22  Bruno Haible  <bruno@clisp.org>
66817
66818                 * modules/gettext: Upgrade to gettext-0.15.
66819                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
66820                 m4/visibility.m4.
66821                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
66822
66823 2006-07-22  Bruno Haible  <bruno@clisp.org>
66824
66825         Merge from GNU gettext 0.15.
66826
66827         2006-03-25  Bruno Haible  <bruno@clisp.org>
66828
66829                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
66830
66831         2006-07-21  Bruno Haible  <bruno@clisp.org>
66832
66833                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
66834                 "1.1".
66835
66836         2006-05-09  Bruno Haible  <bruno@clisp.org>
66837
66838                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
66839                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
66840                 for the conftestver execution.
66841
66842         2006-05-01  Bruno Haible  <bruno@clisp.org>
66843
66844                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
66845                 optional target-version argument. Verify that the compiler
66846                 groks source of the specified source-version, or add -source
66847                 option as necessary. Verify that the compiler produces
66848                 bytecode in the specified target-version, or add -target and
66849                 -source options as necessary. Make the result of the test
66850                 available as variable CONF_JAVAC. Also log error output in
66851                 config.log.
66852
66853         2006-03-11  Bruno Haible  <bruno@clisp.org>
66854
66855                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
66856
66857         2006-05-09  Bruno Haible  <bruno@clisp.org>
66858
66859                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
66860                 CLASSPATH_SEPARATOR to a semicolon.
66861
66862         2006-03-12  Bruno Haible  <bruno@clisp.org>
66863
66864                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
66865                 available as variable CONF_JAVA, for subsequent autoconf
66866                 tests. Also log error output in config.log.
66867
66868         2006-07-19  Bruno Haible  <bruno@clisp.org>
66869
66870                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
66871                 that getline works on glibc2 systems. Needed to avoid trouble
66872                 in relocatable.c.
66873                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
66874
66875         2005-12-04  Bruno Haible  <bruno@clisp.org>
66876
66877                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
66878                 launcher (untested).
66879
66880         2005-12-04  Bruno Haible  <bruno@clisp.org>
66881
66882                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
66883
66884         2006-07-22  Bruno Haible  <bruno@clisp.org>
66885
66886                 * gettext.m4: Update from GNU gettext-0.15.
66887                 * nls.m4: Likewise.
66888                 * po.m4: Likewise.
66889                 * inttypes-pri.m4: Likewise.
66890                 * inttypes-h.m4: Renamed from inttypes.m4.
66891                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
66892
66893 2006-07-22  Bruno Haible  <bruno@clisp.org>
66894
66895         Merge from GNU gettext 0.15.
66896
66897         2005-07-05  Bruno Haible  <bruno@clisp.org>
66898
66899                 * printf-args.c (printf_fetchargs): Work around broken
66900                 definition of wint_t on mingw.
66901
66902         2005-02-12  Bruno Haible  <bruno@clisp.org>
66903
66904                 * xallocsa.h: Add extern "C" for C++.
66905
66906         2006-05-17  Bruno Haible  <bruno@clisp.org>
66907
66908                 Cygwin portability.
66909                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
66910
66911         2006-04-30  Bruno Haible  <bruno@clisp.org>
66912
66913                 * progreloc.c: Include <mach-o/dyld.h> if available.
66914                 (find_executable): Use _NSGetExecutablePath when possible.
66915
66916         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66917
66918                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
66919                 function.
66920
66921         2005-12-29  Bruno Haible  <bruno@clisp.org>
66922
66923                 * progreloc.c (set_program_name_and_installdir): Fix
66924                 compilation error.
66925
66926         2005-12-04  Bruno Haible  <bruno@clisp.org>
66927
66928                 Cygwin portability.
66929                 * progreloc.c: Include <windows.h> also on Cygwin.
66930                 (find_executable): Add support for Cygwin.
66931                 (set_program_name_and_installdir): Handle also platforms with
66932                 nonempty EXEEXT.
66933
66934         2006-07-11  Bruno Haible  <bruno@clisp.org>
66935
66936                 * javacomp.c: Fix a comment.
66937                 Reported by Jim Meyering.
66938
66939         2006-04-30  Bruno Haible  <bruno@clisp.org>
66940
66941                 * javacomp.h (compile_java_class): Add source_version,
66942                 target_version arguments.
66943                 * javacomp.c: Rewritten to choose only a compiler that
66944                 respects the specified source_version and target_version.
66945
66946         2006-06-27  Bruno Haible  <bruno@clisp.org>
66947
66948                 Assume correct S_ISDIR macro.
66949                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
66950
66951         2006-07-22  Bruno Haible  <bruno@clisp.org>
66952
66953                 * javaversion.h: New file, from GNU gettext.
66954                 * javaversion.c: New file, from GNU gettext.
66955                 * javaversion.java: New file, from GNU gettext.
66956                 * javaversion.class: New file, from GNU gettext.
66957
66958         2006-05-17  Bruno Haible  <bruno@clisp.org>
66959
66960                 Cygwin portability.
66961                 * javaexec.c (execute_java_class): Test for jview program
66962                 also on Cygwin.
66963
66964         2006-04-09  Bruno Haible  <bruno@clisp.org>
66965
66966                 * fatal-signal.c: Don't include string.h.
66967                 (at_fatal_signal): Use a copying loop instead of memcpy.
66968
66969         2005-12-04  Bruno Haible  <bruno@clisp.org>
66970
66971                 * csharpexec.c: Add support for 'clix' launcher (untested).
66972                 (execute_csharp_using_sscli): New function.
66973                 (execute_csharp_program): Call it.
66974
66975         2006-06-21  Bruno Haible  <bruno@clisp.org>
66976
66977                 Avoid warnings from recent versions of mcs.
66978                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
66979                 -o, -L, -r any more. Use options documented since mcs-1.0
66980                 instead. Similarly for -g.
66981
66982         2005-07-09  Bruno Haible  <bruno@clisp.org>
66983
66984                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
66985                 add a .dll suffix.
66986                 Reported by Mark Junker <mjscod@gmx.de>.
66987
66988         2006-06-17  Bruno Haible  <bruno@clisp.org>
66989
66990                 * config.charset: Update for NetBSD 3.0.
66991
66992         2006-05-17  Bruno Haible  <bruno@clisp.org>
66993
66994                 Cygwin portability.
66995                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
66996
66997         2006-05-16  Bruno Haible  <bruno@clisp.org>
66998
66999                 * localcharset.c [CYGWIN]: Include <windows.h>.
67000                 (get_charset_aliases): For Cygwin, return the same CPxxx
67001                 aliases list as under WIN32.
67002                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
67003                 the environment variables. Fall back to GetACP().
67004
67005         2006-04-05  Bruno Haible  <bruno@clisp.org>
67006
67007                 * config.charset: Update Juan Manuel Guerrero's address.
67008
67009         2005-02-12  Bruno Haible  <bruno@clisp.org>
67010
67011                 * allocsa.h: Add extern "C" for C++.
67012
67013         2005-02-10  Bruno Haible  <bruno@clisp.org>
67014
67015                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
67016                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
67017
67018         2006-07-22  Bruno Haible  <bruno@clisp.org>
67019
67020                 * gettext.h: Update to GNU gettext-0.15.
67021
67022 2006-07-22  Bruno Haible  <bruno@clisp.org>
67023
67024         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
67025         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
67026         lib-prefix.m4, longdouble.m4, ssize_t.m4.
67027
67028 2006-07-21  Eric Blake  <ebb9@byu.net>
67029
67030         * modules/stdlib-safer: New file.
67031         * MODULES.html.sh (File stream based Input/Output): Add
67032         stdlib-safer.
67033
67034 2006-07-21  Eric Blake  <ebb9@byu.net>
67035
67036         * lib/stdlib-safer.h: New file from coreutils, required by
67037         stdlib--.h.
67038
67039 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
67040
67041         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
67042
67043 2006-07-20  Bruno Haible  <bruno@clisp.org>
67044
67045         * gnulib-tool: Recognize new option --assume-autoconf.
67046         (autoconf_minversion): New variable.
67047         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
67048
67049 2006-07-20  Bruno Haible  <bruno@clisp.org>
67050
67051         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
67052
67053 2006-07-19  Derek R. Price  <derek@ximbiot.com>
67054
67055         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
67056         Reindent and repaginate.
67057
67058 2006-07-19  Derek Price  <derek@ximbiot.com>
67059
67060         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
67061         Correct grammar.
67062
67063 2006-07-17  Bruno Haible  <bruno@clisp.org>
67064
67065         * modules/list: New file.
67066         * modules/array-list: New file.
67067         * modules/carray-list, modules/carray-list-tests: New files.
67068         * modules/linked-list, modules/linked-list-tests: New files.
67069         * modules/avltree-list, modules/avltree-list-tests: New files.
67070         * modules/rbtree-list, modules/rbtree-list-tests: New files.
67071         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
67072         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
67073         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
67074         * modules/oset: New file.
67075         * modules/array-oset: New file.
67076         * modules/avltree-oset, modules/avltree-oset-tests: New files.
67077         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
67078         * tests/test-carray_list.c: New file.
67079         * tests/test-linked_list.c: New file.
67080         * tests/test-avltree_list.c: New file.
67081         * tests/test-rbtree_list.c: New file.
67082         * tests/test-linkedhash_list.c: New file.
67083         * tests/test-avltreehash_list.c: New file.
67084         * tests/test-rbtreehash_list.c: New file.
67085         * tests/test-avltree_oset.c: New file.
67086         * tests/test-rbtree_oset.c: New file.
67087         * MODULES.html.sh (Container data structures): New section.
67088
67089 2006-07-17  Bruno Haible  <bruno@clisp.org>
67090
67091         * m4/gl_list.m4: New file.
67092
67093 2006-07-17  Bruno Haible  <bruno@clisp.org>
67094
67095         * lib/gl_list.h: New file.
67096         * lib/gl_list.c: New file.
67097         * lib/gl_array_list.h: New file.
67098         * lib/gl_array_list.c: New file.
67099         * lib/gl_carray_list.h: New file.
67100         * lib/gl_carray_list.c: New file.
67101         * lib/gl_linked_list.h: New file.
67102         * lib/gl_linked_list.c: New file.
67103         * lib/gl_anylinked_list1.h: New file.
67104         * lib/gl_anylinked_list2.h: New file.
67105         * lib/gl_avltree_list.h: New file.
67106         * lib/gl_avltree_list.c: New file.
67107         * lib/gl_anyavltree_list1.h: New file.
67108         * lib/gl_anyavltree_list2.h: New file.
67109         * lib/gl_rbtree_list.h: New file.
67110         * lib/gl_rbtree_list.c: New file.
67111         * lib/gl_anyrbtree_list1.h: New file.
67112         * lib/gl_anyrbtree_list2.h: New file.
67113         * lib/gl_anytree_list1.h: New file.
67114         * lib/gl_anytree_list2.h: New file.
67115         * lib/gl_linkedhash_list.h: New file.
67116         * lib/gl_linkedhash_list.c: New file.
67117         * lib/gl_anyhash_list1.h: New file.
67118         * lib/gl_anyhash_list2.h: New file.
67119         * lib/gl_avltreehash_list.h: New file.
67120         * lib/gl_avltreehash_list.c: New file.
67121         * lib/gl_rbtreehash_list.h: New file.
67122         * lib/gl_rbtreehash_list.c: New file.
67123         * lib/gl_anytreehash_list1.h: New file.
67124         * lib/gl_anytreehash_list2.h: New file.
67125
67126         * lib/gl_oset.h: New file.
67127         * lib/gl_oset.c: New file.
67128         * lib/gl_array_oset.h: New file.
67129         * lib/gl_array_oset.c: New file.
67130         * lib/gl_avltree_oset.h: New file.
67131         * lib/gl_avltree_oset.c: New file.
67132         * lib/gl_rbtree_oset.h: New file.
67133         * lib/gl_rbtree_oset.c: New file.
67134         * lib/gl_anytree_oset.h: New file.
67135
67136 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67137
67138         * m4/mkancesdirs.m4: New file.
67139         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
67140         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
67141         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
67142         it.
67143
67144 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67145
67146         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
67147         * lib/mkancesdirs.h: New files.
67148         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
67149         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
67150         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
67151         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
67152         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
67153         callers changed.  Revamp internals significantly, by not
67154         attempting to create directories that are temporarily more
67155         permissive than the final results.  Do not attempt to use
67156         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
67157         This removes some race conditions, fixes some bugs, and simplifies
67158         things.  Use new dirchownmod function to do owner and mode changes.
67159         * lib/mkdir-p.h: Likewise.
67160         * lib/modechange.c (octal_to_mode): New function.
67161         (struct mode_change): New member mentioned.
67162         (make_node_op_equals): New arg mentioned.  All callers changed.
67163         (mode_compile): Keep track of which mode bits the user has explicitly
67164         mentioned.
67165         (mode_adjust): New arg DIR, so that we implement the X op correctly.
67166         New arg PMODE_BITS, to keep track of which mode bits the user
67167         mentioned; it treats S_ISUID and S_ISGID speciall.
67168         All callers changed.
67169         * lib/modechange.h: Likewise.
67170
67171 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67172
67173         * MODULES.html.sh: Add mkancestors.
67174         * modules/mkancesdirs: New module.
67175         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
67176         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
67177         The chdir-safer and afs files are now orphans; I'll remove them
67178         unless someone speaks up.
67179         Add lib/dirchownmod.c, lib/dirchownmod.h.
67180         (Depends-on): Remove alloca, chown, save-cwd, dirname.
67181         Add lchown, mkancesdirs.
67182         (Maintainer): Add self.
67183
67184 2006-07-15  Karl Berry  <karl@gnu.org>
67185
67186         * gnulib-tool: help message wording/arrangement.
67187
67188 2006-07-14  Simon Josefsson  <jas@extundo.com>
67189
67190         * doc/gnulib.texi (Libtool and Windows): New section.
67191
67192 2006-07-12  Simon Josefsson  <jas@extundo.com>
67193
67194         * modules/gendocs (License): Fix license, approved by Karl.
67195
67196 2006-07-12  Eric Blake  <ebb9@byu.net>
67197
67198         * MODULES.html.sh: Add gendocs.
67199
67200 2006-07-11  Eric Blake  <ebb9@byu.net>
67201
67202         * modules/fdl: New module, to install doc/fdl.texi.
67203         * MODULES.html.sh: Add new section for documentation modules.
67204         * gnulib-tool: Avoid space-tab.
67205         (--doc-base): New option, to manage files from doc.
67206
67207 2006-07-11  Eric Blake  <ebb9@byu.net>
67208
67209         * m4/absolute-header.m4: Fix comments to match recent change.
67210
67211 2006-07-11  Eric Blake  <ebb9@byu.net>
67212
67213         * gnulib-tool: List --doc-base before --tests-base.
67214
67215 2006-07-11  Derek R. Price  <derek@ximbiot.com>
67216
67217         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
67218
67219 2006-07-11  Bruno Haible  <bruno@clisp.org>
67220
67221         * README: Mention where to put documentation.
67222
67223 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67224
67225         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
67226
67227 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
67228
67229         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
67230         to stdint.m4.
67231
67232 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
67233
67234         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
67235         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
67236         "no/such/file/stdint.h" when there is no such file, so that
67237         the resulting C code can be parsed by dodgy compilers.
67238         Problems reported by Bob Proulx.
67239
67240 2006-07-10  Derek R. Price  <derek@ximbiot.com>
67241
67242         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
67243         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
67244         macros into the GNU _D_EXACT_NAMLEN.
67245         * lib/savedir.c:  Likewise.
67246         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
67247
67248 2006-07-10  Derek R. Price  <derek@ximbiot.com>
67249         and Paul Eggert  <eggert@cs.ucla.edu>
67250
67251         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
67252         * m4/savedir.m4:
67253         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
67254         macros into the GNU _D_EXACT_NAMLEN.
67255
67256 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67257
67258         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
67259         around the absolute name, to work around a problem with the HP-UX
67260         11.23 native C compiler, reported by Bob Proulx.
67261
67262 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67263
67264         * doc/maintain.texi, make-stds.texi: Sync from
67265         <http://savannah.gnu.org/projects/gnustandards>.
67266
67267 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67268
67269         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
67270
67271 2006-07-09  Jim Meyering  <jim@meyering.net>
67272
67273         * m4/glob.m4: Remove a doubled word in a comment.
67274
67275 2006-07-09  Jim Meyering  <jim@meyering.net>
67276
67277         * lib/argp-pv.c: Remove a doubled word in a comment.
67278         * lib/check-version.c (check_version): Likewise.
67279         * lib/javacomp.c (compile_java_class): Likewise.
67280
67281 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
67282
67283         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
67284         for the benefit of people using Autoconf 2.60.  If you want to
67285         support older Autoconf versions you can copy m4/onceonly_2_57.m4
67286         (or m4/onceonly.m4, if pre-2.57) manually.
67287
67288 2006-07-08  Jim Meyering  <jim@meyering.net>
67289
67290         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
67291         comment.
67292         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
67293         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
67294         comment.
67295
67296 2006-07-08  Jim Meyering  <jim@meyering.net>
67297
67298         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
67299
67300 2006-07-07  Simon Josefsson  <jas@extundo.com>
67301
67302         * tests/test-crc.c: Change expected crc value, the test vector
67303         were probably computed using the old broken crc.c?
67304
67305 2006-07-06  Simon Josefsson  <jas@extundo.com>
67306
67307         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
67308         now the canonical place for the M4 file).
67309
67310         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
67311         from the sys_socket dependency now.
67312
67313         * modules/inet_pton (Files): Ditto.
67314
67315         * modules/inet_ntop (Files): Ditto.
67316
67317 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67318
67319         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
67320         not gl_PREREQ_GETUSERSHELL.
67321
67322 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67323
67324         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
67325         with only one argument, for Autoconf 2.60.
67326         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
67327         expand to nothing, so add a shell command to avoid syntax error.
67328         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
67329
67330 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67331
67332         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
67333
67334 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67335
67336         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
67337         no longer needed.  Check for isblank decl.
67338         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
67339         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
67340         of existence.
67341
67342 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67343
67344         * lib/getloadavg.c: Use __VMS, not VMS.
67345         * lib/getopt.c: Likewise.
67346         * lib/getpagesize.h: Likewise.
67347         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
67348         and probably does not work.
67349
67350 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67351
67352         * lib/.cppi-disable: Add wcwidth.
67353         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
67354         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
67355         (ISGRAPH): Remove.  All uses changed to isgraph.
67356         (FOLD) [!defined _LIBC]: Remove special case.
67357         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
67358         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
67359         HAVE_ISBLANK.
67360         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
67361         case.
67362
67363 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
67364
67365         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
67366         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
67367         brackets.  Other minor changes to suppress some compiler
67368         warnings.
67369
67370 2006-07-06  Derek R. Price  <derek@ximbiot.com>
67371         and Paul Eggert  <eggert@cs.ucla.edu>
67372
67373         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
67374         of invoking obsolescent AC_HEADER_DIRENT macro.
67375         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
67376         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
67377         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
67378         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
67379         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
67380         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
67381         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
67382         * m4/readdir.m4: Remove; no longer needed.
67383
67384 2006-07-06  Derek R. Price  <derek@ximbiot.com>
67385         and Paul Eggert  <eggert@cs.ucla.edu>
67386
67387         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
67388         Don't worry about this obsolete case any more.
67389         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
67390         directories.
67391         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
67392         worry about this obsolete case any more.
67393         * lib/fts.c: Likewise.
67394         * lib/getcwd.c: Likewise.
67395         * lib/glob.h: Likewise.
67396         * lib/savedir.c: Likewise.
67397
67398 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67399
67400         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
67401         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
67402         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
67403         needed.
67404         All uses removed.
67405         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67406         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
67407         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
67408         needed.
67409         * m4/getdate.m4 (gl_GETDATE): Likewise.
67410         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
67411         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
67412         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
67413         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67414         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
67415         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67416         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
67417         needed.
67418
67419 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67420
67421         * lib/memcasecmp.c: Include <limits.h>.
67422         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
67423         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
67424         Don't assume isdigit succeeds only on '0' through '9'.
67425
67426 2006-07-05  Eric Blake  <ebb9@byu.net>
67427
67428         * modules/getaddrinfo (Depends-on): Add snprintf.
67429
67430 2006-07-05  Eric Blake  <ebb9@byu.net>
67431
67432         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
67433         to avoid 'header present but could not be compiled' on cygwin.
67434
67435 2006-07-05  Eric Blake  <ebb9@byu.net>
67436
67437         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
67438         missing from netdb.h.
67439         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
67440
67441 2006-07-05  Derek R. Price  <derek@ximbiot.com>
67442
67443         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
67444         no longer needed.
67445         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
67446         * m4/getdate.m4 (gl_GETDATE): Likewise.
67447         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
67448         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
67449         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
67450         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67451         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67452
67453 2006-07-05  Derek R. Price  <derek@ximbiot.com>
67454
67455         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
67456         All uses of is_space replaced by isspace.
67457         * lib/exit.h: Don't talk about STDC_HEADERS.
67458         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
67459         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
67460         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
67461         replaced by isprint etc.
67462         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
67463         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
67464         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
67465         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
67466         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
67467         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
67468
67469 2006-07-05  Bruno Haible  <bruno@clisp.org>
67470
67471         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
67472         the function exists, before testing against AIX.
67473         Reported by Martin Lambers <marlam@marlam.de>.
67474
67475 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
67476
67477         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
67478         From Mark D. Baushke.
67479
67480 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
67481
67482         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
67483         to the absolute name, not just one, to bypass Sun C 5.8's
67484         "warning: #include of /usr/include/... may be non-portable".
67485
67486 2006-07-04  Eric Blake  <ebb9@byu.net>
67487
67488         * modules/dirname-tests: New test module.
67489         * tests/test-dirname.c: New file, replacing dirname.c
67490         TEST_DIRNAME section that was recently deleted.
67491
67492 2006-07-04  Bruno Haible  <bruno@clisp.org>
67493
67494         Assume ANSI C header files and <ctype.h> functions.
67495         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
67496         (mbsnwidth): Use isprint, iscntrl instead.
67497
67498 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67499
67500         Merge from coreutils.
67501         * MODULES.html.sh: Add xstrtold.
67502         * modules/xstrtold: New file.
67503         * modules/cycle-check (Files): Add lib/same-inode.h.
67504         * modules/dirname (Files): Add m4/double-slash-root.m4.
67505         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
67506         * modules/mkdir-p (Files): Add lib/same-inode.h.
67507         * modules/same (Files): Add lib/same-inode.h.
67508
67509 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67510
67511         * m4/absolute-header.m4: Renamed from full-header-path.m4.
67512         This is to keep the terminology clean; POSIX talks about
67513         "absolute pathnames", not "full pathnames", but the GNU
67514         Coding Standards say to use "path" for something else;
67515         so use "absolute" to keep both sides happy.
67516         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
67517         Set gl_absolute_header, not gl_full_header_path.
67518         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
67519         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
67520         All uses changed.
67521
67522         Merge from coreutils.
67523
67524         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
67525
67526         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
67527         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
67528         want to require the building of c-strtod.o.
67529         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
67530         needs -lm directly.
67531         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
67532
67533         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
67534
67535         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
67536         --as-needed option if available.  Problem reported by Albert Chin in
67537         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
67538         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
67539         cc merely issues a bunch of annoying warnings for --as-needed
67540         (this problem was reported by Bob Proulx).  Also, try linking with
67541         -lm to detect a bug in binutils 2.16 (this problem was reported
67542         by Ralf Wildenhues).
67543
67544         2006-06-18  Jim Meyering  <jim@meyering.net>
67545
67546         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
67547         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
67548         macro.
67549         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
67550         also check for glibc-2.4's abort-inducing bug.
67551
67552         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
67553         Low-probability clean-up should be to use rmdir to get rid of
67554         the just-created directory, not unlink.
67555
67556         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
67557         configure fail, and request a bug report to inform us about it.
67558         Add a comment that, barring reports to the contrary, in 2007 we'll
67559         assume ftruncate is universally available.
67560
67561         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
67562
67563         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
67564
67565         2006-03-12  Jim Meyering  <jim@meyering.net>
67566
67567         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
67568         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
67569         * m4/same.m4 (gl_SAME): Likewise.
67570         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
67571
67572         2006-03-11  Eric Blake  <ebb9@byu.net>
67573
67574         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
67575         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
67576         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
67577         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
67578
67579 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67580
67581         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
67582         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
67583         reported by Mark D. Baushke, one in
67584         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
67585
67586         Merge from coreutils.
67587
67588         * lib/.cppi-disable: Add stdint_.h.
67589         * lib/.cvsignore: Add stdint.h.
67590
67591         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
67592
67593         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
67594         both double and long double versions.
67595         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
67596         * lib/xstrtold.c: New file.
67597         * lib/xstrtod.h (xstrtold): New decl.
67598
67599         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
67600
67601         * lib/filemode.c (setst): Remove.
67602         (strmode): Rewrite to avoid setst.  This makes the code shorter,
67603         (arguably) clearer, and the generated code is a bit smaller on my
67604         Debian GNU/Linux stable x86 host.
67605
67606         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
67607
67608         * lib/filemode.c: Include "filemode.h" first, to test the interface.
67609         Assume that filemode.h includes sys/types.h and sys/stat.h.
67610         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
67611         (ftypelet): Reorder to put common cases first, for efficiency.
67612         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
67613         to do 'M'.
67614         (strmode): Renamed from mode_string, and now stores 12 bytes instead
67615         of 10, for compatibility with FreeBSD.  All callers changed.
67616         (filemodestring): Now stores 12 bytes instead of 10, and sets file
67617         types that can't be deduced solely from st_mode.  First arg is now a
67618         const pointer.
67619         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
67620         (strmode): Renamed from mode_string.
67621         (filemodestring): New decl.
67622         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
67623         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
67624         needed.
67625         (S_ISPORT, S_ISWHT): New macros, if not already defined.
67626
67627         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
67628
67629         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
67630         fsusage.h now does that.  Include fsusage.h first, to test interface.
67631         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
67632         at most one method (the old code could have generated decls that
67633         didn't conform to C89, not that this was ever exercised).
67634         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
67635
67636         2006-03-19  Jim Meyering  <jim@meyering.net>
67637
67638         Work even in a chroot where d_ino values for entries in "/"
67639         don't match the stat.st_ino values for the same names.
67640         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
67641         number, iterate through all entries again, using lstat instead.
67642         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
67643         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
67644
67645         * lib/getcwd.c (__getcwd): Clarify a comment.
67646         Use memcpy in place of a call to strcpy.
67647
67648         2006-03-12  Jim Meyering  <jim@meyering.net>
67649
67650         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
67651         matches that of the current directory (which we're about to chdir ".."
67652         out of), then save the dev-ino of the parent, instead.
67653
67654         * lib/same-inode.h (SAME_INODE): New file/macro.
67655         * lib/chdir-safer.c (SAME_INODE): Remove definition.
67656         Include "same-inode.h", instead.
67657         * lib/same.c: Likewise.
67658         * lib/cycle-check.h: Include "same-inode.h".
67659         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
67660         * lib/cycle-check.c (SAME_INODE): Remove definition.
67661         * lib/root-dev-ino.h: Include "same-inode.h".
67662
67663         2006-03-11  Eric Blake  <ebb9@byu.net>
67664
67665         * lib/same.c (same_name): s/base_name/last_component/
67666         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
67667         * lib/filenamecat.c (file_name_concat): Likewise.
67668
67669         2006-03-11  Eric Blake  <ebb9@byu.net>,
67670                     Paul Eggert  <eggert@cs.ucla.edu>
67671
67672         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
67673         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
67674         drive prefix.
67675         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
67676         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
67677         (last_component): New method.
67678         * lib/dirname.c (dir_len): Determine when drive letters need a
67679         subsequent slash.  Preserve // when it is special.
67680         (dir_name): Don't append dot when drive letter is absolute.
67681         [TEST_DIRNAME]: Move into a full-blown gnulib test.
67682         * lib/basename.c (base_name): New semantics - malloc the result.
67683         Preserve // when it is special.  Preserve relative files that look
67684         like drive letters.
67685         (base_len): Preserve // when it is special.
67686         (last_component): New method, similar to old base_name semantics.
67687         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
67688         base_name.  Strip redundant slashes from ///.
67689
67690 2006-07-03  Jim Meyering  <jim@meyering.net>
67691
67692         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
67693         macro is used before the first cycle_check call.
67694
67695 2006-07-03  Eric Blake  <ebb9@byu.net>
67696
67697         * modules/dirname (Depends-on): Add xstrndup.
67698
67699 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67700
67701         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
67702         test cases, so that config.log is a bit easier to follow.
67703
67704 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67705
67706         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
67707         both are 64 bits, since this seems to be the tradition, and this
67708         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
67709         we ever run into a host that prefers long long to long in this
67710         case, we'll need another configure-time test.  Problem reported by
67711         Jim Meyering.
67712
67713 2006-07-02  Eric Blake  <ebb9@byu.net>
67714
67715         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
67716
67717 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67718
67719         * modules/inttypes (Depends-on): No longer depends on stdint.
67720         * modules/stdint (Description): Say more about assumptions.
67721         Say that the fast types might differ.  Say macros are used.
67722         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
67723         (Makefile.am): Revise list of substituted symbols to match
67724         new stdint.m4.
67725         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
67726         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
67727         * tests/test-stdint.c (verify_same_types)
67728         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
67729         the code conforms to C99/C89.
67730         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
67731         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
67732
67733 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67734
67735         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
67736         but fix a bug, by requiring at least 64 bits.
67737         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
67738         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
67739         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
67740         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
67741
67742         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
67743         changes.  Make 2.59 a prerequisite.  Check and substitute for
67744         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
67745         inttypes.h.  Do not use special include files; just use the
67746         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
67747         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
67748         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
67749         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
67750         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
67751         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
67752         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
67753         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
67754         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
67755         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
67756         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
67757         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
67758         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
67759         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
67760         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
67761         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
67762         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
67763         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
67764         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
67765         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
67766         WINT_MAX.  Check for C99 conformance more strictly, by detecting
67767         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
67768         not check for things that C99 does not require, e.g., int8_t.  If
67769         a test isn't needed unless <stdint.h> isn't working, and is
67770         unlikely to be needed for any other reason, then don't do it
67771         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
67772         size_t, since we assume C89 freestanding at least.  Do not check
67773         for sig_atomic_t, wchar_t, or wint_t, since the code now does
67774         the right thing even if the types are not defined.  Instead use:
67775         (gl_STDINT_TYPE_PROPERTIES): New macro.
67776         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
67777         testing whether <sys/types.h> clashes, as Autoconf does this for
67778         us now.  All uses removed.
67779         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
67780         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
67781         (gl_CHECK_TYPE_SAME):
67782         Remove; no longer needed.
67783         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
67784         exists, since we'll return 0 anyway in that case.
67785         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
67786
67787 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67788
67789         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
67790         possible collision with system files.
67791         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
67792         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
67793         WCHAR_MIN and WCHAR_MAX in this case.
67794         (<stddef.h>): Do not include; no longer needed.
67795         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
67796         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
67797         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
67798         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
67799         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
67800         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
67801         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
67802         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
67803         !defined(__c99))]: Include in this case too, since it's harmless
67804         now.
67805         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
67806         dangerous to do so.
67807         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
67808         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
67809         (_STDINT_MIN, _STDINT_MAX): New macros.
67810         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
67811         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
67812         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
67813         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
67814         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
67815         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
67816         macros, not typedefs; this simplifies things quite a bit.
67817         Use long int for all types narrower than int64_t.
67818         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
67819         Define in terms of long long int or int64_t or long int,
67820         not int64_t or int32_t.  This saves some compile-time testing.
67821         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
67822         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
67823         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
67824         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
67825         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
67826         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
67827         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
67828         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
67829         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
67830         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
67831         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
67832         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
67833         undef any previous version and define our own version, for
67834         simplicity and consistency with the new macros for types.
67835         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
67836         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
67837         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
67838         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
67839         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
67840         @WINT_T_SUFFIX@ to keep things simple here.
67841         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
67842         Simplify by assuming typical 8/16/32/64 host, since we're
67843         already doing that elsewhere anyway.
67844         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
67845         and assume long long int is 64 bits if available.  This
67846         speeds up 'configure'.
67847
67848 2006-07-01  Eric Blake  <ebb9@byu.net>
67849
67850         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
67851         Reported by Andreas Buening.
67852
67853 2006-07-01  Eric Blake  <ebb9@byu.net>
67854
67855         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
67856
67857 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
67858
67859         * lib/getaddrinfo.c: fixed typo
67860
67861 2006-06-29  Jim Meyering  <jim@meyering.net>
67862
67863         * modules/strftime (Maintainer): Add my name, since with the
67864         FPRINTFTIME changes strftime.c has forked from glibc.
67865
67866 2006-06-29  Eric Blake  <ebb9@byu.net>
67867
67868         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
67869
67870 2006-06-29  Eric Blake  <ebb9@byu.net>
67871
67872         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
67873
67874 2006-06-29  Eric Blake  <ebb9@byu.net>
67875
67876         * lib/stat_.h: New file.
67877
67878 2006-06-29  Eric Blake  <ebb9@byu.net>
67879
67880         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
67881         unused static function.
67882
67883 2006-06-29  Eric Blake  <ebb9@byu.net>
67884
67885         * doc/functions.texi (Function Portability): Document missing lstat
67886         on mingw.
67887
67888 2006-06-29  Eric Blake  <ebb9@byu.net>
67889
67890         * MODULES.html.sh: Add sys_stat.
67891         * modules/sys_stat: New module.
67892         * modules/mkstemp (Depends-on): Add sys_stat.
67893
67894 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67895
67896         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
67897
67898 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67899
67900         * m4/c-bs-a.m4: Removed.
67901
67902 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67903
67904         * lib/strftime.c: Assume strftime() exists.
67905
67906 2006-06-29  Derek Price  <derek@ximbiot.com>
67907
67908         * modules/c-bs-a: Removed - \a is C89.
67909         * MODULES.html.sh: Remove c-bs-a.
67910
67911 2006-06-29  Bruno Haible  <bruno@clisp.org>
67912
67913         * modules/wcwidth (License): Change to LGPL.
67914
67915 2006-06-28  Simon Josefsson  <jas@extundo.com>
67916
67917         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
67918         on _WIN32.
67919
67920         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
67921         getnameinfo.
67922
67923 2006-06-28  Simon Josefsson  <jas@extundo.com>
67924
67925         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
67926
67927 2006-06-28  Simon Josefsson  <jas@extundo.com>
67928
67929         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
67930         functions there.  It will succeed on Windows XP, but on Windows
67931         2000 and (presumably) earlier, it will fail, and use the internal
67932         re-implementation.
67933         (use_win32_p): New function.
67934         (getaddrinfo): Use strtoul on servname, to support numeric ports.
67935         Support AI_NUMERICSERV to disable getservbyname.
67936         (getnameinfo): New function, only supports
67937         NI_NUMERICHOST|NI_NUMERICSERV for now.
67938
67939         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
67940         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
67941         getnameinfo.
67942
67943 2006-06-28  Eric Blake  <ebb9@byu.net>
67944
67945         * modules/wcwidth: New file.
67946         * modules/mbchar (Depends-on): Add wcwidth.
67947         * modules/mbswidth (Depends-on): Add wcwidth.
67948         * MODULES.html.sh: Add wcwidth.
67949
67950 2006-06-28  Eric Blake  <ebb9@byu.net>
67951
67952         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
67953         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
67954
67955 2006-06-28  Eric Blake  <ebb9@byu.net>
67956
67957         * lib/xvasprintf.h: Fix comments.
67958
67959 2006-06-28  Eric Blake  <ebb9@byu.net>
67960
67961         * lib/mbchar.h (wcwidth): Include wcwidth.h.
67962         * lib/mbswidth.c (wcwidth): Move from here...
67963         * lib/wcwidth.h: ...to this new file.
67964
67965 2006-06-28  Derek R. Price  <derek@ximbiot.com>
67966
67967         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
67968
67969         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
67970         it's obsolete.
67971         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
67972
67973 2006-06-28  Derek R. Price  <derek@ximbiot.com>
67974
67975         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
67976         Autoconf 2.60 says this stuff was obsolete.
67977
67978 2006-06-28  Bruno Haible  <bruno@clisp.org>
67979
67980         * modules/wcwidth (Files): Add m4/wchar_t.m4.
67981
67982 2006-06-28  Bruno Haible  <bruno@clisp.org>
67983
67984         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
67985         gt_TYPE_WCHAR_T.
67986
67987 2006-06-28  Bruno Haible  <bruno@clisp.org>
67988
67989         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
67990         declaration for wcwidth.
67991         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
67992
67993 2006-06-28  Bruno Haible  <bruno@clisp.org>
67994
67995         * lib/mkdtemp.c [MINGW]: Include <io.h>.
67996         (mkdir): Define using _mkdir.
67997
67998 2006-06-28  Bruno Haible  <bruno@clisp.org>
67999
68000         * lib/getaddrinfo.h: Fix POSIX URL.
68001         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
68002         _WIN32.
68003         (use_win32_p): Make static.
68004         (getaddrinfo): Reject service name if it is empty or does not consist
68005         solely of decimal digits, or if its value is > 65535.
68006         (getnameinfo): Remove useless casts.
68007
68008 2006-06-27  Simon Josefsson  <jas@extundo.com>
68009
68010         * modules/sys_select: New file, suggested by Bruno Haible, Paul
68011         Eggert and Martin Lambers.
68012
68013 2006-06-27  Simon Josefsson  <jas@extundo.com>
68014
68015         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
68016         Eggert and Martin Lambers.
68017
68018 2006-06-27  Bruno Haible  <bruno@clisp.org>
68019
68020         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
68021         result to 0, not to empty.
68022         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
68023
68024 2006-06-27  Bruno Haible  <bruno@clisp.org>
68025
68026         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
68027
68028 2006-06-26  Simon Josefsson  <jas@extundo.com>
68029
68030         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
68031         present.
68032
68033 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
68034
68035         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
68036         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
68037         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
68038
68039 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
68040
68041         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
68042
68043 2006-06-26  Bruno Haible  <bruno@clisp.org>
68044
68045         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
68046
68047 2006-06-26  Bruno Haible  <bruno@clisp.org>
68048
68049         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
68050
68051 2006-06-26  Bruno Haible  <bruno@clisp.org>
68052
68053         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
68054         SGI C compiler in pre-C99 mode.
68055         Suggested by Mark D. Baushke and Larry Jones.
68056
68057 2006-06-26  Bruno Haible  <bruno@clisp.org>
68058
68059         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
68060         WCHAR_MAX.
68061         Reported by Mark D. Baushke and Larry Jones.
68062
68063 2006-06-26  Bruno Haible  <bruno@clisp.org>
68064
68065         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
68066         in pre-C99 mode.
68067         Suggested by Mark D. Baushke and Larry Jones.
68068
68069 2006-06-23  Simon Josefsson  <jas@extundo.com>
68070             Bruno Haible  <bruno@clisp.org>
68071
68072         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
68073         Emit mostlyclean-local rule.
68074         (func_emit_tests_Makefile_am): Likewise.
68075         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
68076
68077 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
68078
68079         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
68080
68081 2006-06-23  Bruno Haible  <bruno@clisp.org>
68082
68083         * tests/test-stdint.c: Update to match ISO C 99 Technical
68084         Corrigendum 1.
68085
68086 2006-06-23  Bruno Haible  <bruno@clisp.org>
68087
68088         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
68089
68090 2006-06-23  Bruno Haible  <bruno@clisp.org>
68091
68092         * lib/stdint_.h: Treat IRIX like OpenBSD.
68093
68094 2006-06-23  Bruno Haible  <bruno@clisp.org>
68095
68096         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
68097         ISO C 99 Technical Corrigendum 1.
68098
68099 2006-06-22  Simon Josefsson  <jas@extundo.com>
68100
68101         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
68102         MinGW.
68103
68104 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68105
68106         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
68107         needed.  Some compiler complained about some of them.  Problem reported
68108         by Larry Jones in
68109         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
68110
68111 2006-06-21  Simon Josefsson  <jas@extundo.com>
68112
68113         * tests/test-getaddrinfo.c: New file.
68114
68115         * modules/getaddrinfo-tests: New file.
68116
68117         * MODULES.html.sh: Add inet_pton.
68118
68119         * modules/inet_pton: New file.
68120
68121 2006-06-21  Simon Josefsson  <jas@extundo.com>
68122
68123         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
68124         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
68125         of using the (limited) gnulib implementation on Windows XP.
68126
68127         * m4/inet_pton.m4: New file.
68128
68129 2006-06-21  Simon Josefsson  <jas@extundo.com>
68130
68131         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
68132         variable.
68133
68134         * lib/socket_.h: Don't define WINVER.
68135
68136         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
68137         slightly modified to work in gnulib.
68138
68139 2006-06-21  Simon Josefsson  <jas@extundo.com>
68140
68141         * doc/gnulib.texi (Windows sockets): Add.
68142
68143 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
68144
68145         * lib/read-file.c (fread_file): Start with buffer allocation of
68146         0 bytes rather than 1 byte; this simplifies the code.
68147         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
68148         code to free buffer and save/restore errno.
68149         (internal_read_file): Remove unused local.
68150
68151 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
68152
68153         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
68154         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
68155         Problem reported by Denis Excoffier in
68156         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
68157
68158 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68159
68160         * modules/sys_socket, modules/socklen: Include sys/types since
68161         FreeBSD 4.x's sys/socket.h needs it.
68162
68163 2006-06-19  Simon Josefsson  <jas@extundo.com>
68164
68165         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
68166
68167 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
68168
68169         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
68170
68171 2006-06-19  Bruno Haible  <bruno@clisp.org>
68172
68173         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
68174         and FULL_PATH_INTTYPES_H in angle brackets.
68175         Reported by Mark D. Baushke <mdb@gnu.org>.
68176
68177 2006-06-17  Eric Blake  <ebb9@byu.net>
68178
68179         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
68180         errno.
68181
68182 2006-06-17  Bruno Haible  <bruno@clisp.org>
68183
68184         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
68185         <sys/inttypes.h>.
68186
68187 2006-06-17  Bruno Haible  <bruno@clisp.org>
68188
68189         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
68190         whether errno is declared. Assume <errno.h> declares errno.
68191
68192 2006-06-17  Bruno Haible  <bruno@clisp.org>
68193
68194         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
68195
68196 2006-06-17  Bruno Haible  <bruno@clisp.org>
68197
68198         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
68199         problem on Solaris 2.5.1.
68200
68201 2006-06-16  Eric Blake  <ebb9@byu.net>
68202
68203         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
68204         * lib/unicodeio.c [!defined errno]: Likewise.
68205         * lib/strtol.c [!defined errno]: Likewise.
68206         * lib/strtod.c [!defined errno]: Likewise.
68207
68208 2006-06-15  Eric Blake  <ebb9@byu.net>
68209
68210         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
68211
68212 2006-06-15  Eric Blake  <ebb9@byu.net>
68213
68214         * config/srclist.txt (ssize_t.m4): Lose sync.
68215
68216 2006-06-15  Bruno Haible  <bruno@clisp.org>
68217
68218         * modules/stdint (Files): Include m4/full-header-path.m4,
68219         m4/size_max.m4, m4/wchar_t.m4.
68220         (Makefile.am): Many more substitutions.
68221         * modules/stdint-tests: New file.
68222         * tests/test-stdint.c: New file.
68223
68224 2006-06-15  Bruno Haible  <bruno@clisp.org>
68225
68226         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
68227         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
68228         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
68229         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
68230         gl_CHECK_TYPE_SAME): New macros.
68231
68232 2006-06-15  Bruno Haible  <bruno@clisp.org>
68233
68234         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
68235
68236 2006-06-15  Bruno Haible  <bruno@clisp.org>
68237
68238         * lib/stdint_.h: Rewritten to be fully auto-configured.
68239         Fixes bug on HP-UX/IA64.
68240
68241 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
68242
68243         * lib/getdate.y (__attribute__): Don't define if already defined.
68244         Problem reported by Larry Jones.
68245         * lib/utimens.c (__attribute__): Likewise.
68246
68247 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
68248
68249         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
68250         reported by Andreas Schwab.
68251
68252 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68253             Bruno Haible  <bruno@clisp.org>
68254
68255         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
68256         check for the declaration of strnlen and a run test that exposes the
68257         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
68258         rpl_strndup.
68259
68260 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68261             Bruno Haible  <bruno@clisp.org>
68262
68263         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
68264
68265 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68266
68267         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
68268         compile test, for Tru64 4.0D.
68269
68270 2006-05-28  Karl Berry  <karl@gnu.org>
68271
68272         * config/srclist.txt (printf-args.c): lose sync.
68273
68274 2006-05-26  Martin Lambers  <marlam@marlam.de>
68275
68276         * lib/getpass.c: Updates the test for the native W32 API, and adds
68277         missing includes, thus fixing compilation warnings.
68278
68279 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
68280
68281         * lib/exclude.c (exclude_fnmatch): New function.
68282         (excluded_file_name): Call exclude_fnmatch.
68283         * lib/exclude.h (excluded_file_name): New prototype
68284
68285 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
68286
68287         * lib/tempname.c (small_open, large_open): New macros.
68288         (__open, __open64) [!_LIBC]: Remove.
68289         (__gen_tempname): Use small_open and large_open instead of __open
68290         and __open64.  This fixes a portability bug on HP-UX 11.11i
68291         reported by Simon Wing-Tang in
68292         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
68293
68294 2006-05-24  Bruno Haible  <bruno@clisp.org>
68295
68296         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
68297         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
68298         Reported by Thorsten Maerz <torte@netztorte.de> via
68299         Aaron Stone <aaron@serendipity.cx>.
68300
68301 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
68302
68303         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
68304         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
68305         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
68306         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
68307         not really conditional on the cache.
68308         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
68309
68310 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
68311
68312         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
68313         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
68314         (my_usleep): Don't mishandle maximum value.
68315
68316 2006-05-19  Jim Meyering  <jim@meyering.net>
68317
68318         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
68319
68320 2006-05-17  Bruno Haible  <bruno@clisp.org>
68321
68322         Cygwin portability.
68323         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
68324
68325 2006-05-17  Bruno Haible  <bruno@clisp.org>
68326
68327         * lib/stdint_.h: Fix recognition of Cygwin.
68328
68329 2006-05-15  Bruno Haible  <bruno@clisp.org>
68330
68331         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
68332         on libtool patch by Ralf Wildenhues.
68333
68334 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68335
68336         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
68337         test for C99 conformance; (bool) 0.5 is an integer constant
68338         expression, but (bool) -0.5 is not.  Problem reported by Fedor
68339         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
68340
68341 2006-05-11  Simon Josefsson  <jas@extundo.com>
68342
68343         * m4/xvasprintf.m4: Fix obvious typo.
68344
68345 2006-05-11  Jim Meyering  <jim@meyering.net>
68346
68347         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
68348         James Lemley.
68349
68350 2006-05-10  Simon Josefsson  <jas@extundo.com>
68351
68352         * lib/md4.c: Typo fix, update copyright years.
68353         (K1, K2): Don't use L because it turn computations into 64-bit on
68354         64-bit platforms.
68355
68356 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
68357
68358         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
68359         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
68360         unwanted sign propagation, e.g., on hosts with 64-bit int.
68361         There still are some problems with reeelly weird theoretical hosts
68362         (e.g., 33-bit int) but it's not worth worrying about now.
68363         * lib/sha1.c (rol): Likewise.
68364         (K1, K2, K3, K4): Remove unnecessary L suffix.
68365
68366 2006-05-10  Bruno Haible  <bruno@clisp.org>
68367
68368         * lib/des.c: Cast to avoid warnings.
68369
68370 2006-05-09  Bruno Haible  <bruno@clisp.org>
68371
68372         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
68373         (Depends-on): Depend also on xsize, stdarg.
68374         (configure.ac): Add gl_XVASPRINTF.
68375
68376 2006-05-09  Bruno Haible  <bruno@clisp.org>
68377
68378         * m4/xvasprintf.m4: New file.
68379
68380 2006-05-09  Bruno Haible  <bruno@clisp.org>
68381
68382         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
68383         (EOVERFLOW): Define fallback value.
68384         (xstrcat): New function.
68385         (xvasprintf): Recognize the special case of a string concatenation.
68386
68387 2006-05-08  Eric Blake  <ebb9@byu.net>
68388
68389         * gnulib-tool (func_version): Base copyright year on CVS date.
68390         (func_emit_copyright_notice): New function.
68391         (func_emit_lib_Makefile_am): Use it.
68392         (func_emit_tests_Makefile_am): Likewise.
68393         (func_import): Likewise.
68394
68395 2006-05-08  Bruno Haible  <bruno@clisp.org>
68396
68397         * modules/stdarg: New file.
68398         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
68399
68400 2006-05-08  Bruno Haible  <bruno@clisp.org>
68401
68402         * m4/stdarg.m4: New file, from GNU gettext.
68403
68404 2006-05-08  Bruno Haible  <bruno@clisp.org>
68405
68406         * config/srclist.txt (build-aux/config.rpath): different from latest
68407         release.
68408
68409 2006-05-08  Bruno Haible  <bruno@clisp.org>
68410
68411         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
68412
68413 2006-05-05  Jim Meyering  <jim@meyering.net>
68414
68415         * m4/warning.m4: New file, derived from bison's file by the same name.
68416
68417 2006-05-03  Bruno Haible  <bruno@clisp.org>
68418
68419         * lib/stdint_.h: Shorter URL.
68420         * lib/inttypes.h: Likewise.
68421
68422 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68423
68424         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
68425
68426 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68427
68428         * lib/verify.h: Document the internals better.  Most of this change
68429         was written by Bruno Haible.
68430
68431 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68432
68433         * doc/verify.texi: New file, partly based on a proposal by
68434         Bruno Haible.
68435
68436 2006-05-02  Bruno Haible  <bruno@clisp.org>
68437
68438         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
68439         test from here...
68440         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
68441
68442 2006-04-29  Bruno Haible  <bruno@clisp.org>
68443
68444         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
68445         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
68446
68447 2006-04-29  Bruno Haible  <bruno@clisp.org>
68448
68449         * gnulib-tool: Make --update option actually work.
68450
68451 2006-04-29  Bruno Haible  <bruno@clisp.org>
68452
68453         * doc/gcd.texi: New file.
68454         * doc/gnulib.texi: Include it.
68455
68456 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
68457
68458         * lib/getdate.y (get_date): When adding relative date, start with the
68459         initial time, not with the result of the first mktime call.
68460
68461 2006-04-25  Bruno Haible  <bruno@clisp.org>
68462
68463         * gnulib-tool (func_import): Output the include directives in three
68464         blocks, sorted separately.
68465         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68466
68467 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
68468
68469         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
68470         to define main with arguments, for C++.  Reported by Eric Blake.
68471         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
68472         Prefer 'int main ()' to 'int main (void)', for C++.
68473         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
68474         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
68475         for 'main', for C99 and C++.
68476
68477 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
68478
68479         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
68480         Don't assume that exit status -1 is valid.
68481         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68482         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
68483         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
68484         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
68485         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
68486         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
68487         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
68488         functions can be used without declaring them, or that you can
68489         exit with status -1.
68490         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
68491
68492 2006-04-24  Karl Berry  <karl@gnu.org>
68493
68494         * config/srclist.txt (longdouble.m4): sync lost.
68495
68496 2006-04-24  Eric Blake  <ebb9@byu.net>
68497
68498         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
68499
68500 2006-04-24  Bruno Haible  <bruno@clisp.org>
68501
68502         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
68503         poll() implementation in AIX.
68504         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68505
68506 2006-04-24  Bruno Haible  <bruno@clisp.org>
68507
68508         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
68509         assigned exactly once.
68510
68511 2006-04-23  Claudio Fontana  <claudio@gnu.org>
68512             Bruno Haible  <bruno@clisp.org>
68513
68514         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
68515         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
68516         for AM_CPPFLAGS.
68517
68518 2006-04-23  Bruno Haible  <bruno@clisp.org>
68519
68520         * modules/copy-file: Depend on unistd.
68521         * modules/execute: Likewise.
68522         * modules/fatal-signal: Likewise.
68523         * modules/findprog: Likewise.
68524         * modules/mkdtemp : Likewise.
68525         * modules/pipe: Likewise.
68526         * modules/wait-process: Likewise.
68527
68528 2006-04-23  Bruno Haible  <bruno@clisp.org>
68529
68530         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
68531         condition was already detected.
68532         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68533
68534 2006-04-23  Bruno Haible  <bruno@clisp.org>
68535
68536         * lib/copy-file.c: Include <unistd.h> unconditionally.
68537         * lib/execute.c: Likewise.
68538         * lib/fatal-signal.c: Likewise.
68539         * lib/findprog.c: Likewise.
68540         * lib/mkdtemp.c: Likewise.
68541         * lib/pipe.h: Likewise.
68542         * lib/pipe.c: Likewise.
68543         * lib/wait-process.h: Likewise.
68544
68545 2006-04-23  Bruno Haible  <bruno@clisp.org>
68546
68547         * gnulib-tool (func_usage): Fix --import description. Document
68548         --update.
68549         (func_import): Create temporary file in a temporary directory, if
68550         --dry-run is specified. Silence errors from 'grep' when there are no
68551         m4 files in $m4dir.
68552         (func_create_testdir): Silence errors from 'grep' when there are no
68553         m4 files in $m4dir.
68554         Reported by Karl Berry <karl@freefriends.org>.
68555
68556 2006-04-20  Bruno Haible  <bruno@clisp.org>
68557
68558         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
68559         one argument, so that the code will be portable to Autoconf 2.60.
68560         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
68561         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
68562         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
68563
68564 2006-04-19  Derek Price  <derek@ximbiot.com>
68565             Eric Blake  <ebb9@byu.net>
68566
68567         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
68568         rather than "/full/path.h".  Update comment to match.  Shorten &
68569         generalize m4_translit call via AS_TR_CPP.
68570
68571 2006-04-19  Derek Price  <derek@ximbiot.com>
68572             Eric Blake  <ebb9@byu.net>
68573
68574         * lib/inttypes.h: Correct grammar in comment.
68575
68576 2006-04-18  Derek Price  <derek@ximbiot.com>
68577             Paul Eggert  <eggert@cs.ucla.edu>
68578
68579         * modules/inttypes: New file.
68580         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
68581
68582 2006-04-18  Derek Price  <derek@ximbiot.com>
68583             Paul Eggert  <eggert@cs.ucla.edu>
68584
68585         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
68586         New files.
68587
68588 2006-04-18  Derek Price  <derek@ximbiot.com>
68589             Paul Eggert  <eggert@cs.ucla.edu>
68590
68591         * lib/inttypes.h: New file.
68592         * lib/strtoimax.c: Assume <inttypes.h>.
68593
68594 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
68595
68596         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
68597         isn't mounted.  Problem reported by Kir Kolyshkin.
68598
68599 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68600
68601         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
68602         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
68603         Derek R. Price.
68604         * lib/regex.h (RE_DUP_MAX): Update comment to match current
68605         implementation.
68606
68607 2006-04-12  Eric Blake  <ebb9@byu.net>
68608
68609         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
68610         is now done automatically by the corresponding Autoconf macro.
68611
68612 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
68613
68614         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
68615         time_r.h.
68616
68617 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68618
68619         Merge regex changes from libc, removing some of our
68620         POSIX-conformance changes that were rejected and redoing them in a
68621         less-intrusive way.
68622
68623         * lib/regcomp.c (re_compile_internal, init_dfa):
68624         Length arg is now size_t, not Idx.  All uses changed.
68625         (peek_token): Forward decl now says internal_function.
68626         (__re_error_msgid, __re_error_msgid_idx):
68627         Now static rather than extern with attribute_hidden.
68628         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
68629         For some reason libc prefers K&R style defns for external functions.
68630         (regerror) [!defined _LIBC]: Likewise.
68631         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
68632         (seek_collating_symbol_entry, lookup_collation_sequence_value):
68633         (build_range_exp, build_collating_symbol):
68634         Use K&R-style defn.
68635         (re_compile_fastmap): Use '\0' to memset, not 0.
68636         (utf8_sb_map): Make the calculations more obvious.
68637         (init_dfa, parse_bracket_exp, build_charclass_op):
68638         Call calloc and cast result, as glibc does.
68639         (init_word_char, fetch_token, peek_token, peek_token_bracket):
68640         (build_range_exp, build_collating_symbol):
68641         Now internal functions.
68642
68643         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
68644
68645         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
68646         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
68647         Don't depend on VMS; depend on __VMS instead, for POSIX
68648         namespace cleanness.
68649         (regoff_t): Define to ssize_t, not long int.
68650
68651         Remove the REG_ macros named below.  Instead, make the old names
68652         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
68653         __USE_GNU_REGEX.
68654         (REG_BACKSLASH_ESCAPE_IN_LISTS):
68655         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
68656         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
68657         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
68658         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
68659         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
68660         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
68661         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
68662         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
68663         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
68664         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
68665         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
68666         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
68667         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
68668         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
68669         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
68670         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
68671         (REG_NREGS):
68672         Remove.  All uses replaced by the old RE_* names.
68673         (RE_BACKSLASH_ESCAPE_IN_LISTS):
68674         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
68675         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
68676         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
68677         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
68678         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
68679         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
68680         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
68681         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
68682         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
68683         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
68684         Don't bother having these macros be independent of each others'
68685         values, since they no longer exist in the POSIX name space.
68686
68687         Rename the following member names back to their old names,
68688         unless !__USE_GNU_REGEX.  All uses changed back.
68689         (buffer): Renamed from re_buffer.
68690         (allocated): Renamed from re_allocated.
68691         (used): Renamed from re_used.
68692         (syntax): Renamed from re_syntax.
68693         (fastmap): Renamed from re_fastmap.
68694         (translate): Renamed from re_translate.
68695         (can_be_null): Renamed from re_can_be_null.
68696         (regs_allocated): Renamed from re_regs_allocated.
68697         (fastmap_accurate): Renamed from re_fastmap_accurate.
68698         (no_sub): Renamed from re_no_sub.
68699         (not_bol): Renamed from re_not_bol.
68700         (not_eol): Renamed from re_not_eol.
68701         (newline_anchor): Renamed from re_newline_anchor.
68702         (num_regs): Renamed from rm_num_regs.
68703         (start): Renamed from rm_start.
68704         (end): Renamed from rm_end.
68705
68706         (free_state): Move up a bit.
68707
68708         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
68709         #define to be empty.
68710         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
68711         when that is what is intended.
68712         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
68713         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
68714         (MAX): New macro.
68715         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
68716         All uses changed back to re_malloc, etc.  It's now the caller's
68717         responsibility to check for overflow; all callers changed.
68718         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
68719         (re_x2nrealloc): Remove.
68720         (free_state): Remove decl.
68721
68722         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
68723         (re_set_registers, re_exec):
68724         Use K&R-style defn.
68725
68726         2006-01-31  Roland McGrath  <roland@redhat.com>
68727
68728         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
68729         Reported by Mike Frysinger <vapier@gentoo.org>.
68730
68731         2006-01-15  Andreas Jaeger  <aj@suse.de>
68732
68733         [BZ #1950]
68734         * lib/regex_internal.c (re_string_reconstruct): Adjust for
68735         build_wcs_upper_buffer change.
68736         (build_wcs_upper_buffer): Change return type.
68737
68738         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
68739
68740         * lib/regex_internal.h: Include <stdint.h> if available.
68741
68742         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
68743
68744         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
68745
68746         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
68747
68748         * lib/regcomp.c: Adjust for changed secondary hash function.
68749
68750         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
68751
68752         * lib/regex.h: Pretty printing.
68753         Clean up namespace a bit.
68754
68755         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
68756
68757         * lib/regexec.c (update_cur_sifted_state, check_arrival,
68758         check_arrival_add_next_nodes): Avoid using uninitialized variable.
68759
68760         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68761                     Ulrich Drepper  <drepper@redhat.com>
68762
68763         [BZ #1302]
68764         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
68765         changed.
68766         (bitset_word_t): Renamed from bitset_word.  All uses changed.
68767
68768         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
68769
68770         [BZ #281]
68771         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
68772         * lib/regcomp.c: Remove unnecessary uses of
68773         unsigned RE_TRANSLATE_TYPE.
68774         * lib/regex_internal.h: Likewise.
68775         * lib/regex_internal.c: Likewise.
68776         * lib/regexec.c: Likewise.
68777         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
68778
68779         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
68780
68781         * lib/regexec.c (find_recover_state): Remove unnecessary
68782         initialization.
68783         (transit_state_bkref): Make DFA a const pointer.
68784         (get_subexp): Likewise.
68785         (check_arrival): Likewise.
68786         (update_cur_sifted_state): Likewise.
68787         (re_search_internal): Likewise.
68788         (prune_impossible_nodes): Likewise.
68789         (acquire_init_state_context): Likewise.
68790         (proceed_next_node): Likewise.
68791         (set_regs): Likewise.
68792         (free_fail_stack_return): Likewise.
68793         (check_arrival_expand_ecl): Mark DFA parameter as const.
68794         (check_arrival_expand_ecl_sub): Likewise.
68795         (check_subexp_limits): Likewise.
68796         (sub_epsilon_src_nodes):  Likewise.
68797         (add_epsilon_src_nodes):  Likewise.
68798         (merge_state_array): Likewise.
68799         (update_regs): Likewise.
68800         (build_trtable): Likewise.
68801         (sift_states_backward): Mark MCTX parameter as const.
68802         (build_sifted_states): Likewise.
68803         (update_cur_sifted_state): Likewise.
68804         (sift_states_mkref): Likewise.
68805         (check_arrival_expand_ecl): Mark eclosure as const.
68806         (check_dst_limits_calc_pos_1): Likewise.
68807         * lib/regex_internal.h (re_match_context_t): Make dfa a const
68808         pointer.
68809
68810         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
68811
68812         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
68813         (transit_state_sb): Likewise.
68814         (transit_state_mb): Likewise.
68815         (sift_states_iter_mb): Likewise.
68816         (check_arrival_add_next_nodes): Likewise.
68817         (check_node_accept_bytes): Change first parameter to pointer-to-const.
68818         [_LIBC] (re_search_2_stub): Use mempcpy.
68819
68820         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
68821         mbrtowc for very simple UTF-8 case.
68822
68823         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
68824         a pointer-to-const.
68825         (re_acquire_state_context): Likewise.
68826         * lib/regex_internal.h: Adjust prototypes.
68827
68828         * lib/regex.c: Prevent using C++ compilers.
68829
68830         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
68831         (re_acquire_state_context): Likewise.
68832
68833 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68834
68835         * modules/regex (Depends-on): Add ssize_t.
68836
68837 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68838
68839         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
68840         translation table.
68841
68842 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68843
68844         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
68845
68846 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
68847             Bruno Haible  <bruno@clisp.org>
68848
68849         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
68850         <sys/types.h> and <inttypes.h>.
68851
68852 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68853
68854         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
68855         `__error_t_defined', so argp.h will not typedef the former.
68856
68857 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
68858
68859         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
68860         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
68861         glibc names.  Even if glibc is changed to conform to POSIX, the
68862         traditional names will be available anyway, since regex depends on
68863         the extensions module.  Also, fix a longstanding typo in the
68864         implementation of Spencer ERE test #75 from grep 2.3.  Problems
68865         reported by Emanuele Giaquinta.  Also, change sense of cached
68866         variable, so that the message makes sense.
68867
68868 2006-03-24  Simon Josefsson  <jas@extundo.com>
68869
68870         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
68871         including some doc fixes.
68872         (base64_encode_alloc): Fix +1 bug on allocation failures.
68873
68874 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68875
68876         * lib/base64.c (base64_encode): Do not read past end of array with
68877         unsanitized input on systems with CHAR_BIT > 8.
68878
68879 2006-03-24  Eric Blake  <ebb9@byu.net>
68880
68881         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
68882
68883 2006-03-22  Karl Berry  <karl@gnu.org>
68884
68885         * config/srclist.txt (*setenv.[ch]): get from coreutils.
68886         * config/srclistvars.sh (COREUTILS): new var.
68887
68888 2006-03-17  Jim Meyering  <jim@meyering.net>
68889
68890         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
68891         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
68892
68893 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
68894
68895         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
68896         no longer needs it.  Instead, check that regoff_t is as least
68897         as wide as ptrdiff_t.
68898
68899         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
68900         so that our regex.h stays compatible with the installed regex.
68901         This is helpful for installers who configure --without-included-regex.
68902         Problem reported by Emanuele Giaquinta.
68903
68904 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
68905
68906         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
68907         Typedef to long int, not to off_, as POSIX will likely change
68908         in that direction.
68909
68910 2006-03-15  Eric Blake  <ebb9@byu.net>
68911
68912         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
68913
68914 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
68915
68916         * lib/argp-help.c (validate_uparams): Fix typo
68917         * lib/argp-parse.c (argp_default_options): Consistently begin help
68918         messages with a lowercase letter.
68919
68920 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
68921
68922         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
68923         overrun buffers and shouldn't be used (much as gets shouldn't be
68924         used).
68925         * lib/time_r.c (asctime_r, ctime_r): Likewise.
68926
68927 2006-03-08  Simon Josefsson  <jas@extundo.com>
68928
68929         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
68930         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68931
68932 2006-03-08  Simon Josefsson  <jas@extundo.com>
68933
68934         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
68935         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68936
68937 2006-03-08  Simon Josefsson  <jas@extundo.com>
68938
68939         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
68940         signal that configure disabled the device.
68941
68942 2006-03-08  Simon Josefsson  <jas@extundo.com>
68943
68944         * build-aux/maint.mk: Fix refresh-po, to handle no translated
68945         languages.
68946
68947 2006-03-07  Simon Josefsson  <jas@extundo.com>
68948
68949         * modules/getopt (Depends-on): Add unistd.
68950
68951         * modules/unistd: New file.
68952
68953 2006-03-07  Simon Josefsson  <jas@extundo.com>
68954
68955         * modules/gc-random: New file.
68956
68957 2006-03-07  Simon Josefsson  <jas@extundo.com>
68958
68959         * m4/unistd_h.m4: New file.
68960
68961 2006-03-07  Simon Josefsson  <jas@extundo.com>
68962
68963         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
68964         test to be side-effect free by storing the result in the cache
68965         variable gl_cv_lib_readline, and moving the assignment of
68966         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
68967         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68968
68969 2006-03-07  Simon Josefsson  <jas@extundo.com>
68970
68971         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
68972         error on missing devices (the functions will return an error).
68973
68974         * m4/gc.m4: Move random stuff to gc-random.m4
68975
68976 2006-03-07  Simon Josefsson  <jas@extundo.com>
68977
68978         * lib/unistd_.h: New file.
68979
68980 2006-03-07  Simon Josefsson  <jas@extundo.com>
68981
68982         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
68983
68984 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68985
68986         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
68987         Problem reported by Juan Manuel Guerrero.
68988
68989 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68990
68991         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
68992         the unistd module.
68993         * lib/getlogin_r.c: Likewise.
68994         * lib/getlogin_r.h: Likewise.
68995         * lib/glob.c: Likewise.
68996         * lib/pagealign_alloc.c: Likewise.
68997         * lib/unistd_.h: Remove; no longer needed.
68998
68999 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69000
69001         * MODULES.html.sh (Support for systems lacking POSIX:2001):
69002         Add unistd.
69003         * modules/c-stack (Depends-on): Add unistd.
69004         * modules/getlogin_r: Likewise.
69005         * modules/glob: Likewise.
69006         * modules/pagealign_alloc: Likewise.
69007         * modules/unistd (Files): Remove lib/unistd_.h.
69008         (EXTRA_DIST): Remove.
69009         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
69010         need unistd_.h.
69011         (MOSTLYCLEANFILES): Remove unistd.h-t.
69012
69013 2006-03-03  Simon Josefsson  <jas@extundo.com>
69014
69015         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
69016
69017 2006-03-03  Simon Josefsson  <jas@extundo.com>
69018
69019         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
69020         libidn and bison.
69021
69022 2006-03-03  Simon Josefsson  <jas@extundo.com>
69023
69024         * build-aux/maint.mk: Add indent target.
69025
69026 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
69027
69028         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
69029         our replacement poll.h in any case, to avoid a differing
69030         declaration from a system header.  Seen on AIX.
69031
69032 2006-03-01  Simon Josefsson  <jas@extundo.com>
69033
69034         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
69035         <kasal@ucw.cz>.
69036
69037 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69038
69039         * modules/gettime (Depends-on): Add extensions module.
69040         * modules/nanosleep (Depends-on): Likewise.
69041         * modules/settime (Depends-on): Likewise.
69042
69043 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69044
69045         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
69046         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
69047         pedantically.
69048         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69049         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
69050
69051         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
69052         not "==".  Reported by Ralf Wildenhues.
69053
69054 2006-03-01  Karl Berry  <karl@gnu.org>
69055
69056         * doc/Copyright/request-*: new files, synced from gnuorg.
69057
69058 2006-03-01  Karl Berry  <karl@gnu.org>
69059
69060         * config/srclist.txt (Copyright/*): new entries.
69061
69062 2006-02-28  Simon Josefsson  <jas@extundo.com>
69063
69064         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
69065
69066 2006-02-27  Simon Josefsson  <jas@extundo.com>
69067
69068         * lib/base64.h: Indent #define's.  From Jim Meyering
69069         <jim@meyering.net>.
69070
69071 2006-02-27  Jim Meyering  <jim@meyering.net>
69072
69073         Revert the change of 2006-02-24, so these files can continue
69074         to be sync'd from gettext.
69075         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
69076         of `config.h'.
69077
69078 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
69079
69080         * modules/intprops: New file.
69081         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
69082         Add intprops.
69083         * modules/getloadavg (Files): Remove lib/intprops.h.
69084         (Depends-on): Add intprops.
69085         * modules/human: Likewise.
69086         * modules/inttostr: Likewise.
69087         * modules/openat: Likewise.
69088         * modules/sig2str: Likewise.
69089         * modules/userspec: Likewise.
69090         * modules/utimecmp: Likewise.
69091         * modules/xnanosleep: Likewise.
69092         * modules/xstrtol: Likewise.
69093
69094 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
69095
69096         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
69097         * modules/lock-tests (TESTS): Use $(EXEEXT).
69098         * modules/tls-tests: Likewise.
69099         * modules/argp-tests: Likewise.
69100         (check_PROGRAMS): New var, replacing...
69101         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
69102
69103 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69104
69105         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
69106         `config.h'.
69107
69108 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
69109
69110         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
69111
69112 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69113
69114         Sync from coreutils.
69115         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
69116         gl_CHDIR_SAFER.
69117
69118 2006-02-22  Jim Meyering  <jim@meyering.net>
69119
69120         Sync from coreutils.
69121         * m4/chdir-safer.m4: New file.
69122
69123 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
69124
69125         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
69126         AT_FDCWD exceeds INT_MAX.
69127         * lib/openat.h (AT_FDCWD): Likewise.
69128
69129 2006-02-17  Eric Blake  <address@hidden>
69130
69131         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
69132
69133 2006-02-16  Simon Josefsson  <jas@extundo.com>
69134
69135         * modules/getaddrinfo (Depends-on): Add sys_socket.
69136
69137 2006-02-15  Simon Josefsson  <jas@extundo.com>
69138
69139         * build-aux/maint.mk: Add dsyntax-check rule.
69140
69141 2006-02-15  Eric Blake  <ebb9@byu.net>
69142
69143         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
69144         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
69145         'present but cannot compile' warnings on cygwin.
69146         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
69147         use ws2tcpip.h if sys/socket.h works.
69148         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
69149         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
69150
69151 2006-02-14  Simon Josefsson  <jas@extundo.com>
69152
69153         * modules/maintainer-makefile (Files): Rename.
69154
69155         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
69156         and (the local) Makefile.cfg to maint-cfg.mk.
69157
69158         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
69159         to the latter.
69160
69161         * modules/maintainer-makefile: New module.
69162
69163         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
69164         severaly stripped to make it possible to build it up from scratch
69165         with reliable tests.
69166
69167         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
69168         fixes to permit overriding the default actions when configure and
69169         makefile are not available.
69170
69171 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
69172
69173         Sync from coreutils.
69174         * modules/lstat (Depends-on): Don't depend on xalloc.
69175         (License): Change from GPL to LGPL, since this is now simply a
69176         replacement for a libc function.
69177
69178 2006-02-14  Jim Meyering  <jim@meyering.net>
69179
69180         Sync from coreutils.
69181
69182         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
69183         failure on deficient systems, and simplify gnulib lgpl dependencies.
69184         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
69185         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
69186
69187         * lib/xalloc-die.c: Remove unused definition of N_.
69188
69189 2006-02-14  Jim Meyering  <jim@meyering.net>
69190
69191         Sync from coreutils.
69192         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
69193         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
69194         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
69195         double-quote uses of that variable, to accommodate the rare case in
69196         which getmntent is available in none of the libraries checked.  This
69197         happens at least on FreeBSD 5.0.
69198
69199 2006-02-13  Simon Josefsson  <jas@extundo.com>
69200
69201         * gnulib-tool (Usage): Fix --import, from
69202         karl@freefriends.org (Karl Berry).
69203
69204 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
69205
69206         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
69207
69208 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
69209
69210         * lib/argp-namefrob.h: Restore changes accidentally lost during the
69211         "autoupdate" on 2005-12-12.
69212
69213 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
69214
69215         * modules/closeout (Depends-on): Remove atexit.
69216
69217 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
69218
69219         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
69220         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
69221
69222 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
69223
69224         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
69225         __EXTENSIONS__ if this causes compilation to fail.  Problem
69226         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
69227         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
69228
69229 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
69230
69231         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
69232         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
69233         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
69234         All uses changed.
69235
69236 2006-01-26  Simon Josefsson  <jas@extundo.com>
69237
69238         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
69239         prototype is visible on mingw32.
69240
69241         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
69242         for mingw32.
69243
69244         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
69245         mingw32).
69246
69247 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69248
69249         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
69250         attempt to open for write; this always fails, at least on POSIX
69251         hosts.  This reinstates the 2006-01-09 change, which was
69252         inadvertently removed.
69253
69254 2006-01-26  Bruno Haible  <bruno@clisp.org>
69255
69256         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
69257         Reported by Paul Eggert.
69258
69259 2006-01-26  Bruno Haible  <bruno@clisp.org>
69260             Paul Eggert  <eggert@cs.ucla.edu>
69261
69262         * lib/stdbool_.h (_Bool)
69263         [(! (defined __cplusplus || defined __BEOS__)
69264           && !defined __GNUC__
69265           && !(defined __HP_cc || defined __xlc__
69266                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
69267                || defined __sgi))]:
69268         #define to signed char in these cases too; this simplifies
69269         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
69270         etc., separately) and makes it more conservative.
69271
69272 2006-01-25  Simon Josefsson  <jas@extundo.com>
69273
69274         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
69275         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
69276         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
69277
69278 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
69279
69280         * lib/argp-namefrob.h: Bugfix. Remove stray #
69281
69282 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
69283
69284         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
69285         so that we test the test.
69286         Check for yet another HP-UX cc bug involving *bool |= bool.
69287
69288 2006-01-25  Karl Berry  <karl@gnu.org>
69289
69290         * config/srclist.txt (vasnprintf.c): sync lost.
69291
69292 2006-01-25  Jim Meyering  <jim@meyering.net>
69293
69294         Sync from the stable (b5) branch of coreutils:
69295
69296         * lib/fts.c (fts_children): Don't let close() clobber errno from
69297         failed fchdir().
69298
69299         * lib/fts.c (fts_stat): When following a symlink-to-directory,
69300         don't necessarily interpret stat-fails+lstat-succeeds as indicating
69301         a dangling symlink.  That can also happen at least for ELOOP.
69302         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
69303         FYI, this bug predates the inclusion of fts.c in coreutils.
69304
69305         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
69306         in their own block, so pre-c99 compilers don't object.
69307
69308         Avoid the double-free (first in fts_read, second in fts_close) that
69309         would occur when an `active' directory is made inaccessible (e.g.,
69310         via chmod a-x) during a traversal.
69311         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
69312         before returning.  Reproduce this failure by
69313         mkdir -p a/b; cd a; chmod a-x . b
69314         Reported by Stavros Passas.
69315
69316 2006-01-25  Jim Meyering  <jim@meyering.net>
69317
69318         * lib/fileblocks.c: Remove more useless parentheses.
69319         * lib/readutmp.h: Likewise.
69320
69321 2006-01-25  Bruno Haible  <bruno@clisp.org>
69322
69323         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
69324         warnings.
69325         Reported by Paul Eggert.
69326
69327 2006-01-25  Bruno Haible  <bruno@clisp.org>
69328
69329         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
69330         rid of a trap command. For Solaris sh.
69331         Reported by Mark D. Baushke <mdb@gnu.org>.
69332
69333 2006-01-24  Simon Josefsson  <jas@extundo.com>
69334
69335         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
69336         Bruno.
69337
69338 2006-01-24  Karl Berry  <karl@gnu.org>
69339
69340         * config/srclist.txt (argp-namefrob.h): sync lost.
69341
69342 2006-01-24  Jim Meyering  <jim@meyering.net>
69343
69344         * modules/openat (Files): Add lib/intprops.h.
69345         From Mark D. Baushke.
69346
69347 2006-01-24  Jim Meyering  <jim@meyering.net>
69348
69349         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
69350         Reported by Mark D. Baushke.
69351
69352 2006-01-24  Jim Meyering  <jim@meyering.net>
69353
69354         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
69355
69356 2006-01-24  Bruno Haible  <bruno@clisp.org>
69357
69358         * modules/strnlen (Maintainer): Change from glibc to all.
69359
69360 2006-01-24  Bruno Haible  <bruno@clisp.org>
69361
69362         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
69363         Patch by Paul Eggert.
69364
69365 2006-01-24  Bruno Haible  <bruno@clisp.org>
69366
69367         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
69368         already has it.
69369         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
69370         2005-11-26.
69371
69372         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
69373         'signed char' to avoid problems with the built-in _Bool type.
69374         Reported by Paul Eggert on 2005-11-26.
69375
69376 2006-01-24  Bruno Haible  <bruno@clisp.org>
69377
69378         * gnulib-tool (func_import): Avoid constructing complicated sed
69379         expressions inside backquote.
69380         Report and solution by Mark D. Baushke <mdb@gnu.org>.
69381
69382 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
69383
69384         These changes imported from libc.
69385         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
69386         test and two separate function calls.
69387         * lib/strndup.c (__strndup): Add libc_hidden_def.
69388
69389 2006-01-23  Simon Josefsson  <jas@extundo.com>
69390
69391         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
69392         Remove the test_*_SOURCES variable: automake infers it by default.
69393         * modules/tls-tests: Likewise.
69394
69395 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69396
69397         Work around porting bugs reported by Dieter in
69398         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
69399         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
69400         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
69401         Include "getopt.h" first, to check interface.
69402         (getenv): Declare only if defined HAVE_DECL_GETENV &&
69403         !HAVE_DECL_GETENV.
69404         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
69405         (__strndup): Revert to K&R-style function dfns, the glibc style.
69406         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
69407         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
69408         Include strnlen.h first, to get prototype properly.
69409         (strnlen): Renamed from __strnlen.
69410         Remove weak alias.
69411
69412 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69413
69414         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
69415
69416 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69417
69418         * config/srclist.txt: Adjust to reflect glibc reorganization.
69419         This affects only comments.
69420
69421 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69422
69423          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
69424          Reported by Bruce Korb <bkorb@gnu.org>.
69425
69426 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
69427
69428         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
69429         to pacify gcc -Wswitch-default.
69430
69431 2006-01-22  Bruno Haible  <bruno@clisp.org>
69432
69433         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
69434         temporary buffer for sprintf, take into account the precision also
69435         for 'd', 'i', 'u', 'o', 'x', 'X'.
69436
69437 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
69438
69439         * modules/argp-tests: New module
69440         * tests/test-argp.c: New file
69441         * tests/test-argp-2.sh: New file
69442
69443 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
69444
69445         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
69446         (__argp_base_name): Removed
69447         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
69448         typo.
69449         (__argp_base_name): Provide macro definition or extern declaration
69450         depending on the configuration
69451
69452 2006-01-20  Simon Josefsson  <jas@extundo.com>
69453
69454         * modules/inet_ntop (Depends-on): Depend on sys_socket.
69455
69456 2006-01-20  Simon Josefsson  <jas@extundo.com>
69457
69458         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
69459
69460 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69461
69462         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
69463         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
69464         Suggested by Bruno Haible.
69465
69466 2006-01-20  Karl Berry  <karl@gnu.org>
69467
69468         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
69469         until changes propagate, I guess.
69470
69471 2006-01-19  Simon Josefsson  <jas@extundo.com>
69472
69473         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
69474
69475 2006-01-19  Simon Josefsson  <jas@extundo.com>
69476
69477         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
69478
69479 2006-01-19  Simon Josefsson  <jas@extundo.com>
69480
69481         * gnulib-tool: Set check_PROGRAMS.
69482
69483         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
69484         modules/des-tests, modules/gc-arcfour-tests,
69485         modules/gc-arctwo-tests, modules/gc-des-tests,
69486         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
69487         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
69488         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
69489         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
69490         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
69491         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
69492         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
69493         test_*_SOURCES.
69494
69495 2006-01-18  Simon Josefsson  <jas@extundo.com>
69496
69497         * modules/socklen (Depends-on): Depend on sys_socket.
69498
69499 2006-01-18  Simon Josefsson  <jas@extundo.com>
69500
69501         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
69502         modules/des-tests, modules/gc-arcfour-tests,
69503         modules/gc-arctwo-tests, modules/gc-des-tests,
69504         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
69505         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
69506         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
69507         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
69508         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
69509         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
69510         $(EXEEXT) to automake TESTS variable, for mingw32.
69511
69512 2006-01-17  Simon Josefsson  <jas@extundo.com>
69513
69514         * modules/socklen (Include): Need sys/socket.h.
69515
69516 2006-01-17  Bruno Haible  <bruno@clisp.org>
69517
69518         * modules/ssize_t (Include): Add <sys/types.h>.
69519
69520 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
69521
69522         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
69523         it's not portable and it doesn't work with cross-compiles.
69524         Problem reported by Bruno Haible.  Fix missing-$ typo in
69525         'test "gl_cv_ignore_unused_libraries" ...' that prevented
69526         -zignore from being used with Sun's C compiler.
69527
69528 2006-01-12  Simon Josefsson  <jas@extundo.com>
69529
69530         * lib/base64.c: Fix warning, reported by Bruno Haible
69531         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
69532
69533 2006-01-12  Bruno Haible  <bruno@clisp.org>
69534
69535         * modules/ldd: New file.
69536         * build-aux/ldd.sh.in: New file.
69537         * MODULES.html.sh (Support for building libraries and executables): Add
69538         ldd.
69539
69540 2006-01-12  Bruno Haible  <bruno@clisp.org>
69541
69542         * m4/ldd.m4: New file.
69543
69544 2006-01-12  Bruno Haible  <bruno@clisp.org>
69545
69546         * gnulib-tool (func_import, func_create_testdir): Don't go into an
69547         endless loop while replacing $auxdir with build-aux.
69548
69549 2006-01-11  Simon Josefsson  <jas@extundo.com>
69550
69551         * lib/stdint_.h (SIZE_MAX): Add missing (.
69552
69553 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
69554
69555         Sync from coreutils.
69556         * lib/md5.c: Fix commentary typos.
69557         (alignof, UNALIGNED_P): No need for a GCC-specific version.
69558         * lib/md5.h (__attribute__): Remove; unused.
69559         * lib/sha1.c: Fix commentary to match md5 better.
69560         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
69561         so that we don't need to worry about alignment.  All uses changed.
69562         This merges the 2005-10-28 md5 change into sha1.
69563
69564 2006-01-11  Jim Meyering  <jim@meyering.net>
69565
69566         Sync from coreutils.
69567         * lib/md5.c (OP): Fix spacing.
69568
69569 2006-01-11  Bruno Haible  <bruno@clisp.org>
69570
69571         Ensure automatic ordering between gl_LOCK and gl_ARGP.
69572         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
69573         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
69574
69575 2006-01-11  Bruno Haible  <bruno@clisp.org>
69576
69577         Ensure automatic ordering between gl_LOCK and gl_ARGP.
69578         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
69579         the "early" section as well.
69580
69581 2006-01-11  Bruno Haible  <bruno@clisp.org>
69582
69583         Avoid "ar: no archive members specified" error on MacOS X.
69584         * gnulib-tool (func_modules_add_dummy): New function.
69585         (func_import, func_create_testdir): Invoke it.
69586
69587 2006-01-11  Bruno Haible  <bruno@clisp.org>
69588
69589         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
69590         with $auxdir in AC_CONFIG_FILES statements.
69591
69592 2006-01-11  Bruno Haible  <bruno@clisp.org>
69593
69594         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69595         Initialize also noinst_HEADERS to empty.
69596
69597 2006-01-11  Bruno Haible  <bruno@clisp.org>
69598
69599         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
69600         variables.
69601         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
69602         autoreconf.
69603
69604 2006-01-11  Bruno Haible  <bruno@clisp.org>
69605
69606         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
69607         overridable by the user.
69608         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69609
69610 2006-01-10  Simon Josefsson  <jas@extundo.com>
69611
69612         * modules/sys_socket: New file.
69613
69614 2006-01-10  Simon Josefsson  <jas@extundo.com>
69615
69616         * m4/sys_socket_h.m4: New file.
69617
69618 2006-01-10  Simon Josefsson  <jas@extundo.com>
69619
69620         * lib/socket_.h: New file.
69621
69622 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69623
69624         * modules/readutmp (Maintainer): Add myself.
69625
69626 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69627
69628         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
69629         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
69630         People who are still concerned with buggy memcmp implementations
69631         can invoke gl_FUNC_MEMCMP themselves.
69632
69633 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69634
69635         * lib/regex_internal.h (BITSET_WORD_BITS):
69636         Work around a bug in 64-bit PGC (before version 6.1-2), where the
69637         preprocessor mishandles large unsigned values as if they were signed.
69638         Problem reported by Claudio Fontana in
69639         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
69640
69641 2006-01-10  Jim Meyering  <jim@meyering.net>
69642
69643         Avoid the double-free (first in fts_read, second in fts_close) that
69644         would occur when an `active' directory is made inaccessible (e.g.,
69645         via chmod a-x) during a traversal.
69646         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
69647         before returning.  Reproduce this failure by
69648         mkdir -p a/b; cd a; chmod a-x . b
69649         Reported by Stavros Passas.
69650
69651         Sync from coreutils.
69652         * lib/sha1.c: Tweak grammar in a comment.
69653
69654 2006-01-10  Jim Meyering  <jim@meyering.net>
69655
69656         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
69657         Patch by Joerg Sonnenberger.
69658
69659 2006-01-10  Bruno Haible  <bruno@clisp.org>
69660
69661         * modules/readutmp: Depend on module free.
69662         * modules/strtok_r: Depend on module restrict.
69663
69664 2006-01-10  Bruno Haible  <bruno@clisp.org>
69665
69666         * modules/gettext (configure.ac): Add an invocation of
69667         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
69668
69669 2006-01-10  Bruno Haible  <bruno@clisp.org>
69670
69671         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
69672         Reported by Werner Lemberg <wl@gnu.org>.
69673
69674 2006-01-10  Bruno Haible  <bruno@clisp.org>
69675
69676         * lib/localcharset.c: Update from GNU gettext.
69677
69678 2006-01-10  Bruno Haible  <bruno@clisp.org>
69679
69680         * lib/argp.h (__const): Remove macro. Use const instead.
69681         * lib/argp-fmtstream.h (__const): Likewise.
69682         * lib/glob_.h (__const): Remove macro.
69683         * lib/glob-libc.h: Use const instead of __const.
69684
69685 2006-01-10  Bruno Haible  <bruno@clisp.org>
69686
69687         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
69688         variable.
69689         Needed to avoid an automake error regarding the 'gettext' module.
69690
69691 2006-01-09  Simon Josefsson  <jas@extundo.com>
69692
69693         * modules/inet_ntop (Depends-on): Add restrict.
69694
69695 2006-01-09  Simon Josefsson  <jas@extundo.com>
69696
69697         * modules/gc-rijndael-tests (License): Put under LGPL.
69698
69699         * modules/gc-des-tests (License): Likewise.
69700
69701         * modules/gc-arcfour-tests (License): Likewise.
69702
69703         * modules/gc-arctwo-tests (License): Likewise.
69704
69705         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
69706
69707         * modules/gc-hmac-sha1-tests (Files): Likewise.
69708
69709         * modules/gc-hmac-md5-tests (License): Likewise.
69710
69711         * modules/gc-sha1-tests (License): Likewise.
69712
69713         * modules/gc-md5-tests (License): Likewise.
69714
69715         * modules/gc-md4-tests (License): Likewise.
69716
69717         * modules/gc-md2-tests (License): Likewise.
69718
69719         * modules/gc-tests (License): Likewise.
69720
69721         * modules/des-tests (License): Likewise.
69722
69723         * modules/md4-tests (License): Likewise.
69724
69725         * modules/md2-tests (License): Likewise.
69726
69727 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69728
69729         Sync from coreutils:
69730
69731         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
69732         * modules/lib-ignore: New file.
69733         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
69734         chdir-safer.m4, lchmod.m4.
69735         * modules/openat: Add mkdirat.c, openat-priv.h.
69736
69737 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69738
69739         Sync from coreutils.
69740         * m4/lib-ignore.m4: New file.
69741         * m4/lchmod.m4: New file.
69742
69743 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69744
69745         Sync from coreutils.
69746         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
69747         for write access: POSIX says that must fail.
69748         * lib/fts.c (diropen): Likewise.
69749         * lib/save-cwd.c (save_cwd): Likewise.
69750         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
69751         well, for minor improvements on hosts that lack O_DIRECTORY.
69752         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
69753         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
69754         Fall back on chown if open failed with EACCES.
69755
69756         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
69757         Report an error at compile-time if only a 1-second nominal clock
69758         resolution is found.
69759
69760         * lib/lchmod.h: New file.
69761         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
69762         (make_dir_parents): Use lchown rather than chown, and
69763         lchmod rather than chmod.
69764
69765         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
69766         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
69767         "proc" reported by n0dalus.
69768
69769         * lib/mountlist.c: Include <limits.h>.
69770         (dev_from_mount_options)
69771         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
69772         New function.  It no longer assumes "dev=" has the System V meaning
69773         on Linux (since it doesn't).  It also parses "dev=" more carefully.
69774         (read_file_system_list)
69775         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
69776         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
69777         dev= in that case.
69778
69779         * lib/posixtm.h (PDS_PRE_2000): New macro.
69780         * lib/posixtm.c (year): Arg is now syntax_bits rather than
69781         allow_century.  All usages changed.  Reject dates outside the range
69782         1969-1999 if PDS_PRE_2000 is used.
69783
69784 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69785
69786         Sync from coreutils.
69787         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
69788         (Time of day items): Mention the possibility of leap seconds.
69789         Problem reported by Dr. David Alan Gilbert.
69790
69791 2006-01-09  Jim Meyering  <jim@meyering.net>
69792
69793         Sync from coreutils.
69794
69795         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
69796
69797         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
69798
69799         * lib/modechange.c (mode_compile): Reject an invalid mode string
69800         that starts with an octal digit.  From Andreas Gruenbacher.
69801
69802         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
69803         and dup to open_safer and dup_safer, respectively.
69804         (openat_permissive): Fix typo in comment.
69805
69806         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
69807         "gettext.h"; either no longer needed or are guaranteed by openat.h.
69808         (_): Remove; no longer needed.
69809         (openat): Renamed from rpl_openat; no need for rpl_openat
69810         since openat.h renames openat for us.
69811         Replace most of the body with a call to openat_permissive,
69812         to avoid duplicate code.
69813         Port to (probably hypothetical) environments were mode_t is
69814         wider than int.
69815         (openat_permissive): Require mode arg, so that we can check
69816         types better.  Put it just after flags.  Change cwd failure
69817         indicator from pointer-to-bool to pointer-to-errno-value.
69818         All callers changed.
69819         Invoke openat_save_fail and/or openat_restore_fail if
69820         cwd_errno is null, so that openat can call us.
69821         (openat_permissive, fdopendir, fstatat, unlinkat):
69822         Simplify errno handling to avoid some duplicate code,
69823         as it's OK to set errno on success.
69824         * lib/openat.h: Revamp code so that function macros depend on
69825         __OPENAT_PREFIX only, not also on AT_FDCWD.
69826         (openat_ro): Remove.  Caller changed to use openat_permissive.
69827         (openat_permissive): Now a macro, if not a function.
69828         (openat_restore_fail, openat_save_fail): Now always functions,
69829         since mkdirat needs them even if __OPENAT_PREFIX is defined.
69830
69831         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
69832         and openat.c.
69833         * lib/mkdirat.c: Include openat-priv.h.
69834         Remove definitions of macros defined therein.
69835         * lib/openat.c: Likewise.
69836
69837         * lib/mkdirat.c (mkdirat): New file and function.
69838         * lib/openat.h (mkdirat): Declare.
69839
69840         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
69841
69842         * lib/openat.h (openat_permissive): Declare.
69843         (openat_ro): Define.
69844
69845         * lib/openat.c (EXPECTED_ERRNO): New macro.
69846         (openat_permissive): New function -- used in remove.c rewrite.
69847         (all functions): Set errno just before returning, only if there
69848         was an actual failure.
69849         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
69850
69851         Emulate openat-family functions using Linux's procfs, if possible.
69852         Idea and some code based on Ulrich Drepper's glibc changes.
69853
69854         * lib/openat.c: (BUILD_PROC_NAME): New macro.
69855         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
69856         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
69857         before falling back on save_cwd and restore_cwd.
69858         (fdopendir, fstatat, unlinkat): Likewise.
69859
69860         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
69861         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
69862
69863         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
69864         as second argument to va_arg.  Otherwise, some versions of gcc
69865         warn that `if this code is reached, the program will abort'.
69866
69867 2006-01-09  Jim Meyering  <jim@meyering.net>
69868
69869         Sync from coreutils.
69870         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
69871         Require openat-priv.h.
69872
69873 2006-01-09  Bruno Haible  <bruno@clisp.org>
69874
69875         * modules/strnlen (Include): Use strnlen.h.
69876
69877 2006-01-09  Bruno Haible  <bruno@clisp.org>
69878
69879         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
69880
69881 2006-01-09  Bruno Haible  <bruno@clisp.org>
69882
69883         * lib/sysexit_.h (EX_OK): New macro.
69884         Suggested by Martin Lambers <marlam@marlam.de>.
69885
69886 2006-01-09  Bruno Haible  <bruno@clisp.org>
69887
69888         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
69889         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
69890
69891 2006-01-09  Bruno Haible  <bruno@clisp.org>
69892
69893         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
69894         numbers.
69895
69896 2006-01-09  Bruno Haible  <bruno@clisp.org>
69897
69898         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
69899         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
69900         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
69901         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
69902
69903 2006-01-09  Bruno Haible  <bruno@clisp.org>
69904
69905         * build-aux/javacomp.sh.in: New file, moved from lib/.
69906         * modules/javacomp-script (Files): Update.
69907         (configure.ac): Add AC_CONFIG_FILES invocation.
69908         (EXTRA_DIST): Remove variable.
69909
69910         * build-aux/javaexec.sh.in: New file, moved from lib/.
69911         * modules/javaexec (Files): Update.
69912         (configure.ac): Add AC_CONFIG_FILES invocation.
69913         (EXTRA_DIST): Remove javaexec.sh.in.
69914
69915         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
69916         * modules/csharpcomp-script (Files): Update.
69917         (configure.ac): Add AC_CONFIG_FILES invocation.
69918         (EXTRA_DIST): Remove variable.
69919
69920         * build-aux/csharpexec.sh.in: New file, moved from lib/.
69921         * modules/csharpexec (Files): Update.
69922         (configure.ac): Add AC_CONFIG_FILES invocation.
69923         (EXTRA_DIST): Remove csharpexec.sh.in.
69924
69925 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
69926
69927         Sync from coreutils.
69928
69929         Add POSIX ACL support
69930         * lib/acl.h (copy_acl, set_acl): Add declarations.
69931         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
69932         systems other than Linux.
69933         (chmod_or_fchmod): New function: use fchmod when possible,
69934         and chmod otherwise.
69935         (file_has_acl): Add a POSIX ACL implementation, with a
69936         Linux-specific subcase.
69937         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
69938         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
69939         acls are unsupported.
69940         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
69941         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
69942         are unsupported.
69943
69944 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
69945
69946         Sync from coreutils.
69947         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
69948
69949 2006-01-07  Bruno Haible  <bruno@clisp.org>
69950
69951         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
69952         gl_EARLY.
69953
69954 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69955
69956         * lib/strftime.c (tzname): Don't declare if it is already #defined.
69957         Problem reported for Mingw by Mark Junker.
69958
69959 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69960
69961         * README: Gnulib normally doesn't generate a tarball.
69962
69963 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
69964
69965         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
69966         long int, not int, for nanosecond counts, so that people who are
69967         used to POSIX struct timespec won't be surprised.  Reported by Jim
69968         Meyering.
69969
69970 2005-12-28  Bruno Haible  <bruno@clisp.org>
69971
69972         * build-aux/config.rpath: Update from GNU gettext.
69973
69974 2005-12-16  Jim Meyering  <jim@meyering.net>
69975
69976         * modules/fprintftime: New module.
69977         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
69978
69979 2005-12-16  Jim Meyering  <jim@meyering.net>
69980
69981         * m4/fprintftime.m4: New file.
69982
69983 2005-12-16  Jim Meyering  <jim@meyering.net>
69984
69985         * lib/fprintftime.c, lib/fprintftime.h: New files.
69986
69987 2005-12-15  Simon Josefsson  <jas@extundo.com>
69988
69989         * modules/socklen (configure.ac): Fix M4 macro name, to align with
69990         new m4/socklen.m4.
69991
69992 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69993
69994         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
69995         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
69996
69997 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69998
69999         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
70000         * lib/argp-help.c (fill_in_uparams): Check if the constructed
70001         struct uparams is valid. Fall back to the default values if it is
70002         not.
70003
70004 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70005
70006         * modules/argp (Files): Add argp-pin.c
70007         (Depends-on): dirname
70008         (lib_SOURCES): Add argp-pin.c
70009
70010 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70011
70012         * m4/argp.m4:  Check if program_invocation_name and
70013         program_invocation_short_name are declared and define appropriate
70014         macros if they are not.
70015
70016 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70017
70018         * lib/argp-help.c (__argp_base_name): New function
70019         (__argp_short_program_name): Rewrite using __argp_base_name
70020         * lib/argp-namefrob.h: Define program_invocation_name and
70021         program_invocation_short_name if requested
70022         (__argp_base_name): Add prototype
70023         * lib/argp-parse.c (argp_def): Use gettext wrappers
70024         (argp_default_parser): Use __argp_base_name
70025         * lib/argp-pin.c: New file. Defines program_invocation_name and
70026         program_invocation_short_name on systems that lack them.
70027
70028 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
70029
70030         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
70031         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
70032         porting problem reported by Georg Schwarz in
70033         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
70034
70035 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
70036
70037         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
70038         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
70039         porting problem reported by Georg Schwarz in
70040         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
70041
70042 2005-12-05  Bruno Haible  <bruno@clisp.org>
70043
70044         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
70045         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
70046         Reported by Mark Junker <mjscod@gmx.de>.
70047
70048 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
70049
70050         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
70051         Use implementation from Albert Chin, with some
70052         comments/corrections by Stepan Kasal and myself.
70053
70054 2005-12-02  Bruno Haible  <bruno@clisp.org>
70055
70056         * gnulib-tool (func_import): Accept GPLed build tool modules when
70057         --lgpl is given.
70058         * modules/csharpcomp-script: New file.
70059         * modules/csharpcomp: Depend on it.
70060         * modules/javacomp-script: New file.
70061         * modules/javacomp: Depend on it.
70062         Suggested by Simon Josefsson.
70063
70064 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
70065
70066         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
70067         statement, to work around an HP-UX 10.20 compiler bug reported by
70068         Peter O'Gorman.
70069
70070 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
70071
70072         * modules/savedir (Depends-on): Add openat.
70073
70074 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
70075
70076         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
70077         (uintmax_t) [defined uintmax_t]: Do not declare.
70078         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
70079         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
70080         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
70081         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
70082         sake of portability to weird hosts that C allows (though we don't
70083         know of any practical examples).
70084
70085         * lib/savedir.h (fdsavedir): New decl.
70086         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
70087         contains most of the former guts of savedir.
70088         (savedir): Use savedirstream.
70089         Include "openat.h".
70090
70091 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70092
70093         * modules/obstack (Files): Add m4/ulonglong.m4.
70094         Problem reported by Davide Angelocola.
70095
70096 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
70097
70098         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
70099         coreutils no longer futzes with rounding modes.
70100
70101 2005-11-14  Jim Meyering  <jim@meyering.net>
70102
70103         * lib/mkstemp-safer.c: Include <config.h>, required for possible
70104         replacement of mkstemp.
70105
70106 2005-11-10  Simon Josefsson  <jas@extundo.com>
70107
70108         * lib/readline.c: Remove EOL.
70109
70110 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70111
70112         * modules/gethrxtime (Depends-on): Add gettime.
70113
70114 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70115
70116         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
70117         or gettimeofday; no longer needed.
70118
70119 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70120
70121         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
70122         time business.
70123         (gethrxtime) [! (HAVE_NANOUPTIME
70124         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
70125         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
70126         our own approximation.
70127
70128 2005-11-08  Eric Blake  <ebb9@byu.net>
70129
70130         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
70131
70132 2005-11-08  Eric Blake  <ebb9@byu.net>
70133
70134         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
70135
70136 2005-11-04  Bruno Haible  <bruno@clisp.org>
70137
70138         * gnulib-tool: Implement --update mode.
70139
70140 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70141
70142         Fix porting problem reported by Theodoros V. Kalamatianos.
70143         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
70144         Don't assume that futimes failing means we must fail.
70145
70146 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70147
70148         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
70149         variables to suggest the intended function of the PATH_MAX check.
70150
70151 2005-10-30  Kean Johnston  <jkj@sco.com>
70152
70153         Trivial changes to support SCO systems.
70154         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
70155         as PATH_MAX.
70156         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
70157         where __ptr is null when no I/O is pending.
70158
70159 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70160
70161         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
70162         leave errno alone.  Problem reported by Dmitry V. Levin.
70163
70164 2005-10-28  Simon Josefsson  <jas@extundo.com>
70165
70166         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
70167         Test more.
70168
70169         * tests/test-gc-md2.c, tests/test-md2.c: New files.
70170
70171         * modules/md2, modules/md2-tests: New files.
70172
70173 2005-10-28  Simon Josefsson  <jas@extundo.com>
70174
70175         * m4/inet_ntop.m4: More tests.
70176
70177         * m4/gc-md2.m4, md2.m4: New file.
70178
70179 2005-10-28  Simon Josefsson  <jas@extundo.com>
70180
70181         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
70182         "restrict" keywords, as per POSIX.  Protect the function
70183         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
70184         Don't use K&R prototypes.  Check the sprintf return values.
70185         Re-define EAFNOSUPPORT if not present.  Indent.
70186
70187         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
70188         suggested by Bruno Haible <bruno@clisp.org>.
70189
70190         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
70191
70192         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
70193
70194         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
70195         libgcrypt).
70196
70197         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
70198
70199         * lib/md2.h, lib/md2.c: New files.
70200
70201 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
70202
70203         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
70204         errno alone.  Problem reported by Frederic Jolliton.
70205
70206 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
70207
70208         * modules/verify (License): Change from GPL to LGPL.  This is a
70209         tiny module and there are apparently near-equivalents that are
70210         under the BSD license.
70211
70212 2005-10-24  Simon Josefsson  <jas@extundo.com>
70213
70214         * modules/sha1: Relicense to LGPL.
70215
70216 2005-10-24  Simon Josefsson  <jas@extundo.com>
70217
70218         * lib/md4.h: Shrink buffer size, now that we changed the type.
70219
70220 2005-10-23  Simon Josefsson  <jas@extundo.com>
70221
70222         * gnulib-tool (func_import): Fix --tests-base.
70223
70224 2005-10-22  Simon Josefsson  <jas@extundo.com>
70225
70226         * modules/arcfour (Depends-on): Need stdint.
70227
70228 2005-10-22  Simon Josefsson  <jas@extundo.com>
70229
70230         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
70231         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
70232
70233 2005-10-22  Simon Josefsson  <jas@extundo.com>
70234
70235         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
70236         suggested by Bruno Haible <bruno@clisp.org>.
70237
70238 2005-10-22  Simon Josefsson  <jas@extundo.com>
70239
70240         * lib/crc.h: Include stddef.h, for size_t.
70241
70242 2005-10-22  Simon Josefsson  <jas@extundo.com>
70243
70244         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
70245         arcfour_context struct (simplify test vector testing in GNU
70246         Shishi).
70247
70248 2005-10-21  Simon Josefsson  <jas@extundo.com>
70249
70250         * modules/des, modules/des-tests: New files.
70251
70252         * modules/gc-des, modules/gc-des-tests: New files.
70253
70254         * tests/test-des.c, tests/test-gc-des.c: New file.
70255
70256 2005-10-21  Simon Josefsson  <jas@extundo.com>
70257
70258         * modules/arctwo, modules/arctwo-tests: New files.
70259
70260         * tests/test-arctwo.c: New file.
70261
70262         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
70263
70264         * tests/test-gc-arctwo.c: New file.
70265
70266 2005-10-21  Simon Josefsson  <jas@extundo.com>
70267
70268         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
70269         Bruno Haible <bruno@clisp.org>.
70270
70271         * m4/gc-des.m4: New file.
70272
70273 2005-10-21  Simon Josefsson  <jas@extundo.com>
70274
70275         * m4/arctwo.m4: New file.
70276
70277         * m4/gc-arctwo.m4: New file.
70278
70279 2005-10-21  Simon Josefsson  <jas@extundo.com>
70280
70281         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
70282         block.
70283
70284 2005-10-21  Simon Josefsson  <jas@extundo.com>
70285
70286         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
70287         <bruno@clisp.org>.
70288
70289         * lib/hmac-sha1.c (hmac_sha1): Likewise.
70290
70291         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
70292         Bruno Haible <bruno@clisp.org>.
70293
70294         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
70295         <bruno@clisp.org>.
70296
70297 2005-10-21  Simon Josefsson  <jas@extundo.com>
70298
70299         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
70300
70301 2005-10-21  Simon Josefsson  <jas@extundo.com>
70302
70303         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
70304
70305 2005-10-21  Simon Josefsson  <jas@extundo.com>
70306
70307         * lib/des.h, lib/des.c: New files.
70308
70309         * lib/gc-gnulib.c: Support DES.c
70310
70311 2005-10-21  Simon Josefsson  <jas@extundo.com>
70312
70313         * lib/arctwo.h, lib/arctwo.c: New files.
70314
70315         * lib/gc-gnulib.c: Support ARCTWO.
70316
70317 2005-10-21  Simon Josefsson  <jas@extundo.com>
70318
70319         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
70320         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70321
70322 2005-10-21  Simon Josefsson  <jas@extundo.com>
70323
70324         * gnulib-tool (func_import, func_create_testdir): Define automake
70325         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
70326         Makefile.am snippet),
70327         suggested by Bruno Haible <bruno@clisp.org>.
70328
70329         * modules/gc (Makefile.am): Use it.
70330
70331 2005-10-21  Bruno Haible  <bruno@clisp.org>
70332
70333         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
70334         patch.
70335
70336 2005-10-19  Simon Josefsson  <jas@extundo.com>
70337
70338         * tests/test-gc-rijndael.c: New file.
70339
70340         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
70341
70342 2005-10-19  Simon Josefsson  <jas@extundo.com>
70343
70344         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
70345         interface too.
70346
70347 2005-10-19  Simon Josefsson  <jas@extundo.com>
70348
70349         * tests/test-gc-arcfour.c: New file.
70350
70351         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
70352
70353 2005-10-19  Simon Josefsson  <jas@extundo.com>
70354
70355         * modules/gc-md4, modules/gc-md4-tests: New file.
70356
70357         * tests/test-gc-md4.c: New file.
70358
70359 2005-10-19  Simon Josefsson  <jas@extundo.com>
70360
70361         * m4/gc-md4.m4: New file.
70362
70363 2005-10-19  Simon Josefsson  <jas@extundo.com>
70364
70365         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
70366         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
70367         <kasal@ucw.cz>.
70368
70369 2005-10-19  Simon Josefsson  <jas@extundo.com>
70370
70371         * m4/gc-arcfour.m4: New file.
70372
70373         * m4/gc-rijndael.m4: New file.
70374
70375 2005-10-19  Simon Josefsson  <jas@extundo.com>
70376
70377         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
70378
70379 2005-10-19  Simon Josefsson  <jas@extundo.com>
70380
70381         * lib/gc-gnulib.c: Support ARCFOUR.
70382
70383 2005-10-19  Simon Josefsson  <jas@extundo.com>
70384
70385         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
70386         support.
70387
70388         * lib/gc.h: Add ECB enum type.
70389
70390         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
70391
70392 2005-10-18  Simon Josefsson  <jas@extundo.com>
70393
70394         * tests/test-md5.c: New file.
70395
70396         * modules/md5-tests: New file.
70397
70398 2005-10-18  Simon Josefsson  <jas@extundo.com>
70399
70400         * tests/test-md4.c: New file.
70401
70402         * modules/md4, modules/md4-tests: New files.
70403
70404 2005-10-18  Simon Josefsson  <jas@extundo.com>
70405
70406         * m4/md4.m4: New file.
70407
70408 2005-10-18  Simon Josefsson  <jas@extundo.com>
70409
70410         * lib/md4.h, lib/md4.c: New files, based on md5.?.
70411
70412 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
70413
70414         * gnulib-tool (func_create_testdir): Omit the second check whether
70415         BUILT_SOURCES in nonempty.
70416
70417 2005-10-17  Simon Josefsson  <jas@extundo.com>
70418
70419         * tests/test-rijndael.c: New file.
70420
70421 2005-10-17  Simon Josefsson  <jas@extundo.com>
70422
70423         * modules/sha1: Depend on stdint instead of md5.
70424
70425         * modules/md5: Depend on stdint, remove uint32_t.
70426
70427 2005-10-17  Simon Josefsson  <jas@extundo.com>
70428
70429         * modules/gc-sha1-tests: New file.
70430
70431         * tests/test-gc-sha1.c: New file.
70432
70433 2005-10-17  Simon Josefsson  <jas@extundo.com>
70434
70435         * m4/md5.m4: Remove call to uint32_t.m4.
70436
70437 2005-10-17  Simon Josefsson  <jas@extundo.com>
70438
70439         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
70440
70441         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
70442         md5.h.
70443
70444         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
70445
70446         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
70447
70448 2005-10-17  Simon Josefsson  <jas@extundo.com>
70449
70450         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
70451
70452 2005-10-17  Simon Josefsson  <jas@extundo.com>
70453
70454         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
70455
70456 2005-10-17  Simon Josefsson  <jas@extundo.com>
70457
70458         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
70459
70460         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
70461
70462 2005-10-17  Bruno Haible  <bruno@clisp.org>
70463
70464         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
70465         that it can also be used in a test.
70466
70467 2005-10-16  Bruno Haible  <bruno@clisp.org>
70468
70469         * gnulib-tool (func_emit_tests_Makefile_am): Also define
70470         TESTS_ENVIRONMENT, so that individual tests can augment it.
70471
70472         * gnulib-tool (func_create_testdir): Use an intermediate target for
70473         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
70474         macros, like $(ALLOCA_H), which cannot be passed through the command
70475         line.
70476
70477 2005-10-15  Simon Josefsson  <jas@extundo.com>
70478
70479         * modules/rijndael-tests: New file.
70480
70481         * modules/rijndael: New file.
70482
70483 2005-10-15  Simon Josefsson  <jas@extundo.com>
70484
70485         * m4/rijndael.m4: New file.
70486
70487 2005-10-15  Simon Josefsson  <jas@extundo.com>
70488
70489         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
70490
70491         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
70492
70493 2005-10-14  Simon Josefsson  <jas@extundo.com>
70494
70495         * tests/test-arcfour.c: New file.
70496
70497         * modules/arcfour, modules/arcfour-tests: New files.
70498
70499 2005-10-14  Simon Josefsson  <jas@extundo.com>
70500
70501         * m4/arcfour.m4: New file.
70502
70503 2005-10-14  Simon Josefsson  <jas@extundo.com>
70504
70505         * lib/arcfour.h, lib/arcfour.c: New files.
70506
70507 2005-10-14  Roland McGrath  <roland@redhat.com>
70508
70509         Import from libc.  [BZ #1331]
70510         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
70511         macro argument.
70512         Reported by Matej Vela <vela@debian.org>.
70513
70514 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70515
70516         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
70517         include <wchar.h>; no longer needed.
70518
70519 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70520
70521         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
70522
70523 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
70524         and  Ulrich Drepper  <drepper@redhat.com>
70525
70526         Import from libc.
70527         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
70528         instead of inline stream orientation test and two separate
70529         function calls.  Pay no attention to USE_IN_LIBIO.
70530
70531 2005-10-13  Simon Josefsson  <jas@extundo.com>
70532
70533         * modules/gc-hmac-md5-tests: New file.
70534
70535         * tests/test-gc-hmac-sha1.c: New file.
70536
70537         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
70538
70539         * modules/gc-hmac-md5-tests: New file.
70540
70541         * tests/test-gc-md5.c: New file.
70542
70543         * modules/gc-md5-tests: New file.
70544
70545 2005-10-13  Simon Josefsson  <jas@extundo.com>
70546
70547         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
70548         Move memory allocation outside of loop.
70549
70550 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
70551
70552         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
70553         intermediate directory is in a read-only file system.  Problem
70554         reported by Eric Blake.
70555
70556 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
70557
70558         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
70559
70560 2005-10-12  Simon Josefsson  <jas@extundo.com>
70561
70562         * tests/test-hmac-sha1.c: New file.
70563
70564         * modules/hmac-sha1-tests: New file.
70565
70566         * modules/hmac-sha1: New file.
70567
70568 2005-10-12  Simon Josefsson  <jas@extundo.com>
70569
70570         * modules/gc-sha1: New file.
70571
70572 2005-10-12  Simon Josefsson  <jas@extundo.com>
70573
70574         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
70575
70576         * tests/test-gc-pbkdf2-sha1.c: New file.
70577
70578 2005-10-12  Simon Josefsson  <jas@extundo.com>
70579
70580         * modules/gc-md5, modules/gc-hmac-md5: New files.
70581
70582         * modules/gc (Files): Remove md5, memxor and hmac files.
70583
70584 2005-10-12  Simon Josefsson  <jas@extundo.com>
70585
70586         * m4/gc-pbkdf2-sha1.m4: New file.
70587
70588         * m4/gc-hmac-sha1.m4: New file.
70589
70590         * m4/gc-sha1: New file.
70591
70592         * m4/hmac-sha1.m4: New file.
70593
70594 2005-10-12  Simon Josefsson  <jas@extundo.com>
70595
70596         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
70597
70598         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
70599
70600 2005-10-12  Simon Josefsson  <jas@extundo.com>
70601
70602         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
70603         suggested by Bruno Haible <bruno@clisp.org>.
70604
70605 2005-10-12  Simon Josefsson  <jas@extundo.com>
70606
70607         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
70608
70609 2005-10-12  Simon Josefsson  <jas@extundo.com>
70610
70611         * lib/gc-pbkdf2-sha1.c: New file.
70612
70613         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
70614
70615 2005-10-12  Simon Josefsson  <jas@extundo.com>
70616
70617         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
70618
70619         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
70620
70621 2005-10-12  Simon Josefsson  <jas@extundo.com>
70622
70623         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
70624         GC_USE_HMAC_MD5, respectively.
70625
70626         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
70627         (gc_md5): Fix typo.
70628
70629         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
70630
70631         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
70632
70633         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
70634
70635 2005-10-12  Bruno Haible  <bruno@clisp.org>
70636
70637         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
70638         Reported by Stepan Kasal <kasal@ucw.cz>.
70639
70640 2005-10-11  Simon Josefsson  <jas@extundo.com>
70641
70642         * tests/test-crc.c: New file.
70643
70644         * modules/crc, modules/crc-tests: New files.
70645
70646 2005-10-11  Simon Josefsson  <jas@extundo.com>
70647
70648         * m4/crc.m4: New file.
70649
70650 2005-10-11  Simon Josefsson  <jas@extundo.com>
70651
70652         * lib/gc.h: Add gc_hash and gc_hash_buffer.
70653
70654         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
70655
70656         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
70657
70658 2005-10-11  Simon Josefsson  <jas@extundo.com>
70659
70660         * lib/crc.h, lib/crc.c: New files.
70661
70662         * lib/gc.h (gc_hash_buffer): Add doc.
70663
70664 2005-10-11  Bruno Haible  <bruno@clisp.org>
70665
70666         * modules/c-strcasestr: New file.
70667         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
70668
70669 2005-10-11  Bruno Haible  <bruno@clisp.org>
70670
70671         * modules/c-strcase: New file.
70672         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
70673
70674 2005-10-11  Bruno Haible  <bruno@clisp.org>
70675
70676         * lib/strcasecmp.c: Include limits.h.
70677         (strcasecmp): Avoid integer overflow on exotic platforms.
70678         * lib/strncasecmp.c: Include limits.h.
70679         (strncasecmp): Avoid integer overflow on exotic platforms.
70680         Reported by Paul Eggert.
70681
70682 2005-10-11  Bruno Haible  <bruno@clisp.org>
70683
70684         * lib/c-strcasestr.h: New file, from GNU gettext.
70685         * lib/c-strcasestr.c: New file, from GNU gettext.
70686
70687 2005-10-11  Bruno Haible  <bruno@clisp.org>
70688
70689         * lib/c-strcase.h: New file, from GNU gettext.
70690         * lib/c-strcasecmp.c: New file, from GNU gettext.
70691         * lib/c-strncasecmp.c: New file, from GNU gettext.
70692
70693 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70694
70695         * modules/mempcpy (License): GPL -> LGPL.
70696         * modules/strchrnul (License): Likewise.
70697         * modules/sysexits (License): Likewise.
70698
70699 2005-10-08  Simon Josefsson  <jas@extundo.com>
70700
70701         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
70702
70703 2005-10-07  Simon Josefsson  <jas@extundo.com>
70704
70705         * m4/memxor.m4: Remove gl_C_RESTRICT call.
70706
70707 2005-10-06  Simon Josefsson  <jas@extundo.com>
70708
70709         * tests/test-hmac-md5.c: New file.
70710
70711         * modules/hmac-md5-tests: New file.
70712
70713         * modules/hmac-md5: New file.
70714
70715 2005-10-06  Simon Josefsson  <jas@extundo.com>
70716
70717         * m4/hmac-md5.m4: New file.
70718
70719         * m4/memxor.m4: Require gl_C_RESTRICT.
70720
70721 2005-10-06  Simon Josefsson  <jas@extundo.com>
70722
70723         * lib/memxor.c (memxor): Avoid casts and warnings.
70724
70725 2005-10-06  Simon Josefsson  <jas@extundo.com>
70726
70727         * lib/hmac-md5.c: New file.
70728
70729         * lib/hmac.h: New file.
70730
70731 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70732
70733         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
70734         promotes to int, not unsigned int, to catch the AIX 5.3
70735         compiler bug.
70736
70737 2005-10-05  Simon Josefsson  <jas@extundo.com>
70738
70739         * modules/memxor: New file.
70740
70741         * modules/iconv (Files): Move config.rpath to havelib, it is used
70742         there.
70743
70744         * modules/havelib (Files): Add config.rpath.
70745
70746 2005-10-05  Simon Josefsson  <jas@extundo.com>
70747
70748         * m4/memxor.m4: New file.
70749
70750 2005-10-05  Simon Josefsson  <jas@extundo.com>
70751
70752         * lib/memxor.c (memxor): Fix compiler error.
70753
70754         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
70755         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
70756
70757         * lib/memxor.h, lib/memxor.c: New files.
70758
70759         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
70760         we assume all systems have it, suggested by Jim Meyering
70761         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
70762         any systems lack sys/socket.h; mingw32 is known to lack it, but we
70763         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
70764         same reasons.
70765
70766 2005-10-05  Simon Josefsson  <jas@extundo.com>
70767
70768         * config/srclist.txt: Add glibc bug 1423 for md5.h.
70769
70770 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
70771
70772         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
70773         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
70774         needed, since the source code now assumes these .h files.
70775
70776 2005-10-05  Derek Price  <derek@ximbiot.com>
70777
70778         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
70779
70780 2005-10-05  Bruno Haible  <bruno@clisp.org>
70781
70782         * modules/stdint (License): Change to LGPL.
70783
70784 2005-10-04  Simon Josefsson  <jas@extundo.com>
70785
70786         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
70787         D. Baushke" <mdb@gnu.org>.
70788
70789 2005-10-04  Bruno Haible  <bruno@clisp.org>
70790
70791         * lib/verify.h (verify_true): Provide alternative definition for C++.
70792
70793 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
70794
70795         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
70796         (SSIZE_MAX): New macro, if not already defined.
70797         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
70798         than 2 GiB.
70799
70800 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70801
70802         Sync from coreutils.
70803         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
70804         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
70805         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
70806         ULLONG_MAX doesn't work with 2.7.2.1.
70807
70808 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70809
70810         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
70811         From Ben Pfaff.
70812
70813         * modules/exclude (Depends-on): Depend on verify.
70814         * modules/strtoimax (Depends-on): Likewise.
70815         * modules/utimecmp (Depends-on): Likewise.
70816
70817 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70818
70819         * lib/exclude.c: Include verify.h.
70820         (verify): Remove.  All callers changed to use verify.h's version.
70821         * lib/strtoimax.c: Likewise.
70822         * lib/utimecmp.c: Likewis.e
70823
70824         Sync from coreutils.
70825         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
70826         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
70827         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
70828         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
70829         bother returning ENOSYS if settimeofday or stime fails; just let
70830         them return whatever errno they want to return.
70831         * lib/utimens.c: Include unistd.h, for dup2.
70832         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
70833         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
70834
70835 2005-10-02  Jim Meyering  <jim@meyering.net>
70836
70837         Sync from coreutils.
70838         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
70839         from glibc-2.2.5 that fails for read-only files.
70840
70841 2005-10-02  Jim Meyering  <jim@meyering.net>
70842
70843         Sync from coreutils.
70844         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
70845         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
70846         `#if HAVE_CONFIG_H'.
70847         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
70848         Remove AT_FDCWD test.
70849         Do not consume the fd unless successful.
70850         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
70851         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
70852         block, so that we don't even try to compile it if settimeofday is
70853         available.  This works around a compilation failure on OSF1 V5.1,
70854         due to stime requiring a `long int*' while tv_sec is `int'.
70855
70856 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
70857
70858         Sync from coreutils.
70859         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
70860         against `yes', rather than just testing for nonempty.
70861
70862 2005-10-01  Simon Josefsson  <jas@extundo.com>
70863
70864         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
70865         and Darwin.
70866
70867         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
70868         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
70869         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
70870         freeaddrinfo and gai_strerror are declared by the POSIX headers.
70871         Check if struct addrinfo is declared.
70872
70873 2005-10-01  Simon Josefsson  <jas@extundo.com>
70874
70875         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
70876         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
70877         AI_* and EAI_* definitions.  Protect function declarations.
70878
70879 2005-10-01  Jim Meyering  <jim@meyering.net>
70880
70881         Sync from coreutils.
70882
70883         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
70884         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
70885         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
70886         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
70887         in the inet and nsl libraries.  Required on Solaris 5.7.
70888
70889 2005-10-01  Jim Meyering  <jim@meyering.net>
70890
70891         Sync from coreutils.
70892         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
70893         in the inet and nsl libraries.  Required on Solaris 5.7.
70894
70895 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
70896
70897         * lib/getdelim.c (getdelim): Remove unused variables.
70898
70899 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
70900
70901         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
70902         so that the code works even with ancient cpp.  Portability problem
70903         with GCC 2.7.2.1 reported by Thomas M.Ott.
70904
70905 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
70906
70907         * modules/regex (Depends-on): Add strcase.
70908
70909         * modules/gethostname (Licence): Change from GPL to LGPL, since
70910         gethostname.c is a trivial implementation of a standard library
70911         function.
70912         * modules/poll (License): Change from GPL to LGPL, since it's
70913         derived from LGPL code.
70914
70915 2005-09-27  Jim Meyering  <jim@meyering.net>
70916
70917         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
70918         HAVE_CONFIG_H.
70919
70920         * lib/intprops.h (signed_type_or_expr__): Define.
70921         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
70922         for unsigned types.
70923
70924 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
70925
70926         * lib/verify.h (verify_expr): Remove, replacing with:
70927         (verify_true): New macro that returns true instead of void.
70928         (verify_type__): Remove.
70929         (verify): Use verify_true rather than verify_type__.
70930
70931 2005-09-26  Bruno Haible  <bruno@clisp.org>
70932
70933         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
70934         is necessary.
70935         (lib_SOURCES): Remove mbchar.c.
70936         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
70937         (Files): Add m4/mbrtowc.m4.
70938         * modules/mbiter: Likewise.
70939         * modules/mbuiter: Likewise.
70940
70941 2005-09-26  Bruno Haible  <bruno@clisp.org>
70942
70943         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
70944         compile mbchar.c if they are not both present.
70945         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
70946         * m4/mbiter.m4 (gl_MBITER): Likewise.
70947         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
70948         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
70949         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
70950
70951 2005-09-25  Jim Meyering  <jim@meyering.net>
70952
70953         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
70954         also uses socklen_t.
70955
70956 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
70957
70958         * lib/utimens.c (ENOSYS): Define if not already defined.
70959         (futimens): Support having a null PATH if the file descriptor
70960         is nonnegative.
70961
70962         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
70963         Remove.
70964         (__attribute): Define to empty unless GCC 3.1 or later.
70965         This works around a core dump on OpenBSD 3.4, which has GCC
70966         2.95.3, which dumps core when given __attribute__(()).  It also
70967         simplifies other tests, since we really don't want to bother with
70968         worrying about which ancient version of GCC supported what.
70969         Original problem reported by Yoann Vandoorselaere, with part of
70970         the fix suggested by Derek Price.
70971
70972 2005-09-24  Jim Meyering  <jim@meyering.net>
70973
70974         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
70975         so we can once again use a positive bitfield width of 1 -- now we
70976         don't have to explain why we were using a bitfield width of 2.
70977
70978 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
70979
70980         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
70981         and similarly for the other external symbols.  Problem reported
70982         by James Gallager.
70983
70984         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
70985         bug reported by Jim Meyering.
70986
70987         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
70988         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
70989         not needed, since socklen is a prerequisite module.
70990
70991 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
70992
70993         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
70994         Problem reported by Eric Blake.
70995         (getaddrinfo): Initialize se so that it's not garbage.
70996         Redo internal storage allocation so that it doesn't make unportable
70997         assumptions about alignment.
70998         Fix a memory leak.
70999
71000         * lib/utimens.c (futimens): Use futimesat if available.
71001         Prefer it to futimes since it doesn't have the futimes bug.
71002
71003         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
71004         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
71005         Instead, declare a function that returns a pointer to an array,
71006         and use verify_type__ to declare the size of the array.
71007         Problem and germ of a solution reported by Bruno Haible.
71008         (verify_type__): Use 2, not 1, for bitfield size, to avoid
71009         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
71010
71011 2005-09-23  Jim Meyering  <jim@meyering.net>
71012
71013         Sync from coreutils.
71014         Correct build failure (socklen_t not defined) on at least
71015         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
71016         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
71017
71018 2005-09-23  Jim Meyering  <jim@meyering.net>
71019
71020         * modules/getaddrinfo (Depends-on): Add socklen.
71021
71022 2005-09-23  Bruno Haible  <bruno@clisp.org>
71023
71024         * tests/test-verify.c: New file.
71025
71026 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71027
71028         Sync from coreutils.
71029
71030         * modules/argmatch (Depends-on): Add verify.
71031         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
71032         unistd-safer.
71033         * modules/save-cwd (Depends-on): Likewise.
71034
71035         * modules/openat (Files): Add lib/openat-die.c.
71036         (Depends-on): Remove error, exitfail.
71037         Add dirname.
71038
71039         * modules/verify: New file.
71040         * MODULES.html.sh (Diagnostics <assert.h>): New section,
71041         with "verify" module.
71042
71043 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71044
71045         Sync from coreutils.
71046
71047         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
71048         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
71049         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
71050         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
71051         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
71052         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
71053         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
71054         Don't bother checking for string.h, stdlib.h, unistd.h.
71055         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
71056         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
71057         module's job.
71058         * m4/jm-macros.m4 (gl_MACROS): Likewise.
71059         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
71060
71061         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
71062         (gl_GETDATE): Use it.
71063
71064         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
71065
71066 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71067
71068         Sync from coreutils.
71069
71070         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
71071         stat-time.h.
71072         * lib/argmatch.h: Include verify.h
71073         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
71074         (ARGMATCH_ASSERT): Remove; unused.
71075         * lib/canonicalize.c: Assume STDC_HEADERS.
71076         * lib/exclude.c: Include "strcase.h".
71077         * lib/regex_internal.h [!defined _LIBC]: Likewise.
71078         * lib/getusershell.c: Include stdio--.h rather than stdio.h
71079         and stdio-safer.h.
71080         (getusershell): Call fopen, not fopen_safer.
71081         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
71082         Do not include unistd-safer.h.
71083         (save_cwd): Don't call fd_safer; no longer needed
71084         now that we include fcntl--.h.
71085
71086         * lib/getdate.y (relative_time): New type.
71087         (RELATIVE_TIME_0): New constant.
71088         (parser_control): Use relative_time instead of doing it ourselves.
71089         (%union): Add new relative_time rel member.
71090         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
71091         Now typeless.
71092         (relunit, relunit_snumber): Now of type rel.
71093         (zone, rel, relunit, get_date): Adjust to above changes.
71094
71095         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
71096         Do not include unistd-safer.h.
71097         (getloadavg): Don't call fd_safer; no longer needed
71098         now that we include fcntl--.h.
71099
71100         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
71101         (make_dir_parents): Treat ENOSYS like EEXIST.
71102
71103         Improve quality of diagnostics on restore_cwd failure.
71104         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
71105         (make_dir_parents): Last arg is now int * (for errno), not bool *.
71106         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
71107         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
71108         each time through the loop.  Do not diagnose restore_cwd failure;
71109         that is the caller's job (and perhaps the caller does not care).
71110
71111         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
71112         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
71113         If the file already exists but is not a directory, don't bother
71114         to try to make its parents.
71115         Close potential file descriptor leak if we can't chdir("/") (!).
71116         Don't always return true if chdir($PWD) fails; return true only
71117         if the requested action was done successfully (except for the
71118         chdir($PWD)).
71119         Don't log final directory unless we actually made it.
71120         Refactor to avoid duplicate code to fix up permissions.
71121         Don't attempt to fix up parent permissions if chdir($PWD) fails.
71122
71123         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
71124         to make it a bit faster and (I hope) clearer.
71125         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
71126         Fix bug in formats like %2N.
71127
71128         * lib/verify.h: New file.
71129
71130 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71131
71132         Sync from coreutils.
71133         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
71134
71135 2005-09-22  Jim Meyering  <jim@meyering.net>
71136
71137         Sync from coreutils.
71138
71139         * m4/lstat.m4 (gl_FUNC_LSTAT):
71140         Use AC_LIBSOURCES to require lstat.c and lstat.h.
71141         Remove obsolete comment.
71142         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
71143         * m4/xstrtod.m4: Likewise.
71144
71145         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
71146
71147 2005-09-22  Jim Meyering  <jim@meyering.net>
71148
71149         Sync from coreutils.
71150
71151         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
71152
71153         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
71154         the .tm_year member, since otherwise gcc-4.0 would now warn about
71155         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
71156
71157         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
71158         order to avoid an unsuppressible warning from gcc on 64-bit systems.
71159
71160         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
71161         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
71162         when run in a time zone for which daylight savings time is in effect
71163         for the starting date.
71164
71165         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
71166         stop us from restricting permissions of just-created absolute-named
71167         directories.
71168         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
71169         to restore initial working directory.
71170         * lib/mkdir-p.c (make_dir_parents): New parameter:
71171         different_working_dir, to tell caller if/when we change the working
71172         directory and are unable to return to the initial one.
71173         * lib/mkdir-p.h (make_dir_parents): Update prototype.
71174         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
71175         `return false'.  This fixes a bug introduced on 2004-07-30.
71176
71177         * lib/openat.c (fdopendir): Be sure to close the supplied
71178         file descriptor before returning.  This makes our replacement
71179         implementation a little closer to Solaris's, where fdopendir
71180         ties the file descriptor to the returned DIR* pointer.
71181         * lib/openat.c (unlinkat): New function.
71182         * lib/openat.h (unlinkat): Add prototype.
71183         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
71184         (openat_restore_fail): Rename from openat_restore_die.
71185         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
71186
71187         Provide an alternative to exiting immediately upon save_cwd or
71188         restore_cwd failure.  Now, an application can arrange e.g.,
71189         to perform a longjump in that case.
71190         * lib/openat.c: Include dirname.h.
71191         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
71192         (rpl_openat, fdopendir, fstatat): Call openat_save_die
71193         and openat_restore_die rather than calling error directly.
71194         Don't include "error.h" or "exitfail.h"; they're no longer needed.
71195
71196         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
71197         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
71198         define.
71199
71200         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
71201         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
71202                             int utc, int nanoseconds);
71203         Background:
71204         date should not have to allocate a megabyte of virtual memory to
71205         handle a format argument like +%1048575T.  When implemented with
71206         strftime, it must allocate such a buffer, use strftime to fill it
71207         in, print it, then free it.
71208         With fprintftime, it simply prints everything and exits.
71209         With no need for memory allocation, that's one fewer way to fail.
71210         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
71211         optional field width, not before, so we accept %9:z, not %:9z.
71212         (my_strftime): Be sure to use L_('x') for literals.
71213
71214         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
71215         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
71216         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
71217         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
71218         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
71219         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
71220         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
71221         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
71222         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
71223         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
71224         * lib/xgethostname.c, lib/xreadlink.c:
71225         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
71226
71227         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
71228         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
71229         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
71230         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
71231         and don't include <sys/file.h>).
71232
71233 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
71234
71235         Sync from coreutils.
71236
71237         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
71238         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
71239         [!LDAV_DONE]: Avoid unused variable warning.
71240
71241 2005-09-21  Bruno Haible  <bruno@clisp.org>
71242
71243         * lib/unicodeio.h (unicode_to_mb): New declaration.
71244
71245 2005-09-20  Derek Price  <derek@ximbiot.com>
71246
71247         * lib/getaddrinfo.c: Don't include <netdb.h> included from
71248         getaddrinfo.h.
71249
71250 2005-09-20  Bruno Haible  <bruno@clisp.org>
71251
71252         * gnulib-tool: Remove trailing slashes from the values specified for
71253         --source-base, --m4-base, --tests-base, --aux-dir.
71254         Suggested by Simon Josefsson <jas@extundo.com>.
71255
71256 2005-09-20  Bruno Haible  <bruno@clisp.org>
71257
71258         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
71259         func_modules_to_filelist, func_import, func_create_testdir): Make all
71260         sorting results locale-independent, so that gnulib-cache.m4 doesn't
71261         change when gnulib-tool is invoked in a different locale.
71262
71263 2005-09-19  Simon Josefsson  <jas@extundo.com>
71264
71265         * m4/socklen.m4: Fix typo.
71266
71267 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71268
71269         Use a consistent style for including <config.h>.
71270         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
71271         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
71272         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
71273         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
71274         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
71275         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
71276         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
71277         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
71278         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
71279         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
71280         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
71281         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
71282         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
71283         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
71284         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
71285         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
71286         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
71287         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
71288         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
71289         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
71290         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
71291         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
71292         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
71293         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
71294         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
71295         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
71296         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
71297         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
71298         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
71299         lib/xstrtoumax.c, lib/yesno.c:
71300         Standardize inclusion of config.h.
71301         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
71302         lib/inttostr.h:  Removed inclusion of config.h from header files.
71303         * lib/inttostr.c:  Adjusted in-tree users.
71304         * lib/timespec.h: Remove superfluous warning to include config.h.
71305         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
71306         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
71307         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
71308         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
71309         config.h with HAVE_CONFIG_H.
71310
71311 2005-09-19  Jim Meyering  <jim@meyering.net>
71312
71313         * modules/pathmax (License): Change to LGPL.
71314
71315 2005-09-19  Derek Price  <derek@ximbiot.com>
71316
71317         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
71318
71319 2005-09-19  Bruno Haible  <bruno@clisp.org>
71320
71321         * gnulib-tool (import): Provide default for --tests-base.
71322
71323 2005-09-19  Bruno Haible  <bruno@clisp.org>
71324
71325         * doc/quote.texi: New file, extracted from gnulib.texi.
71326         * doc/ctime.texi: New file, extracted from gnulib.texi.
71327         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
71328         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
71329         * doc/gnulib.texi: Include them.
71330
71331 2005-09-18  Bruno Haible  <bruno@clisp.org>
71332
71333         Portability fix.
71334         * gnulib-tool (func_readlink): New function.
71335         (func_ln_if_changed): Use it.
71336
71337 2005-09-18  Bruno Haible  <bruno@clisp.org>
71338
71339         * gnulib-tool: Support --with-tests also with --import.
71340         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
71341         (func_import): Use variables $testsbase and $inctests. Emit a
71342         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
71343         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
71344         SUBDIRS += $testsdir.
71345         (func_create_testdir): Update.
71346
71347 2005-09-18  Bruno Haible  <bruno@clisp.org>
71348
71349         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
71350         instead of $dry_run.
71351         (func_cp_if_changed, func_mv_if_changed): Remove functions.
71352         (func_ln_if_changed): Don't handle dry-run here.
71353         (func_import): In dry-run mode, detect more precisely which actions
71354         would be performed, and don't use "...ing" verbs.
71355
71356 2005-09-18  Bruno Haible  <bruno@clisp.org>
71357
71358         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
71359         (func_import): Use join on two temporary files instead of three nested
71360         loops, in order to determine which files are new or old.
71361
71362 2005-09-18  Bruno Haible  <bruno@clisp.org>
71363
71364         * gnulib-tool (func_import): Comment out code that spits out the
71365         new files with --dry-run.
71366
71367 2005-09-18  Bruno Haible  <bruno@clisp.org>
71368
71369         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
71370
71371 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71372
71373         * lib/stat-time.h: New file.
71374         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
71375         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
71376         in a different way.
71377         (timespec_cmp): New function.
71378         * lib/utimecmp.c: Include stat-time.h.
71379         (SYSCALL_RESOLUTION): Depend on whether various struct stat
71380         members exist, not on the obsolescent ST_MTIM_NSEC.
71381         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
71382
71383 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71384
71385         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
71386
71387 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71388
71389         * MODULES.html.sh (File system functions): Add stat-time.
71390         * modules/stat-time: New file.
71391         * modules/timespec (Files): Remove m4/st_mtim.m4; this
71392         is now done in a different way, by the stat-time module.
71393         * modules/utimecmp (Depends-on): Add stat-time.
71394
71395 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
71396
71397         * m4/st_mtim.m4: Remove.  Superseded by...
71398         * m4/stat-time.m4: New file.
71399         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
71400         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
71401
71402 2005-09-15  Derek Price  <derek@ximbiot.com>
71403
71404         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
71405
71406 2005-09-15  Derek Price  <derek@ximbiot.com>
71407
71408         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
71409         * lib/regex_internal.c: Ditto, using this...
71410         (__GNUC_PREREQ): ...new macro.
71411         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
71412         using...
71413         (__GNUC_PREREQ): ...this new macro.
71414
71415         * lib/strstr.h: Include string.h. Define strstr as a macro here.
71416
71417 2005-09-15  Derek Price  <derek@ximbiot.com>
71418             Paul Eggert  <eggert@cs.ucla.edu>
71419
71420         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
71421         changes, consolidating in...
71422         * lib/regex_internal.h: ...this file.
71423
71424 2005-09-13  Jim Meyering  <jim@meyering.net>
71425
71426         * lib/canon-host.c: Filter through gnu indent and reword comments
71427         slightly.
71428         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
71429
71430 2005-09-13  Derek Price  <derek@ximbiot.com>
71431
71432         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
71433         failure.
71434         Reported by Jim Meyering  <jim@meyering.net>.
71435
71436 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71437
71438         * lib/base64.c: Typo.
71439         (base64_encode): Put b64str in initialized data section.
71440
71441 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
71442
71443         Merge glibc and coreutils changes into gnulib, plus a few
71444         extra fixes.
71445         * lib/md5.c: Use #error rather than a string.
71446         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
71447         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
71448         (__attribute__): Define to empty for non recent-GCC.
71449         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
71450         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
71451         Renamed from their non-__ counterparts, with new macros replacing
71452         them if not _LIBC.  Add __THROW attribute.
71453         (rol): Remove.
71454         (struct md5_ctx): Align buffer if using GCC.
71455         * lib/sha1.h (struct sha1_ctx): Likewise.
71456         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
71457         The old name was backwards.
71458         (NOTSWAP): Remove; not used.
71459         (rol): New macro, moved here from md5.h.
71460         (sha1_process_block): Remove a FIXME that doesn't make sense.
71461
71462 2005-09-12  Derek Price  <derek@ximbiot.com>
71463
71464         Return usable errors from canon-host.
71465         * lib/canon-host.h: New file.
71466         * lib/canon-host.c (canon_host): Wrap...
71467         (canon_host_r): ...this new function, which now relies exclusively on
71468         getaddrinfo.
71469         (ch_strerror): New function.
71470         (last_cherror): New global.
71471         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
71472         interface.
71473         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
71474         void *.
71475         (freeaddrinfo): Free ai->ai_canonname when set.
71476
71477 2005-09-12  Derek Price  <derek@ximbiot.com>
71478
71479         Make canon-host require getaddrinfo.
71480         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
71481         AC_LIBSOURCE canon-host.h.  Call...
71482         (gl_PREREQ_CANON_HOST): ...this new function, which requires
71483         gl_GETADDRINFO.
71484         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
71485
71486 2005-09-12  Derek Price  <derek@ximbiot.com>
71487
71488         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
71489         LGPL.
71490         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
71491
71492 2005-09-12  Derek Price  <derek@ximbiot.com>
71493
71494         * lib/gai_strerror.c: Include config.h when available.  Include
71495         getaddrinfo.h before other headers to test interface.
71496         Reported by Larry Jones <lawrence.jones@ugs.com>.
71497
71498 2005-09-12  Derek Price  <derek@ximbiot.com>
71499             Paul Eggert  <eggert@cs.ucla.edu>
71500
71501         * modules/glob (Files): Add glob-libc.h.
71502
71503 2005-09-12  Derek Price  <derek@ximbiot.com>
71504             Paul Eggert  <eggert@cs.ucla.edu>
71505
71506         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
71507         glob_.h, glob-libc.h.
71508         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
71509
71510 2005-09-12  Derek Price  <derek@ximbiot.com>
71511             Paul Eggert  <eggert@cs.ucla.edu>
71512
71513         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
71514         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
71515         protecting things that should be done only in gnulib contexts.
71516         * lib/glob_.h: New file, containing only the glob things needed for
71517         gnulib.
71518         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
71519         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
71520         (glob, globfree, glob_pattern_p): Now defined simply in terms of
71521         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
71522         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
71523         and to respect the namespace rules better.
71524
71525 2005-09-08  Simon Josefsson  <jas@extundo.com>
71526
71527         * modules/socklen: New file.
71528
71529 2005-09-08  Simon Josefsson  <jas@extundo.com>
71530
71531         * m4/socklen.m4: New file.
71532
71533 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71534
71535         * modules/utimens (Files): Add m4/utimbuf.m4, since
71536         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
71537         Reported by Sergey Poznyakoff.
71538
71539 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71540
71541         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
71542         definitions, since that's the preferred style in glibc.
71543         Fix a minor spacing issue, and update copyright notice to match
71544         glibc's.
71545
71546 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71547
71548         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
71549
71550 2005-09-06  Simon Josefsson  <jas@extundo.com>
71551
71552         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
71553         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
71554
71555 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71556
71557         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
71558         warning.
71559
71560 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71561
71562         * config/srclist.txt: Add glibc bug 1302.
71563
71564 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
71565
71566         Change bitset word type from unsigned int to unsigned long int,
71567         as this has better performance on typical 64-bit hosts.
71568         Port bitset code to hosts with unusual word sizes.
71569         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
71570         (build_collating_symbol):
71571         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
71572         argument is a bitset.  This is merely a style issue, but it makes
71573         it clearer that an entire array is expected.
71574         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
71575         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
71576         Port to the case where bitset_word is not the same as unsigned int.
71577         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
71578         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
71579         Likewise.
71580         * lib/regexec.c (check_dst_limits_calc_pos_1,
71581         check_subexp_matching_top):
71582         (build_trtable, group_nodes_into_DFAstates):
71583         Likewise.
71584         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
71585         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
71586         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
71587         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
71588         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
71589         * lib/regcomp.c (optimize_subexps, lower_subexp):
71590         Work even if bitset_word has holes in its bitwise representation.
71591         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
71592         * lib/regexec.c (check_dst_limits_calc_pos_1,
71593         check_subexp_matching_top):
71594         Likewise.
71595         * lib/regex_internal.c (re_string_reconstruct):
71596         Don't assume UCHAR_MAX == 255.
71597         * lib/regex_internal.h (bitset_set_all): Likewise.
71598         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
71599         All uses changed.
71600         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
71601         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
71602         All uses changed.
71603         (BITSET_WORD_MAX): New macro.
71604         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
71605         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
71606         (bitset_empty, bitset_copy):
71607         Prefer sizeof (bitset) to multiplying it out ourselves.
71608         (bitset_not_merge): Remove; unused.
71609         (bitset_contain): Return bool, not unsigned int with one bit on.
71610         All callers changed.
71611         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
71612         alignment than re_node_set; do this by defining a new internal
71613         type struct dests_alloc and using it to allocate memory.
71614
71615 2005-09-05  Bruno Haible  <bruno@clisp.org>
71616
71617         * gnulib-tool (func_import): Fix comparison in handling of symbolic
71618         links.
71619
71620 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
71621
71622         * modules/size_max (Makefile.am): Add size_max.h
71623
71624 2005-09-04  Derek Price  <derek@ximbiot.com>
71625
71626         * gnulib-tool (func_import): Fix reversed $symbolic logic.
71627
71628 2005-09-03  Simon Josefsson  <jas@extundo.com>
71629
71630         * gnulib-tool: Fix typo.
71631
71632 2005-09-03  Simon Josefsson  <jas@extundo.com>
71633
71634         * config/srclist.txt: Add glibc bug 1293.
71635
71636 2005-09-03  Derek Price  <derek@ximbiot.com>
71637
71638         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
71639         From Larry Jones <lawrence.jones@ugs.com>.
71640
71641 2005-09-02  Simon Josefsson  <jas@extundo.com>
71642
71643         * modules/socklen: New file.
71644
71645 2005-09-02  Simon Josefsson  <jas@extundo.com>
71646
71647         * modules/havelib: New module.
71648
71649         * modules/gettext, modules/iconv, modules/lock, modules/readline:
71650         Use havelib.
71651
71652 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
71653
71654         Check for arithmetic overflow when calculating sizes, to prevent
71655         some buffer-overflow issues.  These patches are conservative, in the
71656         sense that when I couldn't determine whether an overflow was possible,
71657         I inserted a run-time check.
71658         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
71659         macros.
71660         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
71661         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
71662         (re_xnrealloc, re_x2nrealloc): New inline functions.
71663         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
71664         parse_bracket_exp):
71665         (build_equiv_class, build_charclass): Check for arithmetic overflow
71666         in size expression calculations.
71667         * lib/regex_internal.c (re_string_realloc_buffers):
71668         (build_wcs_upper_buffer, re_node_set_add_intersect):
71669         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
71670         (re_dfa_add_node, register_state): Likewise.
71671         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
71672         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
71673         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
71674         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
71675
71676 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
71677
71678         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
71679         m4/ulonglong.m4.  Problem reported by Martin Lambers.
71680
71681 2005-09-02  Bruno Haible  <bruno@clisp.org>
71682
71683         Support for lib vs. lib64 distinction on biarch platforms.
71684         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
71685         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
71686         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
71687
71688 2005-09-02  Bruno Haible  <bruno@clisp.org>
71689
71690         * gnulib-tool (import): In the other first-use case, provide defaults
71691         as well.
71692
71693 2005-09-02  Bruno Haible  <bruno@clisp.org>
71694
71695         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
71696         patches not yet found in the latest gettext release.
71697
71698 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71699
71700         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
71701         to avoid a collision with bits/local_lim.h in glibc.
71702         All uses changed.  Problem reported by Dmitry V. Levin in
71703         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
71704
71705         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
71706         bugs in int versus size_t comparisons.
71707         (re_string_context_at): Fix bug where the code assumed that
71708         Idx is signed.
71709
71710         Use bool where appropriate.
71711         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
71712         All callers changed.
71713         (calc_eclosure_iter): Likewise, for ROOT arg.
71714         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
71715         (build_charclass_op): Likewise, for NON_MATCH arg.
71716         * lib/regex_internal.c (re_string_allocate, re_string_construct):
71717         (re_string_construct_common): Likewise, for ICASE arg.
71718         * lib/regexec.c (re_search_2_stub, re_search_stub):
71719         Likewise, for RET_LEN arg.
71720         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
71721         (set_regs): Likewise, for FL_BACKTRACK arg.
71722         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
71723         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
71724         (calc_eclosure_iter, parse_bracket_exp):
71725         Use bool for internal variables that are booleans.
71726         * lib/regexec.c (re_search_internal, check_matching,
71727         proceed_next_node):
71728         (set_regs, build_sifted_states, sift_states_bkref):
71729         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
71730         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
71731         (find_collation_sequence_value):
71732         Likewise.
71733         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
71734         (re_node_set_compare):
71735         Return bool, not int. All callers changed.
71736         * lib/regexec.c (check_halt_node_context, check_dst_limits):
71737         (build_trtable, check_node_accept): Likewise.
71738         * lib/regex_internal.h: Include stdbool.h.
71739
71740         Fix bugs uncovered when converting to bool.
71741         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
71742         failure instead of charging ahead blindly.
71743         * lib/regex_internal.c (register_state): Likewise.
71744         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
71745         for freeing internal storage.
71746         (group_nodes_into_DFA_states): Use unsigned int, not int, for
71747         bitset pieces used as boolean, to avoid undefined behavior
71748         on hosts that do int overflow checking.
71749
71750 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71751
71752         * config/srclist.txt: Add glibc bugs 1285-1287.
71753
71754 2005-09-01  Jim Meyering  <jim@meyering.net>
71755
71756         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
71757         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
71758         Require gl_STAT_MACROS, too.
71759
71760 2005-09-01  Bruno Haible  <bruno@clisp.org>
71761
71762         * gnulib-tool (import): In the first-use case, provide defaults.
71763
71764 2005-09-01  Bruno Haible  <bruno@clisp.org>
71765
71766         * gnulib-tool (func_import): Remove the .tmp files.
71767
71768 2005-09-01  Bruno Haible  <bruno@clisp.org>
71769
71770         * gnulib-tool (func_import): Fix handling of symbolic links.
71771
71772 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71773
71774         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
71775         old glibc regex code mishandles strings longer than 2**31 bytes.
71776         This patch fixes this when the regex code is used in gnulib
71777         (i.e., outside glibc).
71778
71779         This patch should not affect the use of the regex code inside
71780         glibc.  No doubt this problem also needs to be handled for glibc
71781         as well, but the result will be an incompatible change to the
71782         glibc ABI, and the old ABI will have to be supported too.  That
71783         can be the the subject for another patch.
71784
71785         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
71786         governing whether the rest of this patch is active.  By default,
71787         the macro is disabled and the patch has no effect.
71788         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
71789         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
71790         (struct re_pattern_buffer, re_search, re_search_2, re_match):
71791         (re_match_2, re_set_registers): Use the new types.
71792         * lib/regex_internal.h (Idx, re_hashval_t): New types.
71793         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
71794         New macros.
71795         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
71796         (re_string_context_at, bin_tree_t, re_dfastate_t):
71797         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
71798         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
71799         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
71800         (re_string_char_size_at, re_string_wchar_at):
71801         (re_string_elem_size_at):
71802         Use the new types and macros to port to 64-bit hosts.
71803         Use unsigned types for internal values, so that the code
71804         mostly works even for arrays larger than SSIZE_MAX.
71805         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
71806         (search_duplicated_node, calc_eclosure_iter, fetch_number):
71807         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
71808         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
71809         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
71810         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
71811         (calc_inveclosure, parse_dup_op, build_range_exp):
71812         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
71813         (fetch_number, create_token_tree, mark_opt_subexp):
71814         Likewise.
71815         * lib/regex_internal.c (re_string_construct_common,
71816         create_ci_newstate):
71817         (create_cd_newstate, re_string_allocate, re_string_construct):
71818         (re_string_realloc_buffers, build_wcs_upper_buffer):
71819         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
71820         (re_string_reconstruct, re_string_peek_byte_case):
71821         (re_string_fetch_byte_case, re_string_context_at):
71822         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
71823         (re_node_set_init_copy, re_node_set_add_intersect):
71824         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71825         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71826         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
71827         (re_acquire_state, re_acquire_state_context, register_state):
71828         Likewise.
71829         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
71830         search_cur_bkref_entry):
71831         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
71832         (re_search_internal, re_search_2_stub, re_search_stub)
71833         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
71834         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
71835         (update_cur_sifted_state, check_dst_limits):
71836         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
71837         (check_subexp_limits, sift_states_bkref, merge_state_array):
71838         (check_subexp_matching_top, get_subexp, get_subexp_sub):
71839         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
71840         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
71841         (expand_bkref_cache, check_node_accept_bytes):
71842         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
71843         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
71844         (acquire_init_state_context, check_halt_node_context):
71845         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
71846         (sift_states_backward, clean_state_log_if_needed):
71847         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
71848         (find_recover_state, transit_state_sb, transit_state_mb):
71849         (transit_state_bkref, build_trtable, match_ctx_clean):
71850         Likewise.
71851         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
71852         to work around an assumption that REG_MISSING is negative.
71853
71854         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
71855         (seek_collating_symbol_entry) [defined _LIBC]:
71856         (lookup_collation_sequence_value) [defined _LIBC]:
71857         (build_range_exp, build_collating_symbol) [defined _LIBC]:
71858         Use prototypes rather than old-style function definitions.
71859         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
71860         (transit_state_sb) [0]:
71861         (find_collation_sequence_value) [defined _LIBC]: Likewise.
71862
71863         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
71864         rm_eo.
71865
71866         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
71867         (optimize_subexps, lower_subexp):
71868         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
71869         since the signed shift might overflow.  Use 1u<<31 instead.
71870         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
71871         Likewise.
71872         * lib/regexec.c (check_dst_limits_calc_pos_1,
71873         check_subexp_matching_top): Likewise.
71874
71875         * lib/regcomp.c (optimize_subexps, lower_subexp):
71876         Use CHAR_BIT rather than 8, for clarity.
71877         * lib/regexec.c (check_dst_limits_calc_pos_1):
71878         (check_subexp_matching_top): Likewise.
71879         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
71880         have to worry about portability issues when shifting it left.
71881         Remove no-longer-needed test for table_size > 0.
71882         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
71883         in a word, as the resulting behavior is undefined.
71884         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
71885         in one case, a <= should have been an <, and in another case the
71886         whole test was missing.
71887         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
71888         the standard name CHAR_BIT.
71889         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
71890         this is not true on one's complement and signed-magnitude hosts.
71891
71892         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
71893         next_last_offset.
71894         (struct re_dfa_t): Remove unused member states_alloc.
71895         * lib/regcomp.c (init_dfa): Don't initialize unused members.
71896
71897 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71898
71899         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
71900         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
71901         and large-file glibc and in 32-bit large-file Solaris.
71902
71903 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71904
71905         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
71906         lengths fit in regoff_t; this isn't true if regoff_t is the same
71907         width as size_t.
71908         * lib/regex.c (re_search_internal): 5th arg is LAST_START
71909         (= START + RANGE) instead of RANGE.  This avoids overflow
71910         problems when regoff_t is the same width as size_t.
71911         All callers changed.
71912         (re_search_2_stub): Check for overflow when adding the
71913         sizes of the two strings.
71914         (re_search_stub): Check for overflow when adding START
71915         to RANGE; if it occurs, substitute the extreme value.
71916
71917 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71918
71919         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
71920
71921 2005-08-31  Jim Meyering  <jim@meyering.net>
71922
71923         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
71924         a pointer-to-const.
71925         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
71926         (register_state): Likewise.
71927         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
71928         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
71929         (group_nodes_into_DFAstates): Likewise.
71930
71931 2005-08-31  Jim Meyering  <jim@meyering.net>
71932
71933         * check-module: Add a FIXME comment.
71934
71935 2005-08-31  Eric Blake  <ebb9@byu.net>
71936
71937         * modules/unistd-safer (Files): Add unistd--.h.
71938         * modules/stdio-safer (Files): Add stdio--.h.
71939
71940 2005-08-31  Derek Price  <derek@ximbiot.com>
71941
71942         * lib/getdelim.c (getdelim): Return EOF on EOF.
71943         Reported by Larry Jones <lawrence.jones@ugs.com>.
71944
71945 2005-08-31  Bruno Haible  <bruno@clisp.org>
71946
71947         Avoid unnecessary diffs in the generated lib/Makefile.am.
71948         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
71949         the generated files.
71950         (func_import): Don't set cmd.
71951
71952 2005-08-31  Bruno Haible  <bruno@clisp.org>
71953
71954         * lib/strstr.c: Include <stddef.h>, for NULL.
71955         * lib/strcasestr.c: Likewise.
71956         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71957
71958 2005-08-31  Bruno Haible  <bruno@clisp.org>
71959
71960         * gnulib-tool: New option --macro-prefix.
71961         (func_import): Use macro_prefix.
71962         (import): Handle option --macro-prefix.
71963
71964 2005-08-31  Bruno Haible  <bruno@clisp.org>
71965
71966         * gnulib-tool (import): Rename most ac_* variables to cached_*.
71967         Also use new variables cached_lgpl, cached_libtool.
71968
71969 2005-08-31  Bruno Haible  <bruno@clisp.org>
71970
71971         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
71972         always instantiating them.
71973
71974 2005-08-31  Bruno Haible  <bruno@clisp.org>
71975
71976         * gnulib-tool (func_import): Read the previous cached settings
71977         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
71978         earlier added by gnulib but are now dropped. Warn when a gnulib file
71979         overwrites a non-gnulib file.
71980
71981 2005-08-31  Bruno Haible  <bruno@clisp.org>
71982
71983         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
71984         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
71985         projects that don't keep autogenerated files in CVS. Put into
71986         actioncmd only the specified modules, not the transitive closure.
71987
71988 2005-08-31  Bruno Haible  <bruno@clisp.org>
71989
71990         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
71991         Create directories that shall be filled.
71992         (import): Don't look for gl_* macros in configure.ac. Recurse across
71993         all directories containing a gnulib-cache.m4 files, if meaningful.
71994
71995 2005-08-31  Bruno Haible  <bruno@clisp.org>
71996
71997         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
71998         (import): Set seen_libtool when we see gl_LIBTOOL.
71999
72000 2005-08-31  Bruno Haible  <bruno@clisp.org>
72001
72002         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
72003         declaration macro definitions from generated gnulib.m4.
72004
72005 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
72006
72007         * lib/iconvme.h: Add prototype for iconv_alloc.
72008
72009 2005-08-29  Simon Josefsson  <jas@extundo.com>
72010
72011         * lib/iconvme.c: Fix errno.
72012
72013 2005-08-29  Bruno Haible  <bruno@clisp.org>
72014
72015         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
72016         that it works when the directory contains spaces.
72017
72018 2005-08-29  Bruno Haible  <bruno@clisp.org>
72019
72020         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
72021
72022 2005-08-29  Bruno Haible  <bruno@clisp.org>
72023
72024         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
72025         Emit more advice.
72026
72027 2005-08-29  Bruno Haible  <bruno@clisp.org>
72028         and Stepan Kasal  <kasal@ucw.cz>
72029
72030         * check-module: If more parameters are given, check each of them
72031         separately; add more exceptions, as noted by Jim Meyering.
72032         (check_module): New procedure.
72033         (%exempt_header): Now contains all exceptions.
72034
72035 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
72036
72037         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
72038
72039 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
72040
72041         * lib/iconvme.c: Split iconv_string into iconv_alloc.
72042
72043 2005-08-28  Bruno Haible  <bruno@clisp.org>
72044
72045         * m4/gnulib-tool.m4: New file.
72046
72047 2005-08-27  Jim Meyering  <jim@meyering.net>
72048
72049         * modules/unistd-safer (Files): Add pipe-safer.c.
72050         * modules/fcntl-safer (Files): Add creat-safer.c.
72051
72052 2005-08-27  Jim Meyering  <jim@meyering.net>
72053
72054         * m4/stdlib-safer.m4: New file.  From coreutils.
72055         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
72056         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
72057         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
72058         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
72059         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
72060
72061 2005-08-27  Jim Meyering  <jim@meyering.net>
72062
72063         * lib/fopen-safer.c: Merge minor changes from coreutils.
72064         * lib/dup-safer.c: Likewise.
72065         * lib/fd-safer.c: Likewise.
72066
72067         Merge from coreutils.
72068         * lib/stdio--.h: New file.
72069         * lib/stdlib--.h: New file.
72070         * lib/mkstemp-safer.c: New file.
72071
72072         GNU tar needs these.
72073         * lib/pipe-safer.c: New file.
72074         * lib/creat-safer.c: New file.
72075         * lib/fcntl--.h (creat): Define to creat_safer.
72076         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
72077         * lib/unistd--.h (pipe): Define to pipe_safer.
72078         * lib/unistd-safer.h: Declare pipe_safer.
72079
72080 2005-08-26  Simon Josefsson  <jas@extundo.com>
72081
72082         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
72083         Haible <bruno@clisp.org>.
72084
72085 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
72086
72087         * lib/regex_internal.h: Remove all references to
72088         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
72089         or better.
72090         (bitset_not, bitset_merge, bitset_not_merge):
72091         (bitset_mask, re_string_allocate, re_string_construct):
72092         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
72093         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
72094         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
72095         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
72096         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72097         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72098         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
72099         (re_acquire_state_context):
72100         Remove unnecessary forward decls.
72101         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
72102         Put __attribute at function definition,
72103         now that the function decl has been removed.
72104         * lib/regex_internal.c (re_string_peek_byte_case):
72105         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
72106         Likewise.
72107
72108 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
72109
72110         * m4/regex.m4: Add AC_PREREQ(2.50).
72111         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
72112
72113 2005-08-25  Simon Josefsson  <jas@extundo.com>
72114
72115         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
72116         __fsetlocking.
72117
72118 2005-08-25  Simon Josefsson  <jas@extundo.com>
72119
72120         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
72121         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
72122         GLIBC specific code.
72123
72124 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72125
72126         Make regex safe for g++.  This fixes one real bug (an "err"
72127         that should have been "*err").  g++ problem reported by
72128         Sam Steingold.
72129         * lib/regex_internal.h (re_calloc): New macro, consistent with
72130         re_malloc etc.  All callers of calloc changed to use re_calloc.
72131         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
72132         not int.  All callers changed.
72133         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
72134         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
72135         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
72136         (find_recover_state): Change "err" to "*err"; this fixes what
72137         appears to be a real bug.
72138         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
72139         versus int.
72140
72141 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72142
72143         * modules/regex (Depends-on): Add malloc, since the code
72144         assumes that !malloc(0) means failure.
72145
72146 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72147
72148         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
72149
72150         alloca modernization/simplification for regex.
72151         * lib/regex.c: Remove portability cruft for alloca.  This no longer
72152         needs to be at the start of the file, and can be moved into
72153         regex_internal.h and simplified.
72154         * lib/regex_internal.h: Include <alloca.h>.
72155         (__libc_use_alloca) [!defined _LIBC]: New macro.
72156         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
72157         now works outside glibc.
72158
72159 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72160
72161         * config/srclist.txt: Add glibc bugs 1241, 1245.
72162
72163 2005-08-25  Jim Meyering  <jim@meyering.net>
72164
72165         * lib/open-safer.c: Include <config.h>.
72166         Otherwise, we'd lose LARGEFILE support in any file using
72167         e.g. "fcntl--.h"
72168
72169 2005-08-25  Bruno Haible  <bruno@clisp.org>
72170
72171         * m4/minmax.m4: Require autoconf 2.52.
72172         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
72173         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
72174         alternatives of translit over the alphabet.
72175         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
72176
72177 2005-08-24  Simon Josefsson  <jas@extundo.com>
72178
72179         * tests/test-getpass.c: New file.
72180
72181 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72182
72183         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
72184         for GNU regex features.
72185
72186 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72187
72188         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
72189         * lib/regex.h (regerror): Likewise.
72190
72191         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
72192         requires this.  (The code never needed it.)
72193
72194         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
72195         All uses of recently-renamed identifiers changed to use the new,
72196         POSIX-compliant names.  The code will build and run just fine
72197         without these changes, but it's better to eat our own dog food
72198         and use the standard-conforming names.
72199
72200         * lib/regex.h: Fix a multitude of POSIX name space violations.
72201         These changes have an effect only for programs that define
72202         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
72203         do not change anything for programs compiled in the normal way.
72204         Also, there is no effect on the ABI.
72205
72206         (_REGEX_SOURCE): New macro.
72207         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
72208         defined and _GNU_SOURCE is not; this fixes a name space violation.
72209
72210         Rename the following macros to obey POSIX requirements.
72211         The old names are still visible as macros if _REGEX_SOURCE is defined.
72212         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
72213         RE_BACKSLASH_ESCAPE_IN_LISTS.
72214         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
72215         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
72216         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
72217         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
72218         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
72219         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
72220         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
72221         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
72222         (REG_INTERVALS): renamed from RE_INTERVALS.
72223         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
72224         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
72225         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
72226         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
72227         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
72228         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
72229         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
72230         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
72231         RE_UNMATCHED_RIGHT_PAREN_ORD.
72232         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
72233         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
72234         (REG_DEBUG): renamed from RE_DEBUG.
72235         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
72236         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
72237         unusual, since we can't clash with the POSIX REG_ICASE.
72238         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
72239         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
72240         (REG_NO_SUB): renamed from RE_NO_SUB.
72241         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
72242         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
72243         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
72244         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
72245         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
72246         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
72247         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
72248         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
72249         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
72250         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
72251         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
72252         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
72253         RE_SYNTAX_POSIX_MINIMAL_BASIC.
72254         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
72255         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
72256         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
72257         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
72258         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
72259         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
72260         (REG_FIXED): Renamed from REGS_FIXED.
72261         (REG_NREGS): Renamed from RE_NREGS.
72262
72263         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
72264         of other REG_* macros, since POSIX says the user is allowed to
72265         #undef these macros selectively.
72266
72267         (reg_errcode_t): Update comment stating what other tables need
72268         to be consistent.
72269
72270         Rename the following enum values to obey POSIX requirements.
72271         The old names are still visible as macros.
72272         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
72273         is not defined, since GNU is supposed to be a superset of POSIX as
72274         much as possible, and since we want reg_errcode_t to be a signed
72275         type for implementation consistency.
72276         (_REG_NOERROR): Renamed from REG_NOERROR.
72277         (_REG_NOMATCH): Renamed from REG_NOMATCH.
72278         (_REG_BADPAT): Renamed from REG_BADPAT.
72279         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
72280         (_REG_ECTYPE): Renamed from REG_ECTYPE.
72281         (_REG_EESCAPE): Renamed from REG_EESCAPE.
72282         (_REG_ESUBREG): Renamed from REG_ESUBREG.
72283         (_REG_EBRACK): Renamed from REG_EBRACK.
72284         (_REG_EPAREN): Renamed from REG_EPAREN.
72285         (_REG_EBRACE): Renamed from REG_EBRACE.
72286         (_REG_BADBR): Renamed from REG_BADBR.
72287         (_REG_ERANGE): Renamed from REG_ERANGE.
72288         (_REG_ESPACE): Renamed from REG_ESPACE.
72289         (_REG_BADRPT): Renamed from REG_BADRPT.
72290         (_REG_EEND): Renamed from REG_EEND.
72291         (_REG_ESIZE): Renamed from REG_ESIZE.
72292         (_REG_ERPAREN): Renamed from REG_ERPAREN.
72293         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
72294         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
72295         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
72296         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
72297
72298         (_REG_RE_NAME, _REG_RM_NAME): New macros.
72299         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
72300         changed.  But support the old name if the new one is not defined
72301         and if _REGEX_SOURCE.
72302
72303         Change the following member names in struct re_pattern_buffer.
72304         The old names are still supported if !_REGEX_SOURCE.
72305         The new names are always supported, regardless of _REGEX_SOURCE.
72306         (re_buffer): Renamed from buffer.
72307         (re_allocated): Renamed from allocated.
72308         (re_used): Renamed from used.
72309         (re_syntax): Renamed from syntax.
72310         (re_fastmap): Renamed from fastmap.
72311         (re_translate): Renamed from translate.
72312         (re_can_be_null): Renamed from can_be_null.
72313         (re_regs_allocated): Renamed from regs_allocated.
72314         (re_fastmap_accurate): Renamed from fastmap_accurate.
72315         (re_no_sub): Renamed from no_sub.
72316         (re_not_bol): Renamed from not_bol.
72317         (re_not_eol): Renamed from not_eol.
72318         (re_newline_anchor): Renamed from newline_anchor.
72319
72320         Change the following member names in struct re_registers.
72321         The old names are still supported if !_REGEX_SOURCE.
72322         The new names are always supported, regardless of _REGEX_SOURCE.
72323         (rm_num_regs): Renamed from num_regs.
72324         (rm_start): Renamed from start.
72325         (rm_end): Renamed from end.
72326
72327         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
72328         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
72329         Prepend __ to parameter names.
72330
72331         Undo yesterday's changes.
72332
72333 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72334
72335         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
72336         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
72337         lib/regex.c.
72338
72339 2005-08-24  Jim Meyering  <jim@meyering.net>
72340
72341         Sync from coreutils.
72342         * m4/fcntl-safer.m4: New file.
72343
72344         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
72345         and object files for this module.
72346
72347 2005-08-24  Jim Meyering  <jim@meyering.net>
72348
72349         Sync from coreutils.
72350         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
72351
72352 2005-08-24  Jim Meyering  <jim@meyering.net>
72353
72354         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
72355         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
72356
72357 2005-08-24  Jim Meyering  <jim@meyering.net>
72358
72359         * modules/fcntl-safer: New module.
72360         * modules/fts (Depends-on): Add fcntl-safer.
72361         * MODULES.html.sh (File descriptor based Input/Output):
72362         Add fcntl-safer.
72363
72364 2005-08-24  Bruno Haible  <bruno@clisp.org>
72365
72366         Support for unit test modules.
72367         * modules/README: Mention tests modules.
72368         * modules/TEMPLATE-TESTS: New file.
72369         * gnulib-tool: New options --extract-tests-module, --with-tests and
72370         --tests-base (unused for the moment).
72371         (testsbase, inctests): New variables.
72372         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
72373         (func_verify_module): Exclude TEMPLATE-TESTS.
72374         (func_verify_nontests_module, func_verify_tests_module): New functions.
72375         (func_get_dependencies): Add implicit dependency for tests modules.
72376         (func_get_tests_module): New function.
72377         (func_modules_transitive_closure): When --with-tests was specified,
72378         include the unit tests as well, unless explicitly avoided.
72379         (func_emit_lib_Makefile_am): Ignore the tests modules here.
72380         (func_emit_tests_Makefile_am): New function.
72381         (func_create_testdir): When --with-tests was specified, emit a
72382         tests/ directory.
72383         * MODULES.html.sh (Future developments): Update.
72384
72385 2005-08-24  Bruno Haible  <bruno@clisp.org>
72386
72387         * modules/tls-tests: New file.
72388         * tests/test-tls.c: New file, from GNU gettext.
72389
72390 2005-08-24  Bruno Haible  <bruno@clisp.org>
72391
72392         * modules/lock-tests: New file.
72393         * tests/test-lock.c: New file, from GNU gettext.
72394
72395 2005-08-24  Bruno Haible  <bruno@clisp.org>
72396
72397         * lib/lock.h: Add multiple inclusion guard.
72398         * lib/tls.h: Add multiple inclusion guard.
72399
72400 2005-08-24  Bruno Haible  <bruno@clisp.org>
72401
72402         * gnulib-tool: Add support for the --aux-dir option to
72403         --create-testdir, --create-megatestdir, --test, --megatest.
72404         (func_create_testdir, func_create_megatestdir): Optionally emit a
72405         AC_CONFIG_AUX_DIR directive.
72406         (create-testdir, create-megatestdir, test, megatest): Provide a
72407         default value for $auxdir.
72408
72409 2005-08-24  Bruno Haible  <bruno@clisp.org>
72410
72411         * gnulib-tool (import): Use compound statement instead of subshell
72412         where possible.
72413
72414 2005-08-24  Bruno Haible  <bruno@clisp.org>
72415
72416         * gnulib-tool (import): Change --aux-dir default to "build-aux".
72417
72418 2005-08-24  Bruno Haible  <bruno@clisp.org>
72419
72420         * gnulib-tool (func_version): Update.
72421
72422 2005-08-24  Bruno Haible  <bruno@clisp.org>
72423
72424         * gnulib-tool (func_import, func_create_testdir,
72425         func_create_megatestdir): Quote all autoconf macro arguments.
72426
72427 2005-08-24  Bruno Haible  <bruno@clisp.org>
72428
72429         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
72430         option --force, because --force causes the aclocal.m4 of each
72431         subdirectory to be newer than the corresponding config.h.in.
72432
72433 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72434
72435         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
72436         All contents moved to gl_REGEX.
72437         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
72438         assume that it does.
72439
72440 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72441
72442         * lib/regex.h (REG_NOSYS)
72443         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
72444         Define, since POSIX requires it as of 2001.
72445         (_REG_ENOSYS)
72446         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
72447         New private symbol, used to keep the enum signed in all cases.
72448         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
72449         Youngman in
72450         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
72451
72452         * lib/regex_internal.c (re_string_skip_chars, register_state):
72453         (calc_state_hash):
72454         Remove forward decls; no longer needed now that we use prototypes.
72455         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
72456         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
72457         (clean_state_log_if_needed): Likewise.
72458
72459 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72460
72461         * config/srclist.txt: Add glibc bugs 1231-1233.
72462
72463 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72464
72465         Fix problems reported by Sam Steingold in
72466         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
72467         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
72468         assumed that reg_errcode_t is a signed type, which is not
72469         necessarily true if _XOPEN_SOURCE is not defined.
72470         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
72471         since some compilers warn about it otherwise.
72472
72473 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72474
72475         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
72476         (init_word_char, create_initial_state, duplicate_node_closure):
72477         (fetch_token, peek_token_bracket, build_range_exp):
72478         (build_collating_symbol): Remove forward decls; no longer needed
72479         now that we use prototypes.
72480
72481         * lib/regcomp.c:
72482         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
72483         (re_compile_fastmap_iter, regcomp, regerror, regfree):
72484         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
72485         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
72486         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
72487         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
72488         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
72489         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
72490         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
72491         (build_range_exp, build_collating_symbol, parse_bracket_exp):
72492         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
72493         (build_charclass, build_charclass_op, fetch_number, create_tree):
72494         (create_token_tree, mark_opt_subexp, duplicate_tree):
72495         Use prototypes rather than old-style definitions.
72496
72497         * lib/regex_internal.c:
72498         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
72499         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
72500         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
72501         (re_string_reconstruct, re_string_peek_byte_case):
72502         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
72503         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
72504         (re_node_set_init_copy, re_node_set_add_intersect):
72505         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72506         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72507         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
72508         (re_acquire_state, re_acquire_state_context, register_state):
72509         (create_ci_newstate, create_cd_newstate, free_state):
72510         Likewise.
72511         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
72512         re_search_2):
72513         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
72514         (re_search_internal, prune_impossible_nodes):
72515         (acquire_init_state_context, check_matching, static):
72516         (check_halt_node_context, check_halt_state_context, proceed_next_node):
72517         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
72518         (update_regs, sift_states_backward, build_sifted_states):
72519         (clean_state_log_if_needed, merge_state_array):
72520         (update_cur_sifted_state, add_epsilon_src_nodes):
72521         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
72522         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
72523         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
72524         (find_recover_state, check_subexp_matching_top, transit_state_mb):
72525         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
72526         (check_arrival, check_arrival_add_next_nodes):
72527         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
72528         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
72529         (check_node_accept_bytes, check_node_accept, extend_buffers):
72530         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
72531         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
72532         (sift_ctx_init):
72533         Likewise.
72534
72535         * lib/regex_internal.h:
72536         (re_string_allocate, re_string_construct, re_string_reconstruct):
72537         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
72538         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
72539         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
72540         (re_string_context_at, re_string_peek_byte_case):
72541         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
72542         is defined, since we now use prototypes always.
72543
72544         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
72545         C89 or better.  All uses removed.
72546
72547 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72548
72549         * config/srclist.txt: Add glibc bugs 1220-1227.
72550
72551 2005-08-20  Jim Meyering  <jim@meyering.net>
72552
72553         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
72554         of unused local, dfa.
72555
72556 2005-08-20  Bruno Haible  <bruno@clisp.org>
72557
72558         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
72559
72560 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72561
72562         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
72563         (re_node_set_insert_last, re_dfa_add_node):
72564         Rename local variables to avoid GCC shadowing warnings.
72565
72566 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72567
72568         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
72569         [defined lint]: Suppress bogus uninitialized-variable warnings.
72570
72571         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
72572         and let the caller return REG_ESPACE if out of space.  This
72573         removes an uninitialied-variable warning with GCC 4.0.1, and also
72574         avoids taking the address of a local variable.  All callers
72575         changed.
72576
72577 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72578
72579         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
72580         $LIBCSRC/posix/regexec.c.
72581         Add glibc bug 1217 for regcomp.c.
72582
72583 2005-08-19  Jim Meyering  <jim@meyering.net>
72584
72585         * lib/regexec.c (proceed_next_node): Redo local variables to
72586         avoid GCC shadowing warnings.
72587
72588 2005-08-18  Bruno Haible  <bruno@clisp.org>
72589
72590         * lib/strstr.c (strstr): Fix return value in multibyte case.
72591         * lib/strcasestr.c (strcasestr): Likewise.
72592
72593 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72594
72595         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
72596
72597 2005-08-17  Jim Meyering  <jim@meyering.net>
72598
72599         Make the %s format (seconds since the epoch) work for a negative
72600         number and when used with a zero-padded field width, e.g. %015s.
72601
72602         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
72603         label so that it precedes the code to set `digits'.  Otherwise,
72604         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
72605         print `00-22'.  Now, it prints `-0022', as it should.
72606
72607 2005-08-17  Bruno Haible  <bruno@clisp.org>
72608
72609         * modules/strstr (Files): Add m4/mbrtowc.m4.
72610         (Depends-on): Add mbuiter.
72611
72612 2005-08-17  Bruno Haible  <bruno@clisp.org>
72613
72614         * modules/strcasestr: New file.
72615         * MODULES.html.sh (String handling, based on ANSI C 89): Add
72616         strcasestr.
72617
72618 2005-08-17  Bruno Haible  <bruno@clisp.org>
72619
72620         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
72621
72622 2005-08-17  Bruno Haible  <bruno@clisp.org>
72623
72624         * modules/mbuiter: New file.
72625         * MODULES.html.sh (Extended multibyte and wide character utilities):
72626         Add mbuiter.
72627
72628 2005-08-17  Bruno Haible  <bruno@clisp.org>
72629
72630         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
72631         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
72632
72633 2005-08-17  Bruno Haible  <bruno@clisp.org>
72634
72635         * m4/strcasestr.m4: New file.
72636
72637 2005-08-17  Bruno Haible  <bruno@clisp.org>
72638
72639         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
72640         * lib/strstr.c: Completely rewritten, with multibyte locale support.
72641
72642 2005-08-17  Bruno Haible  <bruno@clisp.org>
72643
72644         * lib/strcasestr.h: New file.
72645         * lib/strcasestr.c: New file.
72646
72647 2005-08-17  Bruno Haible  <bruno@clisp.org>
72648
72649         * lib/strcasecmp.c: Use mbuiter.h.
72650
72651 2005-08-17  Bruno Haible  <bruno@clisp.org>
72652
72653         * lib/mbuiter.h: New file.
72654
72655 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
72656
72657         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
72658         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
72659         and gl_GETOPT are both invoked via different paths (as happens
72660         with GNU tar CVS because it uses both argp and getopt), the former
72661         wins.
72662
72663 2005-08-16  Bruno Haible  <bruno@clisp.org>
72664
72665         * modules/tls: New file.
72666         * MODULES.html.sh (Multithreading): Add tls.
72667
72668 2005-08-16  Bruno Haible  <bruno@clisp.org>
72669
72670         * modules/strnlen1: New file.
72671         * MODULES.html.sh (String handling): Add strnlen1.
72672
72673 2005-08-16  Bruno Haible  <bruno@clisp.org>
72674
72675         * modules/strcase (Files): Add m4/mbrtowc.m4.
72676         (Depends-on): Add strnlen1, mbchar.
72677
72678 2005-08-16  Bruno Haible  <bruno@clisp.org>
72679
72680         * modules/mbiter: New file.
72681         * MODULES.html.sh (Extended multibyte and wide character utilities):
72682         Add mbiter.
72683
72684 2005-08-16  Bruno Haible  <bruno@clisp.org>
72685
72686         * modules/mbfile: New file.
72687         * MODULES.html.sh (Extended multibyte and wide character utilities):
72688         Add mbfile.
72689
72690 2005-08-16  Bruno Haible  <bruno@clisp.org>
72691
72692         * modules/mbchar: New file.
72693         * MODULES.html.sh (Extended multibyte and wide character utilities):
72694         New section.
72695
72696 2005-08-16  Bruno Haible  <bruno@clisp.org>
72697
72698         * m4/tls.m4: New file, from GNU gettext.
72699
72700 2005-08-16  Bruno Haible  <bruno@clisp.org>
72701
72702         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
72703         always.
72704         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
72705
72706 2005-08-16  Bruno Haible  <bruno@clisp.org>
72707
72708         * m4/mbiter.m4: New file.
72709
72710 2005-08-16  Bruno Haible  <bruno@clisp.org>
72711
72712         * m4/mbfile.m4: New file.
72713
72714 2005-08-16  Bruno Haible  <bruno@clisp.org>
72715
72716         * m4/mbchar.m4: New file.
72717
72718 2005-08-16  Bruno Haible  <bruno@clisp.org>
72719
72720         * lib/tls.h: New file, from GNU gettext.
72721         * lib/tls.c: New file, from GNU gettext.
72722
72723 2005-08-16  Bruno Haible  <bruno@clisp.org>
72724
72725         * lib/strnlen1.h: New file.
72726         * lib/strnlen1.c: New file.
72727
72728 2005-08-16  Bruno Haible  <bruno@clisp.org>
72729
72730         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
72731         (mbi_init): Update.
72732         (mbi_avail, mbi_advance): Let the iteration end before the terminating
72733         NUL byte, not after it.
72734
72735 2005-08-16  Bruno Haible  <bruno@clisp.org>
72736
72737         * lib/strcase.h (strcasecmp): Add note in comments.
72738         * lib/strncasecmp.c: Use code from strcasecmp.c.
72739         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
72740         (strcasecmp): Work correctly in multibyte locales.
72741
72742 2005-08-16  Bruno Haible  <bruno@clisp.org>
72743
72744         * lib/mbiter.h: New file.
72745
72746 2005-08-16  Bruno Haible  <bruno@clisp.org>
72747
72748         * lib/mbfile.h: New file.
72749
72750 2005-08-16  Bruno Haible  <bruno@clisp.org>
72751
72752         * lib/mbchar.h: New file.
72753         * lib/mbchar.c: New file.
72754
72755 2005-08-16  Bruno Haible  <bruno@clisp.org>
72756
72757         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
72758         the valid ones. Makes the comparison operations transitive:
72759         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
72760         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
72761
72762 2005-08-15  Simon Josefsson  <jas@extundo.com>
72763
72764         * modules/ssize_t (License): Change to 'unlimited'.
72765
72766         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
72767
72768 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72769
72770         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
72771         Add comments for each pending glibc patch.
72772
72773 2005-08-15  Bruno Haible  <bruno@clisp.org>
72774
72775         * lib/regex.h (__restrict_arr): Don't define to __restrict if
72776         __cplusplus is defined.
72777
72778 2005-08-14  Jim Meyering  <jim@meyering.net>
72779
72780         Sync from coreutils.
72781
72782         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
72783         Use the hash-table-based cycle-detection code not just when
72784         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
72785         Reported by James Youngman in
72786         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
72787         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
72788         FTS_TIGHT_CYCLE_CHECK.
72789         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
72790         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
72791         once again.
72792         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
72793         * lib/fts.c (fd_safer): Remove decl.
72794         Include fcntl--.h rather than unistd-safer.h
72795         (fts_safe_changedir): Don't call fd_safer; no longer needed
72796         now that we include fcntl--.h.
72797
72798 2005-08-12  Simon Josefsson  <jas@extundo.com>
72799
72800         * modules/getndelim2: Use ssize_t module.
72801         * modules/getnline: Likewise.
72802         * modules/safe-read: Likewise.
72803         * modules/xreadlink: Likewise.
72804
72805         * modules/ssize_t: New file.
72806
72807 2005-08-12  Simon Josefsson  <jas@extundo.com>
72808
72809         * m4/readline.m4: Look for termcap, curses or ncurses if required.
72810
72811 2005-08-12  Simon Josefsson  <jas@extundo.com>
72812
72813         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72814         ssize_t.
72815
72816 2005-08-12  Simon Josefsson  <jas@extundo.com>
72817
72818         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
72819         readline, getdelim and check_version.
72820         (Support for systems lacking ISO C 99: Sizes of integer types):
72821         Add size_max.
72822
72823 2005-08-12  Bruno Haible  <bruno@clisp.org>
72824
72825         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
72826
72827 2005-08-11  Simon Josefsson  <jas@extundo.com>
72828
72829         * modules/readline: New file.
72830
72831         * modules/strnlen (Files): Add strnlen.h.
72832
72833 2005-08-11  Simon Josefsson  <jas@extundo.com>
72834
72835         * m4/readline.m4: New file.
72836
72837 2005-08-11  Simon Josefsson  <jas@extundo.com>
72838
72839         * lib/readline.h, readline.c: New file.
72840
72841 2005-08-11  Simon Josefsson  <jas@extundo.com>
72842
72843         * doc/gnulib.texi (Initial import, Finishing touches): Mention
72844         gl_AVOID.
72845
72846 2005-08-11  Bruno Haible  <bruno@clisp.org>
72847
72848         * lib/strnlen.h (strnlen): Change parameter name to match comment.
72849
72850 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
72851
72852         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
72853
72854 2005-08-10  Simon Josefsson  <jas@extundo.com>
72855
72856         * tests/test-iconvme.c: New file.
72857
72858 2005-08-10  Simon Josefsson  <jas@extundo.com>
72859
72860         * m4/strnlen.m4: New file.
72861
72862         * m4/strndup.m4: Don't check for strnlen declaration, done in
72863         strnlen.m4.
72864
72865 2005-08-10  Simon Josefsson  <jas@extundo.com>
72866
72867         * lib/strndup.c: Use strnlen.h.
72868
72869         * lib/strnlen.h: New file.
72870
72871 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72872
72873         * README: Typos.
72874
72875 2005-08-02  Simon Josefsson  <jas@extundo.com>
72876
72877         * modules/readline: New file.
72878
72879 2005-08-02  Simon Josefsson  <jas@extundo.com>
72880
72881         * modules/getdelim: New file.
72882
72883         * modules/getline: Rewrite, don't use getndelim2.
72884
72885 2005-08-02  Simon Josefsson  <jas@extundo.com>
72886
72887         * m4/getline.m4: Separate out getdelim stuff into separate module.
72888
72889         * m4/getdelim.m4: New file.
72890
72891 2005-08-02  Simon Josefsson  <jas@extundo.com>
72892
72893         * lib/getline.h, getline.c: Rewrite.
72894
72895         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
72896
72897 2005-07-31  Bruno Haible  <bruno@clisp.org>
72898
72899         * lib/lock.h (gl_lock_initializer): New macro.
72900         (gl_lock_define_initialized): Use it.
72901         (gl_rwlock_initializer): New macro.
72902         (gl_rwlock_define_initialized): Use it.
72903         (gl_recursive_lock_initializer): New macro.
72904         (gl_recursive_lock_define_initialized): Use it.
72905
72906 2005-07-30  Karl Berry  <karl@gnu.org>
72907
72908         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
72909         Report from Ben Pfaff, regarding getopt.
72910
72911 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
72912
72913         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
72914         normal way.
72915         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
72916         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
72917         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
72918         (gl_GETOPT): Use the new macros.  Most of the implementation
72919         is moved to the new macros.  This is for programs like Emacs
72920         that don't want all the functionality of gl_GETOPT.
72921
72922 2005-07-26  Bruno Haible  <bruno@clisp.org>
72923
72924         * m4/lock.m4: Update from GNU gettext.
72925
72926 2005-07-26  Bruno Haible  <bruno@clisp.org>
72927
72928         * lib/lock.h: Update from GNU gettext.
72929         * lib/lock.c: Update from GNU gettext.
72930
72931 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
72932
72933         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
72934         obsolescent AC_TRY_RUN.  Include the default includes files, for
72935         'exit'.
72936
72937 2005-07-24  Bruno Haible  <bruno@clisp.org>
72938
72939         * modules/visibility: New file.
72940         * MODULES.html.sh (Misc): Add visibility.
72941
72942 2005-07-24  Bruno Haible  <bruno@clisp.org>
72943
72944         * m4/visibility.m4: New file.
72945
72946 2005-07-24  Bruno Haible  <bruno@clisp.org>
72947
72948         * doc/visibility.texi: New file.
72949
72950 2005-07-22  Bruno Haible  <bruno@clisp.org>
72951
72952         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
72953         $(ALLOCA_H), redundant through BUILT_SOURCES.
72954         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
72955         redundant through BUILT_SOURCES.
72956         * modules/byteswap (Makefile.am): Remove explicit dependency on
72957         $(BYTESWAP_H), redundant through BUILT_SOURCES.
72958         * modules/fnmatch (Makefile.am): Remove explicit dependency on
72959         $(FNMATCH_H), redundant through BUILT_SOURCES.
72960         * modules/getopt (Makefile.am): Remove explicit dependency on
72961         $(GETOPT_H), redundant through BUILT_SOURCES.
72962         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
72963         redundant through BUILT_SOURCES.
72964         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
72965         redundant through BUILT_SOURCES.
72966         * modules/stdbool (Makefile.am): Remove explicit dependency on
72967         $(STDBOOL_H), redundant through BUILT_SOURCES.
72968         * modules/stdint (Makefile.am): Remove explicit dependency on
72969         $(STDINT_H), redundant through BUILT_SOURCES.
72970         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
72971         Remove explicit dependency on $(SYSEXITS_H).
72972         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
72973
72974 2005-07-18  Simon Josefsson  <jas@extundo.com>
72975
72976         * lib/check-version.c (check_version): Accept identical versions too.
72977
72978 2005-07-18  Bruno Haible  <bruno@clisp.org>
72979
72980         * modules/lock: New file.
72981         * MODULES.html.sh (Multithreading): New section.
72982
72983 2005-07-18  Bruno Haible  <bruno@clisp.org>
72984
72985         * m4/lock.m4: New file, from GNU gettext.
72986
72987 2005-07-18  Bruno Haible  <bruno@clisp.org>
72988
72989         * lib/lock.h: New file, from GNU gettext.
72990         * lib/lock.c: New file, from GNU gettext.
72991
72992 2005-07-18  Bruno Haible  <bruno@clisp.org>
72993
72994         * lib/lock.h (gl_once_t): New type.
72995         (gl_once_define, gl_once): New macros.
72996         * lib/lock.c (fresh_once): New variable.
72997         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
72998         functions.
72999
73000 2005-07-16  Simon Josefsson  <jas@extundo.com>
73001
73002         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
73003         workaround, suggested by Bruno.
73004
73005 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
73006
73007         * modules/xalloc (Depends-on): Add xalloc-die.
73008         * modules/xvasprintf (Depends-on): Add xalloc-die.
73009
73010 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
73011
73012         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
73013         with a minor change.
73014
73015 2005-07-15  Bruno Haible  <bruno@clisp.org>
73016
73017         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
73018         When using lib/poll.c, define poll as rpl_poll.
73019
73020 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
73021
73022         * modules/argp (Depends-on): Remove unlocked-io.
73023
73024 2005-07-14  Derek Price  <derek@ximbiot.com>
73025
73026         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
73027         for glob symlink bug.
73028
73029 2005-07-14  Bruno Haible  <bruno@clisp.org>
73030
73031         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
73032         Instead, test for *_unlocked function declarations directly.
73033
73034 2005-07-11  Simon Josefsson  <jas@extundo.com>
73035
73036         * modules/size_max: New file.
73037
73038         * modules/xsize: Depend on size_max module for size_max.m4.
73039
73040 2005-07-11  Simon Josefsson  <jas@extundo.com>
73041
73042         * lib/size_max.h: New file.
73043
73044 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
73045
73046         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
73047         copyright symbol and the year.
73048         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
73049         (version_etc_va): Use parameterized copyright notice.
73050         Reword to conform to the current GNU coding standards.
73051
73052 2005-07-11  Karl Berry  <karl@gnu.org>
73053
73054         * doc/gnulib.texi (Quoting): new node.
73055         (Initial import): more info, from Patrice.
73056
73057 2005-07-11  Bruno Haible  <bruno@clisp.org>
73058
73059         * gnulib-tool (func_usage): Document option --avoid.
73060         (Command line options): Handle --avoid.
73061         (func_acceptable): New function.
73062         (func_modules_transitive_closure): Use it.
73063
73064 2005-07-11  Bruno Haible  <bruno@clisp.org>
73065
73066         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
73067         Reported by Jim Meyering.
73068
73069 2005-07-10  Bruno Haible  <bruno@clisp.org>
73070
73071         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
73072         Needed when size_t is smaller than 'unsigned int'.
73073         Reported by Paul Eggert.
73074
73075 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73076
73077         * modules/argp (Depends-on): Add unlocked-io
73078
73079 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73080
73081         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
73082         block of defines.
73083
73084 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
73085
73086         * config/srclist.txt: Comment out regcomp.c, since we have a porting
73087         fix now.
73088
73089 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
73090         and Paul Eggert  <eggert@cs.ucla.edu>
73091
73092         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
73093         in wint_t, not wchar_t.  Remove now-unnecessary cast.
73094
73095 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73096
73097         * modules/regex (Files): Add lib/regex_internal.c,
73098         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
73099         (Depends-on): Add extensions.
73100         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
73101
73102 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73103
73104         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
73105         pathconf.
73106         * m4/same.m4 (gl_SAME): Likewise.
73107         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
73108
73109         * m4/regex.m4: Adjust to new libc regex implementation.
73110         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
73111         all the .c and .h parts of (the new) regex.
73112         Quote the m4 stuff better.
73113         Check for RE_ICASE bug of old gnulib.
73114         Check for REG_STARTEND of recent libc.
73115         Rename local variables from jm_* to gl_*.
73116         Quote operand of "test -f".
73117         Say "recent enough" version of libc, not "version 2".
73118         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
73119         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
73120         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
73121         Remove check for btowc, isascii.
73122         Require AM_LANGINFO_CODESET.
73123
73124 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73125
73126         * lib/regex.c, regex.h: Sync from libc.
73127         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
73128         * lib/regexec.c:
73129         New files, synced from libc, except that regex_internal.h
73130         currently has a small porting fix.
73131
73132 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73133
73134         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
73135         regex_internal.c, regexec.c.
73136         Add regex_internal.h too, but as a comment, since the libc version
73137         is currently broken in gnulib mode.
73138
73139 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73140
73141         Support programs like Emacs that use gnulib but not gettext.
73142         * MODULES.html.sh (Internationalization functions): Add gettext-h.
73143         * modules/gettext-h: New file.
73144         * modules/gettext (Files): Remove lib/gettext.h.
73145         (Depends-on): Add gettext-h.
73146         (Makefile.am): Remove lib_SOURCES.
73147         * modules/argmatch, modules/c-stack, modules/closeout:
73148         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
73149         * modules/execute, modules/file-type, modules/getaddrinfo:
73150         * modules/getopt, modules/human, modules/javacomp:
73151         * modules/javaexec, modules/mkdir-p, modules/obstack:
73152         * modules/openat, modules/pagealign_alloc, modules/pipe:
73153         * modules/quotearg, modules/regex, modules/rpmatch:
73154         * modules/unicodeio, modules/userspec, modules/version-etc:
73155         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
73156         * modules/xsetenv:
73157         Depend on gettext-h, not gettext.
73158
73159 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
73160
73161         * gnulib-tool (func_import): Add support for 'public domain' license.
73162         * modules/alloca, modules/atexit, modules/memmove:
73163         Now public domain, not GPL.
73164         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
73165         * modules/realloc, modules/strerror, modules/strtod:
73166         Now LGPL, not GPL.
73167
73168 2005-07-05  Bruno Haible  <bruno@clisp.org>
73169
73170         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
73171         autoconf CVS. Needed for mingw.
73172
73173 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73174
73175         Remove the dependency of the strftime module on the tzset module.
73176         * modules/strftime (Depends-on): Remove dependency on tzset.
73177
73178 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73179
73180         Remove the dependency of the strftime module on the tzset module.
73181         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
73182         gl_FUNC_TZSET_CLOBBER.
73183
73184 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73185
73186         Remove the dependency of the strftime module on the tzset module.
73187         * lib/strftime.c (my_strftime)
73188         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
73189         Copy the input structure, to work around some of the bug with
73190         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
73191         Solaris releases, you should also use the tzset module, but we won't
73192         require it as a dependency any more since we don't want LGPLed code
73193         to depend on GPLed code.
73194
73195 2005-07-02  Jim Meyering  <jim@meyering.net>
73196
73197         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
73198         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
73199         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
73200         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
73201
73202 2005-07-02  Jim Meyering  <jim@meyering.net>
73203
73204         * lib/backupfile.c (backup_args): Change a `0' to NULL.
73205
73206 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73207
73208         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
73209         declares only 'struct timespec;' (!).
73210
73211 2005-07-01  Jim Meyering  <jim@meyering.net>
73212
73213         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
73214         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
73215         * lib/save-cwd.c, tempname.c:
73216         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
73217         and don't include <sys/file.h>).
73218
73219 2005-06-29  Jim Meyering  <jim@meyering.net>
73220
73221         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
73222         type name.  Use the variable name instead.
73223         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
73224         Likewise.
73225
73226 2005-06-28  Simon Josefsson  <jas@extundo.com>
73227
73228         * modules/check-version (Files): Add check-version.m4.
73229
73230 2005-06-28  Simon Josefsson  <jas@extundo.com>
73231
73232         * m4/check-version.m4: New file, suggested by Jim Meyering
73233         <jim@meyering.net>.
73234
73235 2005-06-28  Simon Josefsson  <jas@extundo.com>
73236
73237         * lib/check-version.h, lib/check-version.c: New files.
73238
73239 2005-06-28  Simon Josefsson  <jas@extundo.com>
73240
73241         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
73242         collision with global variable.  Better indentation.  Don't
73243         increment buffer pointer beyond buffer end.  Based on comments
73244         from Paul Eggert <eggert@cs.ucla.edu>.
73245
73246         * lib/base64.h: Indent.
73247
73248 2005-06-28  Simon Josefsson  <jas@extundo.com>
73249
73250         * doc/gnulib.texi (Library version handling): New section.
73251
73252 2005-06-28  Jim Meyering  <jim@meyering.net>
73253
73254         * check-module (find_included_lib_files): Hard-code another
73255         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
73256         but modules/fts-lgpl (correctly) does not list those files.
73257
73258         * modules/canonicalize (Files): Add lib/pathmax.h.
73259
73260 2005-06-25  Simon Josefsson  <jas@extundo.com>
73261
73262         * modules/check-version: New file.
73263
73264 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
73265
73266         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
73267         initializer of struct addrinfo, as an indication that we don't
73268         care how many members the structure has.
73269
73270 2005-06-24  Derek Price  <derek@ximbiot.com>
73271         and Bruno Haible  <bruno@clisp.org>
73272
73273         Remove stat module & update lstat.
73274         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
73275         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73276         * m4/stat.m4: Remove this file.
73277
73278 2005-06-24  Derek Price  <derek@ximbiot.com>
73279         and Bruno Haible  <bruno@clisp.org>
73280
73281         Remove stat module & update lstat.
73282         * lib/stat.c: Remove this file...
73283         (slash_aware_lstat): ...moving this content and its support...
73284         * lib/lstat.c (rpl_lstat): ...into here.
73285         * lib/lstat.h: New file.
73286
73287 2005-06-24  Derek Price  <derek@ximbiot.com>
73288         and Bruno Haible  <bruno@clisp.org>
73289
73290         Remove stat module & update lstat.
73291         * config/srclist.txt (libc sources): Remove stat.
73292
73293 2005-06-24  Derek Price  <derek@ximbiot.com>
73294         and Bruno Haible  <bruno@clisp.org>
73295
73296         Remove stat module & update lstat.
73297         * MODULES.html.sh (stat): Remove.
73298         * MODULES.html: Regenerated.
73299         * modules/lstat (Description): Correct function name.
73300         (Files): Add "lstat.h".
73301         (Depends-on): Remove stat, add xalloc, stat-macros.
73302         * modules/stat: Remove this file.
73303         (Include): Add "lstat.h", remove <sys/stat.h>.
73304
73305 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
73306
73307         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
73308         (ranged_convert): Don't save conversion in a temporary struct.
73309         This causes a warning with GCC 4.0.0, and anyway in the typical
73310         case it's not worth the extra 100 bytes or so of code.
73311         (ranged_convert, __mktime_internal): When calling a function via a
73312         pointer P, use P () rather than (*P) (), as we now assume C89 or
73313         better.
73314
73315 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73316
73317         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
73318         "who -r" failed to give output.  Problem reported by Tim Waugh.
73319
73320         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
73321         (xcalloc): Use it to avoid needless tests.
73322         Problem reported by Jim Meyering.
73323
73324 2005-06-20  Derek Price  <derek@ximbiot.com>
73325
73326         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
73327         unnecessary for Autoconfs > 2.59c.
73328
73329 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73330
73331         * lib/argp.h (__option_is_short): Check upper limit of
73332         __key. Isprint() requires its argument to have the value
73333         of an unsigned char or EOF.
73334
73335 2005-06-16  Jim Meyering  <jim@meyering.net>
73336
73337         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
73338         when either N or S is zero.
73339
73340 2005-06-16  Derek Price  <derek@ximbiot.com>
73341
73342         * m4/bison.m4: Declare YACC & YFLAGS precious.
73343
73344 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
73345
73346         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
73347         multibyte string or pattern, fall back on unibyte matching.
73348         Problem reported by James Youngman.
73349
73350 2005-06-08  Bruno Haible  <bruno@clisp.org>
73351
73352         * modules/csharpcomp: New file.
73353         * MODULES.html.sh (C#): Add csharpcomp.
73354
73355 2005-06-08  Bruno Haible  <bruno@clisp.org>
73356
73357         * m4/csharpcomp.m4: New file, from GNU gettext.
73358
73359 2005-06-08  Bruno Haible  <bruno@clisp.org>
73360
73361         * lib/csharpcomp.h: New file, from GNU gettext.
73362         * lib/csharpcomp.c: New file, from GNU gettext.
73363         * lib/csharpcomp.sh.in: New file, from GNU gettext.
73364
73365 2005-06-08  Bruno Haible  <bruno@clisp.org>
73366
73367         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
73368         warning on mingw.
73369
73370 2005-06-07  Derek Price  <derek@ximbiot.com>
73371
73372         Sync from CVS.
73373         * lib/glob_.h: Indent nested #ifdef.
73374
73375 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73376
73377         Sync from coreutils.
73378         Use "file name" when talking about file names, instead of "filename"
73379         or "path", as per the GNU coding standards.
73380         * lib/mkdir-p.c: Renamed from makepath.c.
73381         (make_dir_parents): Renamed from make_path.  All callers changed.
73382         * lib/mkdir-p.h: Likewise.  All includers changed.
73383         * lib/filenamecat.c: Renamed from path-concat.c.
73384         (file_name_concat): Renamed from path_concat.  All callers changed.
73385         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
73386         * lib/filenamecat.h: Likewise.  All includers changed.
73387         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
73388         in comments or local variable names.
73389         * lib/basename.c: Likewise.
73390         * lib/canonicalize.c, canonicalize.h: Likewise.
73391         * lib/dirname.c, dirname.h: Likewise.
73392         * lib/euidaccess.c: Likewise.
73393         * lib/exclude.c: Likewise
73394         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
73395         * lib/fsusage.c, fsuage.h: Likewise.
73396         * lib/fts.c, fts_.h: Likewise.
73397         * lib/getcwd.c: Likewise.
73398         * lib/getloadavg.c: Likewise.
73399         * lib/mkstemp.c: Likewise.
73400         * lib/mountlist.c, mountlist.h: Likewise.
73401         * lib/openat.c, openat.h: Likewise.
73402         * lib/readlink-stub.c: Likewise.
73403         * lib/readutmp.c, readutmp.h: Likewise.
73404         * lib/rename.c: Likewise.
73405         * lib/rmdir.c: Likewise.
73406         * lib/same.c: Likewise.
73407         * lib/savedir.c: Likewise.
73408         * lib/stripslash.c: Likewise.
73409         * lib/tempname.c: Likewise.
73410         * lib/xreadlink.c: Likewise.
73411         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
73412         All uses changed.
73413         * lib/exclude.h: Likewise.
73414
73415         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
73416         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73417         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
73418         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73419         * lib/pathmax.h: Include <limits.h> unconditionally, since other
73420         files have been getting away with it for years (MORE/BSD 4.3
73421         is extinct now).
73422         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
73423         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73424
73425         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
73426         Define to 256, not 255, as per modern POSIX.
73427
73428 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73429
73430         Sync from coreutils.
73431         Use "file name" when talking about file names, instead of "filename"
73432         or "path", as per the GNU coding standards.
73433         * MODULES.html.sh: mkdir-p renamed from makepath.
73434         filenamecat renamed from path-concat.
73435         * modules/filenamecat: Renamed from modules/path-concat.
73436         (Files): filenamecat.h and filenamecat.c renamed from
73437         path-concat.h and path-concat.c.
73438         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
73439         (Include): filenamecat.h, not path-concat.h.
73440         * modules/mkdir-p: Renamed from modules/makepath.
73441         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
73442         makepath.c.
73443         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
73444         (Include): mkdir-p.h, not makepath.h.
73445
73446 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73447
73448         Sync from coreutils.
73449         * m4/mkdir-p.m4: Renamed from makepath.m4.
73450         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
73451         Rename files from makepath.c to mkdir-p.c, and from
73452         makepath.h to mkdir-p.h.
73453         * m4/filenamecat.m4: Renamed from path-concat.m4.
73454         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
73455         Rename files from path-concat.c to filenamecat.c,
73456         and from path-concat.h to filenamecat.h.
73457         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
73458         "file name" in local variables or comments.
73459         * m4/rename.m4: Likewise.
73460
73461 2005-06-01  Bruno Haible  <bruno@clisp.org>
73462
73463         * modules/csharpexec: New file.
73464         * MODULES.html.sh (C#): New section.
73465
73466 2005-06-01  Bruno Haible  <bruno@clisp.org>
73467
73468         * m4/csharp.m4: New file, from GNU gettext.
73469         * m4/csharpexec.m4: New file, from GNU gettext.
73470
73471 2005-06-01  Bruno Haible  <bruno@clisp.org>
73472
73473         * lib/csharpexec.h: New file, from GNU gettext.
73474         * lib/csharpexec.c: New file, from GNU gettext.
73475         * lib/csharpexec.sh.in: New file, from GNU gettext.
73476
73477 2005-05-31  Derek Price  <derek@ximbiot.com>
73478             Paul Eggert  <eggert@cs.ucla.edu>
73479
73480         Sync from cvs.
73481         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
73482
73483 2005-05-31  Derek Price  <derek@ximbiot.com>
73484             Paul Eggert  <eggert@cs.ucla.edu>
73485
73486         Sync from cvs.
73487         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
73488
73489 2005-05-29  Derek Price  <derek@ximbiot.com>
73490
73491         * config/srclist.txt (glob_.h, glob.c): Add these files.
73492
73493 2005-05-29  Derek Price  <derek@ximbiot.com>
73494
73495         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
73496         * modules/glob: New file.
73497         * modules/getlogin_r: Add link to POSIX spec in description.
73498
73499 2005-05-29  Derek Price  <derek@ximbiot.com>
73500             Paul Eggert  <eggert@cs.ucla.edu>
73501
73502         * m4/glob.m4: New file.
73503
73504 2005-05-29  Derek Price  <derek@ximbiot.com>
73505             Paul Eggert  <eggert@cs.ucla.edu>
73506
73507         * lib/glob_.h, lib/glob.c: New files.
73508
73509 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73510
73511         * modules/fts (Files): Remove m4/inttypes-pri.m4.
73512         * modules/fts-lgpl (Depends-on): Remove gettext.
73513
73514 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73515
73516         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
73517         and don't require gt_INTTYPES_PRI.
73518
73519 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73520
73521         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
73522
73523         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
73524         the configuration hassle isn't worth it.
73525         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
73526         (LONGEST_MODIFIER, PRIuMAX): Remove.
73527
73528 2005-05-27  Bruno Haible  <bruno@clisp.org>
73529
73530         * lib/getlogin_r.h: Remove second include of <stddef.h>.
73531
73532 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
73533
73534         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
73535         _POSIX_PTHREAD_SEMANTICS for Solaris.
73536
73537 2005-05-25  Derek Price  <derek@ximbiot.com>
73538
73539         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
73540
73541 2005-05-25  Derek Price  <derek@ximbiot.com>
73542             Paul Eggert  <eggert@cs.ucla.edu>
73543
73544         * modules/getlogin_r, m4/getlogin_r.m4: New files.
73545         * lib/getlogin_r.c, getlogin_r.h: New files.
73546
73547 2005-05-25  Bruno Haible  <bruno@clisp.org>
73548             Derek Price  <derek@ximbiot.com>
73549
73550         * lib/getlogin_r.h: Simplify API documentation.
73551
73552 2005-05-23  Derek Price  <derek@ximbiot.com>
73553
73554         * modules/minmax (Files): Add m4/minmax.m4.
73555         (configure.ac): Add gl_MINMAX.
73556
73557 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
73558
73559         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
73560         so that unistd-safer.h (GPL'ed code) need not be included.
73561
73562 2005-05-22  Bruno Haible  <bruno@clisp.org>
73563
73564         * m4/minmax.m4: New file.
73565         Based on a patch by Derek Price <derek@ximbiot.com>.
73566
73567 2005-05-22  Bruno Haible  <bruno@clisp.org>
73568
73569         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
73570         (INT64_MIN): Fix definition.
73571         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
73572
73573         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
73574         NEED_SIGNED_INT_TYPES.
73575
73576         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
73577         HAVE_SYSTEM_INTTYPES.
73578
73579 2005-05-22  Bruno Haible  <bruno@clisp.org>
73580
73581         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
73582         Also include <sys/param.h> if it defines MIN, MAX.
73583         Based on a patch by Derek Price <derek@ximbiot.com>.
73584
73585 2005-05-21  Jim Meyering  <jim@meyering.net>
73586
73587         * modules/fts (Files): Add m4/inttypes-pri.m4.
73588         (Depends-on): Add lstat and remove gettext.  Alphabetize.
73589
73590 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73591
73592         New fts module.
73593         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
73594         (setup_dir, free_dir): New functions.
73595         (enter_dir, leave_dir): Define trivial
73596         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
73597         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
73598         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
73599         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
73600         Move to fts-cycle.c.
73601         (fts_open): Use setup_dir.
73602         (fts_close): Use free_dir.
73603         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
73604         This adds a label and some gotos, but the alternatives were messier.
73605         Check for memory allocation failure when entering a dir.
73606         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
73607         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
73608         (FTS): New member fts_cycle, that is a union that contains the
73609         old active_dir_ht and cycle_state.  All uses changed to mention
73610         fts_cycle.ht and fts_cycle.state.
73611         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
73612         fts.c, with the following changes:
73613         (setup_dir, free_dir): New functions.
73614         (enter_dir): Now returns bool.  Return true if successful, false
73615         if memory exhausted.  All callers changed.
73616         Do not bother partly cleaning up on
73617         memory allocation failure; that is free_dir's job.
73618         However, free ad if hash_insert fails, to avoid memory leak.
73619         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
73620         fts->fts_options to see which union member to use.
73621
73622 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73623
73624         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
73625         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
73626
73627 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73628
73629         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
73630
73631 2005-05-20  Jim Meyering  <jim@meyering.net>
73632
73633         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
73634         Now a macro, to pacify GCC.
73635
73636 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
73637
73638         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
73639         of -1.
73640
73641 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
73642
73643         * lib/chown.c (rpl_chown): Return -1 on failure.
73644
73645 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
73646
73647         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
73648         Don't check for stddef.h.
73649         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
73650         don't use its results.
73651         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
73652         since we include them unconditionally.  Don't require
73653         AM_STDBOOL_H, since stdbool is a prerequisite.
73654         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
73655         since we assume C89 or better.
73656         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
73657         as we don't use their results.
73658         Don't check for fchdir, memmove, memset, strrchr, as we use
73659         them unconditionally.
73660         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
73661         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
73662
73663 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
73664
73665         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
73666         Include <stddef.h> unconditionally, since we assume C89 now.
73667         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
73668         * lib/fts.c: Include fts_.h first, to check interface.
73669         Do not include intprops.h; no longer needed.
73670         Include cycle-check.h and hash.h, since fts_.h no longer does.
73671         Remove unnecessary casts of closedir to void.
73672         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
73673         decide whether to decrement nlinks.
73674         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
73675         (FTS): Use struct hash_table * instead of Hash_table, so that
73676         we no longer need to include hash.h here.
73677
73678 2005-05-18  Jim Meyering  <jim@meyering.net>
73679
73680         * modules/dirfd (License): Change to LGPL.  Most of the code
73681         is already in the public domain.
73682
73683 2005-05-18  Jim Meyering  <jim@meyering.net>
73684
73685         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
73686         Reported by Yoann Vandoorselaere.
73687
73688 2005-05-17  Jim Meyering  <jim@meyering.net>
73689
73690         * m4/fts.m4: New file, from coreutils.
73691
73692 2005-05-17  Jim Meyering  <jim@meyering.net>
73693
73694         * lib/fts.c, lib/fts_.h: New files, from coreutils.
73695
73696 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73697
73698         Sync from coreutils.
73699         * m4/unlinkdir.m4: New file.
73700
73701 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73702
73703         Sync from coreutils.
73704         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
73705         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
73706         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
73707         White space changes only.
73708         * lib/makepath.c (make_path): Port to hosts where leading "//" is
73709         special.
73710         * lib/yesno.c: Include getline.h, not ctype.h.
73711         (yesno): Don't remove leading white space; POSIX doesn't allow it.
73712         Use getline to remove arbitrary restriction on response length.
73713
73714 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73715
73716         * config/srclist-update: Spell out "Street" in FSF postal
73717         mail address; this is the style the FSF seems to prefer.
73718
73719         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
73720         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
73721         this updates FSF postal mail address.
73722
73723         Sync from coreutils.
73724         * modules/unlinkdir: New file.
73725         * modules/yesno (Depends-on): Add getline.
73726         * MODULES.html.sh (File system functions): Add unlinkdir.
73727
73728 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73729
73730         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
73731         lib/strsep.h:
73732         Change the initial comment to refer to GPL, not LGPL.
73733         gnulib-tool will change it to LGPL as needed.
73734
73735         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
73736         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
73737         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
73738         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
73739         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
73740         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
73741         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
73742         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
73743         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
73744         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
73745         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
73746         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
73747         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
73748         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
73749         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
73750         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
73751         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
73752         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
73753         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
73754         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
73755         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
73756         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
73757         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
73758         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
73759         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
73760         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
73761         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
73762         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
73763         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
73764         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
73765         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
73766         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
73767         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
73768         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
73769         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
73770         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
73771         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
73772         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
73773         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
73774         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
73775         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
73776         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
73777         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
73778         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
73779         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
73780         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
73781         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
73782         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
73783         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
73784         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
73785         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
73786         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
73787         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
73788         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
73789         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
73790         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
73791         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
73792         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
73793         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
73794         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
73795         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
73796         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
73797         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
73798         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
73799         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
73800         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
73801         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
73802         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
73803         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
73804         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
73805         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
73806         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
73807         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
73808         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
73809         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
73810         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
73811         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
73812         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
73813         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
73814         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
73815         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
73816         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
73817         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
73818         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
73819         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
73820         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
73821         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
73822         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
73823         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
73824         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
73825         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
73826         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
73827         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
73828         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
73829         lib/yesno.c, lib/yesno.h:
73830         Update FSF postal mail address.
73831
73832 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73833
73834         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
73835         tests/test-memmem.c, tests/test-stpncpy.c:
73836         Update FSF postal mail address.
73837
73838 2005-05-13  Bruno Haible  <bruno@clisp.org>
73839
73840         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
73841         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
73842         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
73843         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
73844         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
73845         Add support for 64-bit integers in the MSVC compiler.
73846
73847 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73848
73849         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
73850
73851 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
73852
73853         * gnulib-tool (func_import): Sort and uniquify recommended includes.
73854
73855 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
73856
73857         * doc/getdate.texi (General date syntax): Don't say that date
73858         date --iso-8601=ns generates acceptable dates; it doesn't yet.
73859         Problem reported by Nic Ferrier.
73860
73861 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73862
73863         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
73864         specified in ai_socktype. Fix invalid ai_protocol
73865         check. ai_protocol is usually set to 0 or depending on
73866         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
73867         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
73868         ai_socktype / ai_protocol in the returned addrinfo structure.
73869
73870 2005-05-10  Simon Josefsson  <jas@extundo.com>
73871
73872         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
73873         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73874
73875 2005-05-10  Karl Berry  <karl@gnu.org>
73876
73877         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
73878         (from http://www.gnu.org/licenses).
73879         * doc/COPYING.LIB: also rename to COPYING.LESSER.
73880         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
73881         fdl.texi suffices.
73882
73883 2005-05-10  Karl Berry  <karl@gnu.org>
73884
73885         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
73886         (COPYING.DOC): remove.
73887
73888         * config/srclist-update: new FSF address.
73889
73890 2005-05-10  Derek Price  <derek@ximbiot.com>
73891
73892         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
73893         possible.
73894
73895 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73896             Bruno Haible  <bruno@clisp.org>
73897
73898         * modules/inet_ntop: New file.
73899         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73900         inet_ntop.
73901
73902 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73903             Bruno Haible  <bruno@clisp.org>
73904
73905         * m4/inet_ntop.m4: New file.
73906
73907 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73908             Bruno Haible  <bruno@clisp.org>
73909
73910         * lib/inet_ntop.h: New file.
73911         * lib/inet_ntop.c: New file, from glibc with modifications.
73912
73913 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
73914
73915         * modules/time_r (License): Change to LGPL.
73916         * modules/extensions (License): Change to LGPL.  Actually,
73917         the license is more permissive than that, but currently gnulib-tool
73918         doesn't know how to handle more-permissive licenses.
73919
73920         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
73921         Problem reported by Dave Love.
73922
73923 2005-05-08  Jim Meyering  <jim@meyering.net>
73924
73925         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
73926         blank.
73927
73928 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
73929
73930         * modules/argmatch (Depends-on): Add stdbool.
73931         * modules/backupfile (Depends-on): Likewise.
73932         * modules/chdir-long (Depends-on): Likewise.
73933         * modules/closeout (Depends-on): Likewise.
73934         * modules/cycle-check (Depends-on): Likewise.
73935         * modules/dirname (Depends-on): Likewise.
73936         * modules/fnmatch (Depends-on): Likewise.
73937         * modules/fsusage (Depends-on): Likewise.
73938         * modules/fwriteerror (Depends-on): Likewise.
73939         * modules/getcwd (Depends-on): Likewise.
73940         * modules/getloadavg (Depends-on): Likewise.
73941         * modules/hard-locale (Depends-on): Likewise.
73942         * modules/makepath (Depends-on): Likewise.
73943         * modules/mountlist (Depends-on): Likewise.
73944         * modules/nanosleep (Depends-on): Likewise.
73945         * modules/posixtm (Depends-on): Likewise.
73946         * modules/quotearg (Depends-on): Likewise.
73947         * modules/readtokens (Depends-on): Likewise.
73948         * modules/readtokens0 (Depends-on): Likewise.
73949         * modules/readutmp (Depends-on): Likewise.
73950         * modules/save-cwd (Depends-on): Likewise.
73951         * modules/strftime (Depends-on): Likewise.
73952         * modules/userspec (Depends-on): Likewise.
73953         * modules/utimecmp (Depends-on): Likewise.
73954         * modules/xgetcwd (Depends-on): Likewise.
73955         * modules/xnanosleep (Depends-on): Likewise.
73956         * modules/xstrtod (Depends-on): Likewise.
73957         * modules/yesno (Depends-on): Likewise.
73958
73959 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
73960
73961         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
73962         needless checks.
73963
73964 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73965
73966         Merge from coreutils.  Among other things,
73967         add bulletproofing for cases where stdin, stdout, or stderr are closed.
73968         * lib/fd-safer.c: New file.
73969         * lib/fcntl-safer.h, open-safer.c: Remove.
73970         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
73971         * lib/dup-safer.c: Include unistd-safer.h first.
73972         Don't include errno.h.
73973         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
73974         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
73975         * lib/file-type.c: Rely on file-type.h change.
73976         * lib/getloadavg.c: Include unistd-safer.h.
73977         (getloadavg): Use safer open.
73978         * lib/getusershell.c: Include "stdio-safer.h".
73979         (getusershell): Use safer fopen.
73980         * lib/long-options.c (long_options): Use NULL rather than 0.
73981         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
73982         'free'.
73983         * lib/modechange.c: Likewise.
73984         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
73985         (MODE_DONE): New constant.
73986         (struct mode_change): Remove 'next' member.
73987         (make_node_op_equals): New function; like the old one of the
73988         same name, except it allocates an array.
73989         (mode_compile, mode_create_from_ref): Use it.
73990         (mode_compile): Allocate result as an array, not a linked list.
73991         Parse octal string ourself, so that we catch mistakes like "+0".
73992         (mode_adjust): Arg is an array, not a linked list.
73993         * lib/modechange.c: Include stat-macros.h, xalloc.h.
73994         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
73995         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
73996         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
73997         Remove.  This is now stat-macros.h's job.
73998         (talloc): Remove.  All callers replaced by xalloc, so that
73999         our invokers don't have to worry about reporting memory failures.
74000         (make_node_op_equals): Remove.
74001         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
74002         New constants.
74003         (struct mode_change): Moved here from modechange.h.
74004         (mode_append_entry): Remove.
74005         (mode_compile): Remove MASKED_OPS arg, since it encouraged
74006         apps to have incorrect behavior.  Use simpler algorithm for head
74007         and tail.  Don't futz with umask; that's now the job of mode_adjust.
74008         Detect more invalid usages rather than having somewhat-random behavior.
74009         Don't insert an "a=" action, as that leads to incorrect behavior.
74010         (mode_compile, mode_create_from_ref): Return NULL on error instead
74011         of an enum, since now there's only one way to have an error.  All
74012         callers changed.
74013         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
74014         at the correct time.  Simplify calculation of "+u" and its ilk.
74015         Don't mishandle "+X".
74016         (mode_free): Remove "register" and localize decls.
74017         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
74018         (struct mode_change): Move to modechange.c; callers don't
74019         need to see this stuff.
74020         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
74021         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
74022         (mode_change, mode_adjust): Reflect the new signatures noted above.
74023         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
74024         that might redefine system include files.
74025         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
74026         (my_usleep): Use NULL rather than (void *) 0.
74027         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
74028         Use siginterrupt to specify that system calls should be interrupted.
74029         (rpl_nanosleep): Move initialization of suspended closer to call of
74030         my_usleep.
74031         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
74032         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
74033         (desirable_utmp_entry): New function.
74034         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
74035         using x2nrealloc, to simplify logic.
74036         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
74037         size calculation.  Do not assume utmp file is a regular file.
74038         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
74039         (READ_UTMP_CHECK_PIDS): New constant.
74040         * lib/save-cwd.c: Include unistd-safer.h.
74041         (save_cwd): Use fd_safer.
74042         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
74043         [!_LIBC] Include "stat-macros.h" instead.
74044         * lib/unistd-safer.h (fd_safer): New decl.
74045
74046 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74047
74048         * modules/getloadavg (Depends-on): Add unistd-safer.
74049         * modules/getusershell (Depends-on): Add stdio-safer.
74050         * modules/lstat (Depends-on): Remove xalloc.
74051         * modules/mkstemp (Depends-on): Add stat-macros.
74052         * modules/modechange (Depends-on): Remove xstrtol.
74053         Add stat-macros, xalloc.
74054         * modules/save-cwd (Depends-on): Add unistd-safer.
74055         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
74056         * modules/unistd-safer (Files): Add lib/fd-safer.c
74057         (Makefile.am): Remove lib_SOURCES.
74058
74059         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
74060         Remove fcntl-safer; unistd-safer supersedes it.
74061
74062 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74063
74064         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
74065         AC_HEADER_STAT.
74066         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
74067         (gl_PREREQ_CHOWN): Remove.
74068         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
74069         it.  Don't require AC_HEADER_STAT.
74070         (gl_PREREQ_LSTAT): Remove.
74071         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
74072         Don't require AC_HEADER_STAT.
74073         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
74074         (gl_PREREQ_RMDIR): Remove.
74075         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
74076         mention stat-macros.h or AC_HEADER_STAT, since we'll make
74077         the stat-macros module a prerequisite.
74078         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
74079         * m4/filemode.m4 (gl_FILEMODE): Likewise.
74080         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
74081         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
74082         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
74083         variable names.
74084         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
74085         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
74086         variable prefixes.
74087         * m4/fcntl-safer.m4: Remove.
74088         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
74089         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
74090         Invoke gl_PREREQ_FD_SAFER.
74091         (gl_PREREQ_FD_SAFER): New macro.
74092         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
74093         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
74094         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
74095         Remove duplicate call to AC_LIBOBJ(readutmp).
74096         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
74097
74098         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
74099         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
74100
74101 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74102
74103         * MODULES.html.sh (Misc): Add byteswap.
74104
74105 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74106
74107         * modules/getcwd (Depends-on): Add extensions.
74108         * modules/openat (Depends-on): Likewise.
74109
74110 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74111
74112         * modules/byteswap: New file.
74113
74114 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74115
74116         * m4/byteswap.m4: New file.
74117
74118 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74119
74120         * lib/byteswap_.h: New file.
74121
74122 2005-04-25  Karl Berry  <karl@gnu.org>
74123
74124         * m4/gettext.m4: Update from GNU gettext 0.14.4.
74125
74126 2005-04-25  Albert Chin  <china@thewrittenword.com>
74127
74128         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
74129         Toolkit C bug.
74130
74131 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
74132
74133         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
74134         (func_ln_if_changed): Remove forcibly for no error message
74135         in case file does not exist.
74136
74137 2005-04-19  Simon Josefsson  <jas@extundo.com>
74138
74139         * gnulib-tool (Options): Make --symlink mean --symbolic.
74140
74141 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
74142
74143         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
74144
74145 2005-04-16  Simon Josefsson  <jas@extundo.com>
74146
74147         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
74148
74149 2005-04-15  Simon Josefsson  <jas@extundo.com>
74150
74151         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
74152
74153 2005-04-15  Simon Josefsson  <jas@extundo.com>
74154
74155         * gnulib-tool: Rename --symlink to --symbolic.
74156
74157 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
74158
74159         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
74160         symbolic links to files instead of copying/moving.  Add --aux-dir,
74161         specifying directory relative --dir where auxiliary build tools
74162         are placed.
74163
74164 2005-04-14  Bruno Haible  <bruno@clisp.org>
74165
74166         * modules/allocsa (License): Change to LGPL.
74167         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
74168
74169 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
74170
74171         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
74172         that "UTC +1 second" continues to work.  Problem reported
74173         by Dmitry V. Levin.
74174         (relunit_snumber): New rule.
74175         (relunit): Use it.
74176
74177 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
74178
74179         * lib/getdate.y (universal_time_zone_table): New constant.
74180         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
74181         universal_time_zone_table.
74182         (lookup_zone): Prefer universal_time_zone_table to
74183         local_time_zone_table, so that "GMT" time stamps are allowed in
74184         London during the summer.  Problem reported by Ian Abbott.
74185
74186 2005-04-12  Jim Meyering  <jim@meyering.net>
74187
74188         * lib/human.c (humblock): Set *options even when returning due to
74189         xstrtoumax conversion failure.  Thanks to a used-uninitialized
74190         warning from gcc-4.
74191
74192 2005-04-09  Jim Meyering  <jim@meyering.net>
74193
74194         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
74195         -Wuninitialized: initialize tm0.tm_year.
74196
74197 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
74198
74199         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
74200         count, since there's no maximum.  All uses changed.
74201         Add member dsts_seen.
74202         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
74203         not being INT_MAX.
74204         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
74205         Use pc_rels_seen to decide whther a date is absolute.
74206
74207         * lib/getdate.y (number): Don't overwrite year.
74208         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
74209         check.
74210
74211 2005-04-02  Simon Josefsson  <jas@extundo.com>
74212
74213         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
74214         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
74215
74216 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
74217
74218         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
74219         where no absolute path name can be longer than PATH_MAX.
74220
74221 2005-03-27  Jim Meyering  <jim@meyering.net>
74222
74223         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
74224
74225 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
74226
74227         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
74228         "one's complement" -> "ones' complement" in comment, as per Knuth.
74229         "value of type" -> "type or expression" in comment.
74230         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
74231
74232 2005-03-26  Jim Meyering  <jim@meyering.net>
74233
74234         Comment nits.
74235         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
74236         Correct typos: s/or/of/.
74237
74238 2005-03-26  Jim Meyering  <jim@meyering.net>
74239
74240         * modules/check-include-files: Move to ../ and rename to...
74241         * check-module: ...this.
74242
74243 2005-03-25  Jim Meyering  <jim@meyering.net>
74244
74245         * modules/xvasprintf (Files): Add xalloc.h.
74246
74247 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
74248
74249         * modules/gettext (Files): config/config.rpath ->
74250         build-aux/config.rpath
74251         * modules/iconv (Files): Likewise.
74252         Problem reported by Oskar Liljeblad.
74253
74254 2005-03-23  Jim Meyering  <jim@meyering.net>
74255
74256         * modules/check-include-files: New script to check for
74257         missing dependencies, multiple includes, etc.
74258
74259         * modules/c-strtold (Depends-on): Add xalloc.
74260         * modules/c-strtod (Depends-on): Add xalloc.
74261         * modules/hash (Depends-on): Add xalloc.
74262         (Files): Remove lib/xalloc.h.
74263
74264         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
74265         * modules/userspec (Files): Add lib/inttostr.h.
74266
74267 2005-03-23  Jim Meyering  <jim@meyering.net>
74268
74269         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
74270
74271 2005-03-22  Jim Meyering  <jim@meyering.net>
74272
74273         * modules/stat-macros: New module.
74274         * modules/canonicalize, modules/euidaccess, modules/file-type,
74275         * modules/filemode, modules/lchown, modules/makepath,
74276         * modules/rmdir, modules/stat: Depend on new stat-macros module
74277         rather than listing lib/stat-macros.h manually.
74278         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
74279
74280 2005-03-22  Jim Meyering  <jim@meyering.net>
74281
74282         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
74283
74284 2005-03-22  Bruno Haible  <bruno@clisp.org>
74285
74286         * config/srclist.txt: Replace target directory 'config' with
74287         'build-aux'.
74288         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
74289         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
74290         ../build-aux/.
74291
74292 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
74293
74294         * modules/chdir-long (Depends-on): Add mempcpy.
74295
74296         * modules/acl, modules/backupfile, modules/c-strtod,
74297         modules/c-strtold, modules/canon-host, modules/canonicalize,
74298         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
74299         modules/exclude, modules/exitfail, modules/file-type,
74300         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
74301         modules/getdate, modules/getline, modules/getpagesize,
74302         modules/getpass, modules/getugroups, modules/group-member,
74303         modules/hard-locale, modules/hash, modules/human, modules/idcache,
74304         modules/inttostr, modules/long-options, modules/makepath,
74305         modules/md5, modules/memcasecmp, modules/memcoll,
74306         modules/modechange, modules/mountlist, modules/path-concat,
74307         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
74308         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
74309         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
74310         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
74311         modules/strftime, modules/strndup, modules/strverscmp,
74312         modules/timespec, modules/unlocked-io, modules/userspec,
74313         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
74314         modules/yesno:
74315         Remove lib_SOURCES line from Makefile.am section, as this is now
74316         done automatically by the corresponding Autoconf macro.
74317
74318 2005-03-21  Jim Meyering  <jim@meyering.net>
74319
74320         Changes imported from coreutils.
74321
74322         * lib/cycle-check.c: Don't include xalloc.h.
74323
74324         * lib/path-concat.c: Don't include assert.h.
74325         (path_concat): Remove assertion that would have triggered
74326         for ABASE starting with more than one slash.
74327         Reported by Andreas Schwab.
74328
74329         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
74330         properly when ABASE is an absolute file name.
74331         Correct the description of this function.
74332         Include <assert.h>.
74333         Add an assertion and a test driver.
74334         This fixes a bug introduced on 2004-07-02.
74335         Andreas Schwab reported the resulting failure of cp --parents:
74336         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
74337
74338 2005-03-21  Jim Meyering  <jim@meyering.net>
74339
74340         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
74341         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
74342
74343 2005-03-21  Jim Meyering  <jim@meyering.net>
74344         and  Paul Eggert  <eggert@cs.ucla.edu>
74345
74346         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
74347         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
74348         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
74349         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
74350         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
74351         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
74352         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
74353         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
74354         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
74355         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
74356         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
74357         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
74358         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
74359         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
74360         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
74361         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
74362         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
74363         for these modules.
74364
74365 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
74366
74367         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
74368         (which shouldn't happen), generate nothing instead of returning 0
74369         immediately, so that nstrftime (NULL, ...) doesn't return 0.
74370
74371 2005-03-16  Bruno Haible  <bruno@clisp.org>
74372
74373         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
74374         HAVE_LONGLONG_64BIT.
74375
74376 2005-03-16  Bruno Haible  <bruno@clisp.org>
74377
74378         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
74379         HAVE_LONGLONG_64BIT.
74380
74381 2005-03-16  Bruno Haible  <bruno@clisp.org>
74382
74383         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
74384         HAVE_LONGLONG_64BIT.
74385
74386 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
74387
74388         * lib/strftime.c (my_strftime): Prepend space to format so that we can
74389         reliably distinguish strftime failure from empty output on POSIX
74390         hosts.
74391
74392 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
74393
74394         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
74395         (iconv_string): Don't guess a size-zero buffer, as that might cause
74396         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
74397         result would be 'too large', where 'too large' is (heuristically)
74398         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
74399         overflow concerns.  This will prevent some unwanted malloc failures
74400         when the inputs are very large.
74401
74402 2005-03-15  Karl Berry  <karl@gnu.org>
74403
74404         * config/srclist.txt (config.rpath): from gettext.
74405         * config/config.rpath: update.
74406
74407 2005-03-15  Bruno Haible  <bruno@clisp.org>
74408
74409         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
74410         to 'negate'.
74411
74412         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
74413         variable.
74414
74415         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
74416         results.
74417
74418 2005-03-14  Simon Josefsson  <jas@extundo.com>
74419
74420         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
74421         <fx@gnu.org>.
74422
74423 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
74424
74425         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
74426         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
74427         intprops.h.
74428         * lib/strtol.c: Likewise.
74429
74430 2005-03-14  Jim Meyering  <jim@meyering.net>
74431
74432         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
74433         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
74434         to be nonzero so that we (and caller) can detect the difference
74435         between a valid zero-length expansion and an error return, even
74436         when the underlying strftime fails before writing anything into
74437         that location.
74438
74439 2005-03-14  Bruno Haible  <bruno@clisp.org>
74440
74441         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
74442         Update from GNU gettext 0.14.3.
74443
74444 2005-03-10  Jim Meyering  <jim@meyering.net>
74445
74446         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
74447
74448 2005-03-10  Jim Meyering  <jim@meyering.net>
74449
74450         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
74451         so that this module works on systems without fchdir.
74452
74453 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
74454
74455         Factor int-properties macros into a single file, except for
74456         glibc-related files.
74457         * lib/intprops.h: New file.
74458         * lib/getloadavg.c: Include it instead of limits.h.
74459         (INT_STRLEN_BOUND): Remove.
74460         * lib/human.c: Include intprops.h.
74461         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
74462         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
74463         302/1000.
74464         * lib/inttostr.h: Include intprops.h instead of limits.h.
74465         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
74466         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
74467         for consistency with intprops.h.
74468         (time_t_is_integer, twos_complement_arithmetic): Use them.
74469         * lib/sig2str.h: Include <signal.h>, intprops.h.
74470         (INT_STRLEN_BOUND): Remove.
74471         * lib/strftime.c (TYPE_SIGNED): Remove.
74472         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
74473         * lib/strtol.c: Adjust comments to match intprops.h.
74474         * lib/userspec.c: Include intprops.h.
74475         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
74476         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
74477         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
74478         instead of rolling our own expressions.
74479         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
74480
74481         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
74482         instead of int.
74483         (my_strftime): Do not mishandle years close to INT_MAX, by doing
74484         the right thing even if adding 1900 would overflow.  Similarly
74485         for tm_mon + 1 and tm_yday + 1.
74486         Make %Y always equivalent to %C%y, and similarly for %G and %g.
74487         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
74488         (DO_SIGNED_NUMBER): New macro.
74489         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
74490
74491 2005-03-07  Bruno Haible  <bruno@clisp.org>
74492
74493         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
74494
74495 2005-03-07  Bruno Haible  <bruno@clisp.org>
74496
74497         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
74498
74499 2005-03-04  Derek R. Price  <derek@ximbiot.com>
74500
74501         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
74502         (func_import): Only replace files via --import when they have actually
74503         changed.
74504
74505 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74506
74507         * m4/mmap-anon.m4: New file.
74508         * m4/pagealign_alloc.m4: New file.
74509
74510 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74511             Bruno Haible  <bruno@clisp.org>
74512
74513         * modules/pagealign_alloc: New file.
74514         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
74515
74516 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74517             Bruno Haible  <bruno@clisp.org>
74518
74519         * lib/pagealign_alloc.h: New file.
74520         * lib/pagealign_alloc.c: New file.
74521
74522 2005-03-03  Bruno Haible  <bruno@clisp.org>
74523
74524         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
74525         Use an all-permissive copyright notice, recommended by RMS.
74526
74527 2005-03-02  Bruno Haible  <bruno@clisp.org>
74528
74529         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
74530         of AIX, the replacement has to be done only after <string.h> is
74531         included, therefore not in config.h. stpncpy.h does the replacement,
74532         and stpncpy.c uses it.
74533
74534 2005-03-02  Bruno Haible  <bruno@clisp.org>
74535
74536         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
74537         stpncpy.c uses it.
74538
74539 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74540
74541         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
74542         The workaround isn't strictly needed for POSIX conformance, and
74543         it's too much of a pain to configure and maintain.  We'll ask
74544         people to fix their kernels instead.
74545         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
74546         (NANOSLEEP_BUG_WORKAROUND): Remove.
74547         (xnanosleep): Remove the workaround.
74548
74549 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74550
74551         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
74552         Reported by Derek Price.
74553         (Include): Add "timespec.h".
74554
74555         * modules/xnanosleep (Depends-on): Remove gethrxtime.
74556
74557 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74558
74559         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
74560         to detect nanosleep bug.
74561
74562 2005-03-01  Bruno Haible  <bruno@clisp.org>
74563
74564         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
74565
74566 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
74567
74568         * modules/gethrxtime: New file.
74569         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
74570         (Depends-on): Add gethrxtime.
74571         (configure.ac): Add gl_XNANOSLEEP.
74572         (Makefile.am): Remove lib_SOURCES line.
74573
74574 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
74575
74576         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
74577         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
74578
74579 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
74580
74581         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
74582         * lib/timespec.h (gettime): Return void, since it always
74583         succeeds now.  All uses changed.
74584         * lib/gettime.c (gettime): Likewise.
74585         [HAVE_NANOTIME]: Prefer nanotime.
74586         Assume gettimeofday succeeds, as POSIX requires.
74587         Assime time () succeeds, since other code already does.
74588         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
74589         (timespec_subtract): Remove.
74590         (NANOSLEEP_BUG_WORKAROUND): New constant.
74591         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
74592         things considerably.  Use it only on GNU/Linux hosts, since the
74593         workaround shouldn't be needed elsewhere.
74594
74595 2005-02-24  Bruno Haible  <bruno@clisp.org>
74596
74597         * modules/gettext (Files): Add m4/glibc2.m4.
74598
74599 2005-02-24  Bruno Haible  <bruno@clisp.org>
74600
74601         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
74602         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
74603         * m4/progtest.m4:
74604         Update from GNU gettext 0.14.2.
74605         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
74606
74607 2005-02-24  Bruno Haible  <bruno@clisp.org>
74608
74609         * lib/localcharset.c: Update from GNU gettext 0.14.2.
74610         * lib/config.charset: Update from GNU gettext 0.14.2.
74611
74612 2005-02-24  Bruno Haible  <bruno@clisp.org>
74613
74614         * lib/gettext.h: Update from GNU gettext 0.14.2.
74615
74616 2005-02-23  Simon Josefsson  <jas@extundo.com>
74617
74618         * m4/iconvme.m4: New file.
74619
74620 2005-02-23  Jim Meyering  <jim@meyering.net>
74621
74622         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
74623         change.
74624         Thanks to Bruno Haible for catching it.
74625
74626 2005-02-22  Simon Josefsson  <jas@extundo.com>
74627
74628         * modules/iconvme: New file.
74629
74630         * MODULES.html.sh: Add iconvme.
74631
74632 2005-02-22  Simon Josefsson  <jas@extundo.com>
74633
74634         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
74635
74636 2005-02-22  Simon Josefsson  <jas@extundo.com>
74637
74638         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
74639
74640 2005-02-22  Jim Meyering  <jim@meyering.net>
74641
74642         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
74643         s/ifndef/ifdef/.
74644
74645 2005-02-20  Neil Conway  <neilc@samurai.com>
74646
74647         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
74648         returned by OSX/Darwin if the specified buffer is not large
74649         enough for the hostname.
74650
74651 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74652
74653         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
74654         pass it to _help, otherwise the latter coredumps trying to
74655         dereference state.root_argp.
74656
74657 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74658
74659         * modules/chdir-long (Depends-on): Add memrchr.
74660         * modules/memrchr (Files): Add lib/memrchr.h.
74661         (Include): "memrchr.h".
74662
74663 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74664
74665         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
74666
74667 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74668
74669         * lib/memrchr.h: New file.
74670         * lib/chdir-long.c: Include it.
74671         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
74672         Don't bother including stddef.h.
74673
74674 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
74675
74676         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
74677         inclusion.
74678         Include <sys/types.h>, for dev_t.
74679         (ME_DUMMY, ME_REMOTE): Move from here....
74680         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
74681         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
74682         Dmitry V. Levin.
74683         Include mountlist.h first, to test the interface.
74684
74685 2005-01-29  Bruno Haible  <bruno@clisp.org>
74686
74687         * lib/progname.c (program_name): Initialize.
74688         Needed when linking statically on MacOS X.
74689
74690 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74691
74692         Sync from coreutils.
74693         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
74694         (Depends-on): Add c-strtod.
74695         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
74696
74697 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74698
74699         Sync from coreutils.
74700         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
74701
74702         Remove files that are specific to coreutils.
74703         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
74704
74705 2005-01-28  Bruno Haible  <bruno@clisp.org>
74706
74707         * modules/javacomp: New file.
74708         * MODULES.html.sh (Java): Add javacomp.
74709
74710 2005-01-28  Bruno Haible  <bruno@clisp.org>
74711
74712         * m4/javacomp.m4: New file, from GNU gettext.
74713
74714 2005-01-28  Bruno Haible  <bruno@clisp.org>
74715
74716         * lib/javacomp.sh.in: New file, from GNU gettext.
74717         * lib/javacomp.h: New file, from GNU gettext.
74718         * lib/javacomp.c: New file, from GNU gettext.
74719
74720 2005-01-26  Simon Josefsson  <jas@extundo.com>
74721
74722         * lib/gai_strerror.c: Use GPL in header.
74723
74724 2005-01-26  Bruno Haible  <bruno@clisp.org>
74725
74726         * modules/javaexec: New file.
74727         * MODULES.html.sh (Java): Add javaexec.
74728
74729 2005-01-26  Bruno Haible  <bruno@clisp.org>
74730
74731         * m4/javaexec.m4: New file, from GNU gettext.
74732
74733 2005-01-26  Bruno Haible  <bruno@clisp.org>
74734
74735         * lib/javaexec.sh.in: New file, from GNU gettext.
74736         * lib/javaexec.h: New file, from GNU gettext.
74737         * lib/javaexec.c: New file, from GNU gettext.
74738
74739 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74740
74741         * modules/lchown (Depends-on): Remove lchown.h
74742
74743 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74744
74745         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
74746         must be defined if the header file was not found, in order
74747         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
74748
74749 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74750
74751         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
74752         initializers for struct pentry_state.
74753         (__argp_error): Check return value of __asprintf
74754         (__argp_failure): Translate error message
74755
74756         * lib/argp-parse.c: Removed braces around the expansion of N_()
74757
74758 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74759
74760         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
74761         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
74762         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
74763         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
74764         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
74765         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
74766         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
74767         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
74768         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
74769         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
74770         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
74771         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
74772         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
74773         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
74774         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
74775         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
74776         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
74777         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
74778         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
74779         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
74780         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
74781         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
74782         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
74783         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
74784         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
74785         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
74786         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
74787         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
74788         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
74789         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
74790         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
74791         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
74792         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
74793         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
74794         xstrtol.m4, xstrtoumax.m4, yesno.m4:
74795         Use an all-permissive copyright notice, recommended by RMS.
74796
74797 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
74798
74799         * modules/chdir-long (Depends-on): Remove mempcpy.
74800
74801 2005-01-21  Jim Meyering  <jim@meyering.net>
74802
74803         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
74804         same value as for Solaris 9.
74805
74806         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
74807         component length.  This included changing the parameter to be
74808         of type `char *' rather than `char const *'.
74809         * lib/chdir-long.h (chdir_long): Update prototype.
74810
74811         * lib/openat.c (fdopendir, fstatat): New functions.
74812         * lib/openat.h: Include headers required for use of DIR and struct
74813         stat.
74814         [AT_SYMLINK_NOFOLLOW]: Define.
74815         (fdopendir, fstatat): Add prototypes.
74816
74817 2005-01-21  Bruno Haible  <bruno@clisp.org>
74818
74819         * modules/classpath: New file.
74820         * MODULES.html.sh (Java): Add classpath.
74821
74822 2005-01-21  Bruno Haible  <bruno@clisp.org>
74823
74824         * lib/classpath.h: New file, from GNU gettext.
74825         * lib/classpath.c: New file, from GNU gettext.
74826
74827 2005-01-20  Simon Josefsson  <jas@extundo.com>
74828
74829         * modules/version-etc-fsf: New file.
74830
74831 2005-01-20  Simon Josefsson  <jas@extundo.com>
74832
74833         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
74834         * lib/version-etc.c: Remove version_etc_copyright.
74835         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
74836         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
74837
74838 2005-01-20  Simon Josefsson  <jas@extundo.com>
74839
74840         * lib/base64.h (isbase64): Add.
74841
74842         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
74843         using a unsigned prototype, don't inline.
74844         (base64_decode): Use it.
74845
74846 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74847
74848         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
74849         it.
74850
74851 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74852
74853         * lib/save-cwd.c (save_cwd): Remove code to support the case
74854         where fchdir is missing or flaky.
74855
74856 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74857
74858         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
74859
74860 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
74861
74862         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
74863         AC_LIBSOURCES now does this.
74864         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
74865         with new ullong_max module.
74866
74867 2005-01-19  Bruno Haible  <bruno@clisp.org>
74868
74869         * modules/sh-quote: New file.
74870         * MODULES.html.sh (Executing programs): Add sh-quote.
74871
74872 2005-01-19  Bruno Haible  <bruno@clisp.org>
74873
74874         * lib/sh-quote.h: New file, from GNU gettext.
74875         * lib/sh-quote.c: New file, from GNU gettext.
74876
74877 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74878
74879         Merge from coreutils.
74880         * m4/ullong_max.m4: New file.
74881         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
74882         (gl_MACROS): Assume localeconv exists.
74883
74884 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74885
74886         Merge changes from coreutils, as described below in several
74887         changelogs dated today.
74888
74889         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
74890         (O_DIRECTORY): Remove; not needed here, since "." must be
74891         a directory.  All uses removed.
74892         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
74893         universal on Suns, and we also need to test for IRIX.
74894         Revamp code to use 'if' rather than '#if'.
74895         Avoid unnecessary comparison of cwd->desc to 0.
74896
74897         * lib/utimens.c (futimens): Robustify the previous patch, by checking
74898         for known valid error numbers rather than observed invalid ones.
74899
74900 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74901
74902         * modules/ullong_max: New file.
74903
74904         * modules/chdir-long, modules/openat: New files.
74905         * modules/save-cwd (Depends-on): Depend on chdir-long.
74906         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
74907
74908 2005-01-18  Jim Meyering  <jim@meyering.net>
74909
74910         Merge from coreutils.
74911         * m4/chdir-long.m4, m4/openat.m4: New files.
74912         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
74913         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
74914         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
74915         is sane and DOES follow symlinks.  Besides, testing 20 different
74916         systems found no broken chown implementations.
74917         Prompted by a change in rsync's copy of this macro.
74918         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
74919
74920         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
74921
74922         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
74923         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
74924         NULL-means-set-to-current-time semantics.
74925         Remove temporary file immediately, rather than waiting
74926         for configure's at-exit trap code to do it.
74927
74928 2005-01-18  Jim Meyering  <jim@meyering.net>
74929
74930         * lib/version-etc.c (version_etc_copyright): Update copyright date.
74931
74932         * lib/utimens.c (futimens): Account for the fact that futimes
74933         can also fail with errno == ENOSYS or errno == ENOENT.
74934         Patch from Dmitry V. Levin.
74935
74936         Change the name of the robust chdir function from chdir to chdir_long.
74937         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
74938         (restore_cwd): Use chdir_long, not chdir.
74939         * lib/chdir-long.c: Renamed from chdir.c.
74940         * lib/chdir-long.h: Renamed from chdir.h.
74941         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
74942         Hurd.
74943
74944 2005-01-18  Bruno Haible  <bruno@clisp.org>
74945
74946         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
74947         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
74948         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
74949         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
74950         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
74951         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
74952         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
74953         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
74954         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
74955         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
74956         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
74957         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
74958         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
74959         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
74960         Use an all-permissive copyright notice, recommended by RMS.
74961
74962 2005-01-18  Bob Proulx  <bob@proulx.com>
74963
74964         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
74965         simplify offsetof() macro construct to avoid compile failure with
74966         native HP-UX 11.0 ANSI C compiler.
74967
74968 2005-01-17  Bruno Haible  <bruno@clisp.org>
74969
74970         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
74971         redundant because stpncpy.m4 takes care of it.
74972
74973 2005-01-17  Bruno Haible  <bruno@clisp.org>
74974
74975         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
74976
74977 2005-01-17  Bruno Haible  <bruno@clisp.org>
74978
74979         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
74980         used.
74981
74982 2005-01-17  Bruno Haible  <bruno@clisp.org>
74983
74984         * lib/fwriteerror.h (fwriteerror): Change specification to include
74985         fclose.
74986         * lib/fwriteerror.c: Include <stdbool.h>.
74987         (fwriteerror): At the end, close the file stream. Record whether
74988         stdout was already closed.
74989
74990 2005-01-17  Bruno Haible  <bruno@clisp.org>
74991
74992         * lib/execute.c (environ): Declare if needed.
74993         * lib/pipe.c (environ): Likewise.
74994         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
74995
74996 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74997
74998         * modules/argp: Depend on vsnprintf
74999
75000 2005-01-10  Jim Meyering  <jim@meyering.net>
75001
75002         * modules/closeout (Depends-on): Add atexit.
75003
75004 2005-01-06  Bruno Haible  <bruno@clisp.org>
75005
75006         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
75007
75008 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75009
75010         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
75011         definitions to be after all include files, to avoid collisions.
75012         Problem reported by Bob Proulx.
75013
75014 2005-01-04  Jim Meyering  <jim@meyering.net>
75015
75016         Changes imported from coreutils.
75017         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
75018         as the mkstemp template, use a temporary directory and an
75019         8.3-friendly template to avoid trouble on systems like DJGPP.
75020         Reported by Juan M. Guerrero via Stepan Kasal.
75021         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
75022         close. Remove the temporary directory right away, rather than waiting
75023         for configure's at-exit trap code to do it.
75024         Suggestion from Stepan Kasal.
75025
75026 2005-01-01  Simon Josefsson  <jas@extundo.com>
75027
75028         * gnulib-tool: Print #include directives when --import'ing.
75029
75030 2004-12-28  Simon Josefsson  <jas@extundo.com>
75031
75032         * tests/test-base64.c: Include required header files.  Remove
75033         unused variables.
75034
75035 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
75036
75037         * modules/error (Depends-on): Remove gettext.
75038
75039 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
75040
75041         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
75042         not needed.  This removes a dependency on the gettext module.
75043         [defined _LIBC]: Do not include <libintl.h>; not needed.
75044
75045 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
75046
75047         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
75048         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
75049
75050 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
75051
75052         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
75053         HAVE_DECL_STRTOLD.
75054
75055 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75056
75057         * modules/getdate (Depends-on): Remove alloca-opt.
75058
75059 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75060
75061         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
75062
75063 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75064
75065         * lib/argp-parse.c: Include <stddef.h>.
75066         (alignof, alignto): New macros.
75067         (parser_init): Don't assume that void * is aligned sufficiently
75068         for struct option.
75069
75070         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
75071         need to extend the stack.
75072         (YYINITDEPTH): New macro, so that the initial stack isn't overly
75073         large.
75074
75075 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75076
75077         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
75078
75079 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
75080
75081         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
75082         (2004-10-24) change.  Apparently this was a false alarm.
75083
75084         * modules/getdate: Depend on alloca-opt, not alloca.
75085
75086 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
75087
75088         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
75089         Remove now-obsolete comment about AIX.
75090         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
75091         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
75092         (YYMAXDEPTH): New macro.
75093
75094 2004-12-18  Simon Josefsson  <jas@extundo.com>
75095
75096         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
75097
75098 2004-12-18  Bruno Haible  <bruno@clisp.org>
75099
75100         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
75101
75102 2004-12-18  Bruno Haible  <bruno@clisp.org>
75103
75104         * lib/fatal-signal.c (fatal_signals): Make non-const.
75105         (init_fatal_signals): New function.
75106         (uninstall_handlers, install_handlers): Ignore signals that were set to
75107         SIG_IGN.
75108         (at_fatal_signal): Call init_fatal_signals.
75109         (init_fatal_signal_set): Likewise. Ignore signals that were set to
75110         SIG_IGN.
75111         Reported by Paul Eggert.
75112
75113 2004-12-18  Bruno Haible  <bruno@clisp.org>
75114
75115         * doc/alloca.texi: New file.
75116         * doc/alloca-opt.texi: New file.
75117
75118 2004-12-17  Jim Meyering  <jim@meyering.net>
75119
75120         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
75121         Otherwise, install-sh could exit with improper exit status when
75122         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
75123
75124 2004-12-16  Simon Josefsson  <jas@extundo.com>
75125
75126         * tests/test-base64.c: Add license.
75127
75128 2004-12-15  Stepan Kasal  <address@hidden>
75129
75130         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
75131
75132 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
75133
75134         * modules/getcwd (Files): Add m4/d-ino.m4.
75135         Suggested by Mark D. Baushke.
75136
75137 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
75138
75139         * lib/getdate.y (textint): New member "negative".
75140         (time_zone_hhmm): New function.
75141         Expect 14 shift-reduce conflicts, not 13.
75142         (o_colon_minutes): New rule.
75143         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
75144         (yylex): Set the "negative" member of signed numbers.
75145
75146 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
75147
75148         * doc/getdate.texi (Time of day items, Time zone items):
75149         Describe new formats +00:00, UTC+00:00.
75150
75151 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
75152
75153         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
75154         spurious "-l"s.  Problem reported by Stepan Kasal.
75155
75156 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
75157
75158         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
75159         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
75160
75161 2004-12-04  Simon Josefsson  <jas@extundo.com>
75162
75163         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
75164         Vandoorselaere <yoann@prelude-ids.org>.
75165
75166 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75167
75168         Changes imported from coreutils.
75169         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
75170         exist.
75171         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
75172
75173 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75174
75175         Changes imported from coreutils.
75176         * lib/hard-locale.c: Assume <locale.h> exists.
75177         Include "strdup.h".
75178         (GLIBC_VERSION): New macro.
75179         (hard_locale): Assume setlocale exists.
75180         Rewrite to avoid #ifdef.
75181         Use strdup rather than malloc + strcpy.
75182         * lib/human.c: Assume <locale.h> exists.
75183         (human_readable): Assume localeconv exists.
75184
75185 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75186
75187         * modules/hard-locale (Depends-on): Add strdup.
75188
75189 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
75190
75191         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
75192         convert T2, not T.  (Imported from libc.)
75193
75194 2004-11-30  Simon Josefsson  <jas@extundo.com>
75195
75196         * modules/restrict (License): Change to LGPL.
75197
75198 2004-11-30  Simon Josefsson  <jas@extundo.com>
75199
75200         * m4/restrict.m4: Add copyright and copying conditions.
75201
75202 2004-11-30  Simon Josefsson  <jas@extundo.com>
75203
75204         * m4/base64.m4: New file.
75205
75206 2004-11-30  Simon Josefsson  <jas@extundo.com>
75207
75208         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
75209         base64.
75210
75211         * tests/test-base64.c: New file.
75212
75213         * modules/base64: New file.
75214
75215 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
75216
75217         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
75218         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
75219
75220         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
75221
75222 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
75223
75224         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
75225         (__getcwd.c): Don't restore errno; glibc doesn't.
75226         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
75227         first, falling back to our code only if its results look suspicious.
75228         Ensure that the resulting buffer is only as large as necessary.
75229
75230         * lib/readutmp.c: Include readutmp.h first.
75231         Include <errno.h>, since readutmp.h no longer does that.
75232         * lib/readutmp.h: Don't include <errno.h>,
75233         <sys/param.h>, <time.h>; not needed to establish interface.
75234         (errno): Remove decl.
75235         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
75236         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
75237         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
75238
75239 2004-11-28  Simon Josefsson  <jas@extundo.com>
75240
75241         * lib/base64.h, base64.c: New file.
75242
75243 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
75244
75245         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
75246
75247 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
75248
75249         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
75250         (Depends-on): Remove pathmax, same.  Add mempcpy.
75251         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
75252         (Makefile.am): Append getcwd.h to lib_SOURCES.
75253         (Include): Add getcwd.h.
75254         (Maintainer): Change from Jim Meyering to "all, glibc",
75255         since getdate now uses intended-for-glibc code.
75256         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
75257         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
75258
75259 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
75260
75261         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
75262         HP's ANSI C compiler.
75263         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
75264         Declaring int functions causes warnings on some modern systems and
75265         shouldn't be needed to compile on ancient ones.
75266         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
75267         defined.
75268
75269         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
75270         with the following changes.
75271         (__set_errno): Parenthesize properly.
75272         Include <stdbool.h>.
75273         (MIN, MAX, MATCHING_INO): New macros.
75274         (__getcwd): Define with prototype, not K&R form.
75275         Use heuristics to allocate default buffer on stack if possible.
75276         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
75277         behavior, and to avoid the PATH_MAX limit when computing
75278         ../../../../...
75279         Use MATCHING_INO to compare inode number to file.
75280         Check for arithmetic overflow in size calculations.
75281         Fix bug in reallocation of dot array that caused getcwd to fail
75282         on directories nested deeper than 75.
75283         Be more careful about saving errno on error.
75284         Do not use realloc; use only free+malloc, as this is a bit
75285         more flexible and avoids a needless copy operation.
75286         Do not inspect st_dev and st_ino for symbolic links; POSIX
75287         doesn't specify the latter.
75288         Check for closedir errors.
75289         Avoid needless casts.
75290         Use "#ifdef weak_alias" around weak_alias, to be like other
75291         glibc code.
75292         The following changes to getcwd.c have effect only when used in
75293         gnulib; they have no effect inside glibc proper.
75294         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
75295         as alloca isn't used.
75296         (alloca, __alloca): Likewise.
75297         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
75298         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
75299         unconditionally, as gnulib assumes C89 or better.
75300         Do not include <sys/param.h>.
75301         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
75302         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
75303         better.
75304         (NULL) [!defined NULL]: Remove; we assume C89 or better.
75305         Include <dirent.h> in a way that is compatible with modern Autoconf.
75306         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
75307         New macros, if not already defined.
75308         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
75309         Use "_LIBC", not "defined _LIBC", for consistency.
75310         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
75311         a mempcpy module.
75312         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
75313         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
75314         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
75315         credit only to Jim Meyering and adjust the copyright dates.
75316         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
75317         <stdlib.h>, <unistd.h>, "pathmax.h".
75318         Instead, include "xgetcwd.h" (first) and "getcwd.h".
75319         (INITIAL_BUFFER_SIZE): Remove.
75320         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
75321
75322 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
75323
75324         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
75325         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
75326         Use the _ONCE methods, for efficiency.
75327         Check for fcntl.h.  In test program, include <errno.h>
75328         and <fcntl.h> if available.  Remove old K&R cruft from
75329         test program.  Check for common errors in GNU/Linux,
75330         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
75331         don't do AC_LIBOBJ, as that's getcwd.m4's job.
75332         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
75333         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
75334         name accordingly.
75335         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
75336         accommodate new getcwd.c.
75337         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
75338         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
75339         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
75340         that's all we need now.
75341
75342 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75343
75344         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
75345         argp-parse.c depends on getopt internals, that means we should
75346         always use our getopt, to be on the safe side.
75347         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
75348         order not to spoil the result of an eventual previous invocation
75349         of gl_GETOPT_SUBSTITUTE.
75350
75351 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75352
75353         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
75354         redefinition warnings. To avoid them, include the defines
75355         in `#if !defined __need_getopt ... #endif'. The only place
75356         where __getopt_argv_const is used is in definitions
75357         of getopt_long and getopt_long_only below, which are as well
75358         protected by `#ifndef __need_getopt'.
75359         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
75360         __need_getopt after including <stdio.h> and <unistd.h> These
75361         headers might have defined it.
75362
75363 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
75364
75365         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
75366
75367 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
75368
75369         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
75370         (futimens): New function, which uses futimes if available.
75371         (futimens, utimens): Support timespec==NULL, with same semantics
75372         as utime and utimens.
75373         * lib/utimens.h (futimens): New decl.
75374
75375 2004-11-23  Jim Meyering  <jim@meyering.net>
75376
75377         * lib/getopt_.h: Remove trailing blanks.
75378
75379 2004-11-23  Jim Meyering  <jim@meyering.net>
75380
75381         * lib/__fpending.c: Add comment.
75382
75383 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
75384
75385         * modules/canonicalize (Depends-on): Add xreadlink.
75386         Problem reported by James Youngman.
75387
75388 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75389
75390         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
75391         New macros.
75392         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
75393         optopt): Use them instead of invoking ## directly; otherwise, the
75394         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
75395
75396 2004-11-19  Bruno Haible  <bruno@clisp.org>
75397
75398         * lib/strtok_r.c: Move comments from here...
75399         * lib/strtok_r.h: ... to here.
75400
75401 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75402
75403         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
75404         implementations that mishandle size_t overflow.
75405
75406 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75407
75408         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
75409         might fail.  Problem reported by Yoann Vandoorselaere.
75410         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
75411         implementations that mishandle size_t overflow.
75412
75413 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75414
75415         * modules/canon-host (Depends-on): Add strdup.
75416
75417 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75418
75419         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
75420
75421 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75422
75423         * lib/canon-host.c: Include "strdup.h".
75424         (canon_host): Use getaddrinfo if available, so that IPv6 works.
75425         Use strdup instead of malloc/strcpy to duplicate strings.
75426
75427         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
75428         (human_space_before_unit): New constant.
75429         * lib/human.c (human_readable): Support it.
75430
75431         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
75432         (xgetcwd): Set errno correctly when failing.
75433         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
75434         the failure is actually due to a PATH_MAX problem.
75435
75436         Further getopt changes to make it more likely that glibc will
75437         buy the changes back.
75438         * lib/getopt.c (POSIXLY_CORRECT): New constant.
75439         (getopt): Use it, so to preserve glibc semantic
75440         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
75441         when compiling for libc.
75442         * lib/getopt_.h (__getopt_argv_const): Bring it back.
75443         (getopt_long, getopt_long_only): Use it.
75444
75445         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
75446         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
75447         (getopt): Argv is now char * const *, as per standard.
75448         (_getopt_internal_r, _getopt_internal): Argv is now char **,
75449         not char *__getopt_argv_const *.
75450         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
75451         _getopt_long_only_r): Likewise.
75452         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
75453         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
75454         _getopt_long_r, _getopt_long_only_r): Likewise.
75455         * lib/getopt_.h (__getopt_argv_const): Remove.
75456         (getopt): Argv is now char * const *, as per standard.
75457
75458         * lib/getdate.y (tORDINAL): New token.
75459         (day, relunit): Allow it for relative times.
75460         (relative_time_table): Use tORDINAL for ordinals.
75461
75462 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75463
75464         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
75465         Document that "second" isn't allowed as an ordinal number.
75466
75467 2004-11-16  Jim Meyering  <jim@meyering.net>
75468
75469         * modules/closeout (Depends-on): Add fpending.
75470
75471 2004-11-15  Jim Meyering  <jim@meyering.net>
75472
75473         * lib/closeout.c: Include "__fpending.h" once again.
75474         Include <stdbool.h>.
75475         (close_stdout): Don't fail just because stdout was closed initially,
75476         since some programs don't write to stdout in the normal course of
75477         operation (other than --version and --help), and we don't want this
75478         function to make e.g. `touch file >&-' fail.
75479         But do fail if it was closed and someone has tried to write to it.
75480         E.g., `printf foo >&-' must fail.
75481
75482 2004-11-13  Jim Meyering  <jim@meyering.net>
75483
75484         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
75485
75486 2004-11-12  Simon Josefsson  <jas@extundo.com>
75487
75488         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
75489         small doc fix is still pending.
75490
75491 2004-11-11  Simon Josefsson  <jas@extundo.com>
75492
75493         * modules/strtok_r: New file.
75494
75495         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75496         strtok_r.
75497
75498 2004-11-11  Simon Josefsson  <jas@extundo.com>
75499
75500         * m4/strtok_r.m4: New file.
75501
75502         * m4/getopt.m4: Replace opterr.
75503
75504 2004-11-11  Simon Josefsson  <jas@extundo.com>
75505
75506         * lib/strtok_r.h, strtok_r.c: New file.
75507
75508 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
75509
75510         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
75511         of replacing opterr, getopt, etc.  This should handle the
75512         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
75513
75514 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
75515
75516         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
75517         we can stop lying to compilers about the constness of argv when we
75518         are compiled outside glibc.
75519         (getopt, getopt_long, getopt_long_only): Use it.
75520         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
75521         _getopt_internal, getopt): Likewise.
75522         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
75523         _getopt_long_only_r): Likewise.
75524         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
75525         _getopt_long_r, _getopt_long_only_r): Likewise.
75526
75527         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
75528         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
75529         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
75530         the other external symbols.
75531         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
75532         declaration, since the above renaming now works around collisions.
75533
75534 2004-11-11  Jim Meyering  <jim@meyering.net>
75535
75536         * lib/linebreak.c: Remove trailing blanks.
75537         * lib/alloca_.h: Likewise.
75538         * lib/acosl.c: Likewise.
75539         * lib/euidaccess.c: Likewise.
75540         * lib/allocsa.h: Likewise.
75541
75542 2004-11-10  Simon Josefsson  <jas@extundo.com>
75543
75544         * m4/getaddrinfo.m4: New file.
75545
75546 2004-11-10  Simon Josefsson  <jas@extundo.com>
75547
75548         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
75549
75550 2004-11-10  Simon Josefsson  <jas@extundo.com>
75551
75552         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75553         getaddrinfo.
75554
75555         * modules/getaddrinfo: New file.
75556
75557 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75558
75559         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
75560
75561 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75562
75563         * lib/mktime.c (SHR): New macro, which is a portable
75564         substitute for >> that should work even on Crays.
75565         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
75566         Problem reported by Mark D. Baushke in
75567         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
75568         * lib/getdate.y (SHR): Likewise.
75569         (tm_diff): Use it.
75570         * lib/strftime.c (SHR): Likewise.
75571         (tm_diff): Use it.
75572         * lib/quotearg.c (struct quoting_options): Use unsigned int for
75573         quote_these_too, so that right shifts are well defined.  All uses
75574         changed.
75575
75576 2004-11-10  Jim Meyering  <jim@meyering.net>
75577
75578         Ensure that no close failure goes unreported.
75579         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
75580         return early when it seems there's nothing to flush.
75581         Don't include __fpending.h.
75582
75583 2004-11-10  Jim Meyering  <jim@meyering.net>
75584
75585         * modules/closeout (Depends-on): Remove fpending.
75586
75587 2004-11-10  Jim Meyering  <jim@meyering.net>
75588
75589         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
75590
75591 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75592
75593         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
75594         gl_FUNC_STRFTIME.
75595         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
75596         and AC_REQUIRE when possible, to avoid duplicate checks.
75597         Check for <wchar.h>.
75598
75599 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75600
75601         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
75602
75603 2004-11-09  Bruno Haible  <bruno@clisp.org>
75604
75605         * m4/sockpfaf.m4: New file.
75606
75607 2004-11-05  Bruno Haible  <bruno@clisp.org>
75608
75609         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
75610         Reported by Mark D. Baushke <mdb@cvshome.org>.
75611
75612 2004-11-04  Bruno Haible  <bruno@clisp.org>
75613
75614         2004-09-11  Bruno Haible  <bruno@clisp.org>
75615                 * allocsa.valgrind: New file.
75616         2004-02-06  Bruno Haible  <bruno@clisp.org>
75617                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
75618                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
75619                 Reported by Christopher Seip <chris.seip@hp.com>.
75620
75621 2004-11-04  Bruno Haible  <bruno@clisp.org>
75622
75623         * modules/allocsa (Files): Add lib/allocsa.valgrind.
75624         (Makefile.am): Distribute it.
75625
75626 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
75627
75628         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
75629         with errno == ERANGE if the buffer is too small.
75630         Problem reported by Mark D. Baushke.
75631
75632 2004-11-03  Albert Chin  <china@thewrittenword.com>
75633             Paul Eggert  <eggert@cs.ucla.edu>
75634
75635         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
75636         equivalent, substitute $ac_type for equivalent type rather than
75637         blindly using uint32_t *always* which won't work if uint32_t is not
75638         available.  Define _UINT32_T to work around typedef of uint32_t if
75639         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
75640         2.5.1.
75641
75642 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75643
75644         * m4/jm-macros.m4: Sync from coreutils.
75645         (gl_MACROS): Check for mbrlen, for pathchk.
75646         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
75647
75648 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75649
75650         * lib/xreadlink.c (MAXSIZE): New macro.
75651         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
75652         size does not exceed MAXSIZE.  Avoid cast.
75653         As suggested by Mark D. Baushke in
75654         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
75655         if readlink fails with buffer size just under MAXSIZE, try again
75656         with MAXSIZE.
75657
75658 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75659
75660         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
75661
75662 2004-11-02  Derek R. Price  <derek@ximbiot.com>
75663         and  Paul Eggert  <eggert@cs.ucla.edu>
75664
75665         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
75666         (get_date): Overparenthesize to avoid GCC warning.
75667
75668 2004-11-02  Bruno Haible  <bruno@clisp.org>
75669
75670         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
75671         returns void.
75672
75673 2004-11-02  Bruno Haible  <bruno@clisp.org>
75674
75675         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
75676         function returns void.
75677
75678 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
75679
75680         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
75681         fflush_unlocked, flockfile, funlockfile, funlockfile,
75682         fputs_unlocked, putc_unlocked.
75683
75684 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
75685
75686         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75687         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
75688         already declared.
75689
75690 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75691
75692         * modules/getdate (Files): Add doc/getdate.texi.
75693         (Depends-on): Add setenv, xalloc.
75694
75695 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75696
75697         * lib/getdate.y: Add support for TZ="foo" within a date string.
75698         Fix some bugs near time_t boundaries.  Reject dates with
75699         out-of-range components, e.g., "Sept 31".
75700         Include <stdlib.h>, "setenv.h", "xalloc.h".
75701         (ISDIGIT_LOCALE): Remove; unused.
75702         Note that the TZ and time functions used here are not reentrant.
75703         (mktime_ok, get_tz): New functions.
75704         (TZBUFSIZE): New constant.
75705         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
75706         This requires that we sometimes generate our own TZ="XXX..." setting.
75707
75708 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75709
75710         * doc/getdate.texi: New file, from coreutils with modifications for
75711         the new TZ parsing.
75712
75713 2004-10-27  Derek R. Price  <derek@ximbiot.com>
75714
75715         * lib/mktime.c (not_equal_tm): Remove redundant check.
75716
75717 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75718
75719         * modules/regex (lib_SOURCES): Add regex.c.
75720         Reported by James Youngman in
75721         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
75722
75723 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75724
75725         * lib/getdate.y: Use Bison 1.875 features, and some minor
75726         code cleanups.  This change does not affect semantics.
75727         Don't include <stdlib.h>; no longer needed.
75728         Don't include unlocked-io.h; only the "#if TEST" code uses
75729         stdio, and performance isn't crucial there.
75730         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
75731         Bison 1.875 features as described below.
75732         All uses of "PC." replaced by "pc->".
75733         (YYSTYPE): Add a forward declaration.
75734         (yylex, yyerror): Use full prototypes in forward decls.
75735         Use "%pure-parser" rather than obsolescent "%pure_parser".
75736         Use %parse-param and %lex-param instead of obsolescent
75737         YYPARSE_PARAM and YYLEX_PARAM.
75738         (meridian_table, month_and_day_table, time_units_table,
75739         relative_time_table, time_zone_table, military_table,
75740         lookup_zone, lookup_word, get_date):
75741         Use NULL instead of 0 where appropriate.
75742         (to_hour): Avoid abort (), to avoid a dependency on
75743         stdlib.h.
75744         (yyerror, yylex): Now accepts parser_control * arg.
75745         (main) [TEST]: Use '\0' rather than 0 for char.
75746
75747 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75748
75749         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
75750
75751 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75752
75753         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
75754         It's now the caller's responsibility to handle the case where
75755         !HAVE_GETPAGESIZE && !defined getpagesize.
75756
75757         * lib/mktime.c (leapyear): Arg is long int, not int.
75758
75759 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
75760
75761         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
75762
75763 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
75764
75765         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
75766         missing.  Problem reported by James Youngman.
75767
75768 2004-10-16  Simon Josefsson  <jas@extundo.com>
75769
75770         * gnulib-tool: Fix comments.  Fix parse problem.
75771         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
75772
75773 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
75774
75775         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
75776         implementation of getopt_long.  Problem reported by Alexander Taler in:
75777         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
75778
75779 2004-10-15  Bruno Haible  <bruno@clisp.org>
75780
75781         * gnulib-tool: Untabify. Initialize supplied_libname.
75782         (func_usage): More homogenous output.
75783         (func_modules_transitive_closure, func_modules_to_filelist,
75784         func_emit_lib_Makefile_am): New functions.
75785         (func_import): New function, extracted from big case statement. Use
75786         func_get_license, func_modules_transitive_closure,
75787         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
75788         opt_lgpl. Don't use test -a, as it's not portable.
75789         (func_create_testdir): Use func_modules_transitive_closure,
75790         func_modules_to_filelist, func_emit_lib_Makefile_am.
75791
75792 2004-10-15  Bruno Haible  <bruno@clisp.org>
75793
75794         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
75795
75796 2004-10-15  Bruno Haible  <bruno@clisp.org>
75797
75798         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
75799         the portions belonging to each module.
75800         Suggested by Derek Robert Price <derek@ximbiot.com>.
75801
75802 2004-10-12  Simon Josefsson  <jas@extundo.com>
75803
75804         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75805         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
75806         to real functions.
75807
75808 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75809
75810         * modules/vsnprintf: New file.
75811
75812 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75813
75814         * m4/vsnprintf.m4: New file.
75815
75816 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75817
75818         * lib/vsnprintf.h: New file.
75819         * lib/vsnprintf.c: New file.
75820
75821 2004-10-11  Bruno Haible  <bruno@clisp.org>
75822
75823         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
75824         vsnprintf.
75825
75826 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75827
75828         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
75829
75830 2004-10-07  Bruno Haible  <bruno@clisp.org>
75831
75832         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
75833         fits into the provided buffer.
75834
75835 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75836
75837         * lib/diacrit.c, diacrit.h: Add GPL notice.
75838
75839         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
75840         notice.
75841         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
75842         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
75843         This avoids a potential constant-folding bug.
75844
75845 2004-10-05  Bruno Haible  <bruno@clisp.org>
75846
75847         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
75848         for the declaration of strsep.
75849
75850 2004-10-05  Bruno Haible  <bruno@clisp.org>
75851
75852         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
75853
75854 2004-10-04  Simon Josefsson  <jas@extundo.com>
75855
75856         * modules/memmem: New file.
75857         * tests/test-memmem.c: New file.
75858         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
75859
75860 2004-10-04  Simon Josefsson  <jas@extundo.com>
75861
75862         * m4/memmem.m4: New file.
75863
75864 2004-10-04  Simon Josefsson  <jas@extundo.com>
75865
75866         * lib/memmem.h: New file.
75867         * lib/memmem.c: New file, taken from glibc.
75868
75869 2004-10-04  Simon Josefsson  <jas@extundo.com>
75870
75871         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
75872         '#ifdef USE_UNLOCKED_IO'.
75873
75874 2004-10-04  Simon Josefsson  <jas@extundo.com>
75875
75876         * config/srclist.txt: Add memmem from glibc.
75877
75878 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75879
75880         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
75881
75882         * modules/argmatch, modules/argp, modules/closeout, modules/error,
75883         modules/exclude, modules/getdate, modules/getline,
75884         modules/getndelim2, modules/getpass, modules/getpass-gnu,
75885         modules/getusershell, modules/linebuffer, modules/md5,
75886         modules/mountlist, modules/posixtm, modules/readtokens,
75887         modules/readutmp, modules/regex, modules/sha1,
75888         modules/version-etc, modules/yesno:
75889         Remove dependency on unlocked-io.
75890
75891 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75892
75893         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
75894
75895         * m4/unlocked-io.m4: Add copyright notice.
75896         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
75897
75898 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75899
75900         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
75901         * lib/xmalloc.c (xmemdup): Likewise.
75902         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
75903         XFREE): Remove these long-obsolescent macros.
75904         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
75905         * lib/xstrdup.c: Remove.
75906
75907         * lib/regex.c (re_comp): Cast gettext return value to char *,
75908         Problem reported by Martin Neitzel via Mark D. Baushke.
75909
75910 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75911
75912         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
75913         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
75914         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
75915         regex.c, sha1.c, version-etc.c, yesno.c:
75916         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
75917         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
75918         the includer's responsibility.
75919
75920         Sync from coreutils.
75921
75922         * lib/modechange.c (mode_compile): Don't decrement a pointer that
75923         points to the start of a string, as the C Standard says the
75924         resulting behavior is undefined.
75925
75926         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
75927         simple -> simple_backups, numbered_existing ->
75928         numbered_existing_backups, numbered -> numbered_backups
75929         to avoid shadowing problems.  All uses changed.
75930         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
75931         * lib/backupfile.c (check_extension, numbered_backup):
75932         Rename locals to avoid shadowing 'basename'.
75933         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
75934         once.
75935
75936         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
75937         * lib/.cvsignore: Add getopt.h.
75938
75939 2004-10-04  Bruno Haible  <bruno@clisp.org>
75940
75941         * modules/README: New file.
75942         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
75943         not a module.
75944
75945 2004-10-02  Jim Meyering  <jim@meyering.net>
75946
75947         * lib/dirfd.h, getpagesize.h: Add copyright notice.
75948
75949 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75950
75951         * modules/strsep: New file.
75952
75953 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75954
75955         * m4/strsep.m4: New file.
75956
75957 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75958
75959         * lib/strsep.h: New file.
75960         * lib/strsep.c: New file.
75961
75962 2004-10-01  Simon Josefsson  <jas@extundo.com>
75963
75964         * lib/snprintf.c (snprintf): Handle size==0.
75965
75966 2004-10-01  Simon Josefsson  <jas@extundo.com>
75967             Bruno Haible  <bruno@clisp.org>
75968
75969         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
75970         (snprintf): Declare 'args'.
75971
75972 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
75973
75974         * lib/snprintf.c: Remove comments as to why each header is needed.
75975
75976 2004-10-01  Bruno Haible  <bruno@clisp.org>
75977
75978         * MODULES.html.sh: Add strsep.
75979
75980 2004-09-30  Simon Josefsson  <jas@extundo.com>
75981
75982         * modules/snprintf: New file.
75983
75984 2004-09-30  Simon Josefsson  <jas@extundo.com>
75985
75986         * m4/snprintf.m4: New file.
75987
75988 2004-09-30  Simon Josefsson  <jas@extundo.com>
75989
75990         * lib/snprintf.h, lib/snprintf.c: New files.
75991
75992 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75993
75994         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
75995         (hol_entry_help): Never translate an empty string.
75996         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
75997         * lib/argp.h (OPTION_NO_TRANS): New option.
75998
75999 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76000
76001         * modules/argp (Maintainer): Replace Simon Josefsson
76002         by Sergey Poznyakoff.
76003
76004 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76005
76006         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
76007         changes merged back into glibc.
76008
76009 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76010
76011         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
76012
76013 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
76014
76015         * lib/xvasprintf.c: Include xalloc.h.
76016         (xvasprintf): Use xalloc_die, not xmalloc_die.
76017
76018 2004-09-29  Bruno Haible  <bruno@clisp.org>
76019
76020         * modules/alloca-opt: New file, derived from modules/alloca.
76021         * modules/allocsa: Depend on alloca-opt instead of alloca.
76022         * modules/setenv: Likewise.
76023         * modules/vasnprintf: Likewise.
76024         * MODULES.html.sh: Add alloca-opt.
76025
76026 2004-09-28  Simon Josefsson  <jas@extundo.com>
76027
76028         * gnulib-tool: New parameter --lgpl, to asseert that modules are
76029         LGPL, and to replace license template from GPL to LGPL.
76030
76031 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
76032
76033         * modules/dummy: Change license to LGPL.
76034
76035 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
76036
76037         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
76038
76039 2004-09-24  Simon Josefsson  <jas@extundo.com>
76040
76041         * modules/minmax (License): Change from GPL to LGPL.
76042
76043 2004-09-23  Simon Josefsson  <jas@extundo.com>
76044
76045         * gnulib-tool (--import): Typo.
76046
76047 2004-09-23  Simon Josefsson  <jas@extundo.com>
76048
76049         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
76050
76051 2004-09-22  Bruno Haible  <bruno@clisp.org>
76052
76053         * modules/*: Add 'License' field.
76054         * gnulib-tool: Accept --extract-license option.
76055         (func_get_license): New function.
76056
76057 2004-09-21  Bruno Haible  <bruno@clisp.org>
76058
76059         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
76060         Reported by Simon Josefsson.
76061
76062 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76063
76064         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
76065         gl_AC_TYPE_LONG_LONG.
76066
76067 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76068
76069         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
76070
76071 2004-09-18  Simon Josefsson  <jas@extundo.com>
76072         and  Paul Eggert  <eggert@cs.ucla.edu>
76073
76074         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
76075         calls with autoreconf.  Define GL_LIB.
76076
76077 2004-09-14  Karl Berry  <karl@gnu.org>
76078
76079         * config/srclist.txt: unsync setenv.c, sigh.
76080
76081 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76082
76083         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
76084         Problem reported by Bruno Haible in:
76085         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
76086
76087 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76088
76089         * config/srclist.txt: Comment out argp-pvh.c.
76090
76091 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
76092
76093         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
76094         in case some system header has #define'd it.  Problem reported by
76095         Soeren D. Schulze in
76096         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
76097
76098 2004-09-09  Karl Berry  <karl@gnu.org>
76099
76100         * regex.[ch]: delete from the root.  These were supposed to be
76101                 synced with emacs cvs, but this has not happened for about
76102                 a year, and anyway nothing else uses emacs regex.[ch].
76103                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
76104                 lib/regex[.ch] is untouched.
76105
76106 2004-09-09  Bruno Haible  <bruno@clisp.org>
76107
76108         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
76109
76110 2004-09-09  Bruno Haible  <bruno@clisp.org>
76111
76112         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
76113         modifications.
76114         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
76115
76116 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
76117
76118         * modules/xvasprintf: New file.
76119         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
76120
76121 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
76122
76123         * lib/xvasprintf.h: New file.
76124         * lib/xvasprintf.c: New file.
76125         * lib/xasprintf.c: New file.
76126
76127 2004-09-08  Bruno Haible  <bruno@clisp.org>
76128
76129         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
76130
76131 2004-09-08  Bruno Haible  <bruno@clisp.org>
76132
76133         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
76134         length is > INT_MAX.
76135         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
76136         more.
76137
76138 2004-09-08  Bruno Haible  <bruno@clisp.org>
76139
76140         * lib/stdint_.h: New file, taken from GNU clisp.
76141
76142 2004-09-08  Bruno Haible  <bruno@clisp.org>
76143             Oskar Liljeblad  <oskar@osk.mine.nu>
76144
76145         * modules/stdint: New file.
76146         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
76147
76148 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76149
76150         Import from coreutils.
76151         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
76152         strings on unbounded length.  alloca's performance benefits aren't
76153         that important here.
76154         (V_STRDUP): Remove.
76155         (parse_with_separator): New function, with most of the internals
76156         of the old parse_user_spec.  Allow user to omit both user and group,
76157         for compatibility with FreeBSD.
76158         Clone only the user name, not the entire spec.
76159         Do not set *uid, *gid unless entirely successful.
76160         Avoid memory leak in some failing cases.
76161         Fix regression for USER.GROUP reported by Dmitry V. Levin in
76162         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
76163         (parse_user_spec): Rewrite to use parse_with_separator.
76164
76165 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76166
76167         * modules/userspec: Don't depend on alloca.
76168
76169 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76170
76171         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
76172
76173 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76174
76175         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
76176         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
76177         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
76178
76179 2004-08-16  Simon Josefsson  <jas@extundo.com>
76180
76181         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
76182         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
76183         Add --dry-run for --import.
76184         Let user provided command line parameters override configure.ac
76185         settings.
76186
76187 2004-08-12  Simon Josefsson  <jas@extundo.com>
76188
76189         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
76190         as discussed with Paul Eggert in threads rooted at
76191         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
76192         and
76193         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
76194         Before, the test was empty, and relied on ELIDE_CODE in source
76195         code.)
76196         (gl_PREREQ_GETOPT): New macro.
76197         (gl_GETOPT): Use them.
76198
76199 2004-08-12  Simon Josefsson  <jas@extundo.com>
76200
76201         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
76202         * lib/getopt_.h: Renamed from getopt.h.
76203
76204 2004-08-12  Simon Josefsson  <jas@extundo.com>
76205
76206         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
76207         Change default library name from libfoo to libgnu.
76208         Now, if you have a configure.ac that says:
76209                 gl_SOURCE_BASE(gl)
76210                 gl_M4_BASE(gl/m4)
76211                 gl_MODULES(error getopt etcetera)
76212                 gl_INIT
76213         you can import all you need by running:
76214                 ../gnulib/gnulib-tool --import
76215
76216         * modules/getopt (Files): Rename getopt.h to getopt_.h.
76217         (Makefile.am): Rewrite, use logic from argz.
76218         (Include): Use <getopt.h> instead of "getopt.h".
76219
76220 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76221
76222         * modules/argp (Files): Add m4/unlocked-io.m4.
76223         (Depends-on): Add extensions.
76224
76225 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76226
76227         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
76228         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
76229         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
76230         Check for program_invocation_name, program_invocation_short_name,
76231         flockfile, funlockfile, features.h, _getopt_long_only_r.
76232
76233 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76234
76235         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
76236         its complicated substitute.
76237         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
76238         and program_invocation_name.
76239         (__argp_basename) [!_LIBC]: Remove; the only use was
76240         replaced by its body.
76241         (__argp_short_program_name): Change condition from
76242         !defined __argp_short_program_name to
76243         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
76244         to match argp-namefrob.h.
76245         (__argp_failure): Don't assume strerror_r returns char *.
76246         * lib/argp-parse.c (N_): Define unconditionally.
76247         (argp_default_options): Fill out initializers with 0 to avoid
76248         gcc warnings.
76249
76250 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76251
76252         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
76253         getopt1.c.
76254
76255 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76256
76257         Merge from coreutils.
76258
76259         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
76260
76261         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
76262         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
76263
76264 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76265
76266         Merge from coreutils.
76267
76268         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
76269         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
76270         for Reliant Unix 5.43.
76271
76272         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
76273         (union fooround): Use uintmax_t, not long int.
76274         The rest is a merge from libc:
76275         [defined _LIBC]: Include <shlib-compat.h>.
76276         (_obstack) [defined _LIBC]: Remove after 2.3.4.
76277
76278         * lib/settime.c (settime): Recode to avoid warning with
76279         Sun Forte C 6U2.
76280
76281         * lib/strverscmp.c: Convert to UTF-8.
76282
76283 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76284
76285         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
76286         m4/uintmax_t.m4.
76287
76288 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76289
76290         * modules/xalloc-die: New file.
76291         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
76292
76293         * modules/md5 (Files): Add m4/uint32_t.m4.
76294         * modules/sha1: Renamed from modules/sha.
76295         (Files):
76296         Rename lib/sha.h to lib/sha1.h.
76297         Rename lib/sha.c to lib/sha1.c.
76298         Rename m4/sha.m4 to m4/sha1.m4.
76299         (lib_SOURCES): Likewise.
76300         (configure.ac): Rename gl_SHA to gl_SHA1.
76301         (Include): sha.h -> sha1.h.
76302
76303 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76304
76305         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
76306         * m4/sha1.m4: Renamed from sha.m4.
76307         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
76308
76309 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76310
76311         * lib/obstack.h (obstack_empty_p):
76312         Don't assume that chunk->contents is suitably aligned.
76313         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
76314         Likewise. Problem reported by Benno in
76315         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
76316
76317         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
76318         readable.  This could be improved further but it'd take some work.
76319
76320 2004-08-08  Simon Josefsson  <jas@extundo.com>
76321
76322         * modules/xgethostname (Depends-on): Remove exit and error (not
76323         used).
76324
76325         * modules/getpass-gnu: Add getpass.h.
76326         (Depends-on): Add stdbool.
76327         * modules/getpass: Add getpass.h.
76328
76329 2004-08-08  Simon Josefsson  <jas@extundo.com>
76330
76331         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
76332         Check getpass declaration.
76333
76334 2004-08-08  Simon Josefsson  <jas@extundo.com>
76335
76336         * lib/xgethostname.c: Don't include error.h (not used).
76337
76338         * lib/getpass.h: Add.
76339         * lib/getpass.c: Include getpass.h first.
76340
76341 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
76342
76343         * lib/xalloc-die.c: New file.
76344         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
76345         All uses removed.
76346         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
76347         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
76348         xalloc-die.c.
76349         (_, N_, xalloc_die): Move to xalloc-die.c.
76350         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
76351         so that we needn't mess with xalloc_msg_memory_exhausted.
76352
76353         * lib/sha1.h: Renamed from sha.h.
76354         (SHA1_H): Renamed from _SHA_H.
76355         (sha1_ctx): Renamed from sha_ctx.
76356         (sha1_init_ctx): Renamed from sha_init_ctx.
76357         (sha1_process_block): Renamed from sha_process_block.
76358         (sha1_process_bytes): Renamed from sha_process_bytes.
76359         (sha1_finish_ctx): Renamed from sha_finish_ctx.
76360         (sha1_read_ctx): Renamed from sha_read_ctx.
76361         (sha1_stream): Renamed from sha_stream.
76362         (sha1_buffer): Renamed from sha_buffer.
76363         * lib/sha1.c: Likewise; renamed from sha.c.
76364         Do not include <sys/types.h>.
76365         Include <stddef.h> rather than <stdlib.h>.
76366
76367 2004-08-08  Bruno Haible  <bruno@clisp.org>
76368
76369         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
76370         FILESYSTEM_PREFIX_LEN.
76371         * lib/progreloc.c: Likewise.
76372         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
76373
76374 2004-08-06  Simon Josefsson  <jas@extundo.com>
76375
76376         * modules/progname (Depends-on): Don't depend on stdbool.
76377
76378 2004-08-06  Simon Josefsson  <jas@extundo.com>
76379
76380         * modules/getsubopt: New file.
76381         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76382         getsubopt.
76383
76384 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76385
76386         More merge from coreutils.
76387
76388         * m4/utimens.m4, m4/utimecmp.m4: New files.
76389         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
76390         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
76391         prereq.m4, sha.m4: Import changes from coreutils.
76392
76393 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76394
76395         More merge from coreutils.
76396         * modules/raise, modules/readtokens0, modules/utimens:
76397         * modules/utimecmp, module/xnanosleep: New files.
76398         * modules/strftime: Add lib/strftime.h.
76399         Change include from <time.h> to "strftime.h".
76400         * modules/yesno: Add lib/yesno.h.
76401         * modules/backupfile: Remove lib/addext.c.
76402         * modules/euidaccess: Add stat-macros.h.
76403         * modules/canonicalize, modules/euidaccess,
76404         modules/filemode, modules/lchown, modules/makepath,
76405         modules/rmdir, modules/stat: Likewise.
76406
76407 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76408
76409         Merge from tar.
76410         * lib/argp-help.c (make_hol, hol_append): Don't assume that
76411         SIZE_MAX is a valid preprocessor constant.
76412         (__argp_basename): Change from "#ifndef _LIBC"
76413         to "#ifndef __argp_short_program_name", so that
76414         we don't compile these functions for tar.
76415
76416         More merges from coreutils.
76417         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
76418         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
76419         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
76420         * lib/addext.c: Remove; no longer needed.
76421         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
76422         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
76423         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
76424         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
76425         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
76426         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
76427         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
76428         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
76429         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
76430         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
76431         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
76432         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
76433         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
76434         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
76435         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
76436         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
76437         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
76438         Import changes from coreutils.
76439
76440 2004-08-05  Simon Josefsson  <jas@extundo.com>
76441
76442         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
76443
76444 2004-08-05  Simon Josefsson  <jas@extundo.com>
76445
76446         * m4/getsubopt.m4: New file.
76447
76448 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76449
76450         Merge from coreutils.
76451
76452         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
76453         * m4/getcwd-path-max.m4: New files.
76454
76455         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
76456         FILESYSTEM_PREFIX_LEN ->
76457         FILE_SYSTEM_PREFIX_LEN.
76458         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
76459         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
76460         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
76461         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
76462
76463         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
76464         prerequisite modules now handle the DOS stuff.
76465         Don't check for unistd.h.
76466
76467 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76468
76469         Merge from coreutils.
76470
76471         * lib/.gdb-history: Remove; this doesn't belong here.
76472
76473         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
76474         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
76475         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
76476         * lib/getcwd.c: New files.
76477
76478         * lib/dirname.h: Include <stdbool.h>.
76479         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
76480         for consistency with POSIX terminology.  All uses changed.
76481         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
76482         (strip_trailing_slashes): Use bool for booleans.
76483         * lib/stripslash.c (strip_trailing_slashes): Likewise.
76484
76485         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
76486         sometimes returns a positive errno value even when it succeeds.
76487         (print_errno_message) [!LIBC]: Fall back on strerror if
76488         __strerror_r fails.
76489
76490         * lib/path-concat.c (mempcpy): Don't define if a system header defines
76491         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
76492         (longest_relative_suffix): New function.
76493         (path_concat): Use it.  Assume first argument is not NULL.
76494         Port to DOS.  Omit redundant separators.
76495         Report an error instead of returning NULL.
76496         Use mempcpy instead of memcpy.
76497         (xpath_concat): Remove: not declared or used.
76498
76499         * lib/same.h: Include <stdbool.h>
76500         (same_name): Return bool, not int.
76501         * lib/same.c (same_name): Likewise.
76502         (errno): Don't declare; we assume C89 or better now.
76503
76504         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
76505         if not already defined.
76506
76507         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
76508         * lib/dup-safer.c (errno): Likewise.
76509
76510 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76511
76512         Merge from coreutils.
76513         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
76514         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
76515         * modules/path-concat: Don't depend on strdup.
76516
76517 2004-08-03  Simon Josefsson  <jas@extundo.com>
76518
76519         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
76520         * lib/progname.h: Don't include stdbool.h.
76521
76522 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76523
76524         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
76525         * MODULES.html.sh (func_all_modules): Remove fatal.
76526
76527 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76528
76529         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
76530
76531 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76532
76533         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
76534         working.
76535
76536 2004-08-02  Simon Josefsson  <jas@extundo.com>
76537
76538         * lib/getsubopt.h: New file, with comments from Bruno Haible.
76539         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
76540         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
76541
76542 2004-08-01  Simon Josefsson  <jas@extundo.com>
76543
76544         * lib/xgetdomainname.c: Include stdlib.h, for free().
76545
76546 2004-07-19  Bruno Haible  <bruno@clisp.org>
76547
76548         * MODULES.html.sh (func_all_modules): Add dummy.
76549
76550 2004-07-16  Simon Josefsson  <jas@extundo.com>
76551
76552         * modules/dummy: New file.
76553
76554 2004-07-16  Simon Josefsson  <jas@extundo.com>
76555
76556         * lib/dummy.c: New file.
76557
76558 2004-07-16  Bruno Haible  <bruno@clisp.org>
76559
76560         * lib/backupfile.h: Add extern "C" for C++.
76561         * lib/closeout.h: Likewise.
76562         * lib/copy-file.h: Likewise.
76563         * lib/findprog.h: Likewise.
76564         * lib/full-write.h: Likewise.
76565         * lib/pathname.h: Likewise.
76566         * lib/progname.h: Likewise.
76567         * lib/stpcpy.h: Likewise.
76568         * lib/stpncpy.h: Likewise.
76569         * lib/strcase.h: Likewise.
76570         * lib/strstr.h: Likewise.
76571         * lib/xalloc.h: Likewise.
76572
76573         * lib/mbswidth.h: Add extern "C" for C++.
76574         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
76575
76576 2004-07-13  Robert Millan  <robertmh@gnu.org>
76577
76578         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
76579
76580 2004-07-09  Simon Josefsson  <jas@extundo.com>
76581
76582         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
76583         failed without this.)
76584
76585 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76586
76587         * modules/chown (Files): Add lib/fchown-stub.c, since
76588         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
76589
76590 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76591
76592         * lib/fchown-stub.c: New file.
76593
76594 2004-06-24  Jim Meyering  <jim@meyering.net>
76595
76596         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
76597
76598 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76599
76600         * modules/argz: Omit "#include".
76601
76602         * MODULES.html.sh (func_all_modules): Add calloc, to match
76603         2004-06-01 addition of calloc module.
76604
76605 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76606
76607         * m4/argz.m4: New file, which is autoupdated from libtool.
76608
76609 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76610
76611         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
76612         libtool.
76613
76614 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76615
76616         * config/srclist-update: Don't insist on "USA." before the
76617         close-comment, as libtool omits the period and puts the */ on a
76618         separate line.
76619         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
76620         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
76621
76622 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
76623
76624         * modules/argz: New file.
76625         * MODULES.html.sh (func_all_modules): Add argz.
76626
76627 2004-06-12  Jim Meyering  <jim@meyering.net>
76628         and  Paul Eggert  <eggert@cs.ucla.edu>
76629
76630         * modules/hash (Files): Add lib/xalloc.h.
76631         * modules/pipe (Depends-on): Add wait-process.
76632         * modules/stat (Depends-on): Add xalloc.
76633         * modules/userspec (Files): Add lib/userspec.h.
76634         * modules/xstrto
76635
76636         Upgrade from gettext-0.13.
76637         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
76638         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
76639         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
76640
76641 2004-06-10  Jim Meyering  <jim@meyering.net>
76642
76643         * lib/calloc.c: New file.
76644
76645 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
76646
76647         * lib/getdate.y (yylex): Allow space between sign and number.
76648         Problem reported by Dan Jacobson.
76649
76650 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
76651
76652         Merge from coreutils CVS.
76653
76654         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
76655         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
76656         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
76657         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
76658         xstrtol.m4: Fix copyright date and/or serial number.
76659
76660         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
76661         See if we need an fchown replacement.
76662         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
76663         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
76664         and use the replacement function if we detect either defect.
76665
76666         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
76667         gl_UTIMECMP.
76668
76669 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
76670         and  Jim Meyering  <jim@meyering.net>
76671
76672         Merge from coreutils CVS.
76673
76674         * lib/stat-macros.h: New file, with contents from file-type.h
76675         and coreutils' system.h.
76676         * lib/file-type.c: Include "stat-macros.h".
76677         * lib/file-type.h (file_type): Move all macro definitions to new file,
76678         stat-macros.h.
76679
76680         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
76681         Wrap old code with this conditional.
76682         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
76683         function that does not dereference symlinks.
76684         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
76685
76686         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
76687         dependency problems.
76688         (xreadlink): Accept new arg SIZE, for efficiency.
76689         All decls and uses changed.
76690         * lib/xreadlink.h: Include <stddef.h>, for size_t.
76691
76692         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
76693         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
76694
76695         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
76696         sysexits.h.
76697
76698 2004-06-01  Jim Meyering  <jim@meyering.net>
76699
76700         * m4/calloc.m4: New file.
76701
76702 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
76703
76704         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
76705         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
76706         Also, fix a typo in a diagnostic.
76707
76708 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76709
76710         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
76711         or AC_FUNC_REALLOC.
76712
76713 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76714
76715         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
76716         macros to be defined.
76717         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
76718         the allocator returns NULL because the requested size is zero.
76719
76720 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76721
76722         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
76723         var.  Add comment explaining why libc still defines it.  This
76724         merges the following patch from glibc:
76725         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
76726
76727 2004-05-20  Andreas Schwab  <schwab@suse.de>
76728
76729         * m4/free.m4: Replace free if it not known to work, not the other
76730         way round.
76731
76732 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76733
76734         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
76735         present in glibc since revision 1.1 of this file.
76736         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
76737         obstack_alignment_mask, obstack_alloc, obstack_base,
76738         obstack_blank, obstack_blank_fast, obstack_chunk_size,
76739         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
76740         obstack_grow0, obstack_init, obstack_int_grow,
76741         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
76742         obstack_next_free, obstack_object_size, obstack_ptr_grow,
76743         obstack_ptr_grow_fast, obstack_room): Remove declarations of
76744         nonexistent functions.
76745
76746 2004-05-18  Karl Berry  <karl@gnu.org>
76747
76748         * config/srclist.txt: break link for vasnprintf.c.
76749
76750 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76751
76752         Port obstack to the AS/400, where pointers are 16 bytes wide and
76753         you cannot cast an integer to a valid pointer.  This patch is
76754         currently waiting to be integrated into glibc; see
76755         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
76756
76757         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
76758         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
76759         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
76760         (struct obstack): temp member is now a union of a pointer and
76761         an integer, instead of an integer.  All integer uses changed.
76762         This does not affect the physical layout of struct obstack,
76763         except on hosts (like the AS/400) where the size or alignment of
76764         void * is greater than that of ptrdiff_t.
76765         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
76766         __STDC__)]: Store temporary in pointer member of union, not
76767         integer member.
76768         * lib/obstack.c: Include <stddef.h>, for offsetof.
76769         (struct fooalign): Remove; it doesn't need a name.
76770         (union fooround): Change double to long double, and add void *.
76771         (DEFAULT_ALIGNMENT): Use offsetof to compute.
76772         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
76773         not a macro.  Hence the values are always int; so remove all
76774         casts-to-int in uses.
76775
76776 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76777
76778         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
76779         we can get this patch merged into glibc.
76780
76781 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76782             Paul Eggert  <eggert@cs.ucla.edu>
76783
76784         * m4/argp: Depend on alloca.
76785
76786 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76787             Paul Eggert  <eggert@cs.ucla.edu>
76788
76789         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
76790         freecoding.
76791
76792 2004-05-17  Bruno Haible  <bruno@clisp.org>
76793
76794         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
76795         precision that consists of a '.' followed by an empty digit string.
76796         Patch by Tor Lillqvist <tml@iki.fi>.
76797
76798 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76799
76800         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
76801         for backward compatibility with older code.  We need our own
76802         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
76803         it under some other name, and our alloca.h will define it.
76804
76805 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76806             Derek Price  <derek@ximbiot.com>
76807
76808         * lib/alloca.c: Include <alloca.h>, to get our interface.
76809         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
76810         include <alloca.h> first.  Use C89 prototype for alloca; this
76811         requires including <stddef.h> for size_t.  Use extern "C" if C++.
76812         Use #elif for simplicity, since we can assume C89 now.
76813         Don't try to source the system alloca.h since it will not be found
76814         and to prevent recursively including its replacement.
76815         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
76816         * lib/regex.c: Likewise.
76817
76818 2004-05-16  Derek Price  <derek@ximbiot.com>
76819             Paul Eggert  <eggert@cs.ucla.edu>
76820
76821         getline cleanup.  This changes the getndelim2 API: both order of
76822         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
76823         no delimiter).
76824
76825         * lib/getline.c: Don't include stddef.h or stdio.h, since our
76826         interface does that.
76827         (getline): Always use getdelim, so that we don't have two
76828         copies of this code.
76829         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
76830         if available.
76831         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
76832         (GETNDELIM2_MAXIMUM): New macro.
76833         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
76834         instead of the old practice of delim2==0.  All callers changed.
76835         Return -1 on overflow, instead of returning junk.
76836         Do not set *linesize unless allocation succeeds.
76837         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
76838         that we include sys/types.h.
76839         * lib/getnline.h: Likewise.
76840         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
76841         (getndelim2): Reorder arguments.
76842         * lib/getnline.c (getnline, getndelim):
76843         Don't discard the NMAX argument.
76844         (getnline): Invoke getndelim, to avoid code duplication.
76845         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
76846         of (size_t) -1 by callers of the getnline family.
76847
76848 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76849
76850         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
76851         Check for gettimeofday.
76852         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
76853         Check for settimeofday, stime.
76854
76855 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76856
76857         * lib/nanosleep.c (suspended): Change its type from int to
76858         sig_atomic_t volatile.
76859         (first_call): Make it private to rpl_nanosleep, and have it
76860         be zero initially as that's a bit faster.
76861         (my_usleep): Round up fractional times instead of truncating them,
76862         as this is the usual meaning for 'sleep'.
76863
76864         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
76865         doesn't work.
76866         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
76867         (ENOSYS): Define if not defined.
76868         (settime): Fall back on stime if it exists and settimeofday fails.
76869         But don't bother with fallbacks if a method fails with errno == EPERM.
76870
76871 2004-05-11  Jim Meyering  <jim@meyering.net>
76872
76873         Prior to this change, the save_cwd caller required read access to the
76874         current directory on most systems (ones with the fchdir function).
76875
76876         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
76877         fails, try write-only, and finally, resort to using xgetcwd.
76878
76879 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
76880
76881         * lib/obstack.c, obstack.h: Import changes from libc.
76882
76883 2004-04-28  Bruno Haible  <bruno@clisp.org>
76884
76885         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
76886         also implicitly appends .exe to executables.
76887         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
76888         accepts Windows pathnames.
76889         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
76890         Treat Cygwin like Windows, since it now accepts Windows pathnames.
76891         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
76892         Treat Cygwin like Windows, since it now accepts Windows pathnames.
76893         Reported by Derek Robert Price <derek@ximbiot.com>.
76894
76895 2004-04-21  Karl Berry  <karl@gnu.org>
76896
76897         * config/srclist.txt (localcharset.c): break sync.
76898
76899 2004-04-20  Paul Eggert  <eggert@twinsun.com>
76900
76901         * m4/host-os.m4: Add a copyright notice.
76902
76903 2004-04-20  Jim Meyering  <jim@meyering.net>
76904
76905         Change UTILS_ to gl_ in AC_DEFINE'd names.
76906         Change utils_- and jm_-prefixed variables, too.
76907         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
76908         UTILS_FUNC_MKDIR_TRAILING_SLASH.
76909         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
76910
76911         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
76912         Don't emit trailing blanks.
76913         Also rename jm_-prefixed variables to have gl_ prefix.
76914
76915         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
76916         Also rename jm_-prefixed variables to have gl_ prefix.
76917
76918         * m4/jm-macros.m4: Reflect the renamings.
76919         * m4/prereq.m4: Likewise.
76920
76921 2004-04-20  Jim Meyering  <jim@meyering.net>
76922
76923         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
76924         memory.
76925
76926 2004-04-20  Jim Meyering  <jim@meyering.net>
76927             Bruno Haible  <bruno@clisp.org>
76928
76929         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
76930         memory when realloc fails.
76931
76932 2004-04-19  Jim Meyering  <jim@meyering.net>
76933
76934         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
76935         now that readutmp.c may call `free (0)'.
76936
76937 2004-04-19  Bruno Haible  <bruno@clisp.org>
76938
76939         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
76940         * m4/inttypes_h.m4: Likewise.
76941         * m4/stdint_h.m4: Likewise.
76942         * m4/intmax_t.m4: Likewise.
76943         * m4/uintmax_t.m4: Likewise.
76944
76945 2004-04-18  Jim Meyering  <jim@meyering.net>
76946
76947         * m4/prereq.m4: Don't forbid jm_ prefix.
76948
76949         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
76950         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
76951         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
76952         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
76953         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
76954         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
76955         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
76956         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
76957         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
76958         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
76959         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
76960         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
76961         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
76962         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
76963         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
76964         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
76965         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
76966         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
76967         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
76968
76969 2004-04-18  Jim Meyering  <jim@meyering.net>
76970
76971         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
76972         failure, don't leak memory and do call END_UTMP_ENT.
76973
76974 2004-04-16  Jim Meyering  <jim@meyering.net>
76975
76976         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
76977         coreutils' stat program.
76978         (gl_PREREQ): Don't require jm_PREREQ_STAT.
76979
76980 2004-04-11  Paul Eggert  <eggert@twinsun.com>
76981
76982         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
76983         C89.
76984         (CHAR_BIT): Remove, since we assume C89.
76985         Include <stdint.h> if available, as per current Autoconf CVS advice.
76986
76987 2004-03-31  Jim Meyering  <jim@meyering.net>
76988
76989         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
76990         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
76991         * m4/xalloc.m4: Likewise.
76992
76993 2004-03-30  Paul Eggert  <eggert@twinsun.com>
76994
76995         Merge from coreutils.
76996
76997         * m4/inttostr.m4: New file.
76998         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
76999         Require AM_STDBOOL_H and gl_TIMESPEC instead.
77000         Require gl_CLOCK_TIME.
77001         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
77002
77003 2004-03-30  Paul Eggert  <eggert@twinsun.com>
77004
77005         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
77006         not bool, to be more consistent with Unix conventions.
77007         Suggested by Bruno Haible.
77008
77009         Merge from coreutils.
77010
77011         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
77012         * lib/umaxtostr.c: New files.
77013
77014         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
77015         the usual <time.h> dance.
77016         (get_date): Change signature to support fractional time stamps.
77017         All callers changed.
77018         * lib/getdate.y: Include "getdate.h" first, as we can now
77019         assume C89 and don't need to worry about 'const'.
77020         Similarly, include "unlocked-io.h" near start, not in middle.
77021         Include <limits.h>.
77022         (textint.value): Use long int rather than int.
77023         (textint.digits): Use size_t rather than int.
77024         (BILLION, LOG10_BILLION): New constants.
77025         (parser_control): New member rel_ns.  Members day_ordinal,
77026         time_zone, month, day, hour, minutes, rel_year, rel_month,
77027         rel_day, rel_hour, rel_minutes, rel_seconds
77028         are now long int, not int.  Member seconds is now struct timespec,
77029         not int.  New member timespec_seen.  Members dates_seen, days_seen,
77030         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
77031         not int.
77032         (%union.intval): Now long int, not int.
77033         New member timespec.
77034         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
77035         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
77036         (spec): Now is a timespec or an item list.
77037         (timespec, items): New nonterminals.
77038         (time, rel, relunit, number, get_date):
77039         Add support for fractional seconds.
77040         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
77041         (gmtime, localtime, mktime): Remove decls; not needed with C89.
77042         (to_hour): First arg is now long int, not int.
77043         (to_year): Returns long int, not int.
77044         Don't treat year -70 like 70.
77045         (tm_diff): Returns long int, not int.
77046         (lookup_word): Use bool instead of int when appropriate.
77047         (yylex): Use size_t for count, not int.
77048         Detect overflow when parsing large integer constants.
77049         Add support for fractions.
77050         (get_date): Make pointers 'const' if possible.
77051         Use more-portable code to detect integer overflow.
77052         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
77053         Don't use ctime; it's not reliable if the year has >4 digits.
77054
77055         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
77056         This is for compatibility with BSD.
77057
77058         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
77059         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
77060         From coreutils' system.h.
77061
77062         * lib/userspec.c: Don't include "posixver.h".
77063         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
77064         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
77065         compatible extension.  Simplify code by removing a boolean int
77066         that was always nonzero if a string was nonnull.
77067
77068 2004-03-30  Jim Meyering  <jim@meyering.net>
77069
77070         Merge from coreutils.
77071
77072         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
77073         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
77074         on some systems one must include <grp.h> before it.
77075         Reported by Christian Krackowizer.
77076
77077 2004-03-30  Jim Meyering  <jim@meyering.net>
77078
77079         Merge from coreutils.
77080
77081         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
77082
77083         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
77084         an empty input stream.
77085
77086         * lib/readtokens.c: Include <stdbool.h>.
77087         (readtoken): Use `size_t' rather than int/long.
77088         All callers adjusted.
77089         Use `bool' rather than `int' where appropriate.
77090         Use memset rather than an explicit loop.
77091         Use x2nrealloc rather than xrealloc.
77092         Allow the use of `\0' as a delimiter.
77093         (readtokens): Likewise.
77094         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
77095
77096 2004-03-30  Jim Meyering  <jim@meyering.net>
77097
77098         * m4/realloc.m4: Remove file, since now it does no more than
77099         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
77100         the `configure.ac' section of module/realloc.
77101         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
77102
77103 2004-03-30  Bruno Haible  <bruno@clisp.org>
77104
77105         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
77106         nonnull.
77107
77108 2004-03-29  Paul Eggert  <eggert@twinsun.com>
77109
77110         Merge changes to getloadavg.c from coreutils and Emacs.
77111
77112         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
77113         Define to an expression, not to the empty string.
77114         Include cloexec.h and xalloc.h.
77115         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
77116         Use set_cloexec_flag rather than rolling our own.
77117         * lib/cloexec.c, lib/cloexec.h: New files.
77118
77119 2004-03-29  Paul Eggert  <eggert@twinsun.com>
77120
77121         * m4/cloexec.m4: New file.
77122
77123 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77124
77125         * lib/getopt.h: Sync with libc CVS.
77126
77127 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77128             Bruno Haible  <bruno@clisp.org>
77129
77130         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
77131         mbswidth.
77132
77133 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77134             Bruno Haible  <bruno@clisp.org>
77135
77136         * lib/mbswidth.h: Include <wchar.h> only if
77137         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
77138         <wchar.h>.
77139         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
77140
77141 2004-03-09  Paul Eggert  <eggert@twinsun.com>
77142
77143         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
77144         Sync with libc CVS.
77145         * lib/getopt_int.h: New file, also synced from libc.
77146
77147 2004-03-09  Paul Eggert  <eggert@twinsun.com>
77148
77149         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
77150         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
77151         Bring back getopt.c, getopt.h, getopt1.c.
77152
77153 2004-03-07  Paul Eggert  <eggert@twinsun.com>
77154
77155         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
77156         All uses changed.  Check for sa_sigaction member; this fixes
77157         a bug first reported by Jason Andrade in
77158         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
77159
77160 2004-03-07  Paul Eggert  <eggert@twinsun.com>
77161
77162         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
77163         '#if' expressions.  Unlike the code it replaces, it does not
77164         depend on (defined _SC_PAGESIZE).  However, it does depend on
77165         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
77166         first reported by Jason Andrade in
77167         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
77168
77169 2004-02-25  Simon Josefsson  <jas@extundo.com>
77170
77171         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
77172
77173 2004-02-25  Simon Josefsson  <jas@extundo.com>
77174
77175         * lib/strdup.h: New file.
77176         * lib/strdup.c: Include it.
77177         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
77178         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
77179
77180 2004-02-23  Karl Berry  <karl@gnu.org>
77181
77182         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
77183         (from fencepost.gnu.org:/gd/gnuorg).
77184
77185 2004-02-23  Karl Berry  <karl@gnu.org>
77186
77187         * config/srclistvars.sh (GNUORG) [karl]: redefine.
77188         * config/srclist.txt: add maintain/standards documents.
77189
77190 2004-02-18  Bruno Haible  <bruno@clisp.org>
77191
77192         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
77193         Reported by Derek Robert Price <derek@ximbiot.com>.
77194
77195 2004-02-16  Karl Berry  <karl@gnu.org>
77196
77197         * config/mkinstalldirs, install-sh: update from automake.
77198
77199 2004-02-06  Karl Berry  <karl@gnu.org>
77200
77201         * m4/po.m4: update from gettext 0.14.1.
77202
77203 2004-02-06  Karl Berry  <karl@gnu.org>
77204
77205         * lib/config.charset: update from gettext 0.14.1.
77206
77207 2004-02-05  Paul Eggert  <eggert@twinsun.com>
77208
77209         Add comments and code, prompted by suggestions from Bruno Haible
77210         for sh-quote.
77211         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
77212         describing the enum quoting_style values.
77213         * lib/quotearg.c (quotearg_alloc): New function.
77214         (quotearg_buffer_restyled): Treat lone { and } as special.
77215         Treat = as special.  Work around bug with older shells
77216         that "see" a '\' that is really the 2nd byte of a multibyte char.
77217         Quote empty string with shell_quoting_style.
77218
77219 2004-02-03  Bruno Haible  <bruno@clisp.org>
77220
77221         * m4/pipe.m4: New file, from GNU gettext.
77222
77223 2004-02-03  Bruno Haible  <bruno@clisp.org>
77224
77225         * lib/pipe.h: New file, from GNU gettext.
77226         * lib/pipe.c: New file, from GNU gettext.
77227
77228 2004-01-27  Bruno Haible  <bruno@clisp.org>
77229
77230         * m4/execute.m4: New file, from GNU gettext.
77231
77232 2004-01-27  Bruno Haible  <bruno@clisp.org>
77233
77234         * lib/execute.h: New file, from GNU gettext.
77235         * lib/execute.c: New file, from GNU gettext.
77236         * lib/w32spawn.h: New file, from GNU gettext.
77237
77238 2004-01-24  Paul Eggert  <eggert@twinsun.com>
77239
77240         Merge from diffutils.
77241
77242         * lib/file-type.c (file_type): Add typed memory objects.
77243         * lib/file-type.h (S_TYPEISTMO): New macro.
77244
77245         * lib/c-stack.h (c_stack_action): Remove argv argument.
77246         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
77247         (die): Don't calculate message unless segv_action returns.
77248         (get_stack_location, min_address_from_argv, max_address_from_argv,
77249         volatile stack_base, volatile_stack_size): Remove.
77250         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
77251         that every segmentation violation is a stack overflow.  (Ouch!)
77252         See Debian bug 136249 (still outstanding) for more info about why
77253         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
77254
77255 2004-01-24  Paul Eggert  <eggert@twinsun.com>
77256
77257         Exit-status fix from coreutils.
77258
77259         Use exit_failure consistently in place of EXIT_FAILURE,
77260         so that program exit statuses are consistent on failure.
77261
77262         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
77263         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
77264         * lib/argmatch.h: Comment fix to match the above.
77265         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
77266         Now a macro referring to exit_failure, instead of a separate
77267         variable.  Include "exitfail.h" to get it.
77268         * lib/xstrtol.h: Include "exitfail.h".
77269         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
77270
77271         * lib/long-options.c (parse_long_options): Use prototype
77272         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
77273         for clarity.
77274
77275 2004-01-21  Jim Meyering  <jim@meyering.net>
77276
77277         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
77278         so as not to conflict with a different-sized __mktime_internal
77279         function in GNU libc.
77280         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
77281         Problem building statically-linked `ls' reported by Michael Brunnbauer.
77282
77283 2004-01-20  Karl Berry  <karl@gnu.org>
77284
77285         * config/config.guess: update from config.
77286
77287         * config/srclistvars.sh: GNUWWWLICENSES for karl.
77288
77289 2004-01-20  Bruno Haible  <bruno@clisp.org>
77290
77291         Safer stack allocation.
77292         * lib/setenv.c: Include allocsa.h.
77293         (alloca): Remove fallback definition.
77294         (freea): Remove macro.
77295         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
77296         instead of freea.
77297
77298 2004-01-20  Bruno Haible  <bruno@clisp.org>
77299
77300         * m4/eealloc.m4: New file, from GNU gettext.
77301
77302 2004-01-20  Bruno Haible  <bruno@clisp.org>
77303
77304         * m4/allocsa.m4: New file, from GNU gettext.
77305
77306 2004-01-20  Bruno Haible  <bruno@clisp.org>
77307
77308         * lib/xallocsa.h: New file, from GNU gettext.
77309         * lib/xallocsa.c: New file, from GNU gettext.
77310
77311 2004-01-20  Bruno Haible  <bruno@clisp.org>
77312
77313         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
77314
77315 2004-01-20  Bruno Haible  <bruno@clisp.org>
77316
77317         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
77318         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
77319         specially.
77320
77321 2004-01-20  Bruno Haible  <bruno@clisp.org>
77322
77323         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
77324         patch.
77325
77326 2004-01-20  Bruno Haible  <bruno@clisp.org>
77327
77328         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
77329
77330 2004-01-20  Bruno Haible  <bruno@clisp.org>
77331
77332         * lib/eealloc.h: New file.
77333
77334 2004-01-20  Bruno Haible  <bruno@clisp.org>
77335
77336         * lib/binary-io.h: Avoid warnings on Cygwin.
77337
77338 2004-01-20  Bruno Haible  <bruno@clisp.org>
77339
77340         * lib/allocsa.h: New file, from GNU gettext.
77341         * lib/allocsa.c: New file, from GNU gettext.
77342
77343 2004-01-18  Karl Berry  <karl@gnu.org>
77344
77345         * doc/gpl.texi, doc/lgpl.texi: new files.
77346
77347 2004-01-18  Karl Berry  <karl@gnu.org>
77348
77349         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
77350         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
77351
77352 2004-01-15  Paul Eggert  <eggert@twinsun.com>
77353
77354         Merge from coreutils.
77355
77356         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
77357         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
77358         (gl_DEFAULT_POSIX2_VERSION): Move
77359         the documentation from 'configure' into 'config.hin',
77360         so that 'configure --help' isn't burdened by it and
77361         we don't have to worry about its formatting there.
77362         Reword the documentation so that it's more succinct
77363         and can be run together into a single paragraph.
77364         * m4/same.m4 (gl_SAME): Check for pathconf.
77365
77366 2004-01-15  Paul Eggert  <eggert@twinsun.com>
77367
77368         Merge from coreutils.
77369
77370         * lib/posixver.c: Include posixver.h.
77371
77372         * lib/same.c: Include <stdbool.h>, <limits.h>.
77373         (_POSIX_NAME_MAX): Define if not defined.
77374         (MIN): New macro.
77375         (same_name): If file names are silently truncated, report
77376         that the file names are the same if they are the same after
77377         the silent truncation.
77378
77379         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
77380         conversion function.
77381         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
77382         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
77383         longer needed.
77384
77385 2004-01-15  Jim Meyering  <jim@meyering.net>
77386
77387         Merge from coreutils.
77388
77389         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
77390         if no library is required.
77391         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
77392         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
77393         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
77394         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
77395         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
77396         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
77397         value, $ac_cv_search_crypt, if it's "none required".
77398         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
77399         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
77400         not gl_FUNC_GETLOADAVG.
77401         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
77402         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
77403
77404 2004-01-15  Jim Meyering  <jim@meyering.net>
77405
77406         Merge from coreutils.
77407
77408         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
77409         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
77410         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
77411
77412         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
77413         optional configure-time default.
77414
77415         * lib/version-etc.c (version_etc_copyright): Update copyright date.
77416
77417         * lib/xreadlink.c (xreadlink): Correct outdated comment.
77418
77419 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
77420
77421         Merge from coreutils.
77422
77423         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
77424         value, $ac_cv_search_nanosleep, if it's "none required".
77425
77426 2004-01-14  Paul Eggert  <eggert@twinsun.com>
77427
77428         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
77429         with like-named macro in fnmatch.c.
77430         (EXT): Use an internal constant instead.
77431
77432         Merge fnmatch patches from glibc.
77433         * lib/fnmatch.c (mbsinit): Remove define.
77434         Add libc_hidden_ver (__fnmatch, fnmatch).
77435         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
77436         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
77437
77438 2004-01-14  Karl Berry  <karl@gnu.org>
77439
77440         * config/install-sh: update from automake.
77441
77442 2004-01-13  Karl Berry  <karl@gnu.org>
77443
77444         * config/install-sh: update from automake.
77445
77446 2004-01-09  Karl Berry  <karl@gnu.org>
77447
77448         * config/install-sh: update from automake.
77449
77450 2004-01-05  Karl Berry  <karl@gnu.org>
77451
77452         * config/config.{sub,guess}: update from config.
77453
77454 2003-12-31  Karl Berry  <karl@gnu.org>
77455
77456         * config/depcomp: update from automake.
77457
77458 2003-12-14  Karl Berry  <karl@gnu.org>
77459
77460         * lib/config.charset: update from gettext-runtime.
77461
77462 2003-12-03  Paul Eggert  <eggert@twinsun.com>
77463
77464         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
77465         Bug reported by Alfred M. Szmidt.
77466
77467 2003-12-03  Bruno Haible  <bruno@clisp.org>
77468
77469         * m4/gettext.m4: Upgrade from gettext-0.13.
77470         * m4/po.m4: Upgrade from gettext-0.13.
77471         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
77472         * m4/intmax.m4: New file, from gettext-0.13.
77473         * m4/printf-posix.m4: New file, from gettext-0.13.
77474
77475 2003-11-29  Karl Berry  <karl@gnu.org>
77476
77477         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
77478
77479 2003-11-25  Paul Eggert  <eggert@twinsun.com>
77480             Bruno Haible  <bruno@clisp.org>
77481
77482         * lib/printf-parse.h: Don't include sys/types.h.
77483         (ARG_NONE): New macro.
77484         (char_directive): Change type of *arg_index fields to size_t.
77485         * lib/printf-parse.c: Don't include sys/types.h.
77486         (SSIZE_MAX): Remove macro.
77487         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
77488         Remove unnecessary overflow check.
77489         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
77490         fields.
77491
77492 2003-11-25  Bruno Haible  <bruno@clisp.org>
77493
77494         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
77495
77496 2003-11-25  Bruno Haible  <bruno@clisp.org>
77497
77498         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
77499         gt_TYPE_SSIZE_T.
77500
77501 2003-11-24  Paul Eggert  <eggert@twinsun.com>
77502
77503         * modules/alloca: Remove dependency on xalloc.
77504
77505 2003-11-24  Paul Eggert  <eggert@twinsun.com>
77506
77507         * lib/alloca.c: Remove dependency on xalloc module.
77508         (xalloc_die): Remove.
77509         (memory_full) [!defined emacs]: New macro.
77510         [!defined emacs]: Don't include xalloc.h.
77511         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
77512         address arithmetic overflows.  Change datatypes a bit to avoid
77513         unnecessary casts.
77514
77515 2003-11-22  Jim Meyering  <jim@meyering.net>
77516
77517         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
77518         s/size/size_t/.
77519
77520 2003-11-21  Karl Berry  <karl@gnu.org>
77521
77522         * config/config.{sub,guess}: update from config.
77523
77524 2003-11-18  Karl Berry  <karl@gnu.org>
77525
77526         * config/config.{sub,guess}: update from config.
77527
77528         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
77529
77530 2003-11-17  Paul Eggert  <eggert@twinsun.com>
77531
77532         * README: Mention that S+T cannot overflow if S is the size of
77533         an existing object and T is sufficiently small.
77534
77535 2003-11-17  Jim Meyering  <jim@meyering.net>
77536
77537         On systems without utime and without a utimes function capable of
77538         dealing with a NULL struct utimbuf* argument, this utime replacement
77539         could -- in unusual circumstances -- leak a file descriptor.
77540         * lib/utime.c: Include <unistd.h> and <errno.h>.
77541         (utime_null): Be sure to close `fd' and to preserve errno.
77542         Reported by Geoff Collyer via Arnold Robbins.
77543
77544 2003-11-17  Bruno Haible  <bruno@clisp.org>
77545
77546         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
77547         (Depends-on): Add xsize.
77548
77549 2003-11-17  Bruno Haible  <bruno@clisp.org>
77550
77551         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
77552
77553 2003-11-17  Bruno Haible  <bruno@clisp.org>
77554
77555         * lib/vasnprintf.c (alloca): Remove fallback definition.
77556         (freea): Remove definition.
77557         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
77558         Reported by Paul Eggert.
77559
77560 2003-11-16  Paul Eggert  <eggert@twinsun.com>
77561             Bruno Haible  <bruno@clisp.org>
77562
77563         Protect against address arithmetic overflow.
77564         * lib/printf-args.h: Include stddef.h.
77565         (arguments): Change type of field 'count' to size_t.
77566         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
77567         'unsigned int' where appropriate.
77568         * lib/printf-parse.h: Include sys/types.h.
77569         (char_directive): Change type of *arg_index fields to ssize_t.
77570         (char_directives): Change type of fields 'count', max_*_length to
77571         size_t.
77572         * lib/printf-parse.c: Include sys/types.h and xsize.h.
77573         (SSIZE_MAX): Define fallback value.
77574         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
77575         instead of 'int' where appropriate. Check a_allocated, d_allocated
77576         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
77577         * lib/vasnprintf.c: Include xsize.h.
77578         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
77579         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
77580         overflow. Avoid wraparound when converting a width or precision from
77581         decimal to binary.
77582
77583 2003-11-16  Bruno Haible  <bruno@clisp.org>
77584
77585         Update from GNU gettext.
77586         * lib/printf-parse.c: Generalize to it can be compiled for wide
77587         strings.
77588         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
77589         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
77590         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
77591         SNPRINTF): New macros.
77592         Don't include <alloca.h> if the file is used inside libintl.
77593         (local_wcslen): New function, for Solaris 2.5.1.
77594         (VASNPRINTF): Use it instead of wcslen.
77595
77596 2003-11-16  Bruno Haible  <bruno@clisp.org>
77597
77598         * lib/xsize.h (xmax): New function.
77599         (xsum, xsum3, xsum4): Declare as "pure" functions.
77600
77601 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77602
77603         * modules/xalloc (Files): Undo latest change, since xalloc.h
77604         no longer needs SIZE_MAX or PTRDIFF_MAX.
77605
77606 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77607
77608         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
77609         gl_PTRDIFF_MAX.
77610
77611 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77612
77613         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
77614         "return", to pacify some unknown compiler.  Problem reported
77615         by Joerg Schilling.
77616
77617 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77618
77619         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
77620         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
77621         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
77622         heuristic is just as accurate as far as we know, and it removes a
77623         dependency on size_max.m4 and ptrdiff_max.m4.
77624
77625 2003-11-11  Bruno Haible  <bruno@clisp.org>
77626
77627         * modules/xsize (Files): Add m4/size_max.m4.
77628         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
77629
77630 2003-11-11  Bruno Haible  <bruno@clisp.org>
77631
77632         * m4/size_max.m4: New file.
77633         * m4/ptrdiff_max.m4: New file.
77634         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
77635         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
77636         (gl_XALLOC): Invoke it.
77637
77638 2003-11-11  Bruno Haible  <bruno@clisp.org>
77639
77640         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
77641         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
77642         defined.
77643
77644 2003-11-10  Paul Eggert  <eggert@twinsun.com>
77645
77646         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
77647         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
77648         rejected some allocations of exactly SIZE_MAX - 2 bytes.
77649         From Bruno Haible.
77650         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
77651         not (size_t) -1, since it's defined here.
77652
77653 2003-11-09  Karl Berry  <karl@gnu.org>
77654
77655         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
77656
77657 2003-11-06  Paul Eggert  <eggert@twinsun.com>
77658
77659         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
77660         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
77661         Reject sizes of exactly SIZE_MAX bytes.
77662         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
77663         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
77664
77665 2003-11-05  Bruno Haible  <bruno@clisp.org>
77666
77667         * lib/xsize.h: Include limits.h, to avoid a possible collision with
77668         SIZE_MAX defined in <limits.h> on Solaris.
77669
77670 2003-11-04  Jim Meyering  <jim@meyering.net>
77671
77672         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
77673         variable names, rather than @VAR@.
77674         * modules/poll: Likewise.
77675
77676 2003-11-04  Bruno Haible  <bruno@clisp.org>
77677
77678         * modules/xsize: New file.
77679         * modules/linebreak: Depend on xsize.
77680         * MODULES.html.sh (func_all_modules): Add xsize.
77681
77682 2003-11-04  Bruno Haible  <bruno@clisp.org>
77683
77684         * m4/xsize.m4: New file.
77685
77686 2003-11-04  Bruno Haible  <bruno@clisp.org>
77687
77688         * lib/xsize.h: New file.
77689         * lib/linebreak.c: Include xsize.h.
77690         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
77691         argument for overflow.
77692         Suggested by Paul Eggert.
77693
77694 2003-11-03  Karl Berry  <karl@gnu.org>
77695
77696         * config/config.{guess,sub}: update from config.
77697
77698 2003-11-03  Jim Meyering  <jim@meyering.net>
77699
77700         * modules/userspec (lib_SOURCES): Add userspec.h.
77701         (Include): Add "userspec.h".
77702         Improve description.
77703
77704 2003-11-03  Jim Meyering  <jim@meyering.net>
77705
77706         * lib/userspec.c: Include "userspec.h".
77707         * lib/userspec.h: New file.
77708
77709 2003-11-03  Bruno Haible  <bruno@clisp.org>
77710
77711         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
77712
77713 2003-11-03  Bruno Haible  <bruno@clisp.org>
77714
77715         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
77716         available, to avoid (extremely rare) race condition.
77717         Suggested by Paul Eggert.
77718
77719 2003-11-02  Karl Berry  <karl@gnu.org>
77720
77721         * config/srclist.txt (vasprintf.c): sync broken, sigh.
77722
77723 2003-10-31  Paul Eggert  <eggert@twinsun.com>
77724
77725         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
77726         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
77727         (read_filesystem_list): Set and use me_type_malloced.
77728         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
77729         whatever the type happens to be), for brevity and consistency.
77730         Check for size calculation overflow on Alphas running OSF/1.
77731
77732 2003-10-31  Jim Meyering  <jim@meyering.net>
77733
77734         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
77735
77736         * lib/linebuffer.c: Include <string.h> for declaration of memset.
77737
77738 2003-10-30  Paul Eggert  <eggert@twinsun.com>
77739             Bruno Haible  <bruno@clisp.org>
77740
77741         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
77742         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
77743
77744 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
77745
77746         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
77747         netbsd*-gnu*.  Suggested by Robert Millan.
77748
77749 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77750
77751         * modules/group-member: Depend on stdbool.
77752
77753 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77754
77755         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
77756
77757 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77758
77759         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
77760         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
77761         after the 'gnu' in these cases.  This fixes some bugs in the
77762         previous change, and is based on suggestions by Robert Millan.
77763
77764 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77765
77766         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
77767         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
77768         no longer needed.
77769         * lib/quotearg.c (quotearg_n_options): Use it.
77770         * lib/group-member.c: Include <stdbool.h>.
77771         (free_group_info): Arg is now const *; don't free arg.
77772         (get_group_info): Now returns bool and accepts struct group_info *,
77773         rather than returning a malloc'ed struct group_info *.
77774         All uses changed.  Check for overflow in internal size calculation.
77775
77776         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
77777         rather than xmalloc/xrealloc.
77778         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
77779         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
77780         conformance bug: the old code used a pointer after freeing the
77781         storage that it addressed.
77782         * lib/hash.c (hash_initialize): Simplify the code by using
77783         xalloc_oversized rather than doing it by hand.
77784         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
77785         the buffer preserved.  Use free and xmalloc instead.
77786         * lib/quotearg.c (quotearg_n_options): Likewise.
77787         Use a simpler test for size overflow.  Don't use xalloc_oversized
77788         because unsigned int might be wider than size_t (!); this suggests
77789         that we should switch from unsigned int to size_t for slot numbers.
77790
77791 2003-10-28  Paul Eggert  <eggert@twinsun.com>
77792
77793         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
77794         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
77795         NetBSD kernels.  Requested by Richard Stallman.
77796
77797 2003-10-27  Paul Eggert  <eggert@twinsun.com>
77798
77799         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
77800         to allocate the returned structure.  Do not allocate a subarray,
77801         as x2nrealloc will do that.
77802         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
77803         instead of xnrealloc.
77804         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
77805
77806 2003-10-27  Bruno Haible  <bruno@clisp.org>
77807
77808         * lib/stdbool_.h: Better support for BeOS.
77809
77810 2003-10-26  Paul Eggert  <eggert@twinsun.com>
77811
77812         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
77813         now uses inline.
77814
77815 2003-10-26  Paul Eggert  <eggert@twinsun.com>
77816
77817         * lib/xalloc.h (xalloc_oversized): New static inline function, for
77818         callers that want to do their own size-overflow checking.  Include
77819         <stdbool.h>, since xalloc_oversized returns bool.
77820         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
77821         to use xalloc_oversized.
77822
77823         Add two functions x2realloc, x2nrealloc, for programs that grow
77824         arrays dynamically by doubling their sizes.
77825         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
77826         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
77827         New functions.
77828
77829         Port to C99 semantics for 'inline' of external functions.
77830         Bug reported by Bruno Haible.
77831         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
77832         with the old contents of xnmalloc.
77833         (xnmalloc, xmalloc): Use it.
77834         (xnrealloc_inline): New static inline function,
77835         with the old contents of xnrealloc.
77836         (xnrealloc, xrealloc): Use it.
77837
77838         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
77839         that.
77840
77841 2003-10-26  Karl Berry  <karl@gnu.org>
77842
77843         * config/srclist.txt (COPYING.DOC): no longer available from
77844         /gd/gnuorg; don't know where the ultimate source is.
77845
77846 2003-10-25  Paul Eggert  <eggert@twinsun.com>
77847
77848         Fix several address-calculation bugs in the hash modules,
77849         plus some minor code cleanup.
77850
77851         * lib/hash.h: Include <stdbool.h>, for bool.
77852         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
77853         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
77854         hash_get_n_entries, hash_get_max_bucket_length,
77855         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
77856         hash_rehash): Use size_t rather than unsigned.
77857         * lib/hash.c (struct hash_table, hash_get_n_buckets,
77858         hash_get_n_buckets_used, hash_get_n_entries,
77859         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
77860         hash_get_entries, hash_do_for_each, hash_string, is_prime,
77861         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
77862         Likewise.
77863         (SIZE_MAX): Define if not defined.
77864         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
77865         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
77866         hash_print):
77867         Use const * when possible.
77868         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
77869         (check_tuning): Fix bug: if tuning parameters were very close to
77870         0 or 1, rounding errors could have caused subscript violations.
77871         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
77872         (hash_initialize): Add 'fail:' label
77873         to free table and return NULL, and use it to simplify code.
77874         Use calloc rather than clearing the storage ourself.
77875         (hash_initialize, hash_rehash): Check for arithmetic overflow in
77876         buffer size calculations.
77877         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
77878         Include <stddef.h>, for size_t.
77879         * lib/hash-pjw.c (hash_pjw): Likewise.
77880         Switch to method described by Bruno Haible.
77881         Include <limits.h>, for CHAR_BIT.
77882         (SIZE_BITS): New macro.
77883
77884 2003-10-23  Paul Eggert  <eggert@twinsun.com>
77885
77886         * m4/getline.m4 (AM_FUNC_GETLINE):
77887         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
77888         hosts.  Problem reported by Derek Robert Price in
77889         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
77890         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
77891         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
77892
77893 2003-10-21  Paul Eggert  <eggert@twinsun.com>
77894
77895         * lib/getndelim2.c (getndelim2): When size calculation overflows,
77896         ceiling the allocation at NMAX bytes rather than silently
77897         discarding input bytes before NMAX is reached.  This makes
77898         a difference only if NMAX exceeds SIZE_MAX / 2.
77899
77900         * lib/obstack.c: Merge from glibc.
77901         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
77902         Add libc_hidden_def (_obstack_newchunk).
77903         (_obstack_free) [! defined _LIBC]: Remove.
77904         [defined _LIBC]: Make a strong alias from obstack_free, rather than
77905         a clone of the function body.
77906         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
77907         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
77908
77909         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
77910         glibc.
77911         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
77912         arg to memcpy.
77913
77914         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
77915         (obstack_ptr_grow_fast, obstack_int_grow_fast):
77916         Don't use lvalue casts, as GCC plans to remove support for them
77917         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
77918         was also present in the non-GCC version, indicating that this
77919         code had always been buggy and had never been widely used.
77920         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
77921         Use the fast variant of each macro, rather than copying the
77922         definiens of the fast variant; that way, we'll be more likely to
77923         catch future bugs in the fast variants.
77924
77925 2003-10-20  Bruno Haible  <bruno@clisp.org>
77926
77927         * modules/wait-process: New file.
77928         * MODULES.html.sh (func_all_modules): Add wait-process.
77929
77930 2003-10-20  Bruno Haible  <bruno@clisp.org>
77931
77932         * m4/wait-process.m4: New file.
77933
77934 2003-10-20  Bruno Haible  <bruno@clisp.org>
77935
77936         * lib/wait-process.h: New file, from GNU gettext.
77937         * lib/wait-process.c: New file, from GNU gettext.
77938
77939 2003-10-19  Jim Meyering  <jim@meyering.net>
77940
77941         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
77942         HPUX 10.20.
77943
77944 2003-10-18  Karl Berry  <karl@gnu.org>
77945
77946         * config/config.guess: update from config.
77947
77948 2003-10-16  Paul Eggert  <eggert@twinsun.com>
77949
77950         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
77951         (getgroups): First arg is int, not size_t.
77952         Don't let 'free' mangle errno.
77953
77954 2003-10-16  Paul Eggert  <eggert@twinsun.com>
77955
77956         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
77957
77958 2003-10-16  Karl Berry  <karl@gnu.org>
77959
77960         * config/config.{guess,sub}: update from config.
77961
77962 2003-10-16  Jim Meyering  <jim@meyering.net>
77963
77964         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
77965         memcpy.
77966
77967 2003-10-15  Paul Eggert  <eggert@twinsun.com>
77968
77969         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
77970         (SIZE_MAX): Remove.
77971         (new_exclude, add_exclude_file): Initial size no longer needs to
77972         be a power of 2.
77973         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
77974         our own address arithmetic overflow checking.
77975
77976         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
77977         (fnmatch): Do not alloca more than 2000 wide characters;
77978         instead, use malloc for large buffers.
77979         Check for address arithmetic overflow, and return -1
77980         with errno set to ENOMEM in that case.
77981         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
77982         (NEW_PATTERN): Do not alloca more than 8000 bytes;
77983         instead, return -1.  Check for address arithmetic overflow.
77984
77985 2003-10-14  Paul Eggert  <eggert@twinsun.com>
77986
77987         Handle invalid suffixes and overflow independently, so that
77988         callers can treat them independently as needed.  Fix some bugs in
77989         suffix handling, e.g., "100k@" was not diagnosed as an invalid
77990         suffix for a human-readable blocksize.  The major caller-visible
77991         change is the addition of a new
77992         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
77993         that both overflow and suffix chars were found.
77994
77995         * lib/human.c (humblock): Don't check separately for invalid suffix
77996         char; that is xstrtoumax's job (now that its bug is fixed).
77997         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
77998         INTMAX_MAX]: New macros.
77999         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
78000         TYPE_MAXIMUM): New macros.
78001         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
78002         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
78003         if overflow occurs, as it's what __strtol does and it's more useful
78004         in practice.
78005         (__xstrtol): If __strtol reports some error other than ERANGE,
78006         reflect it to the caller as LONGINT_INVALID.  If it reports
78007         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
78008         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
78009         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
78010         value.
78011         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
78012         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
78013         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
78014         [defined UINTMAX_MAX]: New macros.
78015
78016 2003-10-14  Bruno Haible  <bruno@clisp.org>
78017
78018         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
78019
78020 2003-10-14  Bruno Haible  <bruno@clisp.org>
78021
78022         * m4/sig_atomic_t: New file, from GNU gettext.
78023         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
78024
78025 2003-10-14  Bruno Haible  <bruno@clisp.org>
78026
78027         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
78028         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
78029         Also use volatile where needed.
78030
78031 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78032
78033         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
78034         Change maintainer from Bruno Haible to 'all'.
78035
78036 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78037
78038         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
78039
78040 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78041
78042         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
78043         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
78044         and define in terms of the other primitives.
78045         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
78046         (SIZE_MAX): Define if not already defined.
78047         (array_size_overflow): New function.
78048         (xalloc_die): Abort instead of exiting if 'error' returns.
78049         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
78050         (xmalloc, xrealloc): Use them.
78051         (xcalloc): Check for address arithmetic overflow.
78052         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
78053         a bit faster than strcpy.
78054
78055 2003-10-10  Simon Josefsson  <jas@extundo.com>
78056
78057         * modules/argp (Depends-on): Add restrict and strcase.
78058
78059 2003-10-10  Simon Josefsson  <jas@extundo.com>
78060
78061         * m4/argp.m4: Add AC_C_INLINE.
78062
78063 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78064
78065         Merge getpass from libc, plus a few fixes.
78066
78067         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
78068         Include <stdbool.h>.
78069         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
78070         __fsetlocking to empty.
78071         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
78072         do include <bits/libc-lock.h>.
78073         Do not include <fcntl.h>; not needed.
78074         [_LIBC]: Include <wchar.h>.
78075         (NOTCANCEL_MODE): New macro.
78076         (flockfile, funlockfile) [_LIBC]: New macros.
78077         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
78078         [!_LIBC]: New macros.
78079         (call_fclose): New function.
78080         (getpass): Use it.  Save tty stream separately; this simplifies the
78081         code and makes it more reliable if stdin happens to equal stdout.
78082         Invoke __fsetlocking on tty.
78083         Handle thread cancellation if needed.
78084         Namespace cleanup (use __tcgetattr, __getline).
78085         Use bool for Booleans.
78086         [USE_IN_LIBIO]: Handle wide streams.
78087         [!_LIBC]: Unconditionally do the fseek, since we don't know what
78088         stream might go where.
78089
78090         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
78091         doesn't have to include <stdio.h> before us.
78092         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
78093         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
78094         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
78095         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
78096         if not declared, so that we can use getpass.c code from libc without
78097         rewriting it.
78098         (flockfile, ftrylockfile, funlockfile): New macros.
78099
78100 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78101
78102         * modules/getpass: Depend on stdbool.
78103
78104 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78105
78106         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
78107
78108 2003-10-07  Karl Berry  <karl@gnu.org>
78109
78110         * config/config.{guess,sub}: update from config.
78111
78112 2003-10-06  Jim Meyering  <jim@meyering.net>
78113             Bruno Haible  <bruno@clisp.org>
78114
78115         This lets translators provide better translations for the
78116         "Written by ..." part of --version output.
78117         * lib/version-etc.h: Include stdarg.h.
78118         (version_etc_copyright): Declare as readonly.
78119         (version_etc): Make this function variadic with a NULL-terminated list
78120         of author name strings.
78121         (version_etc_va): New declaration.
78122         * lib/version-etc.c: Include stdarg.h, stdlib.h.
78123         (version_etc_copyright): Declare as readonly.
78124         (version_etc_va): New function. Provide a different translatable string
78125         for each possible number of authors < 10. Abbreviate when there are 10
78126         authors or more.
78127         (version_etc): Make this function variadic. Call version_etc_va.
78128         Suggestion from Gary V. Vaughan.
78129
78130         * lib/long-options.h (parse_long_options): Change prototype: the
78131         authors string is moved to the end and becomes variadic.
78132         * lib/long-options.c: Include stdarg.h.
78133         (parse_long_options): Make this function variadic, too.
78134         Call version_etc_va, not version_etc.
78135
78136 2003-10-06  Bruno Haible  <bruno@clisp.org>
78137
78138         * modules/version-etc-2: Remove file.
78139         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
78140
78141 2003-10-06  Bruno Haible  <bruno@clisp.org>
78142
78143         * modules/fatal-signal: New file.
78144         * MODULES.html.sh (func_all_modules): Add fatal-signal.
78145
78146 2003-10-06  Bruno Haible  <bruno@clisp.org>
78147
78148         * m4/fatal-signal.m4: New file.
78149         * m4/signalblocking.m4: New file, from GNU gettext.
78150
78151 2003-10-06  Bruno Haible  <bruno@clisp.org>
78152
78153         * lib/version-etc-2.h: Remove file.
78154         * lib/version-etc-2.c: Remove file.
78155
78156 2003-10-06  Bruno Haible  <bruno@clisp.org>
78157
78158         * lib/fatal-signal.h: New file, from GNU gettext.
78159         * lib/fatal-signal.c: New file, from GNU gettext.
78160
78161 2003-10-05  Paul Eggert  <eggert@twinsun.com>
78162
78163         * README: Rework advice for preventing empty .o files.
78164         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
78165         not <sys/types.h>.
78166
78167 2003-10-04  Karl Berry  <karl@gnu.org>
78168
78169         * lib/argp*: update from libc.
78170
78171 2003-10-04  Karl Berry  <karl@gnu.org>
78172
78173         * config/config.{guess,sub}: update from config.
78174
78175 2003-10-02  Bruno Haible  <bruno@clisp.org>
78176
78177         * modules/lchown (Include): Add lchown.h.
78178         * modules/time_r (Include): Use "..." syntax.
78179         * modules/xgetdomainname (Include): Add xgetdomainname.h.
78180
78181 2003-10-01  Simon Josefsson  <jas@extundo.com>
78182
78183         * MODULES.html.sh (func_all_modules): Move gethostname from section
78184         'based on' to section 'lacking' POSIX:2001.
78185
78186 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
78187
78188         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
78189         to output mode on the same stream.
78190
78191 2003-09-29  Paul Eggert  <eggert@twinsun.com>
78192
78193         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
78194         Fix arg typo in previous patch.
78195
78196 2003-09-28  Jim Meyering  <jim@meyering.net>
78197
78198         * lib/error.c: Correct cpp indentation.
78199
78200 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78201
78202         * modules/free: New file.
78203
78204 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78205
78206         * m4/free.m4: New file.
78207
78208 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78209
78210         * lib/minmax.h (MIN, MAX)
78211         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
78212         Omit the special code that used __typeof__, since we worry that
78213         it could be more trouble than it's worth.  See:
78214         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
78215         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
78216
78217         * lib/free.c: New file.
78218
78219 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
78220
78221         Trivial fixes to Makefile.am parts of module listings.
78222         * modules/strstr: Append strstr.h to lib_SOURCES.
78223         * modules/strcase: Likewise, for strcase.h.
78224
78225 2003-09-27  Karl Berry  <karl@gnu.org>
78226
78227         * config/mkinstalldirs: update from automake.
78228
78229 2003-09-26  Paul Eggert  <eggert@twinsun.com>
78230
78231         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
78232         (error_tail): Do not loop, reallocating temporary buffer, since
78233         the output cannot contain more wide characters than the input
78234         contains bytes, the size must be big enough already.  This avoids
78235         one potential size overflow calculation.  Check for size overflow
78236         when calculating temporary buffer size.  Free temporary buffer
78237         when done, if it was allocated with malloc; this plugs a memory
78238         leak.  Remove casts from void * to pointers, that are no longer
78239         needed now that we're assuming C89 or better.
78240
78241         Merge error changes from glibc.
78242
78243         * lib/error.c, error.h: Update copyright notice header to match glibc.
78244         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
78245         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
78246         Disable cancellation while printing error.
78247         * lib/error.h: Prepend __ to parameter names.
78248
78249 2003-09-26  Jim Meyering  <jim@meyering.net>
78250
78251         * lib/error.c (error_tail): Move some declarations
78252         into inner scope where the local variables are used.
78253
78254 2003-09-26  Bruno Haible  <bruno@clisp.org>
78255
78256         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
78257         stpncpy().
78258         Don't define stpncpy through config.h; it's now done through stpncpy.h.
78259
78260 2003-09-26  Bruno Haible  <bruno@clisp.org>
78261
78262         * lib/stpncpy.h (gnu_stpncpy): New declaration.
78263         (stpncpy): Define as alias for gnu_stpncpy.
78264         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
78265
78266 2003-09-25  Simon Josefsson  <jas@extundo.com>
78267
78268         * lib/xgetdomainname.h: New file.
78269         * lib/xgetdomainname.c: New file.
78270
78271 2003-09-25  Simon Josefsson  <jas@extundo.com>
78272             Bruno Haible  <bruno@clisp.org>
78273
78274         * modules/getdomainname: New file.
78275         * modules/xgetdomainname: New file.
78276         * MODULES.html.sh (func_all_modules): Add getdomainname,
78277         xgetdomainname.
78278
78279 2003-09-25  Simon Josefsson  <jas@extundo.com>
78280             Bruno Haible  <bruno@clisp.org>
78281
78282         * m4/getdomainname.m4: New file.
78283
78284 2003-09-25  Simon Josefsson  <jas@extundo.com>
78285             Bruno Haible  <bruno@clisp.org>
78286
78287         * lib/getdomainname.h: New file.
78288         * lib/getdomainname.c: New file.
78289
78290 2003-09-25  Karl Berry  <karl@gnu.org>
78291
78292         * lib/argp-fmtstream.c, argp-help.c: update from libc.
78293
78294 2003-09-25  Karl Berry  <karl@gnu.org>
78295
78296         * config/install-sh: update from automake.
78297
78298 2003-09-25  Bruno Haible  <bruno@clisp.org>
78299
78300         * modules/version-etc-2: New file, from modules/version-etc with
78301         modifications.
78302         * MODULES.html.sh (func_all_modules): Add version-etc-2.
78303
78304 2003-09-25  Bruno Haible  <bruno@clisp.org>
78305
78306         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
78307         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
78308
78309 2003-09-24  Simon Josefsson  <jas@extundo.com>
78310
78311         * modules/xgethostname: Add xgethostname.h.
78312
78313 2003-09-24  Paul Eggert  <eggert@twinsun.com>
78314
78315         * lib/linebuffer.c (freebuffer): Don't free the argument, just
78316         the buffer associated with the argument.  Bug reported by
78317         Simon Josefsson.
78318
78319 2003-09-24  Paul Eggert  <eggert@twinsun.com>
78320
78321         * README: Document assumptions that 'int' is at least 32 bits
78322         wide, that integer arithmetic is 2's complement without overflow,
78323         that there are no holes in integer values, that adding sizes of
78324         two nonoverlapping objects can't overflow, and that all-bits-zero
78325         yields scalar zero.  Fix spelling and capitalization typos.
78326
78327 2003-09-19  Karl Berry  <karl@gnu.org>
78328
78329         * lib/argp.h: update from libc.
78330
78331 2003-09-17  Paul Eggert  <eggert@twinsun.com>
78332
78333         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
78334         to avoid spurious warnings like "AC_RUN_IFELSE was called before
78335         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
78336
78337 2003-09-17  Paul Eggert  <eggert@twinsun.com>
78338
78339         * gnulib-tool: Use "test -h", not "test -L", for portability
78340         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
78341         (tags_regexp): Remove, since \| doesn't conform to POSIX.
78342         (sed_extract_prog): Issue s commands one-by-one, rather than
78343         using \| in one s command.
78344
78345 2003-09-16  Paul Eggert  <eggert@twinsun.com>
78346
78347         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
78348         input error, instead of returning NULL the next time we are called
78349         (and therefore losing track of errno).
78350
78351 2003-09-16  Bruno Haible  <bruno@clisp.org>
78352
78353         * gnulib-tool (func_create_testdir): Warn about duplicated
78354         dependencies.
78355
78356 2003-09-15  Paul Eggert  <eggert@twinsun.com>
78357
78358         * modules/argmatch, modules/fatal, modules/obstack,
78359         modules/xalloc, modules/xgethostname: Sort dependencies by
78360         importance, not alphabetically.
78361
78362 2003-09-15  Paul Eggert  <eggert@twinsun.com>
78363
78364         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
78365         fails, so that the caller gets the proper errno.
78366
78367         * lib/readutmp.c (read_utmp): Likewise.
78368         Check for fstat error.  Close stream and free storage
78369         when failing.
78370
78371 2003-09-14  Karl Berry  <karl@gnu.org>
78372
78373         * config/srclist.txt (strdup.c): disable for c89 changes.
78374
78375 2003-09-14  Jim Meyering  <jim@meyering.net>
78376
78377         * lib/getloadavg.c: Correct cpp indentation.
78378         * lib/strdup.c: Likewise.
78379         * lib/vasnprintf.c: Likewise.
78380
78381 2003-09-14  Bruno Haible  <bruno@clisp.org>
78382
78383         * modules/fwriteerror: New file.
78384         * MODULES.html.sh (func_all_modules): Add fwriteerror.
78385
78386 2003-09-14  Bruno Haible  <bruno@clisp.org>
78387
78388         * lib/fwriteerror.h: New file.
78389         * lib/fwriteerror.c: New file.
78390
78391 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78392
78393         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
78394         modules/xgethostname, modules/xalloc: Depend on exit.
78395
78396 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78397
78398         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
78399
78400         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
78401         and AC_MINIX, too, so that their extensions are available.
78402
78403         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
78404         This macro has been superseded by gl_BACKUPFILE.
78405
78406         More patches to assume C89 or better.
78407
78408         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
78409
78410         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
78411         unconditionally.
78412         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
78413         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
78414         Include <string.h>, <stdlib.h> unconditionally.
78415         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
78416         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
78417         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
78418         headers or for string.h.
78419         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
78420         or strtoul.
78421
78422         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
78423         headers.
78424         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
78425         * m4/userspec.m4 (gl_USERSPEC): Likewise.
78426         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
78427         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
78428         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78429         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
78430         memcpy, memset.
78431         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
78432         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
78433         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
78434         strtol.
78435         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
78436         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
78437         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
78438         strtoul.
78439
78440 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78441
78442         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
78443         * lib/obstack.c [!defined _LIBC]: Likewise.
78444         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
78445         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
78446         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
78447
78448         More changes to assume C89 or better.
78449
78450         * lib/error.c (error_tail): Assume vprintf.
78451
78452         * lib/argmatch.c (getenv): Remove decl.
78453         * lib/progreloc.c (get_full_program_name): Define via prototype.
78454         * lib/setenv.c (clearenv): Likewise.
78455         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
78456         needed.
78457         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
78458         (malloc, memcpy): Remove decls.
78459         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
78460         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
78461         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
78462         (memcpy): Remove macro.
78463         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
78464         (__P): Remove.  All uses removed.
78465         (PTR): Remove.  All uses changed to void *.
78466         (CHAR_BIT, NULL): Remove.
78467         (spaces, zeros, memset_space, memset_zero)
78468         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
78469         Remove.
78470         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
78471         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
78472         Define with prototype.
78473         Remove now-unnecessary prototype decl.
78474         (extra_args_spec): Assume ANSI C.  All uses changed.
78475         (extra_args_spec_iso): Remove.
78476         (my_strftime, emacs_strftimeu): Define via prototype.
78477         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
78478         unconditionally.
78479         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
78480         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
78481         (strtoul, strtol): Remove decls.
78482         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
78483         LONG_MAX): Remove.
78484         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
78485         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
78486         (LOCALE_PARAM_PROTO): New macro.
78487         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
78488         (INTERNAL (strtol), strtol): Define with a prototype.
78489         (PARAMS): Remove.  All uses removed.
78490         * lib/tempname.c: Include <string.h> unconditionally.
78491         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
78492         * lib/xgethostname.c (main): Define with a prototype.
78493         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
78494         Include <stdlib.h> unconditionally.
78495         (calloc, malloc, realloc, free): Remove decls.
78496         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
78497         Include <stdlib.h> unconditionally.  Sort include file names.
78498         (strtod): Remove.
78499         (xstrtod): Define with a prototype.
78500         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
78501         (strtol, strtoul): Remove decls.
78502
78503 2003-09-11  Paul Eggert  <eggert@twinsun.com>
78504
78505         More patches to assume C89 or better.
78506         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
78507         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
78508         string.h, memchr, STDC_HEADERS.
78509
78510 2003-09-11  Paul Eggert  <eggert@twinsun.com>
78511
78512         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
78513         Include <stdlib.h>, <string.h> unconditionally.
78514         Remove now-unnecessary cast to char *.
78515         * lib/strnlen.c: Include <string.h> unconditionally.
78516         * lib/yesno.c (yesno): Define with a prototype.
78517
78518 2003-09-11  Bruno Haible  <bruno@clisp.org>
78519
78520         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
78521
78522 2003-09-10  Jim Meyering  <jim@meyering.net>
78523
78524         * lib/error.c: Correct indentation of cpp directives.
78525
78526 2003-09-10  Bruno Haible  <bruno@clisp.org>
78527
78528         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
78529         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
78530         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
78531         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
78532         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
78533         <stdlib.h> and <string.h> checks.
78534         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
78535         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
78536
78537 2003-09-10  Bruno Haible  <bruno@clisp.org>
78538
78539         * lib/strcspn.c: Include <string.h> unconditionally.
78540         * lib/strpbrk.c: Include <string.h> unconditionally.
78541         * lib/strstr.c: Include <string.h> unconditionally.
78542         * lib/unicodeio.c: Include <string.h> unconditionally.
78543         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
78544         * lib/unsetenv.c: Likewise.
78545         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
78546         * lib/yesno.c: Include <stdlib.h> unconditionally.
78547         (rpmatch): Add prototype.
78548
78549 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78550
78551         More patches to assume C89 or better.
78552         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
78553         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
78554         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
78555         or for string.h.
78556         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
78557         stdlib.h.
78558         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
78559         C headers.
78560         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
78561         string.h.
78562         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
78563         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
78564         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
78565         or for string.h.
78566         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
78567         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
78568         C headers.
78569         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
78570         memcpy.
78571         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
78572         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
78573         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
78574         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
78575         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
78576         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
78577         string.h, free.
78578         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
78579         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
78580         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
78581         C headers, or for string.h.
78582         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
78583         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
78584         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
78585         headers, memory.h, stdlib.h, string.h, strings.h.
78586         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
78587         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
78588         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
78589         strchr.
78590         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
78591         headers, memory.h, string.h.
78592         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
78593         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
78594         free.
78595         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
78596         headers.
78597         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
78598         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
78599         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
78600         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
78601         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
78602
78603 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78604
78605         More K&R removal.
78606
78607         * lib/acosl.c (main): Use a prototype.
78608         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
78609         tanl.c: Likewise.
78610
78611         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
78612
78613         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
78614         (getopt, etopt_long, getopt_long_only, _getopt_internal)
78615         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
78616         with a prototype.
78617         * lib/getopt.c (const): Remove macro.
78618         Include <string.h> unconditionally.
78619         (my_index): Remove; all uses changed to strchr.
78620         (strlen): Remove decl.
78621         (exchange): Remove forward decl; no longer needed.
78622         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
78623         Define with prototype.
78624         * lib/getopt1.c (const): Remove macro.
78625         (getopt_long, getopt_long_only, main): Define with prototype.
78626
78627         * lib/getugroups.c: Include <string.h> unconditionally.
78628
78629         * lib/getusershell.c: Include <stdlib.h> unconditionally.
78630         (getusershell, setusershell, endusershell, readname, main):
78631         Define with prototypes.
78632
78633         * lib/group-member.c: Include group-member.h first.
78634         Include <stdlib.h> unconditionally.
78635
78636         * lib/hard-locale.c: Include hard-locale.h first.
78637         Include <stdlib.h>, <string.h> unconditionally.
78638
78639         * lib/hash.c (free, malloc): Remove decls.
78640         Include <stdlib.h> unconditionally.
78641
78642         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
78643         (getenv): Do not declare.
78644
78645         * lib/idcache.c: Include <string.h> unconditionally.
78646
78647         * lib/long-options.c: Include long-options.h first, to test interface.
78648         Include <stdlib.h> unconditionally.
78649
78650         * lib/makepath.c: Include makepath.h first, to test interface.
78651         Include <stdlib.h> and <string.h> unconditionally.
78652
78653         * lib/linebuffer.c: Include <stdlib.h>.
78654         (free): Remove decl.
78655
78656         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
78657         stddef.h. rpl_malloc returns void *, not char *.
78658         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
78659         prototype.
78660
78661         * lib/md5.h: Include <limits.h> unconditionally.
78662         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
78663         (__P): Remove; all uses removed.
78664         * lib/md5.c: Include "md5.h" first.
78665         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
78666         md5_buffer, md5_process_bytes, md5_process_block):
78667         Define with prototypes.
78668         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
78669         * lib/sha.c: Include "sha.h" first.
78670         Include <stdlib.h>, <string.h> unconditionally.
78671
78672         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
78673         * lib/memcmp.c (__ptr_t): Likewise.
78674         * lib/memrchr.c (__ptr_t): Likewise.
78675         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
78676         Include <string.h> unconditionally.
78677         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
78678         * lib/memchr.c: Include <stdlib.h> unconditionally.
78679         * lib/memchr.c (LONG_MAX): Remove.
78680         * lib/memrchr.c (LONG_MAX): Likewise.
78681         * lib/memchr.c (__memchr): Define via a prototype.
78682         * lib/memrchr.c (__memrchr): Likewise.
78683         * lib/memcmp.c (__P): Remove, and remove all uses.
78684         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
78685         Remove forward decls; no longer needed.
78686         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
78687         Use types required by C89 in prototype.
78688
78689         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
78690         * lib/savedir.c: Likewise.
78691         * lib/mkdir.c (free): Remove decl.
78692         * lib/rmdir.c (rmdir): Define with a prototype.
78693         * lib/savedir.c: Include savedir.h first, to test interface.
78694
78695         * lib/mktime.c (STDC_HEADERS): Remove.
78696         Include <stdlib.h>, <string.h> unconditionally.
78697
78698         * lib/modechange.c: Include <stdlib.h> unconditionally.
78699         (malloc): Remove decl.
78700
78701         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
78702         (free): Remove decl.
78703
78704         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
78705         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
78706         (This type really should be intptr_t, but that's a C99ism.)
78707         (_obstack_memcpy): Remove: all uses changed to memcpy.
78708         Include <string.h> unconditionally.
78709         (struct obstack): Assume __STDC__ for types of members
78710         chunkfun, freefun, extra_arg.
78711         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
78712         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
78713         obstack_begin, obstack_specify_allocation,
78714         obstack_specify_allocation_with_arg, obstack_chunkfun,
78715         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
78716         Remove unprototyped decls and the macros that use them.
78717         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
78718         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
78719         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
78720         (defined __STDC__ && __STDC__)]:
78721         Remove nonprototyped code.
78722         Include <stdlib.h> unconditionally.
78723         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
78724         _obstack_allocated_p, _obstack_free, obstack_free,
78725         _obstack_memory_used, print_and_abort):
78726         Define using prototypes.
78727         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
78728         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
78729         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
78730         obstack_next_free, obstack_object_size, obstack_room) [0]:
78731         Remove unused, unprototyped code.
78732
78733         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
78734
78735         * lib/physmem.c (physmem_total, physmem_available, main): Define
78736         with prototypes.
78737
78738         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
78739         (main): Define with a prototype.
78740
78741         * lib/posixver.c (getenv): Remove decl.
78742
78743         * lib/putenv.c (malloc): Returns void *, not char *.
78744         Include <string.h> unconditionally.
78745         (strchr, memcpy, NULL): Do not define.
78746
78747         * lib/readtokens.c: Include readtokens.h first, to test interface.
78748         Include <stdlib.h>, <string.h> unconditionally.
78749         (init_tokenbuffer): Define with a prototype.
78750
78751         * lib/regex.c (PARAMS): Remove.  All uses removed.
78752         All uses of _RE_ARGS removed, too.
78753         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78754         unconditionally.
78755         (bzero): Assume memset exists.
78756         (memcmp, memcpy, NULL): Remove.
78757         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
78758         char, or assignments to local vars of type signed char.
78759         (init_syntax_once, PREFIX(extract_number_and_incr),
78760         PREFIX(print_partial_compiled_pattern),
78761         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
78762         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
78763         PREFIX(regex_grow_registers), PREFIX(regex_compile),
78764         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
78765         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
78766         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
78767         wcs_compile_range, byte_compile_range, truncate_wchar,
78768         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
78769         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
78770         count_mbs_length, wcs_re_match_2_internal,
78771         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
78772         PREFIX(alt_match_null_string_p),
78773         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
78774         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
78775         regfree, PREFIX(extract_number)): Define with prototype.  Remove
78776         now-unnecessary declaration, if any.
78777         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
78778         regcomp, regexec):
78779         Remove now-unnecessary casts among pointer types.
78780         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
78781
78782         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
78783         (free): Remove decl.
78784
78785         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
78786
78787         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
78788         (free): Remove decl.
78789
78790         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
78791         * lib/xgetcwd.c: Likewise.
78792
78793         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
78794         (free): Remove decl.
78795
78796         * lib/strchrnul.c (strchrnul): Define with a prototype.
78797         Fix bug: c_in was not converted to char before searching.
78798
78799         The following changes are not K&R related:
78800
78801         * lib/group-member.h: Include <sys/types.h>, so that this file is
78802         self-contained.
78803         * lib/makepath.h: Likewise.
78804
78805         * lib/getusershell.c (readname, default_index, line_size, readname):
78806         Use size_t, not int, for sizes.
78807         (readname): If the size overflows, report an error instead of
78808         looping forever.
78809
78810 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78811
78812         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
78813         libc.
78814
78815 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78816
78817         * README: New section: portability guidelines.
78818
78819 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
78820
78821         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
78822         C89 spec.
78823
78824 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
78825
78826         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
78827
78828 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78829
78830         Assume C89 or better; remove K&R cruft.
78831         A few of these changes were first proposed by Derek Robert Price
78832         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
78833
78834         * lib/addext.c: Include <string.h> unconditionally.
78835         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
78836         Don't declare getenv or malloc.
78837
78838         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
78839         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
78840         (NULL): Remove.
78841         (find_stack_direction, alloca): Use prototypes.
78842
78843         * lib/atexit.c (atexit): Define using a prototype.
78844
78845         * lib/basename.c, dirname.c, stripslash.c:
78846         Include <string.h> unconditionally.
78847
78848         * lib/bcopy.c: Include <stddef.h>.
78849         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
78850
78851         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
78852
78853         * lib/error.h (error, error_at_line, error_print_progname)
78854         [! (defined (__STDC__) && __STDC__)]: Remove decls.
78855         * lib/error.c: Include error.h first, to check interface.
78856         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
78857         (VA_START): Remove; all uses changeed to va_start.
78858         (exit, strerror): Remove decls.
78859         (error_print_progname): Prototype uncondionally.
78860         Don't include <errno.h>; no longer needed.
78861         (private_strerror): Remove.
78862         (error_tail): Always define.
78863         (error, error_at_line): Assume C89 or better; always use prototypes.
78864         * lib/fatal.c: Include "fatal.h" first, to test interface.
78865         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
78866         (VA_START): Remove; all uses changed to va_start.
78867         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
78868         this case.
78869         (exit): Remove decl.
78870         (fatal): Prototype unconditionally.  Assume va_start works.
78871         Abort at end, to pacify gcc.
78872
78873         * lib/euidaccess.c (main): Define with a prototype.
78874
78875         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
78876
78877         * lib/exitfail.c: Include <stdlib.h> unconditionally.
78878
78879         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
78880         prototypes.
78881         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
78882         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
78883         (getenv): Remove decl.
78884         (fnmatch): Define using a prototype.
78885         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
78886         (FCT): Define using a prototype.
78887
78888         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
78889
78890         * lib/gethostname.c: Include <stddef.h>.
78891         (gethostname): Define with prototype.  Length is size_t, not int.
78892
78893 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78894
78895         Assume C89 or better; remove K&R cruft.
78896         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
78897         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
78898         string.h, getenv, malloc.
78899         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
78900         headers.
78901         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
78902         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
78903         do not check for strerror.
78904         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
78905         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
78906         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
78907         do not check for doprnt or vprintf.
78908         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
78909         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
78910
78911 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78912
78913         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
78914         getversion.c should have been removed then, but was accidentally
78915         preserved.
78916
78917         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
78918         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
78919
78920 2003-09-08  Karl Berry  <karl@gnu.org>
78921
78922         * config/config.sub, config.guess, srclistvars.sh: update from savannah
78923                 config, forget about prep.
78924
78925         * config/depcomp, missing: update from automake.
78926
78927 2003-09-07  Paul Eggert  <eggert@twinsun.com>
78928
78929         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
78930         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
78931
78932 2003-09-07  Paul Eggert  <eggert@twinsun.com>
78933
78934         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
78935         copy_tm_result.  Bug reported by Simon Josefsson in
78936         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
78937
78938 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78939
78940         * m4/time_r.m4: New file.
78941         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
78942         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
78943         is. Check for timegm declaration.
78944         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
78945         Do not check for gmtime_r.
78946         Replace mktime if __mktime_internal does not exist and if mktime
78947         hasn't been replaced already.
78948
78949 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78950
78951         * lib/time_r.c, lib/time_r.h: New files.
78952
78953         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
78954         __localtime_r.
78955         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
78956         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
78957
78958         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
78959         __gmtime_r.
78960         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
78961         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
78962         Include <time_r.h>.
78963
78964         * lib/timegm.c: Switch to glibc implementation, with the following
78965         changes:
78966         [defined HAVE_CONFIG_H]: Include <config.h>.
78967         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
78968         (__mktime_internal) [!defined _LIBC]: New decl.
78969         (__gmtime_r) [!defined _LIBC]: New macro and function.
78970         (timegm): Use a prototype, since gnulib assumes C89.
78971         Do not bother declaring tmp to be const, as it's not really usefu.
78972         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
78973         (timegm): Declare only if HAVE_DECL_TIMEGM.
78974
78975 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78976
78977         * MODULES.html.sh (func_all_modules): Add time_r.
78978         * modules/time_r: New file.
78979         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
78980         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
78981
78982 2003-09-03  Paul Eggert  <eggert@twinsun.com>
78983
78984         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
78985         Bug reported by Lute Kamstra in
78986         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
78987
78988         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
78989         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
78990         course with correspondingly smaller numbers for tomorrow and
78991         yesterday.  From Tadayoshi Funaba.  Originally installed into
78992         sh-utils on 1999-08-07, but the patch got lost (I guess during the
78993         coreutils merge?).
78994
78995 2003-08-31  Simon Josefsson  <jas@extundo.com>
78996
78997         * modules/timegm: New file.
78998         * MODULES.html.sh (func_all_modules): Add timegm.
78999
79000 2003-08-31  Simon Josefsson  <jas@extundo.com>
79001
79002         * m4/timegm.m4: New file.
79003
79004 2003-08-31  Simon Josefsson  <jas@extundo.com>
79005
79006         * lib/timegm.h: New file.
79007         * lib/timegm.c: New file.  Based on
79008         wget-1.8.2/src/http.c:mktime_from_utc.
79009
79010 2003-08-31  Karl Berry  <karl@gnu.org>
79011
79012         * lib/argp.h: update from libc.
79013
79014 2003-08-28  Bruno Haible  <bruno@clisp.org>
79015
79016         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
79017         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
79018         followed by '#define fnmatch fnmatch_posix' gives an error.
79019
79020 2003-08-28  Bruno Haible  <bruno@clisp.org>
79021
79022         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
79023         warning on QNX, which defines O_BINARY to 000000.
79024
79025 2003-08-27  Jim Meyering  <jim@meyering.net>
79026
79027         * m4/mkstemp.m4: Require that the system mkstemp be able to create
79028         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
79029         would fail after 32.  Reported by Danny Levinson.  Details here:
79030         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
79031
79032 2003-08-24  Bruno Haible  <bruno@clisp.org>
79033
79034         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
79035         MSVC7 <stdio.h> is included later.
79036
79037 2003-08-22  Simon Josefsson  <jas@extundo.com>
79038
79039         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
79040
79041 2003-08-20  Karl Berry  <karl@gnu.org>
79042
79043         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
79044
79045 2003-08-20  Bruno Haible  <bruno@clisp.org>
79046
79047         * modules/progname: New file.
79048         * MODULES.html.sh (func_all_modules): Add progname.
79049
79050 2003-08-20  Bruno Haible  <bruno@clisp.org>
79051
79052         * lib/progname.h: New file, from GNU gettext.
79053         * lib/progname.c: New file, from GNU gettext.
79054         * lib/progreloc.c: New file, from GNU gettext.
79055
79056 2003-08-19  Jim Meyering  <jim@meyering.net>
79057
79058         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
79059         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
79060
79061 2003-08-19  Bruno Haible  <bruno@clisp.org>
79062
79063         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
79064         more.
79065
79066 2003-08-19  Bruno Haible  <bruno@clisp.org>
79067
79068         * lib/xstrdup.c: Assume <string.h> exists.
79069
79070 2003-08-18  Paul Eggert  <eggert@twinsun.com>
79071
79072         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
79073         in makefile rules.
79074
79075 2003-08-18  Jim Meyering  <jim@meyering.net>
79076
79077         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
79078         * m4/lib-ld.m4: Likewise.
79079
79080 2003-08-18  Jim Meyering  <jim@meyering.net>
79081
79082         * lib/setenv.h: Indent nested cpp directive.
79083         * lib/vasnprintf.c: Remove trailing blanks.
79084
79085 2003-08-17  Simon Josefsson  <jas@extundo.com>
79086
79087         * modules/xstrndup: New file.
79088         * MODULES.html.sh (func_all_modules): Add xstrndup.
79089
79090 2003-08-17  Simon Josefsson  <jas@extundo.com>
79091
79092         * modules/argp: Fix autoconf macro name. Add more dependencies.
79093
79094 2003-08-17  Simon Josefsson  <jas@extundo.com>
79095
79096         * m4/xstrndup.m4: New file.
79097
79098 2003-08-17  Simon Josefsson  <jas@extundo.com>
79099
79100         * m4/argp.m4: New file.
79101
79102 2003-08-17  Simon Josefsson  <jas@extundo.com>
79103             Bruno Haible  <bruno@clisp.org>
79104
79105         * lib/xstrndup.h: New file.
79106         * lib/xstrndup.c: New file.
79107
79108 2003-08-17  Bruno Haible  <bruno@clisp.org>
79109
79110         * modules/strndup (Files, Include): Add lib/strndup.h.
79111
79112 2003-08-17  Bruno Haible  <bruno@clisp.org>
79113
79114         * modules/euidaccess (Files): Add lib/euidaccess.h.
79115
79116 2003-08-17  Bruno Haible  <bruno@clisp.org>
79117
79118         * lib/strndup.h: New file.
79119
79120 2003-08-17  Bruno Haible  <bruno@clisp.org>
79121
79122         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
79123         like AC_GNU_SOURCE.
79124         * modules/extensions (configure.ac): Comment out the invocation of
79125         gl_USE_SYSTEM_EXTENSIONS.
79126
79127 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79128
79129         Merges from coreutils, etc.
79130         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
79131         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
79132         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
79133         fixing a typo.
79134         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
79135         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
79136
79137 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79138
79139         Document merge from coreutils.
79140         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
79141         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
79142         * modules/utime: Add m4/utimes-null.m4.
79143
79144 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79145
79146         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
79147         space, undoing this 2003-08-12 change:
79148         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
79149
79150 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79151
79152         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
79153         strtoul.c from libc, undoing this 2003-08-12 change:
79154         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
79155
79156 2003-08-16  Jim Meyering  <jim@meyering.net>
79157
79158         Merges from coreutils.
79159         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
79160         prefix.  Adjust cache variables similarly.  Create 500 rather than
79161         just 300 files, to exercise bug on Darwin6.5, too.
79162         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
79163         $missing_dir.
79164         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
79165         AM_SYS_POSIX_TERMIOS.
79166         Reported by mkc@mathdogs.com.
79167         Also change use of $am_cv_sys_posix_termios
79168         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
79169         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
79170         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
79171         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
79172         in /proc/mounts until it finds one with matching device number.  This
79173         is unnecessary when the FILE argument *is* a mount point.  No stat call
79174         is necessary in that case.  So, disable the statvfs-testing code on
79175         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
79176         as RedHat bug# 84846.
79177         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
79178         to 1MB, so as not to render systems with no stack size limit (e.g.,
79179         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
79180         Include <unistd.h>.  On some systems,
79181         it is required for the definition of _SC_PAGESIZE.
79182
79183 2003-08-16  Jim Meyering  <jim@meyering.net>
79184
79185         Merge from coreutils.
79186         * lib/xstrtoimax.c: #else #if -> #elif.
79187         * lib/xstrtoumax.c: Likewise.
79188
79189 2003-08-16  Jim Meyering  <jim@meyering.net>
79190
79191         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
79192         * m4/utimes.m4: Removed.
79193         * m4/utimes-null.m4: Renamed from utimes.m4.
79194
79195         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
79196         to 1MB, so as not to render systems with no stack size limit (e.g.,
79197         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
79198         Include <unistd.h>.  On some systems,
79199         it is required for the definition of _SC_PAGESIZE.
79200
79201 2003-08-16  Jim Meyering  <jim@meyering.net>
79202         and Paul Eggert  <eggert@cs.ucla.edu>
79203
79204         Merges from coreutils, etc.
79205
79206         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
79207         using the latest version from cvs.  This avoids problems with #line
79208         directives using a vendor (Sun) compiler.
79209         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
79210         Don't set GETGROUPS_LIB here; now it's
79211         done via getgroups.m4's wrapper function.
79212         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
79213         rather than just in sh-util/configure.in, so that the
79214         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
79215         same.
79216         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
79217         AC_FUNC_GETLOADAVG where to find getloadavg.c.
79218         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
79219         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
79220         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
79221         Remove code that is now done by the newly-required macros.
79222         Append $(EXEEXT) to DF_PROG.
79223         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
79224         Do not invoke or require the following here,
79225         since prereq.m4 or some gnulib .m4 now does this for us:
79226         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
79227         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
79228         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
79229         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
79230         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
79231         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
79232         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
79233         AC_FUNC_OBSTACK.
79234         Do not replace the following functions, as this is now the job
79235         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
79236         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
79237         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
79238         atexit getpass, strdup, getpagesize.
79239         Replace 'raise'.
79240         Do not check for the following functions, as this is now the job
79241         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
79242         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
79243         setregid.
79244         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
79245         Check for sys/sysctl.h.
79246         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
79247         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
79248         of checking for ssize_t ourselves.
79249
79250         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
79251         Require every macro that gnulib/modules/* suggests for us.
79252         (jm_PREREQ_ADDEXT): New macro.
79253         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
79254         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
79255
79256         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
79257         (gl_PHYSMEM): Use it.
79258         Also check for `table' function.
79259         Check for new headers and functions.
79260         Add check for sys/sysmp.h.
79261         With suggestions from Kaveh Ghazi.
79262         Ignore headers that are present but cannot be compiled.  This
79263         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
79264         C 5.4.
79265
79266 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79267
79268         Document merge from coreutils.
79269         * modules/userspec: Depend on posixver.
79270         * modules/strftime: Depend on tzset.
79271
79272 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79273
79274         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
79275         rather than tab, after '#' in shell-script copyright notices.
79276         Suggested by Bruno Haible.
79277
79278 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79279
79280         * config/srclist-update: Use three spaces, rather than tab, after '#'
79281         in shell-script copyright notices.  Suggested by Bruno Haible.
79282         Remove unnecessary parenthesization in regular expression.
79283
79284 2003-08-15  Jim Meyering  <jim@meyering.net>
79285
79286         Merge from coreutils.
79287         * lib/xgethostname.c: Include <stdlib.h>.
79288         (xghostname): Don't exit for anything other than memory-related
79289         failure; just return NULL.
79290         * lib/userspec.c: Include "posixver.h".
79291         (parse_user_spec): Accept `.' as a separator only
79292         in pre-POSIX-200112 mode.
79293         * lib/strtoimax.c: Use #elif rather than #else #if.
79294         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
79295         Remove function, now that we can rely on a working tzset function.
79296         [!_LIBC]: Ensure that the required autoconf test has been run.
79297         [!defined _NL_CURRENT && HAVE_STRFTIME]:
79298         Use underlying_strftime for %r.
79299         * lib/sha.c: Merge in some clean-up and optimization changes from
79300         glibc.
79301         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
79302         Ensure that it is a multiple of 64.
79303         Rearrange loop exit tests so as to avoid performing an
79304         additional fread after encountering an error or EOF.
79305         * lib/realloc.c: Update copyright date.
79306
79307 2003-08-15  Jim Meyering  <jim@meyering.net>
79308         and Paul Eggert  <eggert@twinsun.com>
79309
79310         Merge from coreutils.
79311         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
79312         member but strut utmpx does not.  Needed for AIX 4.3.3.
79313         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
79314
79315 2003-08-15  Jim Meyering  <jim@meyering.net>
79316         and Paul Eggert  <eggert@cs.ucla.edu>
79317
79318         Merges from coreutils, etc.
79319         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
79320         Require gl_FUNC_TZSET_CLOBBER.
79321         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
79322         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
79323         members.
79324
79325 2003-08-14  Paul Eggert  <eggert@twinsun.com>
79326
79327         Help the merge from coreutils.
79328         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
79329         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
79330         * m4/tzset.m4: Use it too.
79331
79332 2003-08-14  Paul Eggert  <eggert@twinsun.com>
79333
79334         * modules/tzset: New file.
79335
79336 2003-08-14  Jim Meyering  <jim@meyering.net>
79337
79338         Merges from coreutils.
79339         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
79340         variable names, rather than @FNMATCH_H@.
79341         * modules/alloca: Likewise for $(ALLOCA_H).
79342
79343         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
79344         the three copies of the literal target, `fnmatch.h'.
79345         * modules/alloca (alloca.h): Likewise.
79346
79347 2003-08-14  Jim Meyering  <jim@meyering.net>
79348
79349         Merge from coreutils.
79350         * m4/tzset.m4: New file.
79351         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
79352         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
79353         otherwise, AIX 5.1 systems would end up using the latter.
79354         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
79355         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
79356         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
79357         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
79358
79359 2003-08-14  Jim Meyering  <jim@meyering.net>
79360
79361         Merge from coreutils.
79362         * lib/obstack.h: Whitespace changes.
79363         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
79364         and xcalloc return values.
79365         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
79366         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
79367         hang on OSF/1 5.1 for DIR on both local and remote file systems.
79368         Reported by (and fix confirmed by) Nelson H. F. Beebe.
79369         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
79370         error from mntctl.
79371         Use mntctl's return value to drive the entry-processing loop, since
79372         we can't rely on the value of the vmt_length member in the last
79373         entry.  On some systems doing so could result in exhausting
79374         virtual memory.  Based in part on a patch from Mike Jetzer.
79375
79376 2003-08-14  Jim Meyering  <jim@meyering.net>
79377         and Paul Eggert  <eggert@twinsun.com>
79378
79379         Merges from coreutils, plus other fixes.
79380         * lib/physmem.c: Merge in portability changes from gcc/libiberty
79381         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
79382         for credits and details.  Thanks to Kaveh Ghazi for helping
79383         to keep these files in sync.
79384         (ARRAY_SIZE): Define it.
79385         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
79386         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
79387         (memcasecmp): Don't assume size_t fits in unsigned int.
79388         Remove casts and duplicate code.
79389         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
79390         (memcpy): Remove definition.
79391         Merge in some clean-up and optimization changes from glibc.
79392         [BLOCKSIZE]: Move definition to top of file.
79393         Ensure that it is a multiple of 64.
79394         Rearrange loop exit tests so as to avoid performing an
79395         additional fread after encountering an error or EOF.
79396         * lib/md5.h (md5_uintptr): Define.
79397         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
79398         return to the initial working directory.  Preserve errno
79399         for caller.
79400         * lib/idcache.c: Include "xalloc.h".
79401         (xmalloc, xrealloc): Remove decls.
79402         (getuser): Remove casts no longer required in C89.
79403         * lib/human.c: Include stdio.h, for sprintf.
79404         * lib/group-member.c: Include "xalloc.h".
79405         (xmalloc, xrealloc): Remove decls.
79406         (get_group_info): Remove casts no longer required in C89.
79407         * lib/getusershell.c (readname): Remove casts no longer required in
79408         C89.
79409         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
79410         * lib/getline.c: Whitespace fix, from coreutils.
79411
79412 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79413
79414         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
79415         Check for isascii.
79416
79417         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
79418         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
79419         Undo previous (whitespace-only) change.
79420
79421 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79422
79423         * lib/exclude.c: Include <ctype.h>
79424         (IN_CTYPE_DOMAIN): New macro.
79425         (is_space): New fn.
79426         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
79427         and empty lines.
79428
79429         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
79430         Undo previous (whitespace-only) change.
79431
79432 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79433
79434         * config/srclist-update: Change update back to the old behavior,
79435         leaving whitespace alone.  Use one 'sed' command rather than a
79436         pipeline.
79437         (fixlicense): Now a variable, not a function.
79438         (remove_trailing_blanks): Remove.
79439         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
79440         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
79441         Undo previous (whitespace-only) change.
79442
79443 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79444
79445         Merge from coreutils.
79446         * modules/euidaccess: Add lib_SOURCES, include for new
79447         file euidaccess.h
79448
79449 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79450
79451         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
79452         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
79453         Normalize leading white space and remove trailing white space.
79454
79455         Merge from coreutils
79456         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
79457
79458         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
79459         0.12.1.  These files are now being upgraded automatically by
79460         ../config/srclist-update.
79461
79462 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79463
79464         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
79465         Normalize leading white space and remove trailing white space.
79466         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
79467         notice, as per ../config/srclist-update.
79468
79469         Merge from coreutils.
79470         * lib/euidaccess.h: New file.
79471         * lib/euidaccess.c: Include it.
79472         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
79473         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
79474         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
79475
79476 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79477
79478         * config/srclist-update: Add copyright notice.
79479         (remove_id_lines, remove_trailing_blanks): New constants.
79480         (fixfile): Use them to normalize spacing a bit in copied files.
79481         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
79482         Normalize leading white space and remove trailing white space.
79483
79484         * config/texinfo.tex: Sync with texinfo.
79485
79486         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
79487         strtoul.c from libc, to merge coreutils whitespace changes.
79488
79489         * config/srclist.txt: Get the following m4 files from gettext:
79490         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
79491         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
79492         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
79493         wint_t.m4.
79494
79495 2003-08-12  Karl Berry  <karl@gnu.org>
79496
79497         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
79498         been made.
79499
79500 2003-08-11  Paul Eggert  <eggert@twinsun.com>
79501
79502         * modules/gnu-source, m4/gnu-source.m4:
79503         Remove; we're assuming Autoconf 2.54 or later now.
79504         Suggested by Bruno Haible.
79505         * MODULES.html.sh (func_all_modules): Remove gnu-source.
79506
79507 2003-08-11  Bruno Haible  <bruno@clisp.org>
79508
79509         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
79510
79511 2003-08-11  Bruno Haible  <bruno@clisp.org>
79512
79513         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
79514         (vasnprintf): Use it instead of wcslen.
79515
79516 2003-08-11  Bruno Haible  <bruno@clisp.org>
79517
79518         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
79519         value to ensure that _Bool promotes to int. Use #define for _Bool when
79520         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
79521
79522 2003-08-10  Karl Berry  <karl@gnu.org>
79523
79524         * lib/regex.h: update from libc (whitespace fix).
79525
79526 2003-08-09  Paul Eggert  <eggert@twinsun.com>
79527
79528         Merge some files from coreutils.  These changes were
79529         originally made by Jim Meyering.
79530         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
79531         many older Unixes require this.
79532         * lib/alloca.c (alloca): Remove cast to argument of free;
79533         no longer needed in C89.
79534         * lib/alloca_.h, regex.h: Fix white space to match
79535         what GNU indent does.
79536
79537 2003-08-09  Paul Eggert  <eggert@twinsun.com>
79538
79539         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
79540         apparently Emacs's Unicode mode got confused before my 2003-08-05
79541         checkin.
79542
79543 2003-08-08  Paul Eggert  <eggert@twinsun.com>
79544
79545         * m4/extensions.m4: New file.
79546         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
79547         Require gl_USE_SYSTEM_EXTENSIONS.
79548         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
79549         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
79550
79551 2003-08-08  Paul Eggert  <eggert@twinsun.com>
79552
79553         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
79554         * modules/extensions, modules/gnu-source: New files.
79555         * modules/timespec, modules/unlocked-io: Depend on extensions.
79556
79557 2003-08-07  Paul Eggert  <eggert@twinsun.com>
79558
79559         * modules/restrict: New file.
79560         * MODULES.html.sh (func_all_modules): Add restrict.
79561         * modules/regex: Depend on restrict.
79562
79563 2003-08-07  Paul Eggert  <eggert@twinsun.com>
79564
79565         * m4/restrict.m4: New file.
79566         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
79567
79568 2003-08-07  Bruno Haible  <bruno@clisp.org>
79569
79570         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
79571         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
79572
79573 2003-08-07  Bruno Haible  <bruno@clisp.org>
79574
79575         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
79576         makes the module 'getndelim2' compatible with the module 'getline'.
79577
79578 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79579
79580         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
79581         byte with "\201" to avoid glitches when editing that source file
79582         with multi-gnome-terminal.
79583
79584 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79585
79586         * lib/bumpalloc.h: Remove.
79587
79588 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79589
79590         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
79591         * modules/bumpalloc: Remove.
79592
79593 2003-08-04  Paul Eggert  <eggert@twinsun.com>
79594
79595         * lib/getloadavg.c: Change copyright notice and spacing to conform to
79596         GNU coding style.
79597
79598         Merge from coreutils.
79599         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
79600         1. From glibc.
79601         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
79602         from Karl Berry, implemented by Jim Meyering.
79603         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
79604         from Dmitry V. Levin.
79605         Remove anachronistic cast of xrealloc.
79606         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
79607         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
79608         type. Otherwise, it wouldn't compile with at least /bin/cc on
79609         ymp-cray-unicos9.0.2.X.
79610         Combine two mostly-identical uses of alloca into one.
79611         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
79612
79613 2003-08-04  Dave Love  <d.love@dl.ac.uk>
79614
79615         [From Emacs.]
79616
79617         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
79618         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
79619         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
79620         obsolete NLIST_NAME_UNION.
79621         [__GNU__]: Undef BSD and FSCALE.
79622         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
79623
79624 2003-08-03  Paul Eggert  <eggert@twinsun.com>
79625
79626         * lib/stdbool_.h (_Bool): Make it signed char, instead of
79627         an enum type, so that it's guaranteed to promote to int.  See:
79628         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
79629
79630 2003-08-03  Karl Berry  <karl@gnu.org>
79631
79632         * config/depcomp: update from automake.
79633
79634 2003-07-31  Paul Eggert  <eggert@twinsun.com>
79635
79636         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
79637         (strerror): Don't assume that a printable int fits in 14 bytes.
79638
79639 2003-07-31  Bruno Haible  <bruno@clisp.org>
79640
79641         * modules/getpass-gnu: New file.
79642         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
79643
79644 2003-07-31  Bruno Haible  <bruno@clisp.org>
79645
79646         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
79647
79648 2003-07-24  Karl Berry  <karl@gnu.org>
79649
79650         * config/missing: update from automake.
79651
79652 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
79653             Bruno Haible  <bruno@clisp.org>
79654
79655         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
79656         * lib/getline.c (getline, getdelim): Likewise.
79657         Remove _GNU_SOURCE define; now it's defined in config.h through
79658         m4/getline.m4.
79659
79660 2003-07-23  Karl Berry  <karl@gnu.org>
79661
79662         * config/config.sub: update from prep.
79663
79664 2003-07-22  Paul Eggert  <eggert@twinsun.com>
79665
79666         * modules/xalloc (Depends-on): Add exitfail.
79667         * modules/xmemcoll: Likewise.
79668
79669 2003-07-22  Paul Eggert  <eggert@twinsun.com>
79670
79671         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
79672         over-parenthesization in macros.
79673
79674         Sync with coreutils.
79675
79676         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
79677         required by C99.
79678
79679         Use `exit_failure' for xalloc and xmemcoll instead of their own
79680         private exit-failure variables.
79681         * lib/xalloc.h (xalloc_exit_failure): Remove.
79682         * lib/xmalloc.c: Likewise.  Include exitfail.h.
79683         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
79684         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
79685         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
79686         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
79687
79688 2003-07-20  Jim Meyering  <jim@meyering.net>
79689
79690         * modules/closeout (Depends-on): Add exitfail.
79691         Suggestion from Bruno Haible.
79692
79693 2003-07-19  Karl Berry  <karl@gnu.org>
79694
79695         * config/config.sub: update from prep.
79696
79697 2003-07-18  Paul Eggert  <eggert@twinsun.com>
79698
79699         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
79700         Remove.
79701         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
79702         to test that it can stand by itself.  Include "exitfail.h".
79703         Clients should set exit_failure instead.
79704         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
79705
79706 2003-07-18  Bruno Haible  <bruno@clisp.org>
79707
79708         * modules/getndelim2: New file.
79709         * modules/getline: Share files with module getndelim2.
79710         * modules/getnline: Depend on getndelim2 instead of sharing files with
79711         it. Add getnline.c to lib_SOURCES.
79712         * MODULES.html.sh (func_all_modules): Add getndelim2.
79713
79714 2003-07-18  Bruno Haible  <bruno@clisp.org>
79715
79716         * m4/getndelim2.m4: New file.
79717         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
79718         invoke gl_PREREQ_GETNDELIM2.
79719         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
79720         gl_PREREQ_GETNDELIM2.
79721         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
79722         gl_GETNDELIM2.
79723
79724 2003-07-18  Bruno Haible  <bruno@clisp.org>
79725
79726         * lib/getndelim2.h: New file.
79727         * lib/getndelim2.c: Make into a module of its own. Include config.h,
79728         getndelim2.h.
79729         (getndelim2): Make non-static. Change return type to ssize_t.
79730         * lib/getline.h: Change argument names.
79731         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
79732         * lib/getnline.c: Include getndelim2.h.
79733
79734 2003-07-18  Andreas Schwab  <schwab@suse.de>
79735
79736         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
79737
79738 2003-07-17  Karl Berry  <karl@gnu.org>
79739
79740         * config/config.sub: update from prep.
79741
79742 2003-07-17  Bruno Haible  <bruno@clisp.org>
79743
79744         * modules/getnline: New file.
79745         * modules/getline: Add lib/getndelim2.c to source file list.
79746         * MODULES.html.sh (func_all_modules): Add getnline.
79747
79748 2003-07-17  Bruno Haible  <bruno@clisp.org>
79749
79750         * m4/getnline.m4: New file.
79751
79752 2003-07-17  Bruno Haible  <bruno@clisp.org>
79753
79754         * m4/Makefile.am.in: Remove file.
79755         * m4/Makefile.am: Remove file.
79756         * m4/Makefile.in: Remove file.
79757
79758 2003-07-17  Bruno Haible  <bruno@clisp.org>
79759
79760         * lib/getnline.h: New file.
79761         * lib/getnline.c: New file.
79762         * lib/getndelim2.c: New file, extracted from getline.c.
79763         (getndelim2): Renamed from getdelim2, with added nmax argument.
79764         * lib/getline.c: Include getndelim2.c.
79765         (getdelim2): Moved out to getndelim2.c.
79766         (getline, getdelim): Update.
79767
79768 2003-07-17  Bruno Haible  <bruno@clisp.org>
79769
79770         * lib/Makefile.am: Remove file.
79771         * lib/Makefile.in: Remove file.
79772
79773 2003-07-17  Bruno Haible  <bruno@clisp.org>
79774
79775         * configure.in: Remove file.
79776         * Makefile.in: Remove file.
79777
79778 2003-07-17  Bruno Haible  <bruno@clisp.org>
79779
79780         * MODULES.html.sh: Put the </BODY> right before </HTML>.
79781
79782 2003-07-16  Karl Berry  <karl@gnu.org>
79783
79784         * config/srclist-update: was running fixlicense twice, which caused
79785                 texinfo.tex to be nullified for some reason.  Simplify,
79786                 $gplsrc is no longer needed as far as I can see?
79787
79788 2003-07-16  Jim Meyering  <jim@meyering.net>
79789
79790         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
79791
79792 2003-07-15  Paul Eggert  <eggert@twinsun.com>
79793
79794         * config/srclist.txt: Get the following files from gettext-runtime/intl
79795         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
79796         ref-del.sin.  From Bruno Haible.
79797         * config/srclist-update (fixfile): Change grep pattern again, since the
79798         previous fix didn't work (there was another trailing $).  Use
79799         '[$]' to escape the $s.
79800
79801 2003-07-15  Karl Berry  <karl@gnu.org>
79802
79803         * lib/vasnprintf.c: update from gettext.
79804
79805 2003-07-15  Karl Berry  <karl@gnu.org>
79806
79807         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
79808         gets expanded when surrounded by '$'.
79809
79810 2003-07-15  Jim Meyering  <jim@meyering.net>
79811
79812         * modules/save-cwd: Don't depend on error.  From Derek Price.
79813
79814 2003-07-15  Jim Meyering  <jim@meyering.net>
79815
79816         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
79817
79818 2003-07-14  Simon Josefsson  <jas@extundo.com>
79819
79820         * modules/mempcpy: New file.
79821         * MODULES.html.sh (func_all_modules): Add mempcpy.
79822
79823 2003-07-14  Simon Josefsson  <jas@extundo.com>
79824
79825         * m4/mempcpy.m4: New file.
79826
79827 2003-07-14  Simon Josefsson  <jas@extundo.com>
79828
79829         * lib/mempcpy.h: New file.
79830         * lib/mempcpy.c: New file.
79831
79832 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79833
79834         * modules/getdate, modules/posixtm: Depend on mktime.
79835
79836 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79837
79838         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
79839         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
79840         unicodeio.c, unicodeio.h, unlocked-io.h:
79841         Switch from LGPL to GPL.
79842
79843 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79844
79845         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
79846         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
79847         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
79848         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
79849         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
79850         updated automatically by ../config/srclist-update.  This changes
79851         their license from LPGL to GPL.
79852
79853 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79854
79855         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
79856         assumed to refer to the root of the most recent stable gettext version.
79857         * config/srclistvars.sh: Add defaults for eggert.
79858         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
79859         Match "This program" as well as "The program".  This is needed
79860         for gettext.
79861
79862 2003-07-14  Jim Meyering  <jim@meyering.net>
79863
79864         Don't emit diagnostics.  Let callers do that.
79865         * lib/save-cwd.c: Don't include "error.h".
79866         (save_cwd): Don't call error.  Ensure that errno is valid
79867         when returning nonzero.
79868
79869         * lib/save-cwd.h (restore_cwd): Update prototype.
79870         * lib/save-cwd.c (restore_cwd): Remove two parameters.
79871         Simplify.  Don't call error upon failure.  Let callers do that.
79872         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
79873         when auditing is enabled.  But don't bother updating the #if.
79874
79875 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
79876
79877         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
79878         it breaks C++ compilation.
79879         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
79880
79881 2003-07-10  Simon Josefsson  <jas@extundo.com>
79882
79883         * modules/strchrnul (Makefile.am): Add strchrnul.h.
79884
79885 2003-07-10  Jim Meyering  <jim@meyering.net>
79886
79887         * m4/clock_time.m4: Remove trailing blank.
79888         * m4/intmax_t.m4: Likewise.
79889
79890 2003-07-10  Jim Meyering  <jim@meyering.net>
79891
79892         * lib/vasnprintf.c: Remove trailing blanks.
79893         Make cpp indentation consistent.
79894
79895 2003-07-09  Paul Eggert  <eggert@twinsun.com>
79896
79897         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
79898         posixver.c, strftime.c, strnlen.c, strverscmp.c:
79899         Switch from LGPL to GPL.
79900
79901 2003-07-09  Paul Eggert  <eggert@twinsun.com>
79902
79903         * config/srclist.txt: Sort sublists.  Add
79904         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
79905         that differ from gnulib for one reason or another; we'd like this list
79906         to be smaller but for now let's document what we have.
79907
79908 2003-07-08  Paul Eggert  <eggert@twinsun.com>
79909
79910         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
79911         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
79912         and sweeter "eval x=$x".
79913         * config/srclist.txt: Get lib/argp* from glibc.
79914
79915 2003-07-07  Paul Eggert  <eggert@twinsun.com>
79916
79917         * lib/mktime.c: Fix some boundary cases and remove need for floating
79918         point.
79919
79920         Issue a compile-time diagnostic if time_t is floating point, or if
79921         two's complement arithmetic is not in effect, or if arithmetic
79922         right shift does not propagate the sign.  These assumptions were
79923         all in the original code but they weren't checked.
79924
79925         (TIME_T_MIDPOINT, verify): New macros.
79926         (__isleap): Remove; it has integer overflow problems.
79927         (leapyear): New function, without those problems.
79928         (ydhms_tm_diff): Remove; splitting into two parts.
79929         (ydhms_diff): New function, containing the arithmetic part of
79930         the old ydhms_tm_diff function.  Issue a compile-time
79931         diagnostic if we are not using C99 integer division.
79932         Avoid casts when possible.
79933         (guess_time_tm): New function, containing the checking part of
79934         the old ydhms_tm_diff function.  Return the new value, rather than
79935         the difference between it and the old.  Accept a new argument T
79936         so that *T specifies the old value.  Check for overflow in the result.
79937
79938         (__mktime_internal): Use a time_t offset, not a long int offset.
79939         This undoes the 2003-06-04 change, which is no longer needed now
79940         that we have better overflow checking.
79941         (localtime_offset): Likewise.
79942
79943         (__mktime_internal): Avoid harmful overflow on hosts where time_t
79944         and long are 64-bit but int is only 32-bit.
79945         (ydhms_diff): Use long int to store year1 and yday1.
79946         Issue a compile-time diagnostic if long int is not wide enough.
79947
79948         (__mktime_internal): Use long int to store adjusted year and yday.
79949         Use plain C rather than preprocessor commands, if that doesn't
79950         affect efficiency.
79951         Check for overflow (and try to repair) after each probe
79952         rather than checking only at the very end.  This avoids some bugs
79953         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
79954         does not equal GMT offset at maximum time).
79955         Use integer to check for overflow rather than floating point; this
79956         is more portable to non-IEEE hosts, and is a tad faster.
79957         When we detect that we are oscillating between two values,
79958         don't check whether tm_isdst has the requested value, since
79959         we already know the answer.  When tm_isdst has the wrong value,
79960         use a different heuristic to find the right one, based on the
79961         extreme values actually observed in practice in tz2003a,
79962         rather than the (overly optimistic) "previous 3 calendar quarters".
79963
79964         (not_equal_tm, print_tm, check_result): Use "const T" rather than
79965         "T const" to accommodate glibc style.
79966         (check_result): Use less-confusing report format.  "long" -> "long int.
79967         (main): Likewise.
79968         Don't loop if the iteration overflows time_t.
79969         Allow a negative step in the iteration.
79970
79971 2003-07-06  Karl Berry  <karl@gnu.org>
79972
79973         * config/depcomp: update from automake.
79974         * config/config.sub: update from prep.
79975
79976 2003-07-03  Karl Berry  <karl@gnu.org>
79977
79978         * config/config.guess: update from prep.
79979
79980 2003-07-01  Paul Eggert  <eggert@twinsun.com>
79981
79982         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
79983         xreadlink.c now includes it unconditionally.
79984
79985 2003-07-01  Paul Eggert  <eggert@twinsun.com>
79986
79987         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
79988         having it depend on HAVE_SYS_TYPES_H.
79989
79990 2003-07-01  Bruno Haible  <bruno@clisp.org>
79991
79992         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
79993         <sys/types.h> should be sufficient.
79994         Reported by Paul Eggert.
79995
79996 2003-06-26  Karl Berry  <karl@gnu.org>
79997
79998         * config/depcomp: update from automake.
79999
80000 2003-06-26  Bruno Haible  <bruno@clisp.org>
80001
80002         * modules/human: Depend on module stdbool.
80003
80004 2003-06-25  Bruno Haible  <bruno@clisp.org>
80005
80006         * modules/readlink: New file.
80007         * modules/xreadlink: Depend on it.
80008         * MODULES.html.sh (func_all_modules): Add readlink.
80009
80010 2003-06-25  Bruno Haible  <bruno@clisp.org>
80011
80012         * m4/readlink.m4: New file.
80013
80014 2003-06-25  Bruno Haible  <bruno@clisp.org>
80015
80016         * lib/readlink.c: New file.
80017
80018 2003-06-22  Karl Berry  <karl@gnu.org>
80019
80020         * config/srclist.txt: update mkinstalldirs from automake.
80021         * config/mkinstalldirs: update.
80022
80023 2003-06-22  Bruno Haible  <bruno@clisp.org>
80024
80025         Portability to mingw32.
80026         * m4/ssize_t.m4: New file, from GNU gettext.
80027         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
80028         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
80029
80030 2003-06-22  Bruno Haible  <bruno@clisp.org>
80031
80032         * modules/safe-read: Add m4/ssize_t.m4.
80033         * modules/xreadlink: Add m4/ssize_t.m4.
80034
80035 2003-06-20  Bruno Haible  <bruno@clisp.org>
80036
80037         Assume C89, so PARAMS isn't needed.
80038         * lib/unicodeio.h (PARAMS): Remove.
80039         * lib/unicodeio.c: Don't use PARAMS.
80040
80041 2003-06-18  Karl Berry  <karl@gnu.org>
80042
80043         * config/config.{guess,sub}: update from prep.
80044
80045 2003-06-18  Jim Meyering  <jim@meyering.net>
80046
80047         Merge changes from coreutils.
80048         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
80049         Remove explicit declarations of xmalloc and realloc.
80050         Include xalloc.h.
80051         (read_utmp): Remove anachronistic cast of xmalloc.
80052
80053 2003-06-17  Paul Eggert  <eggert@twinsun.com>
80054
80055         Assume C89, so PARAMS isn't needed.
80056         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
80057         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
80058         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
80059         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
80060         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
80061         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
80062         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
80063         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
80064         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
80065         lib/xstrtod.h, lib/xstrtol.h: Likewise.
80066         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
80067         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
80068         no longer needed. Anyway, config.h should always be included before any
80069         other file.
80070
80071 2003-06-11  Simon Josefsson  <jas@extundo.com>
80072
80073         * modules/sysexits: New file.
80074         * MODULES.html.sh (func_all_modules): Add sysexits.
80075
80076 2003-06-11  Simon Josefsson  <jas@extundo.com>
80077
80078         * lib/sysexit_.h: New file.
80079
80080 2003-06-11  Derek Price  <derek@ximbiot.com>
80081
80082         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
80083         necessary.
80084
80085 2003-06-11  Bruno Haible  <bruno@clisp.org>
80086
80087         * m4/sysexits.m4: New file.
80088
80089 2003-06-10  Simon Josefsson  <jas@extundo.com>
80090
80091         * lib/argp.h: New file, from glibc.
80092         * lib/argp-ba.c: New file, from glibc.
80093         * lib/argp-eexst.c: New file, from glibc.
80094         * lib/argp-fmtstream.c: New file, from glibc.
80095         * lib/argp-fmtstream.h: New file, from glibc.
80096         * lib/argp-fs-xinl.c: New file, from glibc.
80097         * lib/argp-help.c: New file, from glibc.
80098         * lib/argp-namefrob.h: New file, from glibc.
80099         * lib/argp-parse.c: New file, from glibc.
80100         * lib/argp-pv.c: New file, from glibc.
80101         * lib/argp-pvh.c: New file, from glibc.
80102         * lib/argp-xinl.c: New file, from glibc.
80103
80104 2003-06-10  Simon Josefsson  <jas@extundo.com>
80105
80106         * modules/strchrnul: New file.
80107
80108 2003-06-10  Simon Josefsson  <jas@extundo.com>
80109
80110         * modules/argp: New file.
80111
80112 2003-06-10  Simon Josefsson  <jas@extundo.com>
80113
80114         * m4/strchrnul.m4: New file.
80115
80116 2003-06-10  Simon Josefsson  <jas@extundo.com>
80117
80118         * lib/strchrnul.h: New file.
80119         * lib/strchrnul.c: New file.
80120
80121 2003-06-10  Bruno Haible  <bruno@clisp.org>
80122
80123         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
80124
80125 2003-06-07  Karl Berry  <karl@gnu.org>
80126
80127         * config/config.{guess,sub}: update from prep.
80128
80129 2003-06-07  Jim Meyering  <jim@meyering.net>
80130
80131         * modules/strtod: Use $(...) notation, not @...@ for
80132         AC_REPLACE'd variables.
80133         * modules/localcharset: Likewise.
80134
80135 2003-06-07  Jim Meyering  <jim@meyering.net>
80136
80137         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
80138         in place of my name in the copyright comment.
80139         Remove definition and uses of __P.
80140
80141         From coreutils.
80142         * lib/stat.c: Don't declare xmalloc explicitly.
80143         Instead, include "xalloc.h".
80144         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
80145         xrealloc, and xcalloc return values.
80146         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
80147         Improve comment.
80148         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
80149
80150 2003-06-07  Bruno Haible  <bruno@clisp.org>
80151
80152         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
80153         avoid AC_CONFIG_LINKS.
80154         * modules/fnmatch (Makefile.am): Use explicit creation rule for
80155         fnmatch.h, to avoid AC_CONFIG_LINKS.
80156         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
80157
80158 2003-06-07  Bruno Haible  <bruno@clisp.org>
80159
80160         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
80161         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
80162         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
80163         directory.
80164         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
80165         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
80166         directory.
80167
80168 2003-06-06  Jim Meyering  <jim@meyering.net>
80169
80170         Merge from coreutils.
80171         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
80172         Consolidate declarations and initializations of *_base* locals.
80173
80174         Merge from coreutils.
80175         This avoids a core dump on systems without GNU putenv,
80176         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
80177         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
80178         (unsetenv): New static function, from GNU libc.
80179         (rpl_putenv): Use it.
80180
80181         * lib/modechange.c: Remove trailing blanks.
80182
80183         Merge from coreutils.
80184         * lib/fsusage.c: Remove declaration of statfs.
80185         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
80186
80187         * lib/posixtm.c: Include <stdbool.h> unconditionally.
80188
80189 2003-06-06  Jim Meyering  <jim@meyering.net>
80190
80191         * lib/stdbool_.h: Renamed from stdbool.h.in.
80192
80193 2003-06-06  Jim Meyering  <jim@meyering.net>
80194             Bruno Haible  <bruno@clisp.org>
80195
80196         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
80197         Adjust Makefile.am snippet not to redirect directly to target.
80198         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
80199
80200 2003-06-05  Paul Eggert  <eggert@twinsun.com>
80201
80202         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
80203         mismatch, look in future quarters as well as past.  This fixes a
80204         bug when processing fall-backwards gaps immediately after a long
80205         period of daylight-saving time.
80206
80207         * lib/mktime.c: Assume freestanding C89 or better.
80208         (HAVE_LIMITS_H): Remove.  Assume it's 1.
80209         (__P): Remove; not used.
80210         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
80211         (mktime, not_equal_tm, print_tm, check_result,
80212         main): Use prototypes.  Use const * where appropriate.
80213         (main): Fix typo in testing code that uncovered by above changes.
80214         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
80215
80216 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80217
80218         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
80219         locale.h, localeconv.  This merges changes from coreutils.
80220
80221         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
80222         It can be removed after the next Autoconf is released.
80223         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
80224         needed.
80225
80226 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80227
80228         * lib/mktime.c: Fix Debian bug 177940
80229         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
80230         (localtime_offset): Now long int, not time_t, because we want it
80231         to be guaranteed to be signed.  All uses changed.
80232         (__mktime_internal): If overflow would occur when adding offset,
80233         don't add it.
80234
80235         Merge 'human' changes from coreutils.  Rewrite to support
80236         locale-specific notations like thousands separators.
80237         * lib/human.c: Simplify authorship notice.
80238         Include human.h immediately after config.h.
80239         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
80240         <limits.h>: Do not include, since human.h does.
80241         (SIZE_MAX, UINTMAX_MAX): New macros.
80242         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
80243         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
80244         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
80245         (power_letter): Renamed from suffixes.
80246         (generate_suffix_backwards): Remove.
80247         (adjust_value): Now takes int style (because of human.h changes)
80248         and long double value (for greater precision on some platforms).
80249         (group_number): New function.
80250         (human_readable): Use it.  Use integer options, not enum.
80251         Put the options before the sizes in the arg list.
80252         Support all the new options.
80253         The old human_readable function has been removed;
80254         use inttostr.h instead.
80255         (human_readable, default_block_size, humblock):
80256         Use uintmax_t, not int, for block sizes.
80257         (human_readable_inexact, block_size_types): Remove.
80258         (block_size_opts): New constant.
80259         (human_options): Renamed from human_block_size, with new signature
80260         that allows block sizes up to UINTMAX_MAX.  All callers changed.
80261         * lib/human.h: Add copyright and authorship notice.
80262         Include <limits.h> and <stdbool.h> unconditionally.
80263         (PARAMS): Remove.  All uses removed.
80264         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
80265         (enum human_inexact_style): Remove tag; now a nameless enum.
80266         (human_floor, human_ceiling, human_round_to_even): Now have
80267         values 2, 0, 1 rather than -1, 1, 0.
80268         (human_group_digits, human_suppress_point_zero, human_autoscale,
80269         human_base_1024, human_SI, human_B): New constants.
80270         (human_readable_inexact, human_block_size): Remove.
80271         (human_readable): Size args are now uintmax_t, not int.
80272         (human_options): New decl.
80273
80274         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
80275         unnecessary now that we assume C89 or better.  This change
80276         imported from coreutils.
80277
80278         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
80279         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
80280         in the 2003-05-30 sync from glibc.
80281
80282         .h files should stand alone, but we shouldn't include <sys/types.h>
80283         if we can get away with just <stddef.h>.
80284
80285         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
80286         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
80287         rather than <sys/types.h>, as we merely need size_t.
80288         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
80289         to get size_t.
80290         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
80291         Include <stdio.h>, to get FILE.
80292         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
80293         memcasecmp.h has included <stddef.h> and all we need is size_t.
80294         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
80295         our interface, instead of including <sys/types.h>
80296
80297 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80298
80299         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
80300         now, as glibc mktime is buggy on non-glibc systems.
80301
80302 2003-06-03  Karl Berry  <karl@gnu.org>
80303
80304         * config/config.sub: update from prep.
80305
80306 2003-06-02  Paul Eggert  <eggert@twinsun.com>
80307
80308         [from coreutils]
80309         Fix some minor time-related bugs with POSIX time arguments.
80310         Some valid time stamps were being rejected (notably -1, and
80311         time stamps before 1900 on 64-bit hosts).  And some invalid
80312         time stamps were being accepted, e.g. September 31.
80313
80314         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
80315         that we can return (time_t) -1 successfully.
80316         * lib/posixtm.c: Likewise.
80317         [HAVE_STDBOOL_H]: Include <stdbool.h>.
80318         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
80319         (t): Remove static var.
80320         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
80321         of static var.  All uses changed.
80322         (year): Do not reject years before 1900; they can occur with
80323         64-bit time_t.
80324         (posix_time_parse): Do not check for out-of-range components;
80325         that is now the caller's responsibility, since our checks were
80326         only approximations.
80327         (posixtime): Use mktime to check for out-of-range components,
80328         since it knows them exactly.
80329         If mktime returns (time_t) -1, check whether an error actually occurred
80330         by invoking localtime on -1.
80331         (main) [TEST_POSIXTIME]: Check for input data errors, and report
80332         posixtime failures better.
80333         Improve the test data (in comments only).
80334
80335 2003-06-02  Karl Berry  <karl@gnu.org>
80336
80337         * config/mkinstalldirs (version): new variable.
80338         (--version): new option.
80339         (usage): improve message.
80340
80341 2003-05-30  Karl Berry  <karl@gnu.org>
80342
80343         * lib/mktime.c: update from libc.
80344
80345 2003-05-30  Bruno Haible  <bruno@clisp.org>
80346
80347         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
80348         * config/config.rpath: Upgrade to gettext-0.12.1.
80349
80350 2003-05-30  Bruno Haible  <bruno@clisp.org>
80351
80352         * m4/gettext.m4: Upgrade to gettext-0.12.1.
80353         * m4/nls.m4: New file, from gettext-0.12.1.
80354         * m4/po.m4: New file, from gettext-0.12.1.
80355         * m4/progtest.m4: Upgrade to gettext-0.12.1.
80356
80357 2003-05-30  Bruno Haible  <bruno@clisp.org>
80358
80359         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
80360         * lib/localcharset.h: Likewise.
80361         * lib/localcharset.c: Likewise.
80362
80363 2003-05-29  Karl Berry  <karl@gnu.org>
80364
80365         * config/config.rpath: update from gettext.
80366
80367 2003-05-28  Paul Eggert  <eggert@twinsun.com>
80368
80369         Assume the headers required for C89 freestanding compilers.
80370         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
80371         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
80372         * m4/human.m4 (gl_HUMAN): Likewise.
80373         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
80374         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
80375         * m4/userspec.m4 (gl_USERSPEC): Likewise.
80376         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
80377         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80378         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
80379
80380 2003-05-28  Paul Eggert  <eggert@twinsun.com>
80381
80382         Assume the headers required for C89 freestanding compilers.
80383         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
80384         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
80385         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
80386         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
80387         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
80388         define, since <limits.h> is guaranteed to do that.
80389         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
80390         * lib/exclude.c: Include <stdbool.h> unconditionally.
80391         * lib/tempname.c: Include <stddef.h> unconditionally.
80392         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
80393         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
80394         <stddef.h> does that.
80395         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
80396         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
80397         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
80398         needed.
80399         * lib/xstrtol.c: Likewise.
80400         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
80401         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
80402
80403         * lib/addext.c (addext): Use assignment rather than cast, to avoid
80404         warnings on some platforms.
80405
80406         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
80407         arbitrarily.
80408
80409 2003-05-26  Jim Meyering  <jim@meyering.net>
80410
80411         Merge in a change from coreutils:
80412         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
80413         that is guaranteed to be `no'.  Use `no_such_member' to indicate
80414         that condition, rather than `-1' which is slightly misleading.
80415         Change the name of the cache variable to have the gl_ prefix.
80416         Prompted by a patch from Richard Dawe for DJGPP.
80417
80418 2003-05-24  Karl Berry  <karl@gnu.org>
80419
80420         * config/config.guess: update from prep.
80421
80422 2003-05-22  Karl Berry  <karl@gnu.org>
80423
80424         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
80425
80426 2003-05-20  Karl Berry  <karl@gnu.org>
80427
80428         * config/config.guess: update from prep.
80429
80430 2003-05-18  Karl Berry  <karl@gnu.org>
80431
80432         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
80433         might actually be set by the user.
80434
80435         * config/depcomp, install-sh, mdate-sh: update from automake.
80436
80437 2003-05-17  Bruno Haible  <bruno@clisp.org>
80438
80439         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
80440         invalid expansion for AC_EGREP_CPP.
80441         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
80442         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
80443         Suggested by Akim Demaille <akim@epita.fr> in
80444         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
80445
80446 2003-05-12  Jim Meyering  <jim@meyering.net>
80447
80448         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
80449         the space-padded-by-default conversion specifiers, %e, %k, %l.
80450
80451 2003-05-12  Bruno Haible  <bruno@clisp.org>
80452
80453         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
80454         the string is longer than 4 KB.
80455
80456 2003-05-11  Karl Berry  <karl@gnu.org>
80457
80458         * config/config.{guess,sub}: update from prep.
80459
80460 2003-05-09  Bruno Haible  <bruno@clisp.org>
80461
80462         * modules/error: Add m4/strerror_r.m4 to file list.
80463
80464 2003-05-03  Bruno Haible  <bruno@clisp.org>
80465
80466         Upgrade to Unicode-4.0.
80467         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
80468         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
80469         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
80470         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
80471         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
80472         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
80473         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
80474         Change width of U+E0100..U+E01EF from 1 to 0.
80475
80476 2003-04-25  Jim Meyering  <jim@meyering.net>
80477
80478         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
80479         of type size_t, not int.
80480
80481 2003-04-25  Bruno Haible  <bruno@clisp.org>
80482
80483         * lib/copy-file.c: Include <stddef.h>, for size_t.
80484
80485 2003-04-21  Paul Eggert  <eggert@twinsun.com>
80486
80487         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
80488         code which expansion is under static control.  Patch imported from
80489         Akim Demaille's patch to Bison; see
80490         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
80491
80492 2003-04-14  Bruno Haible  <bruno@clisp.org>
80493
80494         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
80495
80496 2003-04-11  Jim Meyering  <jim@meyering.net>
80497
80498         Merge changes from Coreutils.
80499
80500         2003-03-22  Jim Meyering  <jim@meyering.net>
80501
80502         * lib/strftime.c (widen): Cast alloca return value to proper type.
80503
80504         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
80505
80506         From GNU libc.
80507         * lib/strftime.c (my_strftime): Handle very large width
80508         specifications for numeric values correctly.  Improve checks for
80509         overflow.
80510
80511         2003-01-19  Jim Meyering  <jim@meyering.net>
80512
80513         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
80514         definitions.
80515         (nl_get_alt_digit) [! defined my_strftime]: Define.
80516         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
80517         _nl_get_alt_digit and _nl_get_walt_digit.
80518
80519         * lib/strftime.c (my_strftime): Merge in locale-related changes from
80520         libc. These changes have no effect outside of _LIBC.
80521
80522 2003-04-10  Bruno Haible  <bruno@clisp.org>
80523
80524         * modules/findprog: New file.
80525         * MODULES.html.sh (func_all_modules): Add it.
80526
80527 2003-04-10  Bruno Haible  <bruno@clisp.org>
80528
80529         * m4/findprog.m4: New file.
80530         * m4/eaccess.m4: New file.
80531
80532 2003-04-10  Bruno Haible  <bruno@clisp.org>
80533
80534         * lib/findprog.h: New file, from GNU gettext.
80535         * lib/findprog.c: New file, from GNU gettext.
80536
80537 2003-04-05  Jim Meyering  <jim@meyering.net>
80538
80539         Merge changes from Coreutils.
80540
80541         * lib/exclude.h (PARAMS): Remove definition and uses.
80542         * lib/exclude.c: Remove uses of `PARAMS'.
80543
80544         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
80545         Add test-cases for DOS filenames. Declare program_name.
80546         (main): Set up program_name.  Patch by Rich Dawe.
80547
80548         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
80549         error from mntctl.
80550         Use mntctl's return value to drive the entry-processing loop, since
80551         we can't rely on the value of the vmt_length member in the last
80552         entry.  On some systems doing so could result in exhausting
80553         virtual memory.  Based in part on a patch from Mike Jetzer.
80554
80555 2003-04-04  Bruno Haible  <bruno@clisp.org>
80556
80557         * modules/linebreak: New file.
80558         * MODULES.html.sh (func_all_modules): Add it.
80559
80560 2003-04-04  Bruno Haible  <bruno@clisp.org>
80561
80562         * m4/linebreak.m4: New file.
80563
80564 2003-04-04  Bruno Haible  <bruno@clisp.org>
80565
80566         * lib/linebreak.h: New file, from GNU gettext.
80567         * lib/linebreak.c: New file, from GNU gettext with slight
80568         modifications.
80569         * lib/lbrkprop.h: New file, from GNU gettext.
80570
80571 2003-04-03  Bruno Haible  <bruno@clisp.org>
80572
80573         * modules/utf8-ucs4: New file.
80574         * modules/utf16-ucs4: New file.
80575         * modules/ucs4-utf8: New file.
80576         * modules/ucs4-utf16: New file.
80577         * MODULES.html.sh (func_all_modules): Add them.
80578
80579 2003-04-03  Bruno Haible  <bruno@clisp.org>
80580
80581         * m4/utf-ucs4.m4: New file.
80582         * m4/ucs4-utf.m4: New file.
80583
80584 2003-04-03  Bruno Haible  <bruno@clisp.org>
80585
80586         * lib/utf8-ucs4.h: New file, from GNU gettext.
80587         * lib/utf16-ucs4.h: New file, from GNU gettext.
80588         * lib/ucs4-utf8.h: New file, from GNU gettext.
80589         * lib/ucs4-utf16.h: New file, from GNU gettext.
80590
80591 2003-04-02  Bruno Haible  <bruno@clisp.org>
80592
80593         * modules/binary-io: New file.
80594         * MODULES.html.sh (func_all_modules): Add it.
80595
80596 2003-04-02  Bruno Haible  <bruno@clisp.org>
80597
80598         * lib/binary-io.h: New file, from GNU gettext.
80599
80600 2003-04-01  Bruno Haible  <bruno@clisp.org>
80601
80602         * modules/pathname: New file.
80603         * MODULES.html.sh (func_all_modules): Add it.
80604
80605 2003-04-01  Bruno Haible  <bruno@clisp.org>
80606
80607         * lib/pathname.h: New file, from GNU gettext.
80608         * lib/concatpath.c: New file, from GNU gettext.
80609
80610 2003-03-30  Bruno Haible  <bruno@clisp.org>
80611
80612         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
80613
80614 2003-03-30  Bruno Haible  <bruno@clisp.org>
80615
80616         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
80617         function chown() doesn't exist.
80618
80619 2003-03-28  Bruno Haible  <bruno@clisp.org>
80620
80621         * modules/copy-file: New file.
80622         * MODULES.html.sh (func_all_modules): Add it.
80623
80624 2003-03-28  Bruno Haible  <bruno@clisp.org>
80625
80626         * m4/copy-file.m4: New file.
80627
80628 2003-03-28  Bruno Haible  <bruno@clisp.org>
80629
80630         * lib/copy-file.h: New file, from GNU gettext.
80631         * lib/copy-file.c: New file, from GNU gettext.
80632
80633 2003-03-18  Jim Meyering  <jim@meyering.net>
80634
80635         * lib/quote.c (quote_n): Fix typo in comment.
80636
80637 2003-03-18  Bruno Haible  <bruno@clisp.org>
80638
80639         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
80640         checking.
80641         * m4/onceonly_2_57.m4: Likewise.
80642
80643 2003-03-17  Bruno Haible  <bruno@clisp.org>
80644
80645         * m4/onceonly.m4: Require autoconf 2.54 or newer.
80646         (m4_quote): Remove macro.
80647         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
80648
80649 2003-03-14  Jim Meyering  <jim@meyering.net>
80650
80651         Merge changes from Coreutils.
80652         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
80653         to be const, in order to avoid warnings.
80654         (obstack_room): Likewise.
80655         (obstack_empty_p): Likewise.
80656
80657 2003-03-14  Bruno Haible  <bruno@clisp.org>
80658
80659         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
80660         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
80661
80662 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80663
80664         Merge changes from Bison.
80665         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
80666         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
80667         when compiling Bison 1.875's `bitset bset = obstack_alloc
80668         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
80669         * lib/hash.c: Include <stdbool.h> unconditionally.
80670
80671 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80672
80673         * m4/onceonly.m4 (m4_quote): New macro.
80674         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
80675         Quote AC_FOREACH variable-expansions properly.
80676
80677 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80678
80679         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
80680
80681 2003-03-09  Paul Eggert  <eggert@twinsun.com>
80682
80683         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
80684         Reported by Bruce Becker; see:
80685         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
80686
80687 2003-03-03  Paul Eggert  <eggert@twinsun.com>
80688             Bruno Haible  <bruno@clisp.org>
80689
80690         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
80691         Reported by John Hughes, see
80692         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
80693
80694 2003-02-20  Bruno Haible  <bruno@clisp.org>
80695
80696         * MODULES.html.sh (func_all_modules): Add poll.
80697
80698 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80699
80700         * modules/poll: New file.
80701
80702 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80703
80704         * lib/poll_.h: New file.
80705         * lib/poll.c: New file.
80706
80707 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80708
80709         * m4/poll.m4: New file.
80710
80711 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80712
80713         * modules/mathl: New file.
80714
80715 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80716
80717         * lib/mathl.h: New file.
80718         * lib/acosl.c: New file.
80719         * lib/asinl.c: New file.
80720         * lib/atanl.c: New file.
80721         * lib/ceill.c: New file.
80722         * lib/cosl.c: New file.
80723         * lib/expl.c: New file.
80724         * lib/floorl.c: New file.
80725         * lib/frexpl.c: New file.
80726         * lib/ldexpl.c: New file.
80727         * lib/logl.c: New file.
80728         * lib/sincosl.c: New file.
80729         * lib/sinl.c: New file.
80730         * lib/sqrtl.c: New file.
80731         * lib/tanl.c: New file.
80732         * lib/trigl.c: New file.
80733         * lib/trigl.h: New file.
80734
80735 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80736
80737         * m4/mathl.m4: New file.
80738
80739 2003-02-18  Bruno Haible  <bruno@clisp.org>
80740
80741         * MODULES.html.sh (func_all_modules): Add mathl.
80742
80743 2003-02-17  Bruno Haible  <bruno@clisp.org>
80744
80745         * modules/mkdtemp: New module.
80746         * MODULES.html.sh (func_all_modules): Add it.
80747
80748 2003-02-17  Bruno Haible  <bruno@clisp.org>
80749
80750         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
80751
80752 2003-02-17  Bruno Haible  <bruno@clisp.org>
80753
80754         * lib/mkdtemp.h: New file, from GNU gettext.
80755         * lib/mkdtemp.c: New file, from GNU gettext.
80756
80757 2003-02-02  Jim Meyering  <jim@meyering.net>
80758
80759         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
80760         e.g. glibc-2.2.93.
80761
80762 2003-01-31  Bruno Haible  <bruno@clisp.org>
80763
80764         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
80765         'rpl_rename'.
80766         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
80767         'rpl_strnlen'.
80768         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
80769         'rpl_strtod'.
80770         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
80771         'rpl_utime'.
80772
80773 2003-01-31  Bruno Haible  <bruno@clisp.org>
80774
80775         * lib/rename.c: #undef rename before defining rpl_rename.
80776         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
80777
80778 2003-01-30  Bruno Haible  <bruno@clisp.org>
80779
80780         * modules/vasnprintf, modules/vasprintf: New modules.
80781         * MODULES.html.sh (func_all_modules): Add them.
80782
80783 2003-01-30  Bruno Haible  <bruno@clisp.org>
80784
80785         * m4/signed.m4: New file, from GNU gettext.
80786         * m4/longdouble.m4: New file, from GNU gettext.
80787         * m4/wchar_t.m4: New file, from GNU gettext.
80788         * m4/wint_t.m4: New file, from GNU gettext.
80789         * m4/vasnprintf.m4: New file.
80790         * m4/vasprintf.m4: New file.
80791
80792 2003-01-30  Bruno Haible  <bruno@clisp.org>
80793
80794         * lib/printf-args.h: New file, from GNU gettext.
80795         * lib/printf-args.c: New file, from GNU gettext.
80796         * lib/printf-parse.h: New file, from GNU gettext.
80797         * lib/printf-parse.c: New file, from GNU gettext.
80798         * lib/vasnprintf.h: New file, from GNU gettext.
80799         * lib/vasnprintf.c: New file, from GNU gettext.
80800         * lib/asnprintf.c: New file, from GNU gettext.
80801         * lib/vasprintf.h: New file, from GNU gettext with modifications.
80802         * lib/vasprintf.c: New file, from GNU gettext.
80803         * lib/asprintf.c: New file, from GNU gettext.
80804
80805 2003-01-29  Bruno Haible  <bruno@clisp.org>
80806
80807         * modules/stpncpy: New module.
80808         * MODULES.html.sh (func_all_modules): Add it.
80809
80810 2003-01-29  Bruno Haible  <bruno@clisp.org>
80811
80812         * m4/stpncpy.m4: New file.
80813
80814 2003-01-29  Bruno Haible  <bruno@clisp.org>
80815
80816         * lib/stpncpy.h: New file, from GNU gettext with modifications.
80817         * lib/stpncpy.c: New file, from GNU gettext with modifications.
80818
80819 2003-01-28  Bruno Haible  <bruno@clisp.org>
80820
80821         * modules/c-ctype: New module.
80822         * MODULES.html.sh (func_all_modules): Add it.
80823
80824 2003-01-28  Bruno Haible  <bruno@clisp.org>
80825
80826         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
80827         Paul Eggert.
80828         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
80829         Paul Eggert.
80830
80831 2003-01-27  Bruno Haible  <bruno@clisp.org>
80832
80833         * modules/xsetenv: New module.
80834         * MODULES.html.sh (func_all_modules): Add it.
80835
80836 2003-01-27  Bruno Haible  <bruno@clisp.org>
80837
80838         * lib/xsetenv.h: New file, from GNU gettext.
80839         * lib/xsetenv.c: New file, from GNU gettext.
80840
80841 2003-01-23  Jim Meyering  <jim@meyering.net>
80842
80843         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
80844         from working on systems without dirfd (at least Irix and OSF1/Tru64).
80845
80846 2003-01-23  Bruno Haible  <bruno@clisp.org>
80847
80848         * modules/minmax: New module.
80849         * MODULES.html.sh (func_all_modules): Add it.
80850
80851 2003-01-23  Bruno Haible  <bruno@clisp.org>
80852
80853         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
80854         Eggert.
80855
80856 2003-01-22  Bruno Haible  <bruno@clisp.org>
80857
80858         * modules/exit: New module.
80859         * MODULES.html.sh (func_all_modules): Add it.
80860
80861 2003-01-22  Bruno Haible  <bruno@clisp.org>
80862
80863         * lib/exit.h: New file, from GNU gettext.
80864
80865 2003-01-19  Bruno Haible  <bruno@clisp.org>
80866
80867         * gnulib-tool: Recognize option --extract-maintainer.
80868         (func_get_maintainer): New function.
80869         * modules/*: Add Maintainer entry.
80870
80871 2003-01-16  Jim Meyering  <jim@meyering.net>
80872
80873         * m4/regex.m4: The `regex' struct is both input and output.
80874         Initialize it before each use.  Patch by Tim Waugh.
80875
80876 2003-01-16  Bruno Haible  <bruno@clisp.org>
80877
80878         * MODULES.html.sh: Add a table of contents. Add the module name as
80879         leftmost column. Add hyperlinks.
80880
80881 2003-01-15  Bruno Haible  <bruno@clisp.org>
80882
80883         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
80884
80885 2003-01-15  Bruno Haible  <bruno@clisp.org>
80886
80887         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
80888         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
80889         suffix.
80890
80891 2003-01-15  Bruno Haible  <bruno@clisp.org>
80892
80893         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
80894
80895 2003-01-15  Bruno Haible  <bruno@clisp.org>
80896
80897         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
80898         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
80899
80900 2003-01-14  Jim Meyering  <jim@meyering.net>
80901
80902         * lib/same.c (same_name): Tweak a comment.
80903
80904 2003-01-14  Bruno Haible  <bruno@clisp.org>
80905
80906         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
80907         when a string comparison is sufficient.
80908
80909 2003-01-14  Bruno Haible  <bruno@clisp.org>
80910
80911         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
80912         'unsigned int'.
80913
80914 2003-01-14  Bruno Haible  <bruno@clisp.org>
80915
80916         * lib/hash-pjw.c: Add comment about low quality of this function.
80917
80918 2003-01-13  Bruno Haible  <bruno@clisp.org>
80919
80920         * modules/stpcpy: Distribute lib/stpcpy.h.
80921         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
80922
80923 2003-01-13  Bruno Haible  <bruno@clisp.org>
80924
80925         * modules/*: Add a description.
80926         * modules/strpbrk: Fix Makefile.am snippet.
80927         * modules/strtoimax: Fix dependencies.
80928         * modules/strtoumax: Likewise.
80929
80930 2003-01-13  Bruno Haible  <bruno@clisp.org>
80931
80932         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
80933         * modules/alloca (Makefile.am): All object files depend on alloca.h.
80934         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
80935
80936 2003-01-13  Bruno Haible  <bruno@clisp.org>
80937
80938         * gnulib-tool (func_create_testdir): Store config/* files in the main
80939         directory.
80940         * config.rpath: Move to ...
80941         * config/config.rpath: ... here.
80942         * modules/gettext: Contains config/config.rpath, not config.rpath.
80943         * modules/iconv: Likewise.
80944
80945 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80946
80947         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80948         to avoid collisions with libcurses and libreadline.
80949
80950         * m4/getstr.m4: Remove.
80951         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
80952
80953 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80954
80955         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80956         to avoid collisions with libcurses and libreadline.
80957
80958         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
80959         * lib/getstr.h, getstr.c: Remove.
80960         * lib/getline.c: Include "getline.h", to check interface.
80961         Move body of old getstr.c here: this defines MIN_CHUNK and
80962         declares getdelim2, which is renamed from getstr.
80963         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
80964
80965         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
80966         All uses changed.
80967         * lib/linebuffer.h: Likewise.
80968         (readline): Remove backward-compatibility macro.
80969
80970 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80971
80972         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80973         to avoid collisions with libcurses and libreadline.
80974         * getstr: Remove.
80975         * MODULES.html.sh: Remove getstr.
80976         * modules/getline: Depend on unlocked-io, not getstr.
80977
80978 2003-01-12  Jim Meyering  <jim@meyering.net>
80979
80980         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
80981
80982 2003-01-10  Bruno Haible  <bruno@clisp.org>
80983
80984         * modules/alloca: Change Makefile.am requirements. Simplify Include
80985         requirements. Add lib/alloca_.h to file list.
80986
80987 2003-01-10  Bruno Haible  <bruno@clisp.org>
80988
80989         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
80990
80991 2003-01-10  Bruno Haible  <bruno@clisp.org>
80992
80993         * lib/alloca_.h: New file.
80994         * lib/getdate.y: Unconditionally include alloca.h.
80995         * lib/makepath.c: Likewise.
80996         * lib/setenv.c: Likewise.
80997         * lib/userspec.c: Likewise.
80998
80999 2003-01-09  Karl Berry  <karl@gnu.org>
81000
81001         * MODULES.html.sh: include `dirname $0` in PATH, to find
81002         gnulib-tool.
81003
81004 2003-01-09  Bruno Haible  <bruno@clisp.org>
81005
81006         * modules/stdbool: Change configure.ac, Makefile.am requirements.
81007         Simplify Include requirements. Add lib/stdbool.h.in to file list.
81008
81009 2003-01-09  Bruno Haible  <bruno@clisp.org>
81010
81011         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
81012
81013 2003-01-09  Bruno Haible  <bruno@clisp.org>
81014
81015         * lib/stdbool.h.in: New file.
81016
81017 2003-01-09  Bruno Haible  <bruno@clisp.org>
81018
81019         * gnulib-tool (func_all_modules): Ignore files ending in ~.
81020         * MODULES.html.sh: Likewise.
81021
81022 2003-01-08  Jim Meyering  <jim@meyering.net>
81023
81024         * lib/full-write.c: Undefine and define-away `const' after inclusion
81025         of errno.h, not before.  Suggestion from Bruno Haible.
81026
81027 2003-01-08  Bruno Haible  <bruno@clisp.org>
81028
81029         * modules/full-read: Depend on full-write.
81030
81031 2003-01-08  Bruno Haible  <bruno@clisp.org>
81032
81033         * lib/safe-read.c: Include specification header first, to ensure its
81034         selfcontainedness.
81035         * lib/full-write.c: Likewise.
81036
81037 2003-01-07  Jim Meyering  <jim@meyering.net>
81038
81039         * lib/full-write.c: Rework so that it may serve to define full_read,
81040         too.
81041         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
81042
81043 2003-01-07  Bruno Haible  <bruno@clisp.org>
81044
81045         * lib/strtoimax.c: Include <stdint.h> as an alternative to
81046         <inttypes.h>.
81047         * lib/xstrtol.h: Likewise.
81048         * lib/xstrtoimax.c: Likewise.
81049         * lib/xstrtoumax.c: Likewise.
81050         * lib/human.h: Likewise.
81051
81052         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
81053         on systems that have <inttypes.h> but not <stdint.h>.
81054
81055 2003-01-07  Bruno Haible  <bruno@clisp.org>
81056
81057         * MODULES.html.sh: Add copyright notice.
81058         (missed_files): Omit CVS directory entries.
81059         (func_module): Make it work with sed-3.02.
81060         * MODULES.txt: Remove file.
81061
81062 2003-01-06  Jim Meyering  <jim@meyering.net>
81063
81064         * lib/version-etc.c: Update year in translatable copyright string.
81065
81066 2003-01-03  Karl Berry  <karl@gnu.org>
81067
81068         * config/config.{guess,sub}: update from prep.
81069
81070 2003-01-02  Karl Berry  <karl@gnu.org>
81071
81072         * doc/COPYING.DOC: belatedly updated to 1.2.
81073
81074 2003-01-01  Karl Berry  <karl@gnu.org>
81075
81076         * gnulib-tool (func_verify_module): report module name $module in
81077         error message, not $1.
81078         * gnulib-tool (create-testdir): don't complain if destdir couldn't
81079         be created, only if it doesn't exist.
81080         * gnulib-tool (last_checkin_date): don't expand the $Date here.
81081
81082 2002-12-31  Paul Eggert  <eggert@twinsun.com>
81083
81084         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
81085
81086 2002-12-31  Paul Eggert  <eggert@twinsun.com>
81087
81088         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
81089         memcmp if strcoll doesn't work.
81090
81091 2002-12-31  Bruno Haible  <bruno@clisp.org>
81092
81093         * lib/utime.c (utime_null): No need to call ftruncate if the file was
81094         nonempty.
81095
81096 2002-12-31  Bruno Haible  <bruno@clisp.org>
81097
81098         * lib/memcoll.c (STRCOLL): New macro.
81099         (memcoll): Use it.
81100
81101 2002-12-31  Bruno Haible  <bruno@clisp.org>
81102
81103         * lib/localcharset.h: New file.
81104         * lib/localcharset.c: Include it.
81105         * lib/unicodeio.c: Likewise.
81106
81107 2002-12-31  Bruno Haible  <bruno@clisp.org>
81108
81109         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
81110         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
81111
81112 2002-12-31  Bruno Haible  <bruno@clisp.org>
81113
81114         * lib/getline.h: Include <stddef.h>, for size_t.
81115
81116         * lib/unicodeio.h: Include <stddef.h>, for size_t.
81117         * lib/unicodeio.c: Don't include <stddef.h>.
81118
81119 2002-12-31  Bruno Haible  <bruno@clisp.org>
81120
81121         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
81122         HAVE_TM_ZONE.
81123
81124 2002-12-24  Karl Berry  <karl@gnu.org>
81125
81126         * config/config.guess: update from prep.
81127
81128 2002-12-24  Bruno Haible  <bruno@clisp.org>
81129
81130         General infrasructure.
81131         * m4/README: Rewritten.
81132         * m4/onceonly.m4: New file.
81133         * m4/onceonly_2_57.m4: New file.
81134
81135         Module atexit.
81136         * m4/atexit.m4: New file.
81137
81138         Module strtod.
81139         * m4/strtod.m4: New file.
81140
81141         Module strtol.
81142         * m4/strtol.m4: New file.
81143
81144         Module strtoul.
81145         * m4/strtoul.m4: New file.
81146
81147         Module memchr.
81148         * m4/memchr.m4: New file.
81149
81150         Module memcmp.
81151         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
81152         (jm_FUNC_MEMCMP): Invoke it.
81153
81154         Module memcpy.
81155         * m4/memcpy.m4: New file.
81156
81157         Module memmove.
81158         * m4/memmove.m4: New file.
81159
81160         Module memset.
81161         * m4/memset.m4: New file.
81162
81163         Module strcspn.
81164         * m4/strcspn.m4: New file.
81165
81166         Module strpbrk.
81167         * m4/strpbrk.m4: New file.
81168
81169         Module strstr.
81170         * m4/strstr.m4: New file.
81171
81172         Module strerror.
81173         * m4/strerror.m4: New file.
81174
81175         Module mktime.
81176         * m4/mktime.m4: Renamed from jm-mktime.m4.
81177         (gl_PREREQ_MKTIME): New macro.
81178         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
81179
81180         Module malloc.
81181         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
81182         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
81183         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
81184
81185         Module realloc.
81186         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
81187         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
81188         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
81189
81190         Module strftime.
81191         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
81192         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
81193         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
81194         gl_TM_GMTOFF.
81195         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
81196
81197         Module xalloc.
81198         * m4/xalloc.m4: New file.
81199
81200         Module alloca.
81201         * m4/alloca.m4: New file.
81202
81203         Module putenv.
81204         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
81205         (jm_FUNC_PUTENV): Invoke it.
81206
81207         Module setenv.
81208         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
81209         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
81210         when invoked twice.
81211         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
81212         gt_FUNC_SETENV.
81213
81214         Module memrchr.
81215         * m4/memrchr.m4: New file.
81216
81217         Module stpcpy.
81218         * m4/stpcpy.m4: New file.
81219
81220         Module strcase.
81221         * m4/strcase.m4: New file.
81222
81223         Module strdup.
81224         * m4/strdup.m4: New file.
81225
81226         Module strnlen.
81227         * m4/strnlen.m4: New file.
81228
81229         Module strndup.
81230         * m4/strndup.m4: New file.
81231
81232         Module xstrtod.
81233         * m4/xstrtod.m4: New file.
81234
81235         Module xstrtol.
81236         * m4/xstrtol.m4: New file.
81237
81238         Module getdate.
81239         * m4/getdate.m4: New file.
81240
81241         Module unlocked-io.
81242         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
81243         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
81244         * m4/jm-glibc-io.m4n: Remove file.
81245
81246         Module long-options.
81247         * m4/long-options.m4: New file.
81248
81249         Module md5.
81250         * m4/md5.m4: New file.
81251
81252         Module sha.
81253         * m4/sha.m4: New file.
81254
81255         Module getstr.
81256         * m4/getstr.m4: New file.
81257
81258         Module getline.
81259         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
81260         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
81261         <sys/types.h>, for size_t. Use the function name gnu_getline, not
81262         simply getline. Infoke gl_PREREQ_GETLINE.
81263
81264         Module obstack.
81265         * m4/obstack.m4: New file.
81266
81267         Module hash.
81268         * m4/hash.m4: New file.
81269
81270         Module readtokens.
81271         * m4/readtokens.m4: New file.
81272
81273         Module strverscmp.
81274         * m4/strverscmp.m4: New file.
81275
81276         Module stdbool.
81277         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
81278         OSF/1.
81279
81280         Module strtoll.
81281         * m4/strtoll.m4: New file.
81282
81283         Module strtoull.
81284         * m4/strtoull.m4: New file.
81285
81286         Module strtoimax.
81287         * m4/strtoimax.m4: New file.
81288
81289         Module strtoumax.
81290         * m4/strtoumax.m4: New file.
81291
81292         Module xstrtoimax.
81293         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
81294         jm_AC_PREREQ_XSTRTOIMAX.
81295         Moved the strtol prerequisites to strtol.m4.
81296         Moved the strtoll prerequisites to strtoll.m4.
81297         Moved the strtoimax prerequisites to strtoimax.m4.
81298
81299         Module xstrtoumax.
81300         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
81301         jm_AC_PREREQ_XSTRTOUMAX.
81302         Moved the strtoul prerequisites to strtoul.m4.
81303         Moved the strtoull prerequisites to strtoull.m4.
81304         Moved the strtoumax prerequisites to strtoumax.m4.
81305
81306         Module chown.
81307         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
81308         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
81309
81310         Module dup2.
81311         * m4/dup2.m4: New file.
81312
81313         Module ftruncate.
81314         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
81315         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
81316
81317         Module getgroups.
81318         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
81319         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
81320
81321         Module gettimeofday.
81322         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
81323         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
81324         gl_PREREQ_GETTIMEOFDAY.
81325
81326         Module mkdir.
81327         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
81328         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
81329
81330         Module mkstemp.
81331         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
81332         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
81333         jm_AC_TYPE_UINTMAX_T.
81334         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
81335
81336         Module stat.
81337         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
81338         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
81339
81340         Module lstat.
81341         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
81342         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
81343
81344         Module timespec.
81345         * m4/timespec.m4 (gl_TIMESPEC): New macro.
81346         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
81347         * m4/st_mtim.m4: Indentation.
81348
81349         Module nanosleep.
81350         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
81351         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
81352         gl_PREREQ_NANOSLEEP.
81353
81354         Module regex.
81355         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
81356         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
81357         (gl_REGEX): New macro.
81358
81359         Module rename.
81360         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
81361         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
81362
81363         Module rmdir.
81364         * m4/rmdir.m4: New file.
81365
81366         Module utime.
81367         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
81368         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
81369         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
81370
81371         Module dirname.
81372         * m4/dirname.m4: New file.
81373
81374         Module getopt.
81375         * m4/getopt.m4: New file.
81376
81377         Module unistd-safer.
81378         * m4/unistd-safer.m4: New file.
81379
81380         Module fnmatch.
81381         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
81382         declaration.
81383         (gl_PREREQ_FNMATCH_EXTRA): New macro.
81384         (gl_FUNC_FNMATCH_POSIX): New macro.
81385         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
81386         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
81387         simply fnmatch.
81388
81389         Module exclude.
81390         * m4/exclude.m4: New file.
81391
81392         Module human.
81393         * m4/human.m4: New file.
81394
81395         Module acl.
81396         * m4/acl.m4: Nop.
81397
81398         Module backupfile.
81399         * m4/backupfile.m4: New file.
81400         * m4/d-ino.m4: Indentation.
81401
81402         Module fsusage.
81403         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
81404         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
81405         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
81406
81407         Module dirfd.
81408         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
81409         requirements.
81410
81411         Module euidaccess.
81412         * m4/euidaccess.m4: New file.
81413
81414         Module file-type.
81415         * m4/file-type.m4: New file.
81416
81417         Module fileblocks.
81418         * m4/fileblocks.m4: New file.
81419
81420         Module filemode.
81421         * m4/filemode.m4: New file.
81422
81423         Module isdir.
81424         * m4/isdir.m4: New file.
81425
81426         Module lchown.
81427         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
81428         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
81429
81430         Module makepath.
81431         * m4/makepath.m4: New file.
81432
81433         Module modechange.
81434         * m4/modechange.m4: New file.
81435
81436         Module mountlist.
81437         * m4/mountlist.m4: New file.
81438         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
81439         Indentation.
81440
81441         Module path-concat.
81442         * m4/path-concat.m4: New file.
81443
81444         Module pathmax.
81445         * m4/pathmax.m4: New file.
81446
81447         Module same.
81448         * m4/same.m4: New file.
81449
81450         Module save-cwd.
81451         * m4/save-cwd.m4: New file.
81452
81453         Module savedir.
81454         * m4/savedir.m4: New file.
81455
81456         Module xgetcwd.
81457         * m4/xgetcwd.m4: New file.
81458         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
81459
81460         Module xreadlink.
81461         * m4/xreadlink.m4: New file.
81462
81463         Module safe-read.
81464         * m4/safe-read.m4: New file.
81465
81466         Module safe-write.
81467         * m4/safe-write.m4: New file.
81468
81469         Module closeout.
81470         * m4/closeout.m4: New file.
81471
81472         Module stdio-safer.
81473         * m4/stdio-safer.m4: New file.
81474
81475         Module getpass.
81476         * m4/getpass.m4: New file.
81477
81478         Module getugroups.
81479         * m4/getugroups.m4: New file.
81480
81481         Module group-member.
81482         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
81483         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
81484
81485         Module idcache.
81486         * m4/idcache.m4: New file.
81487
81488         Module userspec.
81489         * m4/userspec.m4: New file.
81490
81491         Module gettime.
81492         * m4/clock_time.m4: New file.
81493         * m4/gettime.m4: New file.
81494
81495         Module settime.
81496         * m4/settime.m4: New file.
81497
81498         Module posixtm.
81499         * m4/posixtm.m4: New file.
81500
81501         Module gethostname.
81502         * m4/gethostname.m4: New file.
81503
81504         Module canon-host.
81505         * m4/canon-host.m4: New file.
81506
81507         Module gettext.
81508         * m4/codeset.m4: New file, from gettext-0.11.5.
81509         * m4/gettext.m4: New file, from gettext-0.11.5.
81510         * m4/glibc21.m4: New file, from gettext-0.11.5.
81511         * m4/iconv.m4: New file, from gettext-0.11.5.
81512         * m4/intdiv0.m4: New file, from gettext-0.11.5.
81513         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
81514         * m4/inttypes.m4: New file, from gettext-0.11.5.
81515         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
81516         * m4/isc-posix.m4: New file, from gettext-0.11.5.
81517         * m4/lcmessage.m4: New file, from gettext-0.11.5.
81518         * m4/lib-ld.m4: New file, from gettext-0.11.5.
81519         * m4/lib-link.m4: New file, from gettext-0.11.5.
81520         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
81521         * m4/progtest.m4: New file, from gettext-0.11.5.
81522         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
81523         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
81524         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
81525
81526         Module localcharset.
81527         * m4/localcharset.m4: New file.
81528
81529         Module hard-locale.
81530         * m4/hard-locale.m4: New file.
81531
81532         Module mbswidth.
81533         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
81534         onceonly macros.
81535         * m4/mbrtowc.m4: Add comment.
81536
81537         Module memcasecmp.
81538         * m4/memcasecmp.m4: New file.
81539
81540         Module memcoll.
81541         * m4/memcoll.m4: New file.
81542
81543         Module unicodeio.
81544         * m4/unicodeio.m4: New file.
81545
81546         Module rpmatch.
81547         * m4/rpmatch.m4: New file.
81548
81549         Module yesno.
81550         * m4/yesno.m4: New file.
81551
81552         Module exitfail.
81553         * m4/exitfail.m4: New file.
81554
81555         Module c-stack.
81556         * m4/c-stack.m4 (gl_C_STACK): New macro.
81557         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
81558
81559         Module error.
81560         * m4/error.m4 (gl_ERROR): New macro.
81561         (jm_PREREQ_ERROR): Use onceonly macros.
81562
81563         Module fatal.
81564         * m4/fatal.m4: New file.
81565
81566         Module getloadavg.
81567         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
81568         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
81569
81570         Module getpagesize.
81571         * m4/getpagesize.m4: New file.
81572
81573         Module getusershell.
81574         * m4/getusershell.m4: New file.
81575
81576         Module physmem.
81577         * m4/physmem.m4: New file.
81578
81579         Module posixver.
81580         * m4/posixver.m4: New file.
81581
81582         Module quotearg.
81583         * m4/quotearg.m4: New file.
81584
81585         Module quote.
81586         * m4/quote.m4: New file.
81587
81588         Module readutmp.
81589         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
81590
81591         Module sig2str.
81592         * m4/sig2str.m4: New file.
81593
81594         Other.
81595         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
81596         ulonglong.m4.
81597         * m4/intmax_t.m4: New file.
81598         * m4/d-type.m4: Indentation.
81599         * m4/jm-macros.m4: Update.
81600         * m4/prereq.m4 (jm_PREREQ): Update.
81601         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
81602         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
81603         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
81604         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
81605         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
81606         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
81607         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
81608         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
81609         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
81610         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
81611         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
81612         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
81613         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
81614         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
81615         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
81616         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
81617         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
81618         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
81619         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
81620
81621 2002-12-24  Bruno Haible  <bruno@clisp.org>
81622
81623         * MODULES.txt: Update according to m4/ changes.
81624
81625         Module gettext.
81626         * config.rpath: New file, from gettext-0.11.5.
81627
81628         * modules/*: New module descriptions.
81629         * gnulib-tool: New file.
81630         * MODULES.html.sh: New file.
81631
81632 2002-12-21  Karl Berry  <karl@gnu.org>
81633
81634         * doc/fdl.texi: update to version 1.2.
81635
81636 2002-12-19  Karl Berry  <karl@gnu.org>
81637
81638         * config/config.guess: update from prep.
81639
81640 2002-12-18  Bruno Haible  <bruno@clisp.org>
81641
81642         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
81643         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
81644
81645 2002-12-17  Bruno Haible  <bruno@clisp.org>
81646
81647         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
81648         stdlib.h, string.h.
81649
81650 2002-12-17  Bruno Haible  <bruno@clisp.org>
81651
81652         * lib/canon-host.c (strdup): Remove unused declaration.
81653
81654         * lib/fsusage.c: Include full_read.h.
81655         (get_fs_usage): Use full_read instead of safe_read.
81656
81657         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
81658
81659 2002-12-12  Karl Berry  <karl@gnu.org>
81660
81661         * config/config.guess: update from prep.
81662
81663 2002-12-11  Bruno Haible  <bruno@clisp.org>
81664
81665         * m4/setenv.m4: New file, from gettext-0.11.5.
81666
81667 2002-12-11  Bruno Haible  <bruno@clisp.org>
81668
81669         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
81670         not unsetenv().
81671         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
81672         modifications:
81673
81674         2002-12-11  Bruno Haible  <bruno@clisp.org>
81675
81676                 * setenv.c (alloca): Fall back to malloc.
81677                 (freea): New macro.
81678                 (setenv): Use freea() to free memory allocated with alloca().
81679
81680         2002-11-13  Bruno Haible  <bruno@clisp.org>
81681
81682                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
81683                 function declarations.
81684                 * unsetenv.c (unsetenv): Likewise.
81685
81686         2002-03-04  Bruno Haible  <bruno@clisp.org>
81687
81688                 Portability to AIX 4.3.3.
81689                 * unsetenv.c: New file, extracted from setenv.c.
81690                 * setenv.c: Move the unsetenv() function to unsetenv.c.
81691
81692         2001-12-20  Bruno Haible  <bruno@clisp.org>
81693
81694                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
81695                 use malloc instead. For SunOS 4.
81696
81697         2001-12-11  Bruno Haible  <bruno@clisp.org>
81698
81699                 * setenv.c: Declare alloca.
81700                 (compar_fn_t): New typedef.
81701                 (KNOWN_VALUE, STORE_VALUE): Use it.
81702
81703         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
81704         setenv.h.
81705
81706 2002-12-10  Paul Eggert  <eggert@twinsun.com>
81707
81708         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
81709         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
81710         Choose values that are less likely to collide with system fnmatch
81711         options.
81712         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
81713         defined (e.g., a pure POSIX system).
81714         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
81715         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
81716
81717 2002-12-06  Paul Eggert  <eggert@twinsun.com>
81718
81719         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
81720         a pain in practice to deal with generated m4 files.  This change
81721         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
81722
81723         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
81724         and jm-glibc-io.m4, as they are no longer a special case.
81725         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
81726         kludge and the auto-generation stuff.  Check only whether the
81727         functions are declared, not whether they exist, since older hosts
81728         that don't declare the functions can't use the optimization anyway.
81729
81730 2002-12-06  Jim Meyering  <jim@meyering.net>
81731
81732         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
81733
81734         Merge in changes from libc's misc/error.c, in preparation
81735         for the merge of gnulib's changes back into libc.
81736
81737         * lib/error.c (_): Define only if not already defined.
81738         Move definition to follow all #include directives.
81739         Include unlocked-io.h only if !_LIBC.
81740         [_LIBC]: Include <libio/libioP.h>.
81741         [USE_IN_LIBIO]: Include <libio/iolibio.h>
81742         (fflush): Tweak definition to use INTUSE.
81743         (putc): Define.
81744
81745 2002-12-05  Paul Eggert  <eggert@twinsun.com>
81746
81747         * lib/alloca.c [defined emacs]: Include "lisp.h".
81748         (xalloc_die) [defined emacs]: New macro.
81749         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
81750         [! defined emacs]: Include <xalloc.h>.
81751         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
81752         (pointer): Typedef to POINTER_TYPE *.
81753         (malloc): Remove decl; we now always use xmalloc.
81754         (alloca): Use old-style definition, since Emacs needs this.
81755         Check for arithmetic overflow when computing combined size.
81756
81757 2002-12-04  Paul Eggert  <eggert@twinsun.com>
81758
81759         Do not generate unlocked-io.h automatically, since it's easier to
81760         maintain it by hand.
81761
81762         * lib/unlocked-io.h: New file, from GNU diffutils,
81763         but with proper copyright notice and attribution.
81764         * lib/gen-uio: Remove.
81765         * lib/Makefile.am: Add copyright notice.
81766         (libfetish_a_SOURCES): Add unlocked-io.h.
81767         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
81768         (DISTCLEANFILES, io_functions): Remove macros.
81769         (EXTRA_DIST): Remove gen_uio.
81770         (unlocked-io.h): Remove rule.
81771
81772 2002-12-04  Jim Meyering  <jim@meyering.net>
81773
81774         Reflect the fact that stat.c and lstat.c are no longer generated.
81775         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
81776         (DISTCLEANFILES): Likewise.
81777         (EXTRA_DIST): Likewise.
81778         (all_local): Don't depend on stat.c or lstat.c.
81779         (stat.c, lstat.c): Remove rules.
81780         (EXTRA_DIST): Remove xstat.in.
81781
81782         * lib/xstat.in: Remove file.  Contents moved into stat.c.
81783         * lib/stat.c: New file.  Contents mostly from xstat.in.
81784         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
81785         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
81786
81787         * lib/safe-read.c: Rework so that it may serve to define safe_write,
81788         too.
81789         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
81790
81791 2002-12-03  Jim Meyering  <jim@meyering.net>
81792
81793         * lib/safe-read.c, safe-write.c: Change variable names and comments,
81794         but not semantics, to minimize the differences between these two files.
81795         (safe_read): Change comment to mention SAFE_READ_ERROR.
81796
81797         * lib/safe-read.c (IS_EINTR): Define.
81798         (safe_read): Use IS_EINTR in place of in-function cpp directives.
81799
81800 2002-12-02  Jim Meyering  <jim@meyering.net>
81801
81802         * lib/safe-read.c (EINTR): Define.
81803         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
81804         (INT_MAX): Provide fallback.
81805         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
81806
81807         * lib/safe-read.h (SAFE_READ_ERROR): Define.
81808
81809 2002-12-02  Bruno Haible  <bruno@clisp.org>
81810
81811         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
81812         Define, taken from safe-read.c.
81813         (INT_MAX): Provide fallback.
81814         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
81815         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
81816
81817         * lib/safe-read.c (EINTR): Remove definition.
81818         (safe_read): Don't use EINTR if it is absent.
81819
81820 2002-12-01  Jim Meyering  <jim@meyering.net>
81821
81822         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
81823         zero.
81824         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
81825
81826 2002-11-27  Paul Eggert  <eggert@twinsun.com>
81827
81828         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
81829         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
81830         with `if (! (value < limit)) abort ();', for readability.
81831
81832 2002-11-26  Karl Berry  <karl@gnu.org>
81833
81834         * lib/strdup.c: copy from libc again, with jim's ok.
81835         * lib/.cppi-disable: re-add strdup.c
81836
81837 2002-11-25  Karl Berry  <karl@gnu.org>
81838
81839         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
81840         instead of "strtol.c".
81841
81842 2002-11-25  Karl Berry  <karl@gnu.org>
81843
81844         * config/install-sh: update from automake for variable quoting, $0 in
81845         error msgs, etc.
81846
81847         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
81848         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
81849         entry.
81850
81851 2002-11-25  Jim Meyering  <jim@meyering.net>
81852
81853         * lib/mktime.c: Sync from libc, now that it has the latest fix.
81854
81855 2002-11-24  Karl Berry  <karl@gnu.org>
81856
81857         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
81858         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
81859
81860 2002-11-24  Jim Meyering  <jim@meyering.net>
81861
81862         Update from coreutils:
81863
81864         * lib/mktime.c: Merge in changes from libc.
81865
81866         Avoid a link-time failure on some Linux systems.
81867         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
81868         (otherwise).
81869         (__mon_yday): Declare with the STATIC attribute.
81870         (__mktime_internal): Likewise.
81871         Based on a report from Greg Schafer.
81872
81873 2002-11-23  Jim Meyering  <jim@meyering.net>
81874
81875         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
81876         Use `unsigned', not `int', as type of index.
81877
81878         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
81879
81880         * lib/fsusage.c: Remove unneeded parentheses around operands of
81881         `defined'.
81882
81883 2002-11-22  Paul Eggert  <eggert@twinsun.com>
81884
81885         * lib/quotearg.h: Allow multiple inclusion by surrounding with
81886         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
81887         so that we can be included first.
81888         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
81889         * lib/quotearg.c: Include quotearg.h immediately after config.h.
81890         No need to include stddef.h or sys/types.h any more.
81891         Surround local include files with "", not "<>".
81892         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
81893         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
81894         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
81895         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
81896         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
81897         (ISPRINT): Remove; no longer needed now that we assume C89.
81898
81899         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
81900         Preserve errno.
81901
81902         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
81903         quotearg_char): Use SIZE_MAX rather than
81904         (size_t) -1 when we are talking about "infinity".
81905
81906         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
81907
81908 2002-11-22  Paul Eggert  <eggert@twinsun.com>
81909
81910         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
81911         hint that one should use `if (! x) abort ();' rather than `assert
81912         (x);', and anyway it's one less thing to worry about configuring.
81913         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
81914         hash_rehash, hash_insert): Use abort rather than assert.
81915
81916 2002-11-22  Bruno Haible  <bruno@clisp.org>
81917
81918         * lib/safe-read.h: Assume C89. Add comments.
81919         (safe_read): Change return type to size_t.
81920         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
81921         byte counts > SSIZE_MAX correctly.
81922         * lib/safe-write.h: New file.
81923         * lib/safe-write.c: New file.
81924         * lib/full-read.h: New file.
81925         * lib/full-read.c: New file.
81926         * lib/full-write.h: Assume C89. Add comments.
81927         * lib/full-write.c: Include safe-write.h.
81928         (full_write): Rewritten to use safe_write.
81929         Suggested by Jim Meyering and Paul Eggert.
81930
81931 2002-11-21  Jim Meyering  <jim@meyering.net>
81932
81933         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
81934
81935         Merge in changes from the coreutils.
81936
81937         2002-09-25  Paul Eggert  <eggert@twinsun.com>
81938         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
81939         <stdint.h>.
81940         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
81941         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
81942         int.  Work more efficiently if X is the same width as uintmax_t.
81943         Do not compare X to -1, to avoid bogus compiler warning.
81944         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
81945         Don't assume that f_frsize and f_bsize are the same type.
81946
81947         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
81948         warning on FreeBSD.
81949
81950         * lib/makepath.c (make_path): Restore umask *before* creating the final
81951         component.
81952         (make_path): Minor reformatting.
81953
81954         * lib/xmalloc.c: Adjust to work with new autoconf macros,
81955         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
81956         HAVE_MALLOC/HAVE_REALLOC.
81957
81958         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
81959         dummy ones.  At least on GNU/Linux systems, `auto' means something
81960         else.
81961         From Michael Stone.
81962
81963 2002-11-21  Bruno Haible  <bruno@clisp.org>
81964
81965         Remove case insensitive option matching.
81966         * lib/argmatch.h (argcasematch): Remove declaration.
81967         (ARGCASEMATCH): Remove macro.
81968         (__xargmatch_internal): Remove case_sensitive argument.
81969         (XARGMATCH): Update.
81970         (XARGCASEMATCH): Remove macro.
81971         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
81972         case_sensitive argument.
81973         (argcasematch): Remove function.
81974         (__xargmatch_internal): Remove case_sensitive argument.
81975         (main): Use XARGMATCH instead of XARGCASEMATCH.
81976
81977         * lib/xmalloc.c: Change compile-time error message. Add comment about
81978         required autoconf version.
81979
81980 2002-11-20  Paul Eggert  <eggert@twinsun.com>
81981
81982         Merge argmatch cleanups from Bison.  Assume C89.
81983
81984         * lib/argmatch.c: Include config.h here, not in argmatch.h.
81985         Include stdlib.h, for EXIT_FAILURE.
81986         Always include <string.h>, since we assume C89.
81987         (EXIT_FAILURE): Remove pre-C89 bug workaround.
81988         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
81989         Include <stddef.h> instead, since it's all we need for size_t.
81990         (PARAMS): Remove.  All uses removed.
81991         (ARRAY_CARDINALITY): Do not bother to #undef.
81992         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
81993         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
81994         Remove unnecessary parentheses.
81995         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
81996         Insert necessary parentheses.
81997         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
81998         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
81999
82000 2002-11-19  Bruno Haible  <bruno@clisp.org>
82001
82002         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
82003         * lib/mbswidth.h: Include <stddef.h>, for size_t.
82004
82005         * lib/mbswidth.h (PARAMS): Remove macro.
82006         (mbswidth, mbsnwidth): Use ANSI C function declarations.
82007         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
82008
82009         * lib/gcd.h (PARAMS): Remove macro.
82010         (gcd): Use ANSI C function declarations.
82011         * lib/gcd.c (gcd): Likewise.
82012
82013 2002-11-15  Bruno Haible  <bruno@clisp.org>
82014
82015         * lib/strcspn.c: Include <stddef.h>.
82016         (strcspn): Use ANSI C function declaration. Change return type to
82017         size_t. Use NULL.
82018         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
82019         (strpbrk): Use NULL.
82020         * lib/strpbrk.h (PARAMS): Remove macro.
82021         (strpbrk): Use ANSI C function declaration.
82022         * lib/strstr.c: Don't include <sys/types.h>.
82023         * lib/strstr.h (PARAMS): Remove macro.
82024         (strstr): Use ANSI C function declarations.
82025
82026 2002-11-14  Karl Berry  <karl@gnu.org>
82027
82028         * config/mkinstalldirs: `do' on separate line, instead of
82029         `for var; do'.
82030
82031 2002-11-06  Bruno Haible  <bruno@clisp.org>
82032
82033         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
82034         * lib/gcd.c (gcd): Likewise.
82035
82036 2002-11-05  Bruno Haible  <bruno@clisp.org>
82037
82038         * lib/gcd.h: New file, from gettext-0.11.5.
82039         * lib/gcd.c: New file, from gettext-0.11.5.
82040
82041 2002-11-05  Bruno Haible  <bruno@clisp.org>
82042
82043         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82044         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82045         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82046         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82047
82048         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
82049         <libintl.h>.
82050         * lib/makepath.c: Include gettext.h instead of <locale.h> and
82051         <libintl.h>.
82052
82053         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
82054         * lib/human.c: Include gettext.h instead of <libintl.h>.
82055         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
82056         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
82057         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
82058         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
82059         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
82060         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
82061         (textdomain): Remove definition.
82062         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
82063
82064         * lib/long-options.c: Remove include of <libintl.h> and definition of
82065         _.
82066         * lib/same.c: Remove include of <libintl.h> and definition of _.
82067
82068 2002-11-04  Owen Taylor  <otaylor@redhat.com>
82069
82070         * lib/config.charset: A few additions for Solaris.
82071
82072 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
82073
82074         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
82075         * lib/localcharset.c (locale_charset): Declare as extern "C".
82076
82077 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
82078
82079         * lib/config.charset: msdos in uk_UA uses CP1125.
82080
82081 2002-11-04  Bruno Haible  <bruno@clisp.org>
82082
82083         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
82084         * lib/strcase.h: New file, from GNU gettext-0.11.5.
82085         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
82086         * lib/strstr.h: New file, from GNU gettext-0.11.5.
82087         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
82088
82089 2002-11-04  Bruno Haible  <bruno@clisp.org>
82090
82091         * lib/localcharset.c (locale_charset): Don't return an empty string.
82092
82093 2002-11-04  Bruno Haible  <bruno@clisp.org>
82094
82095         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
82096         aliases.
82097
82098 2002-11-04  Bruno Haible  <bruno@clisp.org>
82099
82100         * lib/config.charset: Update for newest glibc. Add canonical names
82101         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
82102
82103 2002-11-04  Bruno Haible  <bruno@clisp.org>
82104
82105         * lib/config.charset: Add support for NetBSD.
82106
82107 2002-11-04  Bruno Haible  <bruno@clisp.org>
82108
82109         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
82110
82111 2002-11-01  Bruno Haible  <bruno@clisp.org>
82112
82113         * configure.in: Add AC_CONFIG_AUX_DIR call.
82114         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
82115         test/Makefile.
82116         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
82117
82118 2002-09-28  Karl Berry  <karl@gnu.org>
82119
82120         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
82121         installed automake until the next release, since changes have been
82122         made.
82123
82124 2002-09-25  Karl Berry  <karl@gnu.org>
82125
82126         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
82127         * lib/getopt*: copy from libc/posix.
82128         * lib/gettext.h: copy from gettext.
82129         * lib/.cppi-disable: add strdup.c, gettext.h.
82130
82131 2002-09-25  Karl Berry  <karl@gnu.org>
82132
82133         * config/srclist.txt: enable gettext.h check.
82134         * config/config.{guess,sub}: update from prep.
82135         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
82136                 from automake 1.6.3.
82137         See srclist*.
82138
82139 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
82140
82141         * regex.c (PATFETCH): Remove the translating fetch.
82142         (PATFETCH_RAW): Rename to PATFETCH.
82143         (set_image_of_range): New fun.
82144         (SET_RANGE_TABLE_WORK_AREA): Use it.
82145         (regex_compile): Don't translate the pattern chars so eagerly.
82146         Only do it when inserting an `exactn' bytecode or when handling
82147         a char-range.
82148         (mutually_exclusive_p): Avoid empty statement.
82149
82150 2002-07-06  Jim Meyering  <meyering@lucent.com>
82151
82152         * m4/README: Don't mention Makefile.am.in.
82153         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
82154
82155 2002-07-01  Jim Meyering  <meyering@lucent.com>
82156
82157         * lib/c-stack.c: Include sys/time.h.
82158         From Volker Borchert.
82159
82160 2002-06-26  Paul Eggert  <eggert@twinsun.com>
82161
82162         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
82163
82164 2002-06-26  Paul Eggert  <eggert@twinsun.com>
82165
82166         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
82167         New macro.  Use it uniformly instead of
82168         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
82169         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
82170         reported by Vin Shelton.
82171
82172 2002-06-22  Paul Eggert  <eggert@twinsun.com>
82173
82174         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
82175         Do not assume SA_SIGINFO behavior.
82176         Bug reported by Jim Meyering on NetBSD 1.5.2.
82177
82178 2002-06-22  Jim Meyering  <meyering@lucent.com>
82179
82180         * m4/c-stack.m4: New file, from diffutils-2.8.2.
82181         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
82182
82183         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
82184         now that configure.ac uses AC_GNU_SOURCE.
82185         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
82186         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
82187
82188         Update to latest tools.  Suggestions from Paul Eggert.
82189         * m4/stdbool.m4: New file, from diffutils-2.8.2.
82190         * m4/gnu-source.m4: Update from diffutils-2.8.2.
82191         * m4/fnmatch.m4: Likewise.
82192         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
82193         to AC_HEADER_STDBOOL
82194
82195 2002-06-22  Jim Meyering  <meyering@lucent.com>
82196
82197         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
82198         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
82199
82200 2002-06-22  Jim Meyering  <meyering@lucent.com>
82201
82202         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
82203
82204         * lib/exitfail.c, exitfail.h: Likewise.
82205         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
82206
82207         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
82208         of fnmatch.h.
82209         (EXTRA_DIST): Add fnmatch_loop.c.
82210         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
82211
82212         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
82213         * lib/fnmatch.c: Update from diffutils-2.8.2.
82214         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
82215         * lib/fnmatch.h: Remove file.
82216
82217 2002-06-21  Jim Meyering  <meyering@lucent.com>
82218
82219         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
82220         * m4/mbrtowc.m4: Likewise.
82221
82222         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
82223         * m4/mbswidth.m4: Reflect name change:
82224         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
82225         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
82226
82227         * m4/lib-link.m4: Update from gettext-0.11.2.
82228         * m4/gettext.m4: Likewise.
82229
82230         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
82231         From Alfred M. Szmidt.
82232
82233 2002-06-18  Paul Eggert  <eggert@twinsun.com>
82234
82235         * lib/file-type.h: Report an error if neither S_ISREG nor
82236         S_IFREG is defined, instead of using a test specific to glibc
82237         2.2.  This should be safe, since POSIX requires S_ISREG and
82238         Unix Version 7 had S_IFREG.  We don't need to check for
82239         <sys/types.h> since we don't use any symbols that it defines.
82240
82241 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
82242
82243         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
82244         $@-t, so that each temporary file name is unique and valid in the first
82245         8 characters, for operation under DOS.
82246
82247 2002-06-15  Paul Eggert  <eggert@twinsun.com>
82248
82249         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
82250
82251 2002-06-15  Jim Meyering  <meyering@lucent.com>
82252
82253         Work even with DJGPP 2.03, which lacks support for symlinks.
82254         From Richard Dawe.
82255         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
82256         is defined.
82257         * lib/lchown.c (S_ISLNK): Likewise.
82258
82259 2002-06-15  Jim Meyering  <meyering@lucent.com>
82260
82261         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
82262         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
82263         have been included before this file.
82264
82265 2002-06-14  Jim Meyering  <meyering@lucent.com>
82266
82267         * lib/file-type.h: Use the version from diffutils-2.8.2.
82268         * lib/file-type.c: Likewise.
82269
82270 2002-06-07  Jim Meyering  <meyering@lucent.com>
82271
82272         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
82273         They're needed at least for NetBSD 1.5.2.
82274         ($statxfs_includes): Include those same headers.
82275         ($statxfs_includes): Include sys/vfs.h if available.
82276         ($statxfs_includes): Likewise for sys/statvfs.h.
82277         Check for the following members in both structs statfs and statvfs:
82278         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
82279
82280 2002-06-01  Jim Meyering  <meyering@lucent.com>
82281
82282         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
82283         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
82284
82285 2002-05-28  Jim Meyering  <meyering@lucent.com>
82286
82287         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
82288         Reported by Volker Borchert.
82289
82290 2002-05-27  Jim Meyering  <meyering@lucent.com>
82291
82292         Fix a problem seen only on nonconforming systems whereby ls.c's
82293         use of localtime, and then of gettimeofday would cause trouble:
82294         the localtime call used to initialize rpl_gettimeofday's save
82295         mechanism would clobber ls's current local time information so
82296         that in any long listing the first file would always be listed
82297         with date 1970-01-01.  Analysis by Volker Borchert.
82298
82299         * lib/gettimeofday.c (localtime): Undefine.
82300         (rpl_localtime): New function.
82301
82302 2002-05-27  Jim Meyering  <meyering@lucent.com>
82303
82304         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
82305         localtime.
82306
82307         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
82308         use the replacement function; it wouldn't resolve at link time.
82309         Reported by Volker Borchert.
82310
82311 2002-05-22  Jim Meyering  <meyering@lucent.com>
82312
82313         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
82314         file-type.h.
82315         * lib/file-type.h: New file.
82316         * lib/file-type.c (file_type): New file/function.  Extracted from
82317         diffutils.
82318
82319 2002-04-30  Jim Meyering  <meyering@lucent.com>
82320
82321         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
82322
82323 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82324
82325         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
82326
82327 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82328
82329         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
82330         Do not check for alloca.h (no longer used) or stdbool.h (was never
82331         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
82332
82333 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82334
82335         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
82336
82337 2002-04-29  Jim Meyering  <meyering@lucent.com>
82338
82339         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
82340         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
82341         Use AC_FUNC_STRNLEN here instead.
82342
82343         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
82344         With autoconf-2.53a, it's part of AC_PROG_CC.
82345
82346 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82347
82348         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
82349         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
82350
82351 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82352
82353         * lib/sig2str.h, lib/sig2str.c: New files.
82354         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
82355
82356 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82357
82358         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
82359         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
82360         of 127, since 64 is the largest conceivable number for ancient
82361         nonstandard hosts.
82362         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
82363
82364 2002-04-28  Jim Meyering  <meyering@lucent.com>
82365
82366         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
82367
82368 2002-04-24  Jim Meyering  <meyering@lucent.com>
82369
82370         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
82371         (jm_PREREQ): Use it.
82372
82373         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
82374         mach/mach.h fcntl.h.
82375         Check for this function: setlocale.
82376
82377 2002-04-24  Jim Meyering  <meyering@lucent.com>
82378
82379         * lib/gettext.h: New file, from Gettext.
82380         * lib/Makefile.am (INCLUDES): Remove -I../intl.
82381         (libfetish_a_SOURCES): Add gettext.h.
82382
82383 2002-04-16  Jim Meyering  <meyering@lucent.com>
82384
82385         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
82386         ut_pid, ut_id, ut_exit.
82387
82388 2002-04-16  Jim Meyering  <meyering@lucent.com>
82389
82390         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
82391         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
82392         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
82393
82394 2002-04-12  Jim Meyering  <meyering@lucent.com>
82395
82396         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
82397         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
82398         existence of the getmntinfo function.  Needed for Darwin 5.3.
82399
82400         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
82401         This is necessary at least on Darwin 5.3.
82402
82403         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
82404         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
82405         strnlen.o in the library, and that makes some versions of ranlib
82406         object.
82407
82408 2002-04-12  Jim Meyering  <meyering@lucent.com>
82409
82410         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
82411
82412 2002-04-09  Jim Meyering  <meyering@lucent.com>
82413
82414         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
82415         to be more precise.  Rather than saying we're checking whether the
82416         function `works', say what we're testing.
82417         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
82418         Reported by Bruno Haible.
82419
82420 2002-03-10  Jim Meyering  <meyering@lucent.com>
82421
82422         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
82423         Suggestion from Santiago Vila.
82424
82425 2002-03-08  Jim Meyering  <meyering@lucent.com>
82426
82427         * lib/rename.c: Mention that this wrapper is needed also on
82428         mips-dec-ultrix4.4 systems.
82429
82430 2002-03-02  Jim Meyering  <meyering@lucent.com>
82431
82432         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
82433         not HAVE_CLOCK_SETTIME.
82434
82435 2002-02-27  Paul Eggert  <eggert@twinsun.com>
82436
82437         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
82438         Check for clock_settime.
82439
82440 2002-02-27  Paul Eggert  <eggert@twinsun.com>
82441
82442         * lib/nanosleep.h: Rename to....
82443         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
82444
82445         * lib/gettime.c: New file.
82446         * lib/settime.c: New file.
82447         * lib/stime.c: Remove.
82448
82449         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
82450         timespec.h.  Remove nanosleep.h.
82451
82452 2002-02-25  Paul Eggert  <eggert@twinsun.com>
82453
82454         * m4/acl.m4: New file.
82455         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
82456         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
82457
82458 2002-02-25  Paul Eggert  <eggert@twinsun.com>
82459
82460         * lib/acl.c, lib/acl.h: New files.
82461         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
82462
82463 2002-02-24  Jim Meyering  <meyering@lucent.com>
82464
82465         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
82466         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
82467         cause trouble.  Reported by Nelson Beebe.
82468
82469 2002-02-23  Paul Eggert  <eggert@twinsun.com>
82470
82471         * lib/path-concat.c (xpath_concat): Reorder code to pacify
82472         compilers that don't know that xalloc_die never returns.
82473
82474 2002-02-20  Jim Meyering  <meyering@lucent.com>
82475
82476         * lib/getdate.c: Regenerate using bison-1.33.
82477
82478 2002-02-17  Jim Meyering  <meyering@lucent.com>
82479
82480         * config/config.guess (main): Don't use `head -1'; it's no longer
82481         portable. Use `sed 1q' instead.
82482
82483 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
82484
82485         * m4/codeset.m4: Upgrade to gettext-0.11.
82486         * m4/gettext.m4: Upgrade to gettext-0.11.
82487         * m4/glibc21.m4: Upgrade to gettext-0.11.
82488         * m4/iconv.m4: Upgrade to gettext-0.11.
82489         * m4/isc-posix.m4: Upgrade to gettext-0.11.
82490         * m4/lcmessage.m4: Upgrade to gettext-0.11.
82491         * m4/lib-ld.m4: New file, from gettext-0.11.
82492         * m4/lib-link.m4: New file, from gettext-0.11.
82493         * m4/lib-prefix.m4: New file, from gettext-0.11.
82494         * m4/progtest.m4: Upgrade to gettext-0.11.
82495
82496 2002-02-15  Paul Eggert  <eggert@twinsun.com>
82497
82498         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
82499         (jm_PREREQ): Use it.
82500
82501 2002-02-15  Paul Eggert  <eggert@twinsun.com>
82502
82503         * lib/posixver.c, lib/posixver.h: New files.
82504         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
82505
82506 2002-02-02  Paul Eggert  <eggert@twinsun.com>
82507             Bruno Haible  <bruno@clisp.org>
82508
82509         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
82510         (fwrite_success_callback): New declaration.
82511         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
82512         print_unicode_char. Call failure callback instead of error.
82513         (fwrite_success_callback): New function.
82514         (exit_failure_callback): New function.
82515         (fallback_failure_callback): New function.
82516         (print_unicode_char): Call unicode_to_mb.
82517
82518 2002-01-26  Jim Meyering  <meyering@lucent.com>
82519
82520         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
82521         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
82522
82523 2002-01-26  Jim Meyering  <meyering@lucent.com>
82524
82525         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
82526
82527 2002-01-22  Paul Eggert  <eggert@twinsun.com>
82528
82529         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
82530
82531 2002-01-22  Jim Meyering  <meyering@lucent.com>
82532
82533         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
82534         Otherwise, some versions of automake would omit the rule that makes
82535         Makefile from Makefile.in.
82536
82537 2002-01-21  Paul Eggert  <eggert@twinsun.com>
82538
82539         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
82540         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
82541         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
82542         (memcoll): Set errno to zero if there is no error.
82543
82544         * lib/quotearg.c (quotearg_buffer_restyled):
82545         Fix bug with quoting buffers containing NUL when backslashing escapes.
82546         This bug was exposed by the other changes in this patch.
82547         (quotearg_n_options): New arg ARGSIZE.
82548         All callers changed.
82549         (quoting_options_from_style): New function.
82550         (quotearg_n_style): Use it.
82551         (quotearg_n_style_mem): New function.
82552
82553         * lib/quotearg.h (quotearg_n_style_mem): New function.
82554
82555 2002-01-19  Jim Meyering  <meyering@lucent.com>
82556
82557         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
82558         Remove useless quotes: DF_PROG="df".
82559         * m4/strnlen.m4: New file.
82560
82561 2002-01-16  Paul Eggert  <eggert@twinsun.com>
82562
82563         * lib/backupfile.c (ISDIGIT): Comment fix.
82564         * lib/getdate.y (ISDIGIT): Likewise.
82565         * lib/posixtm.c (ISDIGIT, year): Likewise.
82566         * lib/strverscmp.c (ISDIGIT): Likewise.
82567         * lib/userspec.c (ISDIGIT): Likewise.
82568
82569 2002-01-16  Jim Meyering  <meyering@lucent.com>
82570
82571         * lib/getdate.y: Add three semicolons, each just before a closing
82572         brace. Bison (as of version 1.31) no longer papers over that mistake.
82573
82574 2002-01-05  Jim Meyering  <meyering@lucent.com>
82575
82576         * lib/version-etc.c (version_etc_copyright): Update copyright year.
82577
82578 2001-12-19  Paul Eggert  <eggert@twinsun.com>
82579
82580         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
82581         not silently exit merely because the output buffer happens to
82582         have nothing pending.
82583
82584 2001-12-18  Paul Eggert  <eggert@twinsun.com>
82585
82586         See the big note in ../ChangeLog.
82587         * lib/human.c (suffixes): Prefer K to k for 1024.
82588         (generate_suffix_backwards): New function.
82589         (human_readable_inexact): Use it.
82590         * lib/xstrtol.c (__xstrtol): If there is no number but there
82591         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
82592         Accept 'K' as well as 'k'.
82593
82594 2001-12-15  Jim Meyering  <meyering@lucent.com>
82595
82596         * lib/regex.h (__restrict_arr): Update from libc.
82597
82598         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
82599         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
82600         (STREQ): Define.
82601
82602 2001-12-14  Jim Meyering  <meyering@lucent.com>
82603
82604         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
82605         Suggestion from Bruno Haible.
82606
82607 2001-12-10  Jim Meyering  <meyering@lucent.com>
82608
82609         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
82610         xrealloc, Instead, include "xalloc.h".
82611         (initbuffer): Don't cast xmalloc return value to char*.
82612         (readline): Reword comment.
82613         Don't cast xrealloc return value to char*
82614         Return NULL, not 0.
82615
82616 2001-12-09  Jim Meyering  <meyering@lucent.com>
82617
82618         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
82619         about `signed and unsigned type in conditional expression'.
82620         * lib/posixtm.c (posix_time_parse): Likewise.
82621
82622         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
82623
82624         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
82625         to avoid a pedantic warning.
82626
82627         * lib/getstr.c: Don't include assert.h.
82628         (getstr): Remove warning-evoking assertions.
82629         Return -1 if offset parameter is out of bounds.
82630         Change the type of a local from int to size_t.
82631
82632         * lib/strftime.c (my_strftime_localtime_r): Include this function
82633         definition in the `#if ! HAVE_TM_GMTOFF' block.
82634
82635         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
82636         Include xalloc.h instead.
82637
82638 2001-12-02  Jim Meyering  <meyering@lucent.com>
82639
82640         * lib/tempname.c: Don't declare getenv, thus reverting the change of
82641         2001-11-18.  It's no longer necessary, now that stdlib.h is always
82642         included.
82643
82644         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
82645         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
82646
82647 2001-11-30  Akim Demaille  <akim@epita.fr>
82648
82649         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
82650         before being defined.
82651
82652 2001-11-27  Paul Eggert  <eggert@twinsun.com>
82653
82654         * lib/quotearg.h (quotearg_n, quotearg_n_style):
82655         First arg is int, not unsigned.
82656         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
82657         (SIZE_MAX, UINT_MAX): New macros.
82658         (quotearg_n_options): Abort if N is negative.
82659         Avoid overflow check on hosts where size_t is 64 bits and int
82660         is 32 bits, as overflow is impossible there.
82661         Fix off-by-one typo that caused unnecessary reallocation.
82662
82663 2001-11-27  Jim Meyering  <meyering@lucent.com>
82664
82665         * lib/tempname.c: Merge with version from libc.
82666         * lib/regex.c: Likewise.
82667
82668         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
82669         systems for which STDC_HEADERS is 0, it was not included, resulting in
82670         a warning about an integer-to-pointer conversion problem with getenv.
82671         Reported by Volker Borchert.
82672
82673 2001-11-26  Jim Meyering  <meyering@lucent.com>
82674
82675         * lib/gtod.h: Remove file.
82676         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
82677         * lib/gettimeofday.c: Don't include gtod.h.
82678         (GTOD_init): Remove function.
82679         (rpl_gettimeofday): Do its job here instead, rather than aborting.
82680         Suggestion from Volker Borchert.
82681
82682 2001-11-23  Jim Meyering  <meyering@lucent.com>
82683
82684         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
82685         it.
82686         * lib/hash.c (struct hash_table): Define it here instead.
82687
82688 2001-11-22  Jim Meyering  <meyering@lucent.com>
82689
82690         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
82691
82692 2001-11-20  Jim Meyering  <meyering@lucent.com>
82693
82694         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
82695         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
82696
82697 2001-11-19  Jim Meyering  <meyering@lucent.com>
82698
82699         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
82700         directory.  Use "conftestXXXXXX" as the template.
82701         Suggestion from Paul Eggert.
82702
82703         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
82704         immediately, so the test doesn't mistakenly hit the max-open-files
82705         limit.
82706
82707 2001-11-18  Paul Eggert  <eggert@twinsun.com>
82708
82709         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
82710         (TEMPORARIES): New macro.
82711         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
82712         removes an artificial limitation (e.g. HP-UX 10.20, where
82713         TMP_MAX is 17576).
82714
82715 2001-11-18  Jim Meyering  <meyering@lucent.com>
82716
82717         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
82718
82719 2001-11-18  Jim Meyering  <meyering@lucent.com>
82720
82721         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
82722         on SunOS 4.
82723
82724         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
82725         files will be created before anything else.
82726
82727 2001-11-17  Paul Eggert  <eggert@twinsun.com>
82728
82729         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
82730         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
82731
82732 2001-11-17  Jim Meyering  <meyering@lucent.com>
82733
82734         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
82735         Prompted by a report from Bob Proulx.
82736
82737         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
82738         Instead, require UTILS_FUNC_MKSTEMP.
82739
82740 2001-11-17  Jim Meyering  <meyering@lucent.com>
82741
82742         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
82743         Now, that's done as part of AC_FUNC_STRTOD.
82744
82745 2001-11-17  Jim Meyering  <meyering@lucent.com>
82746
82747         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
82748         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
82749         rather than group writable.  Patch by Juan F. Codagnone.
82750
82751         * lib/readtokens.c: Remove explicit declarations of xmalloc and
82752         xrealloc, Instead, include "xalloc.h".
82753
82754         * lib/mountlist.c: Include unlocked-io.h after all system headers.
82755         Remove explicit declarations of xmalloc, xrealloc,
82756         and xstrdup.  Instead, include "xalloc.h".
82757
82758         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
82759         unlocked-io.h.
82760         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
82761         Likewise.
82762         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
82763
82764         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
82765         Reported by Padraig Brady.
82766
82767         * lib/mkstemp.c: #undef mkstemp.
82768         Include config.h.
82769         (rpl_mkstemp): Rename from mkstemp.
82770         Protoize.
82771
82772 2001-11-16  Jim Meyering  <meyering@lucent.com>
82773
82774         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
82775         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
82776         determine the amount of total physical memory, use pstat_getstatic.
82777         HPUX-11 doesn't define _SC_PHYS_PAGES.
82778         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
82779         If sysconf couldn't be used to determine the amount of available
82780         physical memory, use both pstat_getstatic and pstat_getdynamic.
82781         Based on a patch from Bob Proulx.
82782
82783 2001-11-10  Jim Meyering  <meyering@lucent.com>
82784
82785         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
82786         (jm_PREREQ): Use it.
82787
82788 2001-11-09  Jim Meyering  <meyering@lucent.com>
82789
82790         * m4/jm-macros.m4: Require autoconf-2.52f.
82791         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
82792         Use these AC_-prefixed names, not the AM_-prefixed ones.
82793
82794         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
82795
82796 2001-11-05  Jim Meyering  <meyering@lucent.com>
82797
82798         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
82799
82800 2001-11-04  Jim Meyering  <meyering@lucent.com>
82801
82802         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
82803         $DEFS.
82804
82805 2001-11-03  Jim Meyering  <meyering@lucent.com>
82806
82807         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
82808         of AC_DEFUN.
82809
82810         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
82811         know the name of the variable in the macro definition.
82812
82813 2001-11-03  Jim Meyering  <meyering@lucent.com>
82814
82815         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
82816         in argmatch_to_argument call.
82817
82818         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
82819         argument.
82820
82821         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
82822         e.g., a fault due to an attempt to free a NULL pointer.
82823
82824 2001-11-01  Jim Meyering  <meyering@lucent.com>
82825
82826         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
82827         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
82828
82829 2001-11-01  Jim Meyering  <meyering@lucent.com>
82830
82831         * lib/dirfd.c, lib/dirfd.h: New files.
82832         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
82833
82834         * lib/hash.c (hash_print) [TESTING]: Clean up.
82835
82836 2001-10-22  Paul Eggert  <eggert@twinsun.com>
82837
82838         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
82839         to avoid a warning if -Wall.
82840
82841 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
82842
82843         * README: New file
82844         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
82845         (per RMS's instructions, this is now the canonical source)
82846         * lgpl/, gpl/: New directories.
82847
82848 2001-10-21  Paul Eggert  <eggert@twinsun.com>
82849
82850         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
82851
82852 2001-10-21  Jim Meyering  <meyering@lucent.com>
82853
82854         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
82855         this code would end up calling gettext even in packages built
82856         with --disable-nls.
82857         * lib/getopt.c (_): Likewise.
82858         * lib/regex.c (_): Likewise.
82859
82860 2001-10-20  Paul Eggert  <eggert@twinsun.com>
82861
82862         * m4/error.m4 (jm_PREREQ_ERROR):
82863         Do not invoke AC_CHECK_FUNCS with strerror_r, as
82864         AC_FUNC_STRERROR_R does that.
82865         Check for strerror declaration.
82866
82867         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
82868         are supposed to have them these days.
82869         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
82870         Merge changes from latest Autoconf CVS.
82871         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
82872         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
82873         POSIX decided to standardize on the int flavor of strerror_r.
82874
82875 2001-10-20  Paul Eggert  <eggert@twinsun.com>
82876
82877         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
82878         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
82879         Use strerror_r that is only a macro, even if it is not a function.
82880         (strerror): Check for HAVE_DECL_STRERROR before declaring.
82881         (private_strerror): Use prototypes, not old-style function definition.
82882         (print_errno_message): New function.
82883         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
82884         char*-flavored one.
82885         (error_tail, error, error_at_line): Use it.
82886
82887 2001-10-11  Jim Meyering  <meyering@lucent.com>
82888
82889         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
82890         and quote_n (1, ... to avoid clobbering a buffer.
82891
82892 2001-10-05  Jim Meyering  <meyering@lucent.com>
82893
82894         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
82895         hash-pjw.h.
82896         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
82897         * lib/hash-pjw.h: New file.
82898
82899 2001-09-30  Jim Meyering  <meyering@lucent.com>
82900
82901         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
82902         `struct fsstat' has the `f_fstypename' member.
82903         Use that to define FS_TYPE, which is now used to make
82904         the getfsstat link test tighter.
82905
82906 2001-09-30  Jim Meyering  <meyering@lucent.com>
82907
82908         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
82909         Include <sys/ucred.h>, for Apple Darwin.
82910         Include sys/mount.h and sys/fs_types.h only if available.
82911         (FS_TYPE): Define.
82912         (read_filesystem_list): Use FS_TYPE.
82913
82914 2001-09-29  Paul Eggert  <eggert@twinsun.com>
82915
82916         * lib/exclude.c (excluded_filename): 0 -> false, since it's
82917         a boolean context.
82918
82919 2001-09-29  Jim Meyering  <meyering@lucent.com>
82920
82921         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
82922         [one-argument getmntent function]): Include stdio.h before mntent.h.
82923         SunOS 4.1.x needs it for the declaration of `FILE'.
82924         Patch by Volker Borchert.
82925
82926         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
82927         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
82928         sys/fs_types.h, and make the link-test for getfsstat guard #include
82929         directives with appropriate #if HAVE_*_H tests so that we can
82930         detect getfsstat on Apple Darwin1.3.7 systems.
82931         Reported by Nelson Beebe.
82932         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
82933
82934 2001-09-28  Paul Eggert  <eggert@twinsun.com>
82935
82936         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
82937         #defines strtoimax.  Also treat the other strto* functions
82938         like strtoimax.
82939
82940         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
82941         Check for strtoul and strtoumax,
82942         as those declarations are made even in the signed case.
82943         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
82944         Likewise, for strtol and strtoimax.
82945
82946 2001-09-28  Paul Eggert  <eggert@twinsun.com>
82947
82948         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
82949         #defines strtoimax.  Also treat the other strto* functions
82950         like strtoimax.
82951
82952         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
82953         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
82954         (strtoimax, strtoumax): Do not declare if already defined as a macro.
82955
82956 2001-09-26  Jim Meyering  <meyering@lucent.com>
82957
82958         Most macros in unlocked-io.h had the wrong number of arguments.
82959         * lib/gen-uio: New script.
82960         (USE_UNLOCKED_IO): Define to 1 if not already defined.
82961         * lib/unlocked-io.hin: Remove file.
82962         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
82963         rather than trying to embed it here.
82964         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
82965         Reported by Padraig Brady.
82966
82967 2001-09-25  Volker Borchert  <bt@teknon.de>
82968
82969         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
82970         `result'.
82971
82972 2001-09-24  Jim Meyering  <meyering@lucent.com>
82973
82974         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
82975
82976 2001-09-23  Jim Meyering  <meyering@lucent.com>
82977
82978         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
82979         instead of the mere test for existence of mntent.h.  The latter
82980         would get a false-positive on AIX 3.4 systems.
82981         In the outer getmntent if-block, don't die if neither of the getmntent
82982         tests succeeds.  Instead, just fall through and continue with the
82983         remaining tests.
82984
82985 2001-09-23  Jim Meyering  <meyering@lucent.com>
82986
82987         * lib/mountlist.c: Remove useless parentheses in #if directives.
82988         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
82989         the deprecated MOUNTED symbol is no longer defined in mntent.h.
82990
82991 2001-09-22  Jim Meyering  <meyering@lucent.com>
82992
82993         * m4/gettext.m4: New file.  From gettext.
82994         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
82995         * m4/progtest.m4: Likewise
82996         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
82997         * m4/glibc21.m4: Likewise.
82998
82999         * m4/libintl.m4: Remove.  No longer used.
83000
83001 2001-09-22  Jim Meyering  <meyering@lucent.com>
83002
83003         * lib/localcharset.c: Update from latest gettext.
83004         * lib/config.charset: Likewise.
83005
83006 2001-09-20  Jim Meyering  <meyering@lucent.com>
83007
83008         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
83009         strtoimax.
83010         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
83011         strtoumax.
83012
83013 2001-09-20  Jim Meyering  <meyering@lucent.com>
83014
83015         * lib/xstrtol.c (strtoimax): Guard declaration with
83016         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
83017         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
83018         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
83019         (strtoumax): Likewise, for completeness (it wasn't necessary).
83020
83021 2001-09-17  Paul Eggert  <eggert@twinsun.com>
83022
83023         * lib/strtoimax.c (HAVE_LONG_LONG):
83024         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
83025         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
83026         to work around bug in IBM C compiler.
83027
83028 2001-09-17  Jim Meyering  <meyering@lucent.com>
83029
83030         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
83031         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
83032         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
83033         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
83034         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
83035         whenever the right hand side need not be expanded by the shell.
83036
83037 2001-09-16  Paul Eggert  <eggert@twinsun.com>
83038
83039         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
83040         library.  It's not correct, as some older glibcs are buggy.
83041         fnmatch wasn't fixed until glibc 2.2.
83042
83043         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
83044         special shell magic here.
83045
83046 2001-09-16  Jim Meyering  <meyering@lucent.com>
83047
83048         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
83049         * m4/jm-macros.m4: Require it.
83050
83051 2001-09-16  Jim Meyering  <meyering@lucent.com>
83052
83053         * lib/mkdir.c: New file.
83054
83055 2001-09-15  Jim Meyering  <meyering@lucent.com>
83056
83057         * m4/jm-macros.m4: Check for help2man.
83058
83059 2001-09-11  Jim Meyering  <meyering@lucent.com>
83060
83061         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
83062         The body, by Paul Eggert, was moved here from configure.in.
83063         * m4/jm-macros.m4: Require UTILS_HOST_OS.
83064
83065 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83066
83067         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
83068         (jm_PREREQ): Use it.
83069
83070 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83071
83072         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
83073         Use ssize_t, not int, to store result of readlink.
83074         Check for ssize_t overflow as well as size_t overflow,
83075         as POSIX says the result of readlink is implementation-defined
83076         when ssize_t overflows.
83077         Remove unnecessary cast to char*.
83078         Use free+malloc instead of realloc, as the storage doesn't need
83079         to be preserved and it's clearer and can be more efficient that way.
83080         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
83081         * lib/xreadlink.h (xreadlink): Update prototype.
83082
83083 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83084
83085         * lib/xgetcwd.c: Revert some of the previous change; intead,
83086         fix the HAVE_GETCWD_NULL code to behave more like the
83087         !HAVE_GETCWD_NULL code used to.
83088
83089         Include "xalloc.h".
83090         (xgetcwd): Do not return NULL when memory is exhausted; instead,
83091         invoke xalloc_die.
83092
83093 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83094
83095         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
83096         sys/param.h, as pathmax.h includes them.
83097
83098 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83099
83100         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
83101         (jm_PREREQ_XGETCWD): New macro.
83102
83103         * m4/getcwd.m4: New file.
83104
83105 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83106
83107         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
83108         like the HAVE_GETCWD_NULL code.
83109         Include pathmax.h if not HAVE_GETCWD.
83110         Do not include xalloc.h.
83111         (INITIAL_BUFFER_SIZE): New symbol.
83112         Do not use xmalloc / xrealloc, since the caller is responsible for
83113         handling errors.  Preserve errno around `free' during failure.
83114         Do not overrun buffer when using getwd.
83115
83116 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83117
83118         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
83119         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
83120         getcwd (NULL, 0).
83121
83122 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83123
83124         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
83125         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
83126         spotted by Jim Meyering.
83127
83128 2001-09-03  Jim Meyering  <meyering@lucent.com>
83129
83130         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
83131         failure.
83132
83133 2001-09-02  Jim Meyering  <meyering@lucent.com>
83134
83135         * lib/error.c: Update from GNU libc.
83136
83137 2001-09-01  Jim Meyering  <meyering@lucent.com>
83138
83139         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
83140         Used by df.
83141
83142 2001-09-01  Jim Meyering  <meyering@lucent.com>
83143
83144         * lib/xreadlink.c: New file.
83145         * lib/xreadlink.h: New file.
83146         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
83147         xreadlink.h.
83148
83149         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
83150         doesn't conflict with sparc Solaris 7's definition in
83151         /usr/include/sys/int_types.h.
83152
83153         * lib/exclude.c: Use `""', not `<>' to #include non-system header
83154         files.
83155         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
83156         and strncasecmp as r-values.  Unixware didn't have declarations.
83157
83158 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83159
83160         * lib/xstrtol.h: Add copyright notice.
83161         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
83162         LONGINT_INVALID_SUFFIX_CHAR.
83163
83164 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83165
83166         * lib/xstrtol.c (strtoimax): New decl.
83167
83168 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83169
83170         * lib/xgetcwd.c: Don't include pathmax.h.
83171         Include stdlib.h and unistd.h if available.
83172         Include xalloc.h.
83173         (xmalloc, xstrdup, free): Remove decls.
83174         (xgetcwd): Don't assume sizes fit in unsigned.
83175         Check for overflow when computing sizes.
83176         Simplify reallocation code.
83177
83178 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83179
83180         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
83181         a directory's st_size can have an arbitrary value, so the old
83182         usage could waste an arbitrary amount of memory.  All uses
83183         changed.
83184         * lib/savedir.h: Update prototype.
83185
83186 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83187
83188         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
83189
83190         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
83191         old strtoimax.c.
83192
83193         Also, make the following further changes to make this file's
83194         configuration more similar to that of strtol.c:
83195         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
83196         (strtoumax, uintmax_t, strtoull, strtol): Remove.
83197         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
83198         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
83199         changed to signed values.
83200
83201         And make the following changes as well:
83202         Fix copyright notice, as 1999 was missing.
83203         (verify): New macro.
83204         (strtoimax): Check sizes at compile-time, not run-time.
83205         Prefer strtol to strtoll if both work.
83206         (main): Remove; it was not that useful and was a pain to maintain.
83207
83208         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
83209
83210 2001-08-31  Jim Meyering  <meyering@lucent.com>
83211
83212         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
83213         Use an initial, malloc'd, buffer of length 128 rather than
83214         a statically allocated one of length 1024.
83215
83216 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83217
83218         Simplify code, partly by assuming autoconf 2.52 semantics.
83219
83220         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
83221
83222         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
83223         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
83224         All uses removed.
83225         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
83226         Move AC_REQUIRE to next-to-top level, to avoid confusion.
83227         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
83228         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
83229         jm_AC_HEADER_INTTYPES_H.
83230         * m4/jm-macros.m4 (jm_MACROS): Likewise.
83231
83232         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
83233
83234         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
83235         Quote first arg of AC_DEFUN.
83236         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
83237         since they are needed to parse the include file even if we need
83238         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
83239         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
83240         but with opposite signedness.
83241
83242 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83243
83244         Merge 'exclude' changes from tar 1.13.22.
83245         This fixes one or two unlikely storage allocation overflow bugs,
83246         but doesn't change user-visible behavior otherwise.
83247
83248 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83249
83250         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
83251         (jm_PREREQ_EXCLUDE): New macro.
83252
83253 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83254
83255         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
83256         tm to be declared.
83257
83258 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83259
83260         * lib/hash.c: Remove '2001' from copyright notice.
83261
83262 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83263
83264         * lib/full-write.h: New file.
83265         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
83266         * lib/full-write.c: Correct credits, as cccp.c no longer
83267         exists and anyway it was so heavily changed from the old cccp
83268         code as to be unrecognizable.  Include full-write.h.
83269         (full_write): Return size_t, with short writes meaning failure.
83270         All callers changed.  This fixes a bug with large buffers
83271         on 64-bit hosts.
83272         * lib/utime.c: Include full-write.h.
83273
83274 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83275
83276         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
83277         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
83278         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
83279         Include if available.
83280         (<xalloc.h>): Include
83281         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
83282         (verify): New macro.  Use it to verify that EXCLUDE macros do not
83283         collide with FNM macros.
83284         (struct patopts): New struct.
83285         (struct exclude): Use it, as exclude patterns now come with options.
83286         (new_exclude): Support above changes.
83287         (new_exclude, add_exclude_file):
83288         Initial size must now be a power of two to simplify overflow checking.
83289         (free_exclude, fnmatch_no_wildcards): New function.
83290         (excluded_filename): No longer requires options arg, as the options
83291         are determined by add_exclude.  Now returns bool, not int.
83292         (excluded_filename, add_exclude):
83293         Add support for the fancy new exclusion options.
83294         (add_exclude, add_exclude_file): Now takes int options arg.
83295         Check for arithmetic overflow when computing sizes.
83296         (add_exclude_file): xrealloc might modify errno, so don't
83297         realloc until after errno might be used.
83298
83299         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
83300         New macros.
83301         (free_exclude): New decl.
83302         (add_exclude, add_exclude_file): Now takes int options arg.
83303         (excluded_filename): No longer requires options arg, as the options
83304         are determined by add_exclude.  Now returns bool, not int.
83305
83306 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83307
83308         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
83309
83310 2001-08-27  Jim Meyering  <meyering@lucent.com>
83311
83312         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
83313
83314         * lib/version-etc.c (N_): Remove definition.
83315         Revert most of last change.
83316         Instead, simply don't mark the `Copyright...' string for translation.
83317         Based on advice from Paul Eggert.
83318
83319         * lib/strtoxmax.c: Tweak comment.
83320
83321 2001-08-26  Jim Meyering  <meyering@lucent.com>
83322
83323         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
83324
83325         * m4/xstrtoimax.m4: New file.
83326         * m4/xstrtoumax.m4: Add comments explaining why we
83327         AC_REPLACE_FUNCS(strtol).
83328
83329 2001-08-26  Jim Meyering  <meyering@lucent.com>
83330
83331         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
83332         of copyright with `%s' so translators don't get an untranslated
83333         message in 2002.
83334         (COPYRIGHT_YEAR): Define.
83335         (version_etc): Use fprintf rather than fputs.
83336         Suggestion from Ulrich Drepper.
83337
83338         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
83339
83340         * lib/strtoll.c: New file, from GNU libc.
83341         * lib/xstrtoimax.c: New file.
83342
83343         * lib/xstrtol.h: Add xstrtoimax.
83344         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
83345         * lib/strtoimax.c: New file.  Likewise, but first define
83346         STRTOUXMAX_SIGNED.
83347
83348         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
83349         ...
83350         * lib/strtoxmax.c: ... then renamed to this.
83351
83352 2001-08-18  Paul Eggert  <eggert@twinsun.com>
83353
83354         * m4/inttypes.m4: Add AC_PREREQ(2.13).
83355         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
83356         (jm_AC_TYPE_INTMAX_T): New macro.
83357         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
83358
83359         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
83360
83361         * m4/longlong.m4: Renamed from ulonglong.m4.
83362         * m4/inttypes.m4: Renamed from inttypes_h.m4.
83363         * m4/uintmax_t.m4: Removed.
83364
83365 2001-08-13  Paul Eggert  <eggert@twinsun.com>
83366
83367         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
83368         Port to Solaris 8, where 'sed' requires a space after the 'r'
83369         command, and where sh dislikes "$/".  Clean up the spacing a bit.
83370         Redirect output to $tmp just once.
83371
83372 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
83373
83374         * lib/addext.c (<errno.h>): Include.
83375         (errno): Declare if not defined.
83376         (addext): Work correctly when pathconf returns -1 and leaves
83377         errno alone because there is no limit.  Also, work even if
83378         pathconf returns a value greater than SIZE_MAX.
83379
83380 2001-08-12  Jim Meyering  <meyering@lucent.com>
83381
83382         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
83383         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
83384         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
83385         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
83386         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
83387         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
83388         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
83389         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
83390         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
83391         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
83392         utime.m4, utimes.m4, xstrtoumax.m4:
83393         Quote the first argument in each use of AC_DEFUN.
83394
83395 2001-08-12  Jim Meyering  <meyering@lucent.com>
83396
83397         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
83398         Simply `return getcwd (NULL, 0);'.
83399         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
83400         Use 1300 as initial value for length, not PATH_MAX.
83401
83402         * lib/pathmax.h: Clean up cpp syntax.
83403
83404 2001-08-12  Jim Meyering  <meyering@lucent.com>
83405
83406         * lib/gettimeofday.c: New file.
83407         * lib/gtod.h: New file.
83408         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
83409
83410 2001-08-05  Jim Meyering  <meyering@lucent.com>
83411
83412         * m4/jm-macros.m4: Require autoconf-2.52.
83413
83414 2001-08-04  Jim Meyering  <meyering@lucent.com>
83415
83416         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
83417         stmt, to get in sync with glibc.
83418
83419 2001-08-03  Paul Eggert  <eggert@twinsun.com>
83420
83421         The following changes are from gettext 0.10.39 as maintained by
83422         Bruno Haible.
83423
83424         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
83425         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
83426         with inverted sense.  All uses changed.
83427
83428         * lib/mbswidth.c: Don't include <limits.h>.
83429         Include <stdlib.h> and <string.h> unconditionally.
83430         (iswcntrl, mbsinit, ISCNTRL): New macros.
83431         (mbsnwidth): Use K&R style function declarations.
83432         Don't bother checking for MB_LEN_MAX == 1, since the compiler
83433         can optimize it when MB_CUR_MAX == 1.
83434         The width of control characters is zero, not 1.
83435
83436 2001-08-03  Paul Eggert  <eggert@twinsun.com>
83437
83438         The following changes are from gettext 0.10.39 as maintained by
83439         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
83440
83441         * m4/codeset.m4: Upgrade to serial AM1.
83442         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
83443         all uses changed.  Quote first arg of AC_DEFUN.
83444         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
83445
83446         * m4/iconv.m4: Upgrade to serial AM2.
83447         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
83448         Add --with-libconv-prefix.
83449         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
83450         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
83451         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
83452         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
83453         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
83454
83455         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
83456         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
83457         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
83458         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
83459         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
83460         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
83461         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
83462         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
83463         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
83464
83465         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
83466         string.h any more.
83467
83468         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
83469         not the default value.
83470
83471         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
83472         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
83473         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
83474         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
83475         Also check for iswcntrl, used for wcwidth fallback.
83476         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
83477         to Autoconf 2.13.
83478
83479 2001-08-03  Jim Meyering  <meyering@lucent.com>
83480
83481         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
83482         as it was in the original.  Reported by Paul Eggert.
83483
83484 2001-07-16  Jim Meyering  <meyering@lucent.com>
83485
83486         * m4/gettimeofday.m4: New file.
83487         Prompted by a report from Bernhard Baehr.
83488
83489 2001-07-15  Jim Meyering  <meyering@lucent.com>
83490
83491         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
83492         stuff. Now it's in ../Makefile.cfg.
83493
83494 2001-07-15  Jim Meyering  <meyering@lucent.com>
83495
83496         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
83497         (BUILT_SOURCES): Add unlocked-io.h.
83498         (io_functions): Define.
83499         (unlocked-io.h): New rule.
83500         (DISTCLEANFILES): Add unlocked-io.h.
83501         (all-local): Depend on unlocked-io.h, to ensure it is created.
83502
83503         * lib/unlocked-io.hin: New file
83504
83505         * lib/regex.c: Update from glibc.
83506
83507 2001-07-05  Jim Meyering  <meyering@lucent.com>
83508
83509         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
83510         recommendation.
83511         (libfetish_a_SOURCES): Put all .h files here instead.
83512         Remove a thus-exposed (better checks in automake) duplicate and
83513         two unnecessary .h files.
83514
83515 2001-07-04  Jim Meyering  <meyering@lucent.com>
83516
83517         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
83518         that generates jm-glibc-io.m4 so that it doesn't trigger any make
83519         distcheck failure.
83520
83521 2001-07-02  Jim Meyering  <meyering@lucent.com>
83522
83523         The following changes were prompted by suggestions from Bruno Haible.
83524
83525         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
83526         is now generated.
83527         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
83528         definition of EXTRA_DIST.
83529         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
83530         ensure that the generated file is created/updated whenever the list
83531         of $(unlocked_functions) is changed.
83532         (jm-glibc-io.m4): New rule.
83533         (unlocked-io.h): New rule -- currently unused.
83534
83535 2001-06-24  Jim Meyering  <meyering@lucent.com>
83536
83537         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
83538         unmatched right bracket, rather than kludging it with an extra,
83539         falsely-matching quote in a comment.  Patch by Akim Demaille.
83540
83541 2001-06-11  Jim Meyering  <meyering@lucent.com>
83542
83543         * lib/regex.c: Update from GNU libc.
83544
83545 2001-05-27  Jim Meyering  <meyering@lucent.com>
83546
83547         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
83548         Check for ut_type in struct utmp.
83549
83550 2001-05-27  Jim Meyering  <meyering@lucent.com>
83551
83552         * lib/readutmp.h (UT_TYPE): Define.
83553
83554 2001-05-24  Jim Meyering  <meyering@lucent.com>
83555
83556         * lib/argmatch.c: Include "quote.h".
83557         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
83558         quote function.  Reported by Göran Uddeborg.
83559
83560 2001-05-22  Jim Meyering  <meyering@lucent.com>
83561
83562         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
83563         now that we use the package-supplied version unconditionally.
83564         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
83565
83566 2001-05-21  Jim Meyering  <meyering@lucent.com>
83567
83568         * m4/regex.m4: Change a couple backticks to single quotes to avoid
83569         shell syntax errors.
83570
83571 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
83572
83573         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
83574
83575 2001-05-20  Paul Eggert  <eggert@twinsun.com>
83576
83577         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
83578         Don't bother to check library strftime, since
83579         we'll be using our own my_strftime function anyway.
83580         Define my_strftime instead of strftime.
83581
83582 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
83583
83584         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
83585         which is not yet declared.
83586
83587 2001-05-15  Jim Meyering  <meyering@lucent.com>
83588
83589         * m4/regex.m4: Use proper quoting so brackets appear in the test
83590         program.
83591         Reported by, and with help from, Bruno Haible.
83592
83593 2001-05-13  Jim Meyering  <meyering@lucent.com>
83594
83595         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
83596         undefined.
83597
83598 2001-05-11  Paul Eggert  <eggert@twinsun.com>
83599
83600         dirname code cleanup.  base_name now behaves more compatibly
83601         with POSIX basename when given file names that have trailing
83602         slashes, and similarly for dir_name.  Add new primitives
83603         base_len and dir_len.  Put the directory-name-related decls
83604         into dirname.h.
83605
83606         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
83607         * lib/backupfile.c (base_name): Likewise.
83608         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
83609         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
83610         * lib/makepath.c (strip_trailing_slashes): Likewise.
83611         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
83612         ISSLASH): Likewise.
83613         * lib/rename.c (strip_trailing_slashes): Likewise.
83614         * lib/same.c (base_name): Likewise.
83615         * lib/stripslash.c (ISSLASH): Likewise.
83616
83617         * lib/addext.c: Include <dirname.h> after size_t is defined.
83618         * lib/backupfile.c: Likewise.
83619
83620         * lib/addext.c (addext): Use base_len to trim redundant
83621         trailing slashes instead of doing it ourselves.
83622         But do not trim the last slash if it is not redundant.
83623
83624         * lib/backupfile.c (find_backup_file_name,
83625         max_backup_version): Use base_len instead of rolling it ourselves.
83626         Handle the case of "" and (on DOS) "C:" correctly.
83627
83628         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
83629         needed. Include <string.h>, <dirname.h>.
83630         (base_name): Allow file names ending in slashes, other than names
83631         that are all slashes.  In this case, return the basename followed
83632         by the slashes.  This is more general, and can be used in places
83633         where the original base_name purposely had an assertion failure.
83634         (base_len): New function.
83635
83636         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
83637         Do not include <assert.h>; no longer needed.
83638         Include xalloc.h.
83639         (memrchr): Remove decl.
83640         (dir_name_r): Remove.
83641         (dir_len): Renamed from dirlen.  All callers changed.
83642         Rewrite in terms of base_name, for simplicity and consistency.
83643         (dir_name): Never return NULL.  All callers changed.
83644         Do not include <stdlib.h> in test program; no longer needed.
83645         return 0; is fine for test program.
83646
83647         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
83648         New macros.
83649         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
83650
83651         * lib/path-concat.c (path_concat): Use base_len to compute
83652         base length, not strlen; this means we cannot rely on memcpy
83653         to null-terminate.
83654
83655         * lib/same.c (STREQ): Remove.
83656         (same_name): Handle the case where the basename ends in trailing '/'.
83657
83658         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
83659         a slash was stripped.  Do not strip the last slash after a
83660         file system prefix.
83661
83662 2001-05-11  Paul Eggert  <eggert@twinsun.com>
83663
83664         * lib/Makefile.am (libfetish_a_SOURCES):
83665         Add strftime.c, since we now compile it on all hosts.
83666
83667         * lib/strftime.c (my_strftime):
83668         Define to nstrftime if emacs, but only if my_strftime is not defined.
83669         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
83670         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
83671         Add one more extra argument: a nanoseconds value.
83672         All uses changed.
83673         (ns): New macro.
83674         (my_strftime function): Add %N format.
83675         (emacs_strftimeu): Renamed from emacs_strftime,
83676         with extra ut argument.
83677
83678 2001-05-09  Paul Eggert  <eggert@twinsun.com>
83679
83680         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
83681
83682 2001-04-21  Jim Meyering  <meyering@lucent.com>
83683
83684         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
83685         doesn't interfere.
83686
83687 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
83688
83689         * m4/ftruncate.m4: Check for chsize.
83690         Link with ftruncate.o unconditionally if ftruncate is missing.
83691         This was required when cross-compiling to i586-mingw32msvc.
83692
83693 2001-04-08  Jim Meyering  <meyering@lucent.com>
83694
83695         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
83696         recomputed; that's necessary when the offset spans a DST transition.
83697         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
83698
83699 2001-04-02  Jim Meyering  <meyering@lucent.com>
83700
83701         * lib/regex.h, regex.c: Update from GNU libc.
83702
83703 2001-03-24  Jim Meyering  <meyering@lucent.com>
83704
83705         * m4/jm-macros.m4: Require autoconf-2.49d.
83706
83707 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
83708
83709         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
83710
83711 2001-03-19  Paul Eggert  <eggert@twinsun.com>
83712
83713         * lib/version-etc.c (version_etc_copyright): Update to 2001.
83714
83715 2001-03-17  Jim Meyering  <meyering@lucent.com>
83716
83717         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
83718         now that the version in autoconf is equivalent.
83719         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
83720
83721         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
83722         Suggestion from Akim Demaille.
83723
83724         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
83725         (jm_PREREQ_TEMPNAME): New function.
83726
83727 2001-03-16  Paul Eggert  <eggert@twinsun.com>
83728
83729         * lib/tempname.c (uint64_t): Define to uintmax_t if
83730         not defined, and if UINT64_MAX is not defined.
83731         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
83732         Reported by John David Anglin.
83733
83734 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
83735
83736         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
83737         resolve alias if codeset is empty.
83738         * lib/config.charset (BeOS): Use wildcard syntax.
83739
83740 2001-03-13  Jim Meyering  <meyering@lucent.com>
83741
83742         * lib/path-concat.c (path_concat)
83743         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
83744         concatenating e.g., `C:' and `foo'.
83745         From Bruno Haible.
83746
83747 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83748
83749         * lib/localcharset.c (locale_charset): Don't use
83750         setlocale(LC_CTYPE,NULL). Don't return NULL.
83751         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
83752
83753 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83754
83755         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
83756         support for DOS/DJGPP.
83757
83758 2001-03-01  Paul Eggert  <eggert@twinsun.com>
83759
83760         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
83761         lacks mkstemp.  Compile our own tempname.c if we compile our own
83762         mkstemp.c, as mkstemp relies on tempname.
83763
83764 2001-03-01  Jim Meyering  <meyering@lucent.com>
83765
83766         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
83767         AH_VERBATIM really does output its argument verbatim.
83768
83769 2001-02-28  Paul Eggert  <eggert@twinsun.com>
83770
83771         * lib/Makefile.am (libfetish_a_SOURCES):
83772         Add dup-safer.c, fopen-safer.c.
83773         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
83774
83775         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
83776         * lib/unistd-safer.h: New files.
83777
83778 2001-02-25  Paul Eggert  <eggert@twinsun.com>
83779
83780         The mkstemp replacement is taken from glibc 2.2.2, with some
83781         portability fixes for use outside glibc, as follows:
83782
83783         * lib/tempname.c (struct_stat64): New macro.
83784         (direxists, __gen_tempname): Use it.
83785         This avoids a portability problem with Solaris 8.
83786
83787         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
83788         (<stddef.h>, <stdint.h>, <string.h>):
83789         Include only if STDC_HEADERS || _LIBC.
83790         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
83791         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
83792         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
83793         (__set_errno): Define this macro if <errno.h> doesn't.
83794         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
83795         Define these macros if <stdio.h> doesn't.
83796         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
83797         Define these macros if <sys/stat.h>
83798         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
83799         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
83800         __xstat64): Define if not _LIBC.
83801         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
83802         (__gen_tempname): Invoke gettimeofday only if
83803         HAVE_GETTIMEOFDAY || _LIBC;
83804         otherwise, fall back on plain "time".
83805         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
83806
83807         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
83808
83809         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
83810
83811 2001-02-18  Paul Eggert  <eggert@twinsun.com>
83812
83813         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
83814
83815 2001-02-17  Paul Eggert  <eggert@twinsun.com>
83816
83817         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
83818         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
83819         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
83820         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
83821
83822 2001-02-17  Paul Eggert  <eggert@twinsun.com>
83823
83824         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
83825         Remove workaround macros for hosts that have mbrtowc but not
83826         mbstate_t, as we now insist on proper declarations for both
83827         before using mbrtowc.
83828
83829 2001-02-17  Jim Meyering  <meyering@lucent.com>
83830
83831         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
83832         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
83833         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
83834         UnixWare 7.1.1.
83835
83836         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
83837         rather than AC_CACHE_VAL.
83838
83839 2001-02-17  Jim Meyering  <meyering@lucent.com>
83840
83841         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
83842         around included file name.
83843
83844         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
83845
83846         * lib/strftime.c: Update from GNU libc (the only changes were to
83847         comments).
83848
83849 2001-02-17  Jim Meyering  <meyering@lucent.com>
83850
83851         * lib/regex.c: Update from libc.
83852
83853 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
83854
83855         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
83856         clash.
83857
83858 2001-02-16  Paul Eggert  <eggert@twinsun.com>
83859
83860         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
83861         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
83862         Reported by Mark Hounschell via Paul Eggert.
83863
83864 2001-02-07  Jim Meyering  <meyering@lucent.com>
83865
83866         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
83867
83868 2001-02-05  Jim Meyering  <meyering@lucent.com>
83869
83870         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
83871         it includes the patch required for `large file' support with at least
83872         HP-UX's 10.20 /bin/cc.
83873
83874 2001-02-03  Jim Meyering  <meyering@lucent.com>
83875
83876         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
83877         AS_IF, now that it works once again (mysteriously).
83878         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
83879
83880 2001-01-30  Jim Meyering  <meyering@lucent.com>
83881
83882         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
83883         * m4/chown.m4: Rename conftestchown to conftest.chown.
83884         * m4/rename.m4: s/conftestdir/conftest.d1/ and
83885         s/conftestdir2/conftest.d2/.
83886         * m4/utimes.m4: s/conftestdata/conftest.data/
83887         Inspired by Pavel Roskin's change in autoconf.
83888
83889 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
83890
83891         * lib/config.charset: Update for FreeBSD 4.2.
83892
83893 2001-01-27  Jim Meyering  <meyering@lucent.com>
83894
83895         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
83896         a use of AS_IF.
83897         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
83898
83899 2001-01-26  Jim Meyering  <meyering@lucent.com>
83900
83901         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
83902         quotearg.c includes it.
83903
83904 2001-01-26  Jim Meyering  <meyering@lucent.com>
83905
83906         * lib/quotearg.c: Include stddef.h.
83907         * lib/quote.c: Include stddef.h.
83908         Reported by Axel Kittenberger.
83909
83910         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
83911         line in double quotes so that it evokes a better diagnostic.
83912         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
83913         Reported by Axel Kittenberger.
83914
83915 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
83916
83917         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
83918         as if it was a `charset'.
83919
83920 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
83921
83922         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
83923         has const.
83924
83925 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
83926
83927         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
83928         to avoid a warning.  Add back 'const' to inptr.
83929
83930 2001-01-20  Jim Meyering  <meyering@lucent.com>
83931
83932         Be sure that headers are checked before used in code compiled
83933         for the type checks.
83934         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
83935         In place of that, invoke jm_CHECK_ALL_TYPES.
83936         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
83937         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
83938         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
83939         The check for ssize_t was mistakenly run before the test for unistd.h.
83940
83941         The configure-time check for stdbool.h was missing.
83942         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
83943         (jm_PREREQ_HASH): New function.
83944
83945 2001-01-17  Jim Meyering  <meyering@lucent.com>
83946
83947         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
83948         for autoconf-2.49c.
83949         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
83950
83951 2001-01-16  Jim Meyering  <meyering@lucent.com>
83952
83953         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
83954         From Bruno Haible.
83955
83956 2001-01-14  Jim Meyering  <meyering@lucent.com>
83957
83958         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
83959         foo and bar.  Create conftestdir/ in the script, not in the C code.
83960         Remove directories in the script, not in the C code.
83961         Remove conftestdir{,2} before trying to create the directory.
83962         Make the entire configure script fail if the mkdir fails.
83963
83964 2001-01-14  Jim Meyering  <meyering@lucent.com>
83965
83966         * lib/rename.c: New file.  From Volker Borchert.
83967         Include stdlib.h, string.h or strings.h, and xalloc.h.
83968         Use strip_trailing_slashes rather than open-coding it.
83969
83970 2001-01-03  Paul Eggert  <eggert@twinsun.com>
83971
83972         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
83973
83974 2001-01-03  Jim Meyering  <meyering@lucent.com>
83975
83976         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
83977         of local `inptr' to avoid warning with some system declarations of
83978         iconv.
83979
83980 2001-01-02  Volker Borchert  <bt@teknon.de>
83981
83982         * m4/rename.m4: New file.
83983         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
83984
83985 2001-01-01  Jim Meyering  <meyering@lucent.com>
83986
83987         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
83988         even on systems with utmpx.h.  It's necessary for the declaration of
83989         utmp's ut_user member.  Reported by Andreas Jaeger.
83990
83991         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
83992         available. They are required for the declarations of getgrgid and
83993         getpwuid resp.
83994         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
83995         Reported by Andreas Jaeger.
83996
83997 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
83998
83999         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
84000         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
84001         so `make install' also works in VPATH builds.
84002
84003 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
84004
84005         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
84006         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
84007         can be used in subdirectories.
84008
84009 2000-12-29  Paul Eggert  <eggert@twinsun.com>
84010
84011         * lib/modechange.c: Do not assume that mode_t uses the
84012         traditional octal encoding.  E.g. "chmod 1 FOO" should set
84013         the other-execute bit of FOO even if S_IXOTH != 1.
84014
84015         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
84016         WOTH, XOTH, ALLM): New macros.
84017         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
84018          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
84019         Use them.
84020         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
84021         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
84022         (mode_compile):
84023         No need to use uintmax_t; unsigned long is long enough.
84024         Don't bother to get suffix since we don't use it.
84025
84026 2000-12-26  Jim Meyering  <meyering@lucent.com>
84027
84028         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
84029         better with autoheader.
84030
84031 2000-12-24  Jim Meyering  <meyering@lucent.com>
84032
84033         * lib/hash.c (is_prime): Return explicit boolean values.
84034         (hash_get_first): Return NULL to appease Irix5.6's 89.
84035         Reported by Nelson Beebe.
84036
84037 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
84038
84039         * lib/localcharset.c (locale_charset): Add support for Win32.
84040
84041 2000-12-18  Paul Eggert  <eggert@twinsun.com>
84042
84043         * lib/physmem.h, lib/physmem.c: New files.
84044
84045         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
84046         (noinst_HEADERS): Add physmem.h.
84047
84048         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
84049         't' for compatibility with Solaris 8 sort.
84050
84051 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
84052
84053         * lib/config.charset: Add support for BeOS.
84054
84055 2000-12-17  Jim Meyering  <meyering@lucent.com>
84056
84057         * m4/dos.m4 (jm_AC_DOS): New file and macro.
84058         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
84059
84060 2000-12-16  Jim Meyering  <meyering@lucent.com>
84061
84062         This bug had a serious impact on chown: `chown N:M FILE' (for integer
84063         N and M) would have treated it like `chown N:N FILE'.
84064
84065         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
84066
84067 2000-12-16  Jim Meyering  <meyering@lucent.com>
84068
84069         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
84070         SHELLS_FILE to a file name that's useful on djgpp systems.
84071         Include stdlib.h.
84072         (ADDITIONAL_DEFAULT_SHELLS): Define.
84073         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
84074         Based mostly on a patch from Prashant TR.
84075
84076 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
84077
84078         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
84079         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
84080         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
84081
84082 2000-12-08  Andreas Schwab  <schwab@suse.de>
84083
84084         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
84085         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
84086
84087 2000-12-07  Jim Meyering  <meyering@lucent.com>
84088
84089         * lib/stripslash.c (ISSLASH): Define.
84090         (strip_trailing_slashes): Use ISSLASH rather than comparing against
84091         `/'.
84092         From Prashant TR.
84093
84094         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
84095         (dir_name_r): Declare this function as static.
84096         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
84097         manifest itself on a name containing a mix of slashes and
84098         backslashes.
84099         Make this function work with names starting with a DOS-style
84100         drive letter and colon prefix.
84101         (dir_name): Append `.' if necessary.
84102         Based mostly on patches from Prashant TR and Eli Zaretskii.
84103
84104         * lib/dirname.h (dir_name_r): Remove prototype.
84105
84106 2000-12-06  Paul Eggert  <eggert@twinsun.com>
84107
84108         * m4/off_t-format.m4: Remove this file.
84109         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
84110
84111 2000-12-06  Jim Meyering  <meyering@lucent.com>
84112
84113         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
84114         replacement strtoull, we may well need the replacement strtoul, too.
84115         Check for declarations of strtoul and strtoull.
84116         Check for strtol.  Mainly as a cue to cause automake to include
84117         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
84118         Check for limits.h -- strtol.c needs it.
84119
84120 2000-12-05  Jim Meyering  <meyering@lucent.com>
84121
84122         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
84123
84124 2000-12-04  Jim Meyering  <meyering@lucent.com>
84125
84126         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
84127         Also include memory.h, stdlib.h, unistd.h if appropriate.
84128         Reported by Andreas Jaeger (conflicting declaration of malloc).
84129
84130 2000-12-02  Jim Meyering  <meyering@lucent.com>
84131
84132         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
84133         * m4/jm-macros.m4 (jm_MACROS): require it.
84134
84135 2000-12-02  Jim Meyering  <meyering@lucent.com>
84136
84137         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
84138
84139 2000-12-01  Paul Eggert  <eggert@twinsun.com>
84140
84141         * lib/memrchr.c: Include <config.h> before any system include file.
84142
84143 2000-11-30  Jim Meyering  <meyering@lucent.com>
84144
84145         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
84146
84147 2000-11-30  Jim Meyering  <meyering@lucent.com>
84148
84149         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
84150
84151 2000-11-29  Paul Eggert  <eggert@twinsun.com>
84152
84153         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
84154
84155 2000-11-26  Jim Meyering  <meyering@lucent.com>
84156
84157         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
84158
84159 2000-11-22  Paul Eggert  <eggert@twinsun.com>
84160
84161         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
84162         size of (size_t) -1; it's not portable.
84163
84164 2000-11-17  Jim Meyering  <meyering@lucent.com>
84165
84166         * lib/strstr.c: Update from GNU libc.
84167
84168 2000-11-17  Akim Demaille  <akim@epita.fr>
84169
84170         * lib/obstack.h: Formatting changes.
84171         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
84172         prevent type checking.
84173         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
84174         cast the value to (void *): assigning a `foo *' to a `void *'
84175         variable is valid.
84176         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
84177
84178 2000-11-16  Jim Meyering  <meyering@lucent.com>
84179
84180         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
84181
84182 2000-11-11  Jim Meyering  <meyering@lucent.com>
84183
84184         * lib/error.c: Add a couple #includes, merging from GNU libc version.
84185
84186 2000-11-10  Jim Meyering  <meyering@lucent.com>
84187
84188         * lib/obstack.h: Update from GNU libc.
84189         * lib/obstack.c: Likewise.
84190
84191 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
84192
84193         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
84194
84195 2000-11-06  Paul Eggert  <eggert@twinsun.com>
84196
84197         * lib/getusershell.c (setusershell): Use rewind rather than
84198         fseek/fseeko, to avoid configuration hassles with fseeko.
84199         Don't bother opening SHELLS_FILE if shellstream is NULL;
84200         it's not necessary.
84201
84202 2000-11-05  Jim Meyering  <meyering@lucent.com>
84203
84204         * lib/makepath.h (make_dir): Declare.
84205         * lib/makepath.c (make_dir): Remove `static' attribute.
84206         Tweak a comment.
84207
84208 2000-11-04  Jim Meyering  <meyering@lucent.com>
84209
84210         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
84211
84212 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
84213
84214         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
84215         last one in a bucket, advance to the next bucket.
84216
84217 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
84218
84219         * lib/fnmatch.c: Do not comment out all the code if we are using
84220         the GNU C library, because in some cases we are replacing buggy
84221         code in the GNU C library itself.
84222
84223 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
84224
84225         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
84226         (regex_compile): Catch bogus \(\1\).
84227
84228 2000-10-30  Paul Eggert  <eggert@twinsun.com>
84229
84230         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
84231         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
84232         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
84233
84234 2000-10-30  Paul Eggert  <eggert@twinsun.com>
84235
84236         * lib/error.h, getline.h, modechange.h:
84237         Remove "2000" from Copyright line, as the file hasn't been
84238         changed this year other than in the copyright notice.
84239
84240         * lib/xalloc.h: Add "2000" to Copyright line, as this file
84241         was changed this year.
84242
84243 2000-10-29  Jim Meyering  <meyering@lucent.com>
84244
84245         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
84246         renaming.
84247         * m4/ls-mntd-fs.m4: Likewise
84248
84249 2000-10-29  Jim Meyering  <meyering@lucent.com>
84250
84251         * lib/xstat.in: Fix grammar in comment.
84252
84253 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
84254
84255         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
84256         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
84257         doesn't define __restrict_arr.
84258
84259 2000-10-28  Jim Meyering  <meyering@lucent.com>
84260
84261         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
84262         (jm_PREREQ_MEMCHR): New function.
84263
84264 2000-10-28  Jim Meyering  <meyering@lucent.com>
84265
84266         * lib/memchr.c: Update from libc.
84267         Adjust for portability:
84268         [HAVE_STDLIB_H]: Include stdlib.h.
84269         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
84270         Undef __memchr, too.
84271         [!weak_alias]: Define __memchr to memchr.
84272
84273         * lib/regex.c: Update from libc.
84274         * lib/regex.h: Likewise.
84275         * lib/getopt1.c: Likewise.
84276         * lib/memcmp.c: Likewise.
84277
84278         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
84279         Avoid using fseek, when possible -- it's broken by design.
84280         Patch by Ulrich Drepper.
84281
84282 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
84283
84284         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
84285         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
84286         Giving in to popular pressure to shut up the compiler with casts.
84287
84288 2000-10-26  Jim Meyering  <meyering@lucent.com>
84289
84290         * lib/strftime.c: Update from libc.
84291
84292 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
84293
84294         * regex.c: More `unsigned char' -> `re_char' changes.
84295         Also change several `int' into `re_wchar_t'.
84296         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
84297         (PUSH_FAILURE_POINTER): Don't cast any more.
84298         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
84299         We want GCC to complain, since this piece of code makes
84300         re_match non-reentrant, which *should* be fixed.
84301         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
84302         (EXTEND_BUFFER): Use RETALLOC.
84303         (SET_LIST_BIT): Don't cast.
84304         (re_wchar_t): New type.
84305         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
84306         that those two functions will always properly return.
84307         (IMMEDIATE_QUIT_CHECK): Cast to void.
84308         (analyse_first): Use recursion rather than an explicit stack.
84309         (re_compile_fastmap): Can't fail anymore.
84310         (re_search_2): Don't check re_compile_fastmap for failure.
84311         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
84312         Now also sets the new value (passed in a new argument).
84313         (re_match_2_internal): Use it.
84314         Also, use a new var `reg' of type size_t when looping through regs
84315         rather than reuse the inappropriate `mcnt'.
84316
84317 2000-10-25  Jim Meyering  <meyering@lucent.com>
84318
84319         * lib/obstack.c: Update from libc.
84320
84321 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
84322
84323         * regex.c (regex_compile): Change the way of handling a range from
84324         a char less than 256 to a char not less than 256.
84325
84326 2000-10-24  Andrew Innes  <andrewi@gnu.org>
84327
84328         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
84329         NT-Emacs only.
84330         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
84331         so that re_search functions only quit when callers expect them to.
84332
84333 2000-10-23  Jim Meyering  <meyering@lucent.com>
84334
84335         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
84336         wrong.  That set_locale call must not have any side effects.
84337         From Paul Eggert.
84338
84339 2000-10-22  Jim Meyering  <meyering@lucent.com>
84340
84341         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
84342         [CYCLIC]: Remove now-unused definition.
84343
84344         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
84345         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
84346         Suggestion from Ulrich Drepper.
84347
84348 2000-10-21  Jim Meyering  <meyering@lucent.com>
84349
84350         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
84351         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
84352         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
84353
84354 2000-10-21  Jim Meyering  <meyering@lucent.com>
84355
84356         * lib/dirname.c (memrchr): Declare if necessary.
84357         (dir_name): Remove the restriction that there be no
84358         trailing slashes.  Now, this code skips past them, effectively
84359         ignoring them.
84360         [TEST_DIRNAME] (main): New unit tests.
84361
84362         * lib/memrchr.c: New file from GNU libc.
84363         Undef __memrchr, too.
84364         [!weak_alias]: Define __memrchr to memrchr.
84365         Guard weak_alias use with `#ifdef weak_alias'.
84366
84367 2000-10-21  Jim Meyering  <meyering@lucent.com>
84368
84369         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
84370         (dir_name): Use dir_name_r.
84371         * lib/dirname.h (dir_name_r): Declare it.
84372
84373 2000-10-17  Jim Meyering  <meyering@lucent.com>
84374
84375         * lib/quote.h (PARAMS): Define and use.
84376         Reported by Akim Demaille.
84377
84378         * lib/getopt.c: Update from libc.
84379
84380 2000-10-16  Jim Meyering  <meyering@lucent.com>
84381
84382         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
84383         setlocale.
84384         From Jan Fedak.
84385
84386 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
84387
84388         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
84389
84390 2000-09-25  Jim Meyering  <meyering@lucent.com>
84391
84392         * lib/md5.h (rol): Define (from GnuPG).
84393
84394         * lib/sha.c: Give credit (GnuPG) where due.
84395         (M): Use rol rather than open-coding it.
84396         Add a FIXME comment.
84397
84398 2000-09-21  Jim Meyering  <meyering@lucent.com>
84399
84400         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
84401         Reported by Michael Stone.
84402
84403 2000-09-20  Jim Meyering  <meyering@lucent.com>
84404
84405         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
84406         (noinst_HEADERS): Add sha.h.
84407         Based on code from Scott G. Miller and from GnuPG.
84408
84409 2000-09-18  Jim Meyering  <meyering@lucent.com>
84410
84411         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
84412         LIBS. Otherwise, everyone ends up linking with -lelf for some
84413         configurations.
84414         Reported by Mike Stone.
84415
84416 2000-09-15  Jim Meyering  <meyering@lucent.com>
84417
84418         * lib/regex.c: Update from libc.
84419
84420 2000-09-10  Jim Meyering  <meyering@lucent.com>
84421
84422         * lib/getopt.c (_getopt_internal): Update from glibc.
84423
84424 2000-09-09  Jim Meyering  <meyering@lucent.com>
84425
84426         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
84427         think it should be used as a general replacement for isascii.
84428         * lib/fnmatch.c: Likewise.
84429         * lib/mbswidth.c: Likewise
84430         * lib/regex.c: Likewise.
84431
84432         Don't use atoi.
84433         * lib/userspec.c: Include sys/param.h and limits.h.
84434         Include xstrtol.h.
84435         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
84436         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
84437         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
84438         UID, GID.  Check range.
84439
84440 2000-09-06  Jim Meyering  <meyering@lucent.com>
84441
84442         * lib/getopt.c (_getopt_internal): Update from glibc.
84443
84444 2000-08-30  Jim Meyering  <meyering@lucent.com>
84445
84446         * lib/strftime.c: Merge in changes from GNU libc.
84447
84448 2000-08-26  Jim Meyering  <meyering@lucent.com>
84449
84450         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
84451         * m4/fpending.m4: New file.
84452
84453 2000-08-26  Jim Meyering  <meyering@lucent.com>
84454
84455         * lib/closeout.c: Include "__fpending.h".
84456         (close_stdout_status): Return right away if there's nothing to flush.
84457
84458         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
84459         * lib/__fpending.c: New file.
84460         * lib/__fpending.h: New file.
84461
84462 2000-08-20  Jim Meyering  <meyering@lucent.com>
84463
84464         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
84465         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
84466         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
84467
84468 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
84469
84470         Improve fileutils installation on systems where running
84471         programs (like install) can't be unlinked.
84472         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
84473         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
84474
84475 2000-08-07  Paul Eggert  <eggert@twinsun.com>
84476
84477         Standardize on "memory exhausted" instead of "Memory exhausted"
84478         or "virtual memory exhausted".
84479         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
84480         "virtual memory exhausted".
84481         * lib/same.c (same_name): Invoke xalloc_die instead of printing
84482         our own message.
84483         * lib/userspec.c (parse_user_spec): Likewise.
84484         * lib/bumpalloc.h: comment fix
84485         * lib/same.c, userspec.c: Include xalloc.h.
84486
84487         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
84488         not char *const and pointing to a constant array.
84489         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
84490         (xrealloc): Comment fix.
84491
84492         * lib/userspec.c (parse_user_spec):
84493         Don't translate a message until just before returning,
84494         to avoid unnecessary translation.
84495
84496 2000-08-07  Jim Meyering  <meyering@lucent.com>
84497
84498         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
84499         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
84500         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
84501         getgroups.c, gethostname.c, getopt.h, group-member.c,
84502         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
84503         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
84504         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
84505         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
84506         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
84507         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
84508         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
84509         yesno.c: Back out Copyright date changes for each file with no change
84510         this year.  This eases coordination with other programs using the same
84511         source code modules.  From Paul Eggert.
84512
84513 2000-08-06  Paul Eggert  <eggert@twinsun.com>
84514
84515         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
84516         not char, for compatibility with glibc 2.1.3 strftime.c.
84517
84518 2000-08-03  Greg McGary  <greg@mcgary.org>
84519
84520         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
84521         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
84522         (EXTEND_BUFFER): Use them.
84523
84524 2000-08-01  Jim Meyering  <meyering@lucent.com>
84525
84526         * lib/dirname.c (ISSLASH): Define.
84527         (BACKSLASH_IS_PATH_SEPARATOR): Define.
84528         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
84529         both `\' and `/' may be use as path separators.
84530         Based on a patch from Prashant TR.
84531
84532 2000-07-31  Paul Eggert  <eggert@twinsun.com>
84533
84534         * lib/quotearg.c (quotearg_n_options): Don't make the initial
84535         slot vector a constant, since it might get modified.
84536
84537 2000-07-31  Jim Meyering  <meyering@lucent.com>
84538
84539         * lib/xmalloc.c: Use `virtual memory exhausted', not
84540         `Memory exhausted'.
84541         * lib/obstack.c (print_and_abort): Likewise.
84542
84543 2000-07-30  Paul Eggert  <eggert@twinsun.com>
84544
84545         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
84546         buffer, so that the caller can always quote one small
84547         component of a "memory exhausted" message in slot 0.
84548         From a suggestion by Jim Meyering.
84549
84550 2000-07-30  Jim Meyering  <meyering@lucent.com>
84551
84552         * lib/makepath.c (make_path): Quote the other instance, too.
84553
84554         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
84555         (STATIC_BUF_SIZE): Define.
84556         (quotearg_n_options): Use only statically allocated storage when
84557         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
84558         than STATIC_BUF_SIZE.
84559
84560 2000-07-29  Jim Meyering  <meyering@lucent.com>
84561
84562         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
84563         * lib/dirname.c (dir_name): Likewise.
84564
84565         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
84566         `/'.
84567
84568         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
84569         (dir_name): Assert that there are no trailing slashes.
84570
84571 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
84572
84573         * lib/mbswidth.h (mbswidth): Add a flags argument.
84574         (mbswidth): New declaration.
84575         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
84576         * lib/mbswidth.c (mbswidth): Add a flags argument.
84577         (mbsnwidth): New function.
84578
84579 2000-07-24  Jim Meyering  <meyering@lucent.com>
84580
84581         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
84582
84583 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84584
84585         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
84586
84587 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84588
84589         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
84590         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
84591         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
84592         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
84593         invoke multibyte primitives.
84594
84595 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84596
84597         * lib/quotearg.c:
84598         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
84599         so that mbstate_t is always defined.
84600
84601         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
84602         be 1 in at least one GCC installation, and this configuration
84603         error is likely to be common.  Ignoring MB_LEN_MAX hurts
84604         performance on hosts that have mbrtowc but have only unibyte
84605         locales, but I assume these hosts are rare.
84606
84607 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84608
84609         * lib/mbswidth.c (_XOPEN_SOURCE):
84610         Don't define; this causes problems on Solaris 7.
84611         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
84612
84613 2000-07-23  Jim Meyering  <meyering@lucent.com>
84614
84615         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
84616         too: getgrgid, getpwuid, getuid.
84617
84618 2000-07-23  Jim Meyering  <meyering@lucent.com>
84619
84620         * lib/basename.c (base_name): Add an assertion.
84621
84622 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
84623
84624         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
84625         shadow its mbsinit function.
84626
84627 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
84628
84629         * lib/mbswidth.h: New file.
84630         * lib/mbswidth.c: New file.
84631         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
84632         (noinst_HEADERS): Add mbswidth.h.
84633
84634 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
84635
84636         * lib/config.charset: Add support for FreeBSD. Improve support for
84637         HP-UX and IRIX 6.
84638
84639 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
84640
84641         * m4/mbswidth.m4: New file.
84642         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
84643
84644 2000-07-15  Jim Meyering  <meyering@lucent.com>
84645
84646         * lib/makepath.c: Include quote.h.
84647         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
84648         corresponding argument in a `quote (...)' call.
84649         Give better diagnostics.
84650
84651         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
84652         (noinst_HEADERS): Add quote.h.
84653
84654         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
84655         from tar's src/misc.c.
84656         * lib/quote.h: New file.  Prototypes for same.
84657
84658 2000-07-14  Paul Eggert  <eggert@twinsun.com>
84659
84660         From a suggestion by Bruno Haible.
84661         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
84662         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
84663         to decide whether to define the BeOS workaround macro;
84664         this adjusts to the change to AC_MBSTATE_T.
84665
84666 2000-07-14  Jim Meyering  <meyering@lucent.com>
84667
84668         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
84669         jm_AC_TYPE_UINTMAX_T.
84670
84671 2000-07-13  Paul Eggert  <eggert@twinsun.com>
84672
84673         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
84674
84675         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
84676         quotearg_buffer_restyled): Add support for
84677         clocale_quoting_style.  Undo previous change to
84678         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
84679         and "{RIGHT QUOTATION MARK}" msgids.
84680
84681 2000-07-10  Paul Eggert  <eggert@twinsun.com>
84682
84683         From a suggestion by Bruno Haible.
84684         * m4/mbstate_t.m4 (AC_MBSTATE_T):
84685         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
84686         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
84687         and mbstate_t, to a single-part test that simply defines mbstate_t.
84688         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
84689         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
84690
84691 2000-07-10  Jim Meyering  <meyering@lucent.com>
84692
84693         * m4/strerror_r.m4: Mirror the correction made in autoconf.
84694
84695         * m4/gnu-source.m4: Output to confdefs.h directly.
84696         Suggestion from Akim Demaille.
84697
84698 2000-07-09  Paul Eggert  <eggert@twinsun.com>
84699
84700         The old behavior of quoting `like this' doesn't look good with
84701         newer, ISO-style fonts.  See:
84702         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
84703
84704         Instead, quote "like this" by default.  Let the translator
84705         tailor the locale-specific quoting behavior by providing
84706         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
84707
84708         * lib/quotearg.c (N_): New macro.
84709         (gettext_default): New function.
84710         (quotearg_buffer_restyled): Use
84711         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
84712         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
84713
84714 2000-07-09  Jim Meyering  <meyering@lucent.com>
84715
84716         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
84717         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
84718
84719         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
84720         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
84721
84722 2000-07-09  Jim Meyering  <meyering@lucent.com>
84723
84724         * lib/Most files: Update copyright dates to include 2000.
84725
84726 2000-07-08  Jim Meyering  <meyering@lucent.com>
84727
84728         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
84729         if not defined.
84730         (xgethostname): Remove now-unnecessary #ifdef.
84731         Move declaration of `err' into loop where it's used.
84732
84733 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84734         and Bruno Haible  <haible@clisp.cons.org>
84735
84736         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
84737         only if the test for an object-type mbstate_t fails.  This
84738         prevents us from mistakenly reporting that mbstate_t is a
84739         system object type after we "#define mbstate_t int" to work
84740         around its lack.
84741
84742 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84743         and Bruno Haible  <haible@clisp.cons.org>
84744
84745         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
84746
84747 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84748
84749         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
84750         to strerror_r.
84751         Include <ctype.h> for use of isalpha.
84752
84753 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84754
84755         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
84756         by allocating a larger buffer. Test the gethostname return value for
84757         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
84758         returns an error and ENAMETOOLONG isn't defined.
84759
84760 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84761
84762         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
84763         dimension.
84764
84765 2000-07-04  Jim Meyering  <meyering@lucent.com>
84766
84767         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
84768         of the deprecated AC_CHECKING.
84769
84770 2000-07-04  Jim Meyering  <meyering@lucent.com>
84771
84772         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
84773         Reported by Bruno Haible.
84774
84775 2000-07-04  Jim Meyering  <meyering@lucent.com>
84776
84777         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
84778         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
84779         lacks mbrtowc.
84780
84781 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84782
84783         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
84784         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
84785
84786 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84787         and Bruno Haible  <haible@clisp.cons.org>
84788
84789         * lib/quotearg.c (mbrtowc):
84790         Assign to *pwc, and return 1 only if result is nonzero.
84791         (iswprint): Use ISPRINT when substituting our own mbrtowc.
84792
84793 2000-07-03  Jim Meyering  <meyering@lucent.com>
84794
84795         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
84796
84797 2000-07-03  Jim Meyering  <meyering@lucent.com>
84798
84799         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
84800         This is necessary to get a definition of e.g., UTMP_FILE on
84801         HP-UX 10.20.
84802         From Bob Proulx.
84803
84804 2000-07-02  Jim Meyering  <meyering@lucent.com>
84805
84806         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
84807
84808         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
84809         AC_LIBOBJ(function_name).
84810         * m4/chown.m4: Likewise.
84811         * m4/fnmatch.m4: Likewise.
84812         * m4/ftruncate.m4: Likewise.
84813         * m4/getgroups.m4: Likewise.
84814         * m4/getline.m4: Likewise.
84815         * m4/group-member.m4: Likewise.
84816         * m4/jm-macros.m4: Likewise.
84817         * m4/lstat.m4: Likewise.
84818         * m4/malloc.m4: Likewise.
84819         * m4/memcmp.m4: Likewise.
84820         * m4/nanosleep.m4: Likewise.
84821         * m4/putenv.m4: Likewise.
84822         * m4/realloc.m4: Likewise.
84823         * m4/regex.m4: Likewise.
84824         * m4/stat.m4: Likewise.
84825         * m4/strftime.m4: Likewise.
84826
84827 2000-07-02  Jim Meyering  <meyering@lucent.com>
84828
84829         * lib/quotearg.c (mbstate_t): Don't define here.
84830
84831 2000-07-02  Jim Meyering  <meyering@lucent.com>
84832
84833         * lib/nanosleep.c (SIGCONT): Define if not already defined.
84834
84835 2000-07-01  Jim Meyering  <meyering@lucent.com>
84836
84837         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
84838
84839 2000-07-01  Jim Meyering  <meyering@lucent.com>
84840
84841         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
84842         problem.
84843
84844 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
84845
84846         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
84847         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
84848
84849 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
84850
84851         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
84852         per change in ../m4/ls-mntd-fs.m4.
84853         (read_filesystem_list): Ignore symbolic links.
84854
84855 2000-06-29  Jim Meyering  <meyering@lucent.com>
84856
84857         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
84858         for declaration of strcmp.
84859
84860         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
84861
84862         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
84863         Avoid warning by casting result to `char *' to remove `const'.
84864
84865 2000-06-28  Jim Meyering  <meyering@lucent.com>
84866
84867         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
84868         included by quotearg.c, for which we perform this test.  From
84869         Bruno Haible.
84870
84871 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
84872
84873         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
84874         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
84875         <utmpx.h> exists, put readutmp.o into LIBOBJS.
84876
84877 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
84878
84879         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
84880
84881 2000-06-26  Paul Eggert  <eggert@twinsun.com>
84882
84883         savedir now sets errno on failure and invokes xmalloc to get memory.
84884         Fix a couple of other minor bugs while we're at it.
84885
84886         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
84887         (NAMLEN): Remove macro.
84888         (malloc, realloc): Remove decls.
84889         (stpcpy): Likewise.
84890         ("xalloc.h"): Include.
84891         (NAME_SIZE_DEFAULT): New macro.
84892         (savedir): Use xmalloc / xrealloc to allocate memory.
84893         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
84894         Skip "" directory entries.
84895         Use strlen to calculate directory entry length, since the old method
84896         is rarely used these days and isn't worth supporting.
84897         Don't use a pointer after freeing it.
84898         Check for integer overflow when calculating allocation size.
84899         Use memcpy to copy entries, instead of stpcpy.
84900         Set errno properly when returning NULL.
84901         Check for readdir error.
84902
84903 2000-06-26  Jim Meyering  <meyering@lucent.com>
84904
84905         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
84906
84907 2000-06-25  Jim Meyering  <meyering@lucent.com>
84908
84909         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
84910         Linux header bug when _XOPEN_SOURCE is defined to 500.
84911
84912 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
84913
84914         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
84915         deficiency.
84916
84917 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
84918
84919         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
84920         Include xalloc.h.
84921         Don't include <stdlib.h>.  Don't declare malloc, realloc.
84922
84923 2000-06-24  Jim Meyering  <meyering@lucent.com>
84924
84925         * m4/strerror_r.m4: Revive this file -- to try out an experimental
84926         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
84927         for which strerror does return char*, but which lacks a conveniently
84928         accessible declaration of the function.  If the compile-test says
84929         strerror_r doesn't work, then resort to a `run'-test that works on
84930         BeOS and segfaults on DEC Unix.
84931
84932 2000-06-24  Jim Meyering  <meyering@lucent.com>
84933
84934         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
84935
84936 2000-06-23  Paul Eggert  <eggert@twinsun.com>
84937
84938         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
84939         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
84940
84941 2000-06-23  Paul Eggert  <eggert@twinsun.com>
84942
84943         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
84944         (mbrtowc, mbstate_t): Define substitutes if
84945         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
84946         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
84947         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
84948
84949 2000-06-23  Jim Meyering  <meyering@lucent.com>
84950
84951         * m4/afs.m4: Add missing AC_MSG_RESULT.
84952         Reported by Bruno Haible.
84953
84954         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
84955         Suggestion from Bruno Haible.
84956
84957 2000-06-23  Jim Meyering  <meyering@lucent.com>
84958
84959         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
84960
84961 2000-06-21  Jim Meyering  <meyering@lucent.com>
84962
84963         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
84964
84965 2000-06-21  Jim Meyering  <meyering@lucent.com>
84966
84967         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
84968         (noinst_HEADERS): Add getstr.h.
84969
84970         * lib/getline.c (getstr): Move into a separate file.
84971         * lib/getstr.c (getstr): New file, extracted from getline.c, with
84972         the following changes: new parameter, delim2; both delim[12]
84973         parameters have type `int', not `char'.  The latter would lose
84974         with 8-bit delimiters.
84975         * lib/getstr.h: New file.
84976
84977 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84978
84979         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
84980         than 1024, return a memory chunk of least possible size, instead
84981         of size PATH_MAX + 2. In the loop, increment the size proportionally.
84982         Use free/xmalloc instead of xrealloc to avoid copying for very long
84983         paths.
84984
84985 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84986
84987         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
84988         the empty string.
84989
84990 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84991
84992         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
84993         address, not strdup.  Include <stdlib.h> and don't declare free().
84994
84995 2000-06-19  Jim Meyering  <meyering@lucent.com>
84996
84997         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
84998
84999 2000-06-18  Jim Meyering  <meyering@lucent.com>
85000
85001         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
85002
85003         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
85004         `checking whether...' message to be consistent with that of the
85005         lstat test.
85006
85007 2000-06-18  Jim Meyering  <meyering@lucent.com>
85008
85009         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
85010         Besides, these days every porting target provides a mkdir function.
85011
85012         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
85013         needed. (this snippet comes from src/system.h).
85014
85015 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
85016
85017         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
85018
85019 2000-06-15  Paul Eggert  <eggert@twinsun.com>
85020
85021         * lib/human.c (adjust_value): New function.
85022         (human_readable_inexact): Apply rounding style even when
85023         printing approximate values.
85024
85025 2000-06-14  Paul Eggert  <eggert@twinsun.com>
85026
85027         * lib/human.c (human_readable_inexact): Allow an input block
85028         size that is not a multiple of the output block size, and vice versa.
85029         Reported by Piergiorgio Sartor.
85030
85031 2000-06-14  Paul Eggert  <eggert@twinsun.com>
85032
85033         * lib/getdate.y (get_date): Apply relative times after time
85034         zone indicator, not before.  Reported by Todd A. Jacobs.
85035
85036 2000-06-13  Jim Meyering  <meyering@lucent.com>
85037
85038         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
85039
85040         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
85041
85042 2000-06-12  Paul Eggert  <eggert@twinsun.com>
85043
85044         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
85045
85046 2000-06-12  Jim Meyering  <meyering@lucent.com>
85047
85048         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
85049         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
85050         optional argument.
85051         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
85052         the optional argument, `lib'.
85053
85054 2000-06-08  Jim Meyering  <meyering@lucent.com>
85055
85056         * m4/largefile.m4: Remove file (now that it's part of autoconf).
85057
85058 2000-06-04  Paul Eggert  <eggert@twinsun.com>
85059
85060         Rewrite largefile configuration so that we don't need to run
85061         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
85062         AC_CANONICAL_HOST in configure.in -- jmm]
85063
85064         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
85065         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
85066         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
85067         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
85068         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
85069         All uses changed.
85070         Instead of inspecting the output of getconf, try to compile the
85071         test program without and with the macro definition.
85072         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
85073         for getconf.  Instead, check for the needed flags by compiling
85074         test programs.
85075
85076 2000-06-04  Paul Eggert  <eggert@twinsun.com>
85077
85078         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
85079
85080 2000-06-04  Jim Meyering  <meyering@lucent.com>
85081
85082         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
85083         SunOS 4.1.4 for which gid_t is an unsigned type.
85084
85085 2000-06-03  Jim Meyering  <meyering@lucent.com>
85086
85087         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
85088         now that autoconf requires that.
85089
85090         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
85091         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
85092         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
85093
85094 2000-06-03  Jim Meyering  <meyering@lucent.com>
85095
85096         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
85097
85098 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
85099
85100         * m4/glibc21.m4: New file.
85101         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
85102
85103 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
85104
85105         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
85106         newer, don't install charset.alias.
85107         * lib/config.charset: Change the Linux/glibc rules so they become empty
85108         on glibc-2.1 or newer.
85109
85110 2000-06-02  Jim Meyering  <meyering@lucent.com>
85111
85112         * lib/mountlist.c: Back out last change.  Instead, do this...
85113         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
85114         me_dummy member using the same `ignore'-testing code.
85115         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
85116         fs_type strings.
85117         From Mark D. Roth.
85118
85119 2000-05-29  Jim Meyering  <meyering@lucent.com>
85120
85121         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
85122         mounts with the `ignore' attribute.  Based on a patch from
85123         Mark D. Roth.
85124
85125 2000-05-28  Jim Meyering  <meyering@lucent.com>
85126
85127         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
85128         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85129         * m4/stat.m4: Likewise.
85130         * m4/lstat.m4: Likewise.
85131         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
85132
85133         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
85134         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
85135
85136 2000-05-26  Jim Meyering  <meyering@lucent.com>
85137
85138         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
85139
85140 2000-05-24  Jim Meyering  <meyering@lucent.com>
85141
85142         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
85143         autoconf requires that.
85144         * m4/lib-check.m4: Likewise.
85145         * m4/jm-macros.m4: Likewise.
85146         * m4/strftime.m4: Likewise.
85147
85148         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
85149         AC_CHECK_DECLS, now that autoconf requires that.
85150
85151 2000-05-22  Jim Meyering  <meyering@lucent.com>
85152
85153         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85154         * m4/lstat.m4: Likewise.
85155
85156 2000-05-22  Jim Meyering  <meyering@lucent.com>
85157
85158         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
85159
85160 2000-05-20  Jim Meyering  <meyering@lucent.com>
85161
85162         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
85163         (jm_PREREQ): Use it.
85164
85165 2000-05-18  Jim Meyering  <meyering@lucent.com>
85166
85167         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
85168         back, too, since it may have been modified by allocate_entry.
85169         (hash_delete): Rewrite to use neither the assignment operator
85170         nor the comma operator in an if-expression.
85171
85172 2000-05-15  Paul Eggert  <eggert@twinsun.com>
85173
85174         * lib/closeout.c:
85175         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
85176         Remove; no longer needed.
85177         "quotearg.h": Add include.
85178         (file_name): Do not bother to explicitly initialize to NULL; it's less
85179         efficient on some hosts.
85180         (close_stdout_status): Remove test as to whether stdout was already
85181         closed; it breaks for the case "echo x | sort >&-".
85182         Quote file name colons.
85183         Do not assume that _("write error") lacks format strings.
85184
85185 2000-05-15  Jim Meyering  <meyering@lucent.com>
85186
85187         * lib/version-etc.c (version_etc_copyright): Update the copyright
85188         string used in all --version output.
85189
85190 2000-05-14  Jim Meyering  <meyering@lucent.com>
85191
85192         * lib/closeout.c (close_stdout_set_file_name): New function.
85193         (close_stdout_status): Use new file-scoped global.
85194         Return right away if fstat says the stdout file descriptor is invalid.
85195         * lib/closeout.h (close_stdout_set_file_name): Declare.
85196
85197 2000-05-10  Jim Meyering  <meyering@lucent.com>
85198
85199         * lib/closeout.c [default_exit_status]: New file-scoped variable.
85200         (close_stdout_set_status): New function.
85201         * lib/closeout.h (close_stdout_set_status): Declare.
85202
85203 2000-05-09  Jim Meyering  <meyering@lucent.com>
85204
85205         * m4/gettext.m4: Rename this...
85206         * m4/libintl.m4: ...to this.
85207
85208 2000-05-08  Jim Meyering  <meyering@lucent.com>
85209
85210         * lib/long-options.c: Don't include closeout.h.
85211         (parse_long_options): Don't call close_stdout for --version.
85212
85213 2000-05-06  Paul Eggert  <eggert@twinsun.com>
85214
85215         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
85216         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
85217         2.1.3 bug.  This avoids a clash when files like regex.c define
85218         _GNU_SOURCE.
85219
85220 2000-05-06  Jim Meyering  <meyering@lucent.com>
85221
85222         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
85223         (AC_REPLACE_FUNCS): Add strnlen.
85224
85225         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
85226         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
85227
85228         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
85229         AC_SEARCH_LIBS call for nanosleep.
85230         (LIB_NANOSLEEP): Set and AC_SUBST.
85231
85232 2000-05-06  Jim Meyering  <meyering@lucent.com>
85233
85234         * lib/strnlen.c: Undefine __strnlen and strnlen.
85235         [!weak_alias]: Define __strnlen to strnlen.
85236
85237         * lib/atexit.c: New file, from libiberty.
85238
85239 2000-05-06  Jim Meyering  <meyering@lucent.com>
85240
85241         * lib/closeout.c (close_stdout_status): Also check for errors on the
85242         stderr stream.
85243
85244 2000-05-05  Jim Meyering  <meyering@lucent.com>
85245
85246         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
85247         AC_SEARCH_LIBS call for clock_gettime.
85248         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
85249
85250         * m4/search-libs.m4: Update from autoconf.
85251
85252         su doesn't work on Solaris 2.6.
85253         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
85254         <shadow.h>.  Reported by Dragos Harabor.
85255
85256 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
85257
85258         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
85259         memcpy instead of xmalloc, xrealloc, path_concat.
85260         (locale_charset): Treat empty environment variables as absent.
85261         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
85262
85263 2000-05-04  Jim Meyering  <meyering@lucent.com>
85264
85265         * lib/getopt.c: Update from glibc.
85266         * lib/obstack.c: Likewise.
85267         * lib/obstack.h: Likewise.
85268         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
85269         file
85270
85271         * lib/regex.h: Likewise.
85272         * lib/strndup.c: Likewise.
85273         * lib/strnlen.c: New file, from glibc.
85274
85275 2000-05-03  Jim Meyering  <meyering@lucent.com>
85276
85277         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
85278
85279 2000-05-02  Paul Eggert  <eggert@twinsun.com>
85280
85281         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
85282         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
85283         compile-time test, rather than inspecting host and OS, to
85284         decide whether to define _LARGEFILE_SOURCE.
85285
85286 2000-05-01  Jim Meyering  <meyering@lucent.com>
85287
85288         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
85289
85290         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
85291         Based on a patch from Bruno Haible.
85292
85293 2000-05-01  Jim Meyering  <meyering@lucent.com>
85294
85295         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
85296
85297 2000-04-29  Jim Meyering  <meyering@lucent.com>
85298
85299         * lib/path-concat.c: Declare strdup only if it's not defined.
85300         * lib/canon-host.c: Likewise.
85301
85302 2000-04-28  Jim Meyering  <meyering@lucent.com>
85303
85304         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
85305         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
85306         is included first, then limits.h is included by locale.h by libintl.h.
85307         From John David Anglin.
85308
85309 2000-04-25  Jim Meyering  <meyering@lucent.com>
85310
85311         * lib/makepath.c (S_IRWXUGO): Define.
85312         (make_path): Always perform explicit chmod if MODE specifies any
85313         of the `special' permission bits.  Prompted by a bug report against
85314         install from Mate Wierdl and Joost van Baal.
85315
85316 2000-04-18  Jim Meyering  <meyering@lucent.com>
85317
85318         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
85319         (jm_PREREQ): Use it.
85320
85321 2000-04-18  Jim Meyering  <meyering@lucent.com>
85322
85323         * lib/README: New file.
85324
85325         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
85326         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
85327
85328 2000-04-17  Jim Meyering  <meyering@lucent.com>
85329
85330         Get it right :-)
85331         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
85332         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
85333         Suggestion from Akim Demaille.
85334
85335 2000-04-17  Jim Meyering  <meyering@lucent.com>
85336
85337         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
85338         the definition of it to rpl_strftime also defined-away the system's
85339         declaration.
85340
85341 2000-04-15  Jim Meyering  <meyering@lucent.com>
85342
85343         Use `C' to denote so-called `contiguous' files, the same way
85344         that tar does.
85345         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
85346         (ftypelet): Use S_ISCTG.
85347         From Michael Deutschmann.
85348
85349 2000-04-14  Jim Meyering  <meyering@lucent.com>
85350
85351         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
85352         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
85353         clobbered.
85354
85355 2000-04-14  Jim Meyering  <meyering@lucent.com>
85356
85357         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
85358
85359 2000-04-13  Jim Meyering  <meyering@lucent.com>
85360
85361         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
85362         AH_VERBATIM to insert required #ifndef into config.h.in.
85363         Suggestion from Akim Demaille.
85364
85365 2000-04-12  Jim Meyering  <meyering@lucent.com>
85366
85367         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
85368         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
85369         Christian Krackowizer.
85370
85371         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
85372         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
85373         (AC_SYS_LARGEFILE): Require.
85374         (AM_C_PROTOTYPES): Require.
85375
85376 2000-04-08  Jim Meyering  <meyering@lucent.com>
85377
85378         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
85379         names don't conflict.  Reported by Eli Zaretskii.
85380
85381 2000-04-07  Jim Meyering  <meyering@lucent.com>
85382
85383         * lib/putenv.c: Move inclusion of errno.h so it follows that of
85384         sys/types.h, to work around system header problems on AIX 3.2.5.
85385         From Bruno Haible.
85386
85387 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
85388
85389         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
85390         bug.  Deal with the different error behavior of Irix iconv.
85391
85392 2000-04-05  Paul Eggert  <eggert@twinsun.com>
85393
85394         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
85395         IRIX if the installer said otherwise.
85396
85397 2000-04-05  Jim Meyering  <meyering@lucent.com>
85398
85399         Portability tweaks required for ultrix4.3.
85400         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
85401         (jm_CHECK_DECLS): Add getutent to the list of functions.
85402         (_jm_DECL_HEADERS): Add utmpx.h.
85403         From John David Anglin.
85404
85405         * m4/strftime.m4: Back out the 2000-04-02 change.
85406         Instead of that change, simply undefine putenv in the test program.
85407
85408 2000-04-05  Jim Meyering  <meyering@lucent.com>
85409
85410         Portability tweaks required for ultrix4.3.
85411         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
85412         getutent.
85413         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
85414         * lib/canon-host.c: Declare strdup.
85415         * lib/path-concat.c: Likewise.
85416         From John David Anglin.
85417
85418 2000-04-04  Jim Meyering  <meyering@lucent.com>
85419
85420         Be more DOS 8.3-friendly.
85421         * lib/ref-add.sin: Renamed from ref-add.sed.in.
85422         * lib/ref-del.sin: Renamed from ref-del.sed.in.
85423         * lib/Makefile.am: Reflect renaming.
85424         Reported by Eli Zaretskii.
85425
85426         Use a temporary file name that won't clash with `charset.alias'
85427         in the DOS 8.3 name space.
85428         * lib/Makefile.am (charset_tmp): Define.
85429         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
85430         (uninstall-local): Likewise.
85431         Reported by Eli Zaretskii.
85432
85433 2000-04-03  Jim Meyering  <meyering@lucent.com>
85434
85435         * m4/gettext.m4: Fix typo in comment.
85436
85437         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
85438         textutils/configure.in).  Suggestion from Paul Eggert.
85439         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
85440
85441 2000-04-02  Paul Eggert  <eggert@twinsun.com>
85442
85443         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
85444         variable in the shell rather than using putenv, which isn't
85445         portable.  This avoids the configure-time inter-test dependency
85446         on the potentially-renamed putenv function.
85447
85448 2000-03-30  Paul Eggert  <eggert@twinsun.com>
85449
85450         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
85451         before checking struct stat.st_blksize, so that
85452         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
85453
85454 2000-03-29  Paul Eggert  <eggert@twinsun.com>
85455
85456         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
85457         since strftime.c uses HAVE_STRFTIME to decide whether to use
85458         the underlying strftime.
85459
85460 2000-03-29  Paul Eggert  <eggert@twinsun.com>
85461
85462         * lib/time/strftime.c (my_strftime): Make sure we call the system
85463         strftime, not ourselves, when invoking the underlying strftime.
85464
85465 2000-03-24  Jim Meyering  <meyering@lucent.com>
85466
85467         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
85468         (charset_alias): Define.
85469         (install-exec-local): Factor out common code.
85470         (uninstall-local): Split lines longer than 80.
85471         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
85472         (SUFFIXES): Define.
85473         (.sed.in.sed): New rule.  Don't redirect directly to $@.
85474         (CLEANFILES): Add ref-add.sed and ref-del.sed.
85475
85476 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
85477
85478         * lib/config.charset: Output a line containing "Packages using this
85479         file".
85480         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
85481         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
85482         ref-del.sed): New rules.
85483
85484 2000-03-17  Jim Meyering  <meyering@lucent.com>
85485
85486         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
85487         Otherwise, include <strings.h>
85488
85489 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
85490
85491         * lib/unicodeio.c (utf8_wctomb): New function.
85492         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
85493         format instead of in UCS-4 with platform dependent endianness.
85494
85495 2000-03-10  Jim Meyering  <meyering@lucent.com>
85496
85497         * m4/lib-check.m4: Look for getspnam in -lgen, too.
85498         From Marco Franzen.
85499
85500 2000-03-07  Paul Eggert  <eggert@twinsun.com>
85501
85502         * lib/savedir.c (savedir): Work even if directory size is
85503         negative; this can happen with some screwy NFS configurations.
85504
85505 2000-03-06  Jim Meyering  <meyering@lucent.com>
85506
85507         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
85508         if it's NULL (because we ran out of memory).  From Bruno Haible.
85509
85510 2000-03-05  Jim Meyering  <meyering@lucent.com>
85511
85512         * lib/localcharset.c ("path-concat.h"): Include.
85513         (get_charset_aliases): Use path_concat instead of ANSI string
85514         concatenation.
85515
85516         * lib/unicodeio.h (PARAMS): Define.
85517         Use it to guard prototype.
85518
85519 2000-03-04  Jim Meyering  <meyering@lucent.com>
85520
85521         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
85522         for lib/localcharset.c.
85523
85524 2000-03-04  Jim Meyering  <meyering@lucent.com>
85525
85526         * lib/Makefile.am (install-exec-local): Create $(libdir) before
85527         installing into it.
85528         (uninstall-local): Uncomment this rule so `make distcheck' works
85529         once again.
85530
85531         * lib/unicodeio.c (<errno.h>): Include it.
85532         (errno): Declare if not defined.
85533
85534         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
85535
85536         * lib/config.charset: New version, incorporating remarks from a linux
85537         i18n mailing list.  From Bruno Haible.
85538
85539 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
85540
85541         * m4/codeset.m4: New file.
85542         * m4/iconv.m4: New file.
85543         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
85544
85545 2000-03-03  Jim Meyering  <meyering@lucent.com>
85546
85547         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
85548
85549 2000-03-02  Jim Meyering  <meyering@lucent.com>
85550
85551         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
85552         the messages come out on separate lines.
85553
85554         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
85555         rather than jm_CHECK_DECLARATIONS.
85556         * m4/decl.m4: Remove now-unused file.
85557
85558         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
85559         geteuid.
85560
85561 2000-03-02  Jim Meyering  <meyering@lucent.com>
85562
85563         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
85564
85565 2000-03-01  Jim Meyering  <meyering@lucent.com>
85566
85567         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
85568         * lib/unicodeio.c: Likewise.
85569
85570 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
85571
85572         * lib/config.charset: New file.
85573         * lib/localcharset.c: New file.
85574         * lib/unicodeio.h, lib/unicodeio.c: New files.
85575         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
85576         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
85577         (noinst_HEADERS): Add unicodeio.h.
85578         (all-local, install-exec-local, charset.alias): New targets.
85579
85580 2000-02-28  Paul Eggert  <eggert@twinsun.com>
85581
85582         * lib/quotearg.c (ALERT_CHAR): New macro.
85583         (quotearg_buffer_restyled): Use it.
85584
85585 2000-02-27  Jim Meyering  <meyering@lucent.com>
85586
85587         * m4/check-decl.m4: Add getenv to the list.
85588
85589 2000-02-27  Jim Meyering  <meyering@lucent.com>
85590
85591         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
85592         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
85593
85594         * lib/backupfile.c: Guard inclusion of stdlib.h with
85595         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
85596         Declare malloc if needed.
85597
85598         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
85599         `#ifndef HAVE_DECL..'
85600         now that autoconf always defines the HAVE_DECL_ symbols.
85601         * lib/human.c: Likewise.
85602         * lib/same.c: Likewise.
85603         * lib/strtoumax.c: Likewise.
85604
85605         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
85606         declaration check was not run.
85607         * lib/hash.c: Likewise.
85608         * lib/human.c: Likewise.
85609         * lib/same.c: Likewise.
85610         * lib/strtoumax.c: Likewise.
85611
85612         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
85613         `.', then first look up the entire `.'-containing string as a login
85614         name.
85615
85616 2000-02-23  Jim Meyering  <meyering@lucent.com>
85617
85618         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
85619         in place of my hack.
85620
85621 2000-02-18  Paul Eggert  <eggert@twinsun.com>
85622
85623         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
85624         (textint): New typedef.
85625         (parser_control): Member year changed from int to textint.
85626         All uses changed.
85627         (YYSTYPE): Removed; replaced by %union with int and textint members.
85628         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
85629         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
85630         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
85631         (tSNUMBER, tUNUMBER): Now of type <textintval>.
85632         (date, number, to_year): Use width of number in digits, not its value,
85633         to determine whether it's a 2-digit year, or a 2-digit time.
85634         (yylex): Store number of digits of numeric tokens.
85635         Reported by John Kendall.
85636
85637         (parser_control): Changed from struct parser_control to typedef (for
85638         consistency).  All uses changed.
85639
85640         (tID): Removed; not used.
85641         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
85642
85643 2000-02-14  Paul Eggert  <eggert@twinsun.com>
85644
85645         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
85646         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
85647
85648 2000-02-12  Jim Meyering  <meyering@lucent.com>
85649
85650         * lib/userspec.c (ISDIGIT): Define it.
85651         (isdigit): Remove definition.
85652         (is_number): Use ISDIGIT, not isdigit.
85653         <libintl.h>: Include.
85654         (_ and N_): Define.
85655         (parse_user_spec): Mark translatable strings.
85656
85657 2000-02-10  Jim Meyering  <meyering@lucent.com>
85658
85659         With these changes, nanosleep.[ch] are finally enough like the other
85660         lib/* replacement files to compile on a few more losing systems.
85661
85662         * lib/nanosleep.h: Don't include config.h.
85663         Remove prototype from declaration of nanosleep.
85664         (PARAMS): Remove now-unneeded definition.
85665         * lib/nanosleep.c: #undef nanosleep.
85666         (rpl_nanosleep): Rename from nanosleep.
85667
85668 2000-02-10  Jim Meyering  <meyering@lucent.com>
85669
85670         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
85671         gnu_nanosleep to rpl_nanosleep.
85672
85673 2000-02-09  Jim Meyering  <meyering@lucent.com>
85674
85675         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
85676         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
85677
85678 2000-02-08  Akim Demaille  <akim@epita.fr>
85679
85680         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
85681         `[' and `]' and remove uses of `changequote'.
85682         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
85683         (AC_SYS_LARGEFILE): Likewise.
85684         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
85685         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
85686         of changequote.
85687         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
85688         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
85689         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
85690         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
85691
85692 2000-02-05  Jim Meyering  <meyering@lucent.com>
85693
85694         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
85695         Remove explicit use of AC_HEADER_TIME.  It is required by
85696         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
85697         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
85698         in autoconf whereby the expansion of the latter ended up preceding
85699         the expansion of its prerequisite, AC_HEADER_TIME.
85700         Reported by Volker Borchert.
85701
85702 2000-02-03  Jim Meyering  <meyering@lucent.com>
85703
85704         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
85705
85706 2000-02-03  Jim Meyering  <meyering@lucent.com>
85707
85708         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
85709         rather than with `#if HAVE_UTMPNAME'.
85710
85711 2000-02-02  Jim Meyering  <meyering@lucent.com>
85712
85713         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
85714         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
85715         Reported by Eli Zaretskii.
85716
85717 2000-02-01  Jim Meyering  <meyering@lucent.com>
85718
85719         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
85720
85721 2000-01-31  Jim Meyering  <meyering@lucent.com>
85722
85723         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
85724         functions.  Add the time.h and sys/time.h headers along with the
85725         AC_REQUIRE'ment of AC_HEADER_TIME.
85726
85727 2000-01-31  Jim Meyering  <meyering@lucent.com>
85728
85729         * lib/nanosleep.h (nanosleep): Guard declaration with
85730         `#if ! HAVE_DECL_NANOSLEEP'.
85731         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
85732         the declaration in that vendor's sys/timers.h.
85733         Reported by Christian Krackowizer.
85734
85735         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
85736         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
85737         (ISPRINT): Likewise.
85738         Reported by Tom Tromey.
85739
85740 2000-01-30  Jim Meyering  <meyering@lucent.com>
85741
85742         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
85743
85744         * m4/prereq.m4 (utmp_includes): Define.
85745         Check for ut_user and ut_name members in both struct utmpx
85746         and struct utmp.
85747
85748 2000-01-30  Jim Meyering  <meyering@lucent.com>
85749
85750         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
85751         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
85752         header files where only utmpx.ut_user is declared.
85753
85754         * lib/readutmp.h (UT_USER): Define.
85755
85756 2000-01-29  Jim Meyering  <meyering@lucent.com>
85757
85758         * m4/lib-check.m4: New file containing library-related checks from
85759         fileutils and sh-utils (textutils had none).
85760
85761 2000-01-28  Jim Meyering  <meyering@lucent.com>
85762
85763         * m4/perl.m4: Change format of warning message to look more like that
85764         from the missing script.  Suggestion from François Pinard.
85765
85766 2000-01-25  Jim Meyering  <meyering@lucent.com>
85767
85768         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
85769         well as time.h in the compile check.
85770         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
85771         Fix typo in cross-compiling case: s/yes/no/.
85772
85773 2000-01-23  Jim Meyering  <meyering@lucent.com>
85774
85775         * m4/jm-macros.m4: Move df-related tests here from
85776         fileutils/configure.in
85777
85778         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
85779         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
85780
85781         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
85782         s/space/ac_fsusage_space/.
85783         (jm_FILE_SYSTEM_USAGE): Take two parameters.
85784
85785         * m4/ftruncate.m4: New file (derived from part of
85786         fileutils/configure.in).
85787         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
85788         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
85789
85790         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
85791         AC_SUBST these here, rather than just in sh-util/configure.in, so
85792         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
85793         all the same.
85794         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
85795         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
85796         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
85797         (AC_SUBST(POW_LIBM)): Likewise.
85798         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
85799
85800 2000-01-23  Jim Meyering  <meyering@lucent.com>
85801
85802         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
85803         obstack.c.
85804
85805 2000-01-22  Jim Meyering  <meyering@lucent.com>
85806
85807         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
85808
85809         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
85810
85811         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
85812         configure.in
85813         (AC_CHECK_HEADERS): Likewise for sh-utils.
85814         (AC_CHECK_HEADERS): Likewise for textutils.
85815         Merge the three lists of headers.
85816
85817         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
85818         from fileutils' configure.in.
85819
85820         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
85821         code. Moved tests into their own function (_jm_DECL_HEADERS) in
85822         check-decl.m4.
85823
85824         * m4/check-decl.m4: Use #if rather than #ifdef.
85825         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
85826         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
85827         (_jm_DECL_HEADERS): Define new function.
85828         (jm_CHECK_DECLARATIONS): Require it.
85829
85830 2000-01-22  Jim Meyering  <meyering@lucent.com>
85831
85832         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
85833         [! HAVE_DECL_STRTOULL]: Declare strtoull.
85834         Required for some AIX systems.  Reported by Christian Krackowizer.
85835         [TESTING] (main): New function.
85836
85837         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
85838         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
85839         letters.
85840
85841         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
85842         iswprint.
85843
85844         * lib/strverscmp.c (ISDIGIT): Define.
85845         (strverscmp): Use ISDIGIT, not isdigit.
85846
85847 2000-01-19  Jim Meyering  <meyering@lucent.com>
85848
85849         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
85850         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
85851         defines `struct timespec' in <sys/time.h>
85852
85853         * m4/c-bs-a.m4: Remove uses of changequote altogether.
85854         Thanks to Akim for explaining.
85855
85856 2000-01-17  Paul Eggert  <eggert@twinsun.com>
85857
85858         * lib/nanosleep.c (nanosleep):
85859         Don't use SA_INTERRUPT to decide whether to call sigaction, as
85860         POSIX.1 doesn't require SA_INTERRUPT and some systems
85861         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
85862         it's been part of POSIX.1 since day 1 (in 1988).
85863
85864 2000-01-17  Jim Meyering  <meyering@lucent.com>
85865
85866         * lib/interlock: Remove unused file.  Reported by François Pinard.
85867
85868 2000-01-16  Paul Eggert  <eggert@twinsun.com>
85869
85870         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
85871         alert, backslash, formfeed, and vertical tab unnecessarily in
85872         shell quoting style.
85873
85874 2000-01-16  Jim Meyering  <meyering@lucent.com>
85875
85876         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
85877         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
85878         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
85879         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
85880
85881 2000-01-16  Jim Meyering  <meyering@lucent.com>
85882
85883         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
85884         because the latter didn't work.
85885
85886 2000-01-15  Jim Meyering  <meyering@lucent.com>
85887
85888         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
85889         (AC_REPLACE_FUNCS): Add memcpy and memset.
85890         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
85891         Add strpbrk.
85892         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
85893
85894 2000-01-12  Jim Meyering  <meyering@lucent.com>
85895
85896         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
85897         (jm_PREREQ): Use it.
85898         (jm_PREREQ_READUTMP): New macro.
85899         (jm_PREREQ): Use it.
85900
85901 2000-01-11  Paul Eggert  <eggert@twinsun.com>
85902
85903         Quote multibyte characters correctly.
85904         * m4/c-bs-a.m4: New file.
85905         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
85906         (jm_PREREQ): Use it.
85907
85908 2000-01-11  Paul Eggert  <eggert@twinsun.com>
85909
85910         * m4/uintmax_t.m4: Port to autoconf 2.13.
85911
85912 2000-01-08  Jim Meyering  <meyering@ascend.com>
85913
85914         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
85915         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
85916
85917 2000-01-04  Jim Meyering  <meyering@ascend.com>
85918
85919         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
85920         jm_STRUCT_DIRENT_D_TYPE.
85921         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
85922         jm_STRUCT_DIRENT_D_INO.
85923         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
85924         jm_STRUCT_UTIMBUF.
85925         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
85926         renamings.
85927         * m4/utime.m4: Likewise.
85928
85929         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
85930         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
85931
85932 2000-01-03  Paul Eggert  <eggert@twinsun.com>
85933
85934         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
85935         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
85936
85937 2000-01-02  Jim Meyering  <meyering@ascend.com>
85938
85939         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
85940         remember if this is necessary.
85941
85942 1999-12-26  Jim Meyering  <meyering@ascend.com>
85943
85944         * m4/jm-macros.m4: Use it here.
85945         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
85946
85947 1999-12-23  Jim Meyering  <meyering@ascend.com>
85948
85949         * m4/jm-macros.m4: Check for clock_gettime (moved from
85950         fileutils/configure.in)
85951         Check for gettimeofday.
85952
85953 1999-12-20  Jim Meyering  <meyering@ascend.com>
85954
85955         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
85956         autoconf-2.14a-1999-12-20.
85957
85958 1999-12-19  Jim Meyering  <meyering@ascend.com>
85959
85960         * m4/lstat-slash.m4: New file.
85961         * m4/jm-macros.m4: Use the new macro:
85962         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85963
85964 1999-12-07  Jim Meyering  <meyering@ascend.com>
85965
85966         * m4/perl.m4: Require that File::Compare be available, too.
85967         Too many systems seem to lack it.
85968
85969         * m4/strftime.m4: Add checks for most of the cpp macros tested in
85970         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
85971
85972 1999-11-18  Paul Eggert  <eggert@twinsun.com>
85973
85974         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
85975         problem with the QNX 4.25 shell, which doesn't propagate exit
85976         status of failed commands inside shell assignments.
85977
85978 1999-11-17  Jim Meyering  <meyering@ascend.com>
85979
85980         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
85981
85982 1999-11-07  Jim Meyering  <meyering@ascend.com>
85983
85984         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
85985
85986 1999-11-06  Jim Meyering  <meyering@ascend.com>
85987
85988         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
85989         * m4/jm-macros.m4 (jm_MACROS): Use it here.
85990
85991 1999-11-05  Jim Meyering  <meyering@ascend.com>
85992
85993         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
85994         configure.in of textutils, fileutils, and sh-utils into this one
85995         (shared between those packages) file.
85996         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
85997         AC_STRUCT_ST_BLKSIZE.
85998
85999 1999-11-03  Jim Meyering  <meyering@ascend.com>
86000
86001         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
86002         of AC_CHECK_TYPE checks includes unistd.h.
86003         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
86004         Suggestion from Akim Demaille.
86005
86006 1999-10-30  Jim Meyering  <meyering@ascend.com>
86007
86008         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
86009         m4-quoted string.
86010         * m4/ls-mntd-fs.m4: Likewise.
86011         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
86012         * m4/jm-winsz1.m4: Likewise.
86013
86014         * m4/const.m4: Remove file, since the fix made it into the experimental
86015         version of autoconf.
86016         * m4/mktime.m4: Likewise.
86017
86018         * m4/check-type.m4: Remove file, now that the latest version of
86019         AC_CHECK_TYPE takes a third arg to specify additional #includes.
86020
86021         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
86022         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
86023         AC_CHECK_TYPE.
86024
86025 1999-10-04  Jim Meyering  <meyering@ascend.com>
86026
86027         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
86028
86029 1999-09-22  Paul Eggert  <eggert@twinsun.com>
86030
86031         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
86032         2.95.1 bug with HP-UX 10.20.
86033
86034 1999-09-17  Jim Meyering  <meyering@ascend.com>
86035
86036         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
86037         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
86038         due to missing strdup (against sh-utils-2.0).
86039
86040 1999-08-29  Jim Meyering  <meyering@ascend.com>
86041
86042         * m4/jm-macros.m4: Require jm_BISON.
86043         * m4/bison.m4: New file.
86044
86045 1999-08-17  Paul Eggert  <eggert@twinsun.com>
86046
86047         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
86048         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
86049
86050 1999-08-05  Jim Meyering  <meyering@ascend.com>
86051
86052         * m4/getline.m4: Rename test file from conftestdata to conftest.data
86053         to avoid conflicts with `conftest' on 8+3 filesystems.
86054         Suggestion from Eli Zaretskii.
86055
86056 1999-08-04  Jim Meyering  <meyering@ascend.com>
86057
86058         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
86059         fileutils and sh-utils (textutils's getline test was inadequate).
86060         (AM_FUNC_GETLINE): Run this test.
86061         (AC_CHECK_FUNCS): Check for getdelim.
86062         Reported by Bob Proulx.
86063
86064 1999-08-02  Jim Meyering  <meyering@ascend.com>
86065
86066         * m4/jm-macros.m4: Add a comment.
86067
86068 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86069
86070         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
86071         <inttypes.h> defines strtoumax as a macro (and not as a
86072         function).
86073
86074 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86075
86076         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
86077         that we can shift, multiply and divide unsigned long long
86078         values; Ultrix cc can't do it.
86079
86080 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86081
86082         * m4/mktime.m4: New file, which is a preview of what should appear
86083         in the next public autoconf release.
86084
86085 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86086
86087         * m4/lfs.m4: Remove this file.
86088         * m4/largefile.m4: New file.  It contains the old contents of
86089         lfs.m4, except that all names with prefix AC_LFS have been
86090         changed to use the prefix AC_SYS_LARGEFILE instead, to be
86091         compatible with future autoconf versions.  Also, some minor m4
86092         quoting problems have been fixed.
86093
86094 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86095
86096         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
86097         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
86098         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
86099         and simplify the shell code.
86100
86101 1999-08-01  Jim Meyering  <meyering@ascend.com>
86102
86103         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
86104         m4.
86105
86106 1999-07-20  Jim Meyering  <meyering@ascend.com>
86107
86108         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
86109
86110 1999-07-15  Jim Meyering  <meyering@ascend.com>
86111
86112         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
86113
86114 1999-05-22  Jim Meyering  <meyering@ascend.com>
86115
86116         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
86117
86118 1999-05-20  Jim Meyering  <meyering@ascend.com>
86119
86120         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
86121         Add a colon after each `then' in case $4 is empty.
86122
86123 1999-05-16  Jim Meyering  <meyering@ascend.com>
86124
86125         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
86126
86127 1999-05-10  Jim Meyering  <meyering@ascend.com>
86128
86129         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
86130
86131         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
86132         AC_FUNC_MKTIME.
86133
86134 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
86135
86136         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
86137
86138 1999-05-04  Paul Eggert  <eggert@twinsun.com>
86139
86140         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
86141         not CPPFLAGS, so that linking works correctly in IRIX.
86142
86143 1999-04-30  Paul Eggert  <eggert@twinsun.com>
86144
86145         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
86146
86147 1999-04-20  Paul Eggert  <eggert@twinsun.com>
86148
86149         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
86150         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
86151         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
86152         jm_AC_TYPE_UNSIGNED_LONG_LONG.
86153         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
86154
86155         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
86156
86157 1999-04-20  Jim Meyering  <meyering@ascend.com>
86158
86159         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
86160         AC_REPLACE xstroull if necessary.  From Paul Eggert.
86161         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
86162
86163 1999-04-18  Jim Meyering  <meyering@ascend.com>
86164
86165         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
86166         * m4/jm-macros.m4: Use it.
86167
86168 1999-04-06  Jim Meyering  <meyering@ascend.com>
86169
86170         * m4/strftime.m4: Remove test for %f.
86171
86172 1999-03-29  Jim Meyering  <meyering@ascend.com>
86173
86174         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
86175         superset of the AC_TYPE_* checks in the textutils, fileutils,
86176         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
86177         AC_TYPE_PID_T.
86178
86179 1999-03-28  Jim Meyering  <meyering@ascend.com>
86180
86181         * m4/jm-macros.m4: Define GNU_PACKAGE here.
86182         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
86183         replaced e.g., in the *.sh files of the sh-utils.
86184
86185 1999-03-20  Jim Meyering  <meyering@ascend.com>
86186
86187         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
86188         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
86189         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
86190
86191 1999-03-19  Jim Meyering  <meyering@ascend.com>
86192
86193         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
86194
86195 1999-03-12  Jim Meyering  <meyering@ascend.com>
86196
86197         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
86198
86199 1999-03-07  Jim Meyering  <meyering@ascend.com>
86200
86201         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
86202         declared.
86203
86204 1999-02-17  Jim Meyering  <meyering@ascend.com>
86205
86206         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
86207         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
86208
86209 1999-02-07  Jim Meyering  <meyering@ascend.com>
86210
86211         * m4/group-member.m4: New file -- extracted from sh-utils'
86212         configure.in.
86213
86214         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
86215         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
86216
86217 1999-02-06  Jim Meyering  <meyering@ascend.com>
86218
86219         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
86220         * m4/fnmatch.m4: Likewise.
86221         * m4/getgroups.m4: Likewise.
86222         * m4/lstat.m4: Likewise.
86223         * m4/malloc.m4: Likewise.
86224         * m4/putenv.m4: Likewise.
86225         * m4/realloc.m4: Likewise.
86226         * m4/regex.m4: Likewise.
86227         * m4/stat.m4: Likewise.
86228         * m4/strftime.m4: Likewise.
86229         Suggestion from Alain Magloire.
86230
86231         * m4/chown.m4: Use `.$ac_objext', not `.o'.
86232         * m4/fnmatch.m4: Likewise.
86233         * m4/getgroups.m4: Likewise.
86234         * m4/getline.m4: Likewise.
86235         * m4/lstat.m4: Likewise.
86236         * m4/malloc.m4: Likewise.
86237         * m4/memcmp.m4: Likewise.
86238         * m4/putenv.m4: Likewise.
86239         * m4/realloc.m4: Likewise.
86240         * m4/regex.m4: Likewise.
86241         * m4/stat.m4: Likewise.
86242         * m4/strftime.m4: Likewise.
86243         Suggestion from Alain Magloire.
86244
86245         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
86246         an argument.
86247
86248         * m4/regex.m4: Add a run-time Test for proper operation of
86249         re_compile_pattern.
86250
86251 1999-01-31  Jim Meyering  <meyering@ascend.com>
86252
86253         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
86254
86255 1999-01-30  Jim Meyering  <meyering@ascend.com>
86256
86257         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
86258
86259         * m4/jm-mktime.m4: Make this a wrapper around the official
86260         AM_FUNC_MKTIME rather than my private copy, now that the official one
86261         is up to date.
86262         * m4/mktime.m4: Remove file.
86263
86264         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
86265         * m4/uptime.m4: Likewise.
86266         * m4/uintmax_t.m4: Likewise.
86267
86268 1999-01-28  Jim Meyering  <meyering@ascend.com>
86269
86270         * m4/jm-macros.m4: Use jm_AFS.
86271         * m4/afs.m4: New file (from fileutils' configure.in).
86272
86273         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
86274         * m4/chown.m4: Likewise.
86275         * m4/d-ino.m4: Likewise.
86276         * m4/d-type.m4: Likewise.
86277         * m4/fnmatch.m4: Likewise.
86278         * m4/getgroups.m4: Likewise.
86279         * m4/gettext.m4: Likewise.
86280         * m4/jm-mktime.m4: Likewise.
86281         * m4/jm-winsz2.m4: Likewise.
86282         * m4/lcmessage.m4: Likewise.
86283         * m4/ls-mntd-fs.m4: Likewise.
86284         * m4/malloc.m4: Likewise.
86285         * m4/memcmp.m4: Likewise.
86286         * m4/putenv.m4: Likewise.
86287         * m4/realloc.m4: Likewise.
86288         * m4/st_mtim.m4: Likewise.
86289         * m4/strftime.m4: Likewise.
86290
86291 1999-01-16  Jim Meyering  <meyering@ascend.com>
86292
86293         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
86294         (ARGMATCH_DIE_DECL): Define.
86295
86296 1999-01-12  Jim Meyering  <meyering@ascend.com>
86297
86298         * m4/Makefile.am.in: Rewrite to avoid using fmt.
86299         Reported by Lars Hecking.
86300
86301 1999-01-10  Jim Meyering  <meyering@ascend.com>
86302
86303         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
86304         gross kludge.
86305         * m4/inttypes_h.m4: Likewise.
86306         * m4/lstat.m4: Likewise.
86307         * m4/malloc.m4: Likewise.
86308         * m4/readdir.m4: Likewise.
86309         * m4/realloc.m4: Likewise.
86310         * m4/st_dm_mode.m4: Likewise.
86311         * m4/stat.m4: Likewise.
86312         * m4/utimbuf.m4: Likewise.
86313         * m4/utimes.m4: Likewise.
86314
86315         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
86316         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
86317         comments in config.h.in are meaningful.
86318
86319         * m4/jm-macros.m4: Require autoconf-2.13 here.
86320
86321         * m4/regex.m4: By default, don't use the included regex.c on systems
86322         with glibc 2.  Suggestion from Uli Drepper.
86323
86324 1999-01-02  Jim Meyering  <meyering@ascend.com>
86325
86326         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
86327
86328 1998-12-18  Jim Meyering  <meyering@ascend.com>
86329
86330         * m4/Makefile.am.in (Makefile.am): Simplify rule.
86331         Based on a suggestion from Lars Hecking.
86332
86333 1998-11-16  Paul Eggert  <eggert@twinsun.com>
86334
86335         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
86336
86337 1998-11-16  Jim Meyering  <meyering@ascend.com>
86338
86339         * m4/lfs.m4: Double-quote the `uname...` expression.
86340
86341 1998-11-14  Jim Meyering  <meyering@ascend.com>
86342
86343         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
86344         * m4/stat.m4: Likewise.
86345
86346 1998-11-03  Jim Meyering  <meyering@ascend.com>
86347
86348         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
86349         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
86350
86351 1998-10-18  Jim Meyering  <meyering@ascend.com>
86352
86353         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
86354
86355 1998-10-17  Jim Meyering  <meyering@ascend.com>
86356
86357         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
86358         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
86359         calls for those previously hard-coded headers.  Instead, take a new
86360         parameter.
86361         (jm_CHECK_DECLARATIONS): Reflect interface change.
86362         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
86363         (jm_CHECK_DECL_LOCALTIME_R): New macro.
86364
86365         * m4/mktime.m4: Test for spring-forward gap before long-running test.
86366
86367 1998-10-14  Jim Meyering  <meyering@ascend.com>
86368
86369         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
86370         instead of "TZ=America/Vancouver".  From Paul Eggert.
86371
86372 1998-10-11  Jim Meyering  <meyering@ascend.com>
86373
86374         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
86375         This adds a test for a recently added compatibility fix for mktime.c.
86376         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
86377
86378 1998-09-27  Jim Meyering  <meyering@ascend.com>
86379
86380         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
86381
86382         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
86383         ../configure.in, including a change from Gordon Matzigkeit to allow
86384         cross-compiling for the Hurd.
86385
86386         * m4/glibc.m4: New file/macro to test for the GNU C Library
86387         versions 1 and 2.  From Gordon Matzigkeit.
86388         Indent.
86389
86390 1998-09-21  Jim Meyering  <meyering@ascend.com>
86391
86392         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
86393
86394 1998-08-18  Paul Eggert  <eggert@twinsun.com>
86395
86396         Port nanosecond-resolution times to UnixWare 2.1.2 and
86397         pedantic Solaris 2.6.
86398
86399         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
86400         AC_STRUCT_ST_MTIM.
86401         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
86402         Generate name of ns member, instead of just 1 or undef.
86403         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
86404
86405 1998-08-15  Jim Meyering  <meyering@ascend.com>
86406
86407         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
86408         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
86409         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
86410         instead of jm_TYPE_SSIZE_T.
86411
86412 1998-08-12  Jim Meyering  <meyering@ascend.com>
86413
86414         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
86415
86416 1998-08-02  Jim Meyering  <meyering@ascend.com>
86417
86418         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
86419         in acconfig.h manually.
86420
86421 1998-07-31  Paul Eggert  <eggert@twinsun.com>
86422
86423         * m4/st_mtim.m4: New file.
86424
86425 1998-07-28  Jim Meyering  <meyering@ascend.com>
86426
86427         * m4/utimes.m4: Undef stat.
86428
86429 1998-07-25  Jim Meyering  <meyering@ascend.com>
86430
86431         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
86432         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
86433
86434 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
86435
86436         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
86437         uid and gid actually remain unchanged.
86438
86439 1998-07-07  Jim Meyering  <meyering@ascend.com>
86440
86441         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
86442
86443 1998-07-04  Jim Meyering  <meyering@ascend.com>
86444
86445         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
86446         to prove that this macro can be used in packages without regex.c.
86447
86448 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
86449
86450         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
86451         is to be used.
86452
86453 1998-07-03  Jim Meyering  <meyering@ascend.com>
86454
86455         * m4/gettext.m4: Add -lintl if it's found to be necessary.
86456
86457         * m4/gettext.m4: New file -- from gettext-0.10.35.
86458         * m4/lcmessage.m4: Likewise.
86459         * m4/progtest.m4: Likewise.
86460
86461         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
86462         * m4/jm-macros.m4: Require the new macro.
86463
86464 1998-06-29  Jim Meyering  <meyering@ascend.com>
86465
86466         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
86467         for the definition of NGROUPS (used in a system header included
86468         by sys/mount.h).
86469
86470 1998-06-28  Jim Meyering  <meyering@ascend.com>
86471
86472         * m4/ls-mntd-fs.m4: New file.
86473         * m4/fstypename.m4: New file.
86474
86475         * m4/jm-macros.m4: Require the new macro.
86476         * m4/jm-glibc-io.m4: New file.
86477
86478 1998-05-19  Jim Meyering  <meyering@ascend.com>
86479
86480         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
86481         * m4/lchown.m4: New file.
86482
86483         * m4/Makefile.am.in: New file.
86484         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
86485
86486 1998-05-14  Jim Meyering  <meyering@ascend.com>
86487
86488         * m4/Makefile.am (EXTRA_DIST): Add them.
86489         * m4/jm-macros.m4: New file.
86490         * m4/utimbuf.m4: New file.
86491
86492 1998-05-12  Jim Meyering  <meyering@ascend.com>
86493
86494         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
86495
86496 1998-05-11  Jim Meyering  <meyering@ascend.com>
86497
86498         * m4/isc-posix.m4: New file.
86499
86500 1998-05-10  Jim Meyering  <meyering@ascend.com>
86501
86502         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
86503
86504 1998-05-09  Jim Meyering  <meyering@ascend.com>
86505
86506         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
86507         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
86508         with automake.
86509
86510         * m4/ssize_t.m4: New file.
86511         * m4/mktime.m4: Remove file -- the new automake has this now.
86512
86513 1998-04-26  Jim Meyering  <meyering@ascend.com>
86514
86515         * m4/assert.m4: New file.
86516         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
86517
86518 1998-04-05  Jim Meyering  <meyering@ascend.com>
86519
86520         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
86521         (jm_PREREQ): Use it here.
86522
86523 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
86524
86525         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
86526         in acconfig.h.
86527
86528 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
86529
86530         * m4/prereq.m4: New file.
86531         * m4/error.m4: New file.
86532         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
86533
86534 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
86535
86536         * m4/getline.m4: Don't set am_cv_func_working_getline before the
86537         cache-check for the same variable -- that defeated the purpose of
86538         the test; the test program was never run.  This was a problem only
86539         on systems with losing getline functions -- HP-UX 10.20 is one.
86540         Reported by Bjorn Helgaas.
86541
86542 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
86543
86544         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
86545
86546 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
86547
86548         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
86549
86550         * m4/const.m4: New file.  Use an initializer in this declaration
86551         typedef int charset[2]; const charset x;
86552         Reported by Bob Glickstein.
86553
86554 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
86555
86556         * m4/chown.m4: Fix reversed types on -1 args to chown.
86557         From Kaveh Ghazi.
86558
86559 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
86560
86561         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
86562         Add lseek and memchr.
86563
86564         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
86565         T.E.Dickey <dickey@clark.net> said that some older preprocessors
86566         have a 20-character limit on names.
86567
86568 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
86569
86570         * m4/inttypes_h.m4: New file.
86571         * m4/uintmax_t.m4: New file.
86572         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
86573
86574
86575         -----
86576
86577         Local Variables:
86578         coding: utf-8
86579         End:
86580
86581         Copyright (C) 1997-2011 Free Software Foundation, Inc.
86582
86583         Copying and distribution of this file, with or without
86584         modification, are permitted provided the copyright notice
86585         and this notice are preserved.