Tests for function fdopen().
[gnulib.git] / ChangeLog
1 2011-09-20  Bruno Haible  <bruno@clisp.org>
2
3         Tests for function fdopen().
4         * modules/fdopen-tests: New file.
5         * tests/test-fdopen.c: New file.
6         * modules/stdio-tests (Depends-on): Add fdopen-tests.
7
8         Tests for module 'vdprintf'.
9         * modules/vdprintf-tests: New file.
10         * tests/test-vdprintf.c: New file.
11
12         Tests for module 'dprintf'.
13         * modules/dprintf-tests: New file.
14         * tests/test-dprintf.c: New file.
15
16 2011-09-20  Bruno Haible  <bruno@clisp.org>
17
18         Tests for module 'ioctl'.
19         * modules/ioctl-tests: New file.
20         * tests/test-ioctl.c: New file.
21
22 2011-09-20  Bruno Haible  <bruno@clisp.org>
23
24         fcntl tests: EBADF tests.
25         * tests/test-fcntl.c (main): Add more tests for EBADF.
26
27 2011-09-20  Bruno Haible  <bruno@clisp.org>
28
29         utimensat tests: EBADF tests.
30         * tests/test-utimensat.c (main): Add tests for EBADF.
31
32         renameat tests: EBADF tests.
33         * tests/test-renameat.c (main): Add tests for EBADF.
34
35         mkfifoat tests: EBADF tests.
36         * tests/test-mkfifoat.c (main): Add tests for EBADF.
37
38         readlinkat tests: EBADF tests.
39         * tests/test-readlinkat.c (main): Add tests for EBADF.
40
41         symlinkat tests: EBADF tests.
42         * tests/test-symlinkat.c (main): Add tests for EBADF.
43
44         linkat tests: EBADF tests.
45         * tests/test-linkat.c (main): Add tests for EBADF.
46
47         Tests for module 'faccessat'.
48         * modules/faccessat-tests: New file.
49         * tests/test-faccessat.c: New file.
50
51         fdopendir tests: EBADF tests.
52         * tests/test-fdopendir.c (main): Add more tests for EBADF.
53
54         openat tests: EBADF tests.
55         * tests/test-fchownat.c (main): Add tests for EBADF.
56         * tests/test-fstatat.c (main): Likewise.
57         * tests/test-mkdirat.c (main): Likewise.
58         * tests/test-openat.c (main): Likewise.
59         * tests/test-unlinkat.c (main): Likewise.
60         * tests/test-fchmodat.c: New file.
61         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
62         (Makefile.am): Also run 'test-fchmodat'.
63
64 2011-09-20  Bruno Haible  <bruno@clisp.org>
65
66         utimens, futimens, fdutimensat tests: EBADF tests.
67         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
68
69         Tests for function fstat().
70         * modules/fstat-tests: New file.
71         * tests/test-fstat.c: New file.
72         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
73
74 2011-09-20  Bruno Haible  <bruno@clisp.org>
75
76         test-ttyname_r tests: EBADF tests.
77         * tests/test-ttyname_r.c (main): Add tests for EBADF.
78
79         Tests for module 'isatty'.
80         * modules/isatty-tests: New file.
81         * tests/test-isatty.c: New file.
82
83         Tests for module 'write'.
84         * modules/write-tests: New file.
85         * tests/test-write.c: New file.
86
87         Tests for module 'read'.
88         * modules/read-tests: New file.
89         * tests/test-read.c: New file.
90
91         pwrite tests: EBADF tests.
92         * tests/test-pwrite.c (main): Add tests for EBADF.
93
94         pread tests: EBADF tests.
95         * tests/test-pread.c (main): Add tests for EBADF.
96
97         lseek tests: EBADF tests.
98         * tests/test-lseek.c (main): Add more tests for EBADF.
99
100         Tests for module 'ftruncate'.
101         * modules/ftruncate-tests: New file.
102         * tests/test-ftruncate.sh: New file.
103         * tests/test-ftruncate.c: New file.
104
105         fsync tests: EBADF tests.
106         * tests/test-fsync.c (main): Add more tests for EBADF.
107
108         fdatasync tests: EBADF tests.
109         * tests/test-fdatasync.c (main): Add more tests for EBADF.
110
111         Tests for module 'fchown'.
112         * modules/fchown-tests: New file.
113         * tests/test-fchown.c: New file.
114
115         Tests for module 'fchmod'.
116         * modules/fchmod-tests: New file.
117         * tests/test-fchmod.c: New file.
118
119         fchdir tests: EBADF tests.
120         * tests/test-fchdir.c (main): Add more tests for EBADF.
121
122         dup2 tests: EBADF tests.
123         * tests/test-dup2.c (main): Add more tests for EBADF.
124
125         Tests for module 'dup'.
126         * modules/dup-tests: New file.
127         * tests/test-dup.c: New file.
128
129         Tests for module 'close'.
130         * modules/close-tests: New file.
131         * tests/test-close.c: New file.
132
133 2011-09-20  Bruno Haible  <bruno@clisp.org>
134
135         Tests for module 'shutdown'.
136         * modules/shutdown-tests: New file.
137         * tests/test-shutdown.c: New file.
138
139         Tests for module 'setsockopt'.
140         * modules/setsockopt-tests: New file.
141         * tests/test-setsockopt.c: New file.
142
143         Tests for module 'sendto'.
144         * modules/sendto-tests: New file.
145         * tests/test-sendto.c: New file.
146
147         Tests for module 'send'.
148         * modules/send-tests: New file.
149         * tests/test-send.c: New file.
150
151         Tests for module 'recvfrom'.
152         * modules/recvfrom-tests: New file.
153         * tests/test-recvfrom.c: New file.
154
155         Tests for module 'recv'.
156         * modules/recv-tests: New file.
157         * tests/test-recv.c: New file.
158
159         Tests for module 'listen'.
160         * modules/listen-tests: New file.
161         * tests/test-listen.c: New file.
162
163         Tests for module 'getsockopt'.
164         * modules/getsockopt-tests: New file.
165         * tests/test-getsockopt.c: New file.
166
167         Tests for module 'getsockname'.
168         * modules/getsockname-tests: New file.
169         * tests/test-getsockname.c: New file.
170
171         Tests for module 'getpeername'.
172         * modules/getpeername-tests: New file.
173         * tests/test-getpeername.c: New file.
174
175         Tests for module 'connect'.
176         * modules/connect-tests: New file.
177         * tests/test-connect.c: New file.
178
179         Tests for module 'bind'.
180         * modules/bind-tests: New file.
181         * tests/test-bind.c: New file.
182
183         accept4 tests: Fix for native Windows.
184         * tests/test-accept4.c: Include sockets.h.
185         (main): Invoke gl_sockets_startup.
186         * modules/accept4-tests (Depends-on): Add sockets.
187
188         accept tests: Fix for native Windows.
189         * tests/test-accept.c: Include sockets.h.
190         (main): Invoke gl_sockets_startup.
191         * modules/accept-tests (Depends-on): Add sockets.
192
193 2011-09-19  Bruno Haible  <bruno@clisp.org>
194
195         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
196         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
197         do...while(0).
198         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
199         Suggested by Paul Eggert.
200
201 2011-09-19  Bruno Haible  <bruno@clisp.org>
202
203         sched: Ensure pid_t is defined.
204         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
205         not define pid_t.
206         * lib/sched.in.h: Include <sys/types.h>.
207         * doc/posix-headers/sched.texi: Mention the pid_t problem.
208         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
209
210 2011-09-19  Bruno Haible  <bruno@clisp.org>
211
212         msvc-inval: Ensure the entire expansion is a single statement.
213         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
214         of braces.
215
216 2011-09-19  Jim Meyering  <meyering@redhat.com>
217
218         tests: use printf, not echo in init.sh's warn_ function
219         * tests/init.sh (warn_): Use printf, not echo.  The latter would
220         misbehave when given strings containing a backslash or starting
221         with e.g., -n.  James Youngman suggested setting IFS.
222
223 2011-09-19  Eric Blake  <eblake@redhat.com>
224
225         futimens: enhance test
226         * tests/test-futimens.h (test_futimens): Also check for EBADF on
227         closed non-negative fd.
228
229         date: accept 'hence' as opposite of 'ago'
230         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
231         * tests/test-parse-datetime.c (main): Enhance test.
232         Suggested by Jesse Wilson.
233
234 2011-09-19  Jim Meyering  <meyering@redhat.com>
235
236         getcwd: don't fail in a deep directory on a system without openat
237         Before this change, getcwd would fail when called from a directory
238         of depth PATH_MAX / 3 or greater.  That was due to the fact that
239         the non-openat implementation used "..", "../..", "../../..", etc.
240         to access ancestor directories.  With too many, that string would
241         be longer than PATH_MAX.
242         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
243         using gnulib's openat replacement.
244         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
245         we're using the replacement function.
246
247 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
248
249         maint.mk: avoid warnings from perl about missing files
250         * top/maint.mk (def_sym_regex): Ignore files listed in
251         $(gl_other_headers_) that do not exist, say because a project
252         does not use a corresponding module.
253
254 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
255
256         stat: use pathmax.h only if needed
257         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
258         This is better for Emacs, which does not have a mingw port and
259         therefore can avoid the pathmax module.
260
261         utimens: remove dependency on dup2
262         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
263         to work around the Linux kernel bug.
264         * modules/utimens (Depends-on): Remove dup2.
265
266 2011-09-18  Bruno Haible  <bruno@clisp.org>
267
268         inet_ntop, inet_pton: Look for it also in libresolv.
269         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
270         libnsl, search for it in libresolv.
271         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
272         Needed on Solaris 7.
273
274 2011-09-18  Bruno Haible  <bruno@clisp.org>
275
276         accept, accept4 tests: Avoid link error on Solaris.
277         * modules/accept-tests (Makefile.am): Link test-accept against
278         $(LIBSOCKET).
279         * modules/accept4-tests (Makefile.am): Link test-accept4 against
280         $(LIBSOCKET).
281
282         accept4: Avoid link error on Solaris.
283         * modules/accept4 (Link): New section.
284
285         socket functions: Avoid link errors on Solaris.
286         * modules/accept (Depends-on): Add socketlib.
287         (Link): New section.
288         * modules/bind (Depends-on): Add socketlib.
289         (Link): New section.
290         * modules/connect (Depends-on): Add socketlib.
291         (Link): New section.
292         * modules/getpeername (Depends-on): Add socketlib.
293         (Link): New section.
294         * modules/getsockname (Depends-on): Add socketlib.
295         (Link): New section.
296         * modules/getsockopt (Depends-on): Add socketlib.
297         (Link): New section.
298         * modules/listen (Depends-on): Add socketlib.
299         (Link): New section.
300         * modules/recv (Depends-on): Add socketlib.
301         (Link): New section.
302         * modules/recvfrom (Depends-on): Add socketlib.
303         (Link): New section.
304         * modules/send (Depends-on): Add socketlib.
305         (Link): New section.
306         * modules/sendto (Depends-on): Add socketlib.
307         (Link): New section.
308         * modules/setsockopt (Depends-on): Add socketlib.
309         (Link): New section.
310         * modules/shutdown (Depends-on): Add socketlib.
311         (Link): New section.
312         * modules/socket (Depends-on): Add socketlib.
313         (Link): New section.
314
315 2011-09-18  Bruno Haible  <bruno@clisp.org>
316
317         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
318         * tests/test-ptsname.c (main): Terminate the test if it takes longer
319         than 5 seconds.
320         * modules/ptsname-tests (configure.ac): Test for alarm.
321
322 2011-09-18  Bruno Haible  <bruno@clisp.org>
323
324         posix_spawn_file_actions_add*: Fix module dependencies.
325         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
326         posix_spawn_file_actions_init.
327         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
328         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
329
330 2011-09-18  Bruno Haible  <bruno@clisp.org>
331
332         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
333         * tests/test-rename.h (test_rename): Allow error code EEXIST.
334         * tests/test-renameat.c (main): Likewise.
335
336 2011-09-18  Bruno Haible  <bruno@clisp.org>
337
338         Tests for module 'accept4'.
339         * modules/accept4-tests: New file.
340         * tests/test-accept4.c: New file.
341
342 2011-09-18  Bruno Haible  <bruno@clisp.org>
343
344         Tests for module 'accept'.
345         * modules/accept-tests: New file.
346         * tests/test-accept.c: New file.
347
348 2011-09-18  Bruno Haible  <bruno@clisp.org>
349
350         dup2: Support for MSVC.
351         * lib/dup2.c: Include msvc-inval.h.
352         (rpl_dup2): Handle invalid parameter notifications during dup2 and
353         _get_osfhandle calls.
354         * modules/dup2 (Depends-on): Add msvc-inval.
355         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
356
357         New module 'msvc-inval'.
358         * lib/msvc-inval.h: New file.
359         * lib/msvc-inval.c: New file.
360         * m4/msvc-inval.m4: New file.
361         * modules/msvc-inval: New file.
362
363 2011-09-17  Bruno Haible  <bruno@clisp.org>
364
365         Tests for module 'pclose'.
366         * modules/pclose-tests: New file.
367
368         New module 'pclose'.
369         * lib/stdio.in.h (pclose): New declaration.
370         * lib/pclose.c: New file.
371         * m4/pclose.m4: New file.
372         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
373         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
374         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
375         * modules/pclose: New file.
376         * modules/popen-tests (Depends-on): Add pclose.
377         * modules/popen-safer-tests (Depends-on): Likewise.
378         * doc/posix-functions/pclose.texi: Mention the new module.
379
380 2011-09-17  Bruno Haible  <bruno@clisp.org>
381
382         popen: Support for MSVC.
383         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
384         * lib/popen.c (popen): Provide alternate definition for native Windows.
385         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
386         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
387         * modules/popen (Depends-on, configure.ac): Update condition.
388         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
389         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
390         fixed.
391
392 2011-09-17  Bruno Haible  <bruno@clisp.org>
393
394         isnanl, isnand, isnanf: Work around MSVC bug.
395         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
396
397 2011-09-17  Bruno Haible  <bruno@clisp.org>
398
399         sys_socket tests: Fix recent mistake.
400         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
401
402 2011-09-17  Bruno Haible  <bruno@clisp.org>
403
404         putenv: Support for MSVC.
405         * modules/putenv (Depends-on): Add environ.
406         * lib/putenv.c (environ): Disable declaration.
407         * lib/unistd.in.h: Update comment.
408
409 2011-09-17  Bruno Haible  <bruno@clisp.org>
410
411         math: Avoid macro redefinition warnings on MSVC.
412         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
413         Undefine before redefining.
414
415 2011-09-17  Bruno Haible  <bruno@clisp.org>
416
417         doc: Mention functions which are declared as macros.
418         * doc/posix-functions/*[fl].texi: Mention that some functions are
419         defined as macros with arguments only.
420
421 2011-09-17  Bruno Haible  <bruno@clisp.org>
422
423         Add dependencies to new dirent related modules.
424         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
425         * modules/fts (Depends-on): Likewise.
426         * modules/glob (Depends-on): Likewise.
427         * modules/savedir (Depends-on): Likewise.
428         * modules/scandir (Depends-on): Likewise.
429         * modules/dirent-safer (Depends-on): Add opendir, closedir.
430         * modules/fdopendir (Depends-on): Add opendir.
431
432 2011-09-17  Bruno Haible  <bruno@clisp.org>
433
434         inet_pton: Support for MSVC on Windows Vista or newer.
435         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
436         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
437         HAVE_DECL_INET_PTON is defined.
438         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
439         On platforms with <winsock2.h>, test whether inet_pton is declared in
440         <ws2tcpip.h>. If so, arrange to replace it.
441         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
442         REPLACE_INET_PTON.
443         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
444         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
445         (Depends-on, configure.ac): Update condition.
446         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
447
448 2011-09-17  Bruno Haible  <bruno@clisp.org>
449
450         inet_ntop: Support for MSVC on Windows Vista or newer.
451         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
452         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
453         HAVE_DECL_INET_NTOP is defined.
454         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
455         On platforms with <winsock2.h>, test whether inet_ntop is declared in
456         <ws2tcpip.h>. If so, arrange to replace it.
457         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
458         REPLACE_INET_NTOP.
459         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
460         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
461         (Depends-on, configure.ac): Update condition.
462         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
463
464 2011-09-16  Eric Blake  <eblake@redhat.com>
465
466         test-fsync: yet another enhancement
467         * tests/test-fsync.c (main): Also test behavior on read-only text
468         file.
469
470 2011-09-16  Bruno Haible  <bruno@clisp.org>
471
472         Enhance fsync, fdatasync tests.
473         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
474         * tests/test-fdatasync.c (main): Likewise.
475
476 2011-09-16  Bruno Haible  <bruno@clisp.org>
477
478         Support for MSVC compiler: Ensure mode_t gets defined.
479         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
480         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
481         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
482         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
483         * tests/test-fcntl-h.c: Check that mode_t is defined.
484         * tests/test-sys_stat.c: Likewise.
485         * tests/test-sys_types.c: Likewise.
486         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
487         * doc/posix-headers/sys_stat.texi: Likewise.
488         * doc/posix-headers/sys_types.texi: Likewise.
489
490 2011-09-16  Bruno Haible  <bruno@clisp.org>
491
492         sys_stat: Support for MSVC.
493         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
494         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
495         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
496         MSVC.
497
498 2011-09-16  Bruno Haible  <bruno@clisp.org>
499
500         Support for MSVC compiler: Ensure off_t gets defined.
501         * lib/unistd.in.h: Include <sys/types.h>.
502         * tests/test-fcntl-h.c: Check that off_t is defined.
503         * tests/test-sys_stat.c: Likewise.
504         * tests/test-sys_types.c: Likewise.
505
506 2011-09-16  Eric Blake  <eblake@redhat.com>
507
508         fdatasync: port to Solaris
509         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
510         * modules/fdatasync (Link): Document it.
511         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
512
513         fdatasync: port to MacOS X 10.7
514         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
515         declared.
516         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
517         * modules/unistd (Makefile.am): Substitute it.
518         * lib/unistd.in.h (fdatasync): Declare on MacOS.
519         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
520
521         fdatasync: minor improvements
522         * modules/fdatasync (Depends-on): Add condition for fsync.
523         * lib/fdatasync.c (fdatasync): Add comment.
524         * tests/test-unistd-c++.cc: Test fdatasync.
525
526         unistd: update refs to newer POSIX
527         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
528         Suggested by Bruno Haible.
529
530         fdatasync: new module
531         * modules/fsync (Description): Document difference to fdatasync.
532         * modules/fdatasync: New module.
533         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
534         * lib/fdatasync.c (fdatasync): Likewise.
535         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
536         defaults.
537         * modules/unistd (Makefile.am): Set witnesses.
538         * lib/unistd.in.h (fdatasync): Declare.
539         * MODULES.html.sh: Document it.
540         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
541         * modules/fdatasync-tests: New test.
542         * tests/test-fdatasync.c: Likewise.
543
544 2011-09-16  Eric Blake  <eblake@redhat.com>
545
546         test-fsync: enhance tests
547         * modules/fsync-tests (Depends-on): Add errno, for mingw.
548         * tests/test-fsync.c (main): Enhance test.
549
550 2011-09-15  Bruno Haible  <bruno@clisp.org>
551
552         Support for MSVC compiler: Ensure ssize_t gets defined.
553         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
554         * doc/posix-headers/stdio.texi: Likewise.
555         * modules/stdio (Depends-on): Add ssize_t.
556         * modules/sys_socket (Depends-on): Likewise.
557         * modules/sys_types (Depends-on): Likewise.
558         * modules/sys_uio (Depends-on): Likewise.
559         * modules/unistd (Depends-on): Likewise.
560         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
561         * tests/test-sys_types.c: Check that ssize_t is defined.
562
563 2011-09-14  Bruno Haible  <bruno@clisp.org>
564
565         Avoid using #, the m4 comment starter character, near brackets.
566         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
567         delimiter character in sed expressions.
568         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
569         Suggested by Eric Blake.
570
571         Properly quote AC_CHECK_DECLS' 4th argument.
572         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
573         argument.
574         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
575         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
576         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
577         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
578         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
579         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
580         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
581         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
582         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
583         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
584         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
585         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
586         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
587         * m4/isinf.m4 (gl_ISINF): Likewise.
588         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
589         * m4/readutmp.m4 (gl_READUTMP): Likewise.
590         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
591         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
592         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
593         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
594         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
595         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
596         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
597         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
598         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
599         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
600         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
601         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
602         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
603         Reported by Eric Blake.
604
605         Properly quote AC_CHECK_DECL's 4th argument.
606         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
607         argument.
608         * m4/argp.m4 (gl_ARGP): Likewise.
609         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
610         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
611         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
612         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
613         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
614         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
615         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
616         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
617         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
618         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
619         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
620         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
621         Reported by Eric Blake.
622
623 2011-09-14  Eric Blake  <eblake@redhat.com>
624
625         opendir: avoid compile warning
626         * lib/opendir.c (includes): Always include errno.h.
627         Reported by Tatsuro MATSUOKA.
628
629 2011-09-14  Jim Meyering  <meyering@redhat.com>
630
631         maint.mk: sc_tight_scope: propagate failure from sub-make
632         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
633         Reported by Martin von Gagern.
634
635 2011-09-13  Bruno Haible  <bruno@clisp.org>
636
637         tempname: Support for MSVC.
638         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
639         MSVC.
640         * modules/tempname (Depends-on): Add fcntl-h.
641
642 2011-09-13  Bruno Haible  <bruno@clisp.org>
643
644         sys_time: Support for MSVC.
645         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
646         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
647         include <winsock2.h>.
648         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
649         function declarations that collide with POSIX.
650         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
651         (Makefile.am): Substitute HAVE_WINSOCK2_H.
652
653 2011-09-13  Bruno Haible  <bruno@clisp.org>
654
655         stat: Support for MSVC.
656         * lib/stat.c: Include pathmax.h.
657         * modules/stat (Depends-on): Add pathmax.
658
659         pathmax: Support for native Windows.
660         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
661
662 2011-09-12  Bruno Haible  <bruno@clisp.org>
663
664         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
665         * lib/dirent.in.h (struct dirent): New type.
666         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
667         DT_WHT): New macros.
668         (DIR): New type.
669         (opendir, closedir): Declare only if the module 'opendir' is enabled.
670         (readdir, rewinddir): New declarations.
671         * lib/dirent-private.h: New file.
672         * lib/opendir.c: New file.
673         * lib/readdir.c: New file.
674         * lib/rewinddir.c: New file.
675         * lib/closedir.c: New file.
676         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
677         * m4/opendir.m4: New file.
678         * m4/readdir.m4: New file.
679         * m4/rewinddir.m4: New file.
680         * m4/closedir.m4: New file.
681         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
682         REPLACE_CLOSEDIR here.
683         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
684         readdir, rewinddir are declared.
685         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
686         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
687         HAVE_REWINDDIR, HAVE_CLOSEDIR.
688         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
689         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
690         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
691         * modules/opendir: New file.
692         * modules/readdir: New file.
693         * modules/rewinddir: New file.
694         * modules/closedir: New file.
695         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
696         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
697         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
698         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
699         * NEWS: Mention the 'fchdir' change.
700
701 2011-09-11  Bruno Haible  <bruno@clisp.org>
702
703         asm-underscore.m4: Support for MSVC.
704         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
705         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
706
707 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
708
709         Doc about crypt functions.
710         * doc/posix-functions/crypt.texi: Expand range of glibc versions
711         needing for _GNU_SOURCE to get crypt.
712         * doc/posix-functions/encrypt.texi: Likewise.
713         * doc/posix-functions/setkey.texi: Likewise.
714
715 2011-09-11  Bruno Haible  <bruno@clisp.org>
716
717         doc: Update regarding MSVC 9.
718         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
719         tested".
720         * doc/posix-functions/*.texi: Update with info about MSVC 9.
721         * doc/posix-headers/*.texi: Likewise.
722         * doc/pastposix-functions/*.texi: Likewise.
723         * doc/glibc-functions/*.texi: Likewise.
724         * doc/glibc-headers/*.texi: Likewise.
725
726 2011-09-11  Bruno Haible  <bruno@clisp.org>
727
728         unistd et al.: Don't assume <unistd.h> exists.
729         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
730         does not exist.
731         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
732         exist. But include <stdlib.h>.
733         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
734         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
735         symlink() does not exist.
736         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
737         include <io.h> instead.
738         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
739         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
740         include <direct.h> instead.
741         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
742         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
743         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
744         <io.h> instead.
745         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
746         correctly if the system does not have hard links.
747         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
748         <direct.h> instead.
749         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
750         it when looking for function declarations.
751         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
752         <direct.h> and <io.h> instead.
753         * doc/posix-headers/unistd.texi: More details about MSVC problem.
754
755 2011-09-11  Bruno Haible  <bruno@clisp.org>
756
757         strcase: Support for MSVC.
758         * modules/strcase (Status, Notice): Remove obsoletion mark.
759         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
760         * doc/posix-functions/strncasecmp.texi: Likewise.
761
762         strings: Don't assume <strings.h> exists.
763         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
764         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
765         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
766         * doc/posix-headers/strings.texi: Mention the MSVC problem.
767
768 2011-09-11  Bruno Haible  <bruno@clisp.org>
769
770         dirent: Don't assume <dirent.h> exists.
771         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
772         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
773         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
774         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
775
776 2011-09-11  Bruno Haible  <bruno@clisp.org>
777
778         Fix wint_t on MSVC.
779         * lib/wchar.in.h (wint_t): On MSVC, override it.
780         * lib/wctype.in.h (wint_t): Likewise.
781         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
782         MSVC.
783         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
784         * doc/posix-headers/wctype.texi: Likewise.
785
786 2011-09-11  Bruno Haible  <bruno@clisp.org>
787
788         sys_types: Fix typo.
789         * lib/sys_types.in.h: Fix typo in comment.
790         Reported by Paul Eggert.
791
792         Support for MSVC compiler: Ensure size_t gets defined.
793         * modules/strings (Depends-on): Add 'sys_types'.
794         * modules/sys_uio (Depends-on): Likewise.
795         * lib/sys_uio.in.h: Update comment.
796
797         C++ tests for module 'sys_types'.
798         * modules/sys_types-c++-tests: New file.
799         * tests/test-sys_types-c++.cc: New file.
800
801         Tests for module 'sys_types'.
802         * modules/sys_types-tests: New file.
803         * tests/test-sys_types.c: New file.
804
805         New module 'sys_types'.
806         * lib/sys_types.in.h: New file.
807         * m4/sys_types_h.m4: New file.
808         * modules/sys_types: New file.
809         * doc/posix-headers/sys_types.texi: Mention the new module and the
810         size_t problem on MSVC 9.
811
812 2011-09-11  Bruno Haible  <bruno@clisp.org>
813
814         Support for MSVC compiler: Avoid division by a literal 0.
815         * lib/math.in.h (NAN): Define through a function call also on MSVC.
816         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
817         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
818         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
819         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
820         * tests/infinity.h: New file.
821         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
822         on MSVC.
823         * tests/test-ceilf1.c: Include infinity.h.
824         (main): Use Infinityf.
825         * tests/test-ceil1.c: Include infinity.h.
826         (main): Use Infinityd.
827         * tests/test-ceill.c: Include infinity.h.
828         (main): Use Infinityl.
829         * tests/test-dprintf-posix.c: Include infinity.h.
830         (test_function): Use Infinityd.
831         * tests/test-floorf1.c: Include infinity.h.
832         (main): Use Infinityf.
833         * tests/test-floor1.c: Include infinity.h.
834         (main): Use Infinityd.
835         * tests/test-floorl.c: Include infinity.h.
836         (main): Use Infinityl.
837         * tests/test-fprintf-posix.c: Include infinity.h.
838         (test_function): Use Infinityd.
839         * tests/test-frexp.c: Include infinity.h.
840         (main): Use Infinityd.
841         * tests/test-frexpl.c: Include infinity.h.
842         (main): Use Infinityl.
843         * tests/test-isfinite.c: Include infinity.h.
844         (test_isfinitef): Use Infinityf.
845         (test_isfinited): Use Infinityd.
846         (test_isfinitel): Use Infinityl.
847         * tests/test-isinf.c: Include infinity.h.
848         (test_isinff): Use Infinityf.
849         (test_isinfd): Use Infinityd.
850         (test_isinfl): Use Infinityl.
851         * tests/test-isnan.c: Include infinity.h.
852         (test_float): Use Infinityf.
853         (test_double): Use Infinityd.
854         (test_long_double): Use Infinityl.
855         * tests/test-isnanf.h: Include infinity.h.
856         (main): Use Infinityf.
857         * tests/test-isnand.h: Include infinity.h.
858         (main): Use Infinityd.
859         * tests/test-isnanl.h: Include infinity.h.
860         (main): Use Infinityl.
861         * tests/test-ldexpl.c: Include infinity.h.
862         (main): Use Infinityl.
863         * tests/test-printf-posix.h: Include infinity.h.
864         (test_function): Use Infinityd.
865         * tests/test-roundf1.c: Include infinity.h.
866         (main): Use Infinityf.
867         * tests/test-round1.c: Include infinity.h.
868         (main): Use Infinityd.
869         * tests/test-roundl.c: Include infinity.h.
870         (main): Use Infinityl.
871         * tests/test-signbit.c: Include infinity.h.
872         (test_signbitf): Use Infinityf.
873         (test_signbitd): Use Infinityd.
874         (test_signbitl): Use Infinityl.
875         * tests/test-snprintf-posix.h: Include infinity.h.
876         (test_function): Use Infinityd, Infinityl.
877         * tests/test-sprintf-posix.h: Include infinity.h.
878         (test_function): Use Infinityd, Infinityl.
879         * tests/test-truncf1.c: Include infinity.h.
880         (main): Use Infinityf.
881         * tests/test-trunc1.c: Include infinity.h.
882         (main): Use Infinityd.
883         * tests/test-truncl.c: Include infinity.h.
884         (main): Use Infinityl.
885         * tests/test-vasnprintf-posix.c: Include infinity.h.
886         (test_function): Use Infinityd, Infinityl.
887         * tests/test-vasprintf-posix.c: Include infinity.h.
888         (test_function): Use Infinityd, Infinityl.
889         * modules/ceilf-tests (Files): Add tests/infinity.h.
890         * modules/ceil-tests (Files): Likewise.
891         * modules/ceill-tests (Files): Likewise.
892         * modules/dprintf-posix-tests (Files): Likewise.
893         * modules/floorf-tests (Files): Likewise.
894         * modules/floor-tests (Files): Likewise.
895         * modules/floorl-tests (Files): Likewise.
896         * modules/fprintf-posix-tests (Files): Likewise.
897         * modules/frexp-tests (Files): Likewise.
898         * modules/frexp-nolibm-tests (Files): Likewise.
899         * modules/frexpl-tests (Files): Likewise.
900         * modules/frexpl-nolibm-tests (Files): Likewise.
901         * modules/isfinite-tests (Files): Likewise.
902         * modules/isinf-tests (Files): Likewise.
903         * modules/isnan-tests (Files): Likewise.
904         * modules/isnanf-tests (Files): Likewise.
905         * modules/isnanf-nolibm-tests (Files): Likewise.
906         * modules/isnand-tests (Files): Likewise.
907         * modules/isnand-nolibm-tests (Files): Likewise.
908         * modules/isnanl-tests (Files): Likewise.
909         * modules/isnanl-nolibm-tests (Files): Likewise.
910         * modules/ldexpl-tests (Files): Likewise.
911         * modules/printf-posix-tests (Files): Likewise.
912         * modules/roundf-tests (Files): Likewise.
913         * modules/round-tests (Files): Likewise.
914         * modules/roundl-tests (Files): Likewise.
915         * modules/signbit-tests (Files): Likewise.
916         * modules/snprintf-posix-tests (Files): Likewise.
917         * modules/sprintf-posix-tests (Files): Likewise.
918         * modules/truncf-tests (Files): Likewise.
919         * modules/trunc-tests (Files): Likewise.
920         * modules/truncl-tests (Files): Likewise.
921         * modules/vasnprintf-posix-tests (Files): Likewise.
922         * modules/vasprintf-posix-tests (Files): Likewise.
923         * modules/vdprintf-posix-tests (Files): Likewise.
924         * modules/vfprintf-posix-tests (Files): Likewise.
925         * modules/vprintf-posix-tests (Files): Likewise.
926         * modules/vsnprintf-posix-tests (Files): Likewise.
927         * modules/vsprintf-posix-tests (Files): Likewise.
928         * modules/xprintf-posix-tests (Files): Likewise.
929
930 2011-09-11  Bruno Haible  <bruno@clisp.org>
931
932         Ensure pid_t gets defined.
933         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
934         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
935         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
936         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
937         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
938         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
939         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
940         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
941         * tests/test-fcntl-h.c: Check that pid_t is defined.
942         * tests/test-sched.c: Likewise.
943         * tests/test-termios.c: Likewise.
944         * tests/test-time.c: Likewise.
945         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
946         * doc/posix-headers/signal.texi: Likewise.
947         * doc/posix-headers/sys_types.texi: Likewise.
948         * doc/posix-headers/time.texi: Likewise.
949
950 2011-09-11  Bruno Haible  <bruno@clisp.org>
951
952         acl: Fix compilation on Solaris 10 (older version).
953         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
954         of ACE_EVERYONE.
955         * lib/set-mode-acl.c (qset_acl): Likewise.
956         Reported by Christian Jullien <eligis@orange.fr>.
957
958 2011-09-10  Bruno Haible  <bruno@clisp.org>
959
960         iconv, unsetenv: Add support for MSVC compiler.
961         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
962         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
963
964 2011-09-10  Bruno Haible  <bruno@clisp.org>
965
966         *printf: Add support for MSVC compiler.
967         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
968         handles the exception caused by the %n directive. When cross-compiling,
969         guess no on native Windows.
970         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
971         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
972         emulate it through vsnprintf.
973         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
974         * doc/posix-functions/dprintf.texi: Update documentation regarding
975         MSVC 9.
976         * doc/posix-functions/fprintf.texi: Likewise.
977         * doc/posix-functions/printf.texi: Likewise.
978         * doc/posix-functions/snprintf.texi: Likewise.
979         * doc/posix-functions/sprintf.texi: Likewise.
980         * doc/posix-functions/swprintf.texi: Likewise.
981         * doc/posix-functions/vdprintf.texi: Likewise.
982         * doc/posix-functions/vfprintf.texi: Likewise.
983         * doc/posix-functions/vprintf.texi: Likewise.
984         * doc/posix-functions/vsnprintf.texi: Likewise.
985         * doc/posix-functions/vsprintf.texi: Likewise.
986         * doc/glibc-functions/asprintf.texi: Likewise.
987         * doc/glibc-functions/obstack_printf.texi: Likewise.
988         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
989         * doc/glibc-functions/vasprintf.texi: Likewise.
990
991 2011-09-10  Bruno Haible  <bruno@clisp.org>
992
993         nocrash: Add support for native Windows.
994         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
995
996 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
997             Bruno Haible  <bruno@clisp.org>
998
999         absolute-header, include-next: Add support for MSVC compiler.
1000         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
1001         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
1002         directory separator in #line directives.
1003         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
1004         recognize also backslash as directory separator in #line directives.
1005
1006 2011-09-08  Jim Meyering  <meyering@redhat.com>
1007
1008         maint.mk: mark the post-release commit log with "maint: " prefix
1009         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
1010         one-line commit-log summary.
1011
1012 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
1013             Bruno Haible  <bruno@clisp.org>
1014
1015         Doc about crypt functions.
1016         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
1017         systems.
1018         * doc/posix-functions/encrypt.texi: Likewise.
1019         * doc/posix-functions/setkey.texi: Likewise.
1020
1021 2011-09-08  Simon Josefsson  <simon@josefsson.org>
1022
1023         * lib/gc.h: Fix copyright header.
1024
1025 2011-09-07  Bruno Haible  <bruno@clisp.org>
1026
1027         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
1028         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
1029         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
1030
1031 2011-09-07  Bruno Haible  <bruno@clisp.org>
1032
1033         openat: Work around compilation error with OSF/1 5.1 DTK cc.
1034         * lib/fopen.c: Use different syntax for include of <stdio.h>.
1035         * lib/freopen.c: Likewise.
1036         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
1037         * lib/lstat.c: Likewise.
1038         * lib/stat.c: Likewise.
1039         * lib/open.c: Use different syntax for include of <fcntl.h>.
1040         * lib/openat.c: Include fcntl.h again, explicitly.
1041
1042 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
1043
1044         parse-datetime: document the newly accepted format
1045         * doc/parse-datetime.texi (Combined date and time of day items):
1046         New section.
1047
1048 2011-09-06  Bruno Haible  <bruno@clisp.org>
1049
1050         acl: Fix a test failure on newer Solaris 10 with ZFS.
1051         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
1052         ENOSYS as no ACL.
1053         Reported by Jim Meyering.
1054
1055 2011-09-06  Bruno Haible  <bruno@clisp.org>
1056
1057         acl: Update for AIX >= 5.3 with NFS.
1058         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
1059         ENOSYS as no ACL.
1060
1061         acl: Fix a test failure on AIX >= 5.3 with NFS.
1062         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
1063         as no ACL.
1064
1065 2011-09-06  Bruno Haible  <bruno@clisp.org>
1066
1067         acl: Fix a test failure on IRIX 6.5 with NFS.
1068         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
1069         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
1070         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
1071         * lib/copy-acl.c (qcopy_acl): Likewise.
1072
1073 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
1074
1075         openat: port to AIX 7.1 with large files
1076         AIX 7.1 does a "#define openat open64at" if large files are in use,
1077         so we can't simply #undef openat.  Use the orig_openat trick (similar
1078         to orig_open in lib/open.c) to work around the problem.  Problem
1079         reported by Kevin Brott for GNU tar, in the thread containing
1080         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
1081         * lib/openat.c (__need_system_fcntl_h): Define first.
1082         Include <fcntl.h> and <sys/types.h> before undefining.
1083         (orig_openat) [HAVE_OPENAT]: New inline function.
1084         (openat) [HAVE_OPENAT]: Do not undef.
1085         (rpl_openat): Use orig_openat, not openat.
1086
1087 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
1088             Bruno Haible  <bruno@clisp.org>
1089
1090         acl: Avoid errors on NonStop Kernel.
1091         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
1092         ENOTSUP errors.
1093
1094 2011-09-05  Bruno Haible  <bruno@clisp.org>
1095
1096         acl: Clean up Solaris code.
1097         * lib/acl-internal.h: Remove no-op #if.
1098         * lib/file-has-acl.c: Likewise.
1099         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
1100         * lib/copy-acl.c (qcopy_acl): Likewise.
1101
1102 2011-09-05  Bruno Haible  <bruno@clisp.org>
1103
1104         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
1105         binaries built on the original Solaris 10.
1106         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
1107         trivial.
1108
1109 2011-09-05  Bruno Haible  <bruno@clisp.org>
1110
1111         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
1112         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
1113         10.
1114         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
1115         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
1116         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
1117         instead of acl_get, facl_get, acl_set, facl_set.
1118
1119 2011-09-05  Bruno Haible  <bruno@clisp.org>
1120
1121         copy-file: Try unit tests on more file systems.
1122         * tests/test-copy-file-1.sh: New file.
1123         * tests/test-copy-file-2.sh: New file.
1124         * modules/copy-file-tests (Files): Add them.
1125         (Makefile.am): Add them to TESTS.
1126
1127         acl: Try unit tests on more file systems.
1128         * tests/test-file-has-acl-1.sh: New file.
1129         * tests/test-file-has-acl-2.sh: New file.
1130         * tests/test-set-mode-acl-1.sh: New file.
1131         * tests/test-set-mode-acl-2.sh: New file.
1132         * tests/test-copy-acl-1.sh: New file.
1133         * tests/test-copy-acl-2.sh: New file.
1134         * modules/acl-tests (Files): Add them.
1135         (Makefile.am): Add them to TESTS.
1136
1137 2011-09-04  Bruno Haible  <bruno@clisp.org>
1138
1139         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
1140         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
1141         10.
1142         (OLD_ALLOW, OLD_DENY): New macros.
1143         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
1144         ACE_ACCESS_ALLOWED_ACE_TYPE.
1145         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
1146         ACE_ACCESS_DENIED_ACE_TYPE.
1147         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
1148         (NEW_ACE_EXECUTE): Fix value.
1149         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
1150         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
1151         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
1152         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
1153         NEW_ACE_SYNCHRONIZE): New macros.
1154         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
1155         instead of acl_fromtext, acl_set, facl_set.
1156         Fixes a coreutils/tests/cp/perm failure.
1157
1158 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
1159
1160         openat: test for fstatat (..., 0) bug
1161         Further testing with tar suggests that fstatat (..., 0)
1162         does not work in general, on AIX 7.1; see
1163         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
1164         So, give up entirely on AIX 7.1's fstatat, and fall back on our
1165         replacement fstatat (which is what older AIX releases were using
1166         anyway).
1167         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
1168         use is now changed to orig_fstatat.  This was probably the right
1169         thing to do anyway.
1170         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
1171         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
1172         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
1173         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
1174         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
1175         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
1176         if the bug is found.
1177
1178         openat: test for fstatat (AT_FDCWD, ..., 0) bug
1179         This tests for another fstatat bug on AIX 7.1:
1180         fstatat (AT_FDCWD, ..., 0) does not work.  See
1181         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
1182         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
1183         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
1184         (rpl_fstatat): Adjust so that it works around either (or both)
1185         bugs if present.
1186         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
1187
1188 2011-09-03  Karl Berry  <karl@gnu.org>
1189
1190         * doc/regex.texi (Character Class Operators): Avoid literal ":"
1191         in index entries.
1192
1193 2011-09-02  Bruno Haible  <bruno@clisp.org>
1194
1195         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
1196         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
1197         values of AR, ARFLAGS, RANLIB.
1198         Reported by John W. Eaton <jwe@gnu.org> for Octave.
1199
1200 2011-09-02  Bruno Haible  <bruno@clisp.org>
1201
1202         Find 'ar' program that fits with --host argument.
1203         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
1204
1205 2011-09-02  Bruno Haible  <bruno@clisp.org>
1206
1207         tests: init.sh: Support any non-GNU diff.
1208         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
1209         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
1210         Solaris 8.
1211
1212 2011-09-02  Bruno Haible  <bruno@clisp.org>
1213
1214         tests: init.sh: work also with any non-GNU diff that supports -u
1215         * tests/init.sh: Relax check for diff -u support.
1216         Rather than checking for GNU diff via --version, simply check
1217         for support for -u itself.  Useful at least on OpenBSD 4.9,
1218         AIX 7.1, IRIX 6.5, and Solaris 10.
1219
1220 2011-09-01  Bruno Haible  <bruno@clisp.org>
1221
1222         strtoimax, strtoumax: Document problem on HP-UX 11.
1223         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
1224         * doc/posix-functions/strtoumax.texi: Likewise.
1225
1226 2011-09-01  Bruno Haible  <bruno@clisp.org>
1227
1228         strtoumax: Avoid link error on OSF/1 with DTK cc.
1229         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
1230         defined as a function.
1231         * modules/strtoumax (Depends-on, configure.ac): Test only whether
1232         strtoumax is defined, not whether it is declared.
1233
1234 2011-09-01  Bruno Haible  <bruno@clisp.org>
1235
1236         strtoimax: Avoid link error on OSF/1 with DTK cc.
1237         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
1238         defined as a function.
1239         * modules/strtoimax (Depends-on, configure.ac): Test only whether
1240         strtoimax is defined, not whether it is declared.
1241
1242 2011-09-01  Bruno Haible  <bruno@clisp.org>
1243
1244         imaxdiv: Avoid link error on OSF/1 with DTK cc.
1245         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
1246         as a function.
1247         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
1248         whether it is declared.
1249
1250 2011-09-01  Bruno Haible  <bruno@clisp.org>
1251
1252         imaxabs: Avoid link error on OSF/1 with DTK cc.
1253         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
1254         as a function.
1255         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
1256         whether it is declared.
1257
1258 2011-09-01  Bruno Haible  <bruno@clisp.org>
1259
1260         Tests for module 'strtoumax'.
1261         * modules/strtoumax-tests: New file.
1262         * tests/test-strtoumax.c: New file.
1263
1264         Tests for module 'strtoimax'.
1265         * modules/strtoimax-tests: New file.
1266         * tests/test-strtoimax.c: New file.
1267
1268         Tests for module 'imaxdiv'.
1269         * modules/imaxdiv-tests: New file.
1270         * tests/test-imaxdiv.c: New file.
1271
1272         Tests for module 'imaxabs'.
1273         * modules/imaxabs-tests: New file.
1274         * tests/test-imaxabs.c: New file.
1275
1276 2011-09-01  Bruno Haible  <bruno@clisp.org>
1277
1278         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
1279         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
1280         pthread_create.
1281
1282 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
1283
1284         openat: work around AIX 7.1 fstatat issue
1285         This should fix the problem that was not properly fixed
1286         in the previous change, dated 2011-08-30.
1287         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
1288         __need_system_stat_h defined.
1289         (orig_fstatat) [HAVE_FSTATAT]: New function.
1290         (rpl_fstatat): Go back to the old way of doing things,
1291         except call orig_fstatat instead of fstatat.
1292         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
1293         Remove unnecessary check whether fstatat fills in st_size etc.
1294
1295 2011-09-01  Bruno Haible  <bruno@clisp.org>
1296
1297         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
1298         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
1299         just include the system's header.
1300
1301 2011-08-31  Jim Meyering  <meyering@redhat.com>
1302
1303         tests: avoid spurious assertion failure in test-float.c on ppc64
1304         * tests/test-float.c (test_long_double): Comment out an assertion,
1305         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
1306         with gcc-4.4.4.
1307
1308         maint: indent with spaces, not TABs
1309         I need to get in the habit of running gnulib's "make check".
1310         Both of these would have been caught.
1311         * m4/largefile.m4: Indent with spaces, not TABs.
1312         * lib/parse-datetime.y (iso_8601_time): Likewise.
1313         Spotted by Pádraig Brady.
1314
1315         test-parse-datetime.c: accommodate a relatively strict gcc warning
1316         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
1317         to avoid a warning from gcc's -Werror=missing-declarations.
1318         Insert a few spaces-before-funcall-parenthesis.
1319
1320 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
1321
1322         parse-datetime: accept ISO 8601 date and time rep with "T" separator
1323         The parser now accepts ISO 8601 date-time strings with "T" as the
1324         separator.  It has long parsed dates like "2004-02-29 16:21:42"
1325         with a space between the date and time strings.  Now it also parses
1326         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
1327         variants like "2004-02-29T16:21:42.333-07:00"
1328         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
1329         of day representation using the 'T' separator character.
1330         * doc/parse-datetime.texi (General date syntax): replace use of
1331         deprecated --iso-8601 option with --rfc-3339 in example of date
1332         command output formats that can be parsed.
1333         * tests/test-parse-datetime.c (tm_diff): New function, taken from
1334         lib/parse-datetime.y.
1335         (gmt_offset): New function.
1336         (main): Add additional test cases to validate ISO8601 extended
1337         date and time of day parsing.
1338
1339 2011-08-31  Bruno Haible  <bruno@clisp.org>
1340
1341         freopen: Documentation.
1342         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
1343         name.
1344         Reported by Claudio Bley <claudio.bley@gmail.com>.
1345
1346 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
1347
1348         freopen: Don't crash if the filename argument is NULL.
1349         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
1350         NULL.
1351
1352 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
1353
1354         openat: work around AIX 7.1 fstatat bug
1355         Problem reported by Kevin Brott for GNU tar, in the thread containing
1356         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
1357         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
1358         FSTATAT_ST_SIZE_ETC_BROKEN.
1359         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
1360         rpl_fstatat.
1361         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
1362         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
1363         AC_CHECK_FUNCS_ONCE for fstatat.
1364         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
1365         fchmodat, mkdirat, openat and unlinkat.
1366
1367 2011-08-30  Bruno Haible  <bruno@clisp.org>
1368
1369         Avoid endless recursions if config.h includes some header files.
1370         * lib/fopen.c (__need_FILE): Define already before including config.h.
1371         * lib/freopen.c (__need_FILE): Likewise.
1372         * lib/open.c (__need_system_fcntl_h): Likewise.
1373         * lib/stat.c (__need_system_sys_stat_h): Likewise.
1374         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
1375         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
1376
1377 2011-08-25  Karl Berry  <karl@gnu.org>
1378
1379         * config/srclist.txt (ylwrap): new try.
1380         * build-aux/ylwrap: new file.
1381
1382 2011-08-23  Bruno Haible  <bruno@clisp.org>
1383
1384         tmpdir: Use a good default directory on native Windows.
1385         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
1386         (P_tmpdir): Default to _P_tmpdir on native Windows.
1387         (path_search): On native Windows, try the value returned by GetTempPath
1388         before trying P_tmpdir.
1389         * modules/tmpdir (Depends-on): Add pathmax.
1390         Suggested by John Darrington <john@darrington.wattle.id.au>.
1391
1392 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
1393
1394         doc: fix typo in README-release
1395         * top/README-release: Capitalize first word of a sentence.
1396
1397 2011-08-19  Jim Meyering  <meyering@redhat.com>
1398
1399         fts: do not exhaust memory when processing million-entry directories
1400         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
1401         directory would require about 256*N bytes of memory.  Thus, it was
1402         easy to construct a directory too large to be processed by any of
1403         those tools.  With this change, fts' maximum memory utilization is
1404         now limited to around 30MB.
1405         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
1406         (fts_read): When we've processed the final entry (i.e., when
1407         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
1408         using the parent entry to read any remaining entries.  Dispatch
1409         depending on what fts_build returns:
1410         - NULL+stop, aka failure: stop
1411         - NULL otherwise: move up in the dir hierarchy
1412         - non-NULL: handle this new entry
1413         (fts_build): Declare and use new local, continue_readdir.
1414         Prepare to be called from fts_read, when the entries
1415         from a partially-read directory have just been exhausted.
1416         In that case, we'll skip the opendir and instead use the parent's
1417         fts_dirp and derive dir_fd from that.
1418         Finally, in the readdir loop, if we read max_entries entries,
1419         exit the loop ensuring *not* to call closedir.  This is required
1420         so that fts_dirp can be reused on a subsequent call.
1421         Prompted by Ben England's report of memory exhaustion in find
1422         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
1423
1424         maint: fts: move decl of `dp' down into while loop; split a long line
1425         * lib/fts.c (fts_build): No semantic change.
1426
1427         fts: add/use new struct member, fts_dirp
1428         We are about to use this to manage any directory with
1429         too many entries to read all of them into memory at once.
1430         To do that, we'll need to save the DIR* pointer in each
1431         affected FTSENT struct.
1432         * lib/fts_.h: Include <dirent.h>.
1433         (struct FTSENT) [fts_dirp]: New member.
1434         * lib/fts.c (closedir_and_clear): Define.
1435         Use it in place of closedir so that we are sure to
1436         clear the new fts_dirp member when done with it.
1437         (fts_alloc): Initialize the new member.
1438         (fts_lfree): Free, if needed.
1439
1440         maint: fts: give __opendir2 a new parameter and rename
1441         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
1442         than surreptitiously using sole caller's "dir_fd".
1443         (fts_opendir): Rename from __opendir2.
1444
1445         maint: fts.c: remove __opendir2's now-unused parameter, oflag
1446         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
1447
1448         maint: fts.c: correct off-by-one indentation
1449         * lib/fts.c (fts_build): Correct indentation, change style
1450         of a couple of block comments, and bracing style.
1451
1452         maint: fts.c: move __opendir2 #define "up" out of function body
1453         * lib/fts.c (__opendir2): Move "up".  No semantic change.
1454
1455         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
1456         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
1457         out for a long time and besides was useful only on BSD systems.
1458
1459 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
1460
1461         regex: port to Stratus OpenVOS
1462         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
1463         define to empty, rather than attempting nonportable optimizations.
1464         Problem reported by Paul Green in:
1465         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
1466         and fix suggested by Eric Blake in:
1467         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
1468
1469 2011-08-17  Eric Blake  <eblake@redhat.com>
1470
1471         getcwd: fix test failures on mingw
1472         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
1473         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
1474         test if long directory cannot be created, and allow mingw errno.
1475
1476         getcwd-lgpl: fix m4 to match relaxed test for BSD
1477         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
1478         (gl_FUNC_GETCWD_SIGNATURE): New macro.
1479         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
1480         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
1481         signature problem.
1482
1483         getcwd: fix compilation on mingw64
1484         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
1485         getcwd.
1486         Reported by Marc-André Lureau.
1487
1488         pipe2: silence compiler warning
1489         * lib/pipe2.c (pipe2): Hide label if it is not used.
1490
1491 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
1492
1493         relocatable-prog: fix link error
1494         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
1495         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
1496         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
1497         into modules/relocatable-lib without noticing that
1498         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
1499         also needs to build relocatable.c.
1500
1501 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
1502
1503         getaddrinfo: fix sh typo in gai_strerrorA decl checking
1504         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
1505         shell code: it contained a 'break' that was not in a loop.
1506         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
1507         via a shell-language loop; this may have been true in old Autoconf
1508         versions, but it's not true in Autoconf 2.68.  I found this bug
1509         when testing coreutils git on Solaris 8, whose shell complains
1510         about the syntax error.
1511
1512 2011-08-12  Simon Josefsson  <simon@josefsson.org>
1513
1514         * lib/base64.c: Fix comment to reference RFC 4648.
1515         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
1516         <gvtulder@gmail.com>.
1517
1518 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
1519
1520         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
1521
1522         po/Makefile.in.in: fix make -q problem
1523         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
1524         rule, since there's no file named 'check-macro-version' and its
1525         use as a file breaks make -q.
1526         (all): Don't depend on check-macro-version.
1527         (CHECK_MACRO_VERSION): New macro.
1528         (stamp-po): Use it.
1529
1530         configmake: fix make -q problem
1531         * modules/configmake (configmake.h): Update configmake.h's time stamp
1532         even if the file does not change.  Otherwise, 'make -q' fails.
1533         Problem reported by Simon Josefsson in
1534         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
1535
1536 2011-08-11  Jim Meyering  <meyering@redhat.com>
1537
1538         git-version-gen: correct the advice in a comment
1539         * build-aux/git-version-gen: Correct comment.
1540         Don't recommend to list .tarball-version in .gitignore.
1541
1542 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
1543
1544         base64: fix off-by-one buffer size bug
1545         Problem and (trivial) fix reported by Gijs van Tulder in
1546         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
1547         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
1548         * tests/test-base64.c (main): Catch the bug.
1549
1550 2011-08-10  Eric Blake  <eblake@redhat.com>
1551
1552         closein: correct comments
1553         * lib/closein.c (close_stdin): Improve comments.
1554
1555 2011-08-09  Bruno Haible  <bruno@clisp.org>
1556
1557         More tests for 'fseeko'.
1558         * tests/test-fseeko3.c: New file, from Eric Blake.
1559         * tests/test-fseeko3.sh: New file.
1560         * modules/fseeko-tests (Files): Add them.
1561         (TESTS): Add test-fseeko3.sh.
1562         (check_PROGRAMS): Add test-fseeko3.
1563
1564 2011-08-09  Eric Blake  <eblake@redhat.com>
1565
1566         fseeko: remove unneeded hack
1567         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
1568
1569         fseeko: fix bug on glibc
1570         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
1571         Reported by John W. Eaton.
1572
1573 2011-08-08  Bruno Haible  <bruno@clisp.org>
1574
1575         unictype/base: Fix interoperability with preinstalled libunistring.
1576         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
1577         Reported by Simon Josefsson.
1578
1579 2011-08-08  Bruno Haible  <bruno@clisp.org>
1580
1581         iswblank: Detect declaration correctly.
1582         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
1583         AC_CHECK_DECLS invocation.
1584
1585 2011-08-08  Bruno Haible  <bruno@clisp.org>
1586
1587         tcgetsid: Detect declaration correctly.
1588         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
1589         AC_CHECK_DECLS invocation.
1590         Reported by Simon Josefsson.
1591
1592 2011-08-08  Eric Blake  <eblake@redhat.com>
1593
1594         largefile: fix typo that regressed large file support
1595         * modules/largefile (configure.ac-early): Fix section name.
1596
1597 2011-08-06  Karl Berry  <karl@gnu.org>
1598
1599         * MODULES.html.sh (func_all_files): _Noreturn is no longer
1600         a separate module.
1601
1602 2011-08-05  Simon Josefsson  <simon@josefsson.org>
1603
1604         openat: Fix warnings and commens when building unlinkat.c on Hurd.
1605         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
1606         get prototype for free.
1607
1608 2011-08-04  Bruno Haible  <bruno@clisp.org>
1609
1610         Tests for module 'pathmax'.
1611         * modules/pathmax-tests: New file.
1612         * tests/test-pathmax.c: New file.
1613
1614         canonicalize-lgpl: Support larger filenames on the Hurd.
1615         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
1616         Reported by Paul Eggert.
1617
1618         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
1619         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
1620         * lib/chdir-long.h: Include pathmax.h.
1621         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
1622         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
1623         (PATH_MAX): Remove code that is done by pathmax.h.
1624         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
1625         * lib/tmpfile.c: Add a comment.
1626         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
1627         * modules/chdir-long (Depends-on): Add pathmax.
1628         * modules/getcwd (Depends-on): Add pathmax.
1629         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
1630         is not defined.
1631         * doc/posix-headers/limits.texi: Mention the pathmax module.
1632         * NEWS: Mention the change.
1633
1634 2011-08-02  Bruno Haible  <bruno@clisp.org>
1635
1636         pthread_sigmask: Actually use results of gl_THREADLIB.
1637         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
1638         gl_THREADLIB, not gl_[]THREADLIB.
1639         Reported by Eric Blake.
1640
1641 2011-08-02  Jim Meyering  <meyering@redhat.com>
1642
1643         maint.mk: relax the default _gl_TS_function_match regexp
1644         * top/maint.mk (_gl_TS_function_match): Don't require at least one
1645         space between function name and "(" in an "extern" declaration.
1646         That would fail to match a decl with no space there: extern void foo();
1647
1648 2011-07-31  Iain Nicol  <iain@thenicols.net>
1649
1650         git-version-gen: document that EXTRA_DIST must include .version
1651         * build-aux/git-version-gen: In the how-to-use comment, document
1652         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
1653         will fail when run from an unpacked distribution tarball.
1654
1655 2011-08-01  Bruno Haible  <bruno@clisp.org>
1656
1657         wctype-h: Fix last change.
1658         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
1659         REPLACE_TOWLOWER to 0.
1660         Reported by Sam Steingold <sds@gnu.org>.
1661
1662 2011-07-31  Bruno Haible  <bruno@clisp.org>
1663
1664         frexpl: Update autoconf test.
1665         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
1666         according to changes of 2011-06-20.
1667
1668 2011-07-31  Bruno Haible  <bruno@clisp.org>
1669
1670         sys_utsname: Add support for Minix.
1671         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
1672         <sys/utsname.h>.
1673         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1674         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
1675
1676 2011-07-31  Bruno Haible  <bruno@clisp.org>
1677
1678         strings: Add support for Minix.
1679         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
1680         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
1681         * doc/posix-headers/strings.texi: Document the Minix problem.
1682
1683 2011-07-31  Bruno Haible  <bruno@clisp.org>
1684
1685         wctype-h: Add support for Minix.
1686         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
1687         REPLACE_TOWLOWER.
1688         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
1689         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
1690         REPLACE_ISWCNTRL.
1691
1692 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
1693
1694         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
1695         This is a performance improvement for 64-bit hosts: it causes the
1696         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
1697
1698 2011-07-31  Bruno Haible  <bruno@clisp.org>
1699
1700         stdioext: Add support for Minix.
1701         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
1702         * lib/fpurge.c (fpurge): Likewise.
1703         * lib/freadahead.c (freadahead): Likewise.
1704         * lib/freadable.c (freadable): Likewise.
1705         * lib/freading.c (freading): Likewise.
1706         * lib/freadptr.c (freadptr): Likewise.
1707         * lib/freadseek.c (freadptrinc): Likewise.
1708         * lib/fseeko.c (rpl_fseeko): Likewise.
1709         * lib/fseterr.c (fseterr): Likewise.
1710         * lib/fwritable.c (fwritable): Likewise.
1711         * lib/fwriting.c (fwriting): Likewise.
1712         * lib/fflush.c (clear_ungetc_buffer): Update comment.
1713         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
1714
1715 2011-07-31  Bruno Haible  <bruno@clisp.org>
1716
1717         errno: Port to Minix.
1718         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
1719         ECONNABORTED are defined.
1720         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
1721         GNULIB_defined_ECONNABORTED): New macros.
1722         * lib/strerror-override.h (strerror_override): Test also
1723         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
1724         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
1725         ECONNABORTED.
1726         * doc/posix-headers/errno.texi: Mention the Minix problem.
1727
1728 2011-07-31  Bruno Haible  <bruno@clisp.org>
1729
1730         Work around declaration collisions on Minix.
1731         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
1732         defined, set REPLACE_MBSINIT.
1733         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
1734         defined, set REPLACE_MBRTOWC.
1735         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
1736         set REPLACE_MBRLEN.
1737         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
1738         defined, set REPLACE_MBSRTOWCS.
1739         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
1740         defined, set REPLACE_WCRTOMB.
1741         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
1742         defined, set REPLACE_WCSRTOMBS.
1743
1744 2011-07-31  Bruno Haible  <bruno@clisp.org>
1745
1746         Add support for Minix with ACK compiler.
1747         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
1748         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
1749         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
1750
1751 2011-07-31  Bruno Haible  <bruno@clisp.org>
1752
1753         Documentation about Minix.
1754         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
1755         * doc/glibc-headers/*.texi: Likewise.
1756         * doc/posix-functions/*.texi: Likewise.
1757         * doc/glibc-functions/*.texi: Likewise.
1758
1759 2011-07-31  Bruno Haible  <bruno@clisp.org>
1760
1761         snippet/warn-on-use: Fix indentation.
1762         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
1763
1764 2011-07-25  Jim Meyering  <meyering@redhat.com>
1765
1766         tests: test-update-copyright.sh: remove unnecessary "rm" commands
1767         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
1768         commands.
1769
1770 2011-07-27  Jim Meyering  <meyering@redhat.com>
1771
1772         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
1773         * top/maint.mk (gl_extract_significant_defines_): Now that
1774         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
1775         gnulib/lib/signal.in.h, and now that we recommend to
1776         define-if-undefined those two symbols in application code,
1777         we must filter them out of the "significant" list.
1778         This avoids a "make syntax-check" failure in coreutils.
1779
1780 2011-07-26  Eric Blake  <eblake@redhat.com>
1781
1782         warnings: add comments about previous patch
1783         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
1784         * m4/include_next.m4: Likewise.
1785         * m4/warn-on-use.m4: Likewise.
1786         * m4/warnings.m4: Likewise, and simplify use.
1787         Suggested by Stefano Lattarini.
1788
1789         include-next, warnings: support older autoconf
1790         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
1791         AS_VAR_PUSHDEF in a way that works with older autoconf.
1792         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
1793         Reported by Daniel P. Berrange.
1794
1795 2011-07-25  Bruno Haible  <bruno@clisp.org>
1796
1797         fseek, ftell: Fix doc.
1798         * doc/posix-functions/fseek.texi: Reword statement about
1799         AC_SYS_LARGEFILE.
1800         * doc/posix-functions/ftell.texi: Likewise.
1801
1802 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1803             Bruno Haible  <bruno@clisp.org>
1804
1805         Add dependencies to the 'largefile' module.
1806         * modules/fopen (Depends-on): Add 'largefile'.
1807         * modules/freopen (Depends-on): Likewise.
1808         * modules/fseeko (Depends-on): Likewise.
1809         * modules/ftello (Depends-on): Likewise.
1810         * modules/glob (Depends-on): Likewise.
1811         * modules/lseek (Depends-on): Likewise.
1812         * modules/lstat (Depends-on): Likewise.
1813         * modules/mkostemp (Depends-on): Likewise.
1814         * modules/mkostemps (Depends-on): Likewise.
1815         * modules/mkstemp (Depends-on): Likewise.
1816         * modules/mkstemps (Depends-on): Likewise.
1817         * modules/open (Depends-on): Likewise.
1818         * modules/openat (Depends-on): Likewise.
1819         * modules/pread (Depends-on): Likewise.
1820         * modules/pwrite (Depends-on): Likewise.
1821         * modules/scandir (Depends-on): Likewise.
1822         * modules/stat (Depends-on): Likewise.
1823         * modules/tmpfile (Depends-on): Likewise.
1824         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
1825         since the containing module now depends on the largefile module.
1826         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
1827         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
1828         off_t is fixed by gnulib.
1829         * doc/posix-functions/freopen.texi: Likewise.
1830         * doc/posix-functions/fseeko.texi: Likewise.
1831         * doc/posix-functions/fstatat.texi: Likewise.
1832         * doc/posix-functions/ftello.texi: Likewise.
1833         * doc/posix-functions/glob.texi: Likewise.
1834         * doc/posix-functions/lseek.texi: Likewise.
1835         * doc/posix-functions/lstat.texi: Likewise.
1836         * doc/posix-functions/mkstemp.texi: Likewise.
1837         * doc/posix-functions/open.texi: Likewise.
1838         * doc/posix-functions/openat.texi: Likewise.
1839         * doc/posix-functions/pread.texi: Likewise.
1840         * doc/posix-functions/pwrite.texi: Likewise.
1841         * doc/posix-functions/scandir.texi: Likewise.
1842         * doc/posix-functions/stat.texi: Likewise.
1843         * doc/posix-functions/tmpfile.texi: Likewise.
1844         * doc/glibc-functions/mkostemp.texi: Likewise.
1845         * doc/glibc-functions/mkostemps.texi: Likewise.
1846         * doc/glibc-functions/mkstemps.texi: Likewise.
1847
1848 2011-07-25  Bruno Haible  <bruno@clisp.org>
1849
1850         fcntl: Move AC_LIBOBJ invocation to module description.
1851         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
1852         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
1853
1854         fcntl: Remove call-in from fchdir.m4.
1855         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
1856         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
1857
1858         dup3: Remove potential call-in from fchdir.m4.
1859         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
1860         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
1861
1862         dup2: Move AC_LIBOBJ invocation to module description.
1863         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
1864         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
1865         Don't invoke AC_LIBOBJ.
1866         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
1867
1868         dup2: Remove call-in from fchdir.m4.
1869         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
1870         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
1871
1872         fclose: Move AC_LIBOBJ invocation to module description.
1873         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
1874         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
1875         to 1.
1876         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
1877
1878         fclose: Remove call-in from close.m4.
1879         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
1880         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
1881
1882         close: Move AC_LIBOBJ invocation to module description.
1883         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
1884         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
1885         1.
1886         * modules/close (configure.ac): Invoke AC_LIBOBJ.
1887
1888         close: Remove call-in from fchdir.m4.
1889         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
1890         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
1891
1892         open: Move AC_LIBOBJ invocation to module description.
1893         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
1894         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
1895         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
1896
1897         open: Remove call-in from fchdir.m4.
1898         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
1899         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
1900
1901         fchdir: Start to remove gl_REPLACE_* idiom.
1902         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
1903         (gl_FUNC_FCHDIR): Invoke it.
1904
1905 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1906
1907         * lib/ftell.c (ftell): Comment out cast.
1908
1909         close: use gl_REPLACE_FCLOSE only if defined
1910         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
1911         is defined.  The close module doesn't depend on the fclose module
1912         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
1913         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
1914         I reproduced the problem with "./gnulib-tool --test close sys_socket".
1915
1916 2011-07-24  Jim Meyering  <meyering@redhat.com>
1917
1918         test-select.h: avoid warning when using gcc's -Wmissing-declarations
1919         * tests/test-select.h (test_function): Declare as "static".
1920
1921 2011-07-24  Bruno Haible  <bruno@clisp.org>
1922
1923         doc: Mention the effects of AC_SYS_LARGEFILE.
1924         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
1925         on this function.
1926         * doc/posix-functions/aio_error.texi: Likewise.
1927         * doc/posix-functions/aio_fsync.texi: Likewise.
1928         * doc/posix-functions/aio_read.texi: Likewise.
1929         * doc/posix-functions/aio_return.texi: Likewise.
1930         * doc/posix-functions/aio_suspend.texi: Likewise.
1931         * doc/posix-functions/aio_write.texi: Likewise.
1932         * doc/posix-functions/fgetpos.texi: Likewise.
1933         * doc/posix-functions/fopen.texi: Likewise.
1934         * doc/posix-functions/freopen.texi: Likewise.
1935         * doc/posix-functions/fsetpos.texi: Likewise.
1936         * doc/posix-functions/fstatvfs.texi: Likewise.
1937         * doc/posix-functions/ftruncate.texi: Likewise.
1938         * doc/posix-functions/ftw.texi: Likewise.
1939         * doc/posix-functions/getrlimit.texi: Likewise.
1940         * doc/posix-functions/glob.texi: Likewise.
1941         * doc/posix-functions/lio_listio.texi: Likewise.
1942         * doc/posix-functions/lockf.texi: Likewise.
1943         * doc/posix-functions/mkstemp.texi: Likewise.
1944         * doc/posix-functions/mmap.texi: Likewise.
1945         * doc/posix-functions/nftw.texi: Likewise.
1946         * doc/posix-functions/openat.texi: Likewise.
1947         * doc/posix-functions/opendir.texi: Likewise.
1948         * doc/posix-functions/posix_fadvise.texi: Likewise.
1949         * doc/posix-functions/posix_fallocate.texi: Likewise.
1950         * doc/posix-functions/pread.texi: Likewise.
1951         * doc/posix-functions/pwrite.texi: Likewise.
1952         * doc/posix-functions/readdir.texi: Likewise.
1953         * doc/posix-functions/readdir_r.texi: Likewise.
1954         * doc/posix-functions/rewinddir.texi: Likewise.
1955         * doc/posix-functions/scandir.texi: Likewise.
1956         * doc/posix-functions/seekdir.texi: Likewise.
1957         * doc/posix-functions/setrlimit.texi: Likewise.
1958         * doc/posix-functions/statvfs.texi: Likewise.
1959         * doc/posix-functions/telldir.texi: Likewise.
1960         * doc/posix-functions/tmpfile.texi: Likewise.
1961         * doc/posix-functions/truncate.texi: Likewise.
1962         * doc/glibc-functions/fallocate.texi: Likewise.
1963         * doc/glibc-functions/fstatfs.texi: Likewise.
1964         * doc/glibc-functions/fts_children.texi: Likewise.
1965         * doc/glibc-functions/fts_read.texi: Likewise.
1966         * doc/glibc-functions/getdirentries.texi: Likewise.
1967         * doc/glibc-functions/mkostemp.texi: Likewise.
1968         * doc/glibc-functions/mkostemps.texi: Likewise.
1969         * doc/glibc-functions/mkstemps.texi: Likewise.
1970         * doc/glibc-functions/preadv.texi: Likewise.
1971         * doc/glibc-functions/pwritev.texi: Likewise.
1972         * doc/glibc-functions/sendfile.texi: Likewise.
1973         * doc/glibc-functions/statfs.texi: Likewise.
1974
1975 2011-07-24  Bruno Haible  <bruno@clisp.org>
1976
1977         doc: Fix typo.
1978         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
1979
1980 2011-07-24  Bruno Haible  <bruno@clisp.org>
1981
1982         doc: Mention fsusage.
1983         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
1984
1985 2011-07-24  Bruno Haible  <bruno@clisp.org>
1986
1987         doc: Mention new glibc headers and functions.
1988         * doc/glibc-headers/gshadow.texi: New file.
1989         * doc/glibc-functions/endsgent.texi: New file.
1990         * doc/glibc-functions/fgetsgent.texi: New file.
1991         * doc/glibc-functions/fgetsgent_r.texi: New file.
1992         * doc/glibc-functions/getsgent.texi: New file.
1993         * doc/glibc-functions/getsgent_r.texi: New file.
1994         * doc/glibc-functions/getsgnam.texi: New file.
1995         * doc/glibc-functions/getsgnam_r.texi: New file.
1996         * doc/glibc-functions/putsgent.texi: New file.
1997         * doc/glibc-functions/setsgent.texi: New file.
1998         * doc/glibc-functions/sgetsgent.texi: New file.
1999         * doc/glibc-functions/sgetsgent_r.texi: New file.
2000         * doc/glibc-functions/malloc_info.texi: New file.
2001         * doc/glibc-functions/preadv.texi: New file.
2002         * doc/glibc-functions/pwritev.texi: New file.
2003         * doc/glibc-functions/register_printf_modifier.texi: New file.
2004         * doc/glibc-functions/register_printf_specifier.texi: New file.
2005         * doc/glibc-functions/register_printf_type.texi: New file.
2006         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
2007         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
2008         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
2009         * doc/glibc-functions/pthread_getname_np.texi: New file.
2010         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
2011         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
2012         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
2013         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
2014         * doc/glibc-functions/pthread_setname_np.texi: New file.
2015         * doc/glibc-functions/pthread_sigqueue.texi: New file.
2016         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
2017         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
2018         * doc/glibc-functions/qsort_r.texi: New file.
2019         * doc/glibc-functions/quick_exit.texi: New file.
2020         * doc/glibc-functions/syncfs.texi: New file.
2021         * doc/gnulib.texi: Include them.
2022         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
2023         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
2024         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
2025         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
2026         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
2027         * doc/glibc-functions/execvpe.texi: Likewise.
2028
2029 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
2030
2031         ftell: don't include <unistd.h>
2032         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
2033         guaranteed to define off_t, and the ftell module depends on the
2034         stdio module.
2035
2036         ftell: do not assume wraparound signed arithmetic
2037         * lib/ftell.c: Include <limits.h>.
2038         (ftell): Don't assume wraparound signed arithmetic.
2039
2040 2011-07-24  Bruno Haible  <bruno@clisp.org>
2041
2042         close: No longer depend on module 'fclose'.
2043         * modules/close (Depends-on): Remove fclose.
2044         * NEWS: Mention the change.
2045         Suggested by Sam Steingold <sds@gnu.org>.
2046
2047 2011-07-24  Bruno Haible  <bruno@clisp.org>
2048
2049         fsusage: Enable large volume support on AIX >= 5.2.
2050         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
2051         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
2052         instead of STAT_STATVFS.
2053         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
2054
2055         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
2056         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
2057         f_blocks field only on MacOS X.
2058
2059         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
2060         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
2061         * modules/fsusage (Depends-on): Add largefile.
2062
2063 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
2064
2065         * README: Modernize discussion of signed integers.
2066         Assuming overflow wraparound is no longer safe.
2067         Mention ones' complement and signed magnitude.
2068
2069 2011-07-22  Bruno Haible  <bruno@clisp.org>
2070
2071         select tests, pselect tests: Refactor.
2072         * tests/test-select.h: New file, extracted from tests/test-select.c.
2073         (select_fn): New type.
2074         (test, do_select, do_select_nowait, do_select_wait, test_tty,
2075         test_connect_first, test_accept_first, test_pair, test_socket_pair,
2076         test_pipe): Add my_select argument.
2077         (test_function): Renamed from main. Add my_select argument.
2078         * tests/test-select.c: Move most code to tests/test-select.h. Include
2079         test-select.h.
2080         * modules/select-tests (Files): Add tests/test-select.h.
2081         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
2082         (my_select, main): New functions.
2083         * modules/pselect-tests (Files): Add tests/test-select.h,
2084         tests/macros.h, tests/signature.h.
2085         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
2086         (configure.ac): Check for <sys/wait.h>.
2087
2088 2011-07-22  Bruno Haible  <bruno@clisp.org>
2089
2090         sys_select tests: Check the signature of FD_*.
2091         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
2092         signature tests from here...
2093         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
2094         here.
2095         * modules/sys_select-tests (Files): Add tests/signature.h.
2096
2097 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
2098
2099         largefile: new module, replacing large-inode
2100         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
2101         * MODULES.html.sh: Add largefile, remove large-inode.
2102         * modules/largefile, m4/largefile.m4: New files.
2103         * modules/large-inode, m4/large-inode.m4: Remove.
2104
2105         fsusage: port to MacOS X 10.7 with 4 TiB file systems
2106         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
2107         implementations that use only 32 bits to count blocks.
2108         On typical hosts with 1024-byte blocks, this fails with file
2109         systems as small as 4 TiB.  Problem reported by Herb Wartens
2110         <http://debbugs.gnu.org/9140> and this should also fix a similar
2111         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
2112
2113         large-inode: New module
2114         * MODULES.html.sh: Add it.
2115         * modules/large-inode, m4/large-inode.m4: New files.
2116
2117         extensions: Enable extensions on MacOS X 10.5 and later.
2118         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
2119
2120 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
2121
2122         file-has-acl: use acl_extended_file_nofollow if available
2123         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
2124         (acl_extended_file): New macro.
2125         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
2126         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
2127
2128 2011-07-21  Bruno Haible  <bruno@clisp.org>
2129
2130         Declare system functions in a way that works with C++.
2131         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
2132         declare fdopendir as extern "C".
2133         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
2134         declare frexpl as extern "C".
2135         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
2136         declare gai_strerror as extern "C".
2137         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
2138         programs, declare gai_strerror as extern "C".
2139         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
2140         declare getlogin_r as extern "C".
2141         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
2142         as extern "C".
2143         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
2144         declare ldexpl as extern "C".
2145         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
2146         as extern "C".
2147         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
2148         program, declare getmntinfo as extern "C".
2149         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
2150         stpncpy as extern "C".
2151         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
2152         program, declare __xpg_strerror_r as extern "C".
2153         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
2154         strndup as extern "C".
2155         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
2156         declare memset and bzero as extern "C".
2157         Reported by Sam Steingold <sds@gnu.org>.
2158
2159 2011-07-12  Jim Meyering  <meyering@redhat.com>
2160
2161         maint.mk: prohibit inclusion of "verify.h" without use
2162         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
2163
2164 2011-07-19  Pádraig Brady  <P@draigBrady.com>
2165
2166         timer-time: A new module to check for timer_settime()
2167         * m4/timer_time.m4: Check for the posix function.
2168         * modules/timer-time: Add the new module.
2169         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
2170         Mention it.
2171
2172 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
2173             Bruno Haible  <bruno@clisp.org>
2174
2175         pthread_sigmask: assume POSIX threads if --avoid=threadlib
2176         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
2177         not defined, assume POSIX threads and look for pthread_sigmask in
2178         $LIBS, without changing $CPPFLAGS.
2179
2180 2011-07-19  Bruno Haible  <bruno@clisp.org>
2181
2182         strstr: Update cross-compilation guess.
2183         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
2184         CPUs, guess no, in view of glibc
2185         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
2186         Suggested by Eric Blake. Reported by Reuben Thomas.
2187
2188 2011-07-19  Pádraig Brady  <P@draigBrady.com>
2189
2190         getopt-gnu: suppress core dumps from detection code
2191         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
2192         to suppress core dumps that may well occur on glibc systems.
2193         * modules/getopt-gnu: Depend on nocrash.
2194
2195 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
2196
2197         pthread_sigmask: ensure usleep is declared
2198         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
2199         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
2200
2201 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
2202
2203         doc: Document NonStop portability issues.
2204         * doc/posix-functions/sigaction.texi (sigaction):
2205         * doc/posix-headers/signal.texi (signal.h):
2206         Document NonStop.  See Joachim Schmitz in
2207         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
2208
2209 2011-07-15  Bruno Haible  <bruno@clisp.org>
2210
2211         ffsl, ffsll: Avoid unportable behaviour.
2212         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
2213
2214 2011-07-15  Bruno Haible  <bruno@clisp.org>
2215
2216         ffs: More tests.
2217         * tests/test-ffs.c (NBITS): New macro.
2218         (main): Add more tests.
2219         * tests/test-ffsl.c (NBITS): New macro.
2220         (main): Add more tests.
2221         * tests/test-ffsll.c (NBITS): New macro.
2222         (main): Add more tests.
2223
2224 2011-07-15  Eric Blake  <eblake@redhat.com>
2225
2226         ffsl, ffsll: new modules
2227         * modules/ffsl: New file.
2228         * modules/ffsll: Likewise.
2229         * m4/ffsl.m4: Likewise.
2230         * m4/ffsll.m4: Likewise.
2231         * lib/ffsl.c: Likewise.
2232         * lib/ffsl.h: Likewise.
2233         * lib/ffsll.c: Likewise.
2234         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
2235         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
2236         * modules/string (Makefile.am): Substitute witnesses.
2237         * lib/strings.in.h (ffsl, ffsll): Declare.
2238         * modules/ffsl-tests: New test file.
2239         * modules/ffsll-tests: Likewise.
2240         * tests/test-ffsl.c: Likewise.
2241         * tests/test-ffsll.c: Likewise.
2242         * MODULES.html.sh (Integer arithmetic functions): Mention it.
2243         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
2244         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
2245
2246         ffs: fix m4 prerequisite
2247         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
2248
2249         ffs: avoid undefined behavior
2250         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
2251         * tests/test-ffs.c (naive, main): Avoid signed shifts.
2252         Reported by Bruno Haible.
2253
2254 2011-07-12  Bruno Haible  <bruno@clisp.org>
2255
2256         pthread_sigmask: Rely on module 'threadlib'.
2257         * modules/pthread_sigmask (Depends-on): Add threadlib.
2258         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
2259         is defined.
2260
2261 2011-07-12  Bruno Haible  <bruno@clisp.org>
2262
2263         regex: Depend on module 'strcase'.
2264         * modules/regex (Depends-on): Add strcase, for strcasecmp().
2265
2266 2011-07-12  Jim Meyering  <meyering@redhat.com>
2267
2268         warn-on-use: fix typo in file name
2269         * modules/snippet/warn-on-use (Files): Correct file name:
2270         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
2271
2272 2011-07-12  Bruno Haible  <bruno@clisp.org>
2273
2274         strings: Document module.
2275         * doc/posix-headers/strings.texi: Mention module 'strings'.
2276
2277 2011-07-12  Bruno Haible  <bruno@clisp.org>
2278
2279         Rename module '_Noreturn' to 'snippet/_Noreturn'.
2280         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
2281         (Files, Makefile.am): Update.
2282         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
2283         * modules/stdlib (Depends-on): Update.
2284
2285 2011-07-12  Bruno Haible  <bruno@clisp.org>
2286
2287         * NEWS: Mention the changes.
2288
2289         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
2290         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
2291         (Files, Makefile.am): Update.
2292         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
2293         * modules/arpa_inet (Depends-on): Update.
2294         * modules/ctype (Depends-on): Update.
2295         * modules/dirent (Depends-on): Update.
2296         * modules/fcntl-h (Depends-on): Update.
2297         * modules/glob (Depends-on): Update.
2298         * modules/iconv-h (Depends-on): Update.
2299         * modules/inttypes-incomplete (Depends-on): Update.
2300         * modules/langinfo (Depends-on): Update.
2301         * modules/locale (Depends-on): Update.
2302         * modules/math (Depends-on): Update.
2303         * modules/netdb (Depends-on): Update.
2304         * modules/poll-h (Depends-on): Update.
2305         * modules/pty (Depends-on): Update.
2306         * modules/search (Depends-on): Update.
2307         * modules/signal (Depends-on): Update.
2308         * modules/spawn (Depends-on): Update.
2309         * modules/stdio (Depends-on): Update.
2310         * modules/stdlib (Depends-on): Update.
2311         * modules/string (Depends-on): Update.
2312         * modules/strings (Depends-on): Update.
2313         * modules/sys_file (Depends-on): Update.
2314         * modules/sys_ioctl (Depends-on): Update.
2315         * modules/sys_select (Depends-on): Update.
2316         * modules/sys_socket (Depends-on): Update.
2317         * modules/sys_stat (Depends-on): Update.
2318         * modules/sys_time (Depends-on): Update.
2319         * modules/sys_times (Depends-on): Update.
2320         * modules/sys_utsname (Depends-on): Update.
2321         * modules/sys_wait (Depends-on): Update.
2322         * modules/termios (Depends-on): Update.
2323         * modules/time (Depends-on): Update.
2324         * modules/unistd (Depends-on): Update.
2325         * modules/wchar (Depends-on): Update.
2326         * modules/wctype-h (Depends-on): Update.
2327         * MODULES.html.sh (Support for building libraries and executables):
2328         Update.
2329
2330         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
2331         * modules/snippet/unused-parameter: Renamed from
2332         modules/unused-parameter.
2333         (Files, Makefile.am): Update.
2334         * build-aux/snippet/unused-parameter.h: Renamed from
2335         build-aux/unused-parameter.h.
2336         * modules/selinux-h (Depends-on): Update.
2337         * modules/unistr/base (Depends-on): Update.
2338         * MODULES.html.sh (Core language properties): Update.
2339
2340         Rename module 'link-warning' to 'snippet/link-warning'.
2341         * modules/snippet/link-warning: Renamed from modules/link-warning.
2342         (Files, Makefile.am): Update.
2343         * build-aux/snippet/link-warning.h: Renamed from
2344         build-aux/link-warning.h.
2345         * MODULES.html.sh (Support for building libraries and executables):
2346         Update.
2347
2348         Rename module 'c++defs' to 'snippet/c++defs'.
2349         * modules/snippet/c++defs: Renamed from modules/c++defs.
2350         (Files, Makefile.am): Update.
2351         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
2352         * modules/arpa_inet (Depends-on): Update.
2353         * modules/ctype (Depends-on): Update.
2354         * modules/dirent (Depends-on): Update.
2355         * modules/fcntl-h (Depends-on): Update.
2356         * modules/glob (Depends-on): Update.
2357         * modules/iconv-h (Depends-on): Update.
2358         * modules/langinfo (Depends-on): Update.
2359         * modules/locale (Depends-on): Update.
2360         * modules/math (Depends-on): Update.
2361         * modules/netdb (Depends-on): Update.
2362         * modules/poll-h (Depends-on): Update.
2363         * modules/pty (Depends-on): Update.
2364         * modules/search (Depends-on): Update.
2365         * modules/signal (Depends-on): Update.
2366         * modules/spawn (Depends-on): Update.
2367         * modules/stdio (Depends-on): Update.
2368         * modules/stdlib (Depends-on): Update.
2369         * modules/string (Depends-on): Update.
2370         * modules/strings (Depends-on): Update.
2371         * modules/sys_ioctl (Depends-on): Update.
2372         * modules/sys_select (Depends-on): Update.
2373         * modules/sys_socket (Depends-on): Update.
2374         * modules/sys_stat (Depends-on): Update.
2375         * modules/sys_time (Depends-on): Update.
2376         * modules/sys_wait (Depends-on): Update.
2377         * modules/termios (Depends-on): Update.
2378         * modules/time (Depends-on): Update.
2379         * modules/unistd (Depends-on): Update.
2380         * modules/wchar (Depends-on): Update.
2381         * modules/wctype-h (Depends-on): Update.
2382
2383         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
2384         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
2385         (Files, Makefile.am): Update.
2386         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
2387         * modules/argv-iter (Depends-on): Update.
2388         * modules/arpa_inet (Depends-on): Update.
2389         * modules/dirent (Depends-on): Update.
2390         * modules/fcntl-h (Depends-on): Update.
2391         * modules/fnmatch (Depends-on): Update.
2392         * modules/getopt-posix (Depends-on): Update.
2393         * modules/glob (Depends-on): Update.
2394         * modules/iconv-h (Depends-on): Update.
2395         * modules/inttypes-incomplete (Depends-on): Update.
2396         * modules/locale (Depends-on): Update.
2397         * modules/math (Depends-on): Update.
2398         * modules/netdb (Depends-on): Update.
2399         * modules/search (Depends-on): Update.
2400         * modules/signal (Depends-on): Update.
2401         * modules/spawn (Depends-on): Update.
2402         * modules/stdio (Depends-on): Update.
2403         * modules/stdlib (Depends-on): Update.
2404         * modules/string (Depends-on): Update.
2405         * modules/strings (Depends-on): Update.
2406         * modules/sys_socket (Depends-on): Update.
2407         * modules/sys_stat (Depends-on): Update.
2408         * modules/sys_time (Depends-on): Update.
2409         * modules/sys_times (Depends-on): Update.
2410         * modules/sys_utsname (Depends-on): Update.
2411         * modules/time (Depends-on): Update.
2412         * modules/unistd (Depends-on): Update.
2413         * modules/wchar (Depends-on): Update.
2414         * MODULES.html.sh (Support for building libraries and executables):
2415         Update.
2416
2417 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
2418
2419         Improvements on _Noreturn and related modules.
2420
2421         modules/_Exit-tests: test _Noreturn too
2422         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
2423         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
2424         (main): Use them.
2425
2426         stdnoreturn, stdnoreturn-tests: remove modules
2427         They're not needed here and a bit premature for use elsewhere.  See
2428         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
2429         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
2430         * tests/test-stdnoreturn.c: Remove files.
2431         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
2432         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
2433         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
2434         and using noreturn.
2435         * modules/openat, modules/sigpipe-die, modules/xalloc:
2436         * modules/xmemdup0, modules/xstrtol:
2437         Remove dependency on stdnoreturn.
2438
2439         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
2440         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
2441         Reparenthesize to avoid GCC warning.
2442         Support Microsoft's syntax.
2443         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
2444
2445         _Noreturn-tests: remove module
2446         * modules/_Noreturn-tests: Remove.
2447         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
2448         * tests/test-_Noreturn.c: Remove.
2449         * tests/test-stdnoreturn.c: Merge from the old
2450         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
2451
2452 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
2453
2454         _Noreturn, stdnoreturn, and related modules.
2455
2456         * top/maint.mk: Adjust to new noreturn support.
2457         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
2458         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
2459
2460         xalloc: use stdnoreturn.h
2461         * lib/xalloc.h: Include <stdnoreturn.h>.
2462         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2463         * modules/xalloc (Depends-on): Add stdnoreturn.
2464
2465         xstrtol: use stdnoreturn.h
2466         * lib/xstrtol.h: Include <stdnoreturn.h>.
2467         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2468         * modules/xstrtol (Depends-on): Add stdnoreturn.
2469
2470         xmemdup0: use stdnoreturn.h
2471         * lib/xmemdup0.h: Include <stdnoreturn.h>.
2472         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2473         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
2474
2475         sigpipe-die: use stdnoreturn.h
2476         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
2477         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2478         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
2479
2480         openat: use stdnoreturn.h
2481         * lib/openat.h: Include <stdnoreturn.h>.
2482         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
2483         * modules/openat (Depends-on): Add stdnoreturn.
2484
2485         * lib/openat-die.c (openat_save_fail): Modernize comment.
2486
2487         * lib/xalloc-die.c (xalloc_die): Modernize comment.
2488
2489         * lib/glthread/thread.h: Modernize comment.
2490
2491         obstack: use _Noreturn
2492         * lib/obstack.c (__attribute__): Remove macro.
2493         (print_and_abort): Use _Noreturn.
2494
2495         c-stack: use _Noreturn
2496         * lib/c-stack.c (die, overflow_handler, segv_handler):
2497         Use _Noreturn rather than __attribute__((noreturn)).
2498
2499         argmatch-tests, exclude_tests: use _Noreturn
2500         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
2501         Remove.
2502         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
2503
2504         stdlib: use _Noreturn
2505         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
2506         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
2507         * modules/stdlib (Depends-on): Add _Noreturn.
2508         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
2509
2510         stdnoreturn-tests: new module
2511         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
2512
2513         stdnoreturn: new module
2514         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
2515         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
2516
2517         _Noreturn-tests: new module
2518         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
2519
2520         _Noreturn: new module
2521         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
2522         New section, mentioning it.
2523         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
2524
2525         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
2526
2527 2011-07-11  Eric Blake  <eblake@redhat.com>
2528
2529         ffs: new module
2530         * modules/ffs: New file.
2531         * m4/ffs.m4: Likewise.
2532         * lib/ffs.c: Likewise.
2533         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
2534         * modules/strings (Makefile.am): Substitute witness.
2535         (Depends-on): Add c++defs.
2536         * lib/strings.in.h (ffs): Declare.
2537         * modules/ffs-tests: New test file.
2538         * tests/test-ffs.c: Test new module.
2539         * MODULES.html.sh (Integer arithmetic functions): Mention it.
2540         * doc/posix-functions/ffs.texi (ffs): Likewise.
2541
2542         regex: avoid compiler warning
2543         * lib/regex.c (includes): Include <strings.h>, for use of
2544         strcasecmp in regcomp.c.
2545         Reported by Joachim Schmitz.
2546
2547 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
2548
2549         stdint: respect system's intmax_t if INTMAX_MAX
2550         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
2551         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
2552         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
2553         long but int64_t is long long, and where we will clash with the
2554         system intmax_t if we override it.  See
2555         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
2556         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
2557         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
2558         similarly for UINTMAX_C.
2559
2560 2011-07-08  Bruno Haible  <bruno@clisp.org>
2561
2562         pthread_sigmask tests: Avoid a compiler warning.
2563         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
2564         non-zero.
2565
2566         sigprocmask tests: A better way to avoid a compiler warning.
2567         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
2568         (main): Complain if system() returns non-zero.
2569         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
2570
2571 2011-07-08  Bruno Haible  <bruno@clisp.org>
2572
2573         pthread_sigmask: Work around IRIX bug.
2574         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
2575         bug.
2576         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
2577         there may be unblocked pending signals.
2578         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
2579
2580 2011-07-08  Bruno Haible  <bruno@clisp.org>
2581
2582         pthread_sigmask: Work around Cygwin bug.
2583         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
2584         bug.
2585         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
2586         the system's pthread_sigmask function.
2587         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
2588
2589 2011-07-08  Bruno Haible  <bruno@clisp.org>
2590
2591         pthread_sigmask: Work around bug in single-threaded implementation.
2592         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
2593         FreeBSD, HP-UX, Solaris bug.
2594         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
2595         * lib/pthread_sigmask.c: Include <stddef.h>.
2596         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
2597         the system's pthread_sigmask function.
2598         * modules/pthread_sigmask (configure.ac): Invoke
2599         gl_PREREQ_PTHREAD_SIGMASK.
2600         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
2601         HP-UX, Solaris.
2602
2603 2011-07-08  Eric Blake  <eblake@redhat.com>
2604
2605         test-sigprocmask: avoid compiler warning
2606         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
2607         * tests/test-sigprocmask.c (main): Use it to silence warning.
2608         Reported by Jim Meyering.
2609
2610         test-snprintf: avoid compiler warning
2611         * tests/test-snprintf.c (main): Avoid shadowed declaration.
2612         * tests/test-vsnprintf.c (main): Likewise.
2613         Reported by Jim Meyering.
2614
2615 2011-07-08  Bruno Haible  <bruno@clisp.org>
2616
2617         Tests for module 'pthread_sigmask'.
2618         * modules/pthread_sigmask-tests: New file.
2619         * tests/test-pthread_sigmask1.c: New file, based on
2620         tests/test-sigprocmask.c.
2621         * tests/test-pthread_sigmask2.c: New file.
2622
2623 2011-07-08  Jim Meyering  <meyering@redhat.com>
2624
2625         test-getopt.h: avoid warning about an unused variable
2626         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
2627
2628 2011-07-07  Jim Meyering  <meyering@redhat.com>
2629
2630         maint: reduce list of files exempt from sc_prohibit_leading_TABs
2631         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
2632         now that it no longer contains leading TABs.
2633         Remove unused "url=FIXME" statement.
2634
2635 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
2636
2637         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
2638         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
2639         When gl_THREADLIB is not in use, assume that the POSIX sematics
2640         are desired.  This is better for Emacs, which uses POSIX semantics
2641         on GNUish and/or POSIXish platforms, and does not use threads at
2642         all otherwise.
2643
2644         pthread_sigmask: fix typo when testing for libraries
2645         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
2646         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
2647
2648 2011-07-08  Eric Blake  <eblake@redhat.com>
2649
2650         fts: introduce FTS_NOATIME
2651         * lib/fts_.h (FTS_NOATIME): New bit flag.
2652         (FTS_OPTIONMASK): Adjust.
2653         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
2654         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
2655
2656 2011-07-08  Bruno Haible  <bruno@clisp.org>
2657
2658         Tests for module 'thread'.
2659         * modules/thread-tests: New file.
2660         * tests/test-thread_self.c: New file.
2661         * tests/test-thread_create.cc: New file.
2662
2663 2011-07-08  Bruno Haible  <bruno@clisp.org>
2664
2665         thread: Avoid gcc warnings when using gl_thread_self().
2666         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
2667         'void *'.
2668         (gl_thread_self_pointer): Update.
2669
2670 2011-07-07  Bruno Haible  <bruno@clisp.org>
2671
2672         signal-c++-tests: Check declaration of pthread_sigmask.
2673         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
2674         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
2675         $(LIB_PTHREAD_SIGMASK).
2676
2677 2011-07-07  Bruno Haible  <bruno@clisp.org>
2678
2679         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
2680         * lib/signal.in.h (pthread_sigmask): Override if
2681         REPLACE_PTHREAD_SIGMASK is 1.
2682         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2683         REPLACE_PTHREAD_SIGMASK.
2684         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
2685         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
2686         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
2687         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
2688         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
2689
2690 2011-07-07  Bruno Haible  <bruno@clisp.org>
2691
2692         pthread_sigmask: Ensure declaration in <signal.h>.
2693         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
2694         include <pthread.h>.
2695         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
2696         problem.
2697
2698 2011-07-07  Bruno Haible  <bruno@clisp.org>
2699
2700         pthread_sigmask: Document the module.
2701         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
2702
2703 2011-07-07  Bruno Haible  <bruno@clisp.org>
2704
2705         pthread_sigmask: Follow gnulib conventions.
2706         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
2707         gl_PTHREAD_SIGMASK.
2708         * modules/pthread_sigmask (configure.ac): Update.
2709
2710 2011-07-07  Bruno Haible  <bruno@clisp.org>
2711
2712         pthread_sigmask: Make declaration C++ safe.
2713         * lib/signal.in.h: In two special conditions, just do an #include_next.
2714         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
2715         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
2716         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2717         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
2718         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
2719         not REPLACE_PTHREAD_MASK.
2720         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
2721         not REPLACE_PTHREAD_MASK.
2722         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
2723
2724 2011-07-07  Bruno Haible  <bruno@clisp.org>
2725
2726         pthread_sigmask: Fix return value.
2727         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
2728         * lib/pthread_sigmask.c: New file.
2729         * modules/pthread_sigmask (Files): Add it.
2730         (configure.ac): Invoke AC_LIBOBJ.
2731
2732 2011-07-07  Eric Blake  <eblake@redhat.com>
2733
2734         getopt: more portable argv creation
2735         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
2736         const, use char arrays rather than strings.
2737         Suggested by Paul Eggert.
2738
2739 2011-07-07  Bruno Haible  <bruno@clisp.org>
2740
2741         Tests for module 'sigprocmask'.
2742         * modules/sigprocmask-tests: New file.
2743         * tests/test-sigprocmask.c: New file.
2744
2745 2011-07-07  Bruno Haible  <bruno@clisp.org>
2746
2747         float tests: Tweak.
2748         * tests/test-float.c (main): Tweak skip message.
2749
2750 2011-07-07  Eric Blake  <eblake@redhat.com>
2751
2752         getopt: avoid compiler warning during configure
2753         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
2754         assigning string literals to non-const pointer.
2755
2756         getopt-gnu: avoid crash in glibc getopt
2757         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
2758         * tests/test-getopt.h (test_getopt): Enhance test.
2759         * tests/test-getopt_long.h (test_getopt_long): Likewise.
2760         * doc/posix-functions/getopt.texi (getopt): Document it.
2761         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
2762         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2763         Likewise.
2764
2765 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
2766
2767         getopt: handle W; without long options in getopt [BZ #12922]
2768         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
2769         but no long options are defined, just return 'W'.
2770
2771 2011-07-07  Bruno Haible  <bruno@clisp.org>
2772
2773         Avoid literal tabs.
2774         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
2775         variable containing a tab instead of a literal tab.
2776         Reported by Jim Meyering.
2777
2778 2011-07-07  Bruno Haible  <bruno@clisp.org>
2779
2780         Comments.
2781         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
2782
2783 2011-07-06  Bruno Haible  <bruno@clisp.org>
2784
2785         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
2786         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
2787         <winsock2.h>.
2788         (rpl_fd_isset, FD_ISSET): New definitions, copied from
2789         lib/sys_socket.in.h.
2790         (close, gethostname): Hide declarations from <winsock2.h>.
2791         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
2792         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
2793         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
2794         (select): Don't override if gnulib's <sys/select.h> was already
2795         included.
2796         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
2797         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
2798         setsockopt, shutdown, select): Tweak indentation.
2799
2800 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2801
2802         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
2803         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
2804         in an application that does not use the sys_select module.
2805
2806 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
2807
2808         poll: do not return 0 on timeout=-1
2809         * lib/poll.c: Loop with yield if no events occured
2810
2811 2011-07-06  Eric Blake  <eblake@redhat.com>
2812
2813         pthread_sigmask: always replace when not using pthread
2814         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
2815         replacement when using some threading other than pthread.  Fix
2816         logic bug.
2817
2818 2011-07-06  Bruno Haible  <bruno@clisp.org>
2819
2820         Comments.
2821         * m4/printf.m4: Update comments about mingw.
2822
2823 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2824
2825         sys_select: define sigset_t more portably
2826         * lib/sys_select.in.h: Always include <sys/types.h>, since
2827         we now need sigset_t and mingw defines it there.
2828         Include <signal.h> before split inclusion guard, to avoid
2829         mishaps on Solaris, whose <signal.h> eventually includes us.
2830         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
2831         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
2832         which come from ...
2833         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
2834         gl_CHECK_TYPE_SIGSET_T.
2835         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
2836         does the real work.
2837         * modules/sys_select (Depends-on): Add 'signal'.
2838
2839         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
2840         Suggested by Bruno Haible.
2841
2842         pselect: Use pthread_sigmask, not sigprocmask.
2843         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
2844         multithreaded apps better than sigprocmask does.
2845         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
2846         sigprocmask directly.
2847
2848 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2849
2850         * lib/pselect.c (pselect): Use plain name, without "rpl_".
2851         Don't #undef,  since we don't need any underlying pselect.
2852         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
2853         (Depends-on): Add select.
2854         (Link): Add $(LIBSOCKET).
2855         These changes suggested by Bruno Haible.
2856
2857         pselect: document better
2858         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2859         * doc/posix-functions/pselect.texi (pselect): Document new module.
2860
2861         pthread_sigmask: new module
2862         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2863         * doc/posix-functions/pthread_sigmask.texi: Document new module.
2864         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
2865         This is done only as a macro; I don't know how well that'll
2866         work for C++.  Move <sys/types.h> include before the include_next,
2867         to avoid mishap on Solaris.
2868         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
2869         * modules/signal (Makefile.am): Substitute the check's results.
2870         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
2871
2872         test-pselect: new module
2873         * modules/pselect-tests, tests/test-pselect.c: New files.
2874         * tests/test-select.c, tests/test-sys_select-c++.cc:
2875         If TEST_PSELECT is defined, test pselect instead of testing select.
2876
2877         * tests/test-sys_select.c (sigset_t): Test for it, too.
2878         Suggested by Bruno Haible.
2879
2880 2011-07-05  Eric Blake  <eblake@redhat.com>
2881
2882         snprintf: guarantee %1$d, for libintl
2883         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
2884         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
2885         * doc/posix-functions/snprintf.texi (snprintf): Update.
2886         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
2887         * tests/test-snprintf.c (main): Enhance test.
2888         * tests/test-vsnprintf.c (main): Likewise.
2889
2890 2011-07-05  Jim Meyering  <meyering@redhat.com>
2891
2892         maint: exempt stdio-read.c and stdio-write.c from the cppi check
2893         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
2894         per Bruno's request, to accommodate this idiom (no space after "#")
2895         even when the function is inside an #if block:
2896         char *
2897         gets (char *s)
2898         #undef gets
2899         {
2900           ...
2901         }
2902
2903 2011-07-04  Jim Meyering  <meyering@redhat.com>
2904
2905         maint: indent with spaces, not TABs, and add a rule to check this
2906         * tests/test-userspec.c: Indent with spaces, not TABs.
2907         * tests/test-argp.c: Likewise.
2908         * tests/test-c-stack2.sh: Likewise.
2909         * tests/test-parse-duration.sh: Likewise
2910         * m4/strtod.m4: Likewise.
2911         * m4/alloca.m4: Likewise.
2912         * m4/pselect.m4: Likewise.
2913         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
2914
2915 2011-07-03  Jim Meyering  <meyering@redhat.com>
2916
2917         maint.mk: correct omissions in prohibit_argmatch_without_use check
2918         This rule would mistakenly report that argmatch.h is included without
2919         use even when both the argmatch and invalid_arg macro were used.
2920         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
2921         of argmatch and invalid_arg.
2922
2923 2011-07-03  Bruno Haible  <bruno@clisp.org>
2924
2925         Comments about EINTR.
2926         * lib/safe-read.h: Explain the purpose of this module.
2927         * lib/safe-write.h: Likewise.
2928         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
2929         module.
2930         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
2931         module.
2932         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2933
2934 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
2935
2936         xnanosleep: Rewrite to use new dtotimespec module.
2937         It has the conversion code that used to be in xnanosleep.
2938         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
2939         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
2940         (TIME_T_MAX): Remove.
2941         (xnanosleep): Rewrite in terms of dtotimespec.
2942         * modules/xnanosleep (Depends-on): Add dtotimespec.
2943         Remove intprops, stdbool.
2944
2945         timespec-add, timespec-sub: new modules
2946         * lib/timespec.h (timespec_add, timespec_sub): New decls.
2947         * lib/timespec-add.c, lib/timespec-sub.c:
2948         * modules/timespec-add, modules/timespec-sub: New files.
2949
2950         dtotimespec: new module
2951         * lib/timespec.h (dtotimespec): New decl.
2952         * lib/dtotimespec.c, modules/dtotimespec: New files.
2953
2954         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
2955
2956         pselect: new module
2957         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
2958         (pselect): New decls.
2959         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
2960         since the standard pselect decl uses 'restrict'.
2961         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
2962         HAVE_PSELECT, REPLACE_PSELECT.
2963         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
2964         HAVE_PSELECT, REPLACE_PSELECT.
2965         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
2966
2967         sys_select: don't depend on sys_socket
2968         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
2969         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
2970         This fix works on GNU and GNU-like platforms, but has not been tested
2971         on native Windows.
2972         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
2973         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
2974         gl_HEADER_SYS_SOCKET.
2975         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
2976         gl_PREREQ_SYS_H_WINSOCK2.
2977
2978 2011-06-29  Eric Blake  <eblake@redhat.com>
2979
2980         pipe2: fix C89 compile problem
2981         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
2982         Reported by Bruno Haible.
2983
2984         pipe, pipe2: don't corrupt fd on error
2985         * lib/pipe.c (pipe): Leave fd unchanged on error.
2986         * lib/pipe2.c (pipe2): Likewise.
2987         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
2988         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
2989
2990 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
2991
2992         mmap-anon: do not use regular expressions inadvertently
2993         * m4/mmap-anon.m4: Remove trailing period from strings sought
2994         in the output.
2995
2996 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
2997
2998         nanosleep: fix integer overflow problem
2999         * lib/nanosleep.c (my_usleep): Don't assume signed integer
3000         arithmetic wraps around on overflow.
3001
3002         nanosleep: simplify carrying
3003         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
3004         first call to the underyling nanosleep, not for the last one.
3005         This doesn't fix any bugs, but it simplifies the computation of
3006         the remaining delay.  Found while auditing integer overflow issues.
3007
3008         dup2: remove test for existence of fcntl
3009         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
3010         "#if HAVE_FCNTL", in the configure-time test program.
3011         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
3012         and therefore speeds up "configure" a bit.  Found while
3013         adding the dup2 module to Emacs.
3014
3015 2011-06-24  Eric Blake  <eblake@redhat.com>
3016
3017         maint.mk: enhance useless header checks
3018         * top/maint.mk (_sc_header_without_use): Check both include
3019         styles.
3020         (sc_prohibit_assert_without_use)
3021         (sc_prohibit_close_stream_without_use)
3022         (sc_prohibit_getopt_without_use)
3023         (sc_prohibit_quotearg_without_use)
3024         (sc_prohibit_quote_without_use)
3025         (sc_prohibit_long_options_without_use)
3026         (sc_prohibit_inttostr_without_use)
3027         (sc_prohibit_ignore_value_without_use)
3028         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
3029         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
3030         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
3031         (sc_prohibit_hash_pjw_without_use)
3032         (sc_prohibit_safe_read_without_use)
3033         (sc_prohibit_argmatch_without_use)
3034         (sc_prohibit_canonicalize_without_use)
3035         (sc_prohibit_root_dev_ino_without_use)
3036         (sc_prohibit_openat_without_use)
3037         (sc_prohibit_c_ctype_without_use)
3038         (sc_prohibit_signal_without_use)
3039         (sc_prohibit_stdio--_without_use)
3040         (sc_prohibit_stdio-safer_without_use)
3041         (sc_prohibit_strings_without_use)
3042         (sc_prohibit_intprops_without_use)
3043         (sc_prohibit_stddef_without_use)
3044         (sc_prohibit_xfreopen_without_use): Update clients.
3045
3046 2011-06-24  Jim Meyering  <meyering@redhat.com>
3047
3048         syntax-check: keep one maint.mk rule in sync with its header
3049         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
3050         of the bug Eric has just fixed, with today's commit 25e4c2ec.
3051         I prefer to avoid temporary files here, so use <(...), but that
3052         is not supported by /bin/sh, so...
3053         (SHELL): Define to /bin/bash.
3054
3055 2011-06-24  Eric Blake  <eblake@redhat.com>
3056
3057         maint.mk: update sc_prohibit_intprops_without_use
3058         * top/maint.mk (_intprops_names): Match recent changes.
3059
3060 2011-06-24  Bruno Haible  <bruno@clisp.org>
3061
3062         strerror-override: No-op tweak.
3063         * lib/strerror-override.h (strerror_override): Reorder conditions,
3064         for consistency with lib/strerror-override.c.
3065
3066 2011-06-23  Eric Blake  <eblake@redhat.com>
3067
3068         maint.mk: test further PATH_MAX issues
3069         * top/maint.mk (sc_prohibit_path_max_array): Rename...
3070         (sc_prohibit_path_max_allocation): ...and also test alloca.
3071         Suggested by Jim Meyering.
3072
3073 2011-06-22  Eric Blake  <eblake@redhat.com>
3074
3075         maint.mk: add syntax-check to avoid char[PATH_MAX]
3076         * top/maint.mk (sc_prohibit_path_max_array): New rule.
3077
3078         stat: be robust to PATH_MAX definition
3079         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
3080         * modules/stat (Depends-on): Add verify.
3081
3082         link: work around IRIX bug
3083         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
3084         * lib/link.c (rpl_link): Work around it.
3085         * tests/test-link.h (test_link): Enhance test.
3086         * doc/posix-functions/link.texi (link): Document the bug.
3087
3088         getopt: silence clang warning
3089         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
3090         dereference.
3091         Reported by Gustavo Martin Domato.
3092
3093 2011-06-22  Jim Meyering  <meyering@redhat.com>
3094
3095         bootstrap: do not insert a blank line into each .gitignore file
3096         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
3097
3098 2011-06-21  Eric Blake  <eblake@redhat.com>
3099
3100         perror: test for output mismatch
3101         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
3102         perror on IRIX.
3103
3104         strerror_r: fix OpenBSD behavior on out-of-range
3105         * lib/strerror_r.c (strerror_r): Always use maximal string.
3106         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
3107
3108         strerror_r: fix OpenBSD behavior on 0
3109         * lib/strerror-override.c (strerror_override): Also override 0
3110         when needed.
3111         * lib/strerror-override.h (strerror_override): Likewise.
3112         * lib/strerror.c (strerror): Simplify, now that 0 override is done
3113         earlier.
3114         * lib/strerror_r.c (strerror_r): Likewise.
3115         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
3116         behavior...
3117         (gl_FUNC_STRERROR_0): ...into new macro.
3118         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
3119         is overridden.
3120         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
3121         * modules/strerror-override (Files): Add strerror.m4.
3122         (configure.ac): Also provide override for 0 when needed.
3123         * doc/posix-functions/strerror.texi (strerror): Document this.
3124         * doc/posix-functions/perror.texi (perror): Likewise.
3125
3126         perror: adjust array size
3127         * modules/perror (Depends-on): Add strerror-override.
3128         * lib/perror.c (perror): Use it to avoid magic number.
3129
3130         strerror-override: reduce size
3131         * lib/strerror-override.c (strerror_override): Use fewer lines.
3132
3133 2011-06-20  Bruno Haible  <bruno@clisp.org>
3134
3135         pathmax: Ensure correct value for PATH_MAX on HP-UX.
3136         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
3137
3138 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
3139
3140         alloca: port to compilers that can optimize like GCC 4.6.0
3141         * lib/alloca.c (find_stack_direction): New signature, taken from
3142         Autoconf git.  This works with GCC 4.6.0.  This code should never
3143         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
3144         be used with other compilers that optimize as well as GCC 4.6.0 does.
3145         (alloca): Adjust to new signature.
3146         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
3147         New macro, which patches Autoconf in a similar way.
3148
3149         c-stack: stop worrying about stack direction
3150         * lib/c-stack.c (find_stack_direction): Remove.
3151         (segv_handler): Don't worry about stack direction growth, as it's
3152         too much of a pain to configure this correctly, given how compilers
3153         are optimizing-away our stack-growth detection code.  Instead, assume
3154         that any access to just before or just after the stack is OK.
3155         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
3156         Don't require AC_FUNC_ALLOCA; no longer needed.
3157
3158 2011-06-20  Eric Blake  <eblake@redhat.com>
3159
3160         test-stat: don't allocate PATH_MAX bytes
3161         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
3162         PATH_MAX-sized buffer.
3163         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
3164         * modules/stat-tests (Depends-on): Likewise.
3165         * tests/test-fstatat.c (includes): Drop pathmax.h.
3166         * tests/test-stat.c (includes): Likewise.
3167         Reported by Bruno Haible.
3168
3169 2011-06-20  Bruno Haible  <bruno@clisp.org>
3170
3171         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
3172         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
3173         * lib/float.c: New file.
3174         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
3175         REPLACE_FLOAT_LDBL.
3176         * modules/float (Files): Add lib/float.c.
3177         (configure.ac): Invoke AC_LIBOBJ.
3178         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
3179
3180 2011-06-20  Bruno Haible  <bruno@clisp.org>
3181
3182         Tests for module 'float'.
3183         * modules/float-tests: New file.
3184         * tests/test-float.c: New file.
3185
3186 2011-06-19  Bruno Haible  <bruno@clisp.org>
3187
3188         isinf: Coding style.
3189         * lib/isinf.c: Use GNU coding style.
3190
3191 2011-06-19  Bruno Haible  <bruno@clisp.org>
3192
3193         linkat test: Avoid test failure on AIX 7.1.
3194         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
3195         * tests/test-link.h (test_link): Likewise.
3196
3197 2011-06-19  Bruno Haible  <bruno@clisp.org>
3198
3199         pread test: Avoid test failure on OpenBSD 4.9.
3200         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
3201
3202 2011-06-19  Bruno Haible  <bruno@clisp.org>
3203
3204         sprintf-posix: Fix test failure on AIX 7.1.
3205         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
3206         * doc/posix-functions/dprintf.texi: Mention limited precision problem
3207         on AIX.
3208         * doc/posix-functions/fprintf.texi: Likewise.
3209         * doc/posix-functions/printf.texi: Likewise.
3210         * doc/posix-functions/snprintf.texi: Likewise.
3211         * doc/posix-functions/sprintf.texi: Likewise.
3212         * doc/posix-functions/vdprintf.texi: Likewise.
3213         * doc/posix-functions/vfprintf.texi: Likewise.
3214         * doc/posix-functions/vprintf.texi: Likewise.
3215         * doc/posix-functions/vsnprintf.texi: Likewise.
3216         * doc/posix-functions/vsprintf.texi: Likewise.
3217
3218 2011-06-19  Bruno Haible  <bruno@clisp.org>
3219
3220         roundl-ieee: Fix test failure on AIX 7.1.
3221         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
3222         * doc/posix-functions/roundl.texi: Mention problem with negative
3223         arguments.
3224
3225 2011-06-19  Bruno Haible  <bruno@clisp.org>
3226
3227         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
3228         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
3229         * doc/posix-functions/round.texi: Mention problem with negative
3230         arguments.
3231         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
3232
3233 2011-06-19  Bruno Haible  <bruno@clisp.org>
3234
3235         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
3236         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
3237         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
3238         * doc/posix-functions/roundf.texi: Mention problem with negative
3239         arguments.
3240         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
3241
3242 2011-06-19  Bruno Haible  <bruno@clisp.org>
3243
3244         ceilf-ieee: Work around bug on MacOS X 10.5.
3245         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
3246
3247         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
3248         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
3249         IEEE compliant, avoid compiler optimizations.
3250         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
3251         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
3252         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
3253         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
3254         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
3255         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
3256         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
3257         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
3258         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
3259         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
3260
3261 2011-06-19  Bruno Haible  <bruno@clisp.org>
3262
3263         ceilf-ieee: Work around bug on AIX 7.1.
3264         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
3265         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
3266
3267 2011-06-19  Bruno Haible  <bruno@clisp.org>
3268
3269         ceil-ieee: Work around bug on AIX 7.1.
3270         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
3271         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
3272
3273 2011-06-18  Bruno Haible  <bruno@clisp.org>
3274
3275         fsync test: Avoid test failure on MacOS X and AIX.
3276         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
3277         EINVAL.
3278
3279 2011-06-18  Bruno Haible  <bruno@clisp.org>
3280
3281         openat, fdopendir tests: Fix link errors.
3282         * modules/openat-tests (Depends-on): Add progname.
3283         * modules/fdopendir-tests (Depends-on): Likewise.
3284         * tests/test-fchownat.c: Include progname.h.
3285         (main): Call set_program_name.
3286         * tests/test-fstatat.c: Include progname.h.
3287         (main): Call set_program_name.
3288         * tests/test-mkdirat.c: Include progname.h.
3289         (main): Call set_program_name.
3290         * tests/test-openat.c: Include progname.h.
3291         (main): Call set_program_name.
3292         * tests/test-unlinkat.c: Include progname.h.
3293         (main): Call set_program_name.
3294         * tests/test-fdopendir.c: Include progname.h.
3295         (main): Call set_program_name.
3296
3297 2011-06-18  Bruno Haible  <bruno@clisp.org>
3298
3299         Doc update.
3300         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
3301         HP-UX.
3302         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
3303
3304 2011-06-18  Bruno Haible  <bruno@clisp.org>
3305
3306         getcwd tests: Avoid compilation error on HP-UX 11.31.
3307         * modules/getcwd-tests (Depends-on): Add pathmax.
3308         * tests/test-getcwd.c: Include pathmax.h.
3309
3310 2011-06-18  Bruno Haible  <bruno@clisp.org>
3311
3312         isfinite, isinf: Fix link error on AIX 6 and 7.
3313         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
3314         needed, also test the macro with a 'float' argument.
3315         * m4/isinf.m4 (gl_ISINF): Likewise.
3316
3317 2011-06-18  Bruno Haible  <bruno@clisp.org>
3318
3319         getloadavg: Don't clobber LIBS. Regression from previous commit.
3320         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
3321         AC_CHECK_LIB from here...
3322         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
3323         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
3324         gl_func_getloadavg_done.
3325         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3326
3327 2011-06-18  Bruno Haible  <bruno@clisp.org>
3328
3329         clean-temp: Improve documentation.
3330         * lib/clean-temp.h: Explain better how to use this module.
3331         Reported by John Darrington <john@darrington.wattle.id.au>.
3332
3333 2011-06-17  Bruno Haible  <bruno@clisp.org>
3334
3335         pread, pwrite: Avoid cc warning on AIX.
3336         * lib/unistd.in.h (pread): Undefine before defining as a macro.
3337         (pwrite): Likewise.
3338
3339 2011-06-17  Bruno Haible  <bruno@clisp.org>
3340
3341         spawn-pipe tests: Fix link error.
3342         * tests/test-spawn-pipe-child.c: Undefine fprintf.
3343         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3344
3345 2011-06-17  Bruno Haible  <bruno@clisp.org>
3346
3347         Tests: Remove unnecessary dependency.
3348         * modules/canonicalize-tests (Depends-on): Remove progname.
3349         * modules/chown-tests (Depends-on): Likewise.
3350         * modules/dirname-tests (Depends-on): Likewise.
3351         * modules/fdopendir-tests (Depends-on): Likewise.
3352         * modules/fdutimensat-tests (Depends-on): Likewise.
3353         * modules/hash-tests (Depends-on): Likewise.
3354         * modules/lchown-tests (Depends-on): Likewise.
3355         * modules/linkat-tests (Depends-on): Likewise.
3356         * modules/renameat-tests (Depends-on): Likewise.
3357         * modules/spawn-pipe-tests (Depends-on): Likewise.
3358         * modules/utimensat-tests (Depends-on): Likewise.
3359
3360 2011-06-17  Bruno Haible  <bruno@clisp.org>
3361
3362         spawn-pipe tests: Fix link error.
3363         * tests/test-spawn-pipe-child.c: Undefine fflush.
3364
3365 2011-06-17  Bruno Haible  <bruno@clisp.org>
3366
3367         Fix tests link errors.
3368         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
3369         * modules/chown-tests (Makefile.am): Don't link test-chown with
3370         LIBINTL.
3371         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
3372         LIBINTL.
3373         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
3374         LIBINTL.
3375         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
3376         LIBINTL.
3377
3378 2011-06-16  Bruno Haible  <bruno@clisp.org>
3379
3380         crypto/gc-sha1: Fix recent regression.
3381         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
3382         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
3383
3384         crypto/gc-md5: Fix recent regression.
3385         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
3386
3387         crypto/gc-md4: Fix recent regression.
3388         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
3389         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
3390
3391         crypto/gc-arctwo: Fix recent regression.
3392         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
3393         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
3394
3395         crypto/gc-rijndael: Fix recent regression.
3396         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
3397         (configure.ac): Invoke AC_LIBOBJ here.
3398         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
3399         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3400
3401         crypto/gc-hmac-sha1: Fix recent regression.
3402         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
3403         (configure.ac): Invoke AC_LIBOBJ here.
3404         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
3405         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3406
3407         crypto/gc-hmac-md5: Fix recent regression.
3408         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
3409         (configure.ac): Invoke AC_LIBOBJ here.
3410         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
3411         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3412
3413         crypto/gc-des: Fix recent regression.
3414         * modules/crypto/gc-des (Files): Remove m4/des.m4.
3415         (configure.ac): Invoke AC_LIBOBJ here.
3416         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
3417         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3418
3419         crypto/gc-arcfour: Fix recent regression.
3420         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
3421         (configure.ac): Invoke AC_LIBOBJ here.
3422         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
3423         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3424
3425 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
3426
3427         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
3428         After the 2011-05-21 change, this macro requires
3429         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
3430         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
3431
3432 2011-06-16  Bruno Haible  <bruno@clisp.org>
3433
3434         fprintftime: Move AC_LIBOBJ invocations to module description.
3435         * m4/fprintftime.m4: Remove file.
3436         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
3437         (configure.ac): Remove gl_FPRINTFTIME call.
3438         (Makefile.am): Augment lib_SOURCES.
3439         Reported by Jim Meyering.
3440
3441 2011-06-16  Bruno Haible  <bruno@clisp.org>
3442
3443         tmpfile-safer: Finish 2011-05-23 commit.
3444         * m4/stdio-safer.m4: Really remove file.
3445         Reported by Jim Meyering.
3446
3447 2011-06-16  Bruno Haible  <bruno@clisp.org>
3448
3449         syntax-check: Fix typo.
3450         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
3451         printf-posix.m4.
3452         Reported by Jim Meyering.
3453
3454 2011-06-13  Jim Meyering  <meyering@redhat.com>
3455
3456         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
3457         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
3458
3459 2011-05-23  Bruno Haible  <bruno@clisp.org>
3460
3461         yesno: Move AC_LIBOBJ invocations to module description.
3462         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
3463         * modules/yesno (Makefile.am): Augment lib_SOURCES.
3464
3465 2011-05-23  Bruno Haible  <bruno@clisp.org>
3466
3467         xstrtol: Move AC_LIBOBJ invocations to module description.
3468         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
3469         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
3470
3471 2011-05-23  Bruno Haible  <bruno@clisp.org>
3472
3473         xstrtold: Move AC_LIBOBJ invocations to module description.
3474         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
3475         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
3476
3477 2011-05-23  Bruno Haible  <bruno@clisp.org>
3478
3479         xstrtod: Move AC_LIBOBJ invocations to module description.
3480         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
3481         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
3482
3483 2011-05-23  Bruno Haible  <bruno@clisp.org>
3484
3485         xnanosleep: Move AC_LIBOBJ invocations to module description.
3486         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
3487         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
3488
3489 2011-05-23  Bruno Haible  <bruno@clisp.org>
3490
3491         xgetcwd: Move AC_LIBOBJ invocations to module description.
3492         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
3493         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
3494
3495 2011-05-23  Bruno Haible  <bruno@clisp.org>
3496
3497         xalloc: Move AC_LIBOBJ invocations to module description.
3498         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
3499         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
3500
3501 2011-05-23  Bruno Haible  <bruno@clisp.org>
3502
3503         write-any-file: Move AC_LIBOBJ invocations to module description.
3504         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
3505         invocation.
3506         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
3507
3508 2011-05-23  Bruno Haible  <bruno@clisp.org>
3509
3510         utimens: Move AC_LIBOBJ invocations to module description.
3511         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
3512         * modules/utimens (Makefile.am): Augment lib_SOURCES.
3513
3514 2011-05-23  Bruno Haible  <bruno@clisp.org>
3515
3516         utimecmp: Move AC_LIBOBJ invocations to module description.
3517         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
3518         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
3519
3520 2011-05-23  Bruno Haible  <bruno@clisp.org>
3521
3522         userspec: Move AC_LIBOBJ invocations to module description.
3523         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
3524         * modules/userspec (Makefile.am): Augment lib_SOURCES.
3525
3526 2011-05-23  Bruno Haible  <bruno@clisp.org>
3527
3528         unlinkdir: Move AC_LIBOBJ invocations to module description.
3529         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
3530         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
3531
3532 2011-05-23  Bruno Haible  <bruno@clisp.org>
3533
3534         unistd-safer: Move AC_LIBOBJ invocations to module description.
3535         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
3536         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
3537
3538 2011-05-23  Bruno Haible  <bruno@clisp.org>
3539
3540         tempname: Move AC_LIBOBJ invocations to module description.
3541         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
3542         * modules/tempname (Makefile.am): Augment lib_SOURCES.
3543
3544 2011-05-23  Bruno Haible  <bruno@clisp.org>
3545
3546         strftime: Move AC_LIBOBJ invocations to module description.
3547         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
3548         * modules/strftime (Makefile.am): Augment lib_SOURCES.
3549
3550 2011-05-23  Bruno Haible  <bruno@clisp.org>
3551
3552         stdlib-safer: Move AC_LIBOBJ invocations to module description.
3553         * m4/stdlib-safer.m4: Remove file.
3554         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
3555         (configure.ac): Remove gl_STDLIB_SAFER call.
3556         (Makefile.am): Augment lib_SOURCES.
3557
3558 2011-05-23  Bruno Haible  <bruno@clisp.org>
3559
3560         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
3561         * m4/stdio-safer.m4: Remove file.
3562         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
3563         (configure.ac): Remove gl_TMPFILE_SAFER call.
3564         (Makefile.am): Augment lib_SOURCES.
3565
3566 2011-05-23  Bruno Haible  <bruno@clisp.org>
3567
3568         popen-safer: Move AC_LIBOBJ invocations to module description.
3569         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
3570         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
3571         (configure.ac): Remove gl_POPEN_SAFER call.
3572         (Makefile.am): Augment lib_SOURCES.
3573
3574 2011-05-23  Bruno Haible  <bruno@clisp.org>
3575
3576         freopen-safer: Move AC_LIBOBJ invocations to module description.
3577         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
3578         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
3579         (configure.ac): Remove gl_FREOPEN_SAFER call.
3580         (Makefile.am): Augment lib_SOURCES.
3581
3582 2011-05-23  Bruno Haible  <bruno@clisp.org>
3583
3584         fopen-safer: Move AC_LIBOBJ invocations to module description.
3585         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
3586         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
3587         (configure.ac): Remove gl_FOPEN_SAFER call.
3588         (Makefile.am): Augment lib_SOURCES.
3589
3590 2011-05-23  Bruno Haible  <bruno@clisp.org>
3591
3592         crypto/sha512: Move AC_LIBOBJ invocations to module description.
3593         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
3594         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
3595
3596 2011-05-23  Bruno Haible  <bruno@clisp.org>
3597
3598         crypto/sha256: Move AC_LIBOBJ invocations to module description.
3599         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
3600         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
3601
3602 2011-05-23  Bruno Haible  <bruno@clisp.org>
3603
3604         crypto/sha1: Move AC_LIBOBJ invocations to module description.
3605         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
3606         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
3607
3608 2011-05-23  Bruno Haible  <bruno@clisp.org>
3609
3610         settime: Move AC_LIBOBJ invocations to module description.
3611         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
3612         * modules/settime (Makefile.am): Augment lib_SOURCES.
3613
3614 2011-05-23  Bruno Haible  <bruno@clisp.org>
3615
3616         savedir: Move AC_LIBOBJ invocations to module description.
3617         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
3618         * modules/savedir (Makefile.am): Augment lib_SOURCES.
3619
3620 2011-05-23  Bruno Haible  <bruno@clisp.org>
3621
3622         save-cwd: Move AC_LIBOBJ invocations to module description.
3623         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
3624         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
3625
3626 2011-05-23  Bruno Haible  <bruno@clisp.org>
3627
3628         same: Move AC_LIBOBJ invocations to module description.
3629         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
3630         * modules/same (Makefile.am): Augment lib_SOURCES.
3631
3632 2011-05-23  Bruno Haible  <bruno@clisp.org>
3633
3634         safe-write: Move AC_LIBOBJ invocations to module description.
3635         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
3636         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
3637         instead of gl_SAFE_WRITE.
3638         (Makefile.am): Augment lib_SOURCES.
3639
3640 2011-05-23  Bruno Haible  <bruno@clisp.org>
3641
3642         safe-read: Move AC_LIBOBJ invocations to module description.
3643         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
3644         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
3645         of gl_SAFE_READ.
3646         (Makefile.am): Augment lib_SOURCES.
3647
3648 2011-05-23  Bruno Haible  <bruno@clisp.org>
3649
3650         safe-alloc: Move AC_LIBOBJ invocations to module description.
3651         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
3652         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
3653
3654 2011-05-23  Bruno Haible  <bruno@clisp.org>
3655
3656         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
3657         * m4/rijndael.m4: Remove file.
3658         * modules/crypto/rijndael (Files): Remove it.
3659         (configure.ac): Remove gl_RIJNDAEL call.
3660         (Makefile.am): Augment lib_SOURCES.
3661
3662 2011-05-23  Bruno Haible  <bruno@clisp.org>
3663
3664         readtokens: Move AC_LIBOBJ invocations to module description.
3665         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
3666         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
3667
3668 2011-05-23  Bruno Haible  <bruno@clisp.org>
3669
3670         read-file: Move AC_LIBOBJ invocations to module description.
3671         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
3672         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
3673         of gl_FUNC_READ_FILE.
3674         (Makefile.am): Augment lib_SOURCES.
3675
3676 2011-05-23  Bruno Haible  <bruno@clisp.org>
3677
3678         quotearg: Move AC_LIBOBJ invocations to module description.
3679         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
3680         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
3681
3682 2011-05-23  Bruno Haible  <bruno@clisp.org>
3683
3684         quote: Move AC_LIBOBJ invocations to module description.
3685         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
3686         * modules/quote (Makefile.am): Augment lib_SOURCES.
3687
3688 2011-05-23  Bruno Haible  <bruno@clisp.org>
3689
3690         posixver: Move AC_LIBOBJ invocations to module description.
3691         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
3692         * modules/posixver (Makefile.am): Augment lib_SOURCES.
3693
3694 2011-05-23  Bruno Haible  <bruno@clisp.org>
3695
3696         posixtm: Move AC_LIBOBJ invocations to module description.
3697         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
3698         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
3699
3700 2011-05-23  Bruno Haible  <bruno@clisp.org>
3701
3702         physmem: Move AC_LIBOBJ invocations to module description.
3703         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
3704         * modules/physmem (Makefile.am): Augment lib_SOURCES.
3705
3706 2011-05-23  Bruno Haible  <bruno@clisp.org>
3707
3708         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
3709         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
3710         invocation.
3711         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
3712
3713 2011-05-23  Bruno Haible  <bruno@clisp.org>
3714
3715         mpsort: Move AC_LIBOBJ invocations to module description.
3716         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
3717         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
3718
3719 2011-05-23  Bruno Haible  <bruno@clisp.org>
3720
3721         modechange: Move AC_LIBOBJ invocations to module description.
3722         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
3723         * modules/modechange (Makefile.am): Augment lib_SOURCES.
3724
3725 2011-05-23  Bruno Haible  <bruno@clisp.org>
3726
3727         mkdir-p: Move AC_LIBOBJ invocations to module description.
3728         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
3729         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
3730
3731 2011-05-23  Bruno Haible  <bruno@clisp.org>
3732
3733         mkancesdirs: Move AC_LIBOBJ invocations to module description.
3734         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
3735         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
3736
3737 2011-05-23  Bruno Haible  <bruno@clisp.org>
3738
3739         mgetgroups: Move AC_LIBOBJ invocations to module description.
3740         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
3741         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
3742
3743 2011-05-23  Bruno Haible  <bruno@clisp.org>
3744
3745         memxor: Move AC_LIBOBJ invocations to module description.
3746         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
3747         * modules/memxor (Makefile.am): Augment lib_SOURCES.
3748
3749 2011-05-23  Bruno Haible  <bruno@clisp.org>
3750
3751         memcoll: Move AC_LIBOBJ invocations to module description.
3752         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
3753         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
3754
3755 2011-05-23  Bruno Haible  <bruno@clisp.org>
3756
3757         memcasecmp: Move AC_LIBOBJ invocations to module description.
3758         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
3759         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
3760
3761 2011-05-23  Bruno Haible  <bruno@clisp.org>
3762
3763         crypto/md5: Move AC_LIBOBJ invocations to module description.
3764         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
3765         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
3766
3767 2011-05-23  Bruno Haible  <bruno@clisp.org>
3768
3769         crypto/md4: Move AC_LIBOBJ invocations to module description.
3770         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
3771         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
3772
3773 2011-05-23  Bruno Haible  <bruno@clisp.org>
3774
3775         crypto/md2: Move AC_LIBOBJ invocations to module description.
3776         * m4/md2.m4: Remove file.
3777         * modules/crypto/md2 (Files): Remove it.
3778         (configure.ac): Remove gl_MD2 call.
3779         (Makefile.am): Augment lib_SOURCES.
3780
3781 2011-05-23  Bruno Haible  <bruno@clisp.org>
3782
3783         long-options: Move AC_LIBOBJ invocations to module description.
3784         * m4/long-options.m4: Remove file.
3785         * modules/long-options (Files): Remove it.
3786         (configure.ac): Remove gl_LONG_OPTIONS call.
3787         (Makefile.am): Augment lib_SOURCES.
3788
3789 2011-05-23  Bruno Haible  <bruno@clisp.org>
3790
3791         i-ring: Move AC_LIBOBJ invocations to module description.
3792         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
3793         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
3794
3795 2011-05-23  Bruno Haible  <bruno@clisp.org>
3796
3797         idcache: Move AC_LIBOBJ invocations to module description.
3798         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
3799         * modules/idcache (Makefile.am): Augment lib_SOURCES.
3800
3801 2011-05-23  Bruno Haible  <bruno@clisp.org>
3802
3803         human: Move AC_LIBOBJ invocations to module description.
3804         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
3805         * modules/human (Makefile.am): Augment lib_SOURCES.
3806
3807 2011-05-23  Bruno Haible  <bruno@clisp.org>
3808
3809         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
3810         * m4/hmac-sha1.m4: Remove file.
3811         * modules/crypto/hmac-sha1 (Files): Remove it.
3812         (configure.ac): Remove gl_HMAC_SHA1 call.
3813         (Makefile.am): Augment lib_SOURCES.
3814
3815 2011-05-23  Bruno Haible  <bruno@clisp.org>
3816
3817         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
3818         * m4/hmac-md5.m4: Remove file.
3819         * modules/crypto/hmac-md5 (Files): Remove it.
3820         (configure.ac): Remove gl_HMAC_MD5 call.
3821         (Makefile.am): Augment lib_SOURCES.
3822
3823 2011-05-23  Bruno Haible  <bruno@clisp.org>
3824
3825         hash: Move AC_LIBOBJ invocations to module description.
3826         * m4/hash.m4: Remove file.
3827         * modules/hash (Files): Remove it.
3828         (configure.ac): Remove gl_HASH call.
3829         (Makefile.am): Augment lib_SOURCES.
3830
3831 2011-05-23  Bruno Haible  <bruno@clisp.org>
3832
3833         hard-locale: Move AC_LIBOBJ invocations to module description.
3834         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
3835         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
3836
3837 2011-05-23  Bruno Haible  <bruno@clisp.org>
3838
3839         getugroups: Move AC_LIBOBJ invocations to module description.
3840         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
3841         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
3842
3843 2011-05-23  Bruno Haible  <bruno@clisp.org>
3844
3845         gettime: Move AC_LIBOBJ invocations to module description.
3846         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
3847         * modules/gettime (Makefile.am): Augment lib_SOURCES.
3848
3849 2011-05-23  Bruno Haible  <bruno@clisp.org>
3850
3851         getndelim2: Move AC_LIBOBJ invocations to module description.
3852         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
3853         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
3854
3855 2011-05-23  Bruno Haible  <bruno@clisp.org>
3856
3857         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
3858         * m4/gc-pbkdf2-sha1.m4: Remove file.
3859         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
3860         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
3861         (Makefile.am): Augment lib_SOURCES.
3862
3863 2011-05-23  Bruno Haible  <bruno@clisp.org>
3864
3865         fts: Move AC_LIBOBJ invocations to module description.
3866         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
3867         * modules/fts (configure.ac): ... to here.
3868
3869 2011-05-23  Bruno Haible  <bruno@clisp.org>
3870
3871         file-type: Move AC_LIBOBJ invocations to module description.
3872         * m4/file-type.m4: Remove file.
3873         * modules/file-type (Files): Remove it.
3874         (configure.ac): Remove gl_FILE_TYPE call.
3875         (Makefile.am): Augment lib_SOURCES.
3876
3877 2011-05-23  Bruno Haible  <bruno@clisp.org>
3878
3879         filenamecat*: Respect rules for use of AC_LIBOBJ.
3880         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
3881         Remove AC_LIBOBJ invocation.
3882         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
3883         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
3884
3885 2011-05-23  Bruno Haible  <bruno@clisp.org>
3886
3887         filemode: Move AC_LIBOBJ invocations to module description.
3888         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
3889         * modules/filemode (Makefile.am): Augment lib_SOURCES.
3890
3891 2011-05-23  Bruno Haible  <bruno@clisp.org>
3892
3893         openat-safer: Move AC_LIBOBJ invocations to module description.
3894         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
3895         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
3896
3897 2011-05-23  Bruno Haible  <bruno@clisp.org>
3898
3899         fcntl-safer: Move AC_LIBOBJ invocations to module description.
3900         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
3901         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
3902
3903 2011-05-23  Bruno Haible  <bruno@clisp.org>
3904
3905         exclude: Move AC_LIBOBJ invocations to module description.
3906         * m4/exclude.m4: Remove file.
3907         * modules/exclude (Files): Remove it.
3908         (configure.ac): Remove gl_EXCLUDE call.
3909         (Makefile.am): Augment lib_SOURCES.
3910
3911 2011-05-23  Bruno Haible  <bruno@clisp.org>
3912
3913         dirname*: Respect rules for use of AC_LIBOBJ.
3914         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
3915         invocations.
3916         * modules/dirname (Makefile.am): Augment lib_SOURCES.
3917         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
3918
3919 2011-05-23  Bruno Haible  <bruno@clisp.org>
3920
3921         dirent-safer: Move AC_LIBOBJ invocations to module description.
3922         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
3923         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
3924
3925 2011-05-23  Bruno Haible  <bruno@clisp.org>
3926
3927         crypto/des: Move AC_LIBOBJ invocations to module description.
3928         * m4/des.m4: Remove file.
3929         * modules/crypto/des (Files): Remove it.
3930         (configure.ac): Remove gl_DES call.
3931         (Makefile.am): Augment lib_SOURCES.
3932
3933 2011-05-23  Bruno Haible  <bruno@clisp.org>
3934
3935         cycle-check: Move AC_LIBOBJ invocations to module description.
3936         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
3937         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
3938
3939 2011-05-23  Bruno Haible  <bruno@clisp.org>
3940
3941         c-strtold: Move AC_LIBOBJ invocations to module description.
3942         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
3943         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
3944
3945 2011-05-23  Bruno Haible  <bruno@clisp.org>
3946
3947         c-strtod: Move AC_LIBOBJ invocations to module description.
3948         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
3949         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
3950
3951 2011-05-23  Bruno Haible  <bruno@clisp.org>
3952
3953         crc: Move AC_LIBOBJ invocations to module description.
3954         * m4/crc.m4: Remove file.
3955         * modules/crc (Files): Remove it.
3956         (configure.ac): Remove gl_CRC call.
3957         (Makefile.am): Augment lib_SOURCES.
3958
3959 2011-05-23  Bruno Haible  <bruno@clisp.org>
3960
3961         close-stream: Move AC_LIBOBJ invocations to module description.
3962         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
3963         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
3964
3965 2011-05-23  Bruno Haible  <bruno@clisp.org>
3966
3967         closeout: Move AC_LIBOBJ invocations to module description.
3968         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
3969         * modules/closeout (Makefile.am): Augment lib_SOURCES.
3970
3971 2011-05-23  Bruno Haible  <bruno@clisp.org>
3972
3973         closein: Move AC_LIBOBJ invocations to module description.
3974         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
3975         * modules/closein (Makefile.am): Augment lib_SOURCES.
3976
3977 2011-05-23  Bruno Haible  <bruno@clisp.org>
3978
3979         cloexec: Move AC_LIBOBJ invocations to module description.
3980         * m4/cloexec.m4: Remove file.
3981         * modules/cloexec (Files): Remove it.
3982         (configure.ac): Remove gl_CLOEXEC call.
3983         (Makefile.am): Augment lib_SOURCES.
3984
3985 2011-05-23  Bruno Haible  <bruno@clisp.org>
3986
3987         check-version: Move AC_LIBOBJ invocations to module description.
3988         * m4/check-version.m4: Remove file.
3989         * modules/check-version (Files): Remove it.
3990         (configure.ac): Remove gl_CHECK_VERSION call.
3991         (Makefile.am): Augment lib_SOURCES.
3992
3993 2011-05-23  Bruno Haible  <bruno@clisp.org>
3994
3995         chdir-safer: Move AC_LIBOBJ invocations to module description.
3996         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
3997         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
3998
3999 2011-05-23  Bruno Haible  <bruno@clisp.org>
4000
4001         canonicalize: Move AC_LIBOBJ invocations to module description.
4002         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
4003         AC_LIBOBJ invocation.
4004         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
4005
4006 2011-05-23  Bruno Haible  <bruno@clisp.org>
4007
4008         canon-host: Move AC_LIBOBJ invocations to module description.
4009         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
4010         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
4011         instead of gl_CANON_HOST.
4012         (Makefile.am): Augment lib_SOURCES.
4013
4014 2011-05-23  Bruno Haible  <bruno@clisp.org>
4015
4016         backupfile: Move AC_LIBOBJ invocations to module description.
4017         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
4018         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
4019
4020 2011-05-23  Bruno Haible  <bruno@clisp.org>
4021
4022         argmatch: Move AC_LIBOBJ invocations to module description.
4023         * m4/argmatch.m4: Remove file.
4024         * modules/argmatch (Files): Remove it.
4025         (configure.ac): Remove gl_ARGMATCH call.
4026         (Makefile.am): Augment lib_SOURCES.
4027
4028 2011-05-23  Bruno Haible  <bruno@clisp.org>
4029
4030         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
4031         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
4032         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
4033
4034 2011-05-23  Bruno Haible  <bruno@clisp.org>
4035
4036         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
4037         * m4/arcfour.m4: Remove file.
4038         * modules/crypto/arcfour (Files): Remove it.
4039         (configure.ac): Remove gl_ARCFOUR call.
4040         (Makefile.am): Augment lib_SOURCES.
4041
4042 2011-05-22  Bruno Haible  <bruno@clisp.org>
4043
4044         write: Move AC_LIBOBJ invocations to module description.
4045         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
4046         * modules/write (configure.ac): ... to here.
4047
4048 2011-05-22  Bruno Haible  <bruno@clisp.org>
4049
4050         wmemset: Move AC_LIBOBJ invocations to module description.
4051         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
4052         here...
4053         * modules/wmemset (configure.ac): ... to here.
4054
4055 2011-05-22  Bruno Haible  <bruno@clisp.org>
4056
4057         wmemmove: Move AC_LIBOBJ invocations to module description.
4058         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
4059         here...
4060         * modules/wmemmove (configure.ac): ... to here.
4061
4062 2011-05-22  Bruno Haible  <bruno@clisp.org>
4063
4064         wmemcpy: Move AC_LIBOBJ invocations to module description.
4065         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
4066         here...
4067         * modules/wmemcpy (configure.ac): ... to here.
4068
4069 2011-05-22  Bruno Haible  <bruno@clisp.org>
4070
4071         wmemcmp: Move AC_LIBOBJ invocations to module description.
4072         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
4073         here...
4074         * modules/wmemcmp (configure.ac): ... to here.
4075
4076 2011-05-22  Bruno Haible  <bruno@clisp.org>
4077
4078         wmemchr: Move AC_LIBOBJ invocations to module description.
4079         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
4080         here...
4081         * modules/wmemchr (configure.ac): ... to here.
4082
4083 2011-05-22  Bruno Haible  <bruno@clisp.org>
4084
4085         wcswidth: Move AC_LIBOBJ invocations to module description.
4086         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
4087         here...
4088         * modules/wcswidth (configure.ac): ... to here.
4089
4090 2011-05-22  Bruno Haible  <bruno@clisp.org>
4091
4092         wcwidth: Respect rules for use of AC_LIBOBJ.
4093         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
4094         invocation from here...
4095         * modules/wcwidth (configure.ac): ... to here.
4096         (Depends-on): Update conditions.
4097
4098 2011-05-22  Bruno Haible  <bruno@clisp.org>
4099
4100         wctype: Move AC_LIBOBJ invocations to module description.
4101         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
4102         invocation from here...
4103         * modules/wctype (configure.ac): ... to here.
4104         (Depends-on): Update conditions.
4105
4106 2011-05-22  Bruno Haible  <bruno@clisp.org>
4107
4108         wctrans: Move AC_LIBOBJ invocations to module description.
4109         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
4110         invocation from here...
4111         * modules/wctrans (configure.ac): ... to here.
4112
4113 2011-05-22  Bruno Haible  <bruno@clisp.org>
4114
4115         wctomb: Move AC_LIBOBJ invocations to module description.
4116         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
4117         invocations from here...
4118         * modules/wctomb (configure.ac): ... to here.
4119
4120 2011-05-22  Bruno Haible  <bruno@clisp.org>
4121
4122         wctob: Move AC_LIBOBJ invocations to module description.
4123         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
4124         gl_PREREQ_WCTOB invocations from here...
4125         * modules/wctob (configure.ac): ... to here.
4126         (Depends-on): Update conditions.
4127
4128 2011-05-22  Bruno Haible  <bruno@clisp.org>
4129
4130         wcsxfrm: Move AC_LIBOBJ invocations to module description.
4131         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
4132         here...
4133         * modules/wcsxfrm (configure.ac): ... to here.
4134
4135 2011-05-22  Bruno Haible  <bruno@clisp.org>
4136
4137         wcstok: Move AC_LIBOBJ invocations to module description.
4138         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
4139         * modules/wcstok (configure.ac): ... to here.
4140
4141 2011-05-22  Bruno Haible  <bruno@clisp.org>
4142
4143         wcsstr: Move AC_LIBOBJ invocations to module description.
4144         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
4145         * modules/wcsstr (configure.ac): ... to here.
4146
4147 2011-05-22  Bruno Haible  <bruno@clisp.org>
4148
4149         wcsspn: Move AC_LIBOBJ invocations to module description.
4150         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
4151         * modules/wcsspn (configure.ac): ... to here.
4152
4153 2011-05-22  Bruno Haible  <bruno@clisp.org>
4154
4155         wcsrtombs: Move AC_LIBOBJ invocations to module description.
4156         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
4157         gl_PREREQ_WCSRTOMBS invocations from here...
4158         * modules/wcsrtombs (configure.ac): ... to here.
4159
4160 2011-05-22  Bruno Haible  <bruno@clisp.org>
4161
4162         wcsrchr: Move AC_LIBOBJ invocations to module description.
4163         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
4164         here...
4165         * modules/wcsrchr (configure.ac): ... to here.
4166
4167 2011-05-22  Bruno Haible  <bruno@clisp.org>
4168
4169         wcspbrk: Move AC_LIBOBJ invocations to module description.
4170         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
4171         here...
4172         * modules/wcspbrk (configure.ac): ... to here.
4173
4174 2011-05-22  Bruno Haible  <bruno@clisp.org>
4175
4176         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
4177         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
4178         gl_PREREQ_WCSNRTOMBS invocations from here...
4179         * modules/wcsnrtombs (configure.ac): ... to here.
4180
4181 2011-05-22  Bruno Haible  <bruno@clisp.org>
4182
4183         wcsnlen: Move AC_LIBOBJ invocations to module description.
4184         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
4185         here...
4186         * modules/wcsnlen (configure.ac): ... to here.
4187
4188 2011-05-22  Bruno Haible  <bruno@clisp.org>
4189
4190         wcsncpy: Move AC_LIBOBJ invocations to module description.
4191         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
4192         here...
4193         * modules/wcsncpy (configure.ac): ... to here.
4194
4195 2011-05-22  Bruno Haible  <bruno@clisp.org>
4196
4197         wcsncmp: Move AC_LIBOBJ invocations to module description.
4198         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
4199         here...
4200         * modules/wcsncmp (configure.ac): ... to here.
4201
4202 2011-05-22  Bruno Haible  <bruno@clisp.org>
4203
4204         wcsncat: Move AC_LIBOBJ invocations to module description.
4205         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
4206         here...
4207         * modules/wcsncat (configure.ac): ... to here.
4208
4209 2011-05-22  Bruno Haible  <bruno@clisp.org>
4210
4211         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
4212         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
4213         from here...
4214         * modules/wcsncasecmp (configure.ac): ... to here.
4215
4216 2011-05-22  Bruno Haible  <bruno@clisp.org>
4217
4218         wcslen: Move AC_LIBOBJ invocations to module description.
4219         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
4220         * modules/wcslen (configure.ac): ... to here.
4221
4222 2011-05-22  Bruno Haible  <bruno@clisp.org>
4223
4224         wcsdup: Move AC_LIBOBJ invocations to module description.
4225         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
4226         * modules/wcsdup (configure.ac): ... to here.
4227
4228 2011-05-22  Bruno Haible  <bruno@clisp.org>
4229
4230         wcscspn: Move AC_LIBOBJ invocations to module description.
4231         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
4232         here...
4233         * modules/wcscspn (configure.ac): ... to here.
4234
4235 2011-05-22  Bruno Haible  <bruno@clisp.org>
4236
4237         wcscpy: Move AC_LIBOBJ invocations to module description.
4238         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
4239         * modules/wcscpy (configure.ac): ... to here.
4240
4241 2011-05-22  Bruno Haible  <bruno@clisp.org>
4242
4243         wcscoll: Move AC_LIBOBJ invocations to module description.
4244         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
4245         here...
4246         * modules/wcscoll (configure.ac): ... to here.
4247
4248 2011-05-22  Bruno Haible  <bruno@clisp.org>
4249
4250         wcscmp: Move AC_LIBOBJ invocations to module description.
4251         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
4252         * modules/wcscmp (configure.ac): ... to here.
4253
4254 2011-05-22  Bruno Haible  <bruno@clisp.org>
4255
4256         wcschr: Move AC_LIBOBJ invocations to module description.
4257         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
4258         * modules/wcschr (configure.ac): ... to here.
4259
4260 2011-05-22  Bruno Haible  <bruno@clisp.org>
4261
4262         wcscat: Move AC_LIBOBJ invocations to module description.
4263         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
4264         * modules/wcscat (configure.ac): ... to here.
4265
4266 2011-05-22  Bruno Haible  <bruno@clisp.org>
4267
4268         wcscasecmp: Move AC_LIBOBJ invocations to module description.
4269         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
4270         here...
4271         * modules/wcscasecmp (configure.ac): ... to here.
4272
4273 2011-05-22  Bruno Haible  <bruno@clisp.org>
4274
4275         wcrtomb: Move AC_LIBOBJ invocations to module description.
4276         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
4277         invocations from here...
4278         * modules/wcrtomb (configure.ac): ... to here.
4279
4280 2011-05-22  Bruno Haible  <bruno@clisp.org>
4281
4282         wcpncpy: Move AC_LIBOBJ invocations to module description.
4283         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
4284         here...
4285         * modules/wcpncpy (configure.ac): ... to here.
4286
4287 2011-05-22  Bruno Haible  <bruno@clisp.org>
4288
4289         wcpcpy: Move AC_LIBOBJ invocations to module description.
4290         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
4291         * modules/wcpcpy (configure.ac): ... to here.
4292
4293 2011-05-22  Bruno Haible  <bruno@clisp.org>
4294
4295         waitpid: Move AC_LIBOBJ invocations to module description.
4296         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
4297         invocation from here...
4298         * modules/waitpid (configure.ac): ... to here.
4299
4300 2011-05-22  Bruno Haible  <bruno@clisp.org>
4301
4302         utimensat: Move AC_LIBOBJ invocations to module description.
4303         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
4304         here...
4305         * modules/utimensat (configure.ac): ... to here.
4306
4307 2011-05-22  Bruno Haible  <bruno@clisp.org>
4308
4309         usleep: Move AC_LIBOBJ invocations to module description.
4310         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
4311         here...
4312         * modules/usleep (configure.ac): ... to here.
4313
4314 2011-05-22  Bruno Haible  <bruno@clisp.org>
4315
4316         unlockpt: Move AC_LIBOBJ invocations to module description.
4317         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
4318         gl_PREREQ_UNLOCKPT invocations from here...
4319         * modules/unlockpt (configure.ac): ... to here.
4320
4321 2011-05-22  Bruno Haible  <bruno@clisp.org>
4322
4323         unlink: Respect rules for use of AC_LIBOBJ.
4324         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
4325         * modules/unlink (configure.ac): ... to here.
4326
4327 2011-05-22  Bruno Haible  <bruno@clisp.org>
4328
4329         uname: Move AC_LIBOBJ invocations to module description.
4330         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
4331         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
4332         here...
4333         * modules/uname (configure.ac): ... to here.
4334
4335 2011-05-22  Bruno Haible  <bruno@clisp.org>
4336
4337         ttyname_r: Move AC_LIBOBJ invocations to module description.
4338         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
4339         gl_PREREQ_TTYNAME_R invocations from here...
4340         * modules/ttyname_r (configure.ac): ... to here.
4341
4342 2011-05-22  Bruno Haible  <bruno@clisp.org>
4343
4344         tsearch: Move AC_LIBOBJ invocations to module description.
4345         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
4346         invocations from here...
4347         * modules/tsearch (configure.ac): ... to here.
4348
4349 2011-05-22  Bruno Haible  <bruno@clisp.org>
4350
4351         towctrans: Move AC_LIBOBJ invocations to module description.
4352         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
4353         AC_LIBOBJ invocation from here...
4354         * modules/towctrans (configure.ac): ... to here.
4355
4356 2011-05-22  Bruno Haible  <bruno@clisp.org>
4357
4358         tmpfile: Move AC_LIBOBJ invocations to module description.
4359         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
4360         invocations from here...
4361         * modules/tmpfile (configure.ac): ... to here.
4362
4363 2011-05-22  Bruno Haible  <bruno@clisp.org>
4364
4365         times: Move AC_LIBOBJ invocations to module description.
4366         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
4367         * modules/times (configure.ac): ... to here.
4368
4369 2011-05-22  Bruno Haible  <bruno@clisp.org>
4370
4371         time_r: Move AC_LIBOBJ invocations to module description.
4372         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
4373         invocations from here...
4374         * modules/time_r (configure.ac): ... to here.
4375
4376 2011-05-22  Bruno Haible  <bruno@clisp.org>
4377
4378         timegm: Move AC_LIBOBJ invocations to module description.
4379         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
4380         invocations from here...
4381         * modules/timegm (configure.ac): ... to here.
4382
4383 2011-05-22  Bruno Haible  <bruno@clisp.org>
4384
4385         tcgetsid: Move AC_LIBOBJ invocations to module description.
4386         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
4387         and gl_PREREQ_TCGETSID invocations from here...
4388         * modules/tcgetsid (configure.ac): ... to here.
4389         (Depends-on): Update conditions.
4390
4391 2011-05-22  Bruno Haible  <bruno@clisp.org>
4392
4393         symlinkat: Move AC_LIBOBJ invocations to module description.
4394         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
4395         here...
4396         * modules/symlinkat (configure.ac): ... to here.
4397
4398 2011-05-22  Bruno Haible  <bruno@clisp.org>
4399
4400         symlink: Move AC_LIBOBJ invocations to module description.
4401         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
4402         here...
4403         * modules/symlink (configure.ac): ... to here.
4404
4405 2011-05-22  Bruno Haible  <bruno@clisp.org>
4406
4407         strverscmp: Move AC_LIBOBJ invocations to module description.
4408         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
4409         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
4410         from here...
4411         * modules/strverscmp (configure.ac): ... to here.
4412
4413 2011-05-22  Bruno Haible  <bruno@clisp.org>
4414
4415         strtok_r: Move AC_LIBOBJ invocations to module description.
4416         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
4417         and gl_PREREQ_STRTOK_R invocations from here...
4418         * modules/strtok_r (configure.ac): ... to here.
4419         (Depends-on): Update conditions.
4420
4421 2011-05-22  Bruno Haible  <bruno@clisp.org>
4422
4423         strtoumax: Move AC_LIBOBJ invocations to module description.
4424         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
4425         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
4426         from here...
4427         * modules/strtoumax (configure.ac): ... to here.
4428
4429 2011-05-22  Bruno Haible  <bruno@clisp.org>
4430
4431         strtoimax: Move AC_LIBOBJ invocations to module description.
4432         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
4433         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
4434         from here...
4435         * modules/strtoimax (configure.ac): ... to here.
4436
4437 2011-05-22  Bruno Haible  <bruno@clisp.org>
4438
4439         strtoull: Move AC_LIBOBJ invocations to module description.
4440         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
4441         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
4442         from here...
4443         * modules/strtoull (configure.ac): ... to here.
4444
4445 2011-05-22  Bruno Haible  <bruno@clisp.org>
4446
4447         strtoll: Move AC_LIBOBJ invocations to module description.
4448         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
4449         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
4450         here...
4451         * modules/strtoll (configure.ac): ... to here.
4452
4453 2011-05-22  Bruno Haible  <bruno@clisp.org>
4454
4455         strtoul: Move AC_LIBOBJ invocations to module description.
4456         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
4457         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
4458         * modules/strtoul (configure.ac): ... to here.
4459
4460 2011-05-22  Bruno Haible  <bruno@clisp.org>
4461
4462         strtol: Move AC_LIBOBJ invocations to module description.
4463         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
4464         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
4465         * modules/strtol (configure.ac): ... to here.
4466
4467 2011-05-22  Bruno Haible  <bruno@clisp.org>
4468
4469         strtod: Move AC_LIBOBJ invocations to module description.
4470         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
4471         invocations from here...
4472         * modules/strtod (configure.ac): ... to here.
4473
4474 2011-05-22  Bruno Haible  <bruno@clisp.org>
4475
4476         strstr*: Move AC_LIBOBJ invocations to module description.
4477         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
4478         invocations from here...
4479         * modules/strstr-simple (configure.ac): ... to here.
4480         * modules/strstr (configure.ac): ... and here.
4481
4482 2011-05-22  Bruno Haible  <bruno@clisp.org>
4483
4484         strsignal: Move AC_LIBOBJ invocations to module description.
4485         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
4486         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
4487         * modules/strsignal (configure.ac): ... to here.
4488         (Depends-on): Update conditions.
4489
4490 2011-05-22  Bruno Haible  <bruno@clisp.org>
4491
4492         strsep: Move AC_LIBOBJ invocations to module description.
4493         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
4494         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
4495         here...
4496         * modules/strsep (configure.ac): ... to here.
4497
4498 2011-05-22  Bruno Haible  <bruno@clisp.org>
4499
4500         strptime: Move AC_LIBOBJ invocations to module description.
4501         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
4502         gl_PREREQ_STRPTIME invocations from here...
4503         * modules/strptime (configure.ac): ... to here.
4504
4505 2011-05-22  Bruno Haible  <bruno@clisp.org>
4506
4507         strpbrk: Move AC_LIBOBJ invocations to module description.
4508         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
4509         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
4510         here...
4511         * modules/strpbrk (configure.ac): ... to here.
4512
4513 2011-05-22  Bruno Haible  <bruno@clisp.org>
4514
4515         strnlen: Move AC_LIBOBJ invocations to module description.
4516         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
4517         invocations from here...
4518         * modules/strnlen (configure.ac): ... to here.
4519
4520 2011-05-22  Bruno Haible  <bruno@clisp.org>
4521
4522         strndup: Move AC_LIBOBJ invocations to module description.
4523         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
4524         invocations from here...
4525         * modules/strndup (configure.ac): ... to here.
4526         (Depends-on): Update conditions.
4527
4528 2011-05-22  Bruno Haible  <bruno@clisp.org>
4529
4530         strncat: Move AC_LIBOBJ invocations to module description.
4531         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
4532         invocations from here...
4533         * modules/strncat (configure.ac): ... to here.
4534
4535 2011-05-22  Bruno Haible  <bruno@clisp.org>
4536
4537         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
4538         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
4539         invocations from here...
4540         * modules/strdup (configure.ac): ... to here.
4541         * modules/strdup-posix (configure.ac): ... and here.
4542
4543 2011-05-22  Bruno Haible  <bruno@clisp.org>
4544
4545         strcspn: Move AC_LIBOBJ invocations to module description.
4546         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
4547         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
4548         here...
4549         * modules/strcspn (configure.ac): ... to here.
4550
4551 2011-05-22  Bruno Haible  <bruno@clisp.org>
4552
4553         strchrnul: Move AC_LIBOBJ invocations to module description.
4554         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
4555         gl_PREREQ_STRCHRNUL invocations from here...
4556         * modules/strchrnul (configure.ac): ... to here.
4557
4558 2011-05-22  Bruno Haible  <bruno@clisp.org>
4559
4560         strcasestr*: Move AC_LIBOBJ invocations to module description.
4561         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
4562         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
4563         * modules/strcasestr-simple (configure.ac): ... to here.
4564         * modules/strcasestr (configure.ac): ... and here.
4565
4566 2011-05-22  Bruno Haible  <bruno@clisp.org>
4567
4568         strcase: Move AC_LIBOBJ invocations to module description.
4569         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
4570         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
4571         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
4572         gl_PREREQ_STRNCASECMP invocations from here...
4573         * modules/strcase (configure.ac): ... to here.
4574
4575 2011-05-22  Bruno Haible  <bruno@clisp.org>
4576
4577         stpncpy: Move AC_LIBOBJ invocations to module description.
4578         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
4579         here...
4580         * modules/stpncpy (configure.ac): ... to here.
4581
4582 2011-05-22  Bruno Haible  <bruno@clisp.org>
4583
4584         stpcpy: Move AC_LIBOBJ invocations to module description.
4585         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
4586         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
4587         here...
4588         * modules/stpcpy (configure.ac): ... to here.
4589
4590 2011-05-21  Bruno Haible  <bruno@clisp.org>
4591
4592         stat: Move AC_LIBOBJ invocations to module description.
4593         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
4594         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
4595         here...
4596         * modules/stat (configure.ac): ... to here.
4597
4598 2011-05-21  Bruno Haible  <bruno@clisp.org>
4599
4600         sleep: Move AC_LIBOBJ invocations to module description.
4601         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
4602         * modules/sleep (configure.ac): ... to here.
4603
4604 2011-05-21  Bruno Haible  <bruno@clisp.org>
4605
4606         signbit: Move AC_LIBOBJ invocations to module description.
4607         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
4608         * modules/signbit (configure.ac): ... to here.
4609
4610 2011-05-21  Bruno Haible  <bruno@clisp.org>
4611
4612         sigprocmask: Move AC_LIBOBJ invocations to module description.
4613         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
4614         gl_PREREQ_SIGPROMASK invocations from here...
4615         * modules/sigprocmask (configure.ac): ... to here.
4616
4617 2011-05-21  Bruno Haible  <bruno@clisp.org>
4618
4619         sigaction: Move AC_LIBOBJ invocations to module description.
4620         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
4621         gl_PREREQ_SIGACTION invocations from here...
4622         * modules/sigaction (configure.ac): ... to here.
4623
4624 2011-05-21  Bruno Haible  <bruno@clisp.org>
4625
4626         sig2str: Move AC_LIBOBJ invocations to module description.
4627         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
4628         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
4629         here...
4630         * modules/sig2str (configure.ac): ... to here.
4631
4632 2011-05-21  Bruno Haible  <bruno@clisp.org>
4633
4634         setlocale: Move AC_LIBOBJ invocations to module description.
4635         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
4636         gl_PREREQ_SETLOCALE invocations from here...
4637         * modules/setlocale (configure.ac): ... to here.
4638
4639 2011-05-21  Bruno Haible  <bruno@clisp.org>
4640
4641         unsetenv: Move AC_LIBOBJ invocations to module description.
4642         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
4643         and gl_PREREQ_UNSETENV invocations from here...
4644         * modules/unsetenv (configure.ac): ... to here.
4645         (Depends-on): Update.
4646
4647 2011-05-21  Bruno Haible  <bruno@clisp.org>
4648
4649         setenv: Move AC_LIBOBJ invocations to module description.
4650         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
4651         here...
4652         * modules/setenv (configure.ac): ... to here.
4653
4654 2011-05-21  Bruno Haible  <bruno@clisp.org>
4655
4656         selinux-h: Move AC_LIBOBJ invocations to module description.
4657         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
4658         AC_LIBOBJ invocation from here...
4659         * modules/selinux-h (configure.ac): ... to here.
4660
4661 2011-05-21  Bruno Haible  <bruno@clisp.org>
4662
4663         select: Respect rules for use of AC_LIBOBJ.
4664         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
4665         here...
4666         * modules/select (configure.ac): ... to here.
4667
4668 2011-05-21  Bruno Haible  <bruno@clisp.org>
4669
4670         scandir: Move AC_LIBOBJ invocations to module description.
4671         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
4672         invocations from here...
4673         * modules/scandir (configure.ac): ... to here.
4674
4675 2011-05-21  Bruno Haible  <bruno@clisp.org>
4676
4677         rpmatch: Move AC_LIBOBJ invocations to module description.
4678         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
4679         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
4680         here...
4681         * modules/rpmatch (configure.ac): ... to here.
4682
4683 2011-05-21  Bruno Haible  <bruno@clisp.org>
4684
4685         rmdir: Respect rules for use of AC_LIBOBJ.
4686         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
4687         * modules/rmdir (configure.ac): ... to here.
4688
4689 2011-05-21  Bruno Haible  <bruno@clisp.org>
4690
4691         renameat: Move AC_LIBOBJ invocations to module description.
4692         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
4693         here...
4694         * modules/renameat (configure.ac): ... to here.
4695
4696 2011-05-21  Bruno Haible  <bruno@clisp.org>
4697
4698         rename: Respect rules for use of AC_LIBOBJ.
4699         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
4700         here...
4701         * modules/rename (configure.ac): ... to here.
4702
4703 2011-05-21  Bruno Haible  <bruno@clisp.org>
4704
4705         remove: Move AC_LIBOBJ invocations to module description.
4706         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
4707         here...
4708         * modules/remove (configure.ac): ... to here.
4709
4710 2011-05-21  Bruno Haible  <bruno@clisp.org>
4711
4712         relocatable-lib: Move AC_LIBOBJ invocations to module description.
4713         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
4714         macro.
4715         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
4716         * modules/relocatable-lib (configure.ac): ... to here.
4717         * modules/relocatable-prog-wrapper (configure.ac): Invoke
4718         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
4719
4720 2011-05-21  Bruno Haible  <bruno@clisp.org>
4721
4722         relocatable-prog: Move AC_LIBOBJ invocations to module description.
4723         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
4724         here...
4725         * modules/relocatable-prog (configure.ac): ... to here.
4726
4727 2011-05-21  Bruno Haible  <bruno@clisp.org>
4728
4729         regex: Move AC_LIBOBJ invocations to module description.
4730         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
4731         invocations from here...
4732         * modules/regex (configure.ac): ... to here.
4733
4734 2011-05-21  Bruno Haible  <bruno@clisp.org>
4735
4736         realloc-*: Move AC_LIBOBJ invocations to module description.
4737         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
4738         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
4739         AC_LIBOBJ invocations from here...
4740         * modules/realloc-gnu (configure.ac): ... to here.
4741         * modules/realloc-posix (configure.ac): ... and here.
4742
4743 2011-05-21  Bruno Haible  <bruno@clisp.org>
4744
4745         readutmp: Move AC_LIBOBJ invocations to module description.
4746         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
4747         * modules/readutmp (configure.ac): ... to here.
4748
4749 2011-05-21  Bruno Haible  <bruno@clisp.org>
4750
4751         readlinkat: Move AC_LIBOBJ invocations to module description.
4752         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
4753         here...
4754         * modules/readlinkat (configure.ac): ... to here.
4755
4756 2011-05-21  Bruno Haible  <bruno@clisp.org>
4757
4758         readlink: Move AC_LIBOBJ invocations to module description.
4759         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
4760         gl_PREREQ_READLINK invocations from here...
4761         * modules/readlink (configure.ac): ... to here.
4762
4763 2011-05-21  Bruno Haible  <bruno@clisp.org>
4764
4765         readline: Move AC_LIBOBJ invocations to module description.
4766         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
4767         gl_PREREQ_READLINE invocations from here...
4768         * modules/readline (configure.ac): ... to here.
4769
4770 2011-05-21  Bruno Haible  <bruno@clisp.org>
4771
4772         read: Move AC_LIBOBJ invocations to module description.
4773         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
4774         * modules/read (configure.ac): ... to here.
4775
4776 2011-05-21  Bruno Haible  <bruno@clisp.org>
4777
4778         rawmemchr: Move AC_LIBOBJ invocations to module description.
4779         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
4780         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
4781         from here...
4782         * modules/rawmemchr (configure.ac): ... to here.
4783
4784 2011-05-21  Bruno Haible  <bruno@clisp.org>
4785
4786         random_r: Move AC_LIBOBJ invocations to module description.
4787         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
4788         gl_PREREQ_RANDOM_R invocations from here...
4789         * modules/random_r (configure.ac): ... to here.
4790
4791 2011-05-21  Bruno Haible  <bruno@clisp.org>
4792
4793         pwrite: Move AC_LIBOBJ invocations to module description.
4794         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
4795         * modules/pwrite (configure.ac): ... to here.
4796
4797 2011-05-21  Bruno Haible  <bruno@clisp.org>
4798
4799         putenv: Move AC_LIBOBJ invocations to module description.
4800         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
4801         * modules/putenv (configure.ac): ... to here.
4802
4803 2011-05-21  Bruno Haible  <bruno@clisp.org>
4804
4805         login_tty: Move AC_LIBOBJ invocations to module description.
4806         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
4807         * modules/login_tty (configure.ac): ... to here.
4808
4809 2011-05-21  Bruno Haible  <bruno@clisp.org>
4810
4811         openpty: Move AC_LIBOBJ invocations to module description.
4812         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
4813         * modules/openpty (configure.ac): ... to here.
4814
4815 2011-05-21  Bruno Haible  <bruno@clisp.org>
4816
4817         forkpty: Move AC_LIBOBJ invocations to module description.
4818         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
4819         * modules/forkpty (configure.ac): ... to here.
4820
4821 2011-05-21  Bruno Haible  <bruno@clisp.org>
4822
4823         ptsname: Move AC_LIBOBJ invocations to module description.
4824         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
4825         invocations from here...
4826         * modules/ptsname (configure.ac): ... to here.
4827
4828 2011-05-21  Bruno Haible  <bruno@clisp.org>
4829
4830         pread: Move AC_LIBOBJ invocations to module description.
4831         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
4832         * modules/pread (configure.ac): ... to here.
4833
4834 2011-05-21  Bruno Haible  <bruno@clisp.org>
4835
4836         posix_spawn*: Move AC_LIBOBJ invocations to module description.
4837         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
4838         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
4839         * modules/posix_spawn (configure.ac): ... to here.
4840         * modules/posix_spawnp (configure.ac): ... and here.
4841
4842 2011-05-21  Bruno Haible  <bruno@clisp.org>
4843
4844         popen: Move AC_LIBOBJ invocations to module description.
4845         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
4846         invocations from here...
4847         * modules/popen (configure.ac): ... to here.
4848
4849 2011-05-21  Bruno Haible  <bruno@clisp.org>
4850
4851         poll: Move AC_LIBOBJ invocations to module description.
4852         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
4853         invocations from here...
4854         * modules/poll (configure.ac): ... to here.
4855
4856 2011-05-21  Bruno Haible  <bruno@clisp.org>
4857
4858         pipe-posix: Move AC_LIBOBJ invocations to module description.
4859         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
4860         * modules/pipe-posix (configure.ac): ... to here.
4861
4862 2011-05-21  Bruno Haible  <bruno@clisp.org>
4863
4864         openat: Respect rules for use of AC_LIBOBJ.
4865         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
4866         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
4867         * modules/openat (configure.ac): ... to here.
4868
4869 2011-05-21  Bruno Haible  <bruno@clisp.org>
4870
4871         obstack-printf*: Move AC_LIBOBJ invocations to module description.
4872         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
4873         invocation from here...
4874         * modules/obstack-printf (configure.ac): ... to here.
4875         * modules/obstack-printf-posix (configure.ac): ... and here.
4876
4877 2011-05-21  Bruno Haible  <bruno@clisp.org>
4878
4879         nl_langinfo: Move AC_LIBOBJ invocations to module description.
4880         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
4881         from here...
4882         * modules/nl_langinfo (configure.ac): ... to here.
4883
4884 2011-05-21  Bruno Haible  <bruno@clisp.org>
4885
4886         nanosleep: Move AC_LIBOBJ invocations to module description.
4887         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
4888         gl_PREREQ_NANOSLEEP invocations from here...
4889         * modules/nanosleep (configure.ac): ... to here.
4890
4891 2011-05-21  Bruno Haible  <bruno@clisp.org>
4892
4893         mountlist: Move AC_LIBOBJ invocations to module description.
4894         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
4895         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
4896         * modules/mountlist (configure.ac): ... to here.
4897
4898 2011-05-21  Bruno Haible  <bruno@clisp.org>
4899
4900         mktime: Respect rules for use of AC_LIBOBJ.
4901         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
4902         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
4903         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
4904         (gl_FUNC_MKTIME_INTERNAL): ... and here...
4905         * modules/mktime (configure.ac): ... to here.
4906         * modules/mktime-internal (configure.ac): ... and here.
4907         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
4908
4909 2011-05-21  Bruno Haible  <bruno@clisp.org>
4910
4911         mkstemps: Move AC_LIBOBJ invocations to module description.
4912         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
4913         here...
4914         * modules/mkstemps (configure.ac): ... to here.
4915
4916 2011-05-21  Bruno Haible  <bruno@clisp.org>
4917
4918         mkstemp: Move AC_LIBOBJ invocations to module description.
4919         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
4920         gl_PREREQ_MKSTEMP invocations from here...
4921         * modules/mkstemp (configure.ac): ... to here.
4922
4923 2011-05-21  Bruno Haible  <bruno@clisp.org>
4924
4925         mkostemps: Move AC_LIBOBJ invocations to module description.
4926         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
4927         here...
4928         * modules/mkostemps (configure.ac): ... to here.
4929
4930 2011-05-21  Bruno Haible  <bruno@clisp.org>
4931
4932         mkostemp: Move AC_LIBOBJ invocations to module description.
4933         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
4934         gl_PREREQ_MKOSTEMP invocations from here...
4935         * modules/mkostemp (configure.ac): ... to here.
4936
4937 2011-05-21  Bruno Haible  <bruno@clisp.org>
4938
4939         mknod: Move AC_LIBOBJ invocations to module description.
4940         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
4941         * modules/mknod (configure.ac): ... to here.
4942
4943 2011-05-21  Bruno Haible  <bruno@clisp.org>
4944
4945         mkfifoat: Move AC_LIBOBJ invocations to module description.
4946         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
4947         here...
4948         * modules/mkfifoat (configure.ac): ... to here.
4949
4950 2011-05-21  Bruno Haible  <bruno@clisp.org>
4951
4952         mkfifo: Respect rules for use of AC_LIBOBJ.
4953         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
4954         here...
4955         * modules/mkfifo (configure.ac): ... to here.
4956
4957 2011-05-21  Bruno Haible  <bruno@clisp.org>
4958
4959         mkdtemp: Move AC_LIBOBJ invocations to module description.
4960         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
4961         invocations from here...
4962         * modules/mkdtemp (configure.ac): ... to here.
4963
4964 2011-05-21  Bruno Haible  <bruno@clisp.org>
4965
4966         mkdir: Move AC_LIBOBJ invocations to module description.
4967         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
4968         * modules/mkdir (configure.ac): ... to here.
4969
4970 2011-05-21  Bruno Haible  <bruno@clisp.org>
4971
4972         memset: Move AC_LIBOBJ invocations to module description.
4973         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
4974         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
4975         here...
4976         * modules/memset (configure.ac): ... to here.
4977
4978 2011-05-21  Bruno Haible  <bruno@clisp.org>
4979
4980         memrchr: Move AC_LIBOBJ invocations to module description.
4981         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
4982         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
4983         here...
4984         * modules/memrchr (configure.ac): ... to here.
4985
4986 2011-05-21  Bruno Haible  <bruno@clisp.org>
4987
4988         mempcpy: Move AC_LIBOBJ invocations to module description.
4989         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
4990         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
4991         here...
4992         * modules/mempcpy (configure.ac): ... to here.
4993
4994 2011-05-21  Bruno Haible  <bruno@clisp.org>
4995
4996         memmove: Move AC_LIBOBJ invocations to module description.
4997         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
4998         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
4999         here...
5000         * modules/memmove (configure.ac): ... to here.
5001
5002 2011-05-21  Bruno Haible  <bruno@clisp.org>
5003
5004         memmem*: Move AC_LIBOBJ invocations to module description.
5005         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
5006         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
5007         here...
5008         (gl_FUNC_MEMMEM): ... and here...
5009         * modules/memmem-simple (configure.ac): ... to here.
5010         * modules/memmem (configure.ac): ... and here.
5011
5012 2011-05-21  Bruno Haible  <bruno@clisp.org>
5013
5014         memcpy: Move AC_LIBOBJ invocations to module description.
5015         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
5016         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
5017         here...
5018         * modules/memcpy (configure.ac): ... to here.
5019
5020 2011-05-21  Bruno Haible  <bruno@clisp.org>
5021
5022         memcmp: Simplify autoconf macro.
5023         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
5024         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
5025         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
5026
5027 2011-05-21  Bruno Haible  <bruno@clisp.org>
5028
5029         memcmp: Move AC_LIBOBJ invocations to module description.
5030         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
5031         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
5032         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
5033         * modules/memcmp (configure.ac): ... to here.
5034         (Depends-on): Update conditions.
5035
5036 2011-05-21  Bruno Haible  <bruno@clisp.org>
5037
5038         memchr: Respect rules for use of AC_LIBOBJ.
5039         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
5040         invocations from here...
5041         * modules/memchr (configure.ac): ... to here.
5042
5043 2011-05-21  Bruno Haible  <bruno@clisp.org>
5044
5045         mbtowc: Move AC_LIBOBJ invocations to module description.
5046         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
5047         invocations from here...
5048         * modules/mbtowc (configure.ac): ... to here.
5049
5050 2011-05-21  Bruno Haible  <bruno@clisp.org>
5051
5052         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
5053         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
5054         gl_PREREQ_MBSRTOWCS invocations from here...
5055         * modules/mbsrtowcs (configure.ac): ... to here.
5056
5057 2011-05-21  Bruno Haible  <bruno@clisp.org>
5058
5059         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
5060         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
5061         gl_PREREQ_MBSNRTOWCS invocations from here...
5062         * modules/mbsnrtowcs (configure.ac): ... to here.
5063
5064 2011-05-21  Bruno Haible  <bruno@clisp.org>
5065
5066         mbsinit: Move AC_LIBOBJ invocations to module description.
5067         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
5068         invocations from here...
5069         * modules/mbsinit (configure.ac): ... to here.
5070
5071 2011-05-21  Bruno Haible  <bruno@clisp.org>
5072
5073         mbrlen: Move AC_LIBOBJ invocations to module description.
5074         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
5075         invocations from here...
5076         * modules/mbrlen (configure.ac): ... to here.
5077
5078 2011-05-21  Bruno Haible  <bruno@clisp.org>
5079
5080         mbrtowc: Respect rules for use of AC_LIBOBJ.
5081         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
5082         invocations from here...
5083         * modules/mbrtowc (configure.ac): ... to here.
5084
5085 2011-05-21  Bruno Haible  <bruno@clisp.org>
5086
5087         malloc-*: Move AC_LIBOBJ invocations to module description.
5088         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
5089         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
5090         AC_LIBOBJ invocations from here...
5091         * modules/malloc-gnu (configure.ac): ... to here.
5092         * modules/malloc-posix (configure.ac): ... and here.
5093
5094 2011-05-21  Bruno Haible  <bruno@clisp.org>
5095
5096         lstat, openat: Respect rules for use of AC_LIBOBJ.
5097         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
5098         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
5099         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
5100         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
5101         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
5102         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
5103         here.
5104         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
5105
5106 2011-05-21  Bruno Haible  <bruno@clisp.org>
5107
5108         lseek: Move AC_LIBOBJ invocations to module description.
5109         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
5110         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
5111         * modules/lseek (configure.ac): ... to here.
5112
5113 2011-05-21  Bruno Haible  <bruno@clisp.org>
5114
5115         linkat: Move AC_LIBOBJ invocations to module description.
5116         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
5117         here...
5118         * modules/linkat (configure.ac): ... to here.
5119
5120 2011-05-21  Bruno Haible  <bruno@clisp.org>
5121
5122         link: Respect rules for use of AC_LIBOBJ.
5123         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
5124         * modules/link (configure.ac): ... to here.
5125
5126 2011-05-21  Bruno Haible  <bruno@clisp.org>
5127
5128         lchown: Move AC_LIBOBJ invocations to module description.
5129         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
5130         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
5131         * modules/lchown (configure.ac): ... to here.
5132
5133 2011-05-21  Bruno Haible  <bruno@clisp.org>
5134
5135         iswctype: Move AC_LIBOBJ invocations to module description.
5136         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
5137         here...
5138         * modules/iswctype (configure.ac): ... to here.
5139
5140 2011-05-21  Bruno Haible  <bruno@clisp.org>
5141
5142         iswblank: Move AC_LIBOBJ invocations to module description.
5143         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
5144         here...
5145         * modules/iswblank (configure.ac): ... to here.
5146
5147 2011-05-21  Bruno Haible  <bruno@clisp.org>
5148
5149         atanl: Move AC_LIBOBJ invocations to module description.
5150         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
5151         * modules/atanl (configure.ac): ... to here.
5152
5153 2011-05-21  Bruno Haible  <bruno@clisp.org>
5154
5155         acosl: Move AC_LIBOBJ invocations to module description.
5156         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
5157         * modules/acosl (configure.ac): ... to here.
5158
5159 2011-05-21  Bruno Haible  <bruno@clisp.org>
5160
5161         asinl: Respect rules for use of AC_LIBOBJ.
5162         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
5163         * modules/asinl (configure.ac): ... to here.
5164
5165 2011-05-21  Bruno Haible  <bruno@clisp.org>
5166
5167         tanl: Move AC_LIBOBJ invocations to module description.
5168         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
5169         * modules/tanl (configure.ac): ... to here.
5170
5171 2011-05-21  Bruno Haible  <bruno@clisp.org>
5172
5173         cosl: Move AC_LIBOBJ invocations to module description.
5174         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
5175         * modules/cosl (configure.ac): ... to here.
5176
5177 2011-05-21  Bruno Haible  <bruno@clisp.org>
5178
5179         sinl: Move AC_LIBOBJ invocations to module description.
5180         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
5181         * modules/sinl (configure.ac): ... to here.
5182
5183 2011-05-21  Bruno Haible  <bruno@clisp.org>
5184
5185         logl: Move AC_LIBOBJ invocations to module description.
5186         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
5187         * modules/logl (configure.ac): ... to here.
5188
5189 2011-05-21  Bruno Haible  <bruno@clisp.org>
5190
5191         expl: Move AC_LIBOBJ invocations to module description.
5192         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
5193         * modules/expl (configure.ac): ... to here.
5194
5195 2011-05-21  Bruno Haible  <bruno@clisp.org>
5196
5197         roundl: Move AC_LIBOBJ invocations to module description.
5198         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
5199         * modules/roundl (configure.ac): ... to here.
5200
5201 2011-05-21  Bruno Haible  <bruno@clisp.org>
5202
5203         round: Move AC_LIBOBJ invocations to module description.
5204         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
5205         * modules/round (configure.ac): ... to here.
5206
5207 2011-05-21  Bruno Haible  <bruno@clisp.org>
5208
5209         roundf: Move AC_LIBOBJ invocations to module description.
5210         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
5211         * modules/roundf (configure.ac): ... to here.
5212
5213 2011-05-21  Bruno Haible  <bruno@clisp.org>
5214
5215         truncl: Move AC_LIBOBJ invocations to module description.
5216         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
5217         * modules/truncl (configure.ac): ... to here.
5218
5219 2011-05-21  Bruno Haible  <bruno@clisp.org>
5220
5221         trunc: Move AC_LIBOBJ invocations to module description.
5222         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
5223         * modules/trunc (configure.ac): ... to here.
5224
5225 2011-05-21  Bruno Haible  <bruno@clisp.org>
5226
5227         truncf: Move AC_LIBOBJ invocations to module description.
5228         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
5229         * modules/truncf (configure.ac): ... to here.
5230
5231 2011-05-21  Bruno Haible  <bruno@clisp.org>
5232
5233         ceill: Move AC_LIBOBJ invocations to module description.
5234         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
5235         * modules/ceill (configure.ac): ... to here.
5236
5237 2011-05-21  Bruno Haible  <bruno@clisp.org>
5238
5239         ceil: Move AC_LIBOBJ invocations to module description.
5240         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
5241         * modules/ceil (configure.ac): ... to here.
5242
5243 2011-05-21  Bruno Haible  <bruno@clisp.org>
5244
5245         ceilf: Move AC_LIBOBJ invocations to module description.
5246         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
5247         * modules/ceilf (configure.ac): ... to here.
5248
5249 2011-05-21  Bruno Haible  <bruno@clisp.org>
5250
5251         floorl: Respect rules for use of AC_LIBOBJ.
5252         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
5253         * modules/floorl (configure.ac): ... to here.
5254
5255 2011-05-21  Bruno Haible  <bruno@clisp.org>
5256
5257         floor: Respect rules for use of AC_LIBOBJ.
5258         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
5259         * modules/floor (configure.ac): ... to here.
5260
5261 2011-05-21  Bruno Haible  <bruno@clisp.org>
5262
5263         floorf: Move AC_LIBOBJ invocations to module description.
5264         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
5265         * modules/floorf (configure.ac): ... to here.
5266
5267 2011-05-20  Bruno Haible  <bruno@clisp.org>
5268
5269         sqrtl: Respect rules for use of AC_LIBOBJ.
5270         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
5271         * modules/sqrtl (configure.ac): ... to here.
5272
5273 2011-05-20  Bruno Haible  <bruno@clisp.org>
5274
5275         ldexpl: Respect rules for use of AC_LIBOBJ.
5276         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
5277         * modules/ldexpl (configure.ac): ... to here.
5278
5279 2011-05-20  Bruno Haible  <bruno@clisp.org>
5280
5281         frexpl*: Respect rules for use of AC_LIBOBJ.
5282         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
5283         invocation from here...
5284         * modules/frexpl (configure.ac): ... to here.
5285         * modules/frexpl-nolibm (configure.ac): ... and here.
5286
5287 2011-05-20  Bruno Haible  <bruno@clisp.org>
5288
5289         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
5290         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
5291         invocation from here...
5292         * modules/frexp (configure.ac): ... to here.
5293         * modules/frexp-nolibm (configure.ac): ... and here.
5294
5295 2011-05-20  Bruno Haible  <bruno@clisp.org>
5296
5297         isnan: Respect rules for use of AC_LIBOBJ.
5298         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
5299         invocations here.
5300         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
5301         REPLACE_ISNAN.
5302         * modules/isnand (configure.ac): Likewise.
5303         * modules/isnanl (configure.ac): Likewise.
5304
5305 2011-05-20  Bruno Haible  <bruno@clisp.org>
5306
5307         isnanl*: Respect rules for use of AC_LIBOBJ.
5308         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
5309         invocation from here...
5310         * modules/isnanl (configure.ac): ... to here.
5311         * modules/isnanl-nolibm (configure.ac): ... and here.
5312
5313 2011-05-20  Bruno Haible  <bruno@clisp.org>
5314
5315         isnand*: Move AC_LIBOBJ invocations to module description.
5316         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
5317         invocation from here...
5318         * modules/isnand (configure.ac): ... to here.
5319         * modules/isnand-nolibm (configure.ac): ... and here.
5320
5321 2011-05-20  Bruno Haible  <bruno@clisp.org>
5322
5323         isnanf*: Move AC_LIBOBJ invocations to module description.
5324         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
5325         invocation from here...
5326         * modules/isnanf (configure.ac): ... to here.
5327         * modules/isnanf-nolibm (configure.ac): ... and here.
5328
5329 2011-05-20  Bruno Haible  <bruno@clisp.org>
5330
5331         isnan*: Separate the AC_LIBOBJ invocations.
5332         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
5333         AC_LIBOBJ invocation.
5334         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
5335         here.
5336         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
5337         AC_LIBOBJ invocation.
5338         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
5339         here.
5340         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
5341         AC_LIBOBJ invocation.
5342         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
5343         here.
5344         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
5345
5346 2011-05-08  Bruno Haible  <bruno@clisp.org>
5347
5348         isinf: Move AC_LIBOBJ invocations to module description.
5349         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
5350         * modules/isinf (configure.ac): ... to here.
5351
5352 2011-05-08  Bruno Haible  <bruno@clisp.org>
5353
5354         isfinite: Move AC_LIBOBJ invocations to module description.
5355         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
5356         * modules/isfinite (configure.ac): ... to here.
5357
5358 2011-05-08  Bruno Haible  <bruno@clisp.org>
5359
5360         isblank: Move AC_LIBOBJ invocations to module description.
5361         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
5362         here...
5363         * modules/isblank (configure.ac): ... to here.
5364
5365 2011-05-08  Bruno Haible  <bruno@clisp.org>
5366
5367         isapipe: Move AC_LIBOBJ invocations to module description.
5368         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
5369         gl_PREREQ_ISAPIPE invocations from here...
5370         * modules/isapipe (configure.ac): ... to here.
5371         (Depends-on): Update condition.
5372
5373 2011-05-08  Bruno Haible  <bruno@clisp.org>
5374
5375         ioctl: Move AC_LIBOBJ invocations to module description.
5376         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
5377         invocations from here...
5378         * modules/ioctl (configure.ac): ... to here.
5379         (Depends-on): Update condition.
5380
5381 2011-05-08  Bruno Haible  <bruno@clisp.org>
5382
5383         imaxdiv: Move AC_LIBOBJ invocations to module description.
5384         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
5385         invocations from here...
5386         * modules/imaxdiv (configure.ac): ... to here.
5387
5388 2011-05-08  Bruno Haible  <bruno@clisp.org>
5389
5390         imaxabs: Move AC_LIBOBJ invocations to module description.
5391         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
5392         invocations from here...
5393         * modules/imaxabs (configure.ac): ... to here.
5394
5395 2011-05-08  Bruno Haible  <bruno@clisp.org>
5396
5397         getaddrinfo: Move AC_LIBOBJ invocations to module description.
5398         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
5399         AC_LIBOBJ invocations from here...
5400         * modules/getaddrinfo (configure.ac): ... to here.
5401         (Depends-on): Add conditions.
5402
5403 2011-05-08  Bruno Haible  <bruno@clisp.org>
5404
5405         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
5406         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
5407         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
5408         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
5409         (gl_PREREQ_INET_PTON): ... from here.
5410         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
5411         gl_PREREQ_INET_PTON here.
5412         (Depends-on): Update condition.
5413
5414 2011-05-08  Bruno Haible  <bruno@clisp.org>
5415
5416         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
5417         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
5418         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
5419         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
5420         (gl_PREREQ_INET_NTOP): ... from here.
5421         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
5422         gl_PREREQ_INET_NTOP here.
5423         (Depends-on): Update condition.
5424
5425 2011-05-08  Bruno Haible  <bruno@clisp.org>
5426
5427         iconv_open: Move AC_LIBOBJ invocations to module description.
5428         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
5429         AC_LIBOBJ invocations from here...
5430         * modules/iconv_open (configure.ac): ... to here.
5431
5432 2011-05-08  Bruno Haible  <bruno@clisp.org>
5433
5434         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
5435         If module 'iconv_open' is among the main modules and module
5436         'iconv_open-utf' is among the tests dependencies, then
5437         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
5438         return the special iconv_t values. Therefore iconv() and iconv_close()
5439         must support these special iconv_t values, already in lib, not only in
5440         tests.
5441         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
5442         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
5443         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
5444         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
5445         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
5446         (Depends-on): Add the dependencies of iconv_open-utf.
5447         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
5448         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
5449         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
5450
5451 2011-05-08  Bruno Haible  <bruno@clisp.org>
5452
5453         group-member: Move AC_LIBOBJ invocations to module description.
5454         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
5455         gl_PREREQ_GROUP_MEMBER invocations from here...
5456         * modules/group-member (configure.ac): ... to here.
5457
5458 2011-05-08  Bruno Haible  <bruno@clisp.org>
5459
5460         grantpt: Move AC_LIBOBJ invocations to module description.
5461         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
5462         invocations from here...
5463         * modules/grantpt (configure.ac): ... to here.
5464
5465 2011-05-08  Bruno Haible  <bruno@clisp.org>
5466
5467         glob: Move AC_LIBOBJ invocations to module description.
5468         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
5469         from here...
5470         * modules/glob (configure.ac): ... to here.
5471
5472 2011-05-08  Bruno Haible  <bruno@clisp.org>
5473
5474         getusershell: Move AC_LIBOBJ invocations to module description.
5475         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
5476         Move AC_LIBOBJ invocation from here...
5477         * modules/getusershell (configure.ac): ... to here.
5478         (Depends-on): Update condition.
5479
5480 2011-05-08  Bruno Haible  <bruno@clisp.org>
5481
5482         gettimeofday: Move AC_LIBOBJ invocations to module description.
5483         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
5484         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
5485         gl_PREREQ_GETTIMEOFDAY invocations from here...
5486         * modules/gettimeofday (configure.ac): ... to here.
5487
5488 2011-05-08  Bruno Haible  <bruno@clisp.org>
5489
5490         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
5491         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
5492         just gl_FUNC_TZSET.
5493         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
5494         (gl_FUNC_TZSET_CLOBBER): Remove actions.
5495         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
5496         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
5497
5498 2011-05-08  Bruno Haible  <bruno@clisp.org>
5499
5500         getsubopt: Move AC_LIBOBJ invocations to module description.
5501         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
5502         gl_PREREQ_GETSUBOPT invocations from here...
5503         * modules/getsubopt (configure.ac): ... to here.
5504
5505 2011-05-08  Bruno Haible  <bruno@clisp.org>
5506
5507         getpass-gnu: Move AC_LIBOBJ invocations to module description.
5508         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
5509         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
5510         * modules/getpass-gnu (configure.ac): ... to here.
5511
5512 2011-05-08  Bruno Haible  <bruno@clisp.org>
5513
5514         getpass: Move AC_LIBOBJ invocations to module description.
5515         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
5516         gl_PREREQ_GETPASS invocations from here...
5517         * modules/getpass (configure.ac): ... to here.
5518
5519 2011-05-08  Bruno Haible  <bruno@clisp.org>
5520
5521         getpagesize: Move AC_LIBOBJ invocations to module description.
5522         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
5523         from here...
5524         * modules/getpagesize (configure.ac): ... to here.
5525
5526 2011-05-08  Bruno Haible  <bruno@clisp.org>
5527
5528         getopt: Move AC_LIBOBJ invocations to module description.
5529         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
5530         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
5531         invocations from here...
5532         * modules/getopt-gnu (configure.ac): ... to here.
5533         * modules/getopt-posix (configure.ac): ... and here.
5534         (Depends-on): Update condition.
5535
5536 2011-05-08  Bruno Haible  <bruno@clisp.org>
5537
5538         getopt, argp: Respect rules for use of AC_LIBOBJ.
5539         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
5540         (gl_REPLACE_GETOPT_ALWAYS): New macro.
5541         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
5542         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
5543
5544 2011-05-08  Bruno Haible  <bruno@clisp.org>
5545
5546         getlogin_r: Move AC_LIBOBJ invocations to module description.
5547         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
5548         gl_PREREQ_GETLOGIN_R invocations from here...
5549         * modules/getlogin_r (configure.ac): ... to here.
5550
5551 2011-05-08  Bruno Haible  <bruno@clisp.org>
5552
5553         getlogin: Move AC_LIBOBJ invocations to module description.
5554         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
5555         here...
5556         * modules/getlogin (configure.ac): ... to here.
5557
5558 2011-05-08  Bruno Haible  <bruno@clisp.org>
5559
5560         getloadavg: Move AC_LIBOBJ invocations to module description.
5561         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
5562         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
5563         * modules/getloadavg (configure.ac): ... to here.
5564
5565 2011-05-08  Bruno Haible  <bruno@clisp.org>
5566
5567         gethrxtime: Move AC_LIBOBJ invocations to module description.
5568         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
5569         LIB_GETHRXTIME from here...
5570         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
5571         invocations from here...
5572         * modules/gethrxtime (configure.ac): ... to here.
5573
5574 2011-05-08  Bruno Haible  <bruno@clisp.org>
5575
5576         gethostname: Move AC_LIBOBJ invocations to module description.
5577         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
5578         gl_PREREQ_GETHOSTNAME invocations from here...
5579         * modules/gethostname (configure.ac): ... to here.
5580
5581 2011-05-08  Bruno Haible  <bruno@clisp.org>
5582
5583         getgroups: Move AC_LIBOBJ invocations to module description.
5584         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
5585         here...
5586         * modules/getgroups (configure.ac): ... to here.
5587
5588 2011-05-08  Bruno Haible  <bruno@clisp.org>
5589
5590         getdtablesize: Move AC_LIBOBJ invocations to module description.
5591         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
5592         invocation from here...
5593         * modules/getdtablesize (configure.ac): ... to here.
5594
5595 2011-05-08  Bruno Haible  <bruno@clisp.org>
5596
5597         getdomainname: Move AC_LIBOBJ invocations to module description.
5598         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
5599         gl_PREREQ_GETDOMAINNAME invocations from here...
5600         * modules/getdomainname (configure.ac): ... to here.
5601
5602 2011-05-08  Bruno Haible  <bruno@clisp.org>
5603
5604         getline: Move AC_LIBOBJ invocations to module description.
5605         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
5606         invocations from here...
5607         * modules/getline (configure.ac): ... to here.
5608
5609 2011-05-08  Bruno Haible  <bruno@clisp.org>
5610
5611         getline: Simplify.
5612         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
5613         It's already handled through the module dependency.
5614
5615 2011-05-08  Bruno Haible  <bruno@clisp.org>
5616
5617         getdelim: Move AC_LIBOBJ invocations to module description.
5618         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
5619         and gl_PREREQ_GETDELIM invocations from here...
5620         * modules/getdelim (configure.ac): ... to here.
5621         (Depends-on): Fix condition.
5622
5623 2011-05-08  Bruno Haible  <bruno@clisp.org>
5624
5625         getcwd: Move AC_LIBOBJ invocations to module description.
5626         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
5627         invocations from here...
5628         * modules/getcwd (configure.ac): ... to here.
5629
5630 2011-05-08  Bruno Haible  <bruno@clisp.org>
5631
5632         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
5633         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
5634         here...
5635         * modules/getcwd-lgpl (configure.ac): ... to here.
5636
5637 2011-05-07  Bruno Haible  <bruno@clisp.org>
5638
5639         crypto/gc: Move AC_LIBOBJ invocations to module description.
5640         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
5641         * modules/crypto/gc (configure.ac): ... to here.
5642
5643 2011-05-07  Bruno Haible  <bruno@clisp.org>
5644
5645         fwriting: Move AC_LIBOBJ invocations to module description.
5646         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
5647         here...
5648         * modules/fwriting (configure.ac): ... to here.
5649
5650 2011-05-07  Bruno Haible  <bruno@clisp.org>
5651
5652         fwritable: Move AC_LIBOBJ invocations to module description.
5653         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
5654         here...
5655         * modules/fwritable (configure.ac): ... to here.
5656
5657 2011-05-07  Bruno Haible  <bruno@clisp.org>
5658
5659         futimens: Move AC_LIBOBJ invocations to module description.
5660         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
5661         here...
5662         * modules/futimens (configure.ac): ... to here.
5663
5664 2011-05-07  Bruno Haible  <bruno@clisp.org>
5665
5666         ftruncate: Move AC_LIBOBJ invocations to module description.
5667         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
5668         gl_PREREQ_FTRUNCATE invocations from here...
5669         * modules/ftruncate (configure.ac): ... to here.
5670
5671 2011-05-07  Bruno Haible  <bruno@clisp.org>
5672
5673         fsync: Move AC_LIBOBJ invocations to module description.
5674         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
5675         invocations from here...
5676         * modules/fsync (configure.ac): ... to here.
5677
5678 2011-05-07  Bruno Haible  <bruno@clisp.org>
5679
5680         fsusage: Move AC_LIBOBJ invocations to module description.
5681         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
5682         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
5683         * modules/fsusage (configure.ac): ... to here.
5684
5685 2011-05-07  Bruno Haible  <bruno@clisp.org>
5686
5687         freopen: Move AC_LIBOBJ invocations to module description.
5688         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
5689         invocations from here...
5690         * modules/freopen (configure.ac): ... to here.
5691
5692 2011-05-07  Bruno Haible  <bruno@clisp.org>
5693
5694         free: Move AC_LIBOBJ invocations to module description.
5695         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
5696         invocations from here...
5697         * modules/free (configure.ac): ... to here.
5698
5699 2011-05-07  Bruno Haible  <bruno@clisp.org>
5700
5701         freadable: Move AC_LIBOBJ invocations to module description.
5702         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
5703         here...
5704         * modules/freadable (configure.ac): ... to here.
5705
5706 2011-05-07  Bruno Haible  <bruno@clisp.org>
5707
5708         fpurge: Move AC_LIBOBJ invocations to module description.
5709         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
5710         invocations from here...
5711         * modules/fpurge (configure.ac): ... to here.
5712
5713 2011-05-07  Bruno Haible  <bruno@clisp.org>
5714
5715         fpending: Move AC_LIBOBJ invocations to module description.
5716         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
5717         gl_FUNC_FPENDING.
5718         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
5719         invocations from here...
5720         * modules/fpending (configure.ac): ... to here.
5721
5722 2011-05-07  Bruno Haible  <bruno@clisp.org>
5723
5724         fopen: Move AC_LIBOBJ invocations to module description.
5725         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
5726         invocations from here...
5727         * modules/fopen (configure.ac): ... to here.
5728
5729 2011-05-07  Bruno Haible  <bruno@clisp.org>
5730
5731         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
5732         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
5733         gl_FUNC_FNMATCH_POSIX.
5734         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
5735         invocations from here...
5736         * modules/fnmatch (configure.ac): ... to here.
5737         * modules/fnmatch-gnu (configure.ac): ... and here.
5738
5739 2011-05-07  Bruno Haible  <bruno@clisp.org>
5740
5741         flock: Move AC_LIBOBJ invocations to module description.
5742         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
5743         invocations from here...
5744         * modules/flock (configure.ac): ... to here.
5745
5746 2011-05-07  Bruno Haible  <bruno@clisp.org>
5747
5748         fileblocks: Move AC_LIBOBJ invocations to module description.
5749         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
5750         gl_PREREQ_FILEBLOCKS invocations from here...
5751         * modules/fileblocks (configure.ac): ... to here.
5752
5753 2011-05-06  Bruno Haible  <bruno@clisp.org>
5754
5755         fflush: Move AC_LIBOBJ invocations to module description.
5756         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
5757         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
5758         invocations from here...
5759         * modules/fflush (configure.ac): ... to here.
5760
5761 2011-05-06  Bruno Haible  <bruno@clisp.org>
5762
5763         fdopendir: Move AC_LIBOBJ invocations to module description.
5764         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
5765         here...
5766         * modules/fdopendir (configure.ac): ... to here.
5767         (Depends-on): Improve conditions.
5768
5769 2011-05-06  Bruno Haible  <bruno@clisp.org>
5770
5771         _Exit: Move AC_LIBOBJ invocations to module description.
5772         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
5773         invocations from here...
5774         * modules/_Exit (configure.ac): ... to here.
5775
5776 2011-05-21  Bruno Haible  <bruno@clisp.org>
5777
5778         euidaccess: Respect rules for use of AC_LIBOBJ.
5779         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
5780         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
5781         from here...
5782         * modules/euidaccess (configure.ac): ... to here.
5783
5784 2011-05-06  Bruno Haible  <bruno@clisp.org>
5785
5786         error: Move AC_LIBOBJ invocations to module description.
5787         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
5788         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
5789         invocations from here...
5790         * modules/error (configure.ac): ... to here.
5791
5792 2011-05-06  Bruno Haible  <bruno@clisp.org>
5793
5794         duplocale: Move AC_LIBOBJ invocations to module description.
5795         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
5796         gl_PREREQ_DUPLOCALE invocations from here...
5797         * modules/duplocale (configure.ac): ... to here.
5798
5799 2011-05-05  Bruno Haible  <bruno@clisp.org>
5800
5801         dirfd: Move AC_LIBOBJ invocations to module description.
5802         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
5803         gl_FUNC_DIRFD.
5804         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
5805         here...
5806         * modules/dirfd (configure.ac): ... to here.
5807         (Depends-on): Fix condition.
5808
5809 2011-05-05  Bruno Haible  <bruno@clisp.org>
5810
5811         chown: Respect rules for use of AC_LIBOBJ.
5812         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
5813         * modules/chown (configure.ac): ... to here.
5814
5815 2011-05-05  Bruno Haible  <bruno@clisp.org>
5816
5817         chdir-long: Move AC_LIBOBJ invocations to module description.
5818         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
5819         gl_PREREQ_CHDIR_LONG invocations from here...
5820         * modules/chdir-long (configure.ac): ... to here.
5821
5822 2011-05-05  Bruno Haible  <bruno@clisp.org>
5823
5824         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
5825         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
5826         from here...
5827         * modules/canonicalize-lgpl (configure.ac): ... to here.
5828
5829 2011-05-05  Bruno Haible  <bruno@clisp.org>
5830
5831         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
5832         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
5833         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
5834         REPLACE_CALLOC.
5835         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
5836         * modules/calloc-gnu (configure.ac): Likewise.
5837
5838 2011-05-05  Bruno Haible  <bruno@clisp.org>
5839
5840         btowc: Move AC_LIBOBJ invocations to module description.
5841         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
5842         invocations from here...
5843         * modules/btowc (configure.ac): ... to here.
5844
5845 2011-05-21  Bruno Haible  <bruno@clisp.org>
5846
5847         atexit: Move AC_LIBOBJ invocations to module description.
5848         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
5849         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
5850         here...
5851         * modules/atexit (configure.ac): ... to here.
5852
5853 2011-05-05  Bruno Haible  <bruno@clisp.org>
5854
5855         atoll: Move AC_LIBOBJ invocations to module description.
5856         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
5857         invocations from here...
5858         * modules/atoll (configure.ac): ... to here.
5859
5860 2011-05-05  Bruno Haible  <bruno@clisp.org>
5861
5862         argz: Move AC_LIBOBJ invocations to module description.
5863         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
5864         * modules/argz (configure.ac): ... to here.
5865
5866 2011-05-05  Bruno Haible  <bruno@clisp.org>
5867
5868         alphasort: Move AC_LIBOBJ invocations to module description.
5869         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
5870         gl_PREREQ_ALPHASORT invocations from here...
5871         * modules/alphasort (configure.ac): ... to here.
5872
5873 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
5874
5875         verify: new macro verify_expr; verify_true deprecated
5876         * NEWS: Mention this.
5877         * doc/verify.texi (Compile-time Assertions): Document this.
5878         * lib/verify.h (verify_true): Deprecate.
5879         (verify_expr): New macro.
5880         * tests/test-verify.c (function): Test verify_expr.
5881
5882 2011-06-14  Jim Meyering  <meyering@redhat.com>
5883
5884         init.sh: give more portable redirection-related advice in a comment
5885         * tests/init.sh (stderr_fileno_): Update the advice in comments.
5886         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
5887         for lots of discussion.  Stefano Lattarini suggested the solution
5888         of putting "9>&2" after the command.  Reported by Bruno Haible.
5889
5890 2011-06-13  Bruno Haible  <bruno@clisp.org>
5891
5892         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
5893         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
5894         'none'.
5895
5896 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
5897
5898         ftoastr: use strtof only if HAVE_STRTOF
5899         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
5900         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
5901         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
5902         * modules/ftoastr (configure.ac): Check for strtof.
5903
5904 2011-06-13  Bruno Haible  <bruno@clisp.org>
5905
5906         gnulib-tool: Addendum to 2011-06-08 commit.
5907         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
5908         and --witness-c-macro have been given, augment AM_CPPFLAGS.
5909
5910 2011-06-13  Bruno Haible  <bruno@clisp.org>
5911
5912         fseeko: Provide a non-inline replacement of fseek().
5913         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
5914         * modules/fseeko (Depends-on): Add fseek.
5915         * modules/fseek (License): Change to LGPLv2+.
5916
5917 2011-06-13  Bruno Haible  <bruno@clisp.org>
5918
5919         ftello: Provide a non-inline replacement of ftell().
5920         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
5921         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
5922         not have ftello() (such as on mingw).
5923         * modules/ftello (Depends-on): Add ftell.
5924         * modules/ftell (License): Change to LGPLv2+.
5925
5926 2011-05-07  Bruno Haible  <bruno@clisp.org>
5927
5928         ftell: Move AC_LIBOBJ invocations to module description.
5929         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
5930         * modules/ftell (configure.ac): ... to here.
5931
5932 2011-05-07  Bruno Haible  <bruno@clisp.org>
5933
5934         ftello: Respect rules for use of AC_LIBOBJ.
5935         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
5936         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
5937         here...
5938         * modules/ftello (configure.ac): ... to here.
5939
5940 2011-05-07  Bruno Haible  <bruno@clisp.org>
5941
5942         fseeko: Simplify.
5943         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
5944         (gl_FUNC_FSEEKO): Inline it here.
5945
5946 2011-05-07  Bruno Haible  <bruno@clisp.org>
5947
5948         fseek: Move AC_LIBOBJ invocations to module description.
5949         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
5950         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
5951         * modules/fseek (configure.ac): ... to here.
5952
5953 2011-05-07  Bruno Haible  <bruno@clisp.org>
5954
5955         fseek: Respect rules for use of AC_LIBOBJ.
5956         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
5957         here...
5958         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
5959
5960 2011-05-07  Bruno Haible  <bruno@clisp.org>
5961
5962         fseeko: Respect rules for use of AC_LIBOBJ.
5963         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
5964         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
5965         here...
5966         * modules/fseeko (configure.ac): ... to here.
5967
5968 2011-06-13  Bruno Haible  <bruno@clisp.org>
5969
5970         gnulib-tool: Allow comments in the 'Depends-on' section.
5971         * doc/gnulib.texi (Module description): Mention comment syntax in the
5972         Depends-on section.
5973         * gnulib-tool (func_get_dependencies): Filter out comment lines.
5974
5975 2011-06-13  Bruno Haible  <bruno@clisp.org>
5976
5977         file-set.h: guard __attibute__ use, now that it's not always defined
5978         * lib/file-set.h (record_file): Use __attribute__ only with compiler
5979         versions that support it.  This fixes a coreutils build failure with
5980         the vendor cc on HP-UX 11.31.
5981
5982 2011-06-12  Bruno Haible  <bruno@clisp.org>
5983
5984         acl: Add support for HP-UX >= 11.11 JFS ACLs.
5985         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
5986         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
5987         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
5988         (acl, aclsort): New declarations.
5989         (aclv_nontrivial): New declaration.
5990         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
5991         (file_has_acl): Read also the second kind of HP-UX ACLs.
5992         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
5993         kind of HP-UX ACLs if the first kind fails.
5994         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
5995         second kind of HP-UX ACLs.
5996         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
5997         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
5998         agree.
5999         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
6000         hpuxjfs.
6001         Handle hpuxjfs.
6002         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
6003         hpuxjfs.
6004         Handle hpuxjfs.
6005         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
6006         (func_test_same_acls): Use both lsacl and getacl.
6007         Handle hpuxjfs.
6008         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
6009         (func_test_same_acls): Use both lsacl and getacl.
6010         Handle hpuxjfs.
6011
6012 2011-06-12  Bruno Haible  <bruno@clisp.org>
6013
6014         acl: Complete the 2010-08-10 fix.
6015         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
6016         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
6017         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
6018         explicitly.
6019         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
6020         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
6021
6022 2011-06-12  Bruno Haible  <bruno@clisp.org>
6023
6024         spawn-pipe tests: Comments.
6025         * tests/test-spawn-pipe-child.c (main): Update comment.
6026         Reported by James Youngman <jay@gnu.org>.
6027
6028 2011-06-11  James Youngman  <jay@gnu.org>
6029
6030         New module 'stat-size'.
6031         * modules/stat-size: New module.  Provides macros for accessing
6032         file size information in instances of struct stat.  Depends on the
6033         fileblocks module because it calls st_blocks.
6034         * lib/stat-size.h: New file, adapted from coreutils' system.h.
6035         * doc/gnulib.texi: Include stat-size.texi.
6036         * doc/stat-size.texi: Documentation for this module.
6037         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
6038         * m4/fileblocks.m4: Mention that stat-size depends on the call to
6039         AC_STRUCT_ST_BLOCKS.
6040
6041 2011-06-09  Bruno Haible  <bruno@clisp.org>
6042
6043         thread: Support pthreads-win32.
6044         * lib/glthread/thread.h (gl_thread_self): Define differently on
6045         pthreads-win32.
6046         (gl_null_thread): New declaration.
6047         (gl_thread_self_pointer): New macro.
6048         * lib/glthread/thread.c (gl_null_thread): New constant.
6049         * tests/test-lock.c: Use gl_thread_self_pointer instead of
6050         gl_thread_self.
6051         * tests/test-tls.c: Likewise.
6052         Suggested by Paul Eggert. Reported by Eric Blake.
6053
6054 2011-06-09  Bruno Haible  <bruno@clisp.org>
6055
6056         thread: Fix confusion between NULL and 0.
6057         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
6058         Reported by Paul Eggert.
6059
6060 2011-06-09  Bruno Haible  <bruno@clisp.org>
6061
6062         spawn-pipe tests: Avoid test failure on HP-UX 11.
6063         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
6064         is closed.
6065
6066 2011-06-09  Bruno Haible  <bruno@clisp.org>
6067
6068         acl tests: Fix compilation error on HP-UX 11.
6069         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
6070
6071 2011-06-09  Bruno Haible  <bruno@clisp.org>
6072
6073         rmdir: Avoid test failure on HP-UX 10.20.
6074         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
6075         EEXIST.
6076
6077 2011-06-08  Eric Blake  <eblake@redhat.com>
6078
6079         perror: fix test on mingw
6080         * modules/perror-tests (Depends-on): Add dup2.
6081
6082         strerror_r-posix: fix on MacOS
6083         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
6084         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
6085         logic bug.
6086         * lib/strerror_r.c (strerror_r): Fix the bug.
6087         * lib/strerror.c (strerror): Likewise.
6088         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
6089         problem.
6090         * doc/posix-functions/strerror.texi (strerror): Likewise.
6091         * doc/posix-functions/perror.texi (perror): Likewise.
6092         * tests/test-strerror.c (main): Enhance test.
6093         * tests/test-strerror_r.c (main): Likewise.
6094
6095 2011-06-08  Bruno Haible  <bruno@clisp.org>
6096
6097         gnulib-tool: Better isolation between different gnulib-tool invocations.
6098         * gnulib-tool: New option --witness-c-macro.
6099         (witness_c_macro): New variable.
6100         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
6101         AM_CPPFLAGS define it as a C macro.
6102         (func_emit_tests_Makefile_am): Likewise.
6103         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
6104         read it from there.
6105         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
6106         m4_define, not AC_DEFUN.
6107         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
6108         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
6109         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
6110         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
6111         s|...|...|, to substitute the values of the GNULIB_* module indicator
6112         variables.
6113         * modules/dirent (Makefile.am): Likewise.
6114         * modules/fcntl-h (Makefile.am): Likewise.
6115         * modules/iconv-h (Makefile.am): Likewise.
6116         * modules/langinfo (Makefile.am): Likewise.
6117         * modules/locale (Makefile.am): Likewise.
6118         * modules/math (Makefile.am): Likewise.
6119         * modules/netdb (Makefile.am): Likewise.
6120         * modules/poll-h (Makefile.am): Likewise.
6121         * modules/pty (Makefile.am): Likewise.
6122         * modules/search (Makefile.am): Likewise.
6123         * modules/signal (Makefile.am): Likewise.
6124         * modules/spawn (Makefile.am): Likewise.
6125         * modules/stdio (Makefile.am): Likewise.
6126         * modules/stdlib (Makefile.am): Likewise.
6127         * modules/string (Makefile.am): Likewise.
6128         * modules/sys_ioctl (Makefile.am): Likewise.
6129         * modules/sys_select (Makefile.am): Likewise.
6130         * modules/sys_socket (Makefile.am): Likewise.
6131         * modules/sys_stat (Makefile.am): Likewise.
6132         * modules/sys_times (Makefile.am): Likewise.
6133         * modules/sys_utsname (Makefile.am): Likewise.
6134         * modules/sys_wait (Makefile.am): Likewise.
6135         * modules/termios (Makefile.am): Likewise.
6136         * modules/time (Makefile.am): Likewise.
6137         * modules/unistd (Makefile.am): Likewise.
6138         * modules/wchar (Makefile.am): Likewise.
6139
6140 2011-06-08  Eric Blake  <eblake@redhat.com>
6141
6142         strerror: simplify replacement
6143         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
6144         * modules/strerror (configure.ac): No prereqs needed here...
6145         * modules/strerror-override (configure.ac): ...but this needs it.
6146         (Files): Add file for needed prereq macro.
6147
6148 2011-06-08  Bruno Haible  <bruno@clisp.org>
6149
6150         strerror_r-posix: Tweaks.
6151         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
6152         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
6153         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
6154         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
6155         (gl_FUNC_STRERROR_R): ... to here.
6156         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
6157
6158 2011-06-07  Eric Blake  <eblake@redhat.com>
6159
6160         perror: document fixed bugs
6161         * doc/posix-functions/perror.texi (perror): Document recent
6162         patches.
6163
6164 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
6165
6166         stat-time: get_stat_birthtime failure is better-defined
6167         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
6168         return a timestamp whose tv_sec and tv_nsec values are both -1.
6169         Previously, the spec said only that the tv_nsec value was negative.
6170         This upward-compatible change simplifies GNU tar a bit.
6171
6172 2011-06-07  Eric Blake  <eblake@redhat.com>
6173
6174         strerror_r-posix: work around cygwin 1.7.9
6175         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
6176         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
6177         bug without replacing strerror_r.
6178         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
6179         strerror_r is buggy, but without requiring strerror_r compilation.
6180         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
6181
6182         test-perror: relax test to ignore cygwin bug
6183         * tests/test-perror2.c (main): Relax test on requiring detection
6184         of stream errors, and use unbuffered stream.
6185         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
6186         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
6187         * doc/posix-functions/fputc.texi (fputc): Likewise.
6188         * doc/posix-functions/fputs.texi (fputs): Likewise.
6189         * doc/posix-functions/fputws.texi (fputws): Likewise.
6190         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
6191         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
6192         * doc/posix-functions/getopt.texi (getopt): Likewise.
6193         * doc/posix-functions/perror.texi (perror): Likewise.
6194         * doc/posix-functions/printf.texi (printf): Likewise.
6195         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
6196         * doc/posix-functions/psignal.texi (psignal): Likewise.
6197         * doc/posix-functions/putc.texi (putc): Likewise.
6198         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
6199         Likewise.
6200         * doc/posix-functions/putchar.texi (putchar): Likewise.
6201         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
6202         Likewise.
6203         * doc/posix-functions/puts.texi (puts): Likewise.
6204         * doc/posix-functions/putwc.texi (putwc): Likewise.
6205         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
6206         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
6207         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
6208         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
6209         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6210         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
6211         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
6212         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
6213
6214 2011-05-22  Bruno Haible  <bruno@clisp.org>
6215
6216         strerror: Move AC_LIBOBJ invocations to module description.
6217         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
6218         gl_PREREQ_STRERROR invocations from here...
6219         * modules/strerror (configure.ac): ... to here.
6220
6221 2011-05-21  Bruno Haible  <bruno@clisp.org>
6222
6223         perror: Use common idiom.
6224         * modules/perror (configure.ac): Reorder statements.
6225
6226 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
6227
6228         tests: fix usage message in 'mktempd_'
6229         * tests/init.sh (mktempd_): In the usage message, use literal
6230         'mktempd_', not '$ME' (which is even undefined), as the name of
6231         the subroutine.
6232
6233 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
6234
6235         tests init: new function 'fatal_', for hard errors
6236         Before this patch, the only way offered by tests/init.sh to
6237         properly signal a hard error was the `framework_failure_'
6238         function.  But the error message issued by that function,
6239         as its name would suggest, refers to a set-up failure in the
6240         testsuite, while hard errors can obviously also be due to
6241         other reasons.  The best way to fix this inconsistency is to
6242         introduce a new function with a more general error message.
6243         * tests/init.sh (fatal_): New function.
6244
6245 2011-06-06  Eric Blake  <eblake@redhat.com>
6246
6247         canonicalize-lgpl: use common idiom
6248         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
6249         over newer POSIX -Rf.
6250         Reported by Bruno Haible.
6251
6252         canonicalize-lgpl: work around AIX realpath bug
6253         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
6254         * doc/posix-functions/realpath.texi (realpath): Document it.
6255         Reported by Bruno Haible.
6256
6257         strerror: work around FreeBSD bug
6258         * lib/strerror.c (strerror): Special case 0.
6259         Reported by Bruno Haible.
6260
6261         strerror-override: avoid bloating errno module
6262         * modules/errno (Files, configure.ac): Move replacement strings...
6263         * modules/strerror-override: ...to new module.
6264         * modules/strerror (Depends-on): Add strerror-override.
6265         * modules/strerror_r-posix (Depends-on): Likewise.
6266         * MODULES.html.sh: Document new module.
6267         Reported by Bruno Haible.
6268
6269 2011-06-06  Bruno Haible  <bruno@clisp.org>
6270
6271         spawn-pipe tests: Rename program.
6272         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
6273         * tests/test-spawn-pipe-child.c: Update comment.
6274         * tests/test-spawn-pipe.sh: Update.
6275         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
6276
6277         spawn-pipe tests: Link the child program only against libc.
6278         * tests/test-spawn-pipe-child.c: New file, extracted from
6279         tests/test-spawn-pipe.c.
6280         (main): Expect only one argument.
6281         (is_open): New function, copied from tests/test-pipe.c.
6282         * tests/test-spawn-pipe.c: Don't include <errno.h>.
6283         (child_main): Remove function.
6284         (test_pipe): Pass only one argument to the child program.
6285         (main): Remove child process code. Expect the child program's name as
6286         first argument.
6287         * tests/test-spawn-pipe.sh: Pass the child program's name as first
6288         argument.
6289         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
6290         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
6291         test-spawn-pipe-child against no libraries.
6292
6293 2011-06-06  Bruno Haible  <bruno@clisp.org>
6294
6295         careadlinkat: Avoid mismatch between ssize_t and int.
6296         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
6297         * lib/careadlinkat.c (careadlinkatcwd): Define always.
6298
6299 2011-06-06  Jim Meyering  <meyering@redhat.com>
6300
6301         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
6302         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
6303         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
6304
6305 2011-06-05  Bruno Haible  <bruno@clisp.org>
6306
6307         ansi-c++-opt: Interoperability with libtool.
6308         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
6309         set the variable to "no", not to ":".
6310         * NEWS: Mention the change.
6311
6312 2011-06-05  Bruno Haible  <bruno@clisp.org>
6313
6314         acl: Fix test failure on AIX 7.
6315         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
6316         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
6317
6318 2011-06-05  Bruno Haible  <bruno@clisp.org>
6319
6320         pipe-filter-ii: Fix test failure on AIX and IRIX.
6321         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
6322         with EAGAIN, retry with a smaller buffer size.
6323
6324 2011-06-05  Bruno Haible  <bruno@clisp.org>
6325
6326         localename: Fix link dependencies.
6327         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
6328         * modules/localename-tests (Makefile.am): Link test-localename with
6329         $(LIBTHREAD).
6330
6331 2011-06-05  Bruno Haible  <bruno@clisp.org>
6332
6333         error: Avoid gcc warning.
6334         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
6335
6336 2011-06-05  Bruno Haible  <bruno@clisp.org>
6337
6338         unsetenv: Avoid gcc warning.
6339         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
6340
6341 2011-06-05  Bruno Haible  <bruno@clisp.org>
6342
6343         setenv: Avoid gcc warning.
6344         * lib/setenv.c (setenv): Provide declaration if system lacks it.
6345
6346 2011-06-05  Bruno Haible  <bruno@clisp.org>
6347
6348         sys_select: Ensure memset is declared also on AIX 7.
6349         * lib/sys_select.in.h: Include <string.h> also on AIX.
6350         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
6351         self-contained also on AIX 7.1.
6352
6353 2011-06-04  Jim Meyering  <meyering@redhat.com>
6354
6355         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
6356         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
6357         function name, "error".
6358         (_gl_translatable_diag_func_re): New configurable variable.
6359
6360 2011-06-04  Bruno Haible  <bruno@clisp.org>
6361
6362         getopt: Avoid gcc warning.
6363         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
6364
6365 2011-06-04  Bruno Haible  <bruno@clisp.org>
6366
6367         strerror_r: Fix comments.
6368         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
6369         commit.
6370
6371 2011-06-04  Bruno Haible  <bruno@clisp.org>
6372
6373         perror: Fix compilation error.
6374         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
6375         Undefine fprintf, not sprintf.
6376         * modules/perror (Depends-on): Remove intprops, verify.
6377
6378 2011-06-04  Bruno Haible  <bruno@clisp.org>
6379
6380         setlocale: Enable replacement on Cygwin 1.5.
6381         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
6382         Cygwin 1.5.x.
6383         * doc/posix-functions/setlocale.texi: Mention that the problem with the
6384         LC_CTYPE category also exists on Cygwin 1.5.x.
6385
6386 2011-06-04  Bruno Haible  <bruno@clisp.org>
6387
6388         strerror-override: Don't disable symbol renamings.
6389         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
6390         * lib/strerror-override.c: Include config.h.
6391         (strerror_override): Don't undefine.
6392
6393 2011-06-03  Bruno Haible  <bruno@clisp.org>
6394
6395         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
6396         * lib/localename.h: Update copyright header.
6397         * lib/localename.c: Likewise.
6398         * lib/relocatable.h: Likewise.
6399         * lib/relocatable.c: Likewise.
6400
6401 2011-06-02  Bruno Haible  <bruno@clisp.org>
6402
6403         doc: Fix a module name.
6404         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
6405
6406 2011-06-02  Bruno Haible  <bruno@clisp.org>
6407
6408         pipe2: Remove dependency on 'nonblocking' module.
6409         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
6410         O_NONBLOCK is defined by gnulib.
6411         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
6412         is zero.
6413         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
6414         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
6415         defined by gnulib.
6416         (get_nonblocking_flag): New function.
6417         (main): Test O_NONBLOCK flag only if it is nonzero.
6418         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
6419
6420 2011-06-03  Jim Meyering  <meyering@redhat.com>
6421
6422         maint: three new prohibit-header-without-use rules
6423         Prohibit use of cloexec.h, posixver.h, same.h without use.
6424         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
6425         (sc_prohibit_posixver_without_use): Likewise.
6426         (sc_prohibit_same_without_use): Likewise.
6427
6428 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
6429
6430         allocator: 'die' routine is now given requested size
6431         * lib/allocator.h (struct allocator.die): New size arg.
6432         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
6433         If the actual problem is an ssize_t limitation, not a size_t or
6434         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
6435
6436 2011-06-01  Eric Blake  <eblake@redhat.com>
6437
6438         strerror: drop strerror_r dependency
6439         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
6440         * lib/strerror-override.c (strerror_override): ...to new file.
6441         * lib/strerror-override.h: Add prototype.
6442         * lib/strerror-impl.h: Delete.
6443         * lib/strerror.c (strerror): New implementation.
6444         * modules/errno (Files): Add new files.
6445         (configure.ac): Compile new file as appropriate.
6446         * modules/strerror (Files): Drop unused file.
6447         (Depends-on): Drop strerror_r-posix.
6448         * MODULES.html.sh: Document strerror_r-posix.
6449         Requested by Sam Steingold.
6450
6451         perror: call strerror_r directly
6452         * modules/perror (Files): Drop strerror-impl.h.
6453         * lib/perror.c (perror): Use our own stack buffer, rather than
6454         calling a wrapper that uses static storage.
6455         * doc/posix-functions/perror.texi (perror): Document a limitation
6456         of our replacement.
6457
6458         strerror_r: fix includes for FreeBSD
6459         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
6460         since we use abort on some platforms.
6461         Reported by Matthias Bolte.
6462
6463 2011-05-31  Bruno Haible  <bruno@clisp.org>
6464
6465         Fix link errors in tests: openat-die uses gettext-h.
6466         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
6467         against $(LIBINTL).
6468         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
6469         against $(LIBINTL).
6470         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
6471         $(LIBINTL).
6472         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
6473         against $(LIBINTL).
6474         * modules/linkat-tests (Makefile.am): Link test-linkat against
6475         $(LIBINTL).
6476         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
6477         $(LIBINTL).
6478         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
6479         against $(LIBINTL).
6480         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
6481         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
6482         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
6483         $(LIBINTL).
6484         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
6485         $(LIBINTL).
6486         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
6487         $(LIBINTL).
6488         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6489
6490 2011-05-31  Bruno Haible  <bruno@clisp.org>
6491
6492         Fix link errors in tests: wait-process uses gettext-h.
6493         * modules/nonblocking-pipe-tests (Makefile.am): Set
6494         test_nonblocking_pipe_main_LDADD.
6495         * modules/nonblocking-socket-tests (Makefile.am): Link
6496         test-nonblocking-socket-main against $(LIBINTL).
6497         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6498
6499 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
6500
6501         assert-h: work around 'verify' incompatibility
6502         * lib/verify.h: Use @...@ directives, not ifdef.
6503         * modules/assert-h (assert.h): Implement the directives.
6504         (assert.h): Substitute the symbol-prefix more consistently.
6505
6506 2011-05-29  Jim Meyering  <meyering@redhat.com>
6507
6508         trim: remove three superfluous assignments
6509         * lib/trim.c (trim2): Remove three superfluous assignments
6510         and correct brace positioning.
6511
6512 2011-05-29  Bruno Haible  <bruno@clisp.org>
6513
6514         wctype-h: Avoid namespace pollution on Solaris 2.6.
6515         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
6516         identifiers.
6517         * doc/posix-headers/wctype.texi: Mention the problem.
6518         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6519
6520 2011-05-28  Jim Meyering  <meyering@redhat.com>
6521
6522         parse-datetime.y: accommodate -Wstrict-overflow
6523         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
6524         placate -Wstrict-overflow.
6525
6526         trim: avoid a warning from -O2 -Wstrict-overflow
6527         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
6528
6529 2011-05-29  Bruno Haible  <bruno@clisp.org>
6530
6531         gnulib-tool: Fix bug in yesterday's commit.
6532         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
6533         twice.
6534
6535 2011-05-29  Bruno Haible  <bruno@clisp.org>
6536
6537         Allow multiple gnulib generated include files to be combined.
6538         * gnulib-tool (func_compute_include_guard_prefix): New function.
6539         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
6540         ${gl_include_guard_prefix} references.
6541         (func_import, func_create_testdir): Invoke
6542         func_compute_include_guard_prefix.
6543         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
6544         * lib/ctype.in.h: Likewise.
6545         * lib/dirent.in.h: Likewise.
6546         * lib/errno.in.h: Likewise.
6547         * lib/fcntl.in.h: Likewise.
6548         * lib/float.in.h: Likewise.
6549         * lib/getopt.in.h: Likewise.
6550         * lib/iconv.in.h: Likewise.
6551         * lib/langinfo.in.h: Likewise.
6552         * lib/locale.in.h: Likewise.
6553         * lib/math.in.h: Likewise.
6554         * lib/netdb.in.h: Likewise.
6555         * lib/netinet_in.in.h: Likewise.
6556         * lib/poll.in.h: Likewise.
6557         * lib/pthread.in.h: Likewise.
6558         * lib/pty.in.h: Likewise.
6559         * lib/sched.in.h: Likewise.
6560         * lib/se-selinux.in.h: Likewise.
6561         * lib/search.in.h: Likewise.
6562         * lib/signal.in.h: Likewise.
6563         * lib/spawn.in.h: Likewise.
6564         * lib/stdarg.in.h: Likewise.
6565         * lib/stddef.in.h: Likewise.
6566         * lib/stdint.in.h: Likewise.
6567         * lib/stdio.in.h: Likewise.
6568         * lib/stdlib.in.h: Likewise.
6569         * lib/string.in.h: Likewise.
6570         * lib/strings.in.h: Likewise.
6571         * lib/sys_file.in.h: Likewise.
6572         * lib/sys_ioctl.in.h: Likewise.
6573         * lib/sys_select.in.h: Likewise.
6574         * lib/sys_socket.in.h: Likewise.
6575         * lib/sys_stat.in.h: Likewise.
6576         * lib/sys_time.in.h: Likewise.
6577         * lib/sys_times.in.h: Likewise.
6578         * lib/sys_uio.in.h: Likewise.
6579         * lib/sys_utsname.in.h: Likewise.
6580         * lib/sys_wait.in.h: Likewise.
6581         * lib/sysexits.in.h: Likewise.
6582         * lib/termios.in.h: Likewise.
6583         * lib/time.in.h: Likewise.
6584         * lib/unistd.in.h: Likewise.
6585         * lib/wchar.in.h: Likewise.
6586         * lib/wctype.in.h: Likewise.
6587         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
6588         * modules/ctype (Makefile.am): Likewise.
6589         * modules/dirent (Makefile.am): Likewise.
6590         * modules/errno (Makefile.am): Likewise.
6591         * modules/fcntl-h (Makefile.am): Likewise.
6592         * modules/float (Makefile.am): Likewise.
6593         * modules/getopt-posix (Makefile.am): Likewise.
6594         * modules/iconv-h (Makefile.am): Likewise.
6595         * modules/langinfo (Makefile.am): Likewise.
6596         * modules/locale (Makefile.am): Likewise.
6597         * modules/math (Makefile.am): Likewise.
6598         * modules/netdb (Makefile.am): Likewise.
6599         * modules/netinet_in (Makefile.am): Likewise.
6600         * modules/poll-h (Makefile.am): Likewise.
6601         * modules/pthread (Makefile.am): Likewise.
6602         * modules/pty (Makefile.am): Likewise.
6603         * modules/sched (Makefile.am): Likewise.
6604         * modules/search (Makefile.am): Likewise.
6605         * modules/selinux-h (Makefile.am): Likewise.
6606         * modules/signal (Makefile.am): Likewise.
6607         * modules/spawn (Makefile.am): Likewise.
6608         * modules/stdarg (Makefile.am): Likewise.
6609         * modules/stddef (Makefile.am): Likewise.
6610         * modules/stdint (Makefile.am): Likewise.
6611         * modules/stdio (Makefile.am): Likewise.
6612         * modules/stdlib (Makefile.am): Likewise.
6613         * modules/string (Makefile.am): Likewise.
6614         * modules/strings (Makefile.am): Likewise.
6615         * modules/sys_file (Makefile.am): Likewise.
6616         * modules/sys_ioctl (Makefile.am): Likewise.
6617         * modules/sys_select (Makefile.am): Likewise.
6618         * modules/sys_socket (Makefile.am): Likewise.
6619         * modules/sys_stat (Makefile.am): Likewise.
6620         * modules/sys_time (Makefile.am): Likewise.
6621         * modules/sys_times (Makefile.am): Likewise.
6622         * modules/sys_uio (Makefile.am): Likewise.
6623         * modules/sys_utsname (Makefile.am): Likewise.
6624         * modules/sys_wait (Makefile.am): Likewise.
6625         * modules/sysexits (Makefile.am): Likewise.
6626         * modules/termios (Makefile.am): Likewise.
6627         * modules/time (Makefile.am): Likewise.
6628         * modules/unistd (Makefile.am): Likewise.
6629         * modules/wchar (Makefile.am): Likewise.
6630         * modules/wctype-h (Makefile.am): Likewise.
6631         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
6632
6633 2011-05-29  Bruno Haible  <bruno@clisp.org>
6634
6635         assert-h: Allow multiple gnulib generated replacements to coexist.
6636         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
6637
6638 2011-05-29  Bruno Haible  <bruno@clisp.org>
6639
6640         argp: Allow coexistence with strerror_r-posix module.
6641         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
6642         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
6643         by gnulib's <string.h> replacement), assume it has the POSIX signature,
6644         not the glibc signature.
6645
6646 2011-05-28  Bruno Haible  <bruno@clisp.org>
6647
6648         gnulib-tool: Alternative structure of testdirs, similar to --import.
6649         * gnulib-tool: New option --single-configure.
6650         (func_usage): Document it.
6651         (single_configure): New variable.
6652         (func_modules_transitive_closure_separately,
6653         func_modules_transitive_closure_separately,
6654         func_determine_use_libtests, func_modules_add_dummy_separately,
6655         func_modules_to_filelist_separately): New functions, extracted from
6656         func_import.
6657         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
6658         (func_import): Use the new functions.
6659         (func_create_testdir): Set final_modules. Handle $single_configure =
6660         true case.
6661
6662 2011-05-28  Bruno Haible  <bruno@clisp.org>
6663
6664         getloadavg: Remove an unreliable safety check.
6665         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
6666         getloadavg.c is in place.
6667         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
6668         Reported by Sam Steingold <sds@gnu.org>.
6669
6670 2011-05-28  Bruno Haible  <bruno@clisp.org>
6671
6672         doc: Cleanup yet another file produced by texinfo.tex.
6673         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
6674
6675 2011-05-28  Bruno Haible  <bruno@clisp.org>
6676
6677         Finish the conditional dependencies mechanism.
6678         * gnulib-tool: New option --no-conditional-dependencies.
6679         (func_usage): Document it. Don't mark --conditional-dependencies as
6680         experimental.
6681         (cond_dependencies): The possible values can now be true, false, empty.
6682         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
6683         (func_import): Store setting in gnulib-cache.m4 and read it from there.
6684         * doc/gnulib-tool.texi (Conditional dependencies): New section.
6685
6686 2011-05-28  Bruno Haible  <bruno@clisp.org>
6687
6688         doc: Use a recent texinfo.tex.
6689         * doc/Makefile (tex_opts): New variable.
6690         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
6691
6692 2011-05-28  Jim Meyering  <meyering@redhat.com>
6693
6694         intprops.h: adjust comment to match code change
6695         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
6696         only once, it *may* have side effects.  Also fix an unrelated typo.
6697         (_GL_INT_SIGNED): Likewise.
6698
6699 2011-05-26  Simon Josefsson  <simon@josefsson.org>
6700
6701         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
6702
6703 2011-05-26  Bruno Haible  <bruno@clisp.org>
6704
6705         mbsrchr: Avoid collision with system function on Interix.
6706         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
6707         Reported by Markus Duft <mduft@gentoo.org>.
6708
6709 2011-05-15  James Youngman  <jay@gnu.org>
6710
6711         getopt: for ambiguous options, enumerate the possibilities.
6712         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
6713         the ambiguous options when an ambiguous prefix is given. This was
6714         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
6715         glibc change was
6716         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
6717
6718 2011-05-25  Eric Blake  <eblake@redhat.com>
6719
6720         getcwd: work around mingw bug
6721         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
6722         * doc/posix-functions/getcwd.texi (getcwd): Document it.
6723         Reported by Matthias Bolte.
6724
6725 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
6726
6727         test-intprops: disable -Wtype-limits diagnostics
6728         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
6729         diagnostics.  Otherwise, the integer overflow macros generate many
6730         diagnostics.  Reported by Jim Meyering in
6731         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
6732
6733         intprops: shorten, to pacify gcc -Woverlength-strings
6734         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
6735         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
6736         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
6737         likely to run afoul of C compiler limits for string constant lengths.
6738         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
6739
6740 2011-05-24  Eric Blake  <eblake@redhat.com>
6741
6742         docs: document recently fixed glibc printf bug
6743         * doc/posix-functions/fprintf.texi (fprintf): Document it.
6744         * doc/posix-functions/printf.texi (printf): Likewise.
6745         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
6746         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6747
6748         closein-tests: convert to init.sh
6749         * modules/closein-tests (Files): Add init.sh
6750         * tests/test-closein.sh Use it.
6751
6752         yesno-tests: convert to init.sh
6753         * modules/yesno-tests (Files): Add init.sh.
6754         * tests/test-yesno.sh: Use it.
6755
6756         atexit-tests: ensure reliable exit status
6757         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
6758         Reported by Bruno Haible.
6759
6760 2011-05-24  Bruno Haible  <bruno@clisp.org>
6761
6762         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
6763         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
6764         gl_PREREQ_STRERROR_R invocations from here...
6765         * modules/strerror_r-posix (configure.ac): ... to here.
6766
6767 2011-05-24  Eric Blake  <eblake@redhat.com>
6768
6769         strerror_r: fix missing header
6770         * lib/strerror_r.c: Avoid compiler warning about snprintf.
6771
6772         strerror_r: fix AIX test failures
6773         * lib/strerror_r.c (strerror_r): Convert silent truncation to
6774         ERANGE failure.
6775
6776         strerror_r: fix Solaris test failures
6777         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
6778         failures.
6779         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6780
6781         strerror_r: enforce POSIX recommendations
6782         * lib/strerror_r.c (safe_copy): New helper method.
6783         (strerror_r): Guarantee a non-empty string.
6784         * tests/test-strerror_r.c (main): Enhance tests to incorporate
6785         recent POSIX rulings and to match our strerror guarantees.
6786         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6787
6788 2011-05-24  Jim Meyering  <meyering@redhat.com>
6789
6790         test-perror2.c: avoid warning about unused variable
6791         * tests/test-perror2.c (main): Remove declaration of unused "fp".
6792
6793 2011-05-24  Eric Blake  <eblake@redhat.com>
6794
6795         perror: avoid spurious test failure on HP-UX
6796         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
6797
6798         tests: fix logic bug in init.sh
6799         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
6800         shell.
6801
6802 2011-05-24  Jim Meyering  <meyering@redhat.com>
6803
6804         utimensat: do not reference an out-of-scope buffer
6805         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
6806         declared in an inner scope, yet "times" would be dereferenced outside
6807         the scope in which "ts" was valid.
6808         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
6809         of ts[2] "out/up", so that the use of aliased "times" (via
6810         "times = ts;") does not end up referencing an out-of-scope "ts"
6811
6812         opendir-safer.c: don't clobber errno; don't close negative FD
6813         * lib/opendir-safer.c (opendir_safer):
6814         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
6815         file descriptor, and more importantly, don't clobber the
6816         offending errno value with EINVAL.  Before, upon failure
6817         of dup_safer, we would pass the negative file descriptor to
6818         fdopendir, which would clobber errno.
6819
6820 2011-05-23  Bruno Haible  <bruno@clisp.org>
6821
6822         idcache: Fix module description.
6823         * modules/idcache (Include): Set to "idcache.h".
6824
6825 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6826
6827         gnulib-tool: fix portability problem with MacOS sed
6828         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
6829         before the "}".  Problem reported by Leo in
6830         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
6831         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
6832         sed_extract_condition1, sed_extract_condition2.
6833
6834 2011-05-23  Bruno Haible  <bruno@clisp.org>
6835
6836         hash: Simplify autoconf macro.
6837         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
6838
6839 2011-05-23  Bruno Haible  <bruno@clisp.org>
6840
6841         getugroups: Fix module description.
6842         * modules/getugroups (Include): Set to "getugroups.h".
6843
6844 2011-05-23  Bruno Haible  <bruno@clisp.org>
6845
6846         linkat: Simplify autoconf macro.
6847         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
6848
6849 2011-05-23  Bruno Haible  <bruno@clisp.org>
6850             Eric Blake  <eblake@redhat.com>
6851
6852         linkat, renameat: Update dependencies.
6853         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
6854         * modules/linkat (Depends-on): Likewise. Remove also readlink,
6855         symlinkat.
6856
6857 2011-05-23  Jim Meyering  <meyering@redhat.com>
6858
6859         maint.mk: more tight_scope improvements
6860         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
6861         (_gl_TS_headers): Define only in if-0'd block.
6862         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
6863         sometimes we must *not* use it.  Adjust uses accordingly.
6864         (sc_tight_scope): Use much simpler grep-based test to determine
6865         whether we skip this rule.
6866
6867         maint.mk: generalize/improve the tight-scope rule
6868         * top/maint.mk: Emit a warning when the test is skipped.
6869         (_gl_TS_dir): Add $(srcdir)/ prefix.
6870         (_gl_TS_function_match): Simplify, rather than trying
6871         to enumerate common types.  Otherwise, it would fail to match an
6872         "extern unsigned char const *" declaration in idutils.
6873         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
6874         a way to support use of that type of macro.
6875         (_gl_TS_var_match): Simplify regexp.
6876         (_gl_TS_obj_files): New configurable variable.
6877         (_gl_TS_headers): Likewise.
6878
6879 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
6880
6881         verify: fix bug when gnulib <assert.h> is also included
6882         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
6883         is defined, not if _GL_STATIC_ASSERT_H is not defined.
6884         Perhaps there's a better way, but this fixes the immediate problem.
6885         Problem reported by Bruno Haible in
6886         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
6887
6888 2011-05-22  Bruno Haible  <bruno@clisp.org>
6889
6890         xgetcwd: Simplify autoconf macro.
6891         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
6892
6893 2011-05-22  Bruno Haible  <bruno@clisp.org>
6894
6895         New module 'mktime-internal'.
6896         * modules/mktime-internal: New file.
6897         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
6898         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
6899         mktime_internal as a C macro if libc has __mktime_internal.
6900         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
6901         conditions.
6902         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
6903
6904 2011-05-22  Bruno Haible  <bruno@clisp.org>
6905
6906         timegm: Correct mktime replacement statements.
6907         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
6908         defining mktime as a C macro. This completes a 2009-07-28 commit.
6909
6910 2011-05-22  Bruno Haible  <bruno@clisp.org>
6911
6912         timegm: Simplify autoconf macro.
6913         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
6914
6915 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
6916
6917         clock-time: change to LGPLv2+.
6918         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
6919         BSD-like but we have no mark for that; this is good enough for now.
6920
6921 2011-05-21  Bruno Haible  <bruno@clisp.org>
6922
6923         strerror_r: Fix comments.
6924         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
6925
6926 2011-05-21  Bruno Haible  <bruno@clisp.org>
6927
6928         relocatable-prog-wrapper: Fix possible link error.
6929         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
6930         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
6931         (gl_FUNC_SETENV): ... to here.
6932         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
6933         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
6934
6935 2011-05-21  Bruno Haible  <bruno@clisp.org>
6936
6937         relocatable-prog-wrapper: Assume strerror() exists.
6938         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
6939         m4/strerror.m4.
6940         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
6941         * lib/relocwrapper.c: Remove mention of strerror module.
6942         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
6943         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
6944         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
6945         C macro.
6946
6947 2011-05-21  Bruno Haible  <bruno@clisp.org>
6948
6949         select: Simplify replacement idiom.
6950         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
6951         Win32 platforms.
6952         * lib/sys_select.in.h (select): Simplify accordingly.
6953         * modules/select (Depends-on): Likewise.
6954
6955 2011-05-21  Bruno Haible  <bruno@clisp.org>
6956
6957         mkdir-p: Simplify autoconf macro.
6958         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
6959         gl_FUNC_LCHOWN.
6960
6961 2011-05-21  Eric Blake  <eblake@redhat.com>
6962
6963         strerror_r: avoid clobbering strerror on cygwin
6964         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
6965         fall back instead to sys_errlist.
6966         * modules/strerror (configure.ac): Add witness.
6967         * tests/test-strerror_r.c (main): Enhance test.
6968         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6969         * tests/test-perror2.c (main): Free memory before exit.
6970
6971 2011-05-21  Bruno Haible  <bruno@clisp.org>
6972
6973         mkdtemp: Use gnulib naming conventions.
6974         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
6975         * modules/mkdtemp (configure.ac): Update.
6976
6977 2011-05-20  Eric Blake  <eblake@redhat.com>
6978
6979         strerror_r: avoid corrupting errno on Solaris
6980         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
6981         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6982
6983         strerror_r: avoid compiler warning
6984         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
6985
6986         strerror_r: simplify AIX code
6987         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
6988
6989         test-perror: avoid spurious failure on FreeBSD
6990         * modules/perror-tests (Depends-on): Add strerror, now that
6991         strerror_r no longer pulls it in.
6992
6993 2011-05-20  Bruno Haible  <bruno@clisp.org>
6994
6995         strerror_r-posix: Remove unused dependencies.
6996         * modules/strerror_r-posix (Depends-on): Remove strerror.
6997         Reported by Eric Blake.
6998
6999 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
7000
7001         intprops: remove assumption about A|B representation
7002         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
7003         is a valid integer if both A and B are.  Although this is true for
7004         all known practical hosts, the C standard doesn't guarantee it,
7005         and the code need not assume it.  Also, this change may work around
7006         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
7007         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
7008
7009 2011-05-20  Eric Blake  <eblake@redhat.com>
7010
7011         perror: work around FreeBSD bug
7012         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
7013         is broken.  Move AC_LIBOBJ...
7014         * modules/perror (configure.ac): Here.
7015         * doc/posix-functions/perror.texi (perror): Document this.
7016         * tests/test-perror2.c (main): Enhance test.
7017
7018         test-perror: check for strerror interactions
7019         * tests/macros.h (STREQ): Add macro.
7020         * modules/perror-tests (Files): Add second test.
7021         * tests/test-perror2.c (main): New file.
7022         * doc/posix-functions/perror.texi (perror): Document glibc bug.
7023
7024         test-perror: rewrite to use init script
7025         * modules/perror-tests (Files): Add init.sh.
7026         * tests/test-perror.sh: Use temporary directory.
7027
7028 2011-05-20  Jim Meyering  <meyering@redhat.com>
7029
7030         maint: replace misused "a" with "an"
7031         * doc/intprops.texi: "a integer"
7032         * doc/regex.texi: "a explanation"
7033         * lib/alignof.h: "a object"
7034         * lib/argmatch.h: "a explanation"
7035         * lib/argp-help.c: "a option" and "a OPTION_DOC"
7036         * lib/stdint.in.h: "a integer"
7037         * lib/userspec.c: "a owner"
7038         * doc/gnulib.texi: Fix "a idea", and reword.
7039
7040 2011-05-19  Jim Meyering  <meyering@redhat.com>
7041
7042         maint: correct misuse of "a" and "an"
7043         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
7044         * lib/argp-help.c: "an docum...": s/an/a/
7045         * lib/argp-parse.c: "An vector": s/An/A/
7046         * lib/execute.c: "an native": s/an/a/
7047         * lib/spawn-pipe.c: Likewise.
7048         * lib/gc.h: "an Gc_rc": s/an/a/
7049         * lib/unigbrk.in.h: "an grapheme": s/an/a/
7050         * lib/fts.c: "an stat.st_dev": s/an/a/
7051
7052 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7053
7054         intprops-tests: work around HP-UX 11.23 cc bug with constants
7055         * tests/test-intprops.c (VERIFY): New macro.
7056         (main): Use it, instead of verify, to work around the compiler bug; see
7057         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7058
7059         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
7060         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
7061         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
7062         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
7063         (_GL_REMAINDER_OVERFLOW): Use it.
7064
7065         intprops-tests: revert unsigned part of previous change
7066         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
7067         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
7068         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
7069         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
7070
7071 2011-05-19  Bruno Haible  <bruno@clisp.org>
7072
7073         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
7074         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
7075         strerror_r() returned without filling the buffer.
7076         Reported by Eric Blake.
7077
7078 2011-05-19  Eric Blake  <eblake@redhat.com>
7079
7080         strerror_r: guarantee unchanged errno
7081         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
7082         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
7083         failure.
7084         * tests/test-strerror_r.c (main): Enhance test.
7085
7086 2011-05-19  Bruno Haible  <bruno@clisp.org>
7087
7088         strerror_r: Reorder #if blocks.
7089         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
7090         for consistency with the previous commit.
7091
7092 2011-05-19  Bruno Haible  <bruno@clisp.org>
7093
7094         perror: Avoid clobbering the strerror buffer when possible.
7095         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
7096         * lib/strerror.c: Include it.
7097         * modules/strerror (Files): Add lib/strerror-impl.h.
7098         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
7099         (my_strerror): New function, defined through lib/strerror-impl.h.
7100         (perror): Use it instead of strerror.
7101         * modules/perror (Files): Add lib/strerror-impl.h.
7102         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
7103
7104 2011-05-19  Eric Blake  <eblake@redhat.com>
7105
7106         strerror_r: fix on newer cygwin
7107         * lib/strerror_r.c (strerror_r): Cygwin now has
7108         __xpg_strerror_r, use it.
7109
7110 2011-05-19  Bruno Haible  <bruno@clisp.org>
7111
7112         strerror_r: Avoid clobbering the strerror buffer when possible.
7113         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
7114         (sys_nerr, sys_errlist): New declarations.
7115         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
7116         HP-UX, native Win32, IRIX, and 32-bit Solaris.
7117         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
7118
7119 2011-05-19  Bruno Haible  <bruno@clisp.org>
7120
7121         strerror_r: Fix test failure on mingw.
7122         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
7123         EXTEND_STRERROR_R.
7124         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
7125         macros from errno.in.h instead.
7126
7127 2011-05-19  Eric Blake  <eblake@redhat.com>
7128
7129         strerror: relax test for Solaris
7130         * tests/test-strerror.c (main): Permit Solaris behavior.
7131         * tests/test-strerror_r.c (main): Likewise.
7132
7133         strerror: enforce POSIX ruling on strerror(0)
7134         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
7135         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
7136         * lib/strerror_r.c (rpl_strerror_r): Work around it.
7137         * doc/posix-functions/strerror.texi (strerror): Document it.
7138         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
7139         * tests/test-strerror.c (main): Strengthen test.
7140         * tests/test-strerror_r.c (main): Likewise.
7141
7142 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7143
7144         intprop-tests: port to older and more-pedantic compilers
7145         * modules/intprops-tests (Files): Add tests/macros.h.
7146         * tests/test-intprops.c: Include macros.h.
7147         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
7148         it's no longer documented to expand to an integer constant expression.
7149         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
7150         argument is floating point, as it's no longer documented to expand
7151         to an integer constant expression in that case.
7152         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
7153         compiler bugs reported by Bruno Haible.  See
7154         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7155         (U0, U1): New constants, to work around the same bugs.  Also,
7156         in tests, use e.g., "(unsigned int) 39" rather than "39u".
7157
7158         intprops: work around C compiler bugs
7159         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
7160         bug in Sun C 5.11 2010/08/13 and other compilers; see
7161         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
7162
7163         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
7164         * doc/intprops.texi (Integer Type Determination): Fix
7165         documentation for TYPE_IS_INTEGER: it returns an constant
7166         expression, not an integer constant expression.  Fix doc for
7167         TYPE_SIGNED: it returns an integer constant expression only if its
7168         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
7169         hardly worth documented that way....)
7170
7171 2011-05-18  Bruno Haible  <bruno@clisp.org>
7172
7173         strerror_r: Avoid clobbering the strerror buffer when possible.
7174         * lib/strerror_r.c (strerror_r): Merge the three implementations.
7175         Handle gnulib defined errno values here. When strerror() returns NULL
7176         or an empty string, return EINVAL.
7177         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
7178         gnulib defined errno values here.
7179         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
7180
7181 2011-05-18  Eric Blake  <eblake@redhat.com>
7182
7183         fnmatch: avoid compiler warning
7184         * lib/fnmatch_loop.c (FCT): Use correct type.
7185         Reported by Matthias Bolte.
7186
7187 2011-05-13  Jim Meyering  <meyering@redhat.com>
7188
7189         maint.mk: three new prohibit_<HDR>_without_use rules
7190         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
7191         (sc_prohibit_stdio-safer_without_use): Likewise.
7192         (sc_prohibit_xfreopen_without_use): Likewise.
7193
7194 2011-05-17  Jim Meyering  <meyering@redhat.com>
7195
7196         announce-gen: fail if the NEWS delta is empty
7197         If there's nothing noteworthy in NEWS, then either you forgot
7198         or you shouldn't be releasing.
7199         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
7200
7201 2011-05-17  Pádraig Brady <P@draigBrady.com>
7202
7203         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
7204         reserved symbols starting with double underscore from the check.
7205
7206 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
7207
7208         intprops: add doc
7209         * doc/intprops.texi: New file, documenting intprops.
7210         * doc/gnulib.texi (Particular Modules): Include it.
7211
7212         verify: add doc to gnulib manual and fix example
7213         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
7214         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
7215         (Compile-time Assertions): Fix example so it can't overflow.
7216
7217 2011-05-17  Jim Meyering  <meyering@redhat.com>
7218
7219         warnings.m4: don't usurp save_CPPFLAGS variable name
7220         * m4/warnings.m4: Prefix local temporary variable name with gl_.
7221
7222         doc: fix typo
7223         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
7224
7225 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7226             Bruno Haible  <bruno@clisp.org>
7227
7228         doc: Tweak recent change.
7229         * README (Portability guidelines): Tweak new text.
7230         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
7231         Interix 6.1.
7232
7233 2011-05-16  Eric Blake  <eblake@redhat.com>
7234
7235         inttypes: avoid autoconf warning
7236         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
7237         * m4/stdint.m4 (gl_STDINT_H): Likewise.
7238
7239 2011-05-16  Sam Steingold <sds@gnu.org>
7240         and Eric Blake  <eblake@redhat.com>
7241
7242         vc-list-files: accept multiple directory operands
7243         * build-aux/vc-list-files: Iterate over all remaining operands.
7244
7245 2011-05-16  Bruno Haible  <bruno@clisp.org>
7246
7247         Fix confusion regarding deprecated modules.
7248         * modules/calloc (Status, Notice): Mark module as deprecated, not
7249         obsolete.
7250         * modules/fnmatch-posix (Status, Notice): Likewise.
7251         * modules/getdate (Status, Notice): Likewise.
7252         * modules/getopt (Status, Notice): Likewise.
7253         * modules/malloc (Status, Notice): Likewise.
7254         * modules/pipe (Status, Notice): Likewise.
7255         * modules/realloc (Status, Notice): Likewise.
7256         * modules/rename-dest-slash (Status, Notice): Likewise.
7257         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
7258         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
7259         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
7260         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
7261         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
7262
7263 2011-05-16  Bruno Haible  <bruno@clisp.org>
7264
7265         doc: List the target platforms.
7266         * doc/gnulib-intro.texi (Target Platforms): New section.
7267         * doc/gnulib.texi (Introduction): Update menu.
7268         * README (Portability guidelines): Refer to the new section. Update
7269         statement about oldest supported environment. Remove rationale why
7270         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
7271         unportable C89 function.
7272         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
7273         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
7274
7275 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
7276
7277         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
7278
7279 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
7280
7281         intprops-tests: new module
7282         * modules/intprops-tests, tests/test-intprops.c: New files.
7283
7284         intprops: add safe, portable integer overflow checking
7285         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
7286         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
7287         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
7288         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
7289         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
7290         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
7291         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
7292         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
7293         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
7294         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
7295         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
7296
7297 2011-05-12  James Youngman  <jay@gnu.org>
7298
7299         Add a test for glibc's Bugzilla bug #12378.
7300         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
7301         doesn't allow the literal matching of a lone "[" (which is
7302         required by POSIX).
7303         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
7304
7305 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
7306
7307         Sync glibc change fixing Bugzilla bug #12378.
7308         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
7309         beginning and fall back to matching as normal character if the
7310         string ends before the matching ']' is found.  This is what POSIX
7311         requires.
7312
7313 2011-05-13  Eric Blake  <eblake@redhat.com>
7314
7315         getcwd-lgpl: relax test for FreeBSD
7316         * doc/posix-functions/getcwd.texi (getcwd): Document portability
7317         issue.
7318         * tests/test-getcwd-lgpl.c (main): Relax test.
7319         Reported by Matthias Bolte.
7320
7321 2011-05-11  Eric Blake  <eblake@redhat.com>
7322
7323         test-fflush: silence compiler warning
7324         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
7325
7326 2011-05-11  Bruno Haible  <bruno@clisp.org>
7327
7328         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
7329         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
7330         * modules/canonicalize (Depends-on): Add 'nocrash'.
7331         * modules/canonicalize-lgpl (Depends-on): Likewise.
7332         * doc/posix-functions/realpath.texi: Update platforms list.
7333         Reported by Ryan Schmidt <ryandesign@macports.org>.
7334
7335 2011-05-11  Bruno Haible  <bruno@clisp.org>
7336
7337         group-member: Declare function in <unistd.h>.
7338         * lib/unistd.in.h (group_member): New declaration.
7339         * lib/group-member.h: Remove file.
7340         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
7341         * tests/test-unistd-c++.cc: Check signature of group_member.
7342         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
7343         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
7344         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
7345         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
7346         HAVE_GROUP_MEMBER.
7347         * modules/group-member (Files): Remove lib/group-member.h.
7348         (Depends-on): Add unistd. Specify conditions.
7349         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
7350         (Include): Change to <unistd.h>.
7351         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
7352         HAVE_GROUP_MEMBER.
7353         * NEWS: Mention the change.
7354         * lib/euidaccess.c: Don't include group-member.h.
7355
7356 2011-05-11  Bruno Haible  <bruno@clisp.org>
7357
7358         group-member: Document module.
7359         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
7360         module.
7361
7362 2011-05-11  Bruno Haible  <bruno@clisp.org>
7363
7364         fclose: Fix mistake earlier today.
7365         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
7366
7367 2011-05-11  Eric Blake  <eblake@redhat.com>
7368
7369         fclose: preserve fflush errors
7370         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
7371         Reported by Jim Meyering.
7372
7373         bootstrap: support a prereq of 'rpcgen -' on RHEL5
7374         * build-aux/bootstrap (check_versions): When no specific version
7375         is required, merely check that the app produces an exit status
7376         that indicates its existence.
7377
7378         maint.mk: drop redundant check
7379         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
7380         the same but better.
7381
7382 2011-05-11  Bruno Haible  <bruno@clisp.org>
7383
7384         fclose: Fix possible link error.
7385         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
7386         unregister_shadow_fd. Improve comments.
7387         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
7388         Eric Blake.
7389
7390 2011-05-11  Jim Meyering  <meyering@redhat.com>
7391
7392         maint.mk: improve "can not" detection and generalize rule name
7393         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
7394         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
7395         Use the same technique as in sc_prohibit_doubled_word, so that
7396         we recognize "can not" also when the words are separated by a newline.
7397         Suggested by Eric Blake.
7398         (perl_filename_lineno_text_): Define.  Factored out of...
7399         (prohibit_doubled_word_): ...here.  Use the new definition.
7400         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
7401         (prohibit_undesirable_word_seq_RE_): New overridable variable.
7402         (ignore_undesirable_word_sequence_RE_): New overridable variable.
7403
7404 2011-05-10  Eric Blake  <eblake@redhat.com>
7405
7406         fclose: avoid double close race when possible
7407         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
7408         all but WINDOWS_SOCKETS.
7409
7410 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
7411
7412         openat: correct new comment
7413         * lib/openat-proc.c (openat_proc_name): Correct the comment.
7414
7415 2011-05-10  Jim Meyering  <meyering@redhat.com>
7416
7417         openat: add comments
7418         * lib/openat-proc.c (openat_proc_name): Add comments,
7419         mostly from Eric Blake.
7420
7421 2011-05-09  Eric Blake  <eblake@redhat.com>
7422
7423         openat: reduce syscalls in first probe of /proc
7424         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
7425         be a directory.  Simplify the probe for .. bugs.
7426         * modules/openat (Depends-on): Drop same-inode.
7427         Reported by Bastien ROUCARIES.
7428
7429 2011-05-09  Jim Meyering  <meyering@redhat.com>
7430
7431         maint.mk: change semantics/name of tight_scope variables
7432         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
7433         Rename variables to align with semantics that make them more useful.
7434
7435         maint.mk: tweak new rule's name not to impinge
7436         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
7437         (sc_tight_scope): Use new rule name rather than $@-0.
7438
7439         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
7440         * top/maint.mk (sc_tight_scope): New rule.
7441         (sc_tight_scope-0): New rule, ifdef'd out.
7442         (_gl_TS_dir): Default.
7443         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
7444         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
7445
7446 2011-05-09  Simon Josefsson  <simon@josefsson.org>
7447
7448         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
7449         Haible <bruno@clisp.org>.
7450
7451 2011-05-08  Bruno Haible  <bruno@clisp.org>
7452
7453         Comments.
7454         * m4/isnanf.m4: Add comment.
7455         * m4/isnanl.m4: Likewise.
7456
7457 2011-05-08  Bruno Haible  <bruno@clisp.org>
7458
7459         glob: Remove obsolete macro.
7460         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
7461
7462 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
7463
7464         intprops: Sun C 5.11 supports __typeof__
7465         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
7466         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
7467         which is new.
7468         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
7469
7470         intprops: switch to usual gnulib indenting and naming
7471         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
7472         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
7473
7474         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
7475
7476 2011-05-08  Jim Meyering  <meyering@redhat.com>
7477
7478         maint.mk: suppress "Entering/Leaving directory" diag in announcement
7479         * top/maint.mk (release-prep): Use make's --no-print-directory
7480         option when generating the announcement.  This eliminates the
7481         pesky "make[2]: Entering/Leaving directory" diagnostics in the
7482         generated announcement template.
7483
7484 2011-05-08  Bruno Haible  <bruno@clisp.org>
7485
7486         tzset: Fix gettimeofday wrapper on Solaris 2.6.
7487         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
7488         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
7489
7490 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
7491
7492         ignore-value, verify: Omit include files from lib_SOURCES.
7493         * modules/ignore-value, modules/verify (Makefile.am):
7494         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
7495         that leads Automake to duplicate use of am__objects_... variables
7496         in Makefile.in.  See
7497         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
7498
7499 2011-05-07  Bruno Haible  <bruno@clisp.org>
7500
7501         fclose: Simplify autoconf macro.
7502         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
7503         defined.
7504
7505 2011-05-07  Bruno Haible  <bruno@clisp.org>
7506
7507         canonicalize-lgpl: Fix autoconf macro ordering bug.
7508         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
7509         gl_STDLIB_H_DEFAULTS.
7510
7511 2011-05-06  Eric Blake  <eblake@redhat.com>
7512
7513         maintainer-makefile: make sc_po_check easier to tune
7514         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
7515         to probe for strings, such as an alternate location for gnulib.
7516
7517         fclose: guarantee behavior on seekable stdin
7518         * modules/fclose (Depends-on): Add fflush.
7519         * doc/posix-functions/fclose.texi (fclose): Document this.
7520         * tests/test-fclose.c (main): Make test for this unconditional.
7521
7522 2011-05-06  Bruno Haible  <bruno@clisp.org>
7523
7524         fflush, fpurge: Relicense under LGPLv2+.
7525         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
7526         * modules/fpurge (License): Likewise.
7527         With permission from Eric Blake and Jim Meyering.
7528         Suggested by Eric Blake.
7529
7530 2011-05-06  Karl Berry  <karl@gnu.org>
7531
7532         * MODULES.html.sh (func_all_modules): remove exit.
7533
7534 2011-05-06  Jim Meyering  <meyering@redhat.com>
7535
7536         maint.mk: use info-gnu@ as the default only for a stable release
7537         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
7538         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
7539         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
7540         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
7541
7542 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
7543
7544         assert-h: new module, which supports C1X-style static_assert
7545         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
7546         * lib/verify.h: Revamp so that this can be copied into assert.h,
7547         while retaining the ability to use it standalone as before.
7548         Rename private identifiers so as not to encroach on the
7549         standard C namespace, since this is now used by assert.h.
7550         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
7551         the old verify_true.
7552         (_GL_VERIFY_TRUE): New macro, with much of the contents of
7553         the old verify_true.  Use _GL_VERIFY_TYPE.
7554         (_GL_VERIFY): New macro, with much of the contents of the old verify.
7555         (static_assert): New macro, if _GL_STATIC_ASSERT_H
7556         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
7557         defined when this file is copied into the replacement assert.h.
7558         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
7559         and _Static_assert is not built in.
7560         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
7561         defined, and use the new macros mentioned above.
7562         * doc/posix-headers/assert.texi: Document this.
7563
7564 2011-05-05  Bruno Haible  <bruno@clisp.org>
7565
7566         fclose, fflush: Respect rules for use of AC_LIBOBJ.
7567         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
7568         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
7569         gl_REPLACE_FCLOSE here.
7570         * modules/fflush (Depends-on): Remove fclose.
7571         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
7572         combination with module 'fclose'.
7573
7574 2011-05-05  Bruno Haible  <bruno@clisp.org>
7575
7576         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
7577         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
7578         gl_FUNC_FFLUSH.
7579         (gl_FUNC_FFLUSH): Use it.
7580         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
7581         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
7582         gl_REPLACE_FSEEKO here.
7583
7584 2011-05-05  Bruno Haible  <bruno@clisp.org>
7585
7586         tzset: Relicense under LGPL.
7587         * modules/tzset (License): Change to LGPL.
7588         No agreement needed; it's a no-op.
7589
7590         strtoimax, strtoumax: Relicense under LGPL.
7591         * modules/strtoimax (License): Change to LGPL.
7592         * modules/strtoumax (License): Likewise.
7593         With permission from Jim Meyering, Paul Eggert:
7594         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
7595         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
7596
7597         getgroups: Relicense under LGPL.
7598         * modules/getgroups (License): Change to LGPL.
7599         With permission from Jim Meyering, Paul Eggert, Eric Blake:
7600         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
7601         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
7602         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7603
7604         nanosleep: Relicense under LGPL.
7605         * modules/nanosleep (License): Change to LGPL.
7606         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
7607         Haible:
7608         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
7609         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
7610         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7611         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
7612
7613         futimens: Relicense under LGPL.
7614         * modules/futimens (License): Change to LGPL.
7615         With permission from Eric Blake:
7616         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7617
7618         fflush: Relicense under LGPL.
7619         * modules/fflush (License): Change to LGPL.
7620         With permission from Eric Blake, Bruno Haible, Jim Meyering:
7621         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
7622         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
7623         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
7624
7625         tmpfile: Relicense under LGPL.
7626         * modules/tmpfile (License): Change to LGPL.
7627         With permission from Ben Pfaff:
7628         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
7629
7630         isfinite: Relicense under LGPL.
7631         * modules/isfinite (License): Change to LGPL.
7632         With permission from Ben Pfaff, Bruno Haible:
7633         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
7634         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
7635
7636         acosl..tanl: Relicense under LGPL.
7637         * modules/acosl (License): Change to LGPL.
7638         * modules/asinl (License): Likewise.
7639         * modules/atanl (License): Likewise.
7640         * modules/cosl (License): Likewise.
7641         * modules/expl (License): Likewise.
7642         * modules/logl (License): Likewise.
7643         * modules/sinl (License): Likewise.
7644         * modules/sqrtl (License): Likewise.
7645         * modules/tanl (License): Likewise.
7646         Source code originally from glibc and Paolo Bonzini. Agreements:
7647         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
7648         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
7649
7650 2011-05-05  Bruno Haible  <bruno@clisp.org>
7651
7652         signal: Define sighandler_t.
7653         * lib/signal.in.h (sighandler_t): New type.
7654         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
7655         whether sighandler_t is defined.
7656         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
7657         * modules/signal (Depends-on): Add extensions.
7658         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
7659         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
7660         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
7661
7662 2011-05-05  Eric Blake  <eblake@redhat.com>
7663
7664         maint: remove useless REPLACE_*_H macros
7665         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
7666         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
7667         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
7668         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
7669         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
7670         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
7671         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
7672         * m4/btowc.m4: Update callers.
7673         * m4/dirfd.m4: Likewise.
7674         * m4/duplocale.m4: Likewise.
7675         * m4/fchdir.m4: Likewise.
7676         * m4/fdopendir.m4: Likewise.
7677         * m4/inet_ntop.m4: Likewise.
7678         * m4/inet_pton.m4: Likewise.
7679         * m4/ioctl.m4: Likewise.
7680         * m4/mbrlen.m4: Likewise.
7681         * m4/mbrtowc.m4: Likewise.
7682         * m4/mbsinit.m4: Likewise.
7683         * m4/mbsnrtowcs.m4: Likewise.
7684         * m4/mbsrtowcs.m4: Likewise.
7685         * m4/poll.m4: Likewise.
7686         * m4/setlocale.m4: Likewise.
7687         * m4/wcrtomb.m4: Likewise.
7688         * m4/wcsnrtombs.m4: Likewise.
7689         * m4/wcsrtombs.m4: Likewise.
7690         * m4/wctob.m4: Likewise.
7691         * m4/wcwidth.m4: Likewise.
7692         * modules/posix_spawn: Likewise.
7693         * modules/posix_spawn_file_actions_addclose: Likewise.
7694         * modules/posix_spawn_file_actions_adddup2: Likewise.
7695         * modules/posix_spawn_file_actions_addopen: Likewise.
7696         * modules/posix_spawn_file_actions_destroy: Likewise.
7697         * modules/posix_spawn_file_actions_init: Likewise.
7698         * modules/posix_spawnattr_destroy: Likewise.
7699         * modules/posix_spawnattr_getflags: Likewise.
7700         * modules/posix_spawnattr_getpgroup: Likewise.
7701         * modules/posix_spawnattr_getschedparam: Likewise.
7702         * modules/posix_spawnattr_getschedpolicy: Likewise.
7703         * modules/posix_spawnattr_getsigdefault: Likewise.
7704         * modules/posix_spawnattr_getsigmask: Likewise.
7705         * modules/posix_spawnattr_init: Likewise.
7706         * modules/posix_spawnattr_setflags: Likewise.
7707         * modules/posix_spawnattr_setpgroup: Likewise.
7708         * modules/posix_spawnattr_setschedparam: Likewise.
7709         * modules/posix_spawnattr_setschedpolicy: Likewise.
7710         * modules/posix_spawnattr_setsigdefault: Likewise.
7711         * modules/posix_spawnattr_setsigmask: Likewise.
7712         * modules/posix_spawnp: Likewise.
7713
7714 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
7715
7716         Add option to do-release-commit-and-tag to specify branch.
7717         * build-aux/do-release-commit-and-tag: Add --branch.
7718
7719 2011-05-03  Bruno Haible  <bruno@clisp.org>
7720
7721         Avoid unnecessary compilation units, through conditional dependencies.
7722         * modules/accept (Depends-on): Add conditions to the dependencies.
7723         * modules/acosl (Depends-on): Likewise.
7724         * modules/argz (Depends-on): Likewise.
7725         * modules/asinl (Depends-on): Likewise.
7726         * modules/atanl (Depends-on): Likewise.
7727         * modules/atoll (Depends-on): Likewise.
7728         * modules/bind (Depends-on): Likewise.
7729         * modules/btowc (Depends-on): Likewise.
7730         * modules/canonicalize-lgpl (Depends-on): Likewise.
7731         * modules/ceil (Depends-on): Likewise.
7732         * modules/ceilf (Depends-on): Likewise.
7733         * modules/ceill (Depends-on): Likewise.
7734         * modules/chdir-long (Depends-on): Likewise.
7735         * modules/chown (Depends-on): Likewise.
7736         * modules/close (Depends-on): Likewise.
7737         * modules/connect (Depends-on): Likewise.
7738         * modules/cosl (Depends-on): Likewise.
7739         * modules/dirfd (Depends-on): Likewise.
7740         * modules/dprintf (Depends-on): Likewise.
7741         * modules/dprintf-posix (Depends-on): Likewise.
7742         * modules/error (Depends-on): Likewise.
7743         * modules/euidaccess (Depends-on): Likewise.
7744         * modules/expl (Depends-on): Likewise.
7745         * modules/faccessat (Depends-on): Likewise.
7746         * modules/fchdir (Depends-on): Likewise.
7747         * modules/fclose (Depends-on): Likewise.
7748         * modules/fcntl (Depends-on): Likewise.
7749         * modules/fdopendir (Depends-on): Likewise.
7750         * modules/fflush (Depends-on): Likewise.
7751         * modules/floor (Depends-on): Likewise.
7752         * modules/floorf (Depends-on): Likewise.
7753         * modules/floorl (Depends-on): Likewise.
7754         * modules/fnmatch (Depends-on): Likewise.
7755         * modules/fopen (Depends-on): Likewise.
7756         * modules/fprintf-posix (Depends-on): Likewise.
7757         * modules/frexp (Depends-on): Likewise.
7758         * modules/frexp-nolibm (Depends-on): Likewise.
7759         * modules/frexpl (Depends-on): Likewise.
7760         * modules/frexpl-nolibm (Depends-on): Likewise.
7761         * modules/fseek (Depends-on): Likewise.
7762         * modules/fsusage (Depends-on): Likewise.
7763         * modules/ftell (Depends-on): Likewise.
7764         * modules/ftello (Depends-on): Likewise.
7765         * modules/futimens (Depends-on): Likewise.
7766         * modules/getcwd (Depends-on): Likewise.
7767         * modules/getcwd-lgpl (Depends-on): Likewise.
7768         * modules/getdelim (Depends-on): Likewise.
7769         * modules/getdomainname (Depends-on): Likewise.
7770         * modules/getgroups (Depends-on): Likewise.
7771         * modules/gethostname (Depends-on): Likewise.
7772         * modules/getline (Depends-on): Likewise.
7773         * modules/getlogin_r (Depends-on): Likewise.
7774         * modules/getopt-posix (Depends-on): Likewise.
7775         * modules/getpeername (Depends-on): Likewise.
7776         * modules/getsockname (Depends-on): Likewise.
7777         * modules/getsockopt (Depends-on): Likewise.
7778         * modules/getsubopt (Depends-on): Likewise.
7779         * modules/getusershell (Depends-on): Likewise.
7780         * modules/glob (Depends-on): Likewise.
7781         * modules/grantpt (Depends-on): Likewise.
7782         * modules/iconv_open (Depends-on): Likewise.
7783         * modules/iconv_open-utf (Depends-on): Likewise.
7784         * modules/inet_ntop (Depends-on): Likewise.
7785         * modules/inet_pton (Depends-on): Likewise.
7786         * modules/ioctl (Depends-on): Likewise.
7787         * modules/isapipe (Depends-on): Likewise.
7788         * modules/isfinite (Depends-on): Likewise.
7789         * modules/isinf (Depends-on): Likewise.
7790         * modules/lchown (Depends-on): Likewise.
7791         * modules/ldexpl (Depends-on): Likewise.
7792         * modules/link (Depends-on): Likewise.
7793         * modules/linkat (Depends-on): Likewise.
7794         * modules/listen (Depends-on): Likewise.
7795         * modules/logl (Depends-on): Likewise.
7796         * modules/lstat (Depends-on): Likewise.
7797         * modules/mbrlen (Depends-on): Likewise.
7798         * modules/mbrtowc (Depends-on): Likewise.
7799         * modules/mbsinit (Depends-on): Likewise.
7800         * modules/mbsnrtowcs (Depends-on): Likewise.
7801         * modules/mbsrtowcs (Depends-on): Likewise.
7802         * modules/mbtowc (Depends-on): Likewise.
7803         * modules/memcmp (Depends-on): Likewise.
7804         * modules/mkdir (Depends-on): Likewise.
7805         * modules/mkdtemp (Depends-on): Likewise.
7806         * modules/mkfifo (Depends-on): Likewise.
7807         * modules/mkfifoat (Depends-on): Likewise.
7808         * modules/mknod (Depends-on): Likewise.
7809         * modules/mkostemp (Depends-on): Likewise.
7810         * modules/mkostemps (Depends-on): Likewise.
7811         * modules/mkstemp (Depends-on): Likewise.
7812         * modules/mkstemps (Depends-on): Likewise.
7813         * modules/mktime (Depends-on): Likewise.
7814         * modules/nanosleep (Depends-on): Likewise.
7815         * modules/open (Depends-on): Likewise.
7816         * modules/openat (Depends-on): Likewise.
7817         * modules/perror (Depends-on): Likewise.
7818         * modules/poll (Depends-on): Likewise.
7819         * modules/popen (Depends-on): Likewise.
7820         * modules/posix_spawn (Depends-on): Likewise.
7821         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
7822         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
7823         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
7824         * modules/posix_spawnp (Depends-on): Likewise.
7825         * modules/pread (Depends-on): Likewise.
7826         * modules/printf-posix (Depends-on): Likewise.
7827         * modules/ptsname (Depends-on): Likewise.
7828         * modules/putenv (Depends-on): Likewise.
7829         * modules/pwrite (Depends-on): Likewise.
7830         * modules/readline (Depends-on): Likewise.
7831         * modules/readlink (Depends-on): Likewise.
7832         * modules/readlinkat (Depends-on): Likewise.
7833         * modules/recv (Depends-on): Likewise.
7834         * modules/recvfrom (Depends-on): Likewise.
7835         * modules/regex (Depends-on): Likewise.
7836         * modules/remove (Depends-on): Likewise.
7837         * modules/rename (Depends-on): Likewise.
7838         * modules/renameat (Depends-on): Likewise.
7839         * modules/rmdir (Depends-on): Likewise.
7840         * modules/round (Depends-on): Likewise.
7841         * modules/roundf (Depends-on): Likewise.
7842         * modules/roundl (Depends-on): Likewise.
7843         * modules/rpmatch (Depends-on): Likewise.
7844         * modules/select (Depends-on): Likewise.
7845         * modules/send (Depends-on): Likewise.
7846         * modules/sendto (Depends-on): Likewise.
7847         * modules/setenv (Depends-on): Likewise.
7848         * modules/setlocale (Depends-on): Likewise.
7849         * modules/setsockopt (Depends-on): Likewise.
7850         * modules/shutdown (Depends-on): Likewise.
7851         * modules/sigaction (Depends-on): Likewise.
7852         * modules/signbit (Depends-on): Likewise.
7853         * modules/sigprocmask (Depends-on): Likewise.
7854         * modules/sinl (Depends-on): Likewise.
7855         * modules/sleep (Depends-on): Likewise.
7856         * modules/snprintf (Depends-on): Likewise.
7857         * modules/snprintf-posix (Depends-on): Likewise.
7858         * modules/socket (Depends-on): Likewise.
7859         * modules/sprintf-posix (Depends-on): Likewise.
7860         * modules/sqrtl (Depends-on): Likewise.
7861         * modules/stat (Depends-on): Likewise.
7862         * modules/strchrnul (Depends-on): Likewise.
7863         * modules/strdup-posix (Depends-on): Likewise.
7864         * modules/strerror (Depends-on): Likewise.
7865         * modules/strerror_r-posix (Depends-on): Likewise.
7866         * modules/strndup (Depends-on): Likewise.
7867         * modules/strnlen (Depends-on): Likewise.
7868         * modules/strptime (Depends-on): Likewise.
7869         * modules/strsep (Depends-on): Likewise.
7870         * modules/strsignal (Depends-on): Likewise.
7871         * modules/strstr-simple (Depends-on): Likewise.
7872         * modules/strtod (Depends-on): Likewise.
7873         * modules/strtoimax (Depends-on): Likewise.
7874         * modules/strtok_r (Depends-on): Likewise.
7875         * modules/strtoumax (Depends-on): Likewise.
7876         * modules/symlink (Depends-on): Likewise.
7877         * modules/symlinkat (Depends-on): Likewise.
7878         * modules/tanl (Depends-on): Likewise.
7879         * modules/tcgetsid (Depends-on): Likewise.
7880         * modules/tmpfile (Depends-on): Likewise.
7881         * modules/trunc (Depends-on): Likewise.
7882         * modules/truncf (Depends-on): Likewise.
7883         * modules/truncl (Depends-on): Likewise.
7884         * modules/uname (Depends-on): Likewise.
7885         * modules/unlink (Depends-on): Likewise.
7886         * modules/unlockpt (Depends-on): Likewise.
7887         * modules/unsetenv (Depends-on): Likewise.
7888         * modules/usleep (Depends-on): Likewise.
7889         * modules/utimensat (Depends-on): Likewise.
7890         * modules/vasprintf (Depends-on): Likewise.
7891         * modules/vdprintf (Depends-on): Likewise.
7892         * modules/vdprintf-posix (Depends-on): Likewise.
7893         * modules/vfprintf-posix (Depends-on): Likewise.
7894         * modules/vprintf-posix (Depends-on): Likewise.
7895         * modules/vsnprintf (Depends-on): Likewise.
7896         * modules/vsnprintf-posix (Depends-on): Likewise.
7897         * modules/vsprintf-posix (Depends-on): Likewise.
7898         * modules/wcrtomb (Depends-on): Likewise.
7899         * modules/wcscasecmp (Depends-on): Likewise.
7900         * modules/wcscspn (Depends-on): Likewise.
7901         * modules/wcsdup (Depends-on): Likewise.
7902         * modules/wcsncasecmp (Depends-on): Likewise.
7903         * modules/wcsnrtombs (Depends-on): Likewise.
7904         * modules/wcspbrk (Depends-on): Likewise.
7905         * modules/wcsrtombs (Depends-on): Likewise.
7906         * modules/wcsspn (Depends-on): Likewise.
7907         * modules/wcsstr (Depends-on): Likewise.
7908         * modules/wcstok (Depends-on): Likewise.
7909         * modules/wcswidth (Depends-on): Likewise.
7910         * modules/wctob (Depends-on): Likewise.
7911         * modules/wctomb (Depends-on): Likewise.
7912         * modules/wctype (Depends-on): Likewise.
7913         * modules/wcwidth (Depends-on): Likewise.
7914         * modules/write (Depends-on): Likewise.
7915
7916 2011-05-03  Bruno Haible  <bruno@clisp.org>
7917
7918         Support for conditional dependencies.
7919         * doc/gnulib.texi (Module description): Document the syntax of
7920         conditional dependencies.
7921         * gnulib-tool: New option --conditional-dependencies.
7922         (func_usage): Document it.
7923         (cond_dependencies): New variable.
7924         (func_get_automake_snippet_conditional,
7925         func_get_automake_snippet_unconditional): New functions, extracted from
7926         func_get_automake_snippet.
7927         (func_get_automake_snippet): Use them.
7928         (sed_first_32_chars): New variable.
7929         (func_module_shellfunc_name): New function.
7930         (func_module_shellvar_name): New function.
7931         (func_module_conditional_name): New function.
7932         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
7933         func_cond_module_condition): New functions.
7934         (func_modules_transitive_closure): Add support for conditional
7935         dependencies.
7936         (func_emit_lib_Makefile_am): For a conditional module, enclose the
7937         conditional automake snippet in an automake conditional.
7938         (func_emit_autoconf_snippets): Emit shell functions that contain the
7939         code for conditional modules.
7940         (func_import, func_create_testdir): Update specification.
7941
7942 2011-05-03  Eric Blake  <eblake@redhat.com>
7943
7944         test-getaddrinfo: report error information
7945         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
7946
7947 2011-05-03  Jim Meyering  <meyering@redhat.com>
7948
7949         bootstrap: avoid build failure when $GZIP is set
7950         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
7951         program name.  If defined at all, it is supposed to list gzip options.
7952         Reported by Alan Curry in http://debbugs.gnu.org/8609
7953
7954 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
7955
7956         readme-release: new module with release instructions
7957         * modules/readme-release: New module.
7958         * top/README-release: New file, from coreutils, grep, diffutils.
7959         * MODULES.html.sh (Support for maintaining and releasing): Add it.
7960
7961 2011-05-02  Eric Blake  <eblake@redhat.com>
7962
7963         fflush: also replace fclose when fixing fflush
7964         * modules/fflush (Depends-on): Add fclose.
7965         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
7966         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
7967         memstreams with no backing fd.
7968         * doc/posix-functions/fclose.texi (fclose): Document the use of
7969         fflush module to fix the bug.
7970         * tests/test-fclose.c (main): Relax test when fclose is used in
7971         isolation.
7972
7973         fclose: add some tests
7974         * modules/fclose-tests: New test module.
7975         * tests/test-fclose.c: New file.
7976         * doc/posix-functions/fclose.texi (fclose): Document the bug.
7977
7978         fclose: reduced dependencies
7979         * modules/fclose (Depends-on): Switch from fflush/fseeko to
7980         simpler lseek.
7981         * lib/fclose.c (rpl_fclose): Likewise.
7982         Reported by Simon Josefsson.
7983
7984         exit: drop remaining clients
7985         * modules/argmatch (Depends-on): Replace exit with stdlib.
7986         * modules/copy-file (Depends-on): Likewise.
7987         * modules/execute (Depends-on): Likewise.
7988         * modules/exitfail (Depends-on): Likewise.
7989         * modules/obstack (Depends-on): Likewise.
7990         * modules/pagealign_alloc (Depends-on): Likewise.
7991         * modules/pipe-filter-gi (Depends-on): Likewise.
7992         * modules/pipe-filter-ii (Depends-on): Likewise.
7993         * modules/savewd (Depends-on): Likewise.
7994         * modules/spawn-pipe (Depends-on): Likewise.
7995         * modules/wait-process (Depends-on): Likewise.
7996         * modules/xsetenv (Depends-on): Likewise.
7997         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
7998         * modules/git-merge-changelog (Depends-on): Likewise.
7999         * modules/long-options (Depends-on): Likewise.
8000         * modules/pt_chown (Depends-on): Likewise.
8001         * modules/sysexits (Depends-on): Likewise.
8002
8003         freading: relax license from LGPLv3+ to LGPLv2+
8004         * modules/freading (License): Relax LGPL version.
8005
8006 2011-05-02  Bruno Haible  <bruno@clisp.org>
8007
8008         fchdir: Remove unused dependencies.
8009         * modules/fchdir (Depends-on): Remove include_next.
8010
8011 2011-05-02  Bruno Haible  <bruno@clisp.org>
8012
8013         gnulib-tool: Refactor.
8014         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
8015         from func_emit_autoconf_snippets.
8016         (func_emit_autoconf_snippets): Use it.
8017
8018 2011-05-02  Simon Josefsson  <simon@josefsson.org>
8019
8020         * NEWS: Document removal of 'exit'.
8021         * modules/exit: Remove file.
8022
8023 2011-05-01  Bruno Haible  <bruno@clisp.org>
8024
8025         Update DEPENDENCIES.
8026         * DEPENDENCIES (gettext): Recommend the newest release.
8027         Reported by Simon Josefsson.
8028
8029 2011-05-01  Bruno Haible  <bruno@clisp.org>
8030
8031         gnulib-tool: Reduce code duplication.
8032         * gnulib-tool (func_emit_autoconf_snippets): New function.
8033         (func_import, func_create_testdir): Use it.
8034
8035 2011-04-30  Eric Blake  <eblake@redhat.com>
8036
8037         fclose: don't fail on non-seekable input stream
8038         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
8039         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
8040         since fflush is allowed to fail in that case.
8041
8042 2011-04-30  Bruno Haible  <bruno@clisp.org>
8043
8044         dup3: cleanup
8045         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
8046
8047 2011-04-30  Bruno Haible  <bruno@clisp.org>
8048
8049         netdb: Make it work in C++ mode.
8050         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
8051         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
8052         module.
8053         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
8054         gl_MODULE_INDICATOR_FOR_TESTS.
8055         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
8056         * modules/netdb-c++-tests: New file.
8057         * tests/test-netdb-c++.cc: New file.
8058
8059 2011-04-30  Bruno Haible  <bruno@clisp.org>
8060
8061         New modules 'vfscanf', 'vscanf'.
8062         * modules/vfscanf: New file.
8063         * modules/vscanf: New file.
8064         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
8065         here.
8066         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
8067         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
8068
8069 2011-04-30  Bruno Haible  <bruno@clisp.org>
8070
8071         passfd: Add comments.
8072         * lib/passfd.c: Add comments about platforms.
8073
8074 2011-04-30  Bruno Haible  <bruno@clisp.org>
8075
8076         sys_uio: Make <sys/uio.h> self-contained.
8077         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
8078         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
8079
8080 2011-04-30  Bruno Haible  <bruno@clisp.org>
8081
8082         sys_socket: Ensure 'struct iovec' definition.
8083         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
8084         <sys/socket.h>.
8085         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
8086
8087 2011-04-30  Bruno Haible  <bruno@clisp.org>
8088
8089         sys_uio: Protect definition of 'struct iovec'.
8090         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
8091         it as a C struct.
8092
8093 2011-04-30  Bruno Haible  <bruno@clisp.org>
8094
8095         manywarnings: fix indentation
8096         * m4/manywarnings.m4: Indent by 2 spaces consistently.
8097
8098 2011-04-30  Pádraig Brady <P@draigBrady.com>
8099
8100         manywarnings: add -Wno-missing-field-initializers if needed.
8101         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
8102         option if it's needed to allow initialization with { 0, }
8103
8104 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
8105
8106         announce-gen: cosmetic improvement
8107         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
8108
8109 2011-04-29  Jim Meyering  <meyering@redhat.com>
8110
8111         vc-list-files: indent with spaces, not TABs
8112         * build-aux/vc-list-files: Convert leading TABs to spaces,
8113         to match the style of most other files in gnulib.
8114
8115         announce-gen: indent with spaces, not TABs
8116         * build-aux/announce-gen: Convert all TABs to spaces, to match
8117         the style of most other files in gnulib.
8118
8119 2011-04-29  Eric Blake  <eblake@redhat.com>
8120
8121         quotearg: avoid uninitialized variable use
8122         * lib/quotearg.c (quoting_options_from_style): Initialize
8123         remaining fields, and ensure that custom styles are only used via
8124         quoting_options rather than quoting_style.
8125
8126 2011-04-29  Jim Meyering  <meyering@redhat.com>
8127
8128         maint.mk: remove unused VC-tag variable
8129         * top/maint.mk (VC-tag): Remove unused variable.
8130
8131 2011-04-29  Bruno Haible  <bruno@clisp.org>
8132
8133         netdb: fix gai_strerror replacements
8134         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
8135         * modules/netdb: Substitute it.
8136
8137 2011-04-29  Jim Meyering  <meyering@redhat.com>
8138
8139         test-getcwd.c: avoid new set-but-not-used warning
8140         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
8141         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
8142         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
8143         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
8144
8145         test-hash.c: avoid a new shadowing warning
8146         * tests/test-hash.c (main): Don't shadow "dup".
8147
8148 2011-04-28  Eric Blake  <eblake@redhat.com>
8149
8150         getaddrinfo: fix gai_strerror signature
8151         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
8152         and work around mingw with UNICODE defined.
8153         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
8154         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
8155         * modules/netdb (Makefile.am): Substitute it.
8156         * lib/netdb.in.h (gai_strerror): Declare replacement.
8157         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
8158         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
8159         the fix.
8160
8161         getsockopt: avoid compiler warning
8162         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
8163         Reported by Matthias Bolte.
8164
8165         tests: drop unused link dependency
8166         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
8167         * modules/dirent-safer-tests (Makefile.am): Likewise.
8168         * modules/fdopendir-tests (Makefile.am): Likewise.
8169         * modules/mkfifoat-tests (Makefile.am): Likewise.
8170         * modules/openat-safer-tests (Makefile.am): Likewise.
8171         * modules/openat-tests (Makefile.am): Likewise.
8172         * modules/readlinkat-tests (Makefile.am): Likewise.
8173         * modules/symlinkat-tests (Makefile.am): Likewise.
8174         * modules/linkat-tests (Makefile.am): Likewise.
8175         (Depends-on): Switch to filenamecat-lgpl.
8176         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
8177         LIBINTL.
8178         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
8179         * tests/test-linkat.c (main): Don't require xalloc.
8180
8181         hash, mgetgroups: drop xalloc dependency
8182         * lib/hash.c (includes): Adjust includes.
8183         * lib/mgetgroups.c (includes): Likewise.
8184         (xgetgroups): Move...
8185         * lib/xgetgroups.c: ...to new file.
8186         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
8187         * modules/xgetgroups: New file, split from...
8188         * modules/mgetgroups: ...here.
8189         (Depends-on): Add xalloc-oversized.
8190         * modules/hash (Depends-on): Likewise.
8191         * modules/hash-tests (Depends-on): Drop xalloc.
8192         (test_hash_LDADD): Drop unused library.
8193         * tests/test-hash.c (main): Break xalloc dependency.
8194         (includes): Drop unused include.
8195
8196         xalloc-oversized: new module
8197         * modules/xalloc-oversized: New module.
8198         * modules/xalloc (Depends-on): Add it.
8199         * lib/xalloc.h (xalloc_oversized): Move...
8200         * lib/xalloc-oversized.h: ...into new file.
8201
8202         utimecmp: drop dependency on xmalloc
8203         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
8204         due to memory pressure.
8205         * modules/utimecmp (Depends-on): Drop xalloc.
8206
8207 2011-04-27  Eric Blake  <eblake@redhat.com>
8208
8209         getcwd: fix mingw bugs
8210         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
8211         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
8212         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
8213
8214 2011-04-27  Bruno Haible  <bruno@clisp.org>
8215
8216         mkstemps: Ensure declaration on MacOS X 10.5.
8217         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
8218         * doc/glibc-functions/mkstemps.texi: Document header file problem on
8219         MacOS X.
8220
8221 2011-04-27  Bruno Haible  <bruno@clisp.org>
8222
8223         mkstemp: More documentation.
8224         * doc/posix-functions/mkstemp.texi: Document header file problem on
8225         MacOS X.
8226
8227 2011-04-27  Bruno Haible  <bruno@clisp.org>
8228
8229         mkstemp: Tweak configure message when cross-compiling.
8230         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
8231         result as a guess.
8232
8233 2011-04-27  Bruno Haible  <bruno@clisp.org>
8234
8235         clean-temp: Clarify what it does.
8236         * lib/clean-temp.h: Add more comments.
8237         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
8238         module.
8239         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
8240         * doc/glibc-functions/mkstemps.texi: Likewise.
8241         * doc/glibc-functions/mkostemps.texi: Likewise.
8242
8243 2011-04-27  Eric Blake  <eblake@redhat.com>
8244
8245         fchdir: avoid extra chdir and fix test
8246         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
8247         getcwd-lgpl.
8248         * lib/fchdir.c (get_name): Any absolute name will do; it does not
8249         have to be canonical.
8250         (canonicalize_file_name): Drop unused macro.
8251         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
8252
8253         filenamecat-lgpl: fix licence
8254         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
8255         when it was first created.
8256
8257         linkat, renameat: add missing dependency
8258         * modules/linkat (Depends-on): Require getcwd-lgpl.
8259         * modules/renameat (Depends-on): Likewise.
8260
8261         tests: reduce dependencies
8262         * tests/test-linkat.c (main): Use lighter-weight getcwd.
8263         * tests/test-renameat.c (main): Likewise.
8264         * modules/linkat-tests (Depends-on): Relax dependency.
8265         * modules/renameat-tests (Depends-on): Likewise.
8266         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
8267         dependency explicit.
8268
8269         save-cwd: reduce default dependency
8270         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
8271         * lib/save-cwd.c: Update comments.
8272         * NEWS: Document the semantic change.
8273
8274         getcwd: enhance tests
8275         * tests/test-getcwd-lgpl.c: New file, taken from...
8276         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
8277         repeat long path stress tests from m4 probe.
8278         * modules/getcwd-lgpl-tests: New module.
8279         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
8280         * m4/getcwd-abort-bug.m4: Update comment.
8281         * m4/getcwd-path-max.m4: Likewise.
8282
8283         getcwd-lgpl: new module
8284         * modules/getcwd-lgpl: New module.
8285         * lib/getcwd-lgpl.c: New file.
8286         * doc/posix-functions/getcwd.texi (getcwd): Document it.
8287         * MODULES.html.sh (lacking POSIX:2008): Likewise.
8288         * modules/getcwd (configure.ac): Set C witness.
8289         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
8290
8291         getcwd: tweak comments
8292         * m4/getcwd-abort-bug.m4: Fix comments.
8293         * m4/getcwd-path-max.m4: Likewise.
8294         * m4/getcwd.m4: Likewise.
8295
8296 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
8297         and Eric Blake  <eblake@redhat.com>
8298
8299         mkstemp: replace if system version uses wrong permissions
8300         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
8301         read/write mode bits set in file created by mkstemp.
8302         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
8303
8304 2011-04-27  Eric Blake  <eblake@redhat.com>
8305
8306         passfd: avoid compiler warning
8307         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
8308         Reported by Laine Stump.
8309
8310 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
8311
8312         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
8313         required by the NetBSD (and perhaps other 4.4BSD derived) join.
8314
8315 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
8316         and Eric Blake  <eblake@redhat.com>
8317
8318         mkstemp: mention clean-temp module
8319         * lib/mkstemp.c: Add comment.
8320         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
8321
8322 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
8323
8324         inttypes: also provide default values for 32-bit tests
8325         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
8326         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
8327
8328 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
8329
8330         strtoumax: remove dependency on strtoimax
8331         This is like the strtoull change of yesterday.
8332         * modules/strtoumax (Files): Add lib/strtoimax.c.
8333         (Depends-on): Remove strtoimax and add verify.
8334
8335         inttypes-incomplete: new module
8336         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
8337         all but the PRI* and SCN* parts of gl_INTTYPES_H.
8338         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
8339         of gl_INTTYPES_H.
8340         (gl_INTTYPES_H): Rewrite in terms of these new macros.
8341         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
8342         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
8343         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
8344         * modules/strtoumax, modules/xstrtol (Depends-on):
8345         Depend on inttypes-incomplete, not inttypes.
8346         * modules/inttypes-incomplete: New module, containing the contents
8347         of the old modules/inttypes module, except that the Files: section
8348         omits m4/inttypes-pri.m4, and the configure.ac section invokes
8349         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
8350         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
8351         (Depends-on): Depend only on inttypes-incomplete.
8352         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
8353
8354         inttypes: omit now-redundant strtoimax and strtoumax work
8355         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
8356         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
8357
8358         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
8359         This supports apps that need pointers to strtoimax and strtoumax,
8360         and ports to HP-UX 11.00 64.bit, which has macros that expand to
8361         nonexistent functions.  See
8362         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
8363         et seq.
8364         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
8365         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
8366         a macro.
8367         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
8368
8369 2011-04-25  Simon Josefsson  <simon@josefsson.org>
8370
8371         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
8372
8373 2011-04-25  Bruno Haible  <bruno@clisp.org>
8374
8375         strtol, strtoul: Mark modules as obsolete.
8376         * modules/strtol (Status, Notice): New sections.
8377         * modules/strtoul (Status, Notice): New sections.
8378
8379 2011-04-25  Bruno Haible  <bruno@clisp.org>
8380
8381         strtod: Remove check for strtod, unless supporting old platforms.
8382         * modules/strtod-obsolete: New file.
8383         * m4/strtod-obsolete.m4: New file.
8384         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
8385         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
8386         * modules/strtod (Depends-on): Add strtod-obsolete.
8387         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
8388
8389 2011-04-25  Bruno Haible  <bruno@clisp.org>
8390
8391         strcase: Make module obsolete.
8392         * modules/strcase (Status, Notice): New sections.
8393
8394 2011-04-25  Bruno Haible  <bruno@clisp.org>
8395
8396         dup2: Remove check for dup2, unless supporting old obsolete platforms.
8397         * modules/dup2-obsolete: New file.
8398         * m4/dup2-obsolete.m4: New file.
8399         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
8400         gl_FUNC_DUP2_OBSOLETE is not also defined.
8401         * modules/dup2 (Depends-on): Add dup2-obsolete.
8402         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
8403
8404 2011-04-25  Bruno Haible  <bruno@clisp.org>
8405
8406         strnlen: Avoid memchr related link error on old obsolete platforms.
8407         * modules/memchr-obsolete: New file.
8408         * m4/memchr-obsolete.m4: New file.
8409         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
8410         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
8411         * modules/memchr (Depends-on): Add memchr-obsolete.
8412         * modules/strnlen (Depends-on): Likewise.
8413         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
8414
8415 2011-04-25  Jim Meyering  <meyering@redhat.com>
8416
8417         maint.mk: makefile_at_at_check extend and clean up
8418         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
8419         in addition to */Makefile.am.
8420         Exempt legitimate uses of @VAR@ notation, e.g.,
8421         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
8422         Remove obsolete coreutils-specific comment.
8423         Prompted by discussion here:
8424         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
8425
8426 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
8427
8428         strtoul: remove dependency on strtol
8429         This is so that 'configure' need not check for strtol merely because
8430         the application needs strtoul.
8431         * modules/strtoul (Files): Add lib/strtol.c.
8432         (Depends-on): Remove strtol.
8433
8434         strtoull: remove dependency on strtoul
8435         This is like the strtoll change.
8436         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
8437         (Depends-on): Remove strtoul.
8438
8439         strtoll: remove dependency on strtol
8440         This is so that 'configure' need not check for strtol merely because
8441         the application needs strtoll.
8442         * modules/strtoll (Files): Add lib/strtol.c.
8443         (Depends-on): Remove strtol.
8444
8445 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8446
8447         inttypes: Move some configure check to module 'imaxdiv'.
8448         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
8449         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
8450         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
8451
8452 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8453
8454         inttypes: Move some configure check to module 'imaxabs'.
8455         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
8456         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
8457         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
8458
8459 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8460
8461         inttypes: Remove configure tests that are not needed since 2009-12-31.
8462         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
8463         gl_cv_header_working_inttypes_h.
8464
8465 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
8466
8467         * modules/strnlen (Depends-on): Remove memchr.
8468         The strnlen implementation doesn't need the memchr module's fixes; see
8469         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
8470
8471         strtol: remove dependency on wchar
8472         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
8473         * modules/strtol (Depends-on): Remove wchar.
8474
8475 2011-04-21  Eric Blake  <eblake@redhat.com>
8476
8477         passfd: fix test regression on Linux
8478         * modules/passfd-tests (configure.ac): Correct socketpair check.
8479
8480         passfd: speed up configure and drop unused code
8481         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
8482         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
8483         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
8484         Instead of probing at configure for unix_scm_rights_bsd44_way,
8485         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
8486         check to a struct member probe.
8487         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
8488         (sendfd, recvfd): Update preprocessor checks.
8489         * modules/passfd (Files): Reflect rename, and drop unused file.
8490         (Depends-on): Drop unused dependency.
8491
8492         passfd: allow compilation on mingw
8493         * modules/sys_socket (Depends-on): Add sys_uio.
8494         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
8495         iovec and a minimal struct msghdr.
8496         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
8497         * tests/test-sys_socket.c (main): Enhance test.
8498         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
8499         guaranteed to provide what we need.
8500         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
8501         * modules/passfd-tests (Depends-on): Add sys_wait.
8502         * tests/test-passfd.c (main): Skip test on mingw, for now.
8503         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
8504         partial 'struct msghdr' implementation.
8505
8506         sys_uio: new module
8507         * modules/sys_uio: New module.
8508         * modules/sys_uio-tests: Likewise.
8509         * lib/sys_uio.in.h: New file.
8510         * m4/sys_uio_h.m4: Likewise.
8511         * tests/test-sys_uio.c: Likewise.
8512         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
8513         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
8514
8515 2011-04-20  Jim Meyering  <meyering@redhat.com>
8516
8517         useless-if-before-free: avoid false-positive
8518         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
8519         disjunct so that it too requires a terminating ";".  Without that,
8520         this script would identify as useless one statement from gcc that
8521         was not:
8522           if (aligned_ptr)
8523             free (((void **) aligned_ptr) [-1]);
8524
8525 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
8526
8527         doc: update users.txt.
8528         * users.txt: Add barcode.
8529
8530 2011-04-19  Bruno Haible  <bruno@clisp.org>
8531
8532         ioctl: Remove link dependency on native Windows.
8533         * lib/fd-hook.h: Renamed from lib/close-hook.h.
8534         (gl_close_fn, gl_ioctl_fn): New types.
8535         (struct fd_hook): Renamed from struct close_hook. Change type of
8536         private_close_fn field. Add private_ioctl_fn field.
8537         (close_hook_fn): Add parameter for primary close method.
8538         (execute_close_hooks, execute_all_close_hooks): Likewise.
8539         (ioctl_hook_fn): New type.
8540         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
8541         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
8542         argument.
8543         (unregister_fd_hook): Renamed from unregister_close_hook.
8544         * lib/fd-hook.c: Renamed from lib/close-hook.c.
8545         Don't include <unistd.h>.
8546         (close): Remove undef.
8547         (anchor): Update.
8548         (execute_close_hooks): Add argument for primary close method.
8549         (execute_all_close_hooks): Likewise.
8550         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
8551         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
8552         argument. Allow each argument to be NULL.
8553         (unregister_fd_hook): Renamed from unregister_close_hook.
8554         * lib/close.c (rpl_close): Pass 'close' function pointer to
8555         execute_all_close_hooks.
8556         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
8557         (primary_ioctl): New function.
8558         (ioctl): Don't call ioctlsocket here. Instead, call
8559         execute_all_ioctl_hooks.
8560         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
8561         close method.
8562         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
8563         (fd_sockets_hook): Renamed from close_sockets_hook.
8564         (gl_sockets_startup, gl_sockets_cleanup): Update.
8565         * modules/fd-hook: Renamed from modules/close-hook. Update.
8566         * modules/close (Depends-on): Add fd-hook, remove close-hook.
8567         * modules/sockets (Depends-on): Likewise.
8568         * modules/ioctl (Depends-on): Add fd-hook.
8569         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
8570         GNULIB_SOCKET.
8571
8572 2011-04-19  Bruno Haible  <bruno@clisp.org>
8573
8574         Move the support of O_NONBLOCK in open() to the 'open' module.
8575         * modules/nonblocking (Depends-on): Remove 'open'.
8576         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
8577         gl_cv_have_open_O_NONBLOCK.
8578         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
8579         O_NONBLOCK support.
8580         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
8581
8582 2011-04-17  Bruno Haible  <bruno@clisp.org>
8583
8584         pipe2: Simplify code.
8585         * lib/pipe2.c (pipe2): Reduce code duplication.
8586
8587 2011-04-17  Bruno Haible  <bruno@clisp.org>
8588
8589         nonblocking: Add comment.
8590         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
8591
8592 2011-04-17  Bruno Haible  <bruno@clisp.org>
8593
8594         nonblocking: Add tests for sockets.
8595         * tests/test-nonblocking-socket.sh: New file.
8596         * tests/test-nonblocking-socket-main.c: New file.
8597         * tests/test-nonblocking-socket-child.c: New file.
8598         * tests/test-nonblocking-socket.h: New file.
8599         * tests/socket-server.h: New file.
8600         * tests/socket-client.h: New file.
8601         * modules/nonblocking-socket-tests: New file.
8602         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
8603
8604 2011-04-17  Bruno Haible  <bruno@clisp.org>
8605
8606         nonblocking: Add tests for pipes.
8607         * tests/test-nonblocking-pipe.sh: New file.
8608         * tests/test-nonblocking-pipe-main.c: New file.
8609         * tests/test-nonblocking-pipe-child.c: New file.
8610         * tests/test-nonblocking-pipe.h: New file.
8611         * tests/test-nonblocking-writer.h: New file.
8612         * tests/test-nonblocking-reader.h: New file.
8613         * tests/test-nonblocking-misc.h: New file.
8614         * modules/nonblocking-pipe-tests: New file.
8615         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
8616
8617 2011-04-16  Bruno Haible  <bruno@clisp.org>
8618
8619         gettext: Clarify the needed programmer actions.
8620         * modules/gettext (Notice): New field.
8621         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
8622
8623 2011-04-16  Bruno Haible  <bruno@clisp.org>
8624
8625         strchrnul: Tweak last commit.
8626         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
8627         bug.
8628         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
8629         as in _GL_FUNCDECL_SYS.
8630         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
8631         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
8632
8633 2011-04-15  Eric Blake  <eblake@redhat.com>
8634
8635         strchrnul: work around cygwin bug
8636         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
8637         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
8638         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
8639         * modules/string (Makefile.am): Substitute it.
8640         * lib/string.in.h (strchrnul): Use it.
8641
8642 2011-04-15  Bruno Haible  <bruno@clisp.org>
8643
8644         Don't require lib/stdio-write.c when only module 'stdio' is used.
8645         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
8646         invocation.
8647         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
8648
8649 2011-04-14  Bruno Haible  <bruno@clisp.org>
8650
8651         Support non-blocking pipe I/O in read() on native Windows.
8652         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
8653         (read): New declaration.
8654         * lib/read.c: New file.
8655         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
8656         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
8657         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
8658         vscanf): New declarations.
8659         * lib/stdio-read.c: New file.
8660         * m4/read.m4: New file.
8661         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
8662         REPLACE_READ.
8663         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
8664         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8665         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
8666         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
8667         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
8668         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8669         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
8670         * modules/read: New file.
8671         * modules/nonblocking (Files): Add lib/stdio-read.c.
8672         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
8673         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
8674         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
8675         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
8676         * modules/pread (Depends-on): Add read.
8677         * modules/safe-read (Depends-on): Likewise.
8678         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
8679         gets, scanf, vfscanf, vscanf): Verify signatures.
8680         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
8681         problem with non-blocking pipes.
8682         * doc/posix-functions/fgetc.texi: Likewise.
8683         * doc/posix-functions/fgets.texi: Likewise.
8684         * doc/posix-functions/fread.texi: Likewise.
8685         * doc/posix-functions/fscanf.texi: Likewise.
8686         * doc/posix-functions/getc.texi: Likewise.
8687         * doc/posix-functions/getchar.texi: Likewise.
8688         * doc/posix-functions/gets.texi: Likewise.
8689         * doc/posix-functions/scanf.texi: Likewise.
8690         * doc/posix-functions/vfscanf.texi: Likewise.
8691         * doc/posix-functions/vscanf.texi: Likewise.
8692
8693 2011-04-14  Bruno Haible  <bruno@clisp.org>
8694
8695         Support non-blocking pipe I/O in write() on native Windows.
8696         * lib/write.c (rpl_write): Split a write request that failed merely
8697         because the byte count was larger than the pipe buffer's size.
8698         * doc/posix-functions/write.texi: Mention the problem with large byte
8699         counts.
8700
8701 2011-04-14  Bruno Haible  <bruno@clisp.org>
8702
8703         wchar: Ensure that wchar_t gets defined on uClibc.
8704         * lib/wchar.in.h: On uClibc, include <stddef.h>.
8705         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
8706
8707 2011-04-13  Bruno Haible  <bruno@clisp.org>
8708
8709         safe-write, full-read: Avoid unnecessary compilation units.
8710         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
8711         (Depends-on): Remove safe-read. Add ssize_t.
8712         * modules/full-read (Files): Add lib/full-write.c.
8713         (Depends-on): Add full-write.
8714
8715 2011-04-13  Bruno Haible  <bruno@clisp.org>
8716
8717         Support non-blocking pipe I/O and SIGPIPE in pwrite().
8718         * modules/pwrite (Depends-on): Add 'write'.
8719
8720 2011-04-13  Bruno Haible  <bruno@clisp.org>
8721
8722         Support non-blocking pipe I/O in write() on native Windows.
8723         * lib/unistd.in.h (write): Enable replacement also if
8724         GNULIB_UNISTD_H_NONBLOCKING is 1.
8725         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
8726         (rpl_write): When failing to write on a non-blocking pipe, change
8727         errno from ENOSPC to EAGAIN.
8728         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
8729         putchar, puts, vfprintf, vprintf): Enable replacement also if
8730         GNULIB_STDIO_H_NONBLOCKING is 1.
8731         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
8732         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
8733         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
8734         CALL_WITH_SIGPIPE_EMULATION.
8735         (CALL_WITH_SIGPIPE_EMULATION): Use them.
8736         * m4/nonblocking.m4: New file.
8737         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
8738         for non-blocking I/O support.
8739         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8740         GNULIB_UNISTD_H_NONBLOCKING.
8741         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
8742         required for non-blocking I/O support.
8743         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
8744         * modules/nonblocking (Files): Add m4/nonblocking.m4,
8745         lib/stdio-write.c, m4/asm-underscore.m4.
8746         (Depends-on): Add stdio, unistd.
8747         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
8748         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
8749         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
8750         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
8751         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
8752         problem with non-blocking pipes.
8753         * doc/posix-functions/fputc.texi: Likewise.
8754         * doc/posix-functions/fputs.texi: Likewise.
8755         * doc/posix-functions/fwrite.texi: Likewise.
8756         * doc/posix-functions/printf.texi: Likewise.
8757         * doc/posix-functions/putc.texi: Likewise.
8758         * doc/posix-functions/putchar.texi: Likewise.
8759         * doc/posix-functions/puts.texi: Likewise.
8760         * doc/posix-functions/vfprintf.texi: Likewise.
8761         * doc/posix-functions/vprintf.texi: Likewise.
8762         * doc/posix-functions/write.texi: Likewise.
8763
8764 2011-04-10  Jim Meyering  <meyering@redhat.com>
8765
8766         maint.mk: prohibit doubled words
8767         Detect them also when they're separated by a newline.
8768         There are 3 ways to customize it:
8769           - disable the test on a per file basis, as usual with rules using
8770             $(VC_LIST_EXCEPT)
8771           - replace the default doubled-word-selecting regexp (affects all files)
8772           - ignore a particular file-vs-doubled-word match
8773         I nearly used that last one to ignore the "is is" match in
8774         coreutils' NEWS file, since the text was "ls -is is ..."
8775         To do that, I would have added this line to cfg.mk:
8776           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
8777         but it would have ignored any "is is" match in NEWS.
8778         Low probability, but still...
8779         Instead, I changed the text, slightly:
8780           -  ls -is is now consistent with ls -lis in ignoring values returned
8781           +  "ls -is" is now consistent with ls -lis in ignoring values returned
8782         * top/maint.mk (prohibit_double_word_RE_): Provide default.
8783         (prohibit_doubled_word_): Define.
8784         (sc_prohibit_doubled_word): New rule.
8785         (sc_prohibit_the_the): Remove.  Subsumed by the above.
8786
8787 2011-04-10  Jim Meyering  <meyering@redhat.com>
8788
8789         maint: fix doubled-word typo in comment
8790         * m4/gethostname.m4: s/is is/it is/
8791         * m4/getdomainname.m4: Likewise.
8792
8793 2011-04-10  Jim Meyering  <meyering@redhat.com>
8794
8795         maint: remove doubled word: s/it it/it/
8796         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
8797
8798 2011-04-10  Jim Meyering  <meyering@redhat.com>
8799
8800         maint.mk: remove useless semicolon and backslash
8801         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
8802         semicolon and backslash.
8803
8804 2011-04-10  Bruno Haible  <bruno@clisp.org>
8805
8806         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
8807         * modules/stdint-tests (Depends-on): Add wchar.
8808
8809 2011-04-10  Jim Meyering  <meyering@redhat.com>
8810
8811         maint: remove doubled words in comments, e.g., s/a a/a/
8812         * lib/strptime.c (day_of_the_week): s/the the/the/
8813         * tests/test-chown.h (test_chown): s/a a/a/
8814
8815         test-chown.h: correct a cast
8816         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
8817         when the destination is a stat.st_gid.
8818
8819 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
8820
8821         getaddrinfo: Fix test for sa_len member.
8822         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
8823         include <sys/types.h> before <sys/socket.h>.
8824
8825 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8826
8827         maint: change "can not" to "cannot"
8828         * doc/posix-functions/iconv.texi (iconv): This one crossed line
8829         boundaries.
8830
8831 2011-04-09  Jim Meyering  <meyering@redhat.com>
8832
8833         maint: change "a a" to "a"
8834         * tests/test-lchown.h (test_lchown): s/a a/a/
8835
8836         maint.mk: prohibit \<the the\>
8837         * top/maint.mk (sc_prohibit_the_the): New rule.
8838
8839         maint: fix "the the" in comment
8840         * lib/count-one-bits.h: s/the the/the/
8841
8842         maint: change "can not" to "cannot"
8843         But do not change the occurrences in maintain.texi or in
8844         build-aux/po/Makefile.in.in, which I presume comes from gettext.
8845         * doc/gnulib-tool.texi: s/can not/cannot/
8846         * doc/posix-functions/accept.texi (accept): Likewise.
8847         * doc/posix-functions/socket.texi (socket): Likewise.
8848         * lib/mbrtowc.c: Likewise.
8849
8850         maint.mk: prohibit use of "can not"
8851         * top/maint.mk (sc_prohibit_can_not): New rule.
8852         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
8853
8854 2011-04-09  Bruno Haible  <bruno@clisp.org>
8855
8856         careadlinkat: Guard against misuse of careadlinkatcwd.
8857         * lib/careadlinkat.c: Include <stdlib.h>.
8858         (careadlinkatcwd): Check that the fd argument is as expected.
8859
8860 2011-04-09  Bruno Haible  <bruno@clisp.org>
8861
8862         careadlinkat: Use common coding style.
8863         * lib/careadlinkat.c: Move gnulib includes after system includes.
8864
8865 2011-04-09  Bruno Haible  <bruno@clisp.org>
8866
8867         careadlinkat: Clarify specification.
8868         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
8869         (careadlinkatcwd): Add comment.
8870         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
8871
8872 2011-04-09  Bruno Haible  <bruno@clisp.org>
8873
8874         areadlinkat: Avoid link error on many platforms.
8875         * modules/areadlinkat (Depends-on): Add areadlink.
8876
8877 2011-04-09  Bruno Haible  <bruno@clisp.org>
8878
8879         allocator, careadlinkat: Fix double-inclusion guard.
8880         * lib/allocator.h: Fix double-inclusion guard.
8881         * lib/careadlinkat.h: Likewise.
8882
8883 2011-04-09  Bruno Haible  <bruno@clisp.org>
8884
8885         relocatable-prog-wrapper: Update after module 'areadlink' changed.
8886         * lib/relocwrapper.c: Update dependencies hierarchy.
8887         * build-aux/install-reloc: Update list of files to be compiled.
8888         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
8889         lib/allocator.[hc].
8890
8891 2011-04-08  Eric Blake  <eblake@redhat.com>
8892
8893         strftime: silence gnulib-tool warning
8894         * modules/strftime-tests (Depends-on): Drop automatic dependency.
8895
8896 2011-04-08  Bruno Haible  <bruno@clisp.org>
8897
8898         verify: Fix syntax error with GCC 4.6 in C++ mode.
8899         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
8900         (HAVE_STATIC_ASSERT): New macro.
8901         (verify_true, verify): Use 'static_assert' if it is supported and
8902         '_Static_assert' is not supported.
8903
8904 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
8905
8906         allocator: New module.
8907         * modules/allocator, lib/allocator.c: New files.
8908         * lib/allocator.h (stdlib_allocator): New decl.
8909         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
8910         Remove.  Do not include <stdlib.h>.
8911         (careadlinkat): Use stdlib_allocator instead of rolling our own.
8912         * modules/careadlinkat (Files): Remove lib/allocator.h.
8913         (Depends-on): Add allocator.
8914
8915         stdlib: let modules use system malloc, realloc
8916         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
8917         if !_GL_USE_STDLIB_ALLOC.
8918         (malloc, realloc): Limit this change to a smaller scope.
8919
8920         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
8921         (malloc, realloc): Don't #undef; no longer needed.
8922         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8923         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8924         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
8925         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8926         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8927         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8928         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8929         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
8930
8931         careadlinkat: rename members to avoid problem
8932         * lib/allocator.h (struct allocator): Rename members from
8933         malloc/realloc to allocate/reallocate, to avoid problems if malloc
8934         and realloc are #define'd.  Reported by Eric Blake in
8935         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
8936         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
8937
8938 2011-04-08  Eric Blake  <eblake@redhat.com>
8939
8940         nonblocking: reduce dependency
8941         * tests/test-nonblocking.c: Only test sockets when in use.
8942         * modules/nonblocking-tests (Depends-on): Drop socket.
8943         (Makefile.am): Link even if sockets are not present.
8944         * modules/pipe2-tests (Makefile.am): Likewise.
8945         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
8946
8947         pipe2: fix O_NONBLOCK support on mingw
8948         * modules/pipe2 (Depends-on): Add nonblocking.
8949         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
8950         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
8951         * tests/test-nonblocking.c (main): Likewise.
8952         * modules/pipe2-tests (Makefile.am): Avoid link failure.
8953
8954         fcntl-h: fix O_ACCMODE on cygwin
8955         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
8956         * lib/fcntl.in.h (O_ACCMODE): Fix it.
8957
8958         pipe-filter: drop O_NONBLOCK workarounds
8959         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
8960         * modules/pipe-filter-ii (Depends-on): Likewise.
8961         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
8962
8963         nonblocking: provide O_NONBLOCK for mingw
8964         * modules/nonblocking (Depends-on): Add open.
8965         (configure.ac): Set new witness macro.
8966         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
8967         * modules/fcntl-h (Makefile.am): Substitute it.
8968         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
8969         nonblocking module is in use.
8970         * lib/nonblocking.c: Adjust portability test.
8971         * lib/open.c (open): Don't let native open see gnulib flag.
8972         * tests/test-fcntl-h.c (main): Enhance test.
8973         * tests/test-open.h (test_open): Likewise.
8974         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
8975
8976         careadlinkat: fix compilation error on mingw
8977         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
8978         within struct allocator.
8979
8980 2011-04-06  Eric Blake  <eblake@redhat.com>
8981
8982         binary-io: relicense under LGPLv2+
8983         * modules/binary-io (License): Relax to LGPLv2+.
8984         Requested for libvirt, and required by pipe2.
8985
8986 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
8987
8988         verify: use _Static_assert if available
8989         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
8990         (verify_true, verify): Use it if available.  This generates better
8991         diagnostics with GCC 4.6.0 and later.
8992
8993 2011-04-05  Bruno Haible  <bruno@clisp.org>
8994
8995         Remove leftover generated .h files after config.status changed.
8996
8997         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
8998         GL_GENERATE_ALLOCA_H.
8999         * modules/alloca-opt (Makefile.am): Remove alloca.h if
9000         GL_GENERATE_ALLOCA_H evaluates to false.
9001
9002         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
9003         GL_GENERATE_ARGZ_H.
9004         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
9005         evaluates to false.
9006
9007         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
9008         GL_GENERATE_BYTESWAP_H.
9009         * modules/byteswap (Makefile.am): Remove byteswap.h if
9010         GL_GENERATE_BYTESWAP_H evaluates to false.
9011
9012         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
9013         GL_GENERATE_ERRNO_H.
9014         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
9015         evaluates to false.
9016
9017         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
9018         GL_GENERATE_FLOAT_H.
9019         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
9020         evaluates to false.
9021
9022         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
9023         GL_GENERATE_FNMATCH_H.
9024         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
9025         GL_GENERATE_FNMATCH_H evaluates to false.
9026
9027         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
9028         GL_GENERATE_GLOB_H.
9029         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
9030         evaluates to false.
9031
9032         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
9033         automake conditional GL_GENERATE_ICONV_H.
9034         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
9035         evaluates to false.
9036
9037         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
9038         GL_GENERATE_NETINET_IN_H.
9039         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
9040         GL_GENERATE_NETINET_IN_H evaluates to false.
9041
9042         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
9043         conditional GL_GENERATE_PTHREAD_H.
9044         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
9045         * modules/pthread (Makefile.am): Remove pthread.h if
9046         GL_GENERATE_PTHREAD_H evaluates to false.
9047
9048         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
9049         GL_GENERATE_SCHED_H.
9050         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
9051         evaluates to false.
9052
9053         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
9054         conditional GL_GENERATE_SELINUX_CONTEXT_H.
9055         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
9056         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
9057
9058         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
9059         GL_GENERATE_STDARG_H.
9060         * modules/stdarg (Makefile.am): Remove stdarg.h if
9061         GL_GENERATE_STDARG_H evaluates to false.
9062
9063         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
9064         GL_GENERATE_STDBOOL_H.
9065         * modules/stdbool (Makefile.am): Remove stdbool.h if
9066         GL_GENERATE_STDBOOL_H evaluates to false.
9067
9068         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
9069         conditional GL_GENERATE_STDDEF_H.
9070         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
9071         * modules/stddef (Makefile.am): Remove stddef.h if
9072         GL_GENERATE_STDDEF_H evaluates to false.
9073
9074         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
9075         GL_GENERATE_STDINT_H.
9076         * modules/stdint (Makefile.am): Remove stdint.h if
9077         GL_GENERATE_STDINT_H evaluates to false.
9078
9079         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
9080         GL_GENERATE_SYSEXITS_H.
9081         * modules/sysexits (Makefile.am): Remove sysexits.h if
9082         GL_GENERATE_SYSEXITS_H evaluates to false.
9083
9084         Reported by Karl Berry and Ralf Wildenhues.
9085
9086 2011-04-05  Bruno Haible  <bruno@clisp.org>
9087
9088         Ensure to rebuild generated .h files when config.status has changed.
9089         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
9090         config.status.
9091         * modules/ctype (Makefile.am): Likewise.
9092         * modules/dirent (Makefile.am): Likewise.
9093         * modules/errno (Makefile.am): Likewise.
9094         * modules/fcntl-h (Makefile.am): Likewise.
9095         * modules/float (Makefile.am): Likewise.
9096         * modules/getopt-posix (Makefile.am): Likewise.
9097         * modules/glob (Makefile.am): Likewise.
9098         * modules/iconv-h (Makefile.am): Likewise.
9099         * modules/inttypes (Makefile.am): Likewise.
9100         * modules/langinfo (Makefile.am): Likewise.
9101         * modules/locale (Makefile.am): Likewise.
9102         * modules/math (Makefile.am): Likewise.
9103         * modules/netdb (Makefile.am): Likewise.
9104         * modules/netinet_in (Makefile.am): Likewise.
9105         * modules/poll-h (Makefile.am): Likewise.
9106         * modules/pthread (Makefile.am): Likewise.
9107         * modules/pty (Makefile.am): Likewise.
9108         * modules/sched (Makefile.am): Likewise.
9109         * modules/search (Makefile.am): Likewise.
9110         * modules/selinux-h (Makefile.am): Likewise.
9111         * modules/signal (Makefile.am): Likewise.
9112         * modules/spawn (Makefile.am): Likewise.
9113         * modules/stdarg (Makefile.am): Likewise.
9114         * modules/stdbool (Makefile.am): Likewise.
9115         * modules/stddef (Makefile.am): Likewise.
9116         * modules/stdint (Makefile.am): Likewise.
9117         * modules/stdio (Makefile.am): Likewise.
9118         * modules/stdlib (Makefile.am): Likewise.
9119         * modules/string (Makefile.am): Likewise.
9120         * modules/strings (Makefile.am): Likewise.
9121         * modules/sys_file (Makefile.am): Likewise.
9122         * modules/sys_ioctl (Makefile.am): Likewise.
9123         * modules/sys_select (Makefile.am): Likewise.
9124         * modules/sys_socket (Makefile.am): Likewise.
9125         * modules/sys_stat (Makefile.am): Likewise.
9126         * modules/sys_time (Makefile.am): Likewise.
9127         * modules/sys_times (Makefile.am): Likewise.
9128         * modules/sys_utsname (Makefile.am): Likewise.
9129         * modules/sys_wait (Makefile.am): Likewise.
9130         * modules/sysexits (Makefile.am): Likewise.
9131         * modules/termios (Makefile.am): Likewise.
9132         * modules/time (Makefile.am): Likewise.
9133         * modules/unistd (Makefile.am): Likewise.
9134         * modules/wchar (Makefile.am): Likewise.
9135         * modules/wctype-h (Makefile.am): Likewise.
9136         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
9137
9138 2011-04-05  Bruno Haible  <bruno@clisp.org>
9139
9140         pipe2: Relicense under LGPLv2+.
9141         * modules/pipe2 (License): Change to LGPLv2+.
9142         Requested by Eric Blake, for libvirt.
9143
9144 2011-04-05  Bruce Korb  <bkorb@gnu.org>
9145
9146         bootstrap: compute gnulib_extra_files after updating build_aux
9147         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
9148         change build_aux or also supply gnulib_extra_files.  Handle correctly.
9149
9150 2011-04-05  Eric Blake  <eblake@redhat.com>
9151
9152         bootstrap: preserve git whitelist item sorting
9153         * build-aux/bootstrap (sort_patterns): New function.
9154         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
9155
9156 2011-04-05  Simon Josefsson  <simon@josefsson.org>
9157
9158         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
9159         sc_space_tab check.
9160
9161 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
9162
9163         areadlink, areadlinkat: rewrite in terms of careadlinkat
9164         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
9165         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
9166         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
9167         (malloc, realloc): Remove #undefs.
9168         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
9169         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
9170         readlink, ssize_t, stdint, unistd.
9171         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
9172         areadlink, stdint.
9173
9174         careadlinkat: new module
9175         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
9176         * modules/careadlinkat: New files, written by me with
9177         a review and feedback from Ben Pfaff in
9178         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
9179
9180 2011-04-01  Bruno Haible  <bruno@clisp.org>
9181
9182         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
9183         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
9184         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
9185         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
9186         Reported by Bruce Korb <bruce.korb@gmail.com>.
9187
9188 2011-04-01  Bruno Haible  <bruno@clisp.org>
9189
9190         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
9191         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
9192         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
9193         * modules/wcpcpy (Depends-on): Add extensions.
9194         * modules/wcpncpy (Depends-on): Likewise.
9195         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
9196         systems.
9197         * doc/posix-functions/wcpncpy.texi: Likewise.
9198         * doc/posix-functions/wcwidth.texi: Likewise.
9199
9200 2011-03-31  Eric Blake  <eblake@redhat.com>
9201
9202         nonblocking: fix mingw test failures
9203         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
9204         non-blocking flag on regular file.
9205         (get_nonblocking_flag): Set errno on invalid fd.
9206         * tests/test-nonblocking.c (main): Avoid test failure on
9207         directories if fchdir is not active.
9208         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
9209
9210 2011-03-31  Bruno Haible  <bruno@clisp.org>
9211
9212         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
9213         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
9214         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
9215         Reported by Simon Josefsson <simon@josefsson.org>.
9216
9217 2011-03-31  Bruno Haible  <bruno@clisp.org>
9218         and Eric Blake  <eblake@redhat.com>
9219
9220         nonblocking: new module
9221         * modules/nonblocking: New module.
9222         * modules/nonblocking-tests: Likewise.
9223         * lib/nonblocking.h: New file.
9224         * lib/nonblocking.c: Likewise.
9225         * tests/test-nonblocking.c: New test.
9226         * lib/ioctl.c (ioctl) [mingw]: Update comment.
9227
9228 2011-03-30  Bruno Haible  <bruno@clisp.org>
9229
9230         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
9231         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
9232         instead of 'printf' format for GCC >= 4.4.
9233         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
9234         (fprintf, printf, vfprintf, vprintf): Declare with
9235         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
9236         the system's vfprintf() function.
9237         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
9238
9239 2011-03-30  Eric Blake  <eblake@redhat.com>
9240
9241         passfd: fix scoping bug
9242         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
9243         before sendmsg/recvmsg.
9244
9245         passfd: standardize coding conventions
9246         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
9247         can be learned at compile time.
9248         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
9249         ifdefs.
9250         (sendfd, recvfd): Follow gnulib code conventions.
9251
9252         passfd: fix incorrect sendmsg arguments
9253         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
9254         incorrect msg_controllen value.
9255         * modules/passfd-tests (Depends-on): Check for alarm.
9256         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
9257         Reported by Bastien ROUCARIES.
9258
9259 2011-03-30  Bruno Haible  <bruno@clisp.org>
9260
9261         c-strcasestr: Relicense under LGPLv2+.
9262         * modules/c-strcasestr (License): Change to LGPLv2+.
9263         Requested by Eric Blake, for libvirt.
9264
9265 2011-03-30  Simon Josefsson  <simon@josefsson.org>
9266
9267         * users.txt: Add libidn2.  Fix libtasn1 link.
9268
9269 2011-03-30  Jim Meyering  <meyering@redhat.com>
9270
9271         tests: readlink* ("",... fails with EINVAL on newer kernels
9272         readlink and readlinkat have typically failed with ENOENT for
9273         the invalid, empty file name,  "".  However, with the advent
9274         of linux-2.6.39, they fail with EINVAL.
9275         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
9276         when operating on the empty file name.
9277         * tests/test-readlink.h (test_readlink): Likewise.
9278
9279 2011-03-29  Bruno Haible  <bruno@clisp.org>
9280
9281         Relicense some modules under LGPLv2+, for libidn2.
9282         * modules/array-mergesort (License): Change to LGPLv2+.
9283         * modules/c-strcaseeq (License): Likewise.
9284         * modules/striconveh (License): Likewise.
9285         * modules/striconveha (License): Likewise.
9286         * modules/uniconv/base (License): Likewise.
9287         * modules/uniconv/u8-conv-from-enc (License): Likewise.
9288         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
9289         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
9290         * modules/unictype/base (License): Likewise.
9291         * modules/unictype/bidiclass-of (License): Likewise.
9292         * modules/unictype/category-M (License): Likewise.
9293         * modules/unictype/category-none (License): Likewise.
9294         * modules/unictype/category-of (License): Likewise.
9295         * modules/unictype/category-test (License): Likewise.
9296         * modules/unictype/category-test-withtable (License): Likewise.
9297         * modules/unictype/combining-class (License): Likewise.
9298         * modules/unictype/joiningtype-of (License): Likewise.
9299         * modules/unictype/scripts (License): Likewise.
9300         * modules/uninorm/base (License): Likewise.
9301         * modules/uninorm/canonical-decomposition (License): Likewise.
9302         * modules/uninorm/composition (License): Likewise.
9303         * modules/uninorm/decompose-internal (License): Likewise.
9304         * modules/uninorm/decomposition-table (License): Likewise.
9305         * modules/uninorm/nfc (License): Likewise.
9306         * modules/uninorm/nfd (License): Likewise.
9307         * modules/uninorm/u32-normalize (License): Likewise.
9308         * modules/unistr/base (License): Likewise.
9309         * modules/unistr/u32-cpy (License): Likewise.
9310         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
9311         * modules/unistr/u32-to-u8 (License): Likewise.
9312         * modules/unistr/u32-uctomb (License): Likewise.
9313         * modules/unistr/u8-check (License): Likewise.
9314         * modules/unistr/u8-mblen (License): Likewise.
9315         * modules/unistr/u8-mbtouc (License): Likewise.
9316         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
9317         * modules/unistr/u8-mbtoucr (License): Likewise.
9318         * modules/unistr/u8-prev (License): Likewise.
9319         * modules/unistr/u8-strlen (License): Likewise.
9320         * modules/unistr/u8-to-u32 (License): Likewise.
9321         * modules/unistr/u8-uctomb (License): Likewise.
9322         * modules/unitypes (License): Likewise.
9323         Requested by Simon Josefsson.
9324
9325 2011-03-29  Simon Josefsson  <simon@josefsson.org>
9326
9327         lib-symbol-visibility: Add a notice.
9328         * modules/lib-symbol-visibility (Notice): New field.
9329
9330 2011-03-29  Bruno Haible  <bruno@clisp.org>
9331
9332         getaddrinfo: Doc fix.
9333         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
9334         section "fixed in Gnulib".
9335
9336 2011-03-28  Simon Josefsson  <simon@josefsson.org>
9337
9338         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
9339         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
9340
9341 2011-03-26  Bruno Haible  <bruno@clisp.org>
9342
9343         unictype/property-byname: Reduce the number of load-time relocations.
9344         * lib/unictype/pr_byname.c: Include <stdlib.h>.
9345         (UC_PROPERTY_INDEX_*): New enumeration values.
9346         (uc_property_byname): Convert an index from the lookup table to an
9347         uc_property_t.
9348         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
9349         values.
9350
9351 2011-03-26  Bruno Haible  <bruno@clisp.org>
9352
9353         unictype/property-byname: Allow omitted word separators and aliases.
9354         * lib/unictype/pr_byname.gperf: Add property names without word
9355         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
9356         for 'space'.
9357
9358 2011-03-26  Bruno Haible  <bruno@clisp.org>
9359
9360         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
9361         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
9362         also hyphens to space.
9363         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
9364         without spaces.
9365         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
9366
9367 2011-03-26  Bruno Haible  <bruno@clisp.org>
9368
9369         unictype/joiningtype-byname: Recognize long names as well.
9370         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
9371         a long name.
9372         * lib/unictype/joiningtype_byname.c: Include <string.h>,
9373         unictype/joiningtype_byname.h.
9374         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
9375         * lib/unictype/joiningtype_byname.gperf: New file.
9376         * modules/unictype/joiningtype-byname (Files): Add
9377         lib/unictype/joiningtype_byname.gperf.
9378         (Depends-on): Add gperf.
9379         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
9380         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
9381         long names.
9382
9383         Tests for module 'unictype/joiningtype-longname'.
9384         * modules/unictype/joiningtype-longname-tests: New file.
9385         * tests/unictype/test-joiningtype_longname.c: New file.
9386
9387         New module 'unictype/joiningtype-longname'.
9388         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
9389         * lib/unictype/joiningtype_longname.c: New file.
9390         * modules/unictype/joiningtype-longname: New file.
9391         * modules/unictype/joiningtype-all (Depends-on): Add
9392         unictype/joiningtype-longname.
9393
9394 2011-03-26  Bruno Haible  <bruno@clisp.org>
9395
9396         unictype/bidiclass-byname: Recognize long names as well.
9397         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
9398         name.
9399         * lib/unictype/bidi_byname.c: Include <string.h>,
9400         unictype/bidi_byname.h.
9401         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
9402         * lib/unictype/bidi_byname.gperf: New file.
9403         * modules/unictype/bidiclass-byname (Files): Add
9404         lib/unictype/bidi_byname.gperf.
9405         (Depends-on): Add gperf.
9406         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
9407         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
9408         long names.
9409
9410         Tests for module 'unictype/bidiclass-longname'.
9411         * modules/unictype/bidiclass-longname-tests: New file.
9412         * tests/unictype/test-bidi_longname.c: New file.
9413
9414         New module 'unictype/bidiclass-longname'.
9415         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
9416         * lib/unictype/bidi_longname.c: New file.
9417         * modules/unictype/bidiclass-longname: New file.
9418         * modules/unictype/bidiclass-all (Depends-on): Add
9419         unictype/bidiclass-longname.
9420
9421 2011-03-26  Bruno Haible  <bruno@clisp.org>
9422
9423         unictype/bidi*: Rename modules.
9424         * modules/unictype/bidiclass-all: Renamed from
9425         modules/unictype/bidicategory-all.
9426         * modules/unictype/bidiclass-name: Renamed from
9427         modules/unictype/bidiclass-name.
9428         (Description): Update.
9429         * modules/unictype/bidiclass-name-tests: Renamed from
9430         modules/unictype/bidicategory-name-tests.
9431         * modules/unictype/bidiclass-byname: Renamed from
9432         modules/unictype/bidicategory-byname.
9433         (Description): Update.
9434         * modules/unictype/bidiclass-byname-tests: Renamed from
9435         modules/unictype/bidicategory-byname-tests.
9436         * modules/unictype/bidiclass-of: Renamed from
9437         modules/unictype/bidicategory-of.
9438         (Description): Update.
9439         * modules/unictype/bidiclass-of-tests: Renamed from
9440         modules/unictype/bidicategory-of-tests.
9441         * modules/unictype/bidiclass-test: Renamed from
9442         modules/unictype/bidicategory-test.
9443         (Description): Update.
9444         * modules/unictype/bidiclass-test-tests: Renamed from
9445         modules/unictype/bidicategory-test-tests.
9446         * modules/unictype/bidicategory-all: New file, a simple redirection.
9447         * modules/unictype/bidicategory-name: Likewise.
9448         * modules/unictype/bidicategory-byname: Likewise.
9449         * modules/unictype/bidicategory-of: Likewise.
9450         * modules/unictype/bidicategory-test: Likewise.
9451         * modules/unictype/property-bidi-* (Dependencies): Update.
9452         * lib/unictype/bidi_*.c: Update comment.
9453
9454 2011-03-26  Bruno Haible  <bruno@clisp.org>
9455
9456         unictype/bidi*: Rename functions, part 2.
9457         * modules/unictype/bidicategory-name (configure.ac): Update required
9458         libunistring version.
9459         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
9460
9461 2011-03-25  Bruno Haible  <bruno@clisp.org>
9462
9463         New module 'unictype/combining-class-all'.
9464         * modules/unictype/combining-class-all: New file.
9465
9466         Tests for module 'unictype/combining-class-byname'.
9467         * modules/unictype/combining-class-byname-tests: New file.
9468         * tests/unictype/test-combiningclass_byname.c: New file.
9469
9470         New module 'unictype/combining-class-byname'.
9471         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
9472         * lib/unictype/combiningclass_byname.c: New file.
9473         * lib/unictype/combiningclass_byname.gperf: New file.
9474         * modules/unictype/combining-class-byname: New file.
9475
9476         Tests for module 'unictype/combining-class-longname'.
9477         * modules/unictype/combining-class-longname-tests: New file.
9478         * tests/unictype/test-combiningclass_longname.c: New file.
9479
9480         New module 'unictype/combining-class-longname'.
9481         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
9482         * lib/unictype/combiningclass_longname.c: New file.
9483         * modules/unictype/combining-class-longname: New file.
9484
9485         Tests for module 'unictype/combining-class-name'.
9486         * modules/unictype/combining-class-name-tests: New file.
9487         * tests/unictype/test-combiningclass_name.c: New file.
9488
9489         New module 'unictype/combining-class-name'.
9490         * lib/unictype.in.h (uc_combining_class_name): New declaration.
9491         * lib/unictype/combiningclass_name.c: New file.
9492         * modules/unictype/combining-class-name: New file.
9493
9494 2011-03-25  Bruno Haible  <bruno@clisp.org>
9495
9496         unictype/combining-class: Rename source files.
9497         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
9498         of unictype/combining.h.
9499         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
9500         Update.
9501         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
9502         * modules/unictype/combining-class (Description): Fix.
9503         (Files, Makefile.am): Update.
9504         * tests/unictype/test-combiningclass.c: Renamed from
9505         tests/unictype/test-combining.c.
9506         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
9507
9508 2011-03-25  Bruno Haible  <bruno@clisp.org>
9509
9510         unictype: Update list of canonical combining classes.
9511         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
9512
9513 2011-03-25  Bruno Haible  <bruno@clisp.org>
9514
9515         unictype/category-byname: Recognize long names as well.
9516         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
9517         a long name.
9518         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
9519         unictype/categ_byname.h.
9520         (UC_CATEGORY_INDEX_*): New enumeration values.
9521         (uc_general_category_byname): Use uc_general_category_lookup and
9522         convert from index to value.
9523         * lib/unictype/categ_byname.gperf: New file.
9524         * modules/unictype/category-byname (Files): Add
9525         lib/unictype/categ_byname.gperf.
9526         (Depends-on): Add gperf.
9527         (Makefile.am): Add rule for generating unictype/categ_byname.h.
9528         * tests/unictype/test-categ_byname.c (main): Test the recognition of
9529         long names.
9530
9531         Tests for module 'unictype/category-longname'.
9532         * modules/unictype/category-longname-tests: New file.
9533         * tests/unictype/test-categ_longname.c: New file.
9534
9535         New module 'unictype/category-longname'.
9536         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
9537         * lib/unictype/categ_longname.c: New file.
9538         * modules/unictype/category-longname: New file.
9539         * modules/unictype/category-all (Depends-on): Add it.
9540
9541 2011-03-25  Bruno Haible  <bruno@clisp.org>
9542
9543         Tests for module 'unictype/category-LC'.
9544         * modules/unictype/category-LC-tests: New file.
9545         * tests/unictype/test-categ_LC.c: New file, automatically generated.
9546
9547         New module 'unictype/category-LC'.
9548         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
9549         (UC_CATEGORY_LC): New declaration.
9550         (UC_CASED_LETTER): New macro.
9551         * lib/gen-uni-tables.c (is_category_LC): New function.
9552         (output_categories): Also handle category LC.
9553         (UC_CATEGORY_MASK_LC): New enumeration value.
9554         (general_category_byname): Also handle category LC.
9555         * lib/unictype/categ_LC.c: New file.
9556         * lib/unictype/categ_LC.h: New file, automatically generated.
9557         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
9558         category LC.
9559         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
9560         * modules/unictype/category-LC: New file.
9561         * modules/unictype/category-byname (Depends-on): Add
9562         unictype/category-LC.
9563         * modules/unictype/category-all (Depends-on): Likewise.
9564
9565 2011-03-25  Eric Blake  <eblake@redhat.com>
9566
9567         xmalloc: revert yesterday's regression
9568         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
9569         realloc's underlying behavior (allowing allocation of zero-size
9570         objects, especially if malloc-gnu is also in use).
9571
9572 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
9573
9574         maint.mk: add missing version to VC-tag
9575         * top/maint.mk: git tag was missing actual tag name; add it.
9576
9577         valgrind: do leak checking, and exit with code 1 on error (not 0)
9578         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
9579         to VALGRIND.
9580
9581 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
9582
9583         posix-modules: say what it does.
9584         * posix-modules: Add a line to the --help output saying what it does.
9585
9586 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
9587
9588         xmalloc: Do not leak if underlying realloc is C99 compatible.
9589         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
9590         This avoids a leak on C99-based systems.  See
9591         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
9592
9593 2011-03-24  Eric Blake  <eblake@redhat.com>
9594
9595         realloc: document portability problem
9596         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
9597         passing 0 size to realloc.
9598
9599 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
9600
9601         doc: update users.txt
9602         * users.txt: Add cvsps, tmpwatch
9603
9604 2011-03-23  Matt Rice  <ratmice@gmail.com>
9605
9606         doc: update users.txt
9607         * users.txt: Add gdb.
9608
9609 2011-03-23  Jim Meyering  <meyering@redhat.com>
9610
9611         doc: update users.txt
9612         Looking through matches up to the following URL (there are still
9613         several more pages), I found several projects that use gnulib:
9614         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
9615         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
9616         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
9617
9618 2011-03-22  Bruno Haible  <bruno@clisp.org>
9619
9620         unictype/bidi*: Rename functions.
9621         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
9622         uc_bidi_class, uc_is_bidi_class): New declarations.
9623         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
9624         uc_bidi_category_byname.
9625         (uc_bidi_category_byname): New function.
9626         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
9627         u_bidi_category_name.
9628         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
9629         (uc_bidi_category_name): New function.
9630         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
9631         uc_bidi_category.
9632         (uc_bidi_category): New function.
9633         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
9634         uc_is_bidi_category. Invoke uc_bidi_class.
9635         (uc_is_bidi_category): New function.
9636         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
9637         instead of uc_bidi_category_byname.
9638         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
9639         instead of uc_bidi_category_name.
9640         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
9641         uc_bidi_category.
9642         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
9643         instead of uc_is_bidi_category.
9644
9645 2011-03-21  Bruno Haible  <bruno@clisp.org>
9646
9647         New module 'unictype/joininggroup-all'.
9648         * modules/unictype/joininggroup-all: New file.
9649
9650         Tests for module 'unictype/joininggroup-of'.
9651         * modules/unictype/joininggroup-of-tests: New file.
9652         * tests/unictype/test-joininggroup_of.c: New file.
9653         * tests/unictype/test-joininggroup_of.h: New file, automatically
9654         generated by gen-uni-tables.
9655
9656         New module 'unictype/joininggroup-of'.
9657         * modules/unictype/joininggroup-of: New file.
9658         * lib/unictype/joininggroup_of.c: New file.
9659         * lib/unictype/joininggroup_of.h: New file, automatically generated by
9660         gen-uni-tables.
9661
9662         Tests for module 'unictype/joininggroup-byname'.
9663         * modules/unictype/joininggroup-byname-tests: New file.
9664         * tests/unictype/test-joininggroup_byname.c: New file.
9665
9666         New module 'unictype/joininggroup-byname'.
9667         * modules/unictype/joininggroup-byname: New file.
9668         * lib/unictype/joininggroup_byname.c: New file.
9669         * lib/unictype/joininggroup_byname.gperf: New file.
9670
9671         Tests for module 'unictype/joininggroup-name'.
9672         * modules/unictype/joininggroup-name-tests: New file.
9673         * tests/unictype/test-joininggroup_name.c: New file.
9674
9675         New module 'unictype/joininggroup-name'.
9676         * modules/unictype/joininggroup-name: New file.
9677         * lib/unictype/joininggroup_name.c: New file.
9678         * lib/unictype/joininggroup_name.h: New file.
9679
9680         New module 'unictype/joiningtype-all'.
9681         * modules/unictype/joiningtype-all: New file.
9682
9683         Tests for module 'unictype/joiningtype-of'.
9684         * modules/unictype/joiningtype-of-tests: New file.
9685         * tests/unictype/test-joiningtype_of.c: New file.
9686         * tests/unictype/test-joiningtype_of.h: New file, automatically
9687         generated by gen-uni-tables.
9688
9689         New module 'unictype/joiningtype-of'.
9690         * modules/unictype/joiningtype-of: New file.
9691         * lib/unictype/joiningtype_of.c: New file.
9692         * lib/unictype/joiningtype_of.h: New file, automatically generated by
9693         gen-uni-tables.
9694
9695         Tests for module 'unictype/joiningtype-byname'.
9696         * modules/unictype/joiningtype-byname-tests: New file.
9697         * tests/unictype/test-joiningtype_byname.c: New file.
9698
9699         New module 'unictype/joiningtype-byname'.
9700         * modules/unictype/joiningtype-byname: New file.
9701         * lib/unictype/joiningtype_byname.c: New file.
9702
9703         Tests for module 'unictype/joiningtype-name'.
9704         * modules/unictype/joiningtype-name-tests: New file.
9705         * tests/unictype/test-joiningtype_name.c: New file.
9706
9707         New module 'unictype/joiningtype-name'.
9708         * modules/unictype/joiningtype-name: New file.
9709         * lib/unictype/joiningtype_name.c: New file.
9710
9711         unictype: Add support for Arabic shaping properties.
9712         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
9713         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
9714         declarations.
9715         (UC_JOINING_GROUP_*): New enumeration values.
9716         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
9717         declarations.
9718         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
9719         (unicode_joining_type): New variable.
9720         (UC_JOINING_GROUP_*): New enumeration values.
9721         (unicode_joining_group): New variable.
9722         (fill_arabicshaping, joining_type_as_c_identifier,
9723         output_joining_type_test, output_joining_type,
9724         joining_group_as_c_identifier, output_joining_group_test,
9725         output_joining_group): New functions.
9726         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
9727         fill_arabicshaping and output_joining_type_test, output_joining_type,
9728         output_joining_group_test, output_joining_group.
9729         Reported by Simon Josefsson.
9730
9731 2011-03-21  Jim Meyering  <meyering@redhat.com>
9732
9733         strftime: fix a bug in yesterday's change
9734         * lib/strftime.c (add): Accommodate width's initial value of -1.
9735         Otherwise, nstrftime would copy uninitialized data into
9736         the result buffer.
9737
9738 2011-03-21  Jim Meyering  <meyering@redhat.com>
9739
9740         tests: add strftime-tests module
9741         * tests/test-strftime.c: New file.
9742         * modules/strftime-tests: New module.
9743
9744 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9745
9746         strftime: don't assume a byte count fits in 'int'
9747         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
9748         found this problem by static analysis, using gcc -Wstrict-overflow
9749         (GCC 4.5.2, x86-64).  This reported an optimization that depended
9750         on an integer overflow having undefined behavior, but it turns out
9751         that the argument is a size, which might not fit in 'int' anyway,
9752
9753 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9754
9755         stdio: don't require ignore_value around fwrite
9756
9757         This patch works around libc bug 11959
9758         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
9759         Without this patch, applications must often write
9760         ignore_value (fwrite (...)) even though the ignore_value is
9761         not helpful here.  It's common to write many objects, using
9762         fwrite/printf/etc., and then use ferror to detect output error.
9763
9764         I considered making this patch optional, but decided against it,
9765         because libc is obviously being inconsistent here: there is no
9766         reason libc should insist that user code must inspect fwrite
9767         return's value without also insisting that it inspect printf's,
9768         putchar's, etc.  If user code wants to have a strict style where
9769         all these functions' values are checked (so that ferror need not
9770         be checked), we could add support for that style in a new gnulib
9771         module, but in the meantime it's better to be consistent and to
9772         support common usage.
9773
9774         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
9775         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
9776         that we are compiling in checking mode, and if not C++, and
9777         if not already wrapping fwrite for some other reason.
9778         (fwrite): #define to rpl_fwrite if the latter is defined.
9779
9780 2011-03-20  Bruno Haible  <bruno@clisp.org>
9781
9782         verror: Fix compilation error introduced on 2011-02-13.
9783         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
9784         instead of __attribute__.
9785         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9786
9787 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9788             Bruno Haible  <bruno@clisp.org>
9789
9790         socklen: do not depend on sys_socket
9791         While trying to modify Emacs to use gnulib's socklen module,
9792         I discovered a circular dependency: socklen depends on sys_socket
9793         and vice versa.  Emacs can use socklen, but it does not need
9794         sys_socket because it has its own substitute for sys/socket.h.
9795         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
9796         gl_TYPE_SOCKLEN_T.
9797         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
9798         gl_PREREQ_SYS_H_SOCKET.
9799         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
9800         gl_PREREQ_SYS_H_SOCKET.
9801         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
9802         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
9803         * modules/socklen (Depends-on): Do not depend on sys_socket.
9804         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
9805
9806 2011-03-20  Jim Meyering  <meyering@redhat.com>
9807
9808         maint.mk: sort file names *after* new transformation
9809         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
9810         prefix would have led to an unwarranted failure in GNU parted.
9811         Sort after that transformation.
9812
9813 2011-03-19  Jim Meyering  <meyering@redhat.com>
9814
9815         maint.mk: fix po-file syntax-check rule
9816         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
9817         Patch by Bruno Haible.
9818
9819 2011-03-19  Bruno Haible  <bruno@clisp.org>
9820
9821         socklen: Update comment.
9822         * m4/socklen.m4: Update comment about platforms.
9823
9824 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9825             Bruno Haible  <bruno@clisp.org>
9826
9827         inet_ntop, inet_pton: Simplify.
9828         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
9829         documented to provide socklen_t and we already depend on sys_socket.
9830         * modules/inet_pton (Depends-on): Likewise.
9831         * lib/arpa_inet.in.h: Adjust comment.
9832
9833 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9834             Bruno Haible  <bruno@clisp.org>
9835
9836         netdb: Simplify.
9837         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
9838         documented to provide socklen_t and we already depend on sys_socket.
9839         * lib/netdb.in.h: Adjust comment.
9840
9841 2011-03-19  Bruno Haible  <bruno@clisp.org>
9842
9843         sys_socket, netdb: Document problem with socklen_t.
9844         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
9845         platforms.
9846         * doc/posix-headers/netdb.texi: Likewise.
9847
9848 2011-03-18  Eric Blake  <eblake@redhat.com>
9849
9850         maint.mk: let po check work in VPATH build
9851         * top/maint.mk (po_file): Allow cfg.mk override.
9852         (sc_po_check): Allow VPATH use.
9853         Reported by Jiri Denemark.
9854
9855 2011-03-16  Jim Meyering  <meyering@redhat.com>
9856
9857         maint.mk: allow fine-grained syntax-check exclusion via Make variables
9858         Before, you would have had to create one .x-sc_ file per rule in order
9859         to exempt offending files.  Now, you may instead use a Make variable --
9860         usually defined in cfg.mk -- whose name identifies the affected rule.
9861         * top/maint.mk (_sc_excl): Define.
9862         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
9863         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
9864
9865 2011-03-13  Bruno Haible  <bruno@clisp.org>
9866
9867         ignore-value tests: Avoid warnings.
9868         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
9869         empty for gcc < 3.4.
9870
9871 2011-03-13  Bruno Haible  <bruno@clisp.org>
9872
9873         passfd: Fix link error on Solaris.
9874         * modules/passfd (Description): Correct.
9875         (Depends-on): Add socketlib.
9876         (Link): New section.
9877         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
9878
9879 2011-03-13  Bruno Haible  <bruno@clisp.org>
9880
9881         passfd: Fix link error on AIX 5.2.
9882         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
9883
9884 2011-03-13  Bruno Haible  <bruno@clisp.org>
9885
9886         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
9887         * lib/sys_socket.in.h: Include <stddef.h>.
9888         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
9889         CMSG_FIRSTHDR. Remove unused variable.
9890
9891 2011-03-13  Bruno Haible  <bruno@clisp.org>
9892
9893         passfd: Fix compilation error on OpenBSD.
9894         * lib/passfd.c: Include <sys/uio.h>.
9895
9896 2011-03-13  Bruno Haible  <bruno@clisp.org>
9897
9898         passfd test: Fix warnings.
9899         * tests/test-passfd.c: Include <sys/wait.h>.
9900         (main): Fix typo.
9901
9902 2011-03-13  Bruno Haible  <bruno@clisp.org>
9903
9904         passfd module, part 4, tweaks.
9905         * tests/test-passfd.c: Reorder includes.
9906         (main): Fix perror and printf calls.
9907
9908 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9909
9910         passfd module, part 4.
9911         * modules/passfd-tests: New file.
9912         * tests/test-passfd.c: New file.
9913
9914 2011-03-13  Jim Meyering  <meyering@redhat.com>
9915
9916         Makefile: rely on GNU make; derive syntax-check rule names
9917         Rather than requiring that each sc_ rule be listed as a dependent
9918         of "check", use features of GNU make to derive the list.
9919         * Makefile (syntax-check-rules): Define.
9920         (check): Depend on the new variable, not the hard-coded list.
9921
9922 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
9923             Bruno Haible  <bruno@clisp.org>
9924
9925         passfd module, part 3.
9926         * lib/passfd.h (recvfd): Add a flags argument.
9927         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
9928         (recvfd): Add a flags argument.
9929         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
9930         exists.
9931         * modules/passfd (Depends-on): Add cloexec.
9932         Suggested by Eric Blake.
9933
9934 2011-03-13  Bruno Haible  <bruno@clisp.org>
9935
9936         passfd module, part 2, tweaks.
9937         * modules/passfd (Files): Reorder.
9938         (Depends-on): Remove errno.
9939         (Include): Remove <sys/socket.h>, <sys/un.h>.
9940         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
9941         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
9942         specification header. Include <sys/socket.h> always. Don't include
9943         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
9944         (sendfd): Clarify that it sets errno when it fails.
9945         (recvfd): Fix specification.
9946
9947 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9948
9949         passfd module, part 2.
9950         * modules/passfd: New file.
9951         * lib/passfd.h: New file.
9952         * lib/passfd.c: New file.
9953
9954 2011-03-12  Bruno Haible  <bruno@clisp.org>
9955
9956         wcswidth, mbswidth: Avoid integer overflow.
9957         * lib/wcswidth.c: Include <limits.h>.
9958         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
9959         * lib/mbswidth.c: Include <limits.h>.
9960         (mbsnwidth): Avoid 'int' overflow.
9961         Reported by Jim Meyering.
9962
9963 2011-03-12  Bruno Haible  <bruno@clisp.org>
9964
9965         futimens, utimensat: Avoid endless recursion on Solaris 10.
9966         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
9967         Solaris.
9968         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
9969         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
9970
9971 2011-03-11  Jim Meyering  <meyering@redhat.com>
9972
9973         maint.mk: relax a regexp to accommodate other formatting styles
9974         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
9975         between "ngettext" and the following "(".
9976
9977 2011-03-11  Pádraig Brady <P@draigBrady.com>
9978
9979         maint.mk: suppress a false positive warning
9980         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
9981         diagnostics are marked with ngettext.
9982
9983 2011-03-10  Eric Blake  <eblake@redhat.com>
9984
9985         wchar: add explicit dependencies, for Tru64
9986         * modules/mbmemcasecoll (Depends-on): Add wchar.
9987         * modules/mbtowc (Depends-on): Likewise.
9988         * modules/vasnprintf (Depends-on): Likewise.
9989         * modules/unistdio/u-printf-args (Depends-on): Likewise.
9990         * modules/wctomb (Depends-on): Likewise.
9991         Reported by Peter O'Gorman.
9992
9993 2011-03-08  Bruno Haible  <bruno@clisp.org>
9994
9995         passfd module, part 1, tweaks.
9996         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
9997         Improve indentation. Improve AC_MSG_CHECKING messages.
9998         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
9999         gl_SOCKET_FAMILIES.
10000
10001 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
10002
10003         passfd module, part 1.
10004         * m4/afunix.m4: New file.
10005         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
10006         sockets.
10007
10008 2011-03-08  Bruno Haible  <bruno@clisp.org>
10009
10010         regex-quote: New API.
10011         * lib/regex-quote.h: Include <stdbool.h>.
10012         (struct regex_quote_spec): New type.
10013         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
10014         New declarations.
10015         (regex_quote_length, regex_quote_copy, regex_quote): Take a
10016         'const struct regex_quote_spec *' argument.
10017         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
10018         (pcre_special): New constant.
10019         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
10020         New functions.
10021         (regex_quote_length, regex_quote_copy, regex_quote): Take a
10022         'const struct regex_quote_spec *' argument.
10023         * modules/regex-quote (Depends-on): Add stdbool.
10024         * tests/test-regex-quote.c (check): Update for new API. Add test for
10025         anchored results.
10026         * NEWS: Mention the API change.
10027         Reported by Reuben Thomas and Eric Blake.
10028
10029 2011-03-06  Bruno Haible  <bruno@clisp.org>
10030
10031         regex-quote: Fix creation of POSIX extended regular expressions.
10032         * lib/regex-quote.c (ere_special): Add grouping and alternation
10033         operators.
10034
10035 2011-03-05  Bruno Haible  <bruno@clisp.org>
10036
10037         doc: Improve doc regarding autopoint vs. gnulib.
10038         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
10039         disable autopoint while running autoreconf.
10040         Suggested by Ralf Wildenhues.
10041
10042 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10043
10044         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
10045         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
10046
10047 2011-03-03  Bruce Korb  <bkorb@gnu.org>
10048
10049         parse-duration: remove xalloc.h dependency
10050         * lib/parse-duration.c (parse_period): handle NULL return from
10051         strdup instead of calling xstrdup().
10052         * modules/parse-duration: remove "xalloc" dependency
10053
10054 2011-03-03  Matthew Booth  <mbooth@redhat.com>
10055
10056         bootstrap: honor m4_base when running aclocal
10057         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
10058
10059 2011-03-02  Jim Meyering  <meyering@redhat.com>
10060
10061         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
10062         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
10063         on request from Matt Booth.
10064
10065 2011-03-01  Eric Blake  <eblake@redhat.com>
10066
10067         test-link: work on Hurd
10068         * tests/test-link.h (test_link): Hurd rejects linking directories
10069         with EISDIR instead of the POSIX-mandated EPERM.
10070
10071 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
10072
10073         stdio: simplify by moving files to printf-posix, sigpipe
10074         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
10075         since this symbol is needed only if printf is replaced.
10076         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
10077         Require gl_ASM_SYMBOL_PREFIX.
10078         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
10079         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
10080         (Depends-on): Add 'raise'.
10081         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
10082         * modules/stdio (Files): Remove lib/stdio-write.c,
10083         m4/asm-underscore.m4.
10084         (Depends-on): Remove 'raise'.
10085
10086         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
10087         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
10088         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
10089         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
10090
10091 2011-02-28  Bruno Haible  <bruno@clisp.org>
10092
10093         localcharset: Assume ANSI C behaviour of free().
10094         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
10095         calling free().
10096         Suggested by Simon Josefsson <simon@josefsson.org>.
10097
10098 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
10099             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
10100             Bruno Haible  <bruno@clisp.org>  (tiny change)
10101
10102         On Cygwin, use /proc file system instead of win32 API.
10103         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
10104         Win32 file names.
10105         (DllMain): Simplify by removing Cygwin specific code.
10106         (find_shared_library_fullname): Use Linux specific implementation also
10107         for Cygwin.
10108         (get_shared_library_fullname): Update accordingly.
10109         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
10110         Win32 file names.
10111         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
10112         Cygwin specific code.
10113
10114 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
10115             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
10116
10117         Fix OpenMP flag detection for various Fortran compilers.
10118         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
10119         OpenMP-conditional compilation construct, to force compile
10120         failure with missing OpenMP flag.
10121         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
10122
10123 2011-02-25  Eric Blake  <eblake@redhat.com>
10124
10125         strstr: expand test coverage
10126         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
10127         compilation.
10128         * tests/test-memmem.c (main): Duplicate tests.
10129         * tests/test-strcasestr.c (main): Likewise.
10130         * tests/test-c-strcasestr.c (main): Likewise.
10131
10132 2011-02-25  Jim Meyering  <meyering@redhat.com>
10133
10134         maint.mk: detect missing-NL-at-EOF, too
10135         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
10136         it also detects when a file lacks a newline at EOF.
10137         (require_exactly_one_NL_at_EOF_): Renamed from
10138         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
10139         since people may well have .x-sc_... file names tied to the
10140         existing name.  Suggested by Eric Blake.
10141
10142 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
10143
10144         dirname: move m4/dos.m4 functionality into lib/dosname.h
10145
10146         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
10147         extracts symbols from it, puts them into config.h; but it's much
10148         easier to use the symbols directly.  filename.h already does this,
10149         but it disagrees with dos.m4 in some respects.  This patch
10150         introduces a different include file dosname.h that packages up
10151         dos.m4, and then later we can work on merging filename.h and
10152         dosname.h.  Applications that need only the easy-to-configure
10153         symbols should consider including dosname.h rather than dirname.h.
10154         * NEWS: Mention incompatible changes.
10155         * m4/dos.m4: Remove.
10156         * lib/dosname.h, modules/dosname: New files.
10157         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
10158         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
10159         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
10160         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
10161         Include dosname.h, not dirname.h.
10162         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
10163         Include dosname.h, for definitions of symbols like ISSLASH
10164         that used to be in config.h.
10165         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
10166         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
10167         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
10168         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
10169         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
10170         * modules/rmdir (Files): Likewise.
10171         * modules/stat (Files): Likewise.
10172         * modules/unlink (Files): Likewise.
10173         * modules/dirname-lgpl (Depends-on): Add dosname.
10174         * modules/lstat (Depends-on): Likewise.
10175         * modules/openat (Depends-on): Likewise.
10176         * modules/rmdir (Depends-on): Likewise.
10177         * modules/savewd (Depends-on): Likewise.
10178         * modules/stat (Depends-on): Likewise.
10179         * modules/unlink (Depends-on): Likewise.
10180         * modules/openat (Depends-on): Remove dirname-lgpl.
10181         * modules/savewd (Depends-on): Likewise.
10182         * tests/test-dirname.c: Do not use removed symbols like
10183         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
10184         the remaining symbols, e.g., ISSLASH ('\\').
10185
10186 2011-02-25  Eric Blake  <eblake@redhat.com>
10187
10188         strstr: revert patches that introduced bug and pessimization
10189         * lib/str-two-way.h: Add another reference.
10190         (two_way_short_needle, two_way_long_needle): Revert changes from
10191         2011-02-24; they pessimize search speed.
10192         (critical_factorization): Partially revert changes from
10193         2010-06-22; they violate the requirement that the left half of the
10194         needle be smaller than the period of the needle.
10195
10196 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
10197
10198         filenamecat: remove unnecessary dependency on dirname-lgpl
10199         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
10200         is no direct dependency, just an indirect one via filenamecat-lgpl.
10201
10202         remove: remove unnecessary use of m4/dos.m4
10203         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
10204         * modules/remove (FILES): Remove m4/dos.m4.
10205
10206         * lib/openat-proc.c: Don't include dirname.h; not needed.
10207
10208         backupfile: remove unnecessary use of m4/dos.m4
10209         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
10210         of its symbols are used by the backupfile code.  backupfile.c does
10211         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
10212         for the rare case of programs that want all their backup file
10213         names to live within 8+3 limits, and dos.m4 doesn't address that.
10214         * modules/backupfile (Files): Remove m4/dos.m4.
10215
10216 2011-02-24  Jim Meyering  <meyering@redhat.com>
10217
10218         strstr: fix a bug whereby strstr would mistakenly return NULL
10219         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
10220         in period calculation.
10221         (two_way_long_needle): Likewise.
10222         The original problem was reported by Mike Stump in
10223         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
10224         Ralf Wildenhues provided the short needle and haystack.
10225         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
10226         Add a more involved test to trigger the bug in two_way_long_needle.
10227
10228 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
10229
10230         gnulib-tool: remove use of bold display in help screen
10231         * gnulib-tool (func_usage): Do not use bold display anymore in the
10232         help screen.  That was just meant to be a temporary emphasis for a
10233         backward-incompatible change.
10234
10235 2011-02-23  Bruno Haible  <bruno@clisp.org>
10236
10237         Fix misindentation of preprocessor directives.
10238         * lib/argp-namefrob.h: Reindent preprocessor directives.
10239         * lib/getopt_int.h (struct _getopt_data): Likewise.
10240         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
10241         * lib/vasnprintf.c (decode_long_double): Likewise.
10242         * tests/test-argmatch.c: Insert blank lines, for clarity.
10243         * tests/test-exclude.c: Likewise.
10244
10245 2011-02-22  Bruno Haible  <bruno@clisp.org>
10246
10247         ioctl: Fix for MacOS X in 64-bit mode.
10248         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
10249         value.
10250         Suggested by Eric Blake.
10251         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
10252
10253 2011-02-22  Jim Meyering  <meyering@redhat.com>
10254
10255         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
10256         * Makefile (sc_cpp_indent_check): Don't limit the check to files
10257         in lib/.
10258
10259 2011-02-22  Eric Blake  <eblake@redhat.com>
10260
10261         maint: avoid any CDPATH issue
10262         * Makefile (sc_cpp_indent_check): Anchor cd argument.
10263
10264         maint: adjust cpp indentation for my modules, as well
10265         * Makefile (sc_cpp_indent_check): Add my name.
10266         * lib/fbufmode.c: Filter through cppi.
10267         * lib/fpurge.c: Likewise.
10268         * lib/freadable.c: Likewise.
10269         * lib/freading.c: Likewise.
10270         * lib/fwritable.c: Likewise.
10271         * lib/fwriting.c: Likewise.
10272         * lib/sigaction.c: Likewise.
10273
10274 2011-02-22  Jim Meyering  <meyering@redhat.com>
10275
10276         maint: adjust cpp indentation to reflect nesting depth
10277         I.e., in a block of code that begins with an unnested "#if",
10278         put one space between the "#" in column 1 and following token.
10279         For example,
10280         -#include <sys/vfs.h>
10281         +# include <sys/vfs.h>
10282         Do this only in .c files that are part of a module I maintain.
10283         * lib/linkat.c: Filter through cppi.
10284         * lib/nanosleep.c: Likewise.
10285         * lib/openat.c: Likewise.
10286         * lib/openat-die.c: Likewise.
10287         * lib/dup3.c: Likewise.
10288         * lib/fchownat.c: Likewise.
10289         * lib/flock.c: Likewise.
10290         * lib/fsync.c: Likewise.
10291         * lib/fts.c: Likewise.
10292         * lib/getpass.c: Likewise.
10293         * lib/gettimeofday.c: Likewise.
10294         * lib/userspec.c: Likewise.
10295         * Makefile (sc_cpp_indent_check): New rule, to check this.
10296
10297 2011-02-22  Bruno Haible  <bruno@clisp.org>
10298
10299         New module 'wctomb'.
10300         * lib/stdlib.in.h (wctomb): New declaration.
10301         * lib/wctomb.c: New file.
10302         * lib/wctomb-impl.h: New file.
10303         * m4/wctomb.m4: New file.
10304         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
10305         REPLACE_WCTOMB.
10306         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
10307         REPLACE_WCTOMB.
10308         * modules/wctomb: New file.
10309         * tests/test-stdlib-c++.cc: Test signature of wctomb.
10310         * doc/posix-functions/wctomb.texi: Mention the new module.
10311         * modules/wctob (Depends-on): Add wctomb.
10312
10313 2011-02-22  Bruno Haible  <bruno@clisp.org>
10314
10315         New module 'mbtowc'.
10316         * lib/stdlib.in.h (mbtowc): New declaration.
10317         * lib/mbtowc.c: New file.
10318         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
10319         * m4/mbtowc.m4: New file.
10320         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
10321         REPLACE_MBTOWC.
10322         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
10323         REPLACE_MBTOWC.
10324         * modules/mbtowc: New file.
10325         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
10326         * doc/posix-functions/mbtowc.texi: Mention the new module.
10327         * modules/btowc (Depends-on): Add mbtowc.
10328
10329 2011-02-22  Bruno Haible  <bruno@clisp.org>
10330
10331         wcrtomb: Add more tests for native Windows platforms.
10332         * tests/test-wcrtomb-w32-1.sh: New file.
10333         * tests/test-wcrtomb-w32-2.sh: New file.
10334         * tests/test-wcrtomb-w32-3.sh: New file.
10335         * tests/test-wcrtomb-w32-4.sh: New file.
10336         * tests/test-wcrtomb-w32-5.sh: New file.
10337         * tests/test-wcrtomb-w32.c: New file.
10338         * modules/wcrtomb-tests (Files): Add them.
10339         (Makefile.am): Arrange to run these tests.
10340         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
10341         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
10342
10343 2011-02-20  Bruno Haible  <bruno@clisp.org>
10344
10345         wcrtomb: Enhance test.
10346         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
10347
10348 2011-02-20  Bruno Haible  <bruno@clisp.org>
10349
10350         mbrtowc: Tiny optimization.
10351         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
10352
10353 2011-02-20  Jim Meyering  <meyering@redhat.com>
10354
10355         test-exclude.c: remove unmatched #endif
10356         * tests/test-exclude.c: Remove stray #endif, left over from
10357         the change of a week ago.
10358
10359 2011-02-19  Jim Meyering  <meyering@redhat.com>
10360
10361         git-version-gen: skip "-dirty" check when appropriate
10362         * build-aux/git-version-gen: Don't run any git commands when the
10363         version string comes from .tarball-version.  Prior to this, we
10364         would run git update-index --refresh even from a just-unpacked
10365         tarball directory, and that could affect a .git/ directory in a
10366         parent of the build directory.  Reported by Mike Frysinger.
10367
10368 2011-02-19  Bruno Haible  <bruno@clisp.org>
10369
10370         unictype/property-byname: Reduce the size of the 'data' segment.
10371         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
10372
10373 2011-02-19  Bruno Haible  <bruno@clisp.org>
10374
10375         unictype/scripts: Reduce the size of the 'data' segment.
10376         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
10377         '%pic'.
10378         * lib/unictype/scripts_byname.gperf: Regenerated.
10379
10380 2011-02-19  Bruno Haible  <bruno@clisp.org>
10381
10382         stdint: Update documentation.
10383         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
10384
10385 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
10386
10387         stdint: omit redundant check for wchar.h
10388         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
10389         always tests whether wchar.h exists, so remove the now-redundant test.
10390
10391 2011-02-18  Bruno Haible  <bruno@clisp.org>
10392
10393         stdint: Cut dependency to module 'wchar'.
10394         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
10395         include the necessary prerequisites.
10396         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
10397         * modules/stdint (Depends-on): Remove wchar.
10398         (Makefile.am): Substitute HAVE_WCHAR_H.
10399         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
10400
10401 2011-02-18  Eric Blake  <eblake@redhat.com>
10402
10403         longlong: skip, rather than fail, on cross-compilation
10404         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
10405         when cross-compiling; regression from 2011-02-16.
10406
10407 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
10408
10409         * NEWS: Mention 2011-02-08 change to stdlib.
10410
10411 2011-02-17  Bruno Haible  <bruno@clisp.org>
10412
10413         getloadavg: Add comments about platforms.
10414         * m4/getloadavg.m4: Add comment.
10415         * lib/getloadavg.c: Likewise.
10416
10417 2011-02-17  Bruno Haible  <bruno@clisp.org>
10418
10419         getloadavg: Fix link error on Solaris 2.6.
10420         * modules/getloadavg (Link): New section.
10421         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
10422         linking test-getloadavg.
10423         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
10424         getloadavg.
10425
10426 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
10427
10428         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
10429         It was 'int', but this doesn't match the IRIX 6.5 manual.
10430         Suggested by Bruno Haible in
10431         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
10432
10433 2011-02-17  Bruno Haible  <bruno@clisp.org>
10434
10435         havelib: Fix comments.
10436         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
10437         change.
10438
10439 2011-02-17  Bruno Haible  <bruno@clisp.org>
10440
10441         havelib: Update config.rpath.
10442         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
10443
10444 2011-02-17  Bruno Haible  <bruno@clisp.org>
10445
10446         getloadavg test: Add some plausibility checks.
10447         * tests/test-getloadavg.c (check_avg): Print a warning when the value
10448         is improbable.
10449
10450 2011-02-16  Eric Blake  <eblake@redhat.com>
10451
10452         maintainer-makefile: make syntax-check a no-op from tarballs
10453         * top/maint.mk (no-vc-detected): New rule.
10454         (local-checks-available): Use it to avoid hanging if someone tries
10455         'make syntax-check' from a tarball.  Also append to any non-syntax
10456         checks already defined in cfg.mk.
10457
10458 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
10459
10460         longlong: tune, particularly for common case of c99
10461
10462         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
10463         or running anything if c99, or if unsigned long long int does not
10464         work.  In either case, we know the answer without further tests.
10465         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
10466         it at most once, and use its results for both long long int and
10467         unsigned long long int.  This is more likely to be efficient in
10468         the common case where the program wants to check for both long
10469         long int and unsigned long long int.
10470         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
10471         since the answer is already known.
10472
10473 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
10474
10475         getloadavg: set errno
10476         * lib/getloadavg.c: Set errno when returning -1.  If no other
10477         error number looks appropriate, set it to ENOSYS if the getloadavg
10478         looks like it can't possibly ever work, ENOTSUP otherwise.
10479         Suggested by Bruno Haible in
10480         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
10481
10482         getloadavg: trim unused parts and speed up 'configure'
10483         * NEWS: Document this.
10484         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
10485         always compiled if getloadavg is absent.
10486         Move test code to ...
10487         * tests/test-getloadavg.c: New file, containing previous
10488         contents of test from lib/getloadavg.c.  It also contains
10489         suggestions by Bruno Haible in
10490         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
10491         * modules/getloadavg-tests: New file.
10492         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
10493         Do tests in the same order as they're needed for getloadavg.c.
10494         Omit setgid-related tests that generate symbols KMEM_GROUP,
10495         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
10496         Do only the tests that are needed to see whether the system has
10497         getloadavg, moving the other tests into ...
10498         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
10499         NLIST_NAME_UNION; nobody should be using it.  Do not define
10500         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
10501         relevant, as the user of this module shouldn't care how getloadavg
10502         is implemented.
10503
10504         getloadavg: omit unused var
10505         * lib/getloadavg.c (getloadavg): Omit unused local variable.
10506
10507 2011-02-15  Jim Meyering  <meyering@redhat.com>
10508
10509         doc: update users.txt
10510         * users.txt: Update iwhd's URL.
10511
10512 2011-02-13  Bruno Haible  <bruno@clisp.org>
10513
10514         Consistent macro naming for macros that use GCC __attribute__.
10515         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
10516         _ATTRIBUTE_NONNULL_.
10517         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
10518         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
10519         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
10520         ATTRIBUTE_DEPRECATED.
10521         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
10522         ATTRIBUTE_NORETURN.
10523         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10524         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10525         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10526         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
10527         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
10528         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
10529         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
10530         ATTRIBUTE_SENTINEL.
10531         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
10532         ATTRIBUTE_RETURN_CHECK.
10533         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
10534         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
10535         ATTRIBUTE_NORETURN.
10536         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
10537         Reported by Paul Eggert.
10538
10539 2011-02-13  Bruno Haible  <bruno@clisp.org>
10540
10541         Don't interfere with a program's definition of __attribute__.
10542         * lib/argp.h (__attribute__): Remove definition.
10543         (_GL_ATTRIBUTE_FORMAT): New macro.
10544         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
10545         * lib/argp-fmtstream.h (__attribute__): Remove definition.
10546         (_GL_ATTRIBUTE_FORMAT): New macro.
10547         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
10548         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
10549         GCC 3 or newer.
10550         * lib/error.h (__attribute__): Remove definition.
10551         (_GL_ATTRIBUTE_FORMAT): New macro.
10552         (error, error_at_line): Use it.
10553         * lib/hash.h (__attribute__): Remove definition.
10554         (ATTRIBUTE_WUR): Update definition. Define always.
10555         * lib/openat.h (__attribute__): Remove definition.
10556         (ATTRIBUTE_NORETURN): Update definition. Define always.
10557         * lib/sigpipe-die.h (__attribute__): Remove definition.
10558         (ATTRIBUTE_NORETURN): Update definition. Define always.
10559         * lib/vasnprintf.h (__attribute__): Remove definition.
10560         (_GL_ATTRIBUTE_FORMAT): New macro.
10561         (asnprintf, vasnprintf): Use it.
10562         * lib/xalloc.h (__attribute__): Remove definition.
10563         (ATTRIBUTE_NORETURN): Update definition. Define always.
10564         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
10565         * lib/xmemdup0.h (__attribute__): Remove definition.
10566         (ATTRIBUTE_NORETURN): Update definition. Define always.
10567         * lib/xprintf.h (__attribute__): Remove definition.
10568         (_GL_ATTRIBUTE_FORMAT): New macro.
10569         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
10570         * lib/xstrtol.h (__attribute__): Remove definition.
10571         (ATTRIBUTE_NORETURN): Update definition. Define always.
10572         * lib/xvasprintf.h (__attribute__): Remove definition.
10573         (_GL_ATTRIBUTE_FORMAT): New macro.
10574         (xasprintf, xvasprintf): Use it.
10575         * tests/test-argmatch.c (__attribute__): Remove definition.
10576         (ATTRIBUTE_NORETURN): Update definition. Define always.
10577         * tests/test-exclude.c (__attribute__): Remove definition.
10578         (ATTRIBUTE_NORETURN): Update definition. Define always.
10579         Reported by Paul Eggert.
10580
10581 2011-02-13  Bruno Haible  <bruno@clisp.org>
10582
10583         mbrtowc: Add more tests for native Windows platforms.
10584         * tests/test-mbrtowc-w32-1.sh: New file.
10585         * tests/test-mbrtowc-w32-2.sh: New file.
10586         * tests/test-mbrtowc-w32-3.sh: New file.
10587         * tests/test-mbrtowc-w32-4.sh: New file.
10588         * tests/test-mbrtowc-w32-5.sh: New file.
10589         * tests/test-mbrtowc-w32.c: New file.
10590         * modules/mbrtowc-tests (Files): Add them.
10591         (Makefile.am): Arrange to run these tests.
10592         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
10593         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
10594
10595 2011-02-13  Bruno Haible  <bruno@clisp.org>
10596
10597         mbrtowc: Work around native Windows bug.
10598         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
10599         guess when no suitable locale for testing was found.
10600         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
10601
10602 2011-02-13  Bruno Haible  <bruno@clisp.org>
10603
10604         mbsinit: Work around mingw bug.
10605         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
10606         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
10607         Windows.
10608         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
10609
10610 2011-02-13  Bruno Haible  <bruno@clisp.org>
10611
10612         mbsinit: Don't crash for a NULL argument.
10613         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
10614         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
10615
10616 2011-02-13  Bruno Haible  <bruno@clisp.org>
10617
10618         Don't interfere with a program's definition of __attribute__.
10619         * lib/stdio.in.h (__attribute__): Remove definition.
10620         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
10621         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
10622         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
10623         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
10624         * lib/string.in.h (__attribute__): Remove definition.
10625         Reported by Paul Eggert.
10626
10627 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10628
10629         stdlib: don't get in the way of non-GCC __attribute__
10630         See thread starting at
10631         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
10632         Revert previous stdlib change, installing the following instead:
10633         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
10634         to get in the way of a non-GCC compiler that supports __attribute__.
10635         (_GL_ATTRIBUTE_RETURN): New macro.
10636         (_Exit): Use it instead of __attribute__.
10637
10638 2011-02-12  Bruno Haible  <bruno@clisp.org>
10639
10640         quotearg test: Avoid test failure on mingw.
10641         * tests/test-quotearg.sh: Convert the locale identifier from native
10642         Windows syntax to Unix syntax.
10643
10644 2011-02-12  Bruno Haible  <bruno@clisp.org>
10645
10646         setlocale: Prefer gnulib's override over libintl's override.
10647         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
10648         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
10649         GNULIB_defined_setlocale is set.
10650
10651 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
10652
10653         stdlib: support non-GCC __attribute__
10654
10655         Fix a serious and tricky problem encountered when attempting to
10656         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
10657         5.5, but it crashed due to memory corruption on Solaris 10 with
10658         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
10659         bits that are otherwise zero.  This tagging is optional inside
10660         Emacs but is preferred and is used when __attribute__ ((__aligned
10661         (8))) works, as it does with both recent-enough GCC and with Sun C
10662         5.11.  However, Sun C 5.11 is not GCC and does not #define
10663         __GNUC__ and __GNUC_MINOR__.
10664
10665         When I added the getloadavg module to Emacs, it brought in
10666         stdlib.in.h, which contained this fragment:
10667
10668            #ifndef __attribute__
10669            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
10670            #  define __attribute__(Spec)   /* empty */
10671            # endif
10672            #endif
10673
10674         When files that include <stdlib.h> were compiled with Sun C 5.11,
10675         the above code disabled __attribute__ ((__aligned (8))), which
10676         caused variables to not be properly aligned, which eventually led
10677         to the pointer corruption mentioned above.  (This was a bit hard
10678         to diagnose, unfortunately.)
10679
10680         Several "#define __attribute__(X) /* empty */" code snippets need
10681         to be eradicated from Gnulib to work with non-GCC compilers that
10682         support __attribute__.  The Autoconf way to do this is to test for
10683         each kind of attribute that we want support for, and selectively
10684         enable that in source code.
10685
10686         Fix this problem just for stdlib.h, by adding a test for the
10687         __noreturn__ attribute, and change stdlib.in.h to use that test
10688         when needed.  This technique can be easily generalized to the
10689         other *.in.h files and attributes, and a similar technique can be
10690         used for *.h and *.c files.  This patch is enough to solve the
10691         problem for Emacs + getloadavg, and I thought I'd publish it for
10692         feedback before undertaking further, similar fixes in other
10693         modules.
10694
10695         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
10696         because it's not needed for stdlib.h.  It merely substitutes the
10697         value directly into stdlib.h.  We may well need to #define it, or
10698         similar symbols, for other modules, but it's nice to also have an
10699         option to not #define it for applications like Emacs that do not
10700         need it.
10701
10702         * lib/stdlib.in.h (__attribute__): Do not #define.
10703         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
10704         be defined only if the _Exit module is also used.
10705         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
10706         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
10707         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
10708         platforms.
10709         * modules/_Exit (Files): Add m4/attribute.m4.
10710         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
10711         * m4/attribute.m4: New file.
10712
10713 2011-02-12  Bruno Haible  <bruno@clisp.org>
10714
10715         wcsrtombs: Work around bug on native Windows.
10716         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
10717         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
10718         instead of len.
10719         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
10720
10721 2011-02-12  Bruno Haible  <bruno@clisp.org>
10722
10723         mbsrtowcs: Work around bug on native Windows.
10724         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
10725         against mingw bug.
10726         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
10727
10728 2011-02-12  Bruno Haible  <bruno@clisp.org>
10729
10730         Avoid setlocale bugs in tests.
10731         * modules/btowc (Dependencies): Add setlocale.
10732         * modules/c-strcase (Dependencies): Likewise.
10733         * modules/mbmemcasecmp (Dependencies): Likewise.
10734         * modules/mbmemcasecoll (Dependencies): Likewise.
10735         * modules/mbrtowc (Dependencies): Likewise.
10736         * modules/mbscasecmp (Dependencies): Likewise.
10737         * modules/mbscasestr (Dependencies): Likewise.
10738         * modules/mbschr (Dependencies): Likewise.
10739         * modules/mbscspn (Dependencies): Likewise.
10740         * modules/mbsinit (Dependencies): Likewise.
10741         * modules/mbsncasecmp (Dependencies): Likewise.
10742         * modules/mbsnrtowcs (Dependencies): Likewise.
10743         * modules/mbspbrk (Dependencies): Likewise.
10744         * modules/mbspcasecmp (Dependencies): Likewise.
10745         * modules/mbsrchr (Dependencies): Likewise.
10746         * modules/mbsrtowcs (Dependencies): Likewise.
10747         * modules/mbsspn (Dependencies): Likewise.
10748         * modules/mbsstr (Dependencies): Likewise.
10749         * modules/nl_langinfo (Dependencies): Likewise.
10750         * modules/quotearg (Dependencies): Likewise.
10751         * modules/unicase/locale-language (Dependencies): Likewise.
10752         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
10753         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
10754         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
10755         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
10756         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
10757         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
10758         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
10759         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
10760         * modules/vasnprintf-posix (Dependencies): Likewise.
10761         * modules/wcrtomb (Dependencies): Likewise.
10762         * modules/wcsnrtombs (Dependencies): Likewise.
10763         * modules/wcsrtombs (Dependencies): Likewise.
10764
10765 2011-02-12  Bruno Haible  <bruno@clisp.org>
10766
10767         setlocale: Workaround native Windows bug.
10768         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
10769         succeeds but sets LC_CTYPE to "C", report a failure.
10770         * tests/test-setlocale2.sh: New file.
10771         * tests/test-setlocale2.c: New file.
10772         * modules/setlocale-tests (Files): Add the new files.
10773         (Makefile.am): Enable test-setlocale2.sh test.
10774         * doc/posix-functions/setlocale.texi: Mention workaround.
10775
10776 2011-02-11  Bruno Haible  <bruno@clisp.org>
10777
10778         Tests for module 'setlocale'.
10779         * modules/setlocale-tests: New file.
10780         * tests/test-setlocale1.sh: New file.
10781         * tests/test-setlocale1.c: New file.
10782
10783         New module 'setlocale'.
10784         * lib/locale.in.h (setlocale): New declaration.
10785         * lib/setlocale.c: New file, based on
10786         gettext/gettext-runtime/intl/setlocale.c.
10787         * m4/setlocale.m4: New file.
10788         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
10789         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
10790         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
10791         REPLACE_SETLOCALE.
10792         * modules/setlocale: New file.
10793         * tests/test-locale-c++.cc: Test the declaration of setlocale.
10794         * doc/posix-functions/setlocale.texi: Mention the new module.
10795
10796 2011-02-11  Bruno Haible  <bruno@clisp.org>
10797
10798         Prepare for locale dependent tests on mingw.
10799         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
10800         because it has the wrong locale encoding.
10801         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
10802         French_France.1252 instead of "fr".
10803         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
10804         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
10805         because it has the wrong locale encoding.
10806         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
10807         native Windows, try Turkish_Turkey.65001.
10808         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
10809         Chinese_China.54936.
10810
10811         Prepare for locale dependent tests on mingw.
10812         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
10813         differently.
10814         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
10815         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
10816         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
10817         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10818
10819 2011-02-11  Eric Blake  <eblake@redhat.com>
10820
10821         strptime: avoid compiler warnings
10822         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
10823         compiler warnings about dead code.
10824         Reported by Daniel P. Berrange.
10825
10826 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
10827
10828         doc: update users.txt
10829         * users.txt: Add rcs.
10830
10831 2011-02-10  John W. Eaton  <jwe@gnu.org>
10832
10833         doc: update users.txt
10834         * users.txt: Add octave.
10835
10836 2011-02-10  Jim Meyering  <meyering@redhat.com>
10837
10838         doc: update users.txt
10839         * users.txt: Add iwhd.
10840
10841 2011-02-09  Bruno Haible  <bruno@clisp.org>
10842
10843         gnulib-tool: Make copyright notice adjustment more robust.
10844         * gnulib-tool (func_import): In sed_transform_main_lib_file,
10845         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
10846         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
10847         License".
10848         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
10849
10850 2011-02-06  Bruno Haible  <bruno@clisp.org>
10851
10852         New module 'towctrans'.
10853         * modules/towctrans: New file.
10854         * lib/wctype.in.h (towctrans): New declaration.
10855         * lib/towctrans.c: New file.
10856         * lib/towctrans-impl.h: New file.
10857         * m4/towctrans.m4: New file.
10858         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
10859         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
10860         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
10861         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
10862         * doc/posix-functions/towctrans.texi: Mention the new module.
10863
10864 2011-02-06  Bruno Haible  <bruno@clisp.org>
10865
10866         New module 'wctrans'.
10867         * modules/wctrans: New file.
10868         * lib/wctype.in.h (wctrans): New declaration.
10869         * lib/wctrans.c: New file.
10870         * lib/wctrans-impl.h: New file.
10871         * m4/wctrans.m4: New file.
10872         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
10873         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
10874         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
10875         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
10876         * doc/posix-functions/wctrans.texi: Mention the new module.
10877
10878 2011-02-06  Bruno Haible  <bruno@clisp.org>
10879
10880         New module 'iswctype'.
10881         * modules/iswctype: New file.
10882         * lib/wctype.in.h (iswctype): New declaration.
10883         * lib/iswctype.c: New file.
10884         * lib/iswctype-impl.h: New file.
10885         * m4/iswctype.m4: New file.
10886         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
10887         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
10888         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
10889         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
10890         * doc/posix-functions/iswctype.texi: Mention the new module and the
10891         HP-UX 11.00 problem.
10892
10893 2011-02-06  Bruno Haible  <bruno@clisp.org>
10894
10895         New module 'wctype'.
10896         * modules/wctype: Change to represent the wctype() substitute.
10897         * lib/wctype.in.h (wctype): New declaration.
10898         * lib/wctype.c: New file.
10899         * lib/wctype-impl.h: New file.
10900         * m4/wctype.m4: New file.
10901         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
10902         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
10903         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
10904         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
10905         * doc/posix-functions/wctype.texi: Mention the new module and the
10906         HP-UX 11.00 problem.
10907
10908 2011-02-06  Bruno Haible  <bruno@clisp.org>
10909
10910         wctype-h: Ensure wctype_t and wctrans_t are defined.
10911         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
10912         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
10913         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
10914         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
10915         HAVE_WCTRANS_T.
10916         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
10917
10918 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
10919
10920         flock: fix license typo
10921
10922         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
10923         omitted.
10924
10925 2011-02-08  Bruno Haible  <bruno@clisp.org>
10926
10927         Split large sed scripts, for HP-UX sed.
10928         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
10929         to avoid HP-UX limit of 99 commands, in the near future.
10930         * modules/stdlib (Makefile.am): Likewise.
10931         * modules/unistd (Makefile.am): Likewise.
10932         * modules/wchar (Makefile.am): Likewise.
10933         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10934         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
10935         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
10936
10937 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10938             Bruno Haible  <bruno@clisp.org>
10939
10940         stdlib: improve random_r modularization
10941         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
10942         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
10943         you also need the random_r module to get this material right.
10944         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
10945         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
10946         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
10947
10948 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10949
10950         stdlib: don't depend on stdint
10951         * lib/stdlib.in.h: Don't include <stdint.h> merely because
10952         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
10953         be independent of whether stdint.h is needed.
10954         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
10955         here, instead of ...
10956         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
10957         struct random_data should be using the random_r module, not just
10958         the stdlib module (which wouldn't make sense: what package needs
10959         just struct random_data without also needing random_r?).
10960         * modules/stdlib (Depends-on): Remove stdint.
10961
10962         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
10963         See the thread rooted at
10964         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
10965         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
10966         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
10967         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
10968         __VMS)); previously it was always included (via fcntl--.h).
10969         (getloadavg): Do not use c_strtod.  Instead, approximate it by
10970         hand; this is good enough for load averages.  Also, do not use
10971         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
10972         flags directly if available and don't bother otherwise.  (Packages
10973         that need the extra reliability should use the modules that define
10974         these flags on older platforms that lack them.)
10975         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
10976         fcntl-safer.
10977
10978 2011-02-08  Jim Meyering  <meyering@redhat.com>
10979
10980         di-set.h, ino-map.h: add multiple-inclusion guard
10981         Technically, the guard is required only for ino-map.h, due to its
10982         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
10983         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
10984         * lib/ino-map.h: Likewise.
10985
10986 2011-02-06  Bruno Haible  <bruno@clisp.org>
10987
10988         iswblank: Ensure declaration on glibc systems.
10989         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
10990         * modules/iswblank (Dependencies): Add 'extensions'.
10991         * doc/posix-functions/iswblank.texi: Document the glibc problem.
10992
10993 2011-02-06  Bruno Haible  <bruno@clisp.org>
10994
10995         New module 'iswblank'.
10996         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
10997         * modules/iswblank: New file.
10998         * modules/wctype-h (Files): Remove lib/iswblank.c.
10999         (Makefile.am): Substitute GNULIB_ISWBLANK.
11000         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
11001         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
11002         (gl_WCTYPE_H_DEFAULTS): New macro.
11003         (gl_WCTYPE_H): Require it. Remove iswblank related code.
11004         * modules/iswblank-tests: New file.
11005         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
11006         * tests/test-wctype-h.c (main): Remove iswblank tests.
11007         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
11008         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
11009         of 'wctype-h'.
11010         * NEWS: Mention the change.
11011         * modules/mbchar (Depends-on): Add iswblank.
11012
11013 2011-02-08  Bruno Haible  <bruno@clisp.org>
11014
11015         di-set tests: Refactor.
11016         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
11017         unnecessary includes.
11018         (ASSERT): Remove macro.
11019         (main): Make C90 compliant by avoiding variable declaration after
11020         statement.
11021         * modules/di-set-tests (Files): Add tests/macros.h.
11022
11023 2011-02-08  Bruno Haible  <bruno@clisp.org>
11024
11025         ino-map tests: Refactor.
11026         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
11027         unnecessary includes.
11028         (ASSERT): Remove macro.
11029         (main): Make C90 compliant by avoiding variable declaration after
11030         statement.
11031         * modules/ino-map-tests (Files): Add tests/macros.h.
11032
11033 2011-02-08  Jim Meyering  <meyering@redhat.com>
11034
11035         di-set: add "const" to a cast
11036         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
11037         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
11038
11039 2011-02-06  Bruno Haible  <bruno@clisp.org>
11040
11041         Rename module 'wctype' to 'wctype-h'.
11042         * modules/wctype-h: Renamed from modules/wctype.
11043         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
11044         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
11045         (Files, Depends-on, Makefile.am): Update.
11046         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
11047         (Files, Makefile.am): Update.
11048         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
11049         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
11050         * doc/posix-headers/wctype.texi: Update.
11051         * doc/posix-functions/iswalnum.texi: Update.
11052         * doc/posix-functions/iswalpha.texi: Update.
11053         * doc/posix-functions/iswblank.texi: Update.
11054         * doc/posix-functions/iswcntrl.texi: Update.
11055         * doc/posix-functions/iswdigit.texi: Update.
11056         * doc/posix-functions/iswgraph.texi: Update.
11057         * doc/posix-functions/iswlower.texi: Update.
11058         * doc/posix-functions/iswprint.texi: Update.
11059         * doc/posix-functions/iswpunct.texi: Update.
11060         * doc/posix-functions/iswspace.texi: Update.
11061         * doc/posix-functions/iswupper.texi: Update.
11062         * doc/posix-functions/iswxdigit.texi: Update.
11063         * doc/posix-functions/towlower.texi: Update.
11064         * doc/posix-functions/towupper.texi: Update.
11065         * NEWS: Mention the change.
11066         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
11067         * modules/mbchar (Dependencies): Likewise.
11068         * modules/mbswidth (Dependencies): Likewise.
11069         * modules/quotearg (Dependencies): Likewise.
11070         * modules/regex (Dependencies): Likewise.
11071         * modules/wcscasecmp (Dependencies): Likewise.
11072         * modules/wcsncasecmp (Dependencies): Likewise.
11073         * modules/wcwidth (Dependencies): Likewise.
11074
11075 2011-02-06  Bruno Haible  <bruno@clisp.org>
11076
11077         New module 'wcswidth'.
11078         * modules/wcswidth: New file.
11079         * lib/wchar.in.h (wcswidth): New declaration.
11080         * lib/wcswidth.c: New file.
11081         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
11082         * m4/wcswidth.m4: New file.
11083         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
11084         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
11085         REPLACE_WCSWIDTH.
11086         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
11087         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
11088         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
11089         * doc/posix-functions/wcswidth.texi: Mention the new module.
11090
11091 2011-02-06  Bruno Haible  <bruno@clisp.org>
11092
11093         New module 'wcstok'.
11094         * modules/wcstok: New file.
11095         * lib/wchar.in.h (wcstok): New declaration.
11096         * lib/wcstok.c: New file.
11097         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
11098         * m4/wcstok.m4: New file.
11099         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
11100         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
11101         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
11102         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
11103         * doc/posix-functions/wcstok.texi: Mention the new module.
11104
11105 2011-02-06  Bruno Haible  <bruno@clisp.org>
11106
11107         New module 'wcsstr'.
11108         * modules/wcsstr: New file.
11109         * lib/wchar.in.h (wcsstr): New declaration.
11110         * lib/wcsstr.c: New file.
11111         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
11112         * m4/wcsstr.m4: New file.
11113         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
11114         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
11115         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
11116         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
11117         * doc/posix-functions/wcsstr.texi: Mention the new module.
11118
11119 2011-02-06  Bruno Haible  <bruno@clisp.org>
11120
11121         New module 'wcspbrk'.
11122         * modules/wcspbrk: New file.
11123         * lib/wchar.in.h (wcspbrk): New declaration.
11124         * lib/wcspbrk.c: New file.
11125         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
11126         * m4/wcspbrk.m4: New file.
11127         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
11128         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
11129         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
11130         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
11131         * doc/posix-functions/wcspbrk.texi: Mention the new module.
11132
11133 2011-02-06  Bruno Haible  <bruno@clisp.org>
11134
11135         New module 'wcsspn'.
11136         * modules/wcsspn: New file.
11137         * lib/wchar.in.h (wcsspn): New declaration.
11138         * lib/wcsspn.c: New file.
11139         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
11140         * m4/wcsspn.m4: New file.
11141         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
11142         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
11143         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
11144         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
11145         * doc/posix-functions/wcsspn.texi: Mention the new module.
11146
11147 2011-02-06  Bruno Haible  <bruno@clisp.org>
11148
11149         New module 'wcscspn'.
11150         * modules/wcscspn: New file.
11151         * lib/wchar.in.h (wcscspn): New declaration.
11152         * lib/wcscspn.c: New file.
11153         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
11154         * m4/wcscspn.m4: New file.
11155         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
11156         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
11157         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
11158         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
11159         * doc/posix-functions/wcscspn.texi: Mention the new module.
11160
11161 2011-02-06  Bruno Haible  <bruno@clisp.org>
11162
11163         New module 'wcsrchr'.
11164         * modules/wcsrchr: New file.
11165         * lib/wchar.in.h (wcsrchr): New declaration.
11166         * lib/wcsrchr.c: New file.
11167         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
11168         * m4/wcsrchr.m4: New file.
11169         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
11170         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
11171         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
11172         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
11173         * doc/posix-functions/wcsrchr.texi: Mention the new module.
11174
11175 2011-02-06  Bruno Haible  <bruno@clisp.org>
11176
11177         New module 'wcschr'.
11178         * modules/wcschr: New file.
11179         * lib/wchar.in.h (wcschr): New declaration.
11180         * lib/wcschr.c: New file.
11181         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
11182         * m4/wcschr.m4: New file.
11183         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
11184         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
11185         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
11186         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
11187         * doc/posix-functions/wcschr.texi: Mention the new module.
11188
11189 2011-02-06  Bruno Haible  <bruno@clisp.org>
11190
11191         New module 'wcsdup'.
11192         * modules/wcsdup: New file.
11193         * lib/wchar.in.h (wcsdup): New declaration.
11194         * lib/wcsdup.c: New file.
11195         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
11196         * m4/wcsdup.m4: New file.
11197         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
11198         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
11199         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
11200         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
11201         * doc/posix-functions/wcsdup.texi: Mention the new module.
11202
11203 2011-02-06  Bruno Haible  <bruno@clisp.org>
11204
11205         New module 'wcsxfrm'.
11206         * modules/wcsxfrm: New file.
11207         * lib/wchar.in.h (wcsxfrm): New declaration.
11208         * lib/wcsxfrm.c: New file.
11209         * lib/wcsxfrm-impl.h: New file.
11210         * m4/wcsxfrm.m4: New file.
11211         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
11212         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
11213         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
11214         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
11215         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
11216
11217 2011-02-06  Bruno Haible  <bruno@clisp.org>
11218
11219         New module 'wcscoll'.
11220         * modules/wcscoll: New file.
11221         * lib/wchar.in.h (wcscoll): New declaration.
11222         * lib/wcscoll.c: New file.
11223         * lib/wcscoll-impl.h: New file.
11224         * m4/wcscoll.m4: New file.
11225         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
11226         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
11227         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
11228         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
11229         * doc/posix-functions/wcscoll.texi: Mention the new module.
11230
11231 2011-02-06  Bruno Haible  <bruno@clisp.org>
11232
11233         New module 'wcsncasecmp'.
11234         * modules/wcsncasecmp: New file.
11235         * lib/wchar.in.h (wcsncasecmp): New declaration.
11236         * lib/wcsncasecmp.c: New file.
11237         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
11238         * m4/wcsncasecmp.m4: New file.
11239         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
11240         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
11241         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
11242         HAVE_WCSNCASECMP.
11243         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
11244         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
11245
11246 2011-02-06  Bruno Haible  <bruno@clisp.org>
11247
11248         New module 'wcscasecmp'.
11249         * modules/wcscasecmp: New file.
11250         * lib/wchar.in.h (wcscasecmp): New declaration.
11251         * lib/wcscasecmp.c: New file.
11252         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
11253         * m4/wcscasecmp.m4: New file.
11254         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
11255         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
11256         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
11257         HAVE_WCSCASECMP.
11258         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
11259         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
11260
11261 2011-02-05  Bruno Haible  <bruno@clisp.org>
11262
11263         New module 'wcsncmp'.
11264         * modules/wcsncmp: New file.
11265         * lib/wchar.in.h (wcsncmp): New declaration.
11266         * lib/wcsncmp.c: New file.
11267         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
11268         * m4/wcsncmp.m4: New file.
11269         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
11270         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
11271         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
11272         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
11273         * doc/posix-functions/wcsncmp.texi: Mention the new module.
11274
11275 2011-02-05  Bruno Haible  <bruno@clisp.org>
11276
11277         New module 'wcscmp'.
11278         * modules/wcscmp: New file.
11279         * lib/wchar.in.h (wcscmp): New declaration.
11280         * lib/wcscmp.c: New file.
11281         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
11282         * m4/wcscmp.m4: New file.
11283         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
11284         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
11285         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
11286         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
11287         * doc/posix-functions/wcscmp.texi: Mention the new module.
11288
11289 2011-02-05  Bruno Haible  <bruno@clisp.org>
11290
11291         New module 'wcsncat'.
11292         * modules/wcsncat: New file.
11293         * lib/wchar.in.h (wcsncat): New declaration.
11294         * lib/wcsncat.c: New file.
11295         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
11296         * m4/wcsncat.m4: New file.
11297         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
11298         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
11299         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
11300         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
11301         * doc/posix-functions/wcsncat.texi: Mention the new module.
11302
11303 2011-02-05  Bruno Haible  <bruno@clisp.org>
11304
11305         New module 'wcscat'.
11306         * modules/wcscat: New file.
11307         * lib/wchar.in.h (wcscat): New declaration.
11308         * lib/wcscat.c: New file.
11309         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
11310         * m4/wcscat.m4: New file.
11311         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
11312         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
11313         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
11314         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
11315         * doc/posix-functions/wcscat.texi: Mention the new module.
11316
11317 2011-02-05  Bruno Haible  <bruno@clisp.org>
11318
11319         New module 'wcpncpy'.
11320         * modules/wcpncpy: New file.
11321         * lib/wchar.in.h (wcpncpy): New declaration.
11322         * lib/wcpncpy.c: New file.
11323         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
11324         * m4/wcpncpy.m4: New file.
11325         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
11326         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
11327         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
11328         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
11329         * doc/posix-functions/wcpncpy.texi: Mention the new module.
11330
11331 2011-02-05  Bruno Haible  <bruno@clisp.org>
11332
11333         New module 'wcsncpy'.
11334         * modules/wcsncpy: New file.
11335         * lib/wchar.in.h (wcsncpy): New declaration.
11336         * lib/wcsncpy.c: New file.
11337         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
11338         * m4/wcsncpy.m4: New file.
11339         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
11340         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
11341         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
11342         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
11343         * doc/posix-functions/wcsncpy.texi: Mention the new module.
11344
11345 2011-02-05  Bruno Haible  <bruno@clisp.org>
11346
11347         New module 'wcpcpy'.
11348         * modules/wcpcpy: New file.
11349         * lib/wchar.in.h (wcpcpy): New declaration.
11350         * lib/wcpcpy.c: New file.
11351         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
11352         * m4/wcpcpy.m4: New file.
11353         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
11354         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
11355         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
11356         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
11357         * doc/posix-functions/wcpcpy.texi: Mention the new module.
11358
11359 2011-02-05  Bruno Haible  <bruno@clisp.org>
11360
11361         New module 'wcscpy'.
11362         * modules/wcscpy: New file.
11363         * lib/wchar.in.h (wcscpy): New declaration.
11364         * lib/wcscpy.c: New file.
11365         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
11366         * m4/wcscpy.m4: New file.
11367         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
11368         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
11369         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
11370         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
11371         * doc/posix-functions/wcscpy.texi: Mention the new module.
11372
11373 2011-02-05  Bruno Haible  <bruno@clisp.org>
11374
11375         New module 'wcsnlen'.
11376         * modules/wcsnlen: New file.
11377         * lib/wchar.in.h (wcsnlen): New declaration.
11378         * lib/wcsnlen.c: New file.
11379         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
11380         * m4/wcsnlen.m4: New file.
11381         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
11382         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
11383         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
11384         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
11385         * doc/posix-functions/wcsnlen.texi: Mention the new module.
11386
11387 2011-02-05  Bruno Haible  <bruno@clisp.org>
11388
11389         New module 'wcslen'.
11390         * modules/wcslen: New file.
11391         * lib/wchar.in.h (wcslen): New declaration.
11392         * lib/wcslen.c: New file.
11393         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
11394         * m4/wcslen.m4: New file.
11395         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
11396         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
11397         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
11398         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
11399         * doc/posix-functions/wcslen.texi: Mention the new module.
11400
11401 2011-02-05  Bruno Haible  <bruno@clisp.org>
11402
11403         New module 'wmemset'.
11404         * modules/wmemset: New file.
11405         * lib/wchar.in.h (wmemset): New declaration.
11406         * lib/wmemset.c: New file.
11407         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
11408         * m4/wmemset.m4: New file.
11409         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
11410         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
11411         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
11412         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
11413         * doc/posix-functions/wmemset.texi: Mention the new module.
11414
11415 2011-02-05  Bruno Haible  <bruno@clisp.org>
11416
11417         New module 'wmemmove'.
11418         * modules/wmemmove: New file.
11419         * lib/wchar.in.h (wmemmove): New declaration.
11420         * lib/wmemmove.c: New file.
11421         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
11422         * m4/wmemmove.m4: New file.
11423         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
11424         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
11425         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
11426         HAVE_WMEMMOVE.
11427         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
11428         * doc/posix-functions/wmemmove.texi: Mention the new module.
11429
11430 2011-02-05  Bruno Haible  <bruno@clisp.org>
11431
11432         New module 'wmemcpy'.
11433         * modules/wmemcpy: New file.
11434         * lib/wchar.in.h (wmemcpy): New declaration.
11435         * lib/wmemcpy.c: New file.
11436         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
11437         * m4/wmemcpy.m4: New file.
11438         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
11439         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
11440         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
11441         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
11442         * doc/posix-functions/wmemcpy.texi: Mention the new module.
11443
11444 2011-02-05  Bruno Haible  <bruno@clisp.org>
11445
11446         New module 'wmemcmp'.
11447         * modules/wmemcmp: New file.
11448         * lib/wchar.in.h (wmemcmp): New declaration.
11449         * lib/wmemcmp.c: New file.
11450         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
11451         * m4/wmemcmp.m4: New file.
11452         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
11453         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
11454         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
11455         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
11456         * doc/posix-functions/wmemcmp.texi: Mention the new module.
11457
11458 2011-02-07  Jim Meyering  <meyering@redhat.com>
11459
11460         di-set, ino-map: new modules, from coreutils
11461         * lib/di-set.c: New file.
11462         * lib/di-set.h: Likewise.
11463         * lib/ino-map.c: Likewise.
11464         * lib/ino-map.h: Likewise.
11465         * modules/di-set: Likewise.
11466         * modules/di-set-tests: Likewise.
11467         * modules/ino-map: Likewise.
11468         * modules/ino-map-tests: Likewise.
11469         * tests/test-di-set.c: Likewise.
11470         * tests/test-ino-map.c: Likewise.
11471
11472 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
11473
11474         getloadavg: merge minor changes from Emacs
11475
11476         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
11477         (getloadavg): Use memset, not bzero.
11478
11479         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
11480         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
11481         clash (bug#86).
11482
11483 2010-11-14  Bruno Haible  <bruno@clisp.org>
11484
11485         Allow multiple gnulib generated replacements to coexist.
11486         * lib/getopt.in.h (struct option): Avoid identical redefinition.
11487         * lib/inttypes.in.h (imaxdiv_t): Likewise.
11488         * lib/langinfo.in.h (nl_item): Likewise.
11489         * lib/math.in.h (_NaN, NAN): Likewise.
11490         * lib/netdb.in.h (struct addrinfo): Likewise.
11491         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
11492         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
11493         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
11494         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
11495         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
11496         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
11497         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
11498         pthread_mutexattr_init, pthread_mutexattr_settype,
11499         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
11500         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
11501         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
11502         pthread_spin_trylock, pthread_spin_unlock): Likewise.
11503         * lib/sched.in.h (struct sched_param): Likewise.
11504         * lib/se-selinux.in.h (security_class_t, security_context_t,
11505         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
11506         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
11507         lsetfilecon, fsetfilecon, security_check_context,
11508         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
11509         Likewise.
11510         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
11511         Likewise.
11512         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
11513         _gl_function_taking_int_returning_void_t, union sigval,
11514         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
11515         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
11516         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
11517         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
11518         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
11519         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
11520         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
11521         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
11522         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
11523         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
11524         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
11525         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
11526         socklen_t, rpl_fd_isset): Likewise.
11527         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
11528         * lib/sys_time.in.h (struct timeval): Likewise.
11529         * lib/sys_times.in.h (struct tms): Likewise.
11530         * lib/sys_utsname.in.h (struct utsname):
11531         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
11532         * lib/unistd.in.h (getpagesize): Likewise.
11533         * lib/wchar.in.h (mbstate_t): Likewise.
11534         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
11535         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
11536         towlower, towupper): Likewise.
11537         Reported by Sam Steingold <sds@gnu.org>.
11538
11539 2011-02-05  Eric Blake  <eblake@redhat.com>
11540
11541         unsetenv: work around Haiku issues
11542         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
11543         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
11544
11545 2010-12-30  Bruce Korb  <bkorb@gnu.org>
11546
11547         libposix: avoid calling error() within libposix
11548         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
11549         is defined.
11550
11551 2011-02-05  Eric Blake  <eblake@redhat.com>
11552
11553         strerror_r-posix: port to cygwin
11554         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
11555         implementation.
11556         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
11557         * tests/test-strerror_r.c (main): Fix test.
11558         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
11559         issue.
11560
11561 2011-02-05  Bruno Haible  <bruno@clisp.org>
11562
11563         New module 'wmemchr'.
11564         * modules/wmemchr: New file.
11565         * lib/wchar.in.h (wmemchr): New declaration.
11566         * lib/wmemchr.c: New file.
11567         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
11568         * m4/wmemchr.m4: New file.
11569         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
11570         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
11571         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
11572         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
11573         * doc/posix-functions/wmemchr.texi: Mention the new module.
11574
11575 2011-02-04  Eric Blake  <eblake@redhat.com>
11576
11577         fdopendir: detect FreeBSD bug
11578         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
11579         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
11580
11581 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
11582
11583         stdbool: do not define HAVE_STDBOOL_H
11584         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
11585         AC_HEADER_STDBOOL.  All uses changed.  Do not define
11586         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
11587         imported from the latest Autoconf git.  It was motivated by Emacs,
11588         which uses gnulib but does not need HAVE_STDBOOL_H.
11589
11590 2011-02-04  Bruno Haible  <bruno@clisp.org>
11591
11592         wcsnrtombs: Prepare for new module wwcsnrtombs.
11593         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
11594         * lib/wcsnrtombs.c: Include it.
11595         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
11596
11597         wcsrtombs: Prepare for new module wwcsrtombs.
11598         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
11599         * lib/wcsrtombs.c: Include it.
11600         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
11601
11602         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
11603         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
11604         * lib/mbsnrtowcs.c: Include it.
11605         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
11606
11607         mbsrtowcs: Prepare for new module mbsrtowwcs.
11608         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
11609         * lib/mbsrtowcs.c: Include it.
11610         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
11611
11612 2011-02-04  Bruno Haible  <bruno@clisp.org>
11613
11614         vasnprintf: Reduce use of malloc for small format strings.
11615         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
11616         (arguments): Add room for the first 7 arguments.
11617         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
11618         (char_directives, u8_directives, u16_directives, u32_directives): Add
11619         room for the first 7 directives.
11620         * lib/printf-parse.c: Include <string.h>.
11621         (PRINTF_PARSE): Change memory handling code so that it uses the first
11622         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
11623         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
11624         Reported by Pádraig Brady <P@draigbrady.com>.
11625
11626 2011-01-31  Eric Blake  <eblake@redhat.com>
11627
11628         dup2: work around Haiku bug
11629         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
11630         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
11631         * doc/posix-functions/dup2.texi (dup2): Document the bug.
11632         * tests/test-dup2.c (main): Enhance test.
11633
11634 2011-01-31  Simon Josefsson  <simon@josefsson.org>
11635
11636         doc: off_t is not available in eglibc 2.11.2 stdio.h.
11637         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
11638         declared by eglibc 2.11.2.
11639         * lib/stdio.in.h: Likewise.
11640
11641 2011-01-31  Eric Blake  <eblake@redhat.com>
11642
11643         ignore-value: add missing test dependency
11644         * tests/test-ignore-value.c: Revert previous change; stdio.h
11645         provides off_t.
11646         * modules/ignore-value-tests (Depends-on): Add missing dependency.
11647
11648 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
11649
11650         mktime: clarify long_int width checking
11651         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
11652         the top level, to make it clearer that the assumption about
11653         long_int width is being checked.  See
11654         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
11655
11656 2011-01-30  Simon Josefsson  <simon@josefsson.org>
11657
11658         ignore-value: Fix self-test.
11659         * tests/test-ignore-value.c: Include sys/types.h for off_t.
11660
11661 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
11662
11663         TYPE_MAXIMUM: avoid theoretically undefined behavior
11664         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
11665         negative number, which the C Standard says has undefined behavior.
11666         In practice this is not a problem, but might as well do it by the book.
11667         Reported by Rich Felker and Eric Blake; see
11668         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
11669         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
11670         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
11671         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
11672         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
11673         * m4/stdint.m4 (gl_STDINT_H): Likewise.
11674         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
11675
11676         mktime: #undef mktime before #defining it
11677         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
11678
11679         mktime: systematically normalize tm_isdst comparisons
11680         * lib/mktime.c (isdst_differ): New function.
11681         (__mktime_internal): Use it systematically for all isdst comparisons.
11682         This completes the fix for libc BZ #6723, and removes the need for
11683         normalizing tm_isdst.  See
11684         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
11685         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
11686
11687         mktime: fix some integer overflow issues and sidestep the rest
11688
11689         This was prompted by a bug report by Benjamin Lindner for MinGW
11690         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
11691         His bug is due to signed integer overflow (0 - INT_MIN), and I
11692         I scanned through mktime.c looking for other integer overflow
11693         problems, fixing all the bugs I found.
11694
11695         Although the C Standard says the resulting code is still not safe
11696         in the presence of integer overflow, in practice it should be good
11697         enough for all real-world two's-complement implementations, except
11698         for debugging environments that deliberately trap on integer
11699         overflow (e.g., gcc -ftrapv).
11700
11701         * lib/mktime.c (WRAPV): New macro.
11702         (SHR): Also check that long_int and time_t shift right in the
11703         usual way, before using the fast-but-unportable method.
11704         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
11705         used.  The code already assumed two's complement, so there's
11706         no need to test for alternatives.  All uses removed.
11707         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
11708         the C standard.  Problem reported by Rich Felker in
11709         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
11710         (twos_complement_arithmetic): Also check long_int and time_t.
11711         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
11712         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
11713         (__mktime_internal): Avoid integer overflow with unary subtraction
11714         in two instances where -1 - X is an adequate replacement for -X,
11715         since the calculations are approximate.
11716
11717 2011-01-29  Eric Blake  <eblake@redhat.com>
11718
11719         mktime: avoid infinite loop
11720         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
11721         type; behavior is still undefined but portable to all known targets.
11722         Reported by Rich Felker.
11723
11724 2011-01-29  Simon Josefsson  <simon@josefsson.org>
11725
11726         rename, unlink, same-inode: Relicense.
11727         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
11728         * modules/unlink (License): Likewise.
11729         * modules/same-inode (License): Likewise.
11730
11731 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
11732
11733         mktime: avoid problems on NetBSD 5 / i386
11734         * lib/mktime.c (long_int): New type.  This works around a problem
11735         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
11736         but time_t is 64 bits, and where I expect the existing code is
11737         wrong in some cases.
11738         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
11739         (ydhms_diff): Bring back the compile-time check for wide-enough
11740         year and yday.
11741
11742         mktime: fix misspelling in comment
11743         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
11744         This merges all recent glibc changes of importance.
11745
11746 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11747
11748         move-if-change: cope with concurrent mv of identical file.
11749         * build-aux/move-if-change (CMPPROG): Accept environment
11750         variable as an override for `cmp'.
11751         (usage): Document CMPPROG.
11752         Adjust comparison to drop stdout.  Cope with failure of mv if
11753         the target file exists and is identical to the source, for
11754         parallel builds.
11755         Report from H.J. Lu against binutils in PR binutils/12283.
11756
11757 2011-01-28  Bruce Korb  <bkorb@gnu.org>
11758
11759         * users.txt: Mention sharutils.
11760
11761 2011-01-28  Simon Josefsson  <simon@josefsson.org>
11762
11763         * users.txt: Mention OATH Toolkit.
11764
11765 2011-01-27  Bruno Haible  <bruno@clisp.org>
11766
11767         Prepare for supporting FreeBSD 10.
11768         * build-aux/config.libpath: Remove handling of freebsd1*.
11769
11770 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
11771
11772         Prepare for supporting FreeBSD 10.
11773         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
11774         match FreeBSD 10.0.
11775
11776 2011-01-27  Bruno Haible  <bruno@clisp.org>
11777
11778         vma-iter, get-rusage-as: Add OpenBSD support.
11779         * modules/vma-iter (configure.ac): Test for mquery.
11780         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
11781         * lib/vma-iter.c: Include <sys/mman.h>.
11782         (vma_iterate): Add an implementation based on mquery().
11783         * lib/resource-ext.h (get_rusage_as): Update comments.
11784         * lib/get-rusage-as.c: Likewise.
11785         * lib/get-rusage-data.c: Likewise.
11786
11787 2011-01-26  Karl Berry  <karl@gnu.org>
11788
11789         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
11790         variables to make it easier to override the makeinfo program used.
11791
11792 2011-01-26  Eric Blake  <eblake@redhat.com>
11793
11794         fcntl: work around Haiku F_DUPFD bugs
11795         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
11796         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
11797         cloexec bit on duplication.
11798         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
11799
11800 2011-01-26  Bruno Haible  <bruno@clisp.org>
11801
11802         Enable memory leak tests on AIX.
11803         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
11804         * tests/test-fprintf-posix3.c (main): Likewise.
11805
11806 2011-01-26  Bruno Haible  <bruno@clisp.org>
11807
11808         Tests for module 'get-rusage-data'.
11809         * modules/get-rusage-data-tests: New file.
11810         * tests/test-get-rusage-data.c: New file.
11811
11812         New module 'get-rusage-data'.
11813         * lib/resource-ext.h (get_rusage_data): New declaration.
11814         * lib/get-rusage-data.c: New file.
11815         * modules/get-rusage-data: New file.
11816
11817 2011-01-25  Bruno Haible  <bruno@clisp.org>
11818
11819         get-rusage-as: Allow for easier testing.
11820         * lib/resource-ext.h (get_rusage_as): Add comment.
11821         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
11822         (main): New function for interactive testing.
11823
11824 2011-01-25  Bruno Haible  <bruno@clisp.org>
11825
11826         vma-iter: Treat Haiku like BeOS.
11827         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
11828         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
11829
11830 2011-01-25  Eric Blake  <eblake@redhat.com>
11831
11832         c-stack: fix regression on cygwin when libsigsegv is present
11833         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
11834
11835 2011-01-24  Bruno Haible  <bruno@clisp.org>
11836
11837         vma-iter: Avoid empty intervals.
11838         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
11839         on an empty interval.
11840
11841 2011-01-24  Jim Meyering  <meyering@redhat.com>
11842
11843         u64: remove unnecessary #include
11844         * lib/u64.h: Don't include <stddef.h>.  It was not used.
11845
11846 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
11847
11848         Allow the user to avoid the HAVE_RAW_DECL_* macros.
11849         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
11850
11851 2011-01-23  Bruno Haible  <bruno@clisp.org>
11852
11853         New module 'vma-iter'.
11854         * lib/vma-iter.h: New file.
11855         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
11856         * modules/vma-iter: New file.
11857         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
11858         for get_rusage_as_via_iterator.
11859         (vma_iterate_callback): New function.
11860         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
11861         * modules/get-rusage-as (Depends-on): Add vma-iter.
11862
11863 2011-01-23  Bruno Haible  <bruno@clisp.org>
11864
11865         uninorm: Tweak includes.
11866         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
11867         Reported by Jim Meyering.
11868
11869 2011-01-23  Bruno Haible  <bruno@clisp.org>
11870
11871         get-rusage-as: Improve on NetBSD.
11872         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
11873         /proc, like on FreeBSD.
11874
11875 2011-01-23  Jim Meyering  <meyering@redhat.com>
11876
11877         xreadlink.h: remove unnecessary #include
11878         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
11879
11880         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
11881         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
11882
11883 2011-01-23  Bruno Haible  <bruno@clisp.org>
11884
11885         get-rusage-as: Fix bug.
11886         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
11887         original limit when aborting the first loop.
11888
11889 2011-01-23  Bruno Haible  <bruno@clisp.org>
11890
11891         wctype: Ensure valid C syntax.
11892         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
11893         unconditionally, instead of gl_NEXT_HEADERS conditionally.
11894
11895 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
11896
11897         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
11898         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
11899         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
11900         as they are needed only for configure's test case.
11901         This removes two unnecessary symbols from config.h.
11902
11903         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
11904         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
11905         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
11906         AC_CHECK_HEADERS_ONCE on a header that we also invoke
11907         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
11908         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
11909         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
11910         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
11911         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
11912         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11913         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
11914         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11915         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11916         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11917         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
11918         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11919         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
11920         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
11921
11922 2011-01-21  Eric Blake  <eblake@redhat.com>
11923
11924         maintainer-makefile: work with older git for submodule check
11925         * top/maint.mk (public-submodule-commit): Rewrite to avoid
11926         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
11927         Reported by Matthias Bolte.
11928
11929         bootstrap: minor portability fixes
11930         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
11931         (usage): Omit leading capital and trailing . on help phrases, per
11932         GNU Coding Standards.
11933         (check_versions, top level): Prefix messages with script name.
11934
11935 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
11936
11937         bootstrap: support --no-git option
11938         * build-aux/bootstrap: Add --no-git option, to be used when
11939         --gnulib-srcdir points to the exact desired checkout.
11940
11941 2011-01-21  Eric Blake  <eblake@redhat.com>
11942
11943         strerror_r-posix: work with glibc 2.13
11944         * lib/strerror_r.c (strerror_r): Fix return type.
11945
11946 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11947             Bruno Haible  <bruno@clisp.org>
11948
11949         uN_strstr: New unit tests.
11950         * modules/unistr/u8-strstr-tests: New file.
11951         * modules/unistr/u16-strstr-tests: New file.
11952         * modules/unistr/u32-strstr-tests: New file.
11953         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
11954         * tests/unistr/test-u8-strstr.c: New file.
11955         * tests/unistr/test-u16-strstr.c: New file.
11956         * tests/unistr/test-u32-strstr.c: New file.
11957
11958 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11959             Bruno Haible  <bruno@clisp.org>
11960
11961         Make uN_strstr functions O(n) worst-case.
11962         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
11963         16-bit and 32-bit unit cases, use the unibyte algorithm from
11964         lib/mbsstr.c.
11965         * lib/unistr/u8-strstr.c: Include <string.h>.
11966         (UNIT_IS_UINT8_T): New macro.
11967         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
11968         (U_STRLEN, U_STRNLEN): New macros.
11969         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
11970         (U_STRLEN, U_STRNLEN): New macros.
11971         * modules/unistr/u8-strstr (Depends-on): Add strstr.
11972         (configure.ac): Update required libunistring version.
11973         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
11974         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
11975         malloca.
11976         (configure.ac): Update required libunistring version.
11977         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
11978         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
11979         malloca.
11980         (configure.ac): Update required libunistring version.
11981
11982 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11983             Bruno Haible  <bruno@clisp.org>
11984
11985         Prepare for faster uN_strstr functions.
11986         * lib/str-kmp.h: Support definable UNITs.
11987         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
11988         needle_len argument.
11989         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
11990         * lib/mbscasestr.c (mbscasestr): Likewise.
11991
11992 2011-01-21  Pádraig Brady <P@draigBrady.com>
11993
11994         malloca-tests: make faster by unsetting MALLOC_PERTURB_
11995         * tests/test-malloca.c (main): Unset the environment variable
11996         to greatly speed up the test.
11997         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
11998         * modules/malloca-tests: Depend on unsetenv.
11999
12000 2011-01-21  Pádraig Brady <P@draigBrady.com>
12001
12002         ignore-value: remove stdint dependency
12003         * lib/ignore-value.h: Remove <stdint.h>
12004         * modules/ignore-value: Remove stdint dependency.
12005
12006 2011-01-21  Jim Meyering  <meyering@redhat.com>
12007
12008         maint.mk: adjust variable name to be consistent with other gl_ vars
12009         * top/maint.mk (gl_public_submodule_commit): Rename the variable
12010         to be lower case.
12011
12012 2011-01-20  Jim Meyering  <meyering@redhat.com>
12013
12014         maint.mk: make "check" depend on public-submodule-commit by default
12015         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
12016
12017 2011-01-20  Bruno Haible  <bruno@clisp.org>
12018
12019         mbfile, mbiter: Complete change from 2008-12-21.
12020         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
12021         * m4/mbiter.m4 (gl_MBITER): Likewise.
12022
12023 2011-01-20  Jim Meyering  <meyering@redhat.com>
12024
12025         init.sh: insert space between each function name and "()"
12026         * tests/init.sh: Make it a little easier to see that a function's
12027         name is "warn_", and not "warn" when looking at the first part of
12028         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
12029
12030 2011-01-20  Jim Meyering  <meyering@redhat.com>
12031
12032         mountlist: clean up code formatting
12033         * lib/mountlist.c (read_file_system_list): Split a long line,
12034         correct bracing style, use NULL in place of "(struct statfs *)0",
12035         don't parenthesize return value, add spaces around "=" and after
12036         ";-in-for-stmt".
12037
12038 2011-01-14  Markus Duft <mduft@gentoo.org>
12039
12040         mountlist: add support for Interix
12041         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
12042         Apply statvfs to all entries of /dev/fs.
12043         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
12044         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
12045
12046 2011-01-20  Jim Meyering  <meyering@redhat.com>
12047
12048         maint.mk: improve the public-submodule-commit rule
12049         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
12050         to suppress printing of its commands... unless V=1.
12051         Add git submodule's --quiet option to suppress printing of e.g.,
12052         "Entering gnulib" output.
12053         "cd" into $(srcdir) before running git submodule.
12054
12055 2011-01-20  Bruno Haible  <bruno@clisp.org>
12056
12057         include_next: Fix bug introduced on 2011-01-18.
12058         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
12059         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
12060         ac_cv_header_... variable if the second argument is not 'check'.
12061         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
12062         gl_NEXT_HEADERS_INTERNAL.
12063
12064 2011-01-20  Bruno Haible  <bruno@clisp.org>
12065
12066         Allow the user to avoid the GNULIB_TEST_* macros.
12067         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
12068         Suggested by Paul Eggert.
12069
12070 2011-01-14  Jim Meyering  <meyering@redhat.com>
12071
12072         bootstrap: avoid failure when there is no .gitmodules file
12073         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
12074         has been assigned to, even when its value is the empty string.
12075         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
12076         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
12077         Reported by John W. Eaton <jwe@gnu.org>.
12078
12079 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
12080
12081         assume <ctype.h>, ..., <time.h> exist
12082         For years gnulib has been assuming the existence of the headers
12083         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
12084         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
12085         them, since they don't appear to be needed.
12086         * README (Portability guidelines): Document this.
12087         * lib/flock.c: Assume <fcntl.h> exists.
12088         * lib/regex_internal.h: Assume <locale.h> exists.
12089         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
12090         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
12091         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
12092         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
12093         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
12094         * m4/regex.m4 (gl_REGEX): Likewise.
12095         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
12096         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
12097         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
12098         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
12099         * tests/test-argp.c: Likewise.
12100         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
12101
12102         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
12103         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
12104         AA_APPLE_UNIVERSAL_BUILD.  See
12105         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
12106         * NEWS: Document this.
12107
12108 2011-01-19  Eric Blake  <eblake@redhat.com>
12109
12110         c-stack: assume stack overflow if SA_SIGINFO unsupported
12111         * lib/c-stack.c (SIGACTION_WORKS): Rename...
12112         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
12113         sigaction will work.
12114         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
12115         behavior match Linux.
12116         * tests/test-c-stack.c (main): Prefer NULL for pointers.
12117
12118         stdbool-tests: accomodate Haiku
12119         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
12120
12121         binary-io: fix O_TEXT on Haiku
12122         * modules/binary-io (Depends-on): Add fcntl-h.
12123         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
12124         than blindly undefining O_TEXT.
12125         Reported by Scott McCreary.
12126
12127 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12128
12129         include_next: do not check for standard headers like stddef.h
12130
12131         I found this problem when modifying Emacs to use gnulib.
12132         I noticed that it added HAVE_STDDEF_H to config.h, even though
12133         gnulib always assumes <stddef.h> exists as per README and this
12134         symbol is unnecessary.
12135         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
12136         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
12137         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
12138         faster for headers like stddef.h that are known to exist.
12139         (gl_CHECK_NEXT_HEADERS): Use it.
12140         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
12141         rather than gl_CHECK_NEXT_HEADERS.
12142         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
12143         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
12144
12145 2011-01-18  Eric Blake  <eblake@redhat.com>
12146
12147         ansi-c++-opt: skip C++ dependency style if C++ is unused
12148         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
12149         tests when we know C++ compilation is not desired.
12150         Reported by Scott McCreary.
12151
12152 2011-01-18  Bruno Haible  <bruno@clisp.org>
12153
12154         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
12155         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
12156         (main): Perform test also when getrlimit and setrlimit don't exist or
12157         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
12158         limiting the address space size using setrlimit, compare the address
12159         space size before and after the the test.
12160         * tests/test-dprintf-posix2.c: Likewise.
12161         * tests/test-fprintf-posix3.sh: Update skip messages.
12162         * tests/test-dprintf-posix2.sh: Likewise.
12163         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
12164         * modules/dprintf-posix-tests (Depends-on): Likewise.
12165         Reported by Bruce Korb <bkorb@gnu.org> and
12166         Gary V. Vaughan <gary@gnu.org>.
12167
12168 2011-01-18  Bruno Haible  <bruno@clisp.org>
12169
12170         get-rusage-as: Improvement for Cygwin.
12171         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
12172         areas that are merely reserved.
12173
12174 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
12175
12176         strftime: remove dependencies on multibyte modules
12177
12178         strftime depended on mbrlen, mbsinit, and wchar, but these modules
12179         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
12180         only if __osf__ is defined, and I suspect OSF doesn't need these
12181         other modules.  If my guess is wrong, we'll need to come up with a
12182         variant of strftime that doesn't need the multibyte modules.
12183
12184         I discovered this problem when attempting modify Emacs to use the
12185         strftime module.  With the previous gnulib, this caused Emacs to
12186         need 31 new files, ranging from lib/config.charset to
12187         m4/wint_t.m4.  This was overkill and I expect would be offputting
12188         to the Emacs maintainers.  After this change, only 6 new files are
12189         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
12190         stdbool.m4, and tm_gmtoff.m4.
12191
12192         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
12193         Suggested by Bruno Haible in
12194         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
12195         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
12196         and do not check for wchar.h.
12197         * modules/strftime (Files): Remove m4/mbstate_t.m4.
12198         (Depends-on): Remove mbrlen, mbsinit, wchar.
12199
12200 2011-01-18  Bruno Haible  <bruno@clisp.org>
12201
12202         Tests for module 'get-rusage-as'.
12203         * modules/get-rusage-as-tests: New file.
12204         * tests/test-get-rusage-as.c: New file.
12205
12206         New module 'get-rusage-as'.
12207         * modules/get-rusage-as: New file.
12208         * lib/resource-ext.h: New file.
12209         * lib/get-rusage-as.c: New file.
12210
12211 2011-01-17  Eric Blake  <eblake@redhat.com>
12212
12213         sigaction: relax license from LGPLv3+ to LGPLv2+
12214         * modules/sigaction (License): Relax to LGPLv2+.
12215
12216 2011-01-14  Bruno Haible  <bruno@clisp.org>
12217
12218         filemode: Make function declarations usable in C++ mode.
12219         * lib/filemode.h: Enclose function declarations in extern "C" block.
12220         Reported by John W. Eaton <jwe@gnu.org>.
12221
12222 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
12223
12224         save-cwd: no longer include "xgetcwd.h"
12225         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
12226         This avoids a compilation failure in projects that use save-cwd
12227         without also using the xgetcwd module.
12228
12229 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
12230
12231         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
12232         This is so that a program like Emacs, which needs only dtoastr,
12233         does not have to bother with distributing and compiling ftoastr
12234         and ldtoastr.
12235         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
12236         * modules/dtoastr, modules/ldtoastr: New files.
12237         * modules/ftoastr: Now works just for 'float'.
12238         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
12239         (Makefile.am): Remove ftoastr.h (not needed and no effect),
12240         dtoastr.c, ldtoastr.c.
12241
12242 2011-01-11  Jim Meyering  <meyering@redhat.com>
12243
12244         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
12245         There is no need to work around the lack of the fchdir function,
12246         since gnulib can now provide a replacement when required.
12247         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
12248         * modules/save-cwd (Depends-on): Add fchdir.
12249
12250 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
12251
12252         openat, save-cwd: avoid xmalloc
12253
12254         This removes a direct (but undocumented) dependency of openat on
12255         xalloc, along with an indirect dependency via save-cwd.  It also
12256         removes a dependency of save-cwd on xgetcwd, and thereby
12257         indirectly on xalloc.  This change causes the openat substitute
12258         to fall back on save_cwd when memory is tight, and for save_cwd to
12259         fail instead of dying when memory is tight, but that's good enough.
12260         Problem and initial idea for fix reported by Bastien Roucaries in
12261         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
12262
12263         * lib/openat-proc.c: Include stdlib.h (for malloc), not
12264         xalloc.h (for xmalloc).
12265         (openat_proc_name): Use malloc, not xmalloc.
12266         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
12267         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
12268
12269         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
12270         This avoids heap allocation for file names whose lengths are in
12271         the range 512..1023, with the upper bound increasing to at most
12272         4031 depending on the platform's PATH_MAX.  (We do not want
12273         pathmax.h here as it might supply a non-constant PATH_MAX.)
12274         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
12275         Perhaps they should be moved to malloca.h?
12276         (OPENAT_BUFFER_SIZE): Use them.
12277
12278 2011-01-10  Bruno Haible  <bruno@clisp.org>
12279
12280         doc: Update users.txt.
12281         * users.txt: Add recutils.
12282
12283 2011-01-09  Karl Berry  <karl@gnu.org>
12284
12285         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
12286
12287         * doc/configmake.texi: New file.
12288         * doc/gnulib.texi: Include it.
12289         * modules/configmake: Move documentation from here.
12290
12291 2011-01-09  Bruno Haible  <bruno@clisp.org>
12292
12293         Update to Unicode 6.0.0.
12294         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
12295         (get_lbp): Update for Unicode 6.0.0.
12296         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
12297         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
12298         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
12299         U+11001, U+11038..U+11046. Remove U+06DE.
12300         (uc_width): Fix bounds of planes.
12301         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12302         lib/uniwidth/width.c.
12303         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
12304         trailing whitespace removed.
12305         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
12306         without comments, but with the original copyright notice.
12307         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
12308         * lib/unicase/ignorable.h: Likewise.
12309         * lib/unicase/tocasefold.h: Likewise.
12310         * lib/unicase/tolower.h: Likewise.
12311         * lib/unicase/totitle.h: Likewise.
12312         * lib/unicase/toupper.h: Likewise.
12313         * lib/unictype/bidi_of.h: Likewise.
12314         * lib/unictype/blocks.h: Likewise.
12315         * lib/unictype/categ_C.h: Likewise.
12316         * lib/unictype/categ_Cn.h: Likewise.
12317         * lib/unictype/categ_L.h: Likewise.
12318         * lib/unictype/categ_Ll.h: Likewise.
12319         * lib/unictype/categ_Lm.h: Likewise.
12320         * lib/unictype/categ_Lo.h: Likewise.
12321         * lib/unictype/categ_Lu.h: Likewise.
12322         * lib/unictype/categ_M.h: Likewise.
12323         * lib/unictype/categ_Mc.h: Likewise.
12324         * lib/unictype/categ_Me.h: Likewise.
12325         * lib/unictype/categ_Mn.h: Likewise.
12326         * lib/unictype/categ_N.h: Likewise.
12327         * lib/unictype/categ_Nd.h: Likewise.
12328         * lib/unictype/categ_No.h: Likewise.
12329         * lib/unictype/categ_P.h: Likewise.
12330         * lib/unictype/categ_Po.h: Likewise.
12331         * lib/unictype/categ_S.h: Likewise.
12332         * lib/unictype/categ_Sc.h: Likewise.
12333         * lib/unictype/categ_Sk.h: Likewise.
12334         * lib/unictype/categ_Sm.h: Likewise.
12335         * lib/unictype/categ_So.h: Likewise.
12336         * lib/unictype/categ_of.h: Likewise.
12337         * lib/unictype/combining.h: Likewise.
12338         * lib/unictype/ctype_alnum.h: Likewise.
12339         * lib/unictype/ctype_alpha.h: Likewise.
12340         * lib/unictype/ctype_graph.h: Likewise.
12341         * lib/unictype/ctype_lower.h: Likewise.
12342         * lib/unictype/ctype_print.h: Likewise.
12343         * lib/unictype/ctype_punct.h: Likewise.
12344         * lib/unictype/ctype_upper.h: Likewise.
12345         * lib/unictype/decdigit.h: Likewise.
12346         * lib/unictype/digit.h: Likewise.
12347         * lib/unictype/numeric.h: Likewise.
12348         * lib/unictype/pr_alphabetic.h: Likewise.
12349         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
12350         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
12351         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
12352         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
12353         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
12354         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
12355         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
12356         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
12357         * lib/unictype/pr_case_ignorable.h: Likewise.
12358         * lib/unictype/pr_cased.h: Likewise.
12359         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
12360         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
12361         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
12362         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
12363         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
12364         * lib/unictype/pr_combining.h: Likewise.
12365         * lib/unictype/pr_composite.h: Likewise.
12366         * lib/unictype/pr_currency_symbol.h: Likewise.
12367         * lib/unictype/pr_decimal_digit.h: Likewise.
12368         * lib/unictype/pr_deprecated.h: Likewise.
12369         * lib/unictype/pr_format_control.h: Likewise.
12370         * lib/unictype/pr_grapheme_base.h: Likewise.
12371         * lib/unictype/pr_grapheme_extend.h: Likewise.
12372         * lib/unictype/pr_grapheme_link.h: Likewise.
12373         * lib/unictype/pr_id_continue.h: Likewise.
12374         * lib/unictype/pr_id_start.h: Likewise.
12375         * lib/unictype/pr_ideographic.h: Likewise.
12376         * lib/unictype/pr_lowercase.h: Likewise.
12377         * lib/unictype/pr_math.h: Likewise.
12378         * lib/unictype/pr_numeric.h: Likewise.
12379         * lib/unictype/pr_other_alphabetic.h: Likewise.
12380         * lib/unictype/pr_other_id_continue.h: Likewise.
12381         * lib/unictype/pr_other_math.h: Likewise.
12382         * lib/unictype/pr_punctuation.h: Likewise.
12383         * lib/unictype/pr_sentence_terminal.h: Likewise.
12384         * lib/unictype/pr_terminal_punctuation.h: Likewise.
12385         * lib/unictype/pr_unassigned_code_value.h: Likewise.
12386         * lib/unictype/pr_unified_ideograph.h: Likewise.
12387         * lib/unictype/pr_uppercase.h: Likewise.
12388         * lib/unictype/pr_xid_continue.h: Likewise.
12389         * lib/unictype/pr_xid_start.h: Likewise.
12390         * lib/unictype/scripts.h: Likewise.
12391         * lib/unictype/scripts_byname.gperf: Likewise.
12392         * lib/unictype/sy_java_ident.h: Likewise.
12393         * lib/unigbrk/gbrkprop.h: Likewise.
12394         * lib/unilbrk/lbrkprop1.h: Likewise.
12395         * lib/unilbrk/lbrkprop2.h: Likewise.
12396         * lib/uninorm/decomposition-table2.h: Likewise.
12397         * lib/uniwbrk/wbrkprop.h: Likewise.
12398         * tests/unicase/test-cased.c: Likewise.
12399         * tests/unicase/test-ignorable.c: Likewise.
12400         * tests/unicase/test-uc_tolower.c: Likewise.
12401         * tests/unicase/test-uc_totitle.c: Likewise.
12402         * tests/unicase/test-uc_toupper.c: Likewise.
12403         * tests/unictype/test-categ_C.c: Likewise.
12404         * tests/unictype/test-categ_Cn.c: Likewise.
12405         * tests/unictype/test-categ_L.c: Likewise.
12406         * tests/unictype/test-categ_Ll.c: Likewise.
12407         * tests/unictype/test-categ_Lm.c: Likewise.
12408         * tests/unictype/test-categ_Lo.c: Likewise.
12409         * tests/unictype/test-categ_Lu.c: Likewise.
12410         * tests/unictype/test-categ_M.c: Likewise.
12411         * tests/unictype/test-categ_Mc.c: Likewise.
12412         * tests/unictype/test-categ_Me.c: Likewise.
12413         * tests/unictype/test-categ_Mn.c: Likewise.
12414         * tests/unictype/test-categ_N.c: Likewise.
12415         * tests/unictype/test-categ_Nd.c: Likewise.
12416         * tests/unictype/test-categ_No.c: Likewise.
12417         * tests/unictype/test-categ_P.c: Likewise.
12418         * tests/unictype/test-categ_Po.c: Likewise.
12419         * tests/unictype/test-categ_S.c: Likewise.
12420         * tests/unictype/test-categ_Sc.c: Likewise.
12421         * tests/unictype/test-categ_Sk.c: Likewise.
12422         * tests/unictype/test-categ_Sm.c: Likewise.
12423         * tests/unictype/test-categ_So.c: Likewise.
12424         * tests/unictype/test-ctype_alnum.c: Likewise.
12425         * tests/unictype/test-ctype_alpha.c: Likewise.
12426         * tests/unictype/test-ctype_graph.c: Likewise.
12427         * tests/unictype/test-ctype_lower.c: Likewise.
12428         * tests/unictype/test-ctype_print.c: Likewise.
12429         * tests/unictype/test-ctype_punct.c: Likewise.
12430         * tests/unictype/test-ctype_upper.c: Likewise.
12431         * tests/unictype/test-decdigit.h: Likewise.
12432         * tests/unictype/test-digit.h: Likewise.
12433         * tests/unictype/test-numeric.h: Likewise.
12434         * tests/unictype/test-pr_alphabetic.c: Likewise.
12435         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
12436         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
12437         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
12438         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
12439         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
12440         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
12441         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
12442         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
12443         * tests/unictype/test-pr_case_ignorable.c: Likewise.
12444         * tests/unictype/test-pr_cased.c: Likewise.
12445         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
12446         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
12447         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
12448         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
12449         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
12450         * tests/unictype/test-pr_combining.c: Likewise.
12451         * tests/unictype/test-pr_composite.c: Likewise.
12452         * tests/unictype/test-pr_currency_symbol.c: Likewise.
12453         * tests/unictype/test-pr_decimal_digit.c: Likewise.
12454         * tests/unictype/test-pr_deprecated.c: Likewise.
12455         * tests/unictype/test-pr_format_control.c: Likewise.
12456         * tests/unictype/test-pr_grapheme_base.c: Likewise.
12457         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
12458         * tests/unictype/test-pr_grapheme_link.c: Likewise.
12459         * tests/unictype/test-pr_id_continue.c: Likewise.
12460         * tests/unictype/test-pr_id_start.c: Likewise.
12461         * tests/unictype/test-pr_ideographic.c: Likewise.
12462         * tests/unictype/test-pr_lowercase.c: Likewise.
12463         * tests/unictype/test-pr_math.c: Likewise.
12464         * tests/unictype/test-pr_numeric.c: Likewise.
12465         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
12466         * tests/unictype/test-pr_other_id_continue.c: Likewise.
12467         * tests/unictype/test-pr_other_math.c: Likewise.
12468         * tests/unictype/test-pr_punctuation.c: Likewise.
12469         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
12470         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
12471         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
12472         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
12473         * tests/unictype/test-pr_uppercase.c: Likewise.
12474         * tests/unictype/test-pr_xid_continue.c: Likewise.
12475         * tests/unictype/test-pr_xid_start.c: Likewise.
12476         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
12477         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
12478         changes.
12479         * lib/unictype/categ_Cc.h: Likewise.
12480         * lib/unictype/categ_Cf.h: Likewise.
12481         * lib/unictype/categ_Co.h: Likewise.
12482         * lib/unictype/categ_Cs.h: Likewise.
12483         * lib/unictype/categ_Lt.h: Likewise.
12484         * lib/unictype/categ_Nl.h: Likewise.
12485         * lib/unictype/categ_Pc.h: Likewise.
12486         * lib/unictype/categ_Pd.h: Likewise.
12487         * lib/unictype/categ_Pe.h: Likewise.
12488         * lib/unictype/categ_Pf.h: Likewise.
12489         * lib/unictype/categ_Pi.h: Likewise.
12490         * lib/unictype/categ_Ps.h: Likewise.
12491         * lib/unictype/categ_Z.h: Likewise.
12492         * lib/unictype/categ_Zl.h: Likewise.
12493         * lib/unictype/categ_Zp.h: Likewise.
12494         * lib/unictype/categ_Zs.h: Likewise.
12495         * lib/unictype/ctype_blank.h: Likewise.
12496         * lib/unictype/ctype_cntrl.h: Likewise.
12497         * lib/unictype/ctype_digit.h: Likewise.
12498         * lib/unictype/ctype_space.h: Likewise.
12499         * lib/unictype/ctype_xdigit.h: Likewise.
12500         * lib/unictype/mirror.h: Likewise.
12501         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
12502         * lib/unictype/pr_bidi_block_separator.h: Likewise.
12503         * lib/unictype/pr_bidi_common_separator.h: Likewise.
12504         * lib/unictype/pr_bidi_control.h: Likewise.
12505         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
12506         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
12507         * lib/unictype/pr_bidi_european_digit.h: Likewise.
12508         * lib/unictype/pr_bidi_pdf.h: Likewise.
12509         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
12510         * lib/unictype/pr_bidi_whitespace.h: Likewise.
12511         * lib/unictype/pr_dash.h: Likewise.
12512         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
12513         * lib/unictype/pr_diacritic.h: Likewise.
12514         * lib/unictype/pr_extender.h: Likewise.
12515         * lib/unictype/pr_hex_digit.h: Likewise.
12516         * lib/unictype/pr_hyphen.h: Likewise.
12517         * lib/unictype/pr_ids_binary_operator.h: Likewise.
12518         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
12519         * lib/unictype/pr_ignorable_control.h: Likewise.
12520         * lib/unictype/pr_iso_control.h: Likewise.
12521         * lib/unictype/pr_join_control.h: Likewise.
12522         * lib/unictype/pr_left_of_pair.h: Likewise.
12523         * lib/unictype/pr_line_separator.h: Likewise.
12524         * lib/unictype/pr_logical_order_exception.h: Likewise.
12525         * lib/unictype/pr_non_break.h: Likewise.
12526         * lib/unictype/pr_not_a_character.h: Likewise.
12527         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
12528         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
12529         * lib/unictype/pr_other_id_start.h: Likewise.
12530         * lib/unictype/pr_other_lowercase.h: Likewise.
12531         * lib/unictype/pr_other_uppercase.h: Likewise.
12532         * lib/unictype/pr_paired_punctuation.h: Likewise.
12533         * lib/unictype/pr_paragraph_separator.h: Likewise.
12534         * lib/unictype/pr_pattern_syntax.h: Likewise.
12535         * lib/unictype/pr_pattern_white_space.h: Likewise.
12536         * lib/unictype/pr_private_use.h: Likewise.
12537         * lib/unictype/pr_quotation_mark.h: Likewise.
12538         * lib/unictype/pr_radical.h: Likewise.
12539         * lib/unictype/pr_soft_dotted.h: Likewise.
12540         * lib/unictype/pr_space.h: Likewise.
12541         * lib/unictype/pr_titlecase.h: Likewise.
12542         * lib/unictype/pr_variation_selector.h: Likewise.
12543         * lib/unictype/pr_white_space.h: Likewise.
12544         * lib/unictype/pr_zero_width.h: Likewise.
12545         * lib/unictype/sy_c_ident.h: Likewise.
12546         * lib/unictype/sy_c_whitespace.h: Likewise.
12547         * lib/unictype/sy_java_whitespace.h: Likewise.
12548         * lib/uninorm/composition-table.gperf: Likewise.
12549         * lib/uninorm/decomposition-table1.h: Likewise.
12550         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
12551         LB8.
12552         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12553         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12554         * modules/unictype/*: Bump version number of expected libunistring
12555         version.
12556
12557 2011-01-09  Bruno Haible  <bruno@clisp.org>
12558
12559         Update to Unicode 5.2.0.
12560         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
12561         trailing whitespace removed.
12562
12563 2011-01-09  Bruno Haible  <bruno@clisp.org>
12564
12565         New Unicode character properties, from Unicode 5.2.0.
12566         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
12567         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
12568         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
12569         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
12570         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
12571         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
12572         uc_is_property_cased, uc_is_property_case_ignorable,
12573         uc_is_property_changes_when_lowercased,
12574         uc_is_property_changes_when_uppercased,
12575         uc_is_property_changes_when_titlecased,
12576         uc_is_property_changes_when_casefolded,
12577         uc_is_property_changes_when_casemapped): New declarations.
12578         * lib/unictype/pr_byname.gperf: Add the new properties.
12579         * modules/unictype/property-byname (Depends-on): Depend on the new
12580         properties modules.
12581         * modules/unictype/property-all (Depends-on): Likewise.
12582         * MODULES.html.sh (Unicode string functions): Add
12583         unictype/property-case-ignorable, unictype/property-cased,
12584         unictype/property-changes-when-casefolded,
12585         unictype/property-changes-when-casemapped,
12586         unictype/property-changes-when-lowercased,
12587         unictype/property-changes-when-titlecased,
12588         unictype/property-changes-when-uppercased.
12589
12590         New module 'unictype/property-changes-when-casemapped'.
12591         * modules/unictype/property-changes-when-casemapped: New file.
12592         * lib/unictype/pr_changes_when_casemapped.c: New file.
12593         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
12594         generated by gen-uni-tables.
12595         * modules/unictype/property-changes-when-casemapped-tests: New file.
12596         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
12597         automatically generated by gen-uni-tables.
12598
12599         New module 'unictype/property-changes-when-casefolded'.
12600         * modules/unictype/property-changes-when-casefolded: New file.
12601         * lib/unictype/pr_changes_when_casefolded.c: New file.
12602         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
12603         generated by gen-uni-tables.
12604         * modules/unictype/property-changes-when-casefolded-tests: New file.
12605         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
12606         automatically generated by gen-uni-tables.
12607
12608         New module 'unictype/property-changes-when-titlecased'.
12609         * modules/unictype/property-changes-when-titlecased: New file.
12610         * lib/unictype/pr_changes_when_titlecased.c: New file.
12611         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
12612         generated by gen-uni-tables.
12613         * modules/unictype/property-changes-when-titlecased-tests: New file.
12614         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
12615         automatically generated by gen-uni-tables.
12616
12617         New module 'unictype/property-changes-when-uppercased'.
12618         * modules/unictype/property-changes-when-uppercased: New file.
12619         * lib/unictype/pr_changes_when_uppercased.c: New file.
12620         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
12621         generated by gen-uni-tables.
12622         * modules/unictype/property-changes-when-uppercased-tests: New file.
12623         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
12624         automatically generated by gen-uni-tables.
12625
12626         New module 'unictype/property-changes-when-lowercased'.
12627         * modules/unictype/property-changes-when-lowercased: New file.
12628         * lib/unictype/pr_changes_when_lowercased.c: New file.
12629         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
12630         generated by gen-uni-tables.
12631         * modules/unictype/property-changes-when-lowercased-tests: New file.
12632         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
12633         automatically generated by gen-uni-tables.
12634
12635         New module 'unictype/property-case-ignorable'.
12636         * modules/unictype/property-case-ignorable: New file.
12637         * lib/unictype/pr_case_ignorable.c: New file.
12638         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
12639         by gen-uni-tables.
12640         * modules/unictype/property-case-ignorable-tests: New file.
12641         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
12642         generated by gen-uni-tables.
12643
12644         New module 'unictype/property-cased'.
12645         * modules/unictype/property-cased: New file.
12646         * lib/unictype/pr_cased.c: New file.
12647         * lib/unictype/pr_cased.h: New file, automatically generated by
12648         gen-uni-tables.
12649         * modules/unictype/property-cased-tests: New file.
12650         * tests/unictype/test-pr_cased.c: New file, automatically generated by
12651         gen-uni-tables.
12652
12653 2011-01-09  Bruno Haible  <bruno@clisp.org>
12654
12655         Update to Unicode 5.2.0.
12656         * lib/gen-uni-tables.c (output_predicate, output_category,
12657         output_combclass, output_bidi_category, output_decimal_digit_test,
12658         output_decimal_digit, output_digit_test, output_digit,
12659         output_numeric_test, output_numeric, output_mirror, output_scripts,
12660         output_scripts_byname, output_blocks, output_ident_category): Fix
12661         comment header.
12662         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
12663         get_wbp.
12664         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
12665         items.
12666         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
12667         Changes_When_Lowercased, Changes_When_Uppercased,
12668         Changes_When_Titlecased, Changes_When_Casefolded,
12669         Changes_When_Casemapped.
12670         (is_property_alphabetic, is_property_default_ignorable_code_point):
12671         Update for Unicode 5.2.0.
12672         (is_property_cased, is_property_case_ignorable,
12673         is_property_changes_when_lowercased,
12674         is_property_changes_when_uppercased,
12675         is_property_changes_when_titlecased,
12676         is_property_changes_when_casefolded,
12677         is_property_changes_when_casemapped): New functions.
12678         (output_properties): Output also the properties cased, case_ignorable,
12679         changes_when_lowercased, changes_when_uppercased,
12680         changes_when_titlecased, changes_when_casefolded,
12681         changes_when_casemapped.
12682         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
12683         Unicode TR#11 revision 17 -> 19.
12684         (LBP_CP): New enumeration value.
12685         (LBP_*): Adjust values accordingly.
12686         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
12687         TR#14 revision 22 -> 24.
12688         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
12689         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
12690         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
12691         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
12692         is_WBP_MIDLETTER.
12693         (output_composition_tables): Allow for 24 bits instead of 16 bits in
12694         the code1 and code2 of each composition rule.
12695         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
12696         * lib/unicase/ignorable.h: Likewise.
12697         * lib/unicase/tocasefold.h: Likewise.
12698         * lib/unicase/tolower.h: Likewise.
12699         * lib/unicase/totitle.h: Likewise.
12700         * lib/unicase/toupper.h: Likewise.
12701         * lib/unictype/bidi_of.h: Likewise.
12702         * lib/unictype/blocks.h: Likewise.
12703         * lib/unictype/categ_C.h: Likewise.
12704         * lib/unictype/categ_Cf.h: Likewise.
12705         * lib/unictype/categ_Cn.h: Likewise.
12706         * lib/unictype/categ_L.h: Likewise.
12707         * lib/unictype/categ_Ll.h: Likewise.
12708         * lib/unictype/categ_Lm.h: Likewise.
12709         * lib/unictype/categ_Lo.h: Likewise.
12710         * lib/unictype/categ_Lu.h: Likewise.
12711         * lib/unictype/categ_M.h: Likewise.
12712         * lib/unictype/categ_Mc.h: Likewise.
12713         * lib/unictype/categ_Mn.h: Likewise.
12714         * lib/unictype/categ_N.h: Likewise.
12715         * lib/unictype/categ_Nd.h: Likewise.
12716         * lib/unictype/categ_Nl.h: Likewise.
12717         * lib/unictype/categ_No.h: Likewise.
12718         * lib/unictype/categ_P.h: Likewise.
12719         * lib/unictype/categ_Pd.h: Likewise.
12720         * lib/unictype/categ_Po.h: Likewise.
12721         * lib/unictype/categ_S.h: Likewise.
12722         * lib/unictype/categ_Sc.h: Likewise.
12723         * lib/unictype/categ_So.h: Likewise.
12724         * lib/unictype/categ_of.h: Likewise.
12725         * lib/unictype/combining.h: Likewise.
12726         * lib/unictype/ctype_alnum.h: Likewise.
12727         * lib/unictype/ctype_alpha.h: Likewise.
12728         * lib/unictype/ctype_graph.h: Likewise.
12729         * lib/unictype/ctype_lower.h: Likewise.
12730         * lib/unictype/ctype_print.h: Likewise.
12731         * lib/unictype/ctype_punct.h: Likewise.
12732         * lib/unictype/ctype_upper.h: Likewise.
12733         * lib/unictype/decdigit.h: Likewise.
12734         * lib/unictype/digit.h: Likewise.
12735         * lib/unictype/numeric.h: Likewise.
12736         * lib/unictype/pr_alphabetic.h: Likewise.
12737         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
12738         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
12739         * lib/unictype/pr_bidi_european_digit.h: Likewise.
12740         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
12741         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
12742         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
12743         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
12744         * lib/unictype/pr_combining.h: Likewise.
12745         * lib/unictype/pr_composite.h: Likewise.
12746         * lib/unictype/pr_currency_symbol.h: Likewise.
12747         * lib/unictype/pr_dash.h: Likewise.
12748         * lib/unictype/pr_decimal_digit.h: Likewise.
12749         * lib/unictype/pr_deprecated.h: Likewise.
12750         * lib/unictype/pr_diacritic.h: Likewise.
12751         * lib/unictype/pr_extender.h: Likewise.
12752         * lib/unictype/pr_grapheme_base.h: Likewise.
12753         * lib/unictype/pr_grapheme_extend.h: Likewise.
12754         * lib/unictype/pr_grapheme_link.h: Likewise.
12755         * lib/unictype/pr_id_continue.h: Likewise.
12756         * lib/unictype/pr_id_start.h: Likewise.
12757         * lib/unictype/pr_ideographic.h: Likewise.
12758         * lib/unictype/pr_ignorable_control.h: Likewise.
12759         * lib/unictype/pr_logical_order_exception.h: Likewise.
12760         * lib/unictype/pr_lowercase.h: Likewise.
12761         * lib/unictype/pr_numeric.h: Likewise.
12762         * lib/unictype/pr_other_alphabetic.h: Likewise.
12763         * lib/unictype/pr_punctuation.h: Likewise.
12764         * lib/unictype/pr_sentence_terminal.h: Likewise.
12765         * lib/unictype/pr_terminal_punctuation.h: Likewise.
12766         * lib/unictype/pr_unassigned_code_value.h: Likewise.
12767         * lib/unictype/pr_unified_ideograph.h: Likewise.
12768         * lib/unictype/pr_uppercase.h: Likewise.
12769         * lib/unictype/pr_xid_continue.h: Likewise.
12770         * lib/unictype/pr_xid_start.h: Likewise.
12771         * lib/unictype/pr_zero_width.h: Likewise.
12772         * lib/unictype/scripts.h: Likewise.
12773         * lib/unictype/scripts_byname.gperf: Likewise.
12774         * lib/unictype/sy_java_ident.h: Likewise.
12775         * lib/unigbrk/gbrkprop.h: Likewise.
12776         * lib/unilbrk/lbrkprop1.h: Likewise.
12777         * lib/unilbrk/lbrkprop2.h: Likewise.
12778         * lib/unilbrk/lbrktables.h: Likewise.
12779         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
12780         LBP_CP. Implement rule LB30.
12781         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
12782         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
12783         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
12784         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
12785         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
12786         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
12787         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
12788         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
12789         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
12790         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
12791         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
12792         bits instead of 16 bits in the code1 and code2 of each composition
12793         rule.
12794         (uc_composition): Update for Unicode 5.2.0.
12795         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
12796         * lib/uninorm/decomposition-table2.h: Likewise.
12797         * lib/uniwbrk/wbrkprop.h: Likewise.
12798         * tests/unicase/test-cased.c: Likewise.
12799         * tests/unicase/test-ignorable.c: Likewise.
12800         * tests/unicase/test-uc_tolower.c: Likewise.
12801         * tests/unicase/test-uc_totitle.c: Likewise.
12802         * tests/unicase/test-uc_toupper.c: Likewise.
12803         * tests/unictype/test-categ_C.c: Likewise.
12804         * tests/unictype/test-categ_Cf.c: Likewise.
12805         * tests/unictype/test-categ_Cn.c: Likewise.
12806         * tests/unictype/test-categ_L.c: Likewise.
12807         * tests/unictype/test-categ_Ll.c: Likewise.
12808         * tests/unictype/test-categ_Lm.c: Likewise.
12809         * tests/unictype/test-categ_Lo.c: Likewise.
12810         * tests/unictype/test-categ_Lu.c: Likewise.
12811         * tests/unictype/test-categ_M.c: Likewise.
12812         * tests/unictype/test-categ_Mc.c: Likewise.
12813         * tests/unictype/test-categ_Mn.c: Likewise.
12814         * tests/unictype/test-categ_N.c: Likewise.
12815         * tests/unictype/test-categ_Nd.c: Likewise.
12816         * tests/unictype/test-categ_Nl.c: Likewise.
12817         * tests/unictype/test-categ_No.c: Likewise.
12818         * tests/unictype/test-categ_P.c: Likewise.
12819         * tests/unictype/test-categ_Pd.c: Likewise.
12820         * tests/unictype/test-categ_Po.c: Likewise.
12821         * tests/unictype/test-categ_S.c: Likewise.
12822         * tests/unictype/test-categ_Sc.c: Likewise.
12823         * tests/unictype/test-categ_So.c: Likewise.
12824         * tests/unictype/test-ctype_alnum.c: Likewise.
12825         * tests/unictype/test-ctype_alpha.c: Likewise.
12826         * tests/unictype/test-ctype_graph.c: Likewise.
12827         * tests/unictype/test-ctype_lower.c: Likewise.
12828         * tests/unictype/test-ctype_print.c: Likewise.
12829         * tests/unictype/test-ctype_punct.c: Likewise.
12830         * tests/unictype/test-ctype_upper.c: Likewise.
12831         * tests/unictype/test-decdigit.h: Likewise.
12832         * tests/unictype/test-digit.h: Likewise.
12833         * tests/unictype/test-numeric.h: Likewise.
12834         * tests/unictype/test-pr_alphabetic.c: Likewise.
12835         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
12836         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
12837         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
12838         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
12839         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
12840         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
12841         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
12842         * tests/unictype/test-pr_combining.c: Likewise.
12843         * tests/unictype/test-pr_composite.c: Likewise.
12844         * tests/unictype/test-pr_currency_symbol.c: Likewise.
12845         * tests/unictype/test-pr_dash.c: Likewise.
12846         * tests/unictype/test-pr_decimal_digit.c: Likewise.
12847         * tests/unictype/test-pr_deprecated.c: Likewise.
12848         * tests/unictype/test-pr_diacritic.c: Likewise.
12849         * tests/unictype/test-pr_extender.c: Likewise.
12850         * tests/unictype/test-pr_grapheme_base.c: Likewise.
12851         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
12852         * tests/unictype/test-pr_grapheme_link.c: Likewise.
12853         * tests/unictype/test-pr_id_continue.c: Likewise.
12854         * tests/unictype/test-pr_id_start.c: Likewise.
12855         * tests/unictype/test-pr_ideographic.c: Likewise.
12856         * tests/unictype/test-pr_ignorable_control.c: Likewise.
12857         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
12858         * tests/unictype/test-pr_lowercase.c: Likewise.
12859         * tests/unictype/test-pr_numeric.c: Likewise.
12860         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
12861         * tests/unictype/test-pr_punctuation.c: Likewise.
12862         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
12863         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
12864         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
12865         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
12866         * tests/unictype/test-pr_uppercase.c: Likewise.
12867         * tests/unictype/test-pr_xid_continue.c: Likewise.
12868         * tests/unictype/test-pr_xid_start.c: Likewise.
12869         * tests/unictype/test-pr_zero_width.c: Likewise.
12870         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
12871         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
12872         changed behaviour: line breaking is now disallowed between a letter
12873         or '=' and '('.
12874         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12875         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12876         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
12877         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
12878         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12879         lib/uniwidth/width.c.
12880         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
12881         without comments, but with the original copyright notice.
12882         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
12883         changes.
12884         * lib/unictype/categ_Cc.h: Likewise.
12885         * lib/unictype/categ_Co.h: Likewise.
12886         * lib/unictype/categ_Cs.h: Likewise.
12887         * lib/unictype/categ_Lt.h: Likewise.
12888         * lib/unictype/categ_Me.h: Likewise.
12889         * lib/unictype/categ_Pc.h: Likewise.
12890         * lib/unictype/categ_Pe.h: Likewise.
12891         * lib/unictype/categ_Pf.h: Likewise.
12892         * lib/unictype/categ_Pi.h: Likewise.
12893         * lib/unictype/categ_Ps.h: Likewise.
12894         * lib/unictype/categ_Sk.h: Likewise.
12895         * lib/unictype/categ_Sm.h: Likewise.
12896         * lib/unictype/categ_Z.h: Likewise.
12897         * lib/unictype/categ_Zl.h: Likewise.
12898         * lib/unictype/categ_Zp.h: Likewise.
12899         * lib/unictype/categ_Zs.h: Likewise.
12900         * lib/unictype/ctype_blank.h: Likewise.
12901         * lib/unictype/ctype_cntrl.h: Likewise.
12902         * lib/unictype/ctype_digit.h: Likewise.
12903         * lib/unictype/ctype_space.h: Likewise.
12904         * lib/unictype/ctype_xdigit.h: Likewise.
12905         * lib/unictype/mirror.h: Likewise.
12906         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
12907         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
12908         * lib/unictype/pr_bidi_block_separator.h: Likewise.
12909         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
12910         * lib/unictype/pr_bidi_common_separator.h: Likewise.
12911         * lib/unictype/pr_bidi_control.h: Likewise.
12912         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
12913         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
12914         * lib/unictype/pr_bidi_pdf.h: Likewise.
12915         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
12916         * lib/unictype/pr_bidi_whitespace.h: Likewise.
12917         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
12918         * lib/unictype/pr_format_control.h: Likewise.
12919         * lib/unictype/pr_hex_digit.h: Likewise.
12920         * lib/unictype/pr_hyphen.h: Likewise.
12921         * lib/unictype/pr_ids_binary_operator.h: Likewise.
12922         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
12923         * lib/unictype/pr_iso_control.h: Likewise.
12924         * lib/unictype/pr_join_control.h: Likewise.
12925         * lib/unictype/pr_left_of_pair.h: Likewise.
12926         * lib/unictype/pr_line_separator.h: Likewise.
12927         * lib/unictype/pr_math.h: Likewise.
12928         * lib/unictype/pr_non_break.h: Likewise.
12929         * lib/unictype/pr_not_a_character.h: Likewise.
12930         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
12931         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
12932         * lib/unictype/pr_other_id_continue.h: Likewise.
12933         * lib/unictype/pr_other_id_start.h: Likewise.
12934         * lib/unictype/pr_other_lowercase.h: Likewise.
12935         * lib/unictype/pr_other_math.h: Likewise.
12936         * lib/unictype/pr_other_uppercase.h: Likewise.
12937         * lib/unictype/pr_paired_punctuation.h: Likewise.
12938         * lib/unictype/pr_paragraph_separator.h: Likewise.
12939         * lib/unictype/pr_pattern_syntax.h: Likewise.
12940         * lib/unictype/pr_pattern_white_space.h: Likewise.
12941         * lib/unictype/pr_private_use.h: Likewise.
12942         * lib/unictype/pr_quotation_mark.h: Likewise.
12943         * lib/unictype/pr_radical.h: Likewise.
12944         * lib/unictype/pr_soft_dotted.h: Likewise.
12945         * lib/unictype/pr_space.h: Likewise.
12946         * lib/unictype/pr_titlecase.h: Likewise.
12947         * lib/unictype/pr_variation_selector.h: Likewise.
12948         * lib/unictype/pr_white_space.h: Likewise.
12949         * lib/unictype/sy_c_ident.h: Likewise.
12950         * lib/unictype/sy_c_whitespace.h: Likewise.
12951         * lib/unictype/sy_java_whitespace.h: Likewise.
12952         * modules/uni*/*: Bump version number of expected libunistring version.
12953         Reported by Simon Josefsson.
12954
12955 2011-01-09  Karl Heuer  <kwzh@gnu.org>
12956
12957         useless-if-before-free: fix typo in --help and make the internal,
12958         automatic version date update process work once again.
12959         --help output contained a NUL character instead of the
12960         backslash-zero that was intended.  Also, the "must lie within
12961         the first 8 lines" line is on line 9, and hence not getting
12962         automatically updated.
12963         * build-aux/useless-if-before-free: Fix the former by adding a
12964         backslash, and the latter by condensing the three lines of what-it-does
12965         to a single line, leaving one line of slack for the future.
12966
12967 2011-01-09  Bruno Haible  <bruno@clisp.org>
12968
12969         uniwidth/width: Fix width of U+1D173..U+1D17A.
12970         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
12971         symbolic_width, output_width_property_test): New functions.
12972         (main): Invoke output_nonspacing_property, output_width_property_test.
12973         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
12974         U+1D173..U+1D17A.
12975         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
12976         1.
12977         * modules/uniwidth/*: Bump version number of expected libunistring
12978         version.
12979         * modules/unilbrk/*: Likewise.
12980
12981 2011-01-08  Bruno Haible  <bruno@clisp.org>
12982
12983         uninorm tests: Preserve copyright of Unicode data file.
12984         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
12985         Mention modifications.
12986
12987 2011-01-08  Bruno Haible  <bruno@clisp.org>
12988
12989         gen-uni-tables: Prepare for Unicode 5.2.0.
12990         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
12991         (debug_output_lbp, output_lbp): Update.
12992
12993 2011-01-08  Bruno Haible  <bruno@clisp.org>
12994
12995         unilbrk: Clarify gen-uni-tables.c code.
12996         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
12997         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
12998         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
12999
13000 2011-01-07  Bruno Haible  <bruno@clisp.org>
13001
13002         strtod: Restore errno when successfully parsing Infinity or NaN.
13003         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
13004         restore the original errno.
13005
13006 2011-01-07  Bruno Haible  <bruno@clisp.org>
13007
13008         remove test: Avoid failure on HP-UX 11.
13009         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
13010
13011 2011-01-07  Bruno Haible  <bruno@clisp.org>
13012
13013         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
13014         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
13015         error code.
13016
13017 2011-01-07  Pádraig Brady <P@draigBrady.com>
13018
13019         ignore-value: fixup comments, and add Eric Blake
13020         as an author since he rewrote the macros.
13021         * lib/ignore-value.h (ignore_value):  State that
13022         we now support aggregates.  Also specify exactly
13023         when the GCC warn_unused_result feature was added.
13024
13025 2011-01-06  Eric Blake  <eblake@redhat.com>
13026
13027         ignore-value: support aggregate types
13028         * lib/ignore-value.h (ignore_value): Provide separate gcc
13029         definition.
13030         * modules/ignore-value-tests: New test module.
13031         * tests/test-ignore-value.c: New test.
13032
13033         maint.mk: improve sc_prohibit_strcmp regex
13034         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
13035         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
13036         definition of STRNEQ.
13037
13038         signal: work around Haiku issue with SIGBUS
13039         * lib/siglist.h: Add comment.
13040         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
13041         strsignal's favoring of SIGSEGV.
13042         * tests/test-signal.c (main): Avoid test failure.
13043         * doc/posix-headers/signal.texi (signal.h): Document the issue.
13044         Reported by Scott McCreary.
13045
13046         maint.mk: add pre-release check to ensure submodule commits are public
13047         * top/maint.mk (public-submodule-commit): New rule.
13048         (submodule-checks): New variable.
13049         (alpha beta stable): Depend on the variable.
13050
13051 2011-01-05  Pádraig Brady <P@draigBrady.com>
13052         and Jim Meyering  <meyering@redhat.com>
13053
13054         ignore-value: make ignore_value more generic; deprecate ignore_ptr
13055         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
13056         (ATTRIBUTE_DEPRECATED): Define.
13057         (_ignore_case): New function.
13058         (ignore_value): New macro, to replace the old function.
13059         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
13060         * modules/ignore-value (Depends-on): Add stdint.
13061
13062 2011-01-04  Eric Blake  <eblake@redhat.com>
13063
13064         doc: regenerate INSTALL
13065         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
13066         @firstparagraphindent support, now that autoconf dropped it.
13067         (INSTALL_PRELUDE): Reinstate old macro.
13068         * doc/install.texi: Resync from autoconf.
13069         * doc/INSTALL: Reflect recent autoconf update.
13070         * doc/INSTALL.ISO: Likewise.
13071         * doc/INSTALL.UTF-8: Likewise.
13072         Reported by Karl Berry.
13073
13074 2011-01-04  Bruce Korb  <address@hidden>
13075
13076         git-version-gen: avoid a sub-shell
13077         * build-aux/git-version-gen: Redirect stderr in `...` via
13078         "exec 2>...", rather than via an added sub-shell.
13079
13080 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
13081
13082         git-version-gen: use (...) rather than sh -c '...'
13083         * build-aux/git-version-gen: Rather than hard-coding a shell's name
13084         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
13085
13086 2011-01-03  Jim Meyering  <meyering@redhat.com>
13087
13088         git-version-gen: convert leading TABs to spaces
13089         * build-aux/git-version-gen: Expand leading TABs.
13090
13091         git-version-gen: handle failed "git rev-list"
13092         * build-aux/git-version-gen: Rather than leaking a "fatal" error
13093         from git and proceeding as if it had succeeded but printed no SHA1
13094         checksums, suppress the diagnostic and handle the failure.
13095         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
13096
13097         git-version-gen: include command name in one more diagnostic
13098         * build-aux/git-version-gen: When the required .tarball-version file
13099         was missing or unreadable, you might see the diagnostic from "cat",
13100         but no trace of the name of the invoking script.  Now, you still see
13101         the diagnostic from cat, but also get one from "git-version-gen: ".
13102         Inspired by a patch from Bruce Korb.
13103
13104         update-copyright: adjust test to match changed code
13105         * tests/test-update-copyright.sh: Change test's expected output
13106         to match new actual output.
13107
13108 2011-01-02  Bruno Haible  <bruno@clisp.org>
13109
13110         getlogin_r: Avoid test failure on HP-UX 11.
13111         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
13112         ERANGE when the second argument is zero.
13113         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
13114         portability problem.
13115
13116 2011-01-02  Bruce Korb  <bkorb@gnu.org>
13117
13118         * build-aux/update-copyright: doc Simon's changes
13119
13120 2011-01-02  Simon Josefsson  <simon@josefsson.org>
13121
13122         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
13123         environment variable.
13124
13125 2011-01-02  Bruno Haible  <bruno@clisp.org>
13126
13127         unigbrk: Avoid gcc warnings.
13128         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
13129         unused variable.
13130         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
13131         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
13132         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
13133         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
13134         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
13135         Change type of first argument to 'const char *'.
13136         (main): Remove unused variable.
13137         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
13138         type of first argument to 'const char *'.
13139         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
13140         Likewise.
13141         (main): Change type of variable 's'.
13142         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
13143         to 'int'.
13144
13145 2011-01-02  Bruno Haible  <bruno@clisp.org>
13146
13147         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
13148         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
13149         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
13150         bug.
13151         * lib/pwrite.c: Undo 2010-12-31 patch.
13152         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
13153
13154 2011-01-02  Bruno Haible  <bruno@clisp.org>
13155
13156         pread: Fix test whether it works.
13157         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
13158
13159 2011-01-02  Bruno Haible  <bruno@clisp.org>
13160
13161         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
13162         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
13163         ends in "6". Don't require a specific month name. Try also the locale
13164         names found on HP-UX 11 and Solaris 7.
13165
13166 2011-01-02  Bruno Haible  <bruno@clisp.org>
13167
13168         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
13169         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
13170         C linkage.
13171         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
13172
13173 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13174
13175         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
13176         for consistency, since the "cluster" term is not used elsewhere.
13177         * lib/unigbrk.in.h: Update name.
13178         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
13179         * lib/unigbrk/u16-grapheme-next.c: Update name.
13180         * lib/unigbrk/u16-grapheme-prev.c: Update name.
13181         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
13182         * lib/unigbrk/u32-grapheme-next.c: Update name.
13183         * lib/unigbrk/u32-grapheme-prev.c: Update name.
13184         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
13185         * lib/unigbrk/u8-grapheme-next.c: Update name.
13186         * lib/unigbrk/u8-grapheme-prev.c: Update name.
13187         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
13188         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
13189         Suggested by Bruno Haible.
13190
13191 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13192
13193         Remove module 'u8-grapheme-len' as too redundant with
13194         'u8-grapheme-next'.
13195         * modules/unigbrk/u8-grapheme-len: Delete file.
13196         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
13197         * lib/unigbrk.in.h: Remove prototype for deleted function.
13198         * lib/unigbrk/u8-grapheme-len.c: Delete file.
13199         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
13200
13201         Remove module 'u16-grapheme-len' as too redundant with
13202         'u16-grapheme-next'.
13203         * modules/unigbrk/u16-grapheme-len: Delete file.
13204         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
13205         * lib/unigbrk.in.h: Remove prototype for deleted function.
13206         * lib/unigbrk/u16-grapheme-len.c: Delete file.
13207         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
13208
13209         Remove module 'u32-grapheme-len' as too redundant with
13210         'u32-grapheme-next'.
13211         * modules/unigbrk/u32-grapheme-len: Delete file.
13212         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
13213         * lib/unigbrk.in.h: Remove prototype for deleted function.
13214         * lib/unigbrk/u32-grapheme-len.c: Delete file.
13215         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
13216
13217         Suggested by Bruno Haible.
13218
13219 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
13220
13221         * unigbrk.in.h: Fix typo: "ben" => "been".
13222         Reported by Bruno Haible.
13223
13224 2011-01-01  Jim Meyering  <meyering@redhat.com>
13225
13226         maint: update almost all copyright ranges to include 2011
13227         Run the new "make update-copyright" rule.
13228
13229 2011-01-01  Jim Meyering  <meyering@redhat.com>
13230
13231         maint: update-copyright: exempt doc/INSTALL*
13232         * Makefile (update-copyright): Also exclude doc/INSTALL*,
13233         since they are generated.  Suggested by Bruno Haible.
13234
13235 2011-01-01  Jim Meyering  <meyering@redhat.com>
13236
13237         maint: refine the update-copyright rule
13238         * Makefile (update-copyright): Also exclude any file that includes
13239         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
13240         code that merely generates the comment.
13241
13242 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
13243
13244         New module 'u8-grapheme-len'.
13245         * modules/unigbrk/u8-grapheme-len: New file.
13246         * modules/unigbrk/u8-grapheme-len-tests: New file.
13247         * lib/unigbrk.in.h: Add prototype for new function.
13248         * lib/unigbrk/u8-grapheme-len.c: New file.
13249         * tests/unigbrk/test-u8-grapheme-len.c: New file.
13250
13251         New module 'u16-grapheme-len'.
13252         * modules/unigbrk/u16-grapheme-len: New file.
13253         * modules/unigbrk/u16-grapheme-len-tests: New file.
13254         * lib/unigbrk.in.h: Add prototype for new function.
13255         * lib/unigbrk/u16-grapheme-len.c: New file.
13256         * tests/unigbrk/test-u16-grapheme-len.c: New file.
13257
13258         New module 'u32-grapheme-len'.
13259         * modules/unigbrk/u32-grapheme-len: New file.
13260         * modules/unigbrk/u32-grapheme-len-tests: New file.
13261         * lib/unigbrk.in.h: Add prototype for new function.
13262         * lib/unigbrk/u32-grapheme-len.c: New file.
13263         * tests/unigbrk/test-u32-grapheme-len.c: New file.
13264
13265         New module 'u8-grapheme-next'.
13266         * modules/unigbrk/u8-grapheme-next: New file.
13267         * modules/unigbrk/u8-grapheme-next-tests: New file.
13268         * lib/unigbrk.in.h: Add prototype for new function.
13269         * lib/unigbrk/u8-grapheme-next.c: New file.
13270         * tests/unigbrk/test-u8-grapheme-next.c: New file.
13271
13272         New module 'u16-grapheme-next'.
13273         * modules/unigbrk/u16-grapheme-next: New file.
13274         * modules/unigbrk/u16-grapheme-next-tests: New file.
13275         * lib/unigbrk.in.h: Add prototype for new function.
13276         * lib/unigbrk/u16-grapheme-next.c: New file.
13277         * tests/unigbrk/test-u16-grapheme-next.c: New file.
13278
13279         New module 'u32-grapheme-next'.
13280         * modules/unigbrk/u32-grapheme-next: New file.
13281         * modules/unigbrk/u32-grapheme-next-tests: New file.
13282         * lib/unigbrk.in.h: Add prototype for new function.
13283         * lib/unigbrk/u32-grapheme-next.c: New file.
13284         * tests/unigbrk/test-u32-grapheme-next.c: New file.
13285
13286         New module 'u8-grapheme-prev'.
13287         * modules/unigbrk/u8-grapheme-prev: New file.
13288         * modules/unigbrk/u8-grapheme-prev-tests: New file.
13289         * lib/unigbrk.in.h: Add prototype for new function.
13290         * lib/unigbrk/u8-grapheme-prev.c: New file.
13291         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
13292
13293         New module 'u16-grapheme-prev'.
13294         * modules/unigbrk/u16-grapheme-prev: New file.
13295         * modules/unigbrk/u16-grapheme-prev-tests: New file.
13296         * lib/unigbrk.in.h: Add prototype for new function.
13297         * lib/unigbrk/u16-grapheme-prev.c: New file.
13298         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
13299
13300         New module 'u32-grapheme-prev'.
13301         * modules/unigbrk/u32-grapheme-prev: New file.
13302         * modules/unigbrk/u32-grapheme-prev-tests: New file.
13303         * lib/unigbrk.in.h: Add prototype for new function.
13304         * lib/unigbrk/u32-grapheme-prev.c: New file.
13305         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
13306
13307         New module 'u8-grapheme-breaks'.
13308         * modules/unigbrk/u8-grapheme-breaks: New file.
13309         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
13310         * lib/unigbrk.in.h: Add prototype for new function.
13311         * lib/unigbrk/u8-grapheme-breaks.c: New file.
13312         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
13313
13314         New module 'u16-grapheme-breaks'.
13315         * modules/unigbrk/u16-grapheme-breaks: New file.
13316         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
13317         * lib/unigbrk.in.h: Add prototype for new function.
13318         * lib/unigbrk/u16-grapheme-breaks.c: New file.
13319         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
13320
13321         New module 'u32-grapheme-breaks'.
13322         * modules/unigbrk/u32-grapheme-breaks: New file.
13323         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
13324         * lib/unigbrk.in.h: Add prototype for new function.
13325         * lib/unigbrk/u32-grapheme-breaks.c: New file.
13326         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
13327
13328         New module 'ulc-grapheme-breaks'.
13329         * modules/unigbrk/ulc-grapheme-breaks: New file.
13330         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
13331         * m4/locale-ar.m4: New file.
13332         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
13333         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
13334         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
13335
13336 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
13337
13338         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
13339         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
13340         modified how this file was generated before I initially submitted
13341         the module, but failed to regenerate it.  This meant that several
13342         of the level2 entries were wrong.
13343         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
13344         Remove the division-by-2 that is folded into the table now that
13345         gbrkprop.h has been regenerated properly.  Now -1 entries are
13346         handled correctly.
13347
13348         New module 'unigbrk/uc-gbrk-prop-tests'.
13349         * modules/unigbrk/uc-gbrk-prop-tests: New file.
13350         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
13351         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
13352         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
13353
13354 2011-01-01  Bruno Haible  <bruno@clisp.org>
13355
13356         Avoid use of hexadecimal escapes.
13357         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
13358         instead of hexadecimal escapes.
13359
13360 2011-01-01  Jim Meyering  <meyering@redhat.com>
13361
13362         maint: new rule to update copyright year ranges
13363         * Makefile (update-copyright): New rule.
13364
13365         maint: indent with TABs in Makefile
13366         * Makefile: Expand leading sequences of spaces to TABs
13367
13368         version-etc: update the copyright year it reports
13369         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
13370
13371 2010-12-31  Bruno Haible  <bruno@clisp.org>
13372
13373         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
13374         * lib/isfinite.c (zerof, zerod, zerol): New variables.
13375         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
13376         zero.
13377
13378 2010-12-31  Bruno Haible  <bruno@clisp.org>
13379
13380         pwrite: Work around HP-UX 11.11 bug.
13381         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
13382         works and set REPLACE_PWRITE if not.
13383         * lib/pwrite.c (pwrite): Add an implementation that uses the system
13384         function.
13385         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
13386
13387 2010-12-31  Bruno Haible  <bruno@clisp.org>
13388
13389         pread: Work around HP-UX 11 bugs.
13390         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
13391         and set REPLACE_PREAD if not.
13392         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
13393
13394 2010-12-31  Eric Blake  <eblake@redhat.com>
13395
13396         nl_langinfo: fix YESEXPR on Irix 6.5
13397         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
13398         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
13399         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
13400         it.
13401
13402 2010-12-31  Bruno Haible  <bruno@clisp.org>
13403
13404         iconv: Document HP-UX 11 bug.
13405         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
13406
13407 2010-12-31  Bruno Haible  <bruno@clisp.org>
13408
13409         ldexpl: Fix link error on HP-UX 11.
13410         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
13411         LDEXPL_LIBM, using $ISNANL_LIBM.
13412
13413 2010-12-31  Eric Blake  <eblake@redhat.com>
13414
13415         ftello: avoid compilation failure with SunStudio c89
13416         * lib/ftello.c (ftello): Use lseek, not llseek.
13417
13418         tests: avoid failing coreutils tests on cygwin
13419         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
13420         (create_exe_shims_): Return 0 when skipping.
13421
13422 2010-12-31  Bruno Haible  <bruno@clisp.org>
13423
13424         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
13425         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
13426
13427 2010-12-31  Bruno Haible  <bruno@clisp.org>
13428
13429         waitpid: Fix link error in C++ mode.
13430         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
13431
13432 2010-12-31  Bruno Haible  <bruno@clisp.org>
13433
13434         isnan: Use GCC built-ins when possible.
13435         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
13436         __builtin_isnan.
13437         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
13438         (isnan): Define using GCC built-ins for GCC >= 4.0.
13439
13440 2010-12-31  Bruno Haible  <bruno@clisp.org>
13441
13442         isnand: Fix mistake.
13443         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
13444         __builtin_isnand.
13445
13446 2010-12-31  Bruno Haible  <bruno@clisp.org>
13447
13448         open: Avoid C++ error on HP-UX 11.
13449         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
13450
13451 2010-12-31  Bruno Haible  <bruno@clisp.org>
13452
13453         time_r: Add missing declarations on HP-UX 11.
13454         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
13455         instead of HAVE_LOCALTIME_R.
13456         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
13457         HAVE_LOCALTIME_R always.
13458         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
13459         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
13460         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
13461         HAVE_LOCALTIME_R.
13462         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
13463         * doc/posix-functions/localtime_r.texi: Likewise.
13464
13465 2010-12-29  Eric Blake  <eblake@redhat.com>
13466
13467         mountlist: tweak previous commit
13468         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
13469         Reported by Paul Eggert.
13470
13471         mountlist: fix local drive detection on cygwin
13472         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
13473         that works for cygwin.
13474
13475 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
13476
13477         ftoastr, snprintf: ftoastr + snprintf module
13478         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
13479         since the snprintf module now should be good enough here.
13480         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
13481         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
13482         and gl_MODULE_INDICATOR([snprintf]), but the former enables
13483         GNULIB_SNPRINTF only for the test directory, and the latter
13484         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
13485         seems to suffice by itself.
13486
13487 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
13488
13489         alloca: one step towards thread-safety
13490         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
13491         need for a static variable.  All callers changed.  This does not
13492         make the alloca replacement thread-safe, but it's one step.
13493
13494         tests: minor indenting change
13495         * tests/init.sh: Sync from coreutils housekeeping patch
13496         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
13497         to keep lines within 80 columns.
13498
13499 2010-12-28  Jim Meyering  <meyering@redhat.com>
13500
13501         regex: don't infloop on persistent failing calloc
13502         * lib/regexec.c (build_trtable): Return failure indication upon
13503         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
13504         In glibc, this was fixed for version 2.13:
13505         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
13506
13507 2010-12-28  Bruno Haible  <bruno@clisp.org>
13508             Paul Eggert <eggert@cs.ucla.edu>
13509
13510         linkat: Make implementation robust against system behaviour variations.
13511         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
13512         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
13513         way, and to -2 if it needs a generic runtime test.
13514         * lib/linkat.c (solaris_optimized_link_immediate,
13515         solaris_optimized_link_follow): New functions.
13516         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
13517         (check_same_link): Use it.
13518
13519 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
13520
13521         New module 'unigbrk/base'.
13522         * modules/unigbrk/base: New file.
13523         * lib/unigbrk.in.h: New file.
13524
13525         New module 'unigbrk/uc-gbrk-prop'.
13526         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
13527         * modules/unigbrk/uc-gbrk-prop: New file.
13528         * lib/unigbrk/gbrkprop.h: New file.
13529         * lib/unigbrk/uc-gbrk-prop.c: New file.
13530
13531         New module 'unigbrk/uc-is-grapheme-break'.
13532         * modules/unigbrk/uc-is-grapheme-break: New file.
13533         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
13534         * lib/unigbrk/uc-is-grapheme-break.c: New file.
13535         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
13536         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
13537         * tests/unigbrk/GraphemeBreakTest.txt: New file.
13538
13539         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
13540
13541 2010-12-27  Bruno Haible  <bruno@clisp.org>
13542
13543         linkat test: Avoid failure on Solaris 11 2010-11.
13544         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
13545
13546 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13547
13548         utimens: work around glibc rounding bug on more platforms
13549         * lib/utimens.c (fdutimens): Work around rounding bug even if
13550         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
13551         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
13552
13553 2010-12-27  Bruno Haible  <bruno@clisp.org>
13554
13555         select tests: Improve comments.
13556         * tests/test-select.c (do_select): Add comments.
13557
13558 2010-12-27  Bruno Haible  <bruno@clisp.org>
13559
13560         select tests: Safer way of handling timeout.
13561         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
13562         at every invocation.
13563
13564 2010-12-27  Bruno Haible  <bruno@clisp.org>
13565
13566         select tests: Use 'bool' where appropriate.
13567         * tests/test-select.c (connect_to_socket): Change argument type to
13568         'bool'.
13569
13570 2010-12-27  Bruno Haible  <bruno@clisp.org>
13571
13572         select tests: Use existing modules.
13573         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
13574         (configure.ac): Don't test for unistd.h.
13575         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
13576         declared in <unistd.h>.
13577
13578 2010-12-27  Bruno Haible  <bruno@clisp.org>
13579
13580         mbrtowc: Work around a Solaris 7 bug.
13581         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
13582         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
13583         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
13584         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
13585         MBRTOWC_NULL_ARG1_BUG.
13586         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
13587         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
13588         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
13589         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
13590
13591 2010-12-27  Jim Meyering  <meyering@redhat.com>
13592
13593         read-file.c: tweak syntax
13594         * lib/read-file.c (fread_file): Remove space after "*" in function
13595         definitions.
13596
13597 2010-12-27  Bruno Haible  <bruno@clisp.org>
13598
13599         times test: Avoid gcc warnings on OSF/1.
13600         * tests/test-times.c (main): Cast printf arguments from clock_t to
13601         'long int'.
13602
13603 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
13604
13605         utimens: work around glibc rounding bug on older Linux kernels
13606         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
13607         on Linux with a glibc whose utimes might not work, then work
13608         around a longstanding glibc bug involving rounding rather than
13609         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
13610         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
13611
13612 2010-12-26  Bruno Haible  <bruno@clisp.org>
13613
13614         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
13615         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
13616         _GL_CXXALIAS_SYS.
13617         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13618
13619 2010-12-26  Bruno Haible  <bruno@clisp.org>
13620
13621         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
13622         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
13623         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
13624         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
13625         looking for the declaration.
13626         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
13627         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
13628         problem.
13629         * doc/posix-functions/inet_pton.texi: Likewise.
13630
13631 2010-12-26  Bruno Haible  <bruno@clisp.org>
13632
13633         arpa_inet: Use the common idioms with C++ support.
13634         * lib/arpa_inet.in.h: Include c++defs.h.
13635         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
13636         support.
13637         * modules/arpa_inet (Depends-on): Add c++defs.
13638         (Makefile.am): Substitute the contents of c++defs.h.
13639         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
13640         * modules/arpa_inet-c++-tests: New file.
13641         * tests/test-arpa_inet-c++.cc: New file.
13642
13643 2010-12-25  Bruno Haible  <bruno@clisp.org>
13644
13645         Fix more C++ link errors on Solaris 8.
13646         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
13647         $(LIB_EACCESS).
13648         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
13649         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
13650         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
13651         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
13652         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
13653
13654 2010-12-25  Bruno Haible  <bruno@clisp.org>
13655
13656         printf-posix: Fix link error when a non-GCC compiler is used.
13657         * lib/stdio.in.h (printf): When not using GCC, override printf
13658         correctly.
13659         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13660
13661 2010-12-25  Bruno Haible  <bruno@clisp.org>
13662
13663         strerror_r-posix: Update doc.
13664         * doc/posix-functions/strerror_r.texi: Update doc about the return
13665         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
13666
13667 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
13668
13669         utimens: simplify the logic of the previous change
13670         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
13671         This should not affect whether the test succeeds or fails.
13672
13673         utimens: configure better on hosts with NFS clock skew
13674         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
13675         uses the clock of the local host.  It might use the clock of the
13676         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
13677         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
13678
13679 2010-12-25  Bruno Haible  <bruno@clisp.org>
13680
13681         ptsname test: Avoid failure on Solaris.
13682         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
13683         open a pseudo-terminal; don't use BSD-style ptys.
13684         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
13685
13686 2010-12-25  Bruno Haible  <bruno@clisp.org>
13687
13688         ptsname: Avoid ERANGE failure on some systems.
13689         * lib/ptsname.c (buffer): Increase size.
13690
13691 2010-12-25  Bruno Haible  <bruno@clisp.org>
13692
13693         rename, renameat: Avoid test failures at NFS mounted locations.
13694         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
13695         so that subsequent mkdir calls succeed.
13696
13697 2010-12-25  Bruno Haible  <bruno@clisp.org>
13698
13699         iswblank: Fix C++ link error on Solaris 8.
13700         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
13701         _GL_FUNCDECL_SYS.
13702
13703 2010-12-25  Bruno Haible  <bruno@clisp.org>
13704
13705         unistd: Fix C++ link error on Solaris 8.
13706         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
13707
13708 2010-12-25  Bruno Haible  <bruno@clisp.org>
13709
13710         readlink doc: Mention an old glibc bug.
13711         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
13712
13713 2010-12-25  Bruno Haible  <bruno@clisp.org>
13714
13715         fcntl-h: Fix for use of C++ on glibc systems.
13716         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
13717         also on glibc systems in C++ mode.
13718         Reported by Gary V. Vaughan <gary@gnu.org>.
13719
13720 2010-12-25  Bruno Haible  <bruno@clisp.org>
13721
13722         roundl-ieee: Make it work on OSF/1 5.1 with cc.
13723         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
13724
13725 2010-12-25  Bruno Haible  <bruno@clisp.org>
13726
13727         truncl-ieee: Make it work on OSF/1 5.1 with cc.
13728         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
13729         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
13730         test whether truncl works according to ISO C 99 with IEC 60559.
13731         * m4/truncl-ieee.m4: New file.
13732         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
13733         m4/signbit.m4.
13734         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
13735
13736 2010-12-25  Bruno Haible  <bruno@clisp.org>
13737
13738         ceill-ieee: Make it work on OSF/1 5.1 with cc.
13739         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
13740         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
13741         test whether ceill works according to ISO C 99 with IEC 60559.
13742         * m4/ceill-ieee.m4: New file.
13743         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
13744         m4/signbit.m4.
13745         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
13746
13747 2010-12-25  Bruno Haible  <bruno@clisp.org>
13748
13749         Ensure all prerequisites of <wchar.h> are included.
13750         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
13751         before <wchar.h>.
13752         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
13753         gl_MBRLEN_NUL_RETVAL): Likewise.
13754         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13755         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
13756         AC_FUNC_MBRTOWC): Likewise.
13757         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13758         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
13759         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13760         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
13761         Likewise.
13762         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13763         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
13764         (gl_WCHAR_H): Improve comments.
13765         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
13766
13767 2010-12-25  Bruno Haible  <bruno@clisp.org>
13768
13769         strtok_r: Fix C syntax error in autoconf macro.
13770         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
13771         characters in test program.
13772
13773 2010-12-24  Bruno Haible  <bruno@clisp.org>
13774
13775         ceil, trunc, round: Fix gcc warnings.
13776         * lib/ceil.c (MIN): Undefine before redefining.
13777         * lib/trunc.c (MIN): Likewise.
13778         * lib/round.c (MIN): Likewise.
13779         Include <math.h> first.
13780
13781 2010-12-24  Bruno Haible  <bruno@clisp.org>
13782
13783         select tests: Avoid failures on OSF/1 5.1.
13784         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
13785         failure of closing the last socket; it may fail with ECONNRESET.
13786
13787 2010-12-24  Eric Blake  <eblake@redhat.com>
13788
13789         stdint: avoid HP-UX 10.20 preprocessor bug
13790         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
13791         than #if.
13792         * tests/test-floor2.c (main): Likewise.
13793         Reported by Peter O'Gorman.
13794
13795         pipe: make obsoletion transition easier
13796         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
13797         * modules/pipe (Files): Include revived file.
13798         (Include): Drop reference, to mirror getdate's behavior.
13799
13800 2010-12-24  Bruno Haible  <bruno@clisp.org>
13801
13802         sys_socket: Hide mismatch of declarations on NonStop Kernel.
13803         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
13804         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
13805         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13806
13807 2010-12-24  Bruno Haible  <bruno@clisp.org>
13808
13809         gethostname: Ensure declaration on NonStop Kernel.
13810         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
13811         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13812
13813 2010-12-24  Bruno Haible  <bruno@clisp.org>
13814
13815         sys_select: Ensure all necessary types on NonStop Kernel.
13816         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
13817         include <sys/time.h>.
13818         * doc/posix-headers/sys_select.texi: Mention that it's missing on
13819         NonStop Kernel.
13820         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13821
13822 2010-12-24  Bruno Haible  <bruno@clisp.org>
13823
13824         sys_select: Remove unneeded include.
13825         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
13826         have <sys/select.h>.
13827
13828 2010-12-24  Bruno Haible  <bruno@clisp.org>
13829
13830         gethostname: Provide a fallback for HOST_NAME_MAX.
13831         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
13832         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
13833         instead.
13834         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13835
13836 2010-12-24  Bruno Haible  <bruno@clisp.org>
13837
13838         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
13839         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
13840         (SA_RESTART): Likewise.
13841         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13842
13843 2010-12-24  Bruno Haible  <bruno@clisp.org>
13844
13845         signal: Define NSIG.
13846         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
13847         * tests/test-signal.c (nsig): New variable.
13848         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13849
13850 2010-12-24  Bruno Haible  <bruno@clisp.org>
13851
13852         rename, renameat: Avoid test failures on OSF/1 5.1.
13853         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
13854         alternative error codes.
13855         * tests/test-renameat.c (main): Likewise.
13856
13857 2010-12-24  Bruno Haible  <bruno@clisp.org>
13858
13859         *printf: Detect large precisions bug on Solaris 10/SPARC.
13860         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
13861         by Paul Eggert.
13862         * tests/test-snprintf-posix.h (test_function): Add this test code here
13863         too.
13864         * tests/test-sprintf-posix.h (test_function): Likewise.
13865         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13866         * tests/test-vasprintf-posix.c (test_function): Likewise.
13867         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
13868         around by gnulib.
13869         * doc/posix-functions/printf.texi: Likewise.
13870         * doc/posix-functions/snprintf.texi: Likewise.
13871         * doc/posix-functions/sprintf.texi: Likewise.
13872         * doc/posix-functions/vfprintf.texi: Likewise.
13873         * doc/posix-functions/vprintf.texi: Likewise.
13874         * doc/posix-functions/vsnprintf.texi: Likewise.
13875         * doc/posix-functions/vsprintf.texi: Likewise.
13876         * doc/posix-functions/dprintf.texi: Undo last commit.
13877         * doc/posix-functions/vdprintf.texi: Likewise.
13878
13879 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
13880
13881         tests: port test-fdutimensat.c to Solaris 8
13882         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
13883         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
13884         On Solaris 8, it fails with errno == ENOSYS, because there is no
13885         futimens (so it can't use the fd), and there is no lutimens (so it
13886         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
13887
13888         vsnprintf: make more consistent with snprintf; doc fixes
13889
13890         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
13891         the byte count return problem was promoted from the snprintf-posix
13892         to the snprintf module.
13893         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13894         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
13895         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
13896         * tests/test-snprintf.c (main): Check the byte count returned.
13897         * tests/test-vsnprintf.c (main): Likewise.
13898
13899 2010-12-23  Eric Blake  <eblake@redhat.com>
13900
13901         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
13902         * modules/sigpipe (License): Relax license.
13903
13904 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13905
13906         doc: document Solaris printf bug with large float precisions
13907         * doc/posix-functions/dprintf.texi (dprintf):
13908         * doc/posix-functions/fprintf.texi (fprintf):
13909         * doc/posix-functions/printf.texi (printf):
13910         * doc/posix-functions/snprintf.texi (snprintf):
13911         * doc/posix-functions/sprintf.texi (sprintf):
13912         * doc/posix-functions/vdprintf.texi (vdprintf):
13913         * doc/posix-functions/vfprintf.texi (vfprintf):
13914         * doc/posix-functions/vprintf.texi (vprintf):
13915         * doc/posix-functions/vsnprintf.texi (vsnprintf):
13916         * doc/posix-functions/vsprintf.texi (vsprintf):
13917         Mention that these functions mishandle large floating point
13918         precisions on Solaris 10.  The same bug is also present in Solaris
13919         8, and I assume earlier.  This causes "cd gnulib-tests; make
13920         check" to fail on Solaris 8 (and I assume, later) when building
13921         the latest coreutils, in test-vasprintf-posix's call to
13922         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
13923         the wide flavors (e.g., wprintf) so this patch just updates the
13924         documentation for the narrow ones.
13925
13926         test-posixtm.c: add two tests
13927         * tests/test-posixtm.c: Add two tests, to highlight the
13928         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
13929         around this bug; this is merely to document it.
13930
13931 2010-12-22  Bruno Haible  <bruno@clisp.org>
13932
13933         getlogin_r: Work around portability problem on OSF/1.
13934         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
13935         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
13936         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
13937         test for a truncated result.
13938         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
13939         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
13940         * modules/getlogin_r (Depends-on): Add memchr.
13941         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
13942
13943 2010-12-22  Bruno Haible  <bruno@clisp.org>
13944
13945         ptsname: Avoid test failure on OSF/1 5.1.
13946         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
13947         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
13948         (same_slave): New function.
13949         (main): Use it to compare ptsname's result with the expected file name.
13950
13951 2010-12-22  Bruno Haible  <bruno@clisp.org>
13952
13953         Port extended stdio modules to HP NonStop Kernel.
13954         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
13955         macros.
13956         * lib/fbufmode.c: Update comments.
13957         * lib/fflush.c: Likewise.
13958         * lib/fpurge.c: Likewise.
13959         * lib/freadable.c: Likewise.
13960         * lib/freadahead.c: Likewise.
13961         * lib/freading.c: Likewise.
13962         * lib/freadptr.c: Likewise.
13963         * lib/freadseek.c: Likewise.
13964         * lib/fseeko.c: Likewise.
13965         * lib/fseterr.c: Likewise.
13966         * lib/fwritable.c: Likewise.
13967         * lib/fwriting.c: Likewise.
13968         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13969
13970 2010-12-22  Bruno Haible  <bruno@clisp.org>
13971
13972         ttyname_r: Work around bug on OSF/1 5.1.
13973         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
13974         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
13975         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
13976         present.
13977         * lib/ttyname_r.c (ttyname_r): Update comments.
13978
13979 2010-12-22  Bruno Haible  <bruno@clisp.org>
13980
13981         round: Implement result sign according to IEEE 754.
13982         * lib/round.c (MIN, MINUS_ZERO): New macros.
13983         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
13984         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
13985         * tests/test-round-ieee.c (main): Likewise.
13986         * tests/test-roundl-ieee.c (main): Likewise.
13987
13988         trunc: Implement result sign according to IEEE 754.
13989         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
13990         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
13991         * tests/test-trunc2.c: Include minus-zero.h.
13992         (MINUS_ZERO): New macro.
13993         (trunc_reference): Keep in sync with lib/trunc.c.
13994         * tests/test-truncf2.c: Include minus-zero.h.
13995         (MINUS_ZERO): New macro.
13996         (truncf_reference): Keep in sync with lib/trunc.c.
13997         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
13998         * tests/test-trunc-ieee.c (main): Likewise.
13999         * tests/test-truncl-ieee.c (main): Likewise.
14000
14001         ceil: Implement result sign according to IEEE 754.
14002         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
14003         (FUNC): Return -0.0 for -1 < x < 0.
14004         * tests/test-ceil2.c: Include minus-zero.h.
14005         (MINUS_ZERO): New macro.
14006         (ceil_reference): Keep in sync with lib/ceil.c.
14007         * tests/test-ceilf2.c: Include minus-zero.h.
14008         (MINUS_ZERO): New macro.
14009         (ceilf_reference): Keep in sync with lib/ceil.c.
14010         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
14011         * tests/test-ceil-ieee.c (main): Likewise.
14012         * tests/test-ceill-ieee.c (main): Likewise.
14013
14014         floor: Implement result sign according to IEEE 754.
14015         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
14016         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
14017         * tests/test-floorf2.c (floorf_reference): Likewise.
14018         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
14019         * tests/test-floor-ieee.c (main): Likewise.
14020         * tests/test-floorl-ieee.c (main): Likewise.
14021
14022 2010-12-22  Bruno Haible  <bruno@clisp.org>
14023
14024         getaddrinfo: Update doc.
14025         * doc/posix-functions/gai_strerror.texi: Return type is also different
14026         on AIX and HP-UX.
14027
14028 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
14029
14030         getaddrinfo, inet_ntop: Update doc for Solaris.
14031         * doc/posix-functions/gai_strerror.texi: Return type is also an
14032         issue on Solaris 9 and earlier.
14033         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
14034         on Solaris 10 and earlier.
14035
14036 2010-12-21  Bruno Haible  <bruno@clisp.org>
14037
14038         New module 'roundl-ieee'.
14039         * modules/roundl-ieee: New file.
14040         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
14041         test whether roundl works according to ISO C 99 with IEC 60559.
14042         * m4/roundl-ieee.m4: New file.
14043         * modules/roundl-ieee-tests: New file.
14044         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
14045         * tests/test-roundl.c (main): Remove signbit tests.
14046         * modules/roundl-tests (Depends-on): Remove signbit.
14047         * doc/posix-functions/roundl.texi: Mention the new module.
14048
14049 2010-12-21  Bruno Haible  <bruno@clisp.org>
14050
14051         New module 'truncl-ieee'.
14052         * modules/truncl-ieee: New file.
14053         * modules/truncl-ieee-tests: New file.
14054         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
14055         * tests/test-truncl.c (main): Remove signbit tests.
14056         * modules/truncl-tests (Depends-on): Remove signbit.
14057         * doc/posix-functions/truncl.texi: Mention the new module.
14058
14059 2010-12-21  Bruno Haible  <bruno@clisp.org>
14060
14061         New module 'ceill-ieee'.
14062         * modules/ceill-ieee: New file.
14063         * modules/ceill-ieee-tests: New file.
14064         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
14065         * tests/test-ceill.c (main): Remove signbit tests.
14066         * modules/ceill-tests (Depends-on): Remove signbit.
14067         * doc/posix-functions/ceill.texi: Mention the new module.
14068
14069 2010-12-21  Bruno Haible  <bruno@clisp.org>
14070
14071         New module 'floorl-ieee'.
14072         * modules/floorl-ieee: New file.
14073         * modules/floorl-ieee-tests: New file.
14074         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
14075         * tests/test-floorl.c (main): Remove signbit tests.
14076         * modules/floorl-tests (Depends-on): Remove signbit.
14077         * doc/posix-functions/floorl.texi: Mention the new module.
14078
14079 2010-12-21  Bruno Haible  <bruno@clisp.org>
14080
14081         New module 'round-ieee'.
14082         * modules/round-ieee: New file.
14083         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
14084         whether round works according to ISO C 99 with IEC 60559.
14085         * m4/round-ieee.m4: New file.
14086         * modules/round-ieee-tests: New file.
14087         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
14088         * tests/test-round1.c (main): Remove signbit tests.
14089         * modules/round-tests (Depends-on): Remove 'signbit'.
14090         * doc/posix-functions/round.texi: Mention the new module.
14091
14092 2010-12-21  Bruno Haible  <bruno@clisp.org>
14093
14094         New module 'trunc-ieee'.
14095         * modules/trunc-ieee: New file.
14096         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
14097         whether trunc works according to ISO C 99 with IEC 60559.
14098         * m4/trunc-ieee.m4: New file.
14099         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
14100         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
14101         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
14102         * modules/trunc-ieee-tests: New file.
14103         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
14104         * tests/test-trunc1.c (main): Remove signbit tests.
14105         * modules/trunc-tests (Depends-on): Remove 'signbit'.
14106         * doc/posix-functions/trunc.texi: Mention the new module.
14107
14108 2010-12-21  Bruno Haible  <bruno@clisp.org>
14109
14110         New module 'ceil-ieee'.
14111         * modules/ceil-ieee: New file.
14112         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
14113         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
14114         ISO C 99 with IEC 60559.
14115         * m4/ceil-ieee.m4: New file.
14116         * modules/ceil (Files): Add lib/ceil.c.
14117         (Depends-on): Add 'float'.
14118         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
14119         * lib/math.in.h (ceil): New declaration.
14120         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
14121         REPLACE_CEIL.
14122         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
14123         * modules/ceil-ieee-tests: New file.
14124         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
14125         * tests/test-math-c++.cc: Check the signature of 'ceil'.
14126         * doc/posix-functions/ceil.texi: Mention the new module.
14127
14128 2010-12-21  Bruno Haible  <bruno@clisp.org>
14129
14130         New module 'floor-ieee'.
14131         * modules/floor-ieee: New file.
14132         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
14133         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
14134         ISO C 99 with IEC 60559.
14135         * m4/floor-ieee.m4: New file.
14136         * modules/floor (Files): Add lib/floor.c.
14137         (Depends-on): Add 'float'.
14138         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
14139         * lib/math.in.h (floor): New declaration.
14140         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
14141         REPLACE_FLOOR.
14142         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
14143         * modules/floor-ieee-tests: New file.
14144         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
14145         * tests/test-math-c++.cc: Check the signature of 'floor'.
14146         * doc/posix-functions/floor.texi: Mention the new module.
14147
14148 2010-12-21  Bruno Haible  <bruno@clisp.org>
14149
14150         New module 'roundf-ieee'.
14151         * modules/roundf-ieee: New file.
14152         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
14153         test whether roundf works according to ISO C 99 with IEC 60559.
14154         * m4/roundf-ieee.m4: New file.
14155         * modules/roundf-ieee-tests: New file.
14156         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
14157         * tests/test-roundf1.c (main): Remove signbit tests.
14158         * modules/roundf-tests (Depends-on): Remove 'signbit'.
14159         * doc/posix-functions/roundf.texi: Mention the new module.
14160
14161 2010-12-21  Bruno Haible  <bruno@clisp.org>
14162
14163         New module 'truncf-ieee'.
14164         * modules/truncf-ieee: New file.
14165         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
14166         test whether truncf works according to ISO C 99 with IEC 60559.
14167         * m4/truncf-ieee.m4: New file.
14168         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
14169         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
14170         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
14171         * modules/truncf-ieee-tests: New file.
14172         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
14173         * tests/test-truncf1.c (main): Remove signbit tests.
14174         * modules/truncf-tests (Depends-on): Remove 'signbit'.
14175         * doc/posix-functions/truncf.texi: Mention the new module.
14176
14177 2010-12-21  Bruno Haible  <bruno@clisp.org>
14178
14179         New module 'ceilf-ieee'.
14180         * modules/ceilf-ieee: New file.
14181         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
14182         test whether ceilf works according to ISO C 99 with IEC 60559.
14183         * m4/ceilf-ieee.m4: New file.
14184         * modules/ceilf-ieee-tests: New file.
14185         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
14186         * tests/test-ceilf1.c (main): Remove signbit tests.
14187         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
14188         * doc/posix-functions/ceilf.texi: Mention the new module.
14189
14190 2010-12-21  Bruno Haible  <bruno@clisp.org>
14191
14192         New module 'floorf-ieee'.
14193         * modules/floorf-ieee: New file.
14194         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
14195         test whether floorf works according to ISO C 99 with IEC 60559.
14196         * m4/floorf-ieee.m4: New file.
14197         * modules/floorf-ieee-tests: New file.
14198         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
14199         * tests/test-floorf1.c (main): Remove signbit tests.
14200         * modules/floorf-tests (Depends-on): Remove 'signbit'.
14201         * doc/posix-functions/floorf.texi: Mention the new module.
14202
14203 2010-12-21  Bruno Haible  <bruno@clisp.org>
14204
14205         Support for minus zero in autoconf macros.
14206         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
14207         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
14208         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
14209         * tests/minus-zero.h: Update comments.
14210
14211 2010-12-21  Bruno Haible  <bruno@clisp.org>
14212
14213         Tests for module 'ceil'.
14214         * modules/ceil-tests: New file.
14215         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
14216         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
14217
14218 2010-12-21  Bruno Haible  <bruno@clisp.org>
14219
14220         Tests for module 'floor'.
14221         * modules/floor-tests: New file.
14222         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
14223         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
14224
14225 2010-12-21  Bruno Haible  <bruno@clisp.org>
14226
14227         math: Fix indentation.
14228         * lib/math.in.h (floorf): Fix indentation.
14229
14230 2010-12-21  Bruno Haible  <bruno@clisp.org>
14231
14232         Fix cross-compilation guesses on Solaris.
14233         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
14234         not match "solaris2.10".
14235         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14236         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
14237         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
14238
14239 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
14240
14241         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
14242         This fixes a problem observed with the latest coreutils snapshot
14243         that caused a test to fail on Solaris 8.  src/csplit.c's call
14244         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
14245         earlier, instead of returning the number of bytes that would have
14246         been generated; this causes csplit to incorrectly report memory
14247         exhaustion.
14248         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
14249         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
14250         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
14251         comments to match.
14252         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
14253         Fix typo in matching older versions of Solaris: "solaris2.10"
14254         is matched by the shell pattern "solaris2.[0-9]*".  This matters
14255         only for guessing while cross-compiling.
14256         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
14257
14258 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
14259
14260         ftoastr: fix comment again
14261         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
14262         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
14263         Also, simplify example a bit by using flags = 0.
14264
14265 2010-12-20  Bruno Haible  <bruno@clisp.org>
14266
14267         round*, trunc*: Update documentation regarding glibc.
14268         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
14269         * doc/posix-functions/round.texi: Likewise.
14270         * doc/posix-functions/roundl.texi: Likewise.
14271         * doc/posix-functions/truncf.texi: Likewise.
14272         * doc/posix-functions/trunc.texi: Likewise.
14273         * doc/posix-functions/truncl.texi: Likewise.
14274
14275 2010-12-20  Bruno Haible  <bruno@clisp.org>
14276
14277         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
14278         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
14279         * doc/posix-functions/round.texi: Likewise.
14280         * doc/posix-functions/roundl.texi: Likewise.
14281
14282 2010-12-20  Bruno Haible  <bruno@clisp.org>
14283
14284         ttyname_r: Add missing declaration on HP-UX 11.
14285         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
14286         HAVE_TTYNAME_R.
14287         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
14288         declared. Set HAVE_TTYNAME_R always.
14289         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14290         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
14291         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
14292         HAVE_TTYNAME_R.
14293         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
14294
14295 2010-12-20  Bruno Haible  <bruno@clisp.org>
14296
14297         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
14298         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
14299         * doc/posix-functions/getlogin_r.texi: Likewise.
14300         * tests/test-getlogin.c: Include <errno.h>.
14301         (main): Avoid test failure on HP-UX 11.11.
14302         * tests/test-getlogin_r.c (main): Likewise.
14303
14304 2010-12-20  Bruno Haible  <bruno@clisp.org>
14305
14306         getlogin_r: Add missing declaration on HP-UX 11.
14307         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
14308         declared also when it exists as a function.
14309         * doc/posix-functions/getlogin_r.texi: Document this workaround.
14310
14311 2010-12-20  Bruno Haible  <bruno@clisp.org>
14312
14313         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
14314         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
14315         through wcrtomb.
14316
14317 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
14318
14319         ftoastr: fix comment
14320         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
14321         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
14322
14323 2010-12-19  Bruno Haible  <bruno@clisp.org>
14324
14325         isnan: Ensure it is a macro.
14326         * lib/math.in.h (isnan): Define as a macro if not already a macro.
14327         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
14328         Solaris.
14329
14330 2010-12-19  Bruno Haible  <bruno@clisp.org>
14331
14332         ldexpl test: Fix link error on OSF/1 5.1.
14333         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
14334
14335 2010-12-19  Bruno Haible  <bruno@clisp.org>
14336
14337         wctype: Make it work in C++ mode on OSF/1 5.1.
14338         * lib/wctype.in.h (iswblank): Declare but not define here.
14339         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
14340         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
14341         * modules/wctype (Files): Add lib/iswblank.c.
14342
14343 2010-12-19  Bruno Haible  <bruno@clisp.org>
14344
14345         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
14346         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
14347         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
14348
14349 2010-12-19  Bruno Haible  <bruno@clisp.org>
14350
14351         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
14352         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
14353         _POSIX_PII_SOCKET.
14354         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
14355         * doc/posix-functions/recvfrom.texi: Likewise.
14356         * doc/posix-functions/send.texi: Likewise.
14357         * doc/posix-functions/sendto.texi: Likewise.
14358
14359 2010-12-19  Bruno Haible  <bruno@clisp.org>
14360
14361         tcgetsid: Add missing declaration on OSF/1 5.1.
14362         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
14363         HAVE_TCGETSID.
14364         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
14365         Don't set HAVE_TCGETSID.
14366         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
14367         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
14368         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
14369         HAVE_TCGETSID.
14370         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
14371
14372 2010-12-19  Bruno Haible  <bruno@clisp.org>
14373
14374         stdio: Fix problem with popen() declaration on OSF/1 5.1.
14375         * lib/stdio.in.h: During the include_next statement, let recursive
14376         includes of this file include only the system header file.
14377
14378 2010-12-19  Bruno Haible  <bruno@clisp.org>
14379
14380         iconv_open: Fix regression from 2010-12-04.
14381         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
14382         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
14383
14384 2010-12-19  Bruno Haible  <bruno@clisp.org>
14385
14386         stdbool test: Avoid a gcc warning.
14387         * tests/test-stdbool.c (main): Fail if e1 is false.
14388         Reported by Jim Meyering.
14389
14390 2010-12-19  Jim Meyering  <meyering@redhat.com>
14391
14392         setenv: restore to working order
14393         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
14394         mistakenly removed.
14395         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
14396         HAVE_SETENV.
14397         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
14398         HAVE_SETENV.
14399
14400 2010-12-19  Bruno Haible  <bruno@clisp.org>
14401
14402         Document some different function declarations on OSF/1 5.1.
14403         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
14404         * doc/posix-functions/inet_ntop.texi: Likewise.
14405         * doc/posix-functions/gethostname.texi: Likewise.
14406         * lib/unistd.in.h (gethostname): Update comment.
14407
14408 2010-12-19  Bruno Haible  <bruno@clisp.org>
14409
14410         doc: Mention vasprintf-posix module.
14411         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
14412         the 'vasprintf-posix' module.
14413         * doc/glibc-functions/vasprintf.texi: Likewise.
14414
14415 2010-12-19  Bruno Haible  <bruno@clisp.org>
14416
14417         unsetenv: Add missing declaration on OSF/1 5.1.
14418         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
14419         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
14420         Don't set HAVE_UNSETENV. In the test program, set _BSD.
14421         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
14422         not HAVE_UNSETENV.
14423         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
14424         HAVE_UNSETENV.
14425         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
14426
14427 2010-12-19  Bruno Haible  <bruno@clisp.org>
14428
14429         setenv: Add missing declaration on OSF/1 5.1.
14430         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
14431         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
14432         declared. Don't set HAVE_SETENV.
14433         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
14434         not HAVE_SETENV.
14435         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
14436         HAVE_SETENV.
14437         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
14438
14439 2010-12-19  Bruno Haible  <bruno@clisp.org>
14440
14441         nl_langinfo tests: Avoid gcc warning.
14442         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
14443
14444 2010-12-19  Bruno Haible  <bruno@clisp.org>
14445
14446         mknod: Avoid error in C++ mode on OSF/1 with GCC.
14447         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
14448         _GL_CXXALIAS_SYS.
14449
14450 2010-12-19  Bruno Haible  <bruno@clisp.org>
14451
14452         stdbool: Relax test.
14453         * tests/test-stdbool.c (e): Don't require that casts from a variable's
14454         address to 'bool' work in static initializer, for compilers other than
14455         GCC.
14456
14457 2010-12-19  Bruno Haible  <bruno@clisp.org>
14458
14459         ftello: Add missing declaration on OSF/1 5.1.
14460         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
14461         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
14462         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
14463         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
14464         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
14465
14466 2010-12-19  Bruno Haible  <bruno@clisp.org>
14467
14468         fseeko: Add missing declaration on OSF/1 5.1.
14469         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
14470         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
14471         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
14472         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
14473         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
14474
14475 2010-12-19  Bruno Haible  <bruno@clisp.org>
14476
14477         fchdir: Add missing declaration on OSF/1 5.1.
14478         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
14479         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
14480         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
14481         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
14482         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
14483
14484 2010-12-19  Bruno Haible  <bruno@clisp.org>
14485
14486         relocatable-prog-wrapper: Separate from relocatable-prog.
14487         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
14488         uninstall-relocwrapper rule here.
14489         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
14490         Reported by Ian Beckwith <ianb@erislabs.net>.
14491
14492 2010-12-19  Bruno Haible  <bruno@clisp.org>
14493
14494         unistr/u8-mbsnlen: Add missing dependency.
14495         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
14496         Reported by Ian Beckwith <ianb@erislabs.net>.
14497
14498 2010-12-19  Bruno Haible  <bruno@clisp.org>
14499
14500         iconv: Make it possible again to use this module without 'iconv-h'.
14501         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
14502         if it is not defined.
14503         Reported by Ian Beckwith <ianb@erislabs.net>.
14504
14505 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
14506
14507         acl: port to Solaris 8 when copying from tmpfs to ufs
14508         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
14509         error number.  Problem observed on Solaris 8 with latest
14510         coreutils, with "mv A B", where A is on a tmpfs file system and B
14511         is on a ufs file system.  This caused coreutils' mv/part-symlink
14512         test to fail.
14513
14514         tests: set fail=0 at start
14515         * tests/init.sh (setup_): Move fail=0 initialization here ...
14516         (mktempd_): ... from here, so that tests can rely on fail being
14517         set to 0 initially.  This fixes a problem in coreutils; see:
14518         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
14519
14520 2010-12-18  Bruno Haible  <bruno@clisp.org>
14521
14522         memmem-simple: Stylistic changes.
14523         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
14524         Fix preprocessor directive indentation.
14525
14526 2010-12-15  Pádraig Brady <P@draigBrady.com>
14527
14528         memmem, memmem-simple: reorganize and expand empty needle check
14529         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
14530         functional checks to memmem-simple so that one has a fully functional
14531         memmem by using just this module.
14532         Restrict the performance only check to the memmem module.
14533         Also expand the empty needle check to ensure the correct
14534         pointer is returned, not just a non NULL pointer.
14535         * doc/glibc-functions/memmem.texi: Rearrange the portability
14536         documentation to correlate with the rearranged checks.
14537         Clarify exactly how the memmem and memmem-simple modules
14538         relate to each other.
14539
14540 2010-12-15  Pádraig Brady <P@draigBrady.com>
14541             Bruno Haible  <bruno@clisp.org>
14542
14543         Improve cross-compilation guesses for uClibc.
14544         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
14545         that uClibc does not have the glibc bug.
14546         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
14547         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
14548
14549 2010-12-14  Eric Blake  <eblake@redhat.com>
14550
14551         configmake: provide fallbacks for oldest supported autotools
14552         * m4/configmake.m4: New file.
14553         * modules/configmake (Files): Ship it.
14554         (configure.ac): Use it to guarantee fallbacks.
14555
14556 2010-12-13  Pádraig Brady <P@draigBrady.com>
14557
14558         read-file: Improve handling of large files
14559         * lib/read-file.c (fread_file): Minimize realloc()s
14560         for regular files, and better manage sizes around SIZE_MAX.
14561
14562 2010-12-13  Eric Blake  <eblake@redhat.com>
14563
14564         cloexec, fcntl: relax license
14565         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
14566         consent from all contributors.
14567         * modules/fcntl (License): Likewise.
14568
14569 2010-12-10  Bruno Haible  <bruno@clisp.org>
14570
14571         Tests for module 'pipe-posix'.
14572         * modules/pipe-posix-tests: New file.
14573         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
14574
14575 2010-12-10  Bruno Haible  <bruno@clisp.org>
14576
14577         pipe-posix: Make it work in C++ mode.
14578         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
14579         (pipe): Use common idiom, not a macro definition.
14580         * lib/pipe.c: New file.
14581         * m4/pipe.m4: New file.
14582         * modules/pipe-posix (Description): Enhance.
14583         (Files): Add lib/pipe.c, m4/pipe.m4.
14584         (configure.ac): Invoke gl_FUNC_PIPE.
14585         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
14586         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
14587         * tests/test-unistd-c++.cc: Check the signature of pipe.
14588
14589 2010-12-10  Bruno Haible  <bruno@clisp.org>
14590
14591         Rename module 'pipe' to 'spawn-pipe'.
14592         * modules/spawn-pipe: New file, renamed from modules/pipe.
14593         (Files, configure.ac, Makefile.am): Update.
14594         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
14595         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
14596         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
14597         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
14598         "spawn-pipe.h" instead of "pipe.h".
14599         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
14600         to gl_SPAWN_PIPE.
14601         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
14602         (Files, Makefile.am): Update.
14603         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
14604         Update.
14605         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
14606         Include "spawn-pipe.h" instead of "pipe.h".
14607         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
14608         * lib/javacomp.c: Likewise.
14609         * lib/javaversion.c: Likewise.
14610         * lib/pipe-filter-gi.c: Likewise.
14611         * lib/pipe-filter-ii.c: Likewise.
14612         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
14613         * modules/javacomp (Depends-on): Likewise.
14614         * modules/javaversion (Depends-on): Likewise.
14615         * modules/pipe-filter-gi (Depends-on): Likewise.
14616         * modules/pipe-filter-ii (Depends-on): Likewise.
14617         * MODULES.html.sh (Executing programs): Update.
14618         * NEWS: Mention the change.
14619
14620 2010-12-10  Eric Blake  <eblake@redhat.com>
14621
14622         pipe-posix: new module
14623         * modules/pipe-posix: New file.
14624         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
14625         (gl_UNISTD_H): Check for declaration.
14626         * modules/unistd (Makefile.am): Substitute it.
14627         * lib/unistd.in.h (pipe): Provide it for mingw.
14628         * doc/posix-functions/pipe.texi (pipe): Update documentation.
14629         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
14630
14631 2010-12-07  Bruno Haible  <bruno@clisp.org>
14632
14633         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
14634         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
14635         u8_strcmp_gnu.
14636         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
14637
14638 2010-12-06  Bruno Haible  <bruno@clisp.org>
14639
14640         Update internal documentation.
14641         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
14642
14643 2010-12-04  Bruno Haible  <bruno@clisp.org>
14644
14645         Put more information about failed tests into the test return codes.
14646         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
14647         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
14648         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
14649         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
14650         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
14651         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14652         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14653         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
14654         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
14655         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
14656         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
14657         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
14658         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
14659         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14660         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
14661         returns a bit mask.
14662         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
14663         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
14664         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
14665         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
14666         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
14667         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
14668         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
14669         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
14670         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
14671         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
14672         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
14673         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
14674         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
14675         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
14676         * m4/link.m4 (gl_FUNC_LINK): Likewise.
14677         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
14678         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
14679         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
14680         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
14681         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
14682         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
14683         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
14684         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
14685         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
14686         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
14687         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
14688         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
14689         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
14690         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
14691         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
14692         gl_PRINTF_PRECISION): Likewise.
14693         * m4/regex.m4 (gl_REGEX): Likewise.
14694         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
14695         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
14696         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
14697         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
14698         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
14699         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14700         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
14701         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
14702         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
14703         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14704         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
14705         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
14706         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
14707         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
14708         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14709         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14710         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
14711         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
14712         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14713         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
14714         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
14715         enumerated value.
14716         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
14717
14718 2010-12-04  Bruno Haible  <bruno@clisp.org>
14719
14720         Update for Solaris 11 2010-11.
14721         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
14722         Express, released in November 2010.
14723
14724 2010-12-04  Bruno Haible  <bruno@clisp.org>
14725
14726         nproc: Relax license.
14727         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
14728         and Paul Eggert.
14729         Requested by Ludovic Courtès <ludo@gnu.org>.
14730
14731 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
14732
14733         utimecmp: fine-grained src to nearby coarse-grained dest
14734
14735         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
14736         and the source is on a file system with higher-resolution time
14737         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
14738         not work, and the time stamps are close together, the algorithm to
14739         determine the exact resolution from the read-back mtime was buggy:
14740         it had a "!=" where it should have had an "==".  This bug has been
14741         in the code ever since it was introduced to gnulib.
14742         Problem reported by Dan Jacobson in
14743         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
14744
14745 2010-11-30  Bruno Haible  <bruno@clisp.org>
14746
14747         strerror_r-posix: Fix autoconf test.
14748         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
14749
14750 2010-11-28  Bruno Haible  <bruno@clisp.org>
14751             Paul Eggert  <eggert@cs.ucla.edu>
14752
14753         Tests for module 'getdomainname'.
14754         * modules/getdomainname-tests: New file.
14755         * tests/test-getdomainname.c: New file, based on
14756         tests/test-gethostname.c.
14757
14758 2010-11-28  Bruno Haible  <bruno@clisp.org>
14759             Paul Eggert  <eggert@cs.ucla.edu>
14760
14761         getdomainname: Use the system function when possible.
14762         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
14763         (getdomainname): Replace if needed. Provide the declaration if it is
14764         missing. Don't use _GL_CXXALIAS_SYS_CAST.
14765         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
14766         (getdomainname): When the system has getdomainname, call the system
14767         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
14768         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
14769         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
14770         found in libnsl. Look for the declaration also in <netdb.h>. Replace
14771         the function if its second argument is of type 'int' or if it is found
14772         in libnsl.
14773         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
14774         <sys/systeminfo.h> and sysinfo().
14775         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
14776         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14777         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
14778         HAVE_GETDOMAINNAME.
14779         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
14780         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
14781         * doc/glibc-functions/getdomainname.texi: Document the problems with
14782         the getdomainname declaration.
14783
14784 2010-11-28  Bruno Haible  <bruno@clisp.org>
14785
14786         sys_socket: Ensure ss_family field on AIX.
14787         * lib/sys_socket.in.h (ss_family): New macro definition.
14788         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
14789         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
14790         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
14791         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14792         * modules/sys_socket (Makefile.am): Substitute
14793         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14794         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
14795
14796 2010-11-27  Bruno Haible  <bruno@clisp.org>
14797
14798         readline: Improve configure output.
14799         * m4/readline.m4 (gl_FUNC_READLINE): Make the
14800         "checking for readline..." result understandable.
14801
14802 2010-11-27  Bruno Haible  <bruno@clisp.org>
14803
14804         *printf-posix: Detect a bug on Solaris 10/x86.
14805         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
14806         for floating-point output.
14807         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
14808         directive.
14809         * tests/test-snprintf-posix.h (test_function): Likewise.
14810         * tests/test-sprintf-posix.h (test_function): Likewise.
14811         * tests/test-vasprintf-posix.c (test_function): Likewise.
14812         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
14813         * doc/posix-functions/printf.texi: Likewise.
14814         * doc/posix-functions/snprintf.texi: Likewise.
14815         * doc/posix-functions/sprintf.texi: Likewise.
14816         * doc/posix-functions/vfprintf.texi: Likewise.
14817         * doc/posix-functions/vprintf.texi: Likewise.
14818         * doc/posix-functions/vsnprintf.texi: Likewise.
14819         * doc/posix-functions/vsprintf.texi: Likewise.
14820         * doc/glibc-functions/obstack_printf.texi: Likewise.
14821         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14822
14823 2010-11-27  Bruno Haible  <bruno@clisp.org>
14824
14825         Fix link error when module libunistring-optional is in use.
14826         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
14827         * modules/striconveha-tests (Makefile.am): Likewise.
14828
14829 2010-11-27  Bruno Haible  <bruno@clisp.org>
14830
14831         regex: Mention link dependencies.
14832         * modules/regex (Link): New section.
14833         * modules/rpmatch (Link): Likewise.
14834         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
14835
14836 2010-11-27  Bruno Haible  <bruno@clisp.org>
14837
14838         ftoastr: Fix compilation error on Solaris.
14839         * lib/ftoastr.c: Include <config.h>.
14840
14841 2010-11-27  Bruno Haible  <bruno@clisp.org>
14842
14843         getloadavg: Update documentation.
14844         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
14845
14846 2010-11-27  Bruno Haible  <bruno@clisp.org>
14847
14848         sys_socket: Fix test whether the functions are declared.
14849         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
14850         not <sys/select.h>.
14851
14852 2010-11-27  Bruno Haible  <bruno@clisp.org>
14853
14854         getpass: Make sure to get system declaration on some platforms.
14855         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
14856         gl_USE_SYSTEM_EXTENSIONS.
14857         * modules/getpass (Depends-on): Add extensions.
14858
14859 2010-11-26  Bruno Haible  <bruno@clisp.org>
14860
14861         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
14862         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
14863         'iconv' module is present.
14864         (ICONV_CONST): New macro.
14865         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
14866         ICONV_CONST.
14867         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
14868         set ICONV_CONST.
14869         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
14870         here.
14871         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
14872         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
14873         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
14874         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
14875         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
14876         present.
14877
14878 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
14879
14880         ftoastr: comment fix
14881         * lib/ftoastr.c: "little" -> "little or no" in comment
14882
14883 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
14884
14885         stdint: port to GCC 4.3 + OSX + Octave
14886         On this platform, stdint.h is buggy and defines int64_t to long
14887         long int.  The replacement defined it to long int, causing
14888         problems with C++ style name mangling.  Instead, trust the system
14889         definition if INT64_MAX is defined, and likewise for the unsigned
14890         variant.   Problem reported by Jarno Rajahalme in
14891         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
14892         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
14893         and don't mess with int64_t and INT64_MAX in this case.
14894         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
14895
14896 2010-11-24  Bruno Haible  <bruno@clisp.org>
14897
14898         doc: Corrections regarding MacOS X 10.4 and 10.5.
14899         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
14900         MacOS X.
14901         Reported by Simon Josefsson.
14902
14903 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
14904
14905         Uninstall ".bin" files installed by relocwrapper.
14906         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
14907         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
14908         unless it is already there.
14909
14910 2010-11-21  Bruno Haible  <bruno@clisp.org>
14911
14912         Update for NetBSD 5.0.
14913         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
14914         NetBSD; the test fails on NetBSD 5.0.
14915         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
14916         about NetBSD.
14917
14918 2010-11-21  Bruno Haible  <bruno@clisp.org>
14919
14920         Update for HP-UX 11.23 and HP-UX 11.31.
14921         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
14922         HP-UX.
14923
14924 2010-11-21  Bruno Haible  <bruno@clisp.org>
14925
14926         Update for MacOS X 10.5.
14927         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
14928         MacOS X; the test fails on MacOS X 10.5.8.
14929         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
14930         about MacOS X.
14931
14932 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
14933
14934         bootstrap: add bootstrap_sync option.
14935         See discussion at
14936         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
14937         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
14938         * build-aux/bootstrap: Accept --bootstrap-sync to update
14939         bootstrap if it is not identical to the local gnulib's
14940         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
14941         enable this by default.  Accept --no-bootstrap-sync to disable
14942         it.
14943
14944 2010-11-20  Bruno Haible  <bruno@clisp.org>
14945
14946         Ensure that <features.h> is included before __GLIBC__ is tested.
14947         * lib/printf-parse.h: Include <features.h>.
14948         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
14949         Reported by Mike Frysinger <vapier@gentoo.org>.
14950
14951         Ensure that <features.h> is included before __GLIBC__ is tested.
14952         * lib/wchar.in.h: Include <features.h>.
14953         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
14954         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
14955         Reported by Mike Frysinger <vapier@gentoo.org>.
14956
14957         Ensure that <features.h> is included before __GLIBC__ is tested.
14958         * lib/arpa_inet.in.h: Include <features.h>.
14959         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
14960         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
14961         Reported by Mike Frysinger <vapier@gentoo.org>.
14962
14963         Ensure that <features.h> is included before __GLIBC__ is tested.
14964         * build-aux/link-warning.h: Include <features.h>.
14965         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
14966         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
14967         Reported by Mike Frysinger <vapier@gentoo.org>.
14968
14969         Ensure that <features.h> is included before __GLIBC__ is tested.
14970         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
14971         Reported by Mike Frysinger <vapier@gentoo.org>.
14972
14973 2010-11-20  Bruno Haible  <bruno@clisp.org>
14974
14975         memmem: Fix autoconf test.
14976         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
14977
14978 2010-11-20  Bruno Haible  <bruno@clisp.org>
14979
14980         Port to uClibc.
14981         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
14982         * lib/fcntl.in.h: Likewise.
14983         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
14984         * lib/mbrtowc.c (mbrtowc): Likewise.
14985         * lib/relocatable.c (find_shared_library_fullname): Likewise.
14986         * lib/strerror_r.c: Likewise.
14987         * lib/unistr/u8-strnlen.c: Likewise.
14988         * lib/vasnprintf.c (decimal_point_char): Likewise.
14989         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
14990         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
14991         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
14992         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
14993         * tests/test-sigaction.c (handler, main): Likewise.
14994         * lib/freading.h: Treat uClibc like a non-glibc platform.
14995         * lib/freading.c: Likewise.
14996         * lib/gettext.h: Likewise.
14997         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
14998         Likewise.
14999         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
15000         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
15001         * lib/propername.c (proper_name_utf8): Likewise.
15002         * lib/spawn.in.h: Likewise.
15003         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
15004         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
15005         mem_cd_iconveh_internal): Likewise.
15006         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
15007         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
15008         strstr, strcasestr): Likewise.
15009         * lib/unicodeio.c (unicode_to_mb): Likewise.
15010         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
15011         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
15012         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
15013         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
15014         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
15015         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
15016         * lib/unistr/u8-stpncpy.c: Likewise.
15017         * lib/vasnprintf.c (VASNPRINTF): Likewise.
15018         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
15019         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
15020         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15021         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
15022         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
15023         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
15024         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
15025         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
15026         Likewise.
15027         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15028         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
15029         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
15030         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15031         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
15032         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
15033         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
15034         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
15035         * tests/test-getopt.h (OPTIND_MIN): Likewise.
15036         * tests/test-striconveha.c (main): Likewise.
15037         * tests/test-vasnprintf-posix.c (test_function): Likewise.
15038         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
15039         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
15040         * doc/posix-functions/getline.texi: Likewise.
15041         Reported by Mike Frysinger <vapier@gentoo.org>.
15042
15043 2010-11-20  Bruno Haible  <bruno@clisp.org>
15044
15045         nproc: Fix condition.
15046         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
15047         HAVE_PTHREAD_AFFINITY_NP.
15048
15049 2010-11-20  Bruno Haible  <bruno@clisp.org>
15050
15051         Fix a comment.
15052         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
15053
15054 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
15055
15056         ftoastr: don't assume snprintf
15057         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
15058         Implement a subset of snprintf here, by using sprintf safely.
15059         * modules/ftoastr (Depends-on): Remove snprintf.
15060
15061 2010-11-19  Jim Meyering  <meyering@redhat.com>
15062
15063         test-rename.h: fix compilation failure
15064         * tests/test-rename.h (test_rename): Add omitted "}".
15065
15066 2010-11-17  Jim Meyering  <meyering@redhat.com>
15067
15068         maint.mk: add a URL discussing the no-@acronym policy
15069         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
15070
15071 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
15072
15073         ftoastr: depend on snprintf, improve comments
15074         * lib/ftoastr.c: Also mention Loitsch's draft.
15075         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
15076         needed in the current implementation, but it might simplify
15077         speeding up the code later.
15078         * modules/ftoastr: Depend on snprintf; this improves portability.
15079         Suggested by Bruno Haible in the same email.
15080
15081         ftoastr: port to hosts lacking strtof and strtold
15082         Problem reported by Bruno Haible in
15083         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
15084         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
15085         environment and strtold (and presumably strtof) are not available.
15086         * modules/ftoastr (Files): Add m4/c-strtod.m4.
15087         (configure.ac): Require gl_C99_STRTOLD.
15088
15089 2010-11-18  Bruno Haible  <bruno@clisp.org>
15090
15091         c-strtold: Avoid link error on AIX 7.
15092         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
15093         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
15094         (gl_C_STRTOLD): Test whether strtold_l exists.
15095         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15096
15097 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
15098
15099         intprops: new macro INT_BITS_STRLEN_BOUND
15100         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
15101         ftoastr.h.  This exposes an internal of intprops.h that was formerly
15102         not exposed.  Also, it uses a slightly tighter bound than before;
15103         though this makes no practical difference, we might as well be as
15104         tight as we easily can.
15105
15106         ftoastr: new module, for lossless conversion of floats to short strings
15107         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
15108         * modules/ftoastr: New files.
15109
15110 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
15111
15112         bootstrap: port to Solaris sed
15113         * build-aux/bootstrap (get_version): Port to Solaris sed.
15114         See Ralf Wildenhues's note in
15115         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
15116
15117 2010-11-14  Jim Meyering  <meyering@redhat.com>
15118
15119         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
15120         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
15121         and move definition closer to sole use.
15122
15123 2010-11-13  Jim Meyering  <meyering@redhat.com>
15124
15125         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
15126         Now we require at least autoconf-2.59, which means the work-around
15127         is no longer needed.
15128         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
15129         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
15130         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
15131         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
15132         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
15133
15134 2010-11-13  Bruno Haible  <bruno@clisp.org>
15135
15136         rename, renameat: Avoid test failures at NFS mounted locations.
15137         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
15138         functions.
15139         (test_rename): Use assert_nonexistent.
15140         * tests/test-rename.c: Include <dirent.h>.
15141         * tests/test-renameat.c: Likewise.
15142         Reported by Gary V. Vaughan <gary@gnu.org>.
15143
15144         rename, renameat: Document Linux bug with NFS
15145         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
15146         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
15147         * doc/posix-functions/renameat.texi: Likewise.
15148         Suggested by Eric Blake.
15149
15150 2010-11-13  Bruno Haible  <bruno@clisp.org>
15151
15152         rename test: Add comments.
15153         * tests/test-rename.h (test_rename): Add structure and comments.
15154
15155 2010-11-13  Eric Blake  <eblake@redhat.com>
15156
15157         maintainer-makefile: cover a few more files
15158         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
15159         scripts generated within C files, for libvirt.
15160
15161 2010-11-13  Bruno Haible  <bruno@clisp.org>
15162
15163         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
15164         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
15165         character, return the number of bytes that belong together, not always
15166         1.
15167         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
15168         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
15169         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
15170         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
15171         number of bytes of an invalid character.
15172         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
15173         (main): Invoke it.
15174         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
15175         results.
15176         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
15177         malformed byte sequences.
15178         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
15179         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
15180         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
15181         Reported by Ben Pfaff and Paolo Bonzini.
15182
15183 2010-11-13  Bruno Haible  <bruno@clisp.org>
15184
15185         openat: Work around glibc bug with fchownat() and empty file names.
15186         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
15187         (gl_FUNC_FCHOWNAT): Invoke it.
15188         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
15189         * doc/posix-functions/fchownat.texi: Document the glibc bug.
15190         Reported by Gary V. Vaughan <gary@gnu.org>.
15191
15192 2010-11-13  Bruno Haible  <bruno@clisp.org>
15193
15194         openat: Ensure autoconf macro ordering.
15195         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
15196         gl_USE_SYSTEM_EXTENSIONS.
15197         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
15198
15199 2010-11-13  Bruno Haible  <bruno@clisp.org>
15200
15201         Update comments.
15202         * lib/unistr/u8-check.c: Update file name in comments.
15203         * lib/unistr/u8-mblen.c: Likewise.
15204         * lib/unistr/u8-prev.c: Likewise.
15205         * lib/unistr/u8-strmblen.c: Likewise.
15206         * lib/unistr/u8-strmbtouc.c: Likewise.
15207
15208 2010-11-13  Jim Meyering  <meyering@redhat.com>
15209
15210         tests: avoid test failure on Solaris 10 due to lack of PATH export
15211         * tests/test-update-copyright.sh: Don't forget to export PATH.
15212
15213         init.sh: ensure that IFS is defined, just in case...
15214         * tests/init.sh (setup_): Ensure that IFS is defined,
15215         so that saving and restoring it works as expected.  This
15216         appears to be useful at least for an old version of dash
15217         from a long time ago (RH 6).  See here for details:
15218         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
15219
15220         maint.mk: tighten "test a == b" check
15221         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
15222         test to files that contain something like #!/bin/sh.
15223         Without this, coreutils would get two false positives in
15224         the comments of C source files.
15225
15226 2010-11-12  Eric Blake  <eblake@redhat.com>
15227
15228         bootstrap: fix typo in previous attempt
15229         * build-aux/bootstrap (buildreq): Correct the grouping.
15230         Reported by Paul Eggert.
15231
15232         maintainer-makefile: prohibit test x == x
15233         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
15234         Based on a report by Matthias Bolte.
15235
15236         bootstrap: allow FreeBSD gzip
15237         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
15238         which has no '.' and goes to stderr.
15239         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
15240         Reported by Matthias Bolte.
15241
15242         maintainer-makefile: check for i18n setup
15243         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
15244         will likely work.
15245
15246 2010-11-12  Bruno Haible  <bruno@clisp.org>
15247
15248         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
15249         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
15250         * lib/nanosleep.c (nanosleep): Likewise.
15251
15252 2010-11-11  Bruno Haible  <bruno@clisp.org>
15253
15254         fcntl-h: Fix for use of C++ on glibc systems.
15255         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
15256         also on glibc systems in C++ mode.
15257         Reported by Gary V. Vaughan <gary@gnu.org>.
15258
15259 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
15260
15261         mknod: avoid false failure with dash
15262         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
15263
15264 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
15265
15266         unlink: Fix "is it should" typo in diagnostic.
15267         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
15268         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
15269
15270 2010-11-11  Bruno Haible  <bruno@clisp.org>
15271
15272         Tests for module 'strerror_r-posix'.
15273         * modules/strerror_r-posix-tests: New file.
15274         * tests/test-strerror_r.c: New file.
15275         * tests/test-string-c++.cc: Check the signature of strerror_r.
15276
15277         New module 'strerror_r-posix'.
15278         * lib/string.in.h (strerror_r): New declaration.
15279         * lib/strerror_r.c: New file.
15280         * m4/strerror_r.m4: New file.
15281         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
15282         of strerror_r.
15283         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
15284         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
15285         * modules/strerror_r-posix: New file.
15286         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
15287         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
15288         * doc/posix-functions/strerror_r.texi: Mention the new module and the
15289         portability problems.
15290
15291 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
15292
15293         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
15294         line is also considered for output. Quoted function name in shell
15295         command, so temporary files for functions like MyClass::operator()
15296         are removed correctly without errors.
15297
15298 2010-11-09  Bruno Haible  <bruno@clisp.org>
15299
15300         * doc/posix-functions/strerror.texi: List more failing platforms.
15301
15302         * doc/posix-functions/strerror.texi: Add a comment.
15303
15304 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
15305
15306         fdopendir: fix bug on MacOS X when low on file descriptors
15307
15308         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
15309         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
15310         All callers changed.
15311         (fdopendir): Invoke save_cwd at the top level, not after using
15312         multiple dup() calls to use up file descriptors.  Then retry
15313         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
15314         less than the maximum number of open file descriptors, because
15315         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
15316         on Mac OS X 10.6.4 for tar 1.24
15317         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
15318         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
15319         and for tar 1.25
15320         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
15321
15322 2010-11-07  Bruno Haible  <bruno@clisp.org>
15323
15324         vasnprintf: Support I flag on glibc systems.
15325         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
15326         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
15327         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
15328         snprintf function.
15329         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
15330         glibc systems.
15331         * tests/test-vasnprintf-posix3.c: New file.
15332         * modules/vasnprintf-posix-tests (Files): Add it.
15333         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
15334
15335 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
15336
15337         [html] Fix copy/paste bug: Use unique name for compiler warnings.
15338         * MODULES.html.sh: For compiler warnings, use name
15339         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
15340
15341 2010-11-05  Eric Blake  <eblake@redhat.com>
15342
15343         ceil, floor: avoid spurious failure with icc
15344         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
15345         [denormals-as-zero] when optimizing without -mieee-fp option.
15346         * tests/test-floorf2.c (floorf_reference): Likewise.
15347         * tests/test-ceilf1.c (dummy): New function.
15348         (main): Use it to outsmart icc's optimization.
15349         * tests/test-floorf1.c (dummy, main): Likewise.
15350
15351         tests: require working signbit
15352         * modules/ceilf-tests (Depends-on): Add signbit.
15353         * modules/ceill-tests (Depends-on): Likewise.
15354         * modules/floorf-tests (Depends-on): Likewise.
15355         * modules/floorl-tests (Depends-on): Likewise.
15356         * modules/round-tests (Depends-on): Likewise.
15357         * modules/roundf-tests (Depends-on): Likewise.
15358         * modules/roundl-tests (Depends-on): Likewise.
15359         * modules/trunc-tests (Depends-on): Likewise.
15360         * modules/truncf-tests (Depends-on): Likewise.
15361         * modules/truncl-tests (Depends-on): Likewise.
15362
15363         strtod: work around icc bug
15364         * lib/strtod.c (minus_zero): Define to working value.
15365         (strtod): Use it to avoid icc bug.
15366
15367         copysign: enhance tests
15368         * modules/copysign-tests (Files): Add minus-zero.h.
15369         * tests/test-copysign.c (main): Also test zeros.
15370
15371 2010-11-04  Eric Blake  <eblake@redhat.com>
15372
15373         ceil, floor, round, trunc: enhance tests of -0
15374         * tests/test-ceilf1.c (main): Ensure correct sign of result.
15375         * tests/test-ceill.c (main): Likewise.
15376         * tests/test-floorf1.c (main): Likewise.
15377         * tests/test-floorl.c (main): Likewise.
15378         * tests/test-round1.c (main): Likewise.
15379         * tests/test-roundf1.c (main): Likewise.
15380         * tests/test-roundl.c (main): Likewise.
15381         * tests/test-trunc1.c (main): Likewise.
15382         * tests/test-truncf1.c (main): Likewise.
15383         * tests/test-truncl.c (main): Likewise.
15384
15385 2010-11-04  Eric Blake  <eblake@redhat.com>
15386
15387         frexp, tests: work around ICC bug with -zero
15388         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
15389         works with more compilers.
15390         * tests/minus-zero.h: New file.
15391         * modules/ceilf-tests (Files): Include it.
15392         * modules/ceill-tests (Files): Likewise.
15393         * modules/floorf-tests (Files): Likewise.
15394         * modules/floorl-tests (Files): Likewise.
15395         * modules/frexp-nolibm-tests (Files): Likewise.
15396         * modules/frexp-tests (Files): Likewise.
15397         * modules/frexpl-nolibm-tests (Files): Likewise.
15398         * modules/frexpl-tests (Files): Likewise.
15399         * modules/isnan-tests (Files): Likewise.
15400         * modules/isnand-nolibm-tests (Files): Likewise.
15401         * modules/isnand-tests (Files): Likewise.
15402         * modules/isnanf-nolibm-tests (Files): Likewise.
15403         * modules/isnanf-tests (Files): Likewise.
15404         * modules/isnanl-nolibm-tests (Files): Likewise.
15405         * modules/isnanl-tests (Files): Likewise.
15406         * modules/round-tests (Files): Likewise.
15407         * modules/roundf-tests (Files): Likewise.
15408         * modules/roundl-tests (Files): Likewise.
15409         * modules/ldexpl-tests (Files): Likewise.
15410         * modules/signbit-tests (Files): Likewise.
15411         * modules/snprintf-posix-tests (Files): Likewise.
15412         * modules/sprintf-posix-tests (Files): Likewise.
15413         * modules/strtod-tests (Files): Likewise.
15414         * modules/trunc-tests (Files): Likewise.
15415         * modules/truncf-tests (Files): Likewise.
15416         * modules/truncl-tests (Files): Likewise.
15417         * modules/vsnprintf-posix-tests (Files): Likewise.
15418         * modules/vsprintf-posix-tests (Files): Likewise.
15419         * modules/vasnprintf-posix-tests (Files): Likewise.
15420         * modules/vasprintf-posix-tests (Files): Likewise.
15421         * tests/test-ceilf1.c (main): Use it.
15422         * tests/test-ceill.c (main): Likewise.
15423         * tests/test-floorf1.c (main): Likewise.
15424         * tests/test-floorl.c (main): Likewise.
15425         * tests/test-frexp.c (main): Likewise.
15426         * tests/test-frexpl.c (main): Likewise.
15427         * tests/test-isnan.c (main): Likewise.
15428         * tests/test-isnand.h (main): Likewise.
15429         * tests/test-isnanf.h (main): Likewise.
15430         * tests/test-isnanl.h (main): Likewise.
15431         * tests/test-ldexpl.c (main): Likewise.
15432         * tests/test-round.c (main): Likewise.
15433         * tests/test-roundf.c (main): Likewise.
15434         * tests/test-roundl.c (main): Likewise.
15435         * tests/test-signbit.c (test_signbitf, test_signbitd)
15436         (test_signbitl): Likewise.
15437         * tests/test-snprintf-posix.h (test_function): Likewise.
15438         * tests/test-sprintf-posix.h (test_function): Likewise.
15439         * tests/test-strtod.c (main): Likewise.
15440         * tests/test-trunc1.c (main): Likewise.
15441         * tests/test-truncf1.c (main): Likewise.
15442         * tests/test-truncl.c (main): Likewise.
15443
15444         isnanl: work around icc bug
15445         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
15446
15447 2010-11-03  Eric Blake  <eblake@redhat.com>
15448
15449         tests: fix compiler warnings
15450         * tests/test-getopt.h (test_getopt): Fix condition.
15451         * tests/test-getopt_long.h (test_getopt_long): Likewise.
15452         * tests/test-pipe2.c (main): Likewise.
15453         * tests/test-quotearg-simple.c (main): Avoid icc warning.
15454
15455         utimens: fix broken m4 test
15456         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
15457
15458 2010-10-28  Bruno Haible  <bruno@clisp.org>
15459
15460         posix_spawn*, getdtablesize: Relax license.
15461         * modules/posix_spawn (License): Change to LGPLv2+.
15462         * modules/posix_spawnp (License): Likewise.
15463         * modules/posix_spawn-internal (License): Likewise.
15464         * modules/posix_spawnattr_init (License): Likewise.
15465         * modules/posix_spawnattr_getflags (License): Likewise.
15466         * modules/posix_spawnattr_setflags (License): Likewise.
15467         * modules/posix_spawnattr_getpgroup (License): Likewise.
15468         * modules/posix_spawnattr_setpgroup (License): Likewise.
15469         * modules/posix_spawnattr_getschedparam (License): Likewise.
15470         * modules/posix_spawnattr_setschedparam (License): Likewise.
15471         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
15472         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
15473         * modules/posix_spawnattr_getsigdefault (License): Likewise.
15474         * modules/posix_spawnattr_setsigdefault (License): Likewise.
15475         * modules/posix_spawnattr_getsigmask (License): Likewise.
15476         * modules/posix_spawnattr_setsigmask (License): Likewise.
15477         * modules/posix_spawnattr_destroy (License): Likewise.
15478         * modules/posix_spawn_file_actions_init (License): Likewise.
15479         * modules/posix_spawn_file_actions_addclose (License): Likewise.
15480         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
15481         * modules/posix_spawn_file_actions_addopen (License): Likewise.
15482         * modules/posix_spawn_file_actions_destroy (License): Likewise.
15483         * modules/getdtablesize (License): Likewise.
15484         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
15485
15486 2010-10-26  Bruno Haible  <bruno@clisp.org>
15487
15488         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
15489         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
15490         Cygwin and mingw.
15491         Suggested by Eric Blake.
15492
15493 2010-10-26  Bruno Haible  <bruno@clisp.org>
15494
15495         stdio: Work around compilation error due to renameat() on Solaris 10.
15496         * lib/stdio.in.h: Include <unistd.h> on Solaris.
15497         * lib/renameat.c: Don't include <unistd.h> here.
15498         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
15499         Reported by Paul Eggert and Eric Blake.
15500
15501 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
15502
15503         renameat: port to Solaris 10, which declares renameat in unistd.h
15504
15505         * lib/renameat.c: Include unistd.h before stdio.h, because
15506         Solaris 10 declares renameat in unistd.h.  Problem encountered
15507         when building GNU tar 1.24 on Solaris 10.
15508
15509 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
15510
15511         fdopendir: fix C89 compilation
15512         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
15513         compilers.
15514
15515 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
15516
15517         inttostr: simplify by removing unnecessary redundancy
15518         * lib/anytostr.c: Don't include verify.h.
15519         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
15520         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
15521         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
15522         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
15523         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
15524         Likewise.
15525         * modules/inttostr (Depends-on): Remove 'verify'.
15526
15527 2010-10-23  Bruno Haible  <bruno@clisp.org>
15528
15529         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
15530         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
15531         Reported by Eric Blake.
15532
15533 2010-10-23  Bruno Haible  <bruno@clisp.org>
15534
15535         Tests: Fix LOCALE_JA on MirBSD 10.
15536         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
15537         to an UTF-8 locale.
15538         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
15539         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
15540         Reported by Eric Blake.
15541
15542 2010-10-21  Bruno Haible  <bruno@clisp.org>
15543
15544         nl_langinfo test: Avoid test failure on NetBSD 5.
15545         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
15546         Reported by Eric Blake.
15547
15548 2010-10-21  Eric Blake  <eblake@redhat.com>
15549
15550         c-stack: work around libsigsegv 2.8 bug
15551         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
15552         overflow on at least PowerPC64.
15553
15554 2010-10-17  Bruno Haible  <bruno@clisp.org>
15555
15556         userspec: Drop redundant file.
15557         * modules/userspec (Files): Remove lib/inttostr.h.
15558
15559 2010-10-17  Bruno Haible  <bruno@clisp.org>
15560
15561         nl_langinfo tests: Silence some warnings.
15562         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
15563         Reported by Jim Meyering.
15564
15565 2010-10-17  Bruno Haible  <bruno@clisp.org>
15566
15567         Make use of GCC's attribute __alloc_size__.
15568         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
15569         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
15570         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
15571         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
15572         __alloc_size__.
15573         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
15574         Suggested by Jim Meyering.
15575
15576 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
15577
15578         bootstrap: anchor .gitignore entries.
15579         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
15580         with...
15581         (insert_vc_ignore): ... this new function, which prepends `/' to
15582         all .gitignore entries before passing them to
15583         insert_sorted_if_absent.
15584
15585 2010-10-16  Bruno Haible  <bruno@clisp.org>
15586
15587         nextafter: Fix configure check.
15588         * modules/nextafter (configure.ac): Correct expected prototype.
15589
15590 2010-10-16  Bruno Haible  <bruno@clisp.org>
15591
15592         termios: Update documentation.
15593         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
15594
15595 2010-10-16  Bruno Haible  <bruno@clisp.org>
15596
15597         tests: Make them compile with TinyCC.
15598         * tests/test-strstr.c (main): Remove parentheses around array
15599         initializer.
15600
15601 2010-10-15  Eric Blake  <eblake@redhat.com>
15602
15603         ignore-value: make header idempotent
15604         * lib/ignore-value.h: Add double-inclusion guards.
15605         Reported by Stefan Berger.
15606
15607 2010-10-15  Jim Meyering  <meyering@redhat.com>
15608
15609         GNUmakefile: handle "stable" target, not "major"
15610         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
15611         lists in maint.mk and announce-gen.  Without this, "make stable"
15612         would fail to ensure that $(VERSION) is up to date.
15613
15614 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
15615
15616         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
15617         & co.
15618
15619 2010-10-14  Bruno Haible  <bruno@clisp.org>
15620
15621         vasnprintf: Don't set errno to 0.
15622         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
15623         block that sets it to 0.
15624         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
15625
15626 2010-10-14  Bruno Haible  <bruno@clisp.org>
15627
15628         socketlib: Fix.
15629         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
15630         gl_PREREQ_SYS_H_WINSOCK2.
15631         Reported by Ian Beckwith <ianb@erislabs.net>.
15632
15633 2010-10-13  Jim Meyering  <meyering@redhat.com>
15634
15635         test-select-stdin.c: avoid warn_unused_result warnings
15636         * tests/test-select-stdin.c: Include "macros.h".
15637         ASSERT that read and fflush succeed.
15638
15639 2010-10-13  Jim Meyering  <meyering@redhat.com>
15640
15641         git-version-gen: do require git-VC'd files in cwd
15642         * build-aux/git-version-gen: Reject a git version string
15643         if there are no commits associated with the current directory.
15644         This avoids an unlikely false-positive (unrelated dir whose parent
15645         repository also contains a tag matching v*), as pointed out
15646         by Giuseppe Scrivano in
15647         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
15648
15649 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
15650
15651         argv-iter: omit nonconforming declaration
15652         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
15653         enum arg_iter_err declaration, which doesn't conform to C99.
15654         Solaris 10 cc warns about this.
15655
15656 2010-10-13  Eric Blake  <eblake@redhat.com>
15657
15658         termios: fix compilation on mingw
15659         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
15660         (gl_TERMIOS_H): Adjust it on mingw.
15661         * modules/termios (Makefile.am): Substitute new key.
15662         * lib/termios.in.h (includes): Make include_next conditional.
15663         * doc/posix-headers/termios.texi (termios.h): Update
15664         documentation.
15665         Reported by Daniel P. Berrange.
15666
15667 2010-10-13  Jim Meyering  <meyering@redhat.com>
15668
15669         git-version-gen: don't require that .git/ be in the current dir
15670         * build-aux/git-version-gen: Adjust this script so that it works
15671         when run from any working directory beneath the top-level .git/-
15672         containing directory.  Inspired by a patch from Giuseppe Scrivano,
15673         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
15674
15675         test-select: avoid warn_unused_result warnings
15676         * tests/test-select.c: Include "macros.h".
15677         ASSERT that each call to read, write, and pipe succeeds.
15678         While not technically required, also check each "close".
15679         * modules/select-tests (Files): Add tests/macros.h.
15680
15681         test-symlinkat: remove declaration of unused local
15682         * tests/test-symlinkat.c (main): Remove unused local, "buf".
15683
15684         test-inttostr: avoid shadowing warnings
15685         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
15686         and use malloc rather than the stack for the same reason as
15687         mentioned in the comment justifying the other allocation.
15688
15689 2010-10-11  Bruno Haible  <bruno@clisp.org>
15690
15691         stdlib: Allow multiple gnulib generated replacements to coexist.
15692         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
15693         Reported by Sam Steingold <sds@gnu.org>.
15694
15695 2010-10-11  Jim Meyering  <meyering@redhat.com>
15696
15697         fix a documentation typo
15698         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
15699
15700 2010-10-11  Eric Blake  <eblake@redhat.com>
15701
15702         futimens: work around Solaris 11 bug
15703         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
15704         * tests/test-futimens.h (test_futimens): Enhance, rather than
15705         weaken test.
15706         * doc/posix-functions/futimens.texi (futimens): Document the bug.
15707
15708 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
15709
15710         Indentation.
15711         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
15712         higher-level operators more to the left.
15713
15714 2010-10-11  Jim Meyering  <meyering@redhat.com>
15715
15716         test-futimens: avoid unwarranted test failure on Solaris 5.11
15717         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
15718         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
15719         because it tries to dereference the NULL name argument.
15720
15721 2010-10-11  Bruno Haible  <bruno@clisp.org>
15722
15723         Indentation.
15724         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
15725         indentation.
15726
15727 2010-10-11  Jim Meyering  <meyering@redhat.com>
15728
15729         spawn.in.h: make indentation consistent with parentheses
15730         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
15731         Make indentation consistent with parentheses.
15732
15733 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
15734
15735         Fix mismatched parens in previous commit
15736         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
15737         parens.
15738
15739 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
15740
15741         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
15742
15743         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
15744         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
15745         * lib/malloca.c: Include "verify.h".
15746         (verify1): Remove, replacing with a verify call.
15747         * lib/relocwrapper.c (verify1): Likewise.
15748         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
15749         Likewise.
15750         * modules/malloca (Depends-on): Add 'verify'.
15751         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
15752         * modules/vasnprintf (Depends-on): Add 'verify'.
15753         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
15754         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
15755         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
15756         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
15757         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
15758         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
15759         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
15760
15761         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
15762
15763         Formerly the style was sometimes 2*X - 1, because the C standard
15764         was wrongly thought to disallow ?: in integral constant expressions.
15765         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
15766         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
15767         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15768         * lib/stdint.in.h (_verify_intmax_size): Likewise.
15769         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
15770         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
15771         verify that time_t cannot be floating.
15772
15773 2010-10-08  Eric Blake  <eblake@redhat.com>
15774
15775         time: enforce recent POSIX ruling that time_t is integral
15776         * lib/time.in.h (__time_t_must_be_integral): Detect any
15777         problematic systems, allowing the rest of gnulib to assume POSIX.
15778
15779 2010-10-08  Jim Meyering  <meyering@redhat.com>
15780
15781         fdopendir: fix a bug on systems lacking openat and /proc support
15782         OpenBSD 4.7 is one such system.  The most noticeable effect was
15783         failure of any application making nontrivial use of fts: rm, du,
15784         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
15785           ./rm: traversal failed: `a': Bad file descriptor
15786         Debugging that, you see that even though FD 6 was closed just
15787         prior to the opendir call in fd_clone_opendir, its resulting
15788         dir->dd_fd was 8, rather than the expected value of 6:
15789
15790         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
15791         93                close (fd);
15792         (gdb) n
15793         94                dir = fd_clone_opendir (dupfd);
15794         (gdb) n
15795         95                saved_errno = errno;
15796         (gdb) p dir->dd_fd
15797         $11 = 8
15798
15799         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
15800         The problem is that on OpenBSD, fd_clone_opendir has to resort
15801         to using the old-style save/restore CWD mechanism, due to its
15802         lack of openat/proc support, and *that* would steal the FD (6)
15803         that opendir was supposed to use.
15804
15805         The fix is to squirrel away the desired FD so that save_cwd uses a
15806         different one, and then free the dest FD right before calling opendir.
15807         That guarantees opendir will use the required file descriptor.
15808
15809         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
15810
15811 2010-10-08  Bruno Haible  <bruno@clisp.org>
15812
15813         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
15814         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
15815
15816 2010-10-08  Bruno Haible  <bruno@clisp.org>
15817
15818         nanosleep: Make replacement POSIX compliant.
15819         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
15820         is out of range.
15821         Reported by Jim Meyering.
15822
15823 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
15824
15825         bootstrap: add hook for altering gnulib.mk, for Bison
15826         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
15827         the Bison bootstrapping process can rewrite file names and variables
15828         in this file before later parts of 'bootstrap' use the file.
15829         Bison wants to include lib/gnulib.mk from the top-level makefile,
15830         so it needs the file names in this file to be relative to the top
15831         level, not relative to lib; plus it needs variable names to be
15832         rewritten.
15833         (slurp): Use the new function.
15834
15835         bootstrap: reformat for readability
15836         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
15837
15838 2010-10-08  Eric Blake  <eblake@redhat.com>
15839
15840         docs: update cygwin progress
15841         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
15842         1.7.7.
15843         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
15844         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
15845         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
15846         * doc/posix-functions/carg.texi (carg): Likewise.
15847         * doc/posix-functions/cargf.texi (cargf): Likewise.
15848         * doc/posix-functions/casin.texi (casin): Likewise.
15849         * doc/posix-functions/casinf.texi (casinf): Likewise.
15850         * doc/posix-functions/casinh.texi (casinh): Likewise.
15851         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
15852         * doc/posix-functions/catan.texi (catan): Likewise.
15853         * doc/posix-functions/catanf.texi (catanf): Likewise.
15854         * doc/posix-functions/catanh.texi (catanh): Likewise.
15855         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
15856         * doc/posix-functions/ccos.texi (ccos): Likewise.
15857         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
15858         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
15859         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
15860         * doc/posix-functions/cexp.texi (cexp): Likewise.
15861         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
15862         * doc/posix-functions/cimag.texi (cimag): Likewise.
15863         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
15864         * doc/posix-functions/clog.texi (clog): Likewise.
15865         * doc/posix-functions/clogf.texi (clogf): Likewise.
15866         * doc/posix-functions/conj.texi (conj): Likewise.
15867         * doc/posix-functions/conjf.texi (conjf): Likewise.
15868         * doc/posix-functions/cpow.texi (cpow): Likewise.
15869         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
15870         * doc/posix-functions/cproj.texi (cproj): Likewise.
15871         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
15872         * doc/posix-functions/creal.texi (creal): Likewise.
15873         * doc/posix-functions/crealf.texi (crealf): Likewise.
15874         * doc/posix-functions/csin.texi (csin): Likewise.
15875         * doc/posix-functions/csinf.texi (csinf): Likewise.
15876         * doc/posix-functions/csinh.texi (csinh): Likewise.
15877         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
15878         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
15879         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
15880         * doc/posix-functions/ctan.texi (ctan): Likewise.
15881         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
15882         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
15883         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
15884         * doc/posix-headers/complex.texi (complex.h): Likewise.
15885
15886 2010-10-07  Jim Meyering  <meyering@redhat.com>
15887
15888         parse-datetime: avoid compilation failure on OpenBSD 4.7
15889         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
15890         This works around a compilation failure on OpenBSD 4.7:
15891         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
15892
15893 2010-10-07  Eric Blake  <eblake@redhat.com>
15894
15895         docs: update cygwin progress
15896         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
15897         1.7.6.
15898         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
15899         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
15900         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
15901         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
15902         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
15903         Likewise.
15904         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
15905         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
15906         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
15907         Likewise.
15908         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
15909         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
15910         Likewise.
15911         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
15912         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
15913         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
15914         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
15915         Likewise.
15916         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
15917         Likewise.
15918         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
15919
15920         docs: update parse-datetime history
15921         * doc/parse-datetime.texi (Authors of parse_datetime): Better
15922         documentation of this function's history and alternatives.
15923
15924         cygwin: use more robust version check
15925         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
15926         exclude an eventual cygwin 1.9.1.
15927         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15928         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
15929         (gl_FUNC_STRCASESTR): Likewise.
15930         Reported by Bruno Haible.
15931
15932 2010-10-06  Bruno Haible  <bruno@clisp.org>
15933
15934         string, sys_select: Avoid #including large headers unless necessary.
15935         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
15936         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
15937         OSF/1, BeOS, Haiku.
15938         Reported by Jim Meyering.
15939
15940 2010-10-05  Eric Blake  <eblake@redhat.com>
15941
15942         memmem, strstr, strcasestr: fix bug with long periodic needle
15943         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
15944         periodic needle having false positive.
15945         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
15946         and cygwin 1.7.7.
15947         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
15948         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
15949         (gl_FUNC_STRCASESTR): Likewise.
15950         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15951         * tests/test-memmem.c (main): Expose the bug.
15952         * tests/test-strcasestr.c (main): Likewise.
15953         * tests/test-strstr.c (main): Likewise.
15954         * tests/test-c-strcasestr.c (main): Likewise.
15955         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
15956         * doc/posix-functions/strstr.texi (strstr): Likewise.
15957         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
15958         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
15959
15960 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
15961
15962         parse-datetime: do some more renaming
15963         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
15964         parse_datetime, not get_date.  Mention the renaming.
15965         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
15966         in comments.
15967         * m4/bison.m4: Likewise.
15968
15969 2010-10-05  Eric Blake  <eblake@redhat.com>
15970
15971         parse-datetime: better name than get_date
15972         * NEWS: Reword the deprecation notice.
15973         * modules/get_date: Rename to modules/parse-datetime.
15974         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
15975         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
15976         * lib/get_date.y: Rename to lib/parse-datetime.y.
15977         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
15978         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
15979         * doc/getdate.texi: Provide fallback wrapper.
15980         * lib/getdate.h: Move guts, and wrap...
15981         * lib/parse-datetime.h: ...new file.
15982         * lib/parse-datetime.y (get_date): Rename...
15983         (parse_datetime): ...to this.
15984         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
15985         (gl_PARSE_DATETIME): ...to this.
15986         * doc/posix-functions/getdate.texi (get_date): Provide fallback
15987         documentation.
15988         * modules/getdate (Files): Provide fallback docs and header.
15989         (Notice, Depends-on): Update references.
15990         * tests/test-parse-datetime.c: Likewise.
15991         * DEPENDENCIES: Likewise.
15992         * MODULES.html.sh (Date and time <time.h>): Likewise.
15993         * doc/parse-datetime.texi (Date input formats)
15994         (Authors of parse_datetime): Likewise.
15995         * modules/parse-datetime (Files, configure.ac, Makefile.am)
15996         (Include): Likewise.
15997         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
15998         * gnulib-tool: Likewise.
15999         * m4/bison.m4 (gl_BISON): Likewise.
16000         Suggested by Bruno Haible.
16001
16002 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
16003
16004         more ports to Solaris tr, which needs [] around ranges
16005         * gnulib-tool: Solaris tr needs [] around ranges.
16006         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
16007         * tests/test-pipe-filter-gi1.c (main): Likewise.
16008         * tests/test-pipe-filter-ii1.c (main): Likewise.
16009
16010 2010-10-05  Eric Blake  <eblake@redhat.com>
16011
16012         bootstrap: fix Solaris regression
16013         * build-aux/bootstrap (check_versions): Solaris tr still needs []
16014         around ranges.
16015         Reported by Pádraig Brady.
16016
16017         bootstrap: work with pkg-config
16018         * build-aux/bootstrap (check_versions): Also transliterate - in
16019         prerequisite name.
16020         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
16021         prerequisites that were already found, to avoid confusion.
16022         Reported by Justin Clift.
16023
16024         faccessat: remove unused wrappers
16025         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
16026         presence of these wrappers dragged in -lgen on Solaris.
16027         Reported by Clemens Brogi; fix suggested by Paul Eggert.
16028
16029 2010-10-05  Jim Meyering  <meyering@redhat.com>
16030
16031         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
16032         * Makefile (sc_pragma_columns): New syntax-check rule.
16033
16034 2010-10-04  Bruno Haible  <bruno@clisp.org>
16035
16036         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
16037         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
16038         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
16039         Reported by Bruce Korb and Eric Blake.
16040
16041 2010-10-04  Bruno Haible  <bruno@clisp.org>
16042
16043         threadlib: Make option --with-libpth-prefix work.
16044         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
16045         use $LIBPTH, not just -lpth.
16046
16047 2010-10-04  Bruno Haible  <bruno@clisp.org>
16048
16049         Avoid line length limitation from HP NonStop system header files.
16050         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
16051         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
16052         * lib/ctype.in.h: Likewise.
16053         * lib/dirent.in.h: Likewise.
16054         * lib/errno.in.h: Likewise.
16055         * lib/fcntl.in.h: Likewise.
16056         * lib/float.in.h: Likewise.
16057         * lib/getopt.in.h: Likewise.
16058         * lib/iconv.in.h: Likewise.
16059         * lib/inttypes.in.h: Likewise.
16060         * lib/langinfo.in.h: Likewise.
16061         * lib/locale.in.h: Likewise.
16062         * lib/math.in.h: Likewise.
16063         * lib/netdb.in.h: Likewise.
16064         * lib/netinet_in.in.h: Likewise.
16065         * lib/poll.in.h: Likewise.
16066         * lib/pthread.in.h: Likewise.
16067         * lib/pty.in.h: Likewise.
16068         * lib/sched.in.h: Likewise.
16069         * lib/se-selinux.in.h: Likewise.
16070         * lib/search.in.h: Likewise.
16071         * lib/signal.in.h: Likewise.
16072         * lib/spawn.in.h: Likewise.
16073         * lib/stdarg.in.h: Likewise.
16074         * lib/stddef.in.h: Likewise.
16075         * lib/stdint.in.h: Likewise.
16076         * lib/stdio.in.h: Likewise.
16077         * lib/stdlib.in.h: Likewise.
16078         * lib/string.in.h: Likewise.
16079         * lib/strings.in.h: Likewise.
16080         * lib/sys_file.in.h: Likewise.
16081         * lib/sys_ioctl.in.h: Likewise.
16082         * lib/sys_select.in.h: Likewise.
16083         * lib/sys_socket.in.h: Likewise.
16084         * lib/sys_stat.in.h: Likewise.
16085         * lib/sys_time.in.h: Likewise.
16086         * lib/sys_times.in.h: Likewise.
16087         * lib/sys_utsname.in.h: Likewise.
16088         * lib/sys_wait.in.h: Likewise.
16089         * lib/sysexits.in.h: Likewise.
16090         * lib/termios.in.h: Likewise.
16091         * lib/time.in.h: Likewise.
16092         * lib/unistd.in.h: Likewise.
16093         * lib/wchar.in.h: Likewise.
16094         * lib/wctype.in.h: Likewise.
16095         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
16096         * modules/ctype (Makefile.am): Likewise.
16097         * modules/dirent (Makefile.am): Likewise.
16098         * modules/errno (Makefile.am): Likewise.
16099         * modules/fcntl-h (Makefile.am): Likewise.
16100         * modules/float (Makefile.am): Likewise.
16101         * modules/getopt-posix (Makefile.am): Likewise.
16102         * modules/iconv-h (Makefile.am): Likewise.
16103         * modules/inttypes (Makefile.am): Likewise.
16104         * modules/langinfo (Makefile.am): Likewise.
16105         * modules/locale (Makefile.am): Likewise.
16106         * modules/math (Makefile.am): Likewise.
16107         * modules/netdb (Makefile.am): Likewise.
16108         * modules/netinet_in (Makefile.am): Likewise.
16109         * modules/poll-h (Makefile.am): Likewise.
16110         * modules/pthread (Makefile.am): Likewise.
16111         * modules/pty (Makefile.am): Likewise.
16112         * modules/sched (Makefile.am): Likewise.
16113         * modules/search (Makefile.am): Likewise.
16114         * modules/selinux-h (Makefile.am): Likewise.
16115         * modules/signal (Makefile.am): Likewise.
16116         * modules/spawn (Makefile.am): Likewise.
16117         * modules/stdarg (Makefile.am): Likewise.
16118         * modules/stddef (Makefile.am): Likewise.
16119         * modules/stdint (Makefile.am): Likewise.
16120         * modules/stdio (Makefile.am): Likewise.
16121         * modules/stdlib (Makefile.am): Likewise.
16122         * modules/string (Makefile.am): Likewise.
16123         * modules/strings (Makefile.am): Likewise.
16124         * modules/sys_file (Makefile.am): Likewise.
16125         * modules/sys_ioctl (Makefile.am): Likewise.
16126         * modules/sys_select (Makefile.am): Likewise.
16127         * modules/sys_socket (Makefile.am): Likewise.
16128         * modules/sys_stat (Makefile.am): Likewise.
16129         * modules/sys_time (Makefile.am): Likewise.
16130         * modules/sys_times (Makefile.am): Likewise.
16131         * modules/sys_utsname (Makefile.am): Likewise.
16132         * modules/sys_wait (Makefile.am): Likewise.
16133         * modules/sysexits (Makefile.am): Likewise.
16134         * modules/termios (Makefile.am): Likewise.
16135         * modules/time (Makefile.am): Likewise.
16136         * modules/unistd (Makefile.am): Likewise.
16137         * modules/wchar (Makefile.am): Likewise.
16138         * modules/wctype (Makefile.am): Likewise.
16139
16140 2010-10-04  Bruno Haible  <bruno@clisp.org>
16141
16142         read-file tests: Avoid a test failure on NonStop Kernel.
16143         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
16144         a regular file.
16145         Reported by Joachim Schmitz <schmitz@hp.com>.
16146
16147 2010-10-03  Bruno Haible  <bruno@clisp.org>
16148
16149         gnulib-tool: Fixes for --create-testdir with --libtool.
16150         * gnulib-tool (func_get_automake_snippet): Don't augment
16151         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
16152         an executable.
16153         (func_create_testdir): Handle module 'alloca' like func_import.
16154         Reported by Bruce Korb <bruce.korb@gmail.com>.
16155
16156 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
16157
16158         Avoid some lines longer than 80 characters.
16159         * lib/stdint.in.h: Break long comment lines.
16160         * lib/math.in.h: Likewise.
16161         (_GL_NUM_UINT_WORDS): New macro, for readability.
16162         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
16163         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
16164         * lib/stdlib.in.h: Likewise.
16165         * lib/spawn.in.h: Likewise.
16166         * lib/sys_socket.in.h: Update an URL.
16167         * lib/sys_stat.in.h: Break long line.
16168
16169 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
16170
16171         Improve pmccabe2html.
16172         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
16173         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
16174         when the sources change. Remove the line in the HTML about "Used
16175         ranges" (which implied that there might be other unused ranges),
16176         rename "Resume" to "Summary" (easier to understand for more users).
16177         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
16178         styles, and some unnecessary blank lines.
16179
16180 2010-10-03  Bruno Haible  <bruno@clisp.org>
16181             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
16182
16183         acl: Add support for ACLs on NonStop Kernel.
16184         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
16185         Check whether the function aclsort() exists.
16186         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
16187         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
16188         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16189         (acl_nontrivial [HAVE_ACLSORT]: New function.
16190         (file_has_acl): Implement for NonStop Kernel.
16191         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16192         (qset_acl): Implement for NonStop Kernel.
16193         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
16194         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
16195         (main): Implement for NonStop Kernel.
16196         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
16197         Kernel. Handle this flavor.
16198         * tests/test-set-mode-acl.sh: Likewise.
16199         * tests/test-copy-acl.sh: Likewise.
16200         * tests/test-copy-file.sh: Likewise.
16201
16202 2010-10-03  Bruno Haible  <bruno@clisp.org>
16203
16204         Info about ACLs on NonStop Kernel.
16205         * doc/acl-resources.txt: Add info about NonStop Kernel.
16206         References by Joachim Schmitz <schmitz@hp.com>.
16207
16208 2010-10-02  Bruno Haible  <bruno@clisp.org>
16209
16210         Define missing EDQUOT on NonStop Kernel.
16211         * lib/errno.in.h (EDQUOT): Assign a value if missing.
16212         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
16213         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
16214         missing.
16215         * doc/posix-headers/errno.texi: Mention the NSK bug.
16216         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
16217         Reported by Joachim Schmitz <schmitz@hp.com>.
16218
16219 2010-10-02  Bruno Haible  <bruno@clisp.org>
16220
16221         Update doc for POSIX:2008.
16222         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
16223         Update URL of POSIX specification.
16224
16225 2010-10-02  Bruno Haible  <bruno@clisp.org>
16226
16227         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
16228         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
16229         from gnulib, not from Automake.
16230
16231 2010-10-02  Bruno Haible  <bruno@clisp.org>
16232
16233         New module 'system-posix'.
16234         * modules/system-posix: New file.
16235         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
16236         module is present.
16237         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
16238         GNULIB_SYSTEM_POSIX.
16239         * modules/stdlib (Depends-on): Remove sys_wait.
16240         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
16241         * doc/posix-functions/system.texi: Mention the new module.
16242         * doc/posix-headers/stdlib.texi: Likewise.
16243         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
16244         define test_sys_wait_macros to a no-op.
16245         Reported by Sam Steingold <sds@gnu.org>.
16246
16247 2010-09-30  Bruno Haible  <bruno@clisp.org>
16248
16249         More renaming from 'getdate' to 'get_date'.
16250         * doc/get_date.texi: Renamed from doc/getdate.texi.
16251         * modules/get_date (Files): Update.
16252         * MODULES.html.sh (Date and time <time.h>): Update.
16253         * DEPENDENCIES: Update.
16254         * gnulib-tool: Update comment.
16255         * m4/bison.m4 (gl_BISON): Likewise.
16256         * m4/get_date.m4 (gl_GET_DATE): Likewise.
16257
16258 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
16259
16260         bootstrap: support ACLOCAL_FLAGS during aclocal
16261         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
16262         can add additional -I dir for third-party .m4 files.
16263
16264 2010-09-30  Eric Blake  <eblake@redhat.com>
16265
16266         bootstrap: use glibtoolize on MacOS
16267         * build-aux/bootstrap (check_versions): Convert libtool into
16268         libtoolize.
16269         (tool search): Move libtool check earlier, and look for
16270         glibtoolize for MacOS.
16271         (gnulib_tool_options): Auto-add --libtool when appropriate.
16272         Reported by Justin Clift.
16273
16274         poll: fix typo that broke test on MacOS
16275         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
16276         Reported by Justin Clift.
16277
16278         getdate: rename to get_date
16279         Note: getdate.h is not renamed, to minimize client impact.
16280         * modules/getdate: Mark obsolete.  Move old contents...
16281         * modules/get_date: ...to new module name.
16282         * modules/getdate-tests: Move...
16283         * modules/get_date-tests: ...here.
16284         * m4/getdate.m4: Move...
16285         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
16286         * lib/getdate.y: Move...
16287         * lib/get_date.y: ...here.
16288         * tests/test-getdate.c: Move...
16289         * tests/test-get_date.c: ...here.
16290         * doc/posix-functions/getdate.texi (getdate): Update name.
16291         * NEWS: Mention the change.
16292
16293 2010-09-29  Bruno Haible  <bruno@clisp.org>
16294
16295         Separate the module 'waitpid' from the module 'sys_wait'.
16296         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
16297         present.
16298         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
16299         gl_MODULE_INDICATOR_FOR_TESTS.
16300         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
16301         * modules/sys_wait (Depends-on): Remove waitpid.
16302         (Makefile.am): Substitute GNULIB_WAITPID.
16303         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
16304         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
16305         signature only if the 'waitpid' module is present.
16306         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
16307         * NEWS: Mention the change.
16308         * modules/grantpt (Depends-on): Add waitpid.
16309         * modules/wait-process (Depends-on): Likewise.
16310
16311 2010-09-29  Bruno Haible  <bruno@clisp.org>
16312
16313         More tests for module 'sys_wait'.
16314         * modules/sys_wait-c++-tests: New file.
16315         * tests/test-sys_wait-c++.cc: New file.
16316         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
16317         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
16318
16319 2010-09-29  Bruno Haible  <bruno@clisp.org>
16320
16321         New module 'waitpid'.
16322         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
16323         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
16324         Don't include <process.h>.
16325         (waitpid): Declare only, using modern idiom.
16326         * m4/waitpid.m4: New file.
16327         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
16328         * modules/waitpid: New file.
16329         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
16330         (Makefile.am): Update.
16331         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
16332
16333 2010-09-28  Bruno Haible  <bruno@clisp.org>
16334
16335         poll: Assume ANSI C.
16336         * lib/poll.c (poll): Use an ANSI C declaration.
16337
16338 2010-09-28  Bruno Haible  <bruno@clisp.org>
16339
16340         poll-h: Create poll.h on all platforms.
16341         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
16342         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
16343         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
16344         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
16345         (gl_REPLACE_POLL_H): Don't set POLL_H.
16346         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
16347         * modules/poll-h (Depends-on): Add include_next.
16348         (Makefile.am): Create poll.h unconditionally. Substitute also
16349         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
16350
16351 2010-09-28  Bruno Haible  <bruno@clisp.org>
16352
16353         Tests for module 'poll-h'.
16354         * modules/poll-h-c++-tests: New file.
16355         * tests/test-poll-h-c++.cc: New file.
16356
16357         Tests for module 'poll-h'.
16358         * modules/poll-h-tests: New file.
16359         * tests/test-poll-h.c: New file.
16360
16361 2010-09-28  Bruno Haible  <bruno@clisp.org>
16362
16363         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
16364         * modules/poll-h (Depends-on): Add 'extensions'.
16365
16366 2010-09-28  Bruno Haible  <bruno@clisp.org>
16367
16368         New module 'poll-h'.
16369         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
16370         (poll): Use modern idiom.
16371         * modules/poll-h: New file.
16372         * modules/poll (Files): Remove lib/poll.in.h.
16373         (Depends-on): Add poll-h.
16374         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
16375         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
16376         * m4/poll_h.m4: New file.
16377         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
16378         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
16379         and invoke gl_REPLACE_POLL_H.
16380         * lib/poll.c: Use common idiom.
16381         * tests/test-poll.c: Likewise.
16382         * doc/posix-headers/poll.texi: Mention the poll-h module.
16383         Suggested by Eric Blake.
16384
16385 2010-09-26  Bruno Haible  <bruno@clisp.org>
16386
16387         sys_wait: Implement WSTOPSIG.
16388         * lib/sys_wait.in.h (WSTOPSIG): New macro.
16389         Reported by Simon Josefsson.
16390
16391 2010-09-26  Simon Josefsson  <simon@josefsson.org>
16392
16393         stdlib, sys_wait: Avoid compilation error on mingw.
16394         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
16395
16396 2010-09-26  Bruno Haible  <bruno@clisp.org>
16397
16398         stdlib tests: Avoid code duplication.
16399         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
16400         * modules/sys_wait-tests (Files): Likewise.
16401         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
16402         * tests/test-stdlib.c: Include test-sys_wait.h.
16403         (main): Invoke test_sys_wait_macros.
16404         * tests/test-sys_wait.c: Include test-sys_wait.h.
16405         (main): Invoke test_sys_wait_macros.
16406
16407 2010-09-25  Simon Josefsson  <simon@josefsson.org>
16408
16409         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
16410         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
16411         sure Windows sockets are working before calling getaddrinfo.
16412         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
16413         * doc/gnulib.texi (Windows sockets): Fix typo.
16414
16415 2010-09-25  Bruno Haible  <bruno@clisp.org>
16416
16417         Tests for module 'regex-quote'.
16418         * modules/regex-quote-tests: New file.
16419         * tests/test-regex-quote.c: New file.
16420
16421         New module 'regex-quote'.
16422         * lib/regex-quote.h: New file.
16423         * lib/regex-quote.c: New file.
16424         * modules/regex-quote: New file.
16425         Suggested by Reuben Thomas <rrt@sc3d.org>.
16426
16427 2010-09-24  Bruno Haible  <bruno@clisp.org>
16428
16429         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
16430         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
16431
16432 2010-09-23  Bruno Haible  <bruno@clisp.org>
16433
16434         setenv: Relax license.
16435         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
16436         Blake.
16437         Requested by Eric Blake.
16438
16439 2010-09-22  Bruno Haible  <bruno@clisp.org>
16440
16441         termios: Relax license.
16442         * modules/termios (License): Change to LGPLv2+.
16443         Requested by Eric Blake.
16444
16445 2010-09-22  Bruno Haible  <bruno@clisp.org>
16446
16447         threadlib: Allow the package to change the default to 'no'.
16448         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
16449         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
16450         Reported by Paul Eggert.
16451
16452 2010-09-22  Pádraig Brady  <P@draigbrady.com>
16453             Bruno Haible  <bruno@clisp.org>
16454
16455         Fix endless loop in mbmemcasecoll.
16456         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
16457         byte.
16458         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
16459
16460 2010-09-22  Bruno Haible  <bruno@clisp.org>
16461
16462         Tests for module 'memcoll'.
16463         * modules/memcoll-tests: New file.
16464         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
16465
16466         memcoll, xmemcoll: Clarify size vs. length.
16467         * modules/memcoll.c (memcoll0): Clarify specification.
16468         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
16469         passed to collate_error.
16470
16471 2010-09-22  Bruno Haible  <bruno@clisp.org>
16472
16473         Tests for module 'memcasecmp'.
16474         * modules/memcasecmp-tests: New file.
16475         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
16476
16477 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
16478
16479         * lib/pthread.in.h: Add split double-inclusion guard, and include
16480         system <pthread.h> if there is one.  Use @@-style as in other
16481         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
16482         pthread.h doesn't.
16483         (pthread_mutexattr_destroy, pthread_mutexattr_init):
16484         (pthread_mutexattr_settype, pthread_mutex_trylock):
16485         New static inline functions, if there's no system <pthread.h>.
16486         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
16487         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
16488         Approximate with mutexes if the system lacks spinlocks, as in
16489         MacOS.
16490         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
16491         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
16492         @@-style.  Check for spinlocks separately.
16493         (gl_PTHREAD_DEFAULTS): New macro.
16494         * modules/pthread: Redo to use a more typical style for in.h files.
16495
16496 2010-09-21  Eric Blake  <eblake@redhat.com>
16497
16498         net_if: enhance tests
16499         * tests/test-net_if.c (main): Move signature checks earlier.
16500         Print failures to stderr.
16501         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
16502         Document the bug that we do not yet fix.
16503
16504 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
16505
16506         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
16507         about gnulib, not GSS.
16508
16509 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
16510
16511         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
16512         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
16513         for Emacs.
16514         * build-aux/pmccabe2html: Make Makefile.am example code more
16515         cut-and-paste friendly.
16516
16517 2010-09-21  Simon Josefsson  <simon@josefsson.org>
16518
16519         * tests/test-net_if.c: New file.
16520         * modules/net_if-tests: New file.
16521
16522 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
16523
16524         pthread: add pthread_spin_destroy
16525         * lib/pthread.in.h (pthread_spin_destroy): New function.
16526
16527 2010-09-19  Bruno Haible  <bruno@clisp.org>
16528
16529         gnulib-tool: Fix --help output.
16530         * gnulib-tool (func_usage): Fix help message.
16531         Reported by Reuben Thomas <rrt@sc3d.org>.
16532
16533 2010-09-18  Jim Meyering  <meyering@redhat.com>
16534
16535         maint.mk: avoid unexpanded \n in two diagnostics
16536         * top/maint.mk (sc_prohibit_always_true_header_tests):
16537         Don't use a literal \n in a halt=... assignment.  It would not be
16538         expanded, and the two \n bytes would appear in the diagnostic output
16539         rather than the desired newline.  Use halt=$$(printf ... instead.
16540         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
16541
16542 2010-09-18  Bruno Haible  <bruno@clisp.org>
16543
16544         netinet_in: Doc tweak.
16545         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
16546         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16547
16548 2010-09-18  Jim Meyering  <meyering@redhat.com>
16549
16550         init.sh: correct an outdated comment
16551         * tests/init.sh (create_exe_shims_):  s/function/alias/
16552
16553         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
16554         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
16555         a file named "*.exe" is removed between the glob expansion and the
16556         processing of that oddly named file.
16557
16558 2010-09-17  Eric Blake  <eblake@redhat.com>
16559
16560         mirbsd: add some more support
16561         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
16562         in BSD family.
16563         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
16564         devices as OpenBSD.
16565         * m4/host-os.m4 (mirbsd): Add MirBSD.
16566
16567         tests: fix unportable assumption on sys/wait.h
16568         * tests/test-sys_wait.c (main): Relax test.
16569         * tests/test-stdlib.c (main): Likewise.
16570
16571         init.sh: accomodate directory with no .exes
16572         * tests/init.sh: Accomodate directory containing only scripts.
16573
16574         tests: avoid compiler warning
16575         * tests/test-stdlib.c (main): Use the variable.
16576
16577         fdutimens, fdutimensat: update signature, again
16578         * lib/utimens.h (gl_futimens): Delete, and move signature...
16579         (fdutimens): ...here.
16580         (fdutimensat): Rearrange signature.
16581         (lutimensat): Rename variable for clarity.
16582         * lib/fdutimensat.c (fdutimensat): Update signature.
16583         * lib/utimens.c (fdutimens): Likewise.
16584         (gl_futimens): Delete.
16585         (utimens, lutimens): Update callers.
16586         * lib/futimens.c (futimens): Likewise.
16587         * tests/test-fdutimensat.c: Likewise.
16588         * tests/test-utimens.c: Likewise.
16589         * tests/test-futimens.h: Update comment.
16590         * NEWS: Mention this.
16591         Suggested by Paul Eggert.
16592
16593 2010-09-17  Bruno Haible  <bruno@clisp.org>
16594
16595         Take over the maintenance of some older macros from Autoconf.
16596         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
16597         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
16598         GNU Autoconf.
16599         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
16600         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
16601
16602 2010-09-17  Eric Blake  <eblake@redhat.com>
16603
16604         fdutimensat: drop atflag validation
16605         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
16606         with valid fd, to close a race scenario where futimens is
16607         unsupported and FILE was replaced by a symlink.
16608         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
16609         accordingly.
16610         Suggested by Paul Eggert.
16611
16612 2010-09-16  Bruno Haible  <bruno@clisp.org>
16613
16614         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
16615         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
16616
16617 2010-09-16  Bruno Haible  <bruno@clisp.org>
16618
16619         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
16620         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
16621         login_tty exists.
16622         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16623
16624 2010-09-16  Bruno Haible  <bruno@clisp.org>
16625
16626         login_tty: Make the replacement code work on BSD systems.
16627         * lib/login_tty.c: Include <sys/ioctl.h>.
16628         (login_tty): Use ioctl TIOCSCTTY when available.
16629         * modules/login_tty (Depends-on): Add sys_ioctl.
16630         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16631
16632 2010-09-16  Bruno Haible  <bruno@clisp.org>
16633
16634         login_tty: Stricter unit test.
16635         * modules/login_tty-tests (Depends-on): Add tcgetsid.
16636         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
16637         and tcgetsid() after login_tty.
16638         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16639
16640 2010-09-16  Bruno Haible  <bruno@clisp.org>
16641
16642         New module 'tcgetsid'.
16643         * lib/tcgetsid.c: New file.
16644         * m4/tcgetsid.m4: New file.
16645         * modules/tcgetsid: New file.
16646         * modules/termios (Depends-on): Add c++defs, warn-on-use.
16647         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
16648         GNULIB_TCGETSID, HAVE_TCGETSID.
16649         * lib/termios.in.h: Include <sys/types.h>.
16650         (tcgetsid): New declaration.
16651         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
16652         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
16653         * doc/posix-functions/tcgetsid.texi: Mention the new module.
16654         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
16655
16656 2010-09-16  Bruno Haible  <bruno@clisp.org>
16657
16658         Tests for module 'termios'.
16659         * modules/termios-c++-tests: New file.
16660         * modules/termios-tests: New file.
16661         * tests/test-termios-c++.cc: New file.
16662         * tests/test-termios.c: New file.
16663
16664         New module 'termios'.
16665         * modules/termios: New file.
16666         * lib/termios.in.h: New file.
16667         * m4/termios_h.m4: New file.
16668         * doc/posix-headers/termios.texi: Mention the new module.
16669
16670 2010-09-16  Eric Blake  <eblake@redhat.com>
16671
16672         fdutimensat: add an atflag parameter
16673         * lib/fdutimensat.c (fdutimensat): Add new parameter.
16674         * lib/utimens.h (fdutimensat): Update prototype.
16675         * tests/test-fdutimensat.c: Adjust test to match.
16676         * NEWS: Document the change.
16677         Suggested by Paul Eggert.
16678
16679 2010-09-16  Bruno Haible  <bruno@clisp.org>
16680
16681         Fix typos in comments.
16682         * lib/striconveh.h: Fix typo in comment.
16683         * lib/login_tty.c (login_tty): Likewise.
16684
16685 2010-09-15  Bruno Haible  <bruno@clisp.org>
16686
16687         stdlib: clarify MirBSD WEXITSTATUS bug
16688         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
16689         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16690
16691 2010-09-15  Eric Blake  <eblake@redhat.com>
16692
16693         stdlib: work around MirBSD WEXITSTATUS bug
16694         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
16695         * modules/stdlib (Depends-on): Add sys_wait.
16696         * tests/test-sys_wait.c (main): Enhance test.
16697         * tests/test-stdlib.c (main): Likewise.
16698         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
16699
16700         docs: mention MacOS issue with WEXITSTATUS(constant)
16701         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
16702         issue.
16703         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
16704
16705         strnlen: add tests
16706         * modules/strnlen-tests: New file.
16707         * tests/test-strnlen.c: Likewise.
16708
16709 2010-09-14  Bruno Haible  <bruno@clisp.org>
16710
16711         unistr/base: Avoid link errors when module 'libunistring' is also used.
16712         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
16713         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
16714         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
16715         Declare also when HAVE_LIBUNISTRING is set.
16716         Reported by Pádraig Brady <P@draigbrady.com>.
16717
16718 2010-09-14  Eric Blake  <eblake@redhat.com>
16719
16720         test-rawmemchr: make more robust
16721         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
16722         (Depends-on, configure.ac): Add needed prerequisites to use it.
16723         * modules/memchr-tests (Files, Depends-on, configure.ac):
16724         Likewise, to avoid implicit reliance on memchr module prereqs.
16725         * tests/test-memchr.c (main): Ensure proper masking.
16726         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
16727         reads.
16728
16729         memchr: detect glibc Alpha bug
16730         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
16731         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
16732         Alpha.
16733         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
16734         * tests/test-memchr.c (main): Enhance test.
16735         Reported by Nelson H. F. Beebe.
16736
16737 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16738
16739         fts, getcwd, glob: audit for dirfd returning -1
16740         * lib/fts.c (opendir): Remove #define; no longer used.
16741         (opendirat): New arg PDIR_FD.  All callers changed.
16742         (fts_build, _opendir2): Use new opendirat to avoid the need for
16743         dirfd, or for checking whether dirfd returns a negative value.
16744         Don't use opendir; always use openat followed by fdopendir.
16745         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
16746         it.
16747         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
16748         returns -1 here.
16749         * modules/fts (Depends-on): Remove dirfd.
16750         * modules/getcwd (Depends-on): Likewise.
16751
16752 2010-09-13  Eric Blake  <eblake@redhat.com>
16753
16754         float: fix broken MirBSD header
16755         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
16756         * doc/posix-headers/float.texi (float.h): Document it.
16757
16758 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16759
16760         fts: use O_NOFOLLOW to avoid race condition when opening a directory
16761         * lib/fts.c (opendirat): New arg extra_flags.
16762         (__opendir2): Use it to avoid following symlinks when opening
16763         a directory, if symlinks are not supposed to be followed.  See
16764         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
16765
16766         fdopendir: preserve argument fd before returning
16767         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
16768         (fdopendir_with_dup, fd_clone_opendir): New static functions.
16769         (fdopendir): Use them, arranging for FD to be open to the same
16770         directory that it was when it started.  (It might be temporarily
16771         closed while fdopendir is running, so this not thread- or
16772         signal-safe.)  Be careful to do the right thing even when file
16773         descriptors are scarce and dup fails with errno == EMFILE.  See
16774         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
16775
16776 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
16777
16778         regex: Pass the system regex if its only problem is 32-bit regoff_t.
16779         * NEWS: Document change.
16780         * m4/regex.m4: Disable test for regoff_t size.
16781
16782 2010-09-13  Jim Meyering  <meyering@redhat.com>
16783
16784         fts: don't operate on an invalid file descriptor after failed dup
16785         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
16786         negative file descriptor.
16787
16788 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
16789
16790         savedir: add streamsavedir, deprecate fdsavedir
16791         * NEWS: Mention deprecation of fdsavedir.
16792         * lib/savedir.c (streamsavedir): New extern function, whose name
16793         ends in "savedir" to be consistent with the others.  This differs
16794         from savedirstream in that it doesn't close its argument.  The
16795         next version of GNU tar will use this instead of fdsavedir, to
16796         avoid some race conditions and conserve file descriptors.
16797         (savedirstream): Reimplement as a wrapper around streamsavedir.
16798         (fdsavedir): Add a comment deprecating this function.  As far as
16799         I know, only GNU tar used it, and GNU tar doesn't need it any more.
16800         * lib/savedir.h (streamsavedir): New decl.
16801         (fdsavedir): Add a comment deprecating this.
16802
16803 2010-09-10  Bruno Haible  <bruno@clisp.org>
16804
16805         langinfo: Fix last commit.
16806         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
16807         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
16808         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16809
16810 2010-09-10  Bruno Haible  <bruno@clisp.org>
16811
16812         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
16813         * lib/progreloc.c (O_EXEC): Define fallback.
16814
16815 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
16816
16817         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
16818         * NEWS: Document recent changes to fcntl-h.
16819         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
16820         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
16821         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
16822         Similarly for O_SEARCH; this last was already true, but not documented.
16823         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
16824         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
16825         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
16826         Likewise.
16827         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
16828         is zero, not whether it is defined.
16829         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
16830         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
16831         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
16832
16833 2010-09-10  Bruno Haible  <bruno@clisp.org>
16834
16835         langinfo, nl_langinfo: Fix for IRIX 5.3.
16836         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
16837         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
16838         HAVE_LANGINFO_YESEXPR.
16839         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
16840         HAVE_LANGINFO_YESEXPR.
16841         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
16842         HAVE_LANGINFO_T_FMT_AMPM is 0.
16843         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
16844         HAVE_LANGINFO_YESEXPR is 0.
16845         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
16846         NOEXPR.
16847         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
16848         * doc/posix-functions/nl_langinfo.texi: Likewise.
16849         Reported by Eric Blake.
16850
16851 2010-09-10  Bruno Haible  <bruno@clisp.org>
16852
16853         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
16854         * doc/glibc-functions/login_tty.texi: Mention the include file problem
16855         on FreeBSD 8.0 and OpenBSD 4.6.
16856         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
16857         * m4/pty_h.m4 (gl_PTY_H): Likewise.
16858         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
16859         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
16860         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
16861         ac_includes_default.
16862         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16863
16864 2010-09-09  Eric Blake  <eblake@redhat.com>
16865
16866         strsignal: work around NetBSD bug
16867         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
16868         * lib/string.in.h (includes): Likewise.
16869         * doc/posix-functions/strsignal.texi (strsignal): Document the
16870         bug.
16871         Reported by Nelson H. F. Beebe.
16872
16873         gnulib-tool: work with NetBSD /bin/sh
16874         * gnulib-tool (func_cache_var, func_cache_lookup_module)
16875         (func_get_description, func_get_comment, func_get_status)
16876         (func_get_notice, func_get_applicability, func_get_filelist)
16877         (func_get_dependencies, func_get_autoconf_early_snippet)
16878         (func_get_autoconf_snippet, func_get_automake_snippet)
16879         (func_get_include_directive, func_get_link_directive)
16880         (func_get_license, func_get_maintainer, func_import): Avoid
16881         shell syntax errors from parsing syntax extensions.
16882
16883 2010-09-09  Bruno Haible  <bruno@clisp.org>
16884
16885         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
16886         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
16887         a reliable way to determine whether the 'alias' command works.
16888
16889 2010-09-08  Jim Meyering  <meyering@redhat.com>
16890
16891         init.sh: penalize a set-x-impaired shell; don't disqualify it
16892         * tests/init.sh: Too many shells corrupt application stderr when
16893         you set -x, so we can't afford to disqualify them, since at least
16894         on Irix-6.5, that would disqualify all bourne shells.
16895         Instead, use a two-pass approach.
16896         On the first pass, try to find a shell that meets the stricter
16897         condition that set -x does not corrupt stderr.
16898         If no shell meets the stricter condition, retest each candidate
16899         shell, but without that extra condition.  Finally, when
16900         VERBOSE=yes is requested and set -x might cause trouble, simply
16901         issue a warning and refrain from enabling debug output.
16902
16903 2010-09-08  Eric Blake  <eblake@redhat.com>
16904
16905         unsetenv: fix OpenBSD bug
16906         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
16907         * doc/posix-functions/unsetenv.texi (unsetenv): Update
16908         documentation.
16909         Reported by Jim Meyering.
16910
16911         strtod: work around IRIX 6.5 bug
16912         * lib/strtod.c (strtod): Reparse number on shorter string if
16913         exponent parse was invalid.
16914         * tests/test-strtod.c (main): Add check for "0x1p 2".
16915         Reported by Tom G. Christensen.
16916
16917         getopt: optimize previous patch
16918         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
16919         empty variable.  Speed up awk script.
16920         Reported by Paolo Bonzini.
16921
16922 2010-09-08  Jim Meyering  <meyering@redhat.com>
16923
16924         test.sh: disqualify shells for which set -x corrupts stderr
16925         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
16926         and OpenBSD 4.7.  They make it so with "set -x", environment settings
16927         appear in stderr output.  For example, this command:
16928             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
16929         prints "P=1" on those two systems:
16930
16931 2010-09-08  Bruno Haible  <bruno@clisp.org>
16932
16933         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
16934         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
16935         commands, because some shells ignore redirections when there is an
16936         error in the command lookup.
16937         Reported by Eric Blake.
16938
16939 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
16940
16941         * lib/regex.h: Fix a mention of `regex_compile' (should be
16942         `re_compile_pattern').
16943         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
16944         (re_set_registers): Correct name of parameter in comment.
16945
16946         * doc/regex.texi: Add documentation for missing syntax flags.
16947         Remove commented-out documentation of defunct syntax option
16948         RE_NO_EMPTY_ALTS.
16949         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
16950         Add documentation of re_set_registers.
16951         Document trick to re-use a pattern buffer by setting fastmap manually.
16952         Update documentation of struct re_pattern_buffer per public members.
16953         Uncomment documentation of equivalence class operators and
16954         collating symbol operators, since they are now implemented,
16955         Explain leftmost-longest matching in relation to alternatives.
16956         Tidy documentation of substring matching.
16957         Remove POSIX documentation, which is done better in
16958         glibc, and refer the reader there. Keep BSD API documentation, as
16959         that is not readily available elsewhere.
16960
16961 2010-09-07  Eric Blake  <eblake@redhat.com>
16962
16963         getopt: handle POSIXLY_CORRECT set but not exported
16964         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
16965         export state of POSIXLY_CORRECT, due to bash set -o posix.
16966         Reported by Dustin J. Mitchell.
16967
16968 2010-09-05  Bruno Haible  <bruno@clisp.org>
16969
16970         gnulib-tool: Highlight the changed options.
16971         * gnulib-tool (func_usage): Display the --import, --add-import,
16972         --remove-import explanations in bold font.
16973
16974 2010-09-06  Karl Berry  <karl@gnu.org>
16975
16976         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
16977
16978 2010-09-05  Bruno Haible  <bruno@clisp.org>
16979
16980         uniwidth/width: Update comment.
16981         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
16982         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
16983
16984 2010-09-05  Bruno Haible  <bruno@clisp.org>
16985
16986         isinf, isnan: Relax license.
16987         * modules/isinf (License): Change from GPL to LGPL, with consent from
16988         Ben Pfaff.
16989         * modules/isnan (License): Likewise.
16990         Requested by Ludovic Courtès.
16991
16992 2010-09-04  Bruno Haible  <bruno@clisp.org>
16993
16994         gnulib-tool: Help migration from --import to --add-import or --update.
16995         * gnulib-tool: Emit a verbose error message when --import is used
16996         without any module name.
16997
16998 2010-09-04  Bruno Haible  <bruno@clisp.org>
16999
17000         Update doc about gnulib-tool.
17001         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
17002         'gnulib-tool --update' in more detail.
17003         Reported by Eric Blake.
17004
17005 2010-09-04  Bruno Haible  <bruno@clisp.org>
17006
17007         gnulib-tool: Change --import. New options --add/remove-import.
17008         * gnulib-tool: New options --add-import, --remove-import.
17009         (func_usage): Document them.
17010         (have_associative): Define always.
17011         (func_import): In import mode, don't merge the specified settings with
17012         the cached settings. Implement remove-import mode.
17013         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
17014         Explain when to use them versus --import.
17015         (Simple update): Use --add-import instead of --import.
17016         * NEWS: Mention the change.
17017
17018 2010-09-04  Bruno Haible  <bruno@clisp.org>
17019
17020         * doc/gnulib-tool.texi (Initial import): Update paragraph about
17021         separate gnulib.mk.
17022
17023 2010-09-04  Bruno Haible  <bruno@clisp.org>
17024
17025         gnulib-tool: Don't talk about CVS any more.
17026         * gnulib-tool (func_usage, func_import): Write "version control"
17027         instead of CVS.
17028
17029 2010-09-04  Jim Meyering  <meyering@redhat.com>
17030
17031         maint.mk: avoid obscure sc_copyright_check failure in coreutils
17032         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
17033         false positives (whose names may be ill-chosen) when searching
17034         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
17035         would cause a false-positive.
17036
17037         avoid coreutils "make distcheck" failure
17038         Coreutils tests with an absolute build directory name that contains
17039         a space.  Not quoting this directory name caused a failure.
17040         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
17041         * tests/test-vc-list-files-cvs.sh: Likewise.
17042
17043 2010-09-04  Bruno Haible  <bruno@clisp.org>
17044
17045         gnulib-tool: Avoid error when run in a package without Makefile.am.
17046         * gnulib-tool: When collecting the m4dirs in a package that does not
17047         have a Makefile.am, eliminate those directories that contain no
17048         gnulib-cache.m4. Fix expression that counts these directories.
17049
17050 2010-09-04  Bruno Haible  <bruno@clisp.org>
17051
17052         update-copyright test: Improve output when perl is missing or too old.
17053         * tests/test-update-copyright.sh: Move test of Perl version down after
17054         the test whether Perl exists. Provide an explanation relating Perl's
17055         error message to Automake's SKIP: message.
17056
17057 2010-09-04  Bruno Haible  <bruno@clisp.org>
17058
17059         Don't augment PATH in TESTS_ENVIRONMENT.
17060         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
17061         set abs_aux_dir instead of augmenting PATH.
17062         * modules/vc-list-files-tests (Makefile.am): Likewise.
17063         * tests/test-update-copyright.sh: Augment PATH here.
17064         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
17065         path_prepend_.
17066         * tests/test-vc-list-files-git.sh: Likewise.
17067
17068 2010-09-04  Jim Meyering  <meyering@redhat.com>
17069
17070         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
17071         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
17072
17073 2010-09-04  Bruno Haible  <bruno@clisp.org>
17074
17075         strdup: Fix compilation error in C++ mode.
17076         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
17077         the macro.
17078
17079 2010-09-04  Bruno Haible  <bruno@clisp.org>
17080
17081         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
17082         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
17083         macro into a function.
17084         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
17085
17086 2010-09-04  Bruno Haible  <bruno@clisp.org>
17087
17088         Set PATH_SEPARATOR the same way autoconf does.
17089         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
17090         the value of PATH_SEPARATOR the same way autoconf-generated configure
17091         scripts do.
17092         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
17093         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
17094
17095 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
17096
17097         Set PATH_SEPARATOR the same way autoconf does.
17098         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
17099         the same way autoconf-generated configure scripts do.
17100         * posix-modules: Likewise.
17101
17102 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
17103
17104         hash: fix safe_hasher const typo
17105         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
17106         const; otherwise, there is a type error later.
17107
17108 2010-09-02  Jim Meyering  <meyering@redhat.com>
17109
17110         test-update-copyright.sh: require perl 5.8.0
17111         * tests/test-update-copyright.sh: Require 5.8.0,
17112         which Tom G. Christensen has confirmed is adequate,
17113         while 5.6.1 is not.
17114
17115 2010-09-02  Eric Blake  <eblake@redhat.com>
17116
17117         tests: init.sh improvements for re-exec'ing with zsh
17118         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
17119         -vx through shell re-exec.
17120         Reported by Tom G. Christensen.
17121
17122         wctype: fix typo in previous commit
17123         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
17124         Reported by Ludovic Courtès.
17125
17126 2010-09-02  Jim Meyering  <meyering@redhat.com>
17127
17128         test-update-copyright.sh: skip test if Perl is too old
17129         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
17130         Reported by Tom G. Christensen.
17131
17132 2010-09-02  Bruno Haible  <bruno@clisp.org>
17133
17134         wctype: Avoid compilation error on IRIX 6.5.30.
17135         * lib/wctype.in.h (iswblank): Declare with a replacement if
17136         REPLACE_ISWBLANK is set.
17137         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
17138         declared. Set REPLACE_ISWBLANK.
17139         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
17140         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
17141         * doc/posix-headers/wctype.texi: Likewise.
17142         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17143
17144 2010-09-01  Bruno Haible  <bruno@clisp.org>
17145
17146         New module 'socketlib'.
17147         * modules/socketlib: New file.
17148         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
17149         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
17150         * modules/sockets (Depends-on): Add socketlib.
17151         Suggested by Sam Steingold <sds@gnu.org>.
17152
17153 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
17154
17155         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
17156
17157         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
17158         when one needs search access to a directory but not read access.
17159         On systems where it is available, it works in some cases where
17160         O_RDONLY does not, namely on directories that are searchable but
17161         not readable, and which need only to be searchable.  If O_SEARCH
17162         is not available, fall back to the traditional method of using
17163         O_RDONLY.
17164
17165         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
17166         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
17167         when opening a directory that needs only to be searchable.
17168         * lib/chdir-safer.c (chdir_no_follow): Likewise.
17169         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
17170         * lib/openat-proc.c (openat_proc_name): Likewise.
17171         * lib/openat.c (openat_needs_fchdir): Likewise.
17172         * lib/save-cwd.c (save_cwd): Likewise.
17173         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
17174
17175 2010-08-28  Bruno Haible  <bruno@clisp.org>
17176
17177         New module 'host-cpu-c-abi'.
17178         * modules/host-cpu-c-abi: New file.
17179         * m4/host-cpu-c-abi.m4: New file, based on part of
17180         clisp/src/m4/general.m4.
17181         Requested by Sam Steingold <sds@gnu.org>.
17182
17183 2010-08-31  Eric Blake  <eblake@redhat.com>
17184         and Jim Meyering  <meyering@redhat.com>
17185
17186         hash: factor, and guard against misbehaving hasher function
17187         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
17188         of table->hasher's return value.  Also protect against a hash value
17189         so large that adding it to table->bucket results in a NULL pointer.
17190         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
17191         Use it in place of open-coded check-and-abort.
17192
17193 2010-08-30  Bruno Haible  <bruno@clisp.org>
17194
17195         hash: silence spurious clang warning
17196         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
17197         Reported by Eric Blake.
17198
17199 2010-08-30  Eric Blake  <eblake@redhat.com>
17200
17201         strstr, memmem, strcasestr: avoid leaked shell message
17202         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
17203         FreeBSD.
17204         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
17205         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
17206
17207         tests: silence clang warning
17208         * tests/test-malloca.c (do_allocation): Avoid dead store.
17209
17210 2010-08-29  Bruno Haible  <bruno@clisp.org>
17211
17212         gettext: Fix recent mistake.
17213         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
17214
17215 2010-08-29  Bruno Haible  <bruno@clisp.org>
17216
17217         selinux-h: Offer a --without-selinux option.
17218         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
17219         --without-selinux was specified, skip all tests and define
17220         HAVE_SELINUX_SELINUX_H to 0.
17221         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
17222         set LIB_SELINUX to empty.
17223         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
17224         gl_LIBSELINUX. If --without-selinux was specified, replace
17225         selinux/context.h.
17226         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
17227
17228 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17229             Bruno Haible  <bruno@clisp.org>
17230
17231         Make the module 'realloc-gnu' work again on AIX and OSF/1.
17232         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
17233         of HAVE_REALLOC.
17234         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
17235         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
17236         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
17237         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
17238
17239 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17240             Bruno Haible  <bruno@clisp.org>
17241
17242         Make the module 'calloc-gnu' work again on AIX and OSF/1.
17243         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
17244         HAVE_CALLOC.
17245         * lib/xmalloc.c: Update accordingly.
17246         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
17247         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
17248         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
17249
17250 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17251             Bruno Haible  <bruno@clisp.org>
17252
17253         Make the module 'malloc-gnu' work again on AIX and OSF/1.
17254         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
17255         HAVE_MALLOC.
17256         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
17257         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
17258         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
17259
17260 2010-08-29  Bruno Haible  <bruno@clisp.org>
17261
17262         Update modules list.
17263         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
17264         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
17265         (String handling <string.h>): Add astrxfrm.
17266         (File system functions): Add readlinkat.
17267
17268 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17269
17270         Tests for module 'realloc-gnu'.
17271         * modules/realloc-gnu-tests: New file.
17272         * tests/test-realloc-gnu.c: New file.
17273
17274         Tests for module 'calloc-gnu'.
17275         * modules/calloc-gnu-tests: New file.
17276         * tests/test-calloc-gnu.c: New file.
17277
17278         Tests for module 'malloc-gnu'.
17279         * modules/malloc-gnu-tests: New file.
17280         * tests/test-malloc-gnu.c: New file.
17281
17282 2010-08-28  Bruno Haible  <bruno@clisp.org>
17283
17284         Rename module 'realloc' -> 'realloc-gnu'.
17285         * modules/realloc-gnu: New file, copied from modules/realloc.
17286         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
17287         obsolete.
17288         * modules/mgetgroups (Depends-on): Update.
17289         * doc/posix-functions/realloc.texi: Update.
17290         * NEWS: Mention the change.
17291
17292         Rename module 'calloc' -> 'calloc-gnu'.
17293         * modules/calloc-gnu: New file, copied from modules/calloc.
17294         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
17295         obsolete.
17296         * doc/posix-functions/calloc.texi: Update.
17297         * NEWS: Mention the change.
17298
17299         Rename module 'malloc' -> 'malloc-gnu'.
17300         * modules/malloc-gnu: New file, copied from modules/malloc.
17301         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
17302         obsolete.
17303         * modules/argp (Depends-on): Update.
17304         * modules/regex (Depends-on): Update.
17305         * doc/posix-functions/malloc.texi: Update.
17306         * NEWS: Mention the change.
17307
17308 2010-08-28  Eric Blake  <eblake@redhat.com>
17309
17310         pread, pwrite: add missing dependency
17311         * modules/pread (Depends-on): Add extensions.
17312         * modules/pwrite (Depends-on): Likewise.
17313
17314 2010-08-28  Bruno Haible  <bruno@clisp.org>
17315
17316         unistr/u*-strchr: Fix tests dependencies.
17317         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
17318         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
17319         Reported by Ian Beckwith <ianb@erislabs.net>.
17320
17321 2010-08-28  Bruno Haible  <bruno@clisp.org>
17322
17323         read-file: Don't occupy too much unused memory.
17324         * lib/read-file.c (fread_file): Shrink the buffer at the end.
17325
17326 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
17327             Eric Blake  <eblake@redhat.com>
17328             Bruno Haible  <bruno@clisp.org>
17329
17330         read-file: Avoid memory reallocations with regular files.
17331         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
17332         (fread_file): With regular files, use the remaining length as the
17333         initial buffer size.  Check against overflow.
17334         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
17335         sys_stat.
17336
17337 2010-08-28  Bruno Haible  <bruno@clisp.org>
17338
17339         ftello: Relax license.
17340         * modules/ftello (License): Relax to LGPLv2+.
17341         Reported by Eric Blake.
17342
17343 2010-08-28  Bruno Haible  <bruno@clisp.org>
17344
17345         Avoid relocwrapper link errors due to gnulib replacement functions.
17346         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
17347         function.
17348         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17349
17350 2010-08-28  Bruno Haible  <bruno@clisp.org>
17351
17352         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
17353         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
17354         defined.
17355         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
17356         Suggested by Eric Blake.
17357
17358 2010-08-28  Bruno Haible  <bruno@clisp.org>
17359
17360         sys_socket, netdb: Ensure socklen_t gets defined.
17361         * modules/sys_socket (Depends-on): Add socklen.
17362         * modules/netdb (Depends-on): Likewise.
17363         * modules/getaddrinfo (Depends-on): Remove socklen.
17364         * modules/getsockopt (Depends-on): Likewise.
17365         * modules/setsockopt (Depends-on): Likewise.
17366         * tests/test-sys_socket.c: Check that socklen_t is defined.
17367         * tests/test-netdb.c: Likewise.
17368         * m4/socklen.m4: Update comments.
17369         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17370
17371 2010-08-27  Eric Blake  <eblake@redhat.com>
17372
17373         login_tty: add missing dependency
17374         * modules/login_tty (Depends-on): Add pty.
17375
17376 2010-08-26  Eric Blake  <eblake@redhat.com>
17377
17378         lib-symbol-versions: fix m4 quoting
17379         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
17380         format for AC_LINK_IFELSE.
17381
17382         glob: fix compile test
17383         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
17384
17385         btowc: fix missing file
17386         * modules/btowc (Files): Also ship locale-fr.m4.
17387
17388         lseek: fix link test
17389         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
17390         AC_LINK_IFELSE.
17391
17392         include_next: silence autoconf 2.68 warning
17393         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
17394         AC_COMPILE_IFELSE as special.
17395         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
17396         autoconf < 2.68.
17397
17398         acl: fix compilation test
17399         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
17400         AC_COMPILE_IFELSE.
17401
17402 2010-08-26  Bruno Haible  <bruno@clisp.org>
17403
17404         Modernize AC_TRY_RUN invocations.
17405         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
17406         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
17407         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
17408         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
17409         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
17410         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
17411         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
17412         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
17413         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17414         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17415         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
17416         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
17417         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
17418         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
17419         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
17420         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
17421         gl_MBRLEN_NUL_RETVAL): Likewise.
17422         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
17423         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
17424         Likewise.
17425         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
17426         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
17427         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
17428         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
17429         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
17430         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
17431         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
17432         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
17433         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
17434         Likewise.
17435         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
17436         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
17437         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
17438         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17439         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17440         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
17441         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
17442         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
17443         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
17444         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
17445
17446 2010-08-26  Bruno Haible  <bruno@clisp.org>
17447
17448         Modernize AC_TRY_LINK invocations.
17449         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
17450         AC_TRY_LINK.
17451         * m4/argp.m4 (gl_ARGP): Likewise.
17452         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
17453         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
17454         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
17455         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
17456         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
17457         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
17458         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
17459         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
17460         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
17461         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
17462         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
17463         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
17464         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
17465         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
17466         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
17467         * m4/hostent.m4 (gl_HOSTENT): Likewise.
17468         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
17469         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
17470         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
17471         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
17472         Likewise.
17473         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
17474         Likewise.
17475         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
17476         Likewise.
17477         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
17478         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
17479         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
17480         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
17481         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
17482         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
17483         * m4/servent.m4 (gl_SERVENT): Likewise.
17484         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
17485         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
17486         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
17487         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
17488         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
17489         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
17490         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
17491         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
17492         * modules/tsearch-tests (configure.ac): Likewise.
17493
17494 2010-08-26  Bruno Haible  <bruno@clisp.org>
17495
17496         Modernize AC_TRY_COMPILE invocations.
17497         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
17498         AC_TRY_COMPILE.
17499         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
17500         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
17501         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
17502         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
17503         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
17504         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
17505         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
17506         * m4/lock.m4 (gl_LOCK): Likewise.
17507         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
17508         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
17509         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
17510         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
17511         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
17512         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
17513         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
17514         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
17515         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
17516         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
17517         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
17518         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
17519         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
17520         extraneous semicolon.
17521
17522 2010-08-26  Jim Meyering  <meyering@redhat.com>
17523
17524         stat-time: relax license LGPL
17525         * modules/stat-time (License): Change from GPL to LGPL,
17526         with consent from all contributors, for use in libguile.
17527         Requested by Ludovic Courtès.
17528
17529 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
17530
17531         poll: return immediately on POLLHUP.
17532         * lib/poll.c (poll): Always set timeout before wait_timeout is
17533         computed.
17534
17535 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17536
17537         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
17538         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
17539         rmdir ("dir/.//"), unlinkat.
17540
17541 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
17542
17543         stdbool: avoid spurious failure with modern xlc
17544         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
17545
17546 2010-08-24  Bruno Haible  <bruno@clisp.org>
17547
17548         getloadavg: simplify code
17549         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
17550         gl_have_func. Update comments.
17551
17552 2010-08-24  Eric Blake  <eblake@redhat.com>
17553
17554         getloadavg: don't define SVR4 on cygwin
17555         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
17556         only define SVR4 when -lkvm is required.
17557         Reported by Yaakov Selkowitz.
17558
17559 2010-08-24  Bruno Haible  <bruno@clisp.org>
17560
17561         priv-set: fix comment
17562         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
17563
17564 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
17565
17566         priv-set: fix comments
17567         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
17568         to match code, as suggested by David Bartley in:
17569         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
17570
17571 2010-08-23  Eric Blake  <eblake@redhat.com>
17572
17573         stdbool: avoid rejecting clang
17574         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
17575         * tests/test-stdbool.c: Enable more tests if using the system
17576         <stdbool.h> instead of the gnulib replacement.
17577         (main): Move xlc bug test to a runtime test for all compilers.
17578         Reported by Anders Kaseorg.
17579
17580         argz: fix shell quoting issue
17581         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
17582         Reported by Charles Wilson.
17583
17584 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
17585             Erik Faye-Lund <kusmabite@gmail.com>
17586
17587         poll, select: handle ERROR_BROKEN_PIPE.
17588         * lib/poll.c (win32_compute_revents): Return POLLHUP when
17589         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
17590         * lib/select.c (win32_compute_revents): Do not mark a pipe
17591         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
17592
17593 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
17594
17595         fts: allow compilation with C++
17596         * lib/fts_.h: Specify extern "C" linkage with C++.
17597
17598 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17599
17600         Fix gnulib-tool sed script de-commentation for AIX sed.
17601         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
17602         sed.
17603
17604 2010-08-17  Eric Blake  <eblake@redhat.com>
17605
17606         test-stddef: test for (some) offsetof bugs
17607         * tests/test-stddef.c: Enhance test to ensure correct type of
17608         offsetof.
17609         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
17610         that we are not fixing at this time.
17611
17612 2010-08-15  Bruno Haible  <bruno@clisp.org>
17613
17614         stpncpy: Allow stpncpy to be defined as a macro.
17615         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
17616         if it's already correctly declared.
17617         * lib/string.in.h (stpncpy): Undefine before redefining.
17618         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
17619
17620 2010-08-14  Bruno Haible  <bruno@clisp.org>
17621
17622         Rename module 'memxfrm' to 'amemxfrm'.
17623         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
17624         (amemxfrm): Renamed from memxfrm.
17625         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
17626         (amemxfrm): Renamed from memxfrm.
17627         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
17628         * NEWS: Mention the change.
17629         * MODULES.html.sh (String handling <string.h>): Update.
17630         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
17631         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
17632         * lib/unicase/u16-casexfrm.c: Likewise.
17633         * lib/unicase/u32-casexfrm.c: Likewise.
17634         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
17635         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
17636         * lib/uninorm/u16-normxfrm.c: Likewise.
17637         * lib/uninorm/u32-normxfrm.c: Likewise.
17638         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
17639         memxfrm.
17640         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
17641         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
17642         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
17643         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
17644         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
17645         Suggested by Paul Eggert.
17646
17647 2010-08-14  Bruno Haible  <bruno@clisp.org>
17648
17649         Tests for module 'astrxfrm'.
17650         * modules/astrxfrm-tests: New file.
17651         * tests/test-astrxfrm.c: New file.
17652
17653         New module 'astrxfrm'.
17654         * lib/astrxfrm.h: New file.
17655         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
17656         * modules/astrxfrm: New file.
17657
17658 2010-08-14  Reuben Thomas <rrt@sc3d.org>
17659
17660         regex: Tweak doc.
17661         * doc/regex.texi (Overview): Don't mention regex.c.
17662         (GNU Regular Expression Compiling): Likewise.
17663         (Match-end-of-line Operator): Mention 'not_eol'.
17664
17665 2010-08-14  Brian Gough  <bjg@gnu.org>
17666             Bruno Haible  <bruno@clisp.org>
17667
17668         git-merge-changelog: add doc relating to use with bzr and hg.
17669         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
17670
17671 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
17672
17673         pthread: fix pthread.h creation for srcdir != builddir
17674         * modules/pthread (Makefile.am): Fix the rule to work also in a
17675         non-srcdir build.
17676
17677 2010-08-13  Karl Berry  <karl@gnu.org>
17678
17679         * doc/regex.texi (Predefined Syntaxes): @smallexample.
17680         * doc/posix-*/*: force line break before @url of POSIX
17681         specifications.
17682         Suggested by Werner Lemberg.
17683
17684 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
17685
17686         strtod: fix const diagnostic
17687         * lib/strtod.c (strtod): Don't assign const char * to char *,
17688         as this elicits a warning from GCC when warnings are enabled.
17689
17690 2010-08-10  Pádraig Brady <P@draigbrady.com>
17691         and Eric Blake  <eblake@redhat.com>
17692
17693         copy-acl: ignore ENOTSUP on HP-UX
17694         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
17695         so that it is available for HP-UX.
17696         * lib/copy-acl.c (qcopy_acl): Use it.
17697         Reported by Patrick M. Callahan.
17698
17699 2010-08-10  Eric Blake  <eblake@redhat.com>
17700
17701         open, chown: relax license
17702         * modules/open (License): Change to LGPLv2+, with consent by all
17703         authors, for use in augeas.
17704         * modules/chown (License): Likewise.
17705         * modules/lchown (Likewise): Likewise.
17706         Requested by Adam Stokes.
17707
17708 2010-08-09  Karl Berry  <karl@gnu.org>
17709
17710         * build-aux/ar-lib: new file, import from Automake.
17711         * config/srclist.txt: autocheck for updates.
17712
17713 2010-08-09  Eric Blake  <eblake@redhat.com>
17714
17715         readlinkat: adjust client modules
17716         * modules/areadlinkat (Depends-on): Use readlinkat, not
17717         symlinkat.
17718         * modules/areadlinkat-with-size (Depends-on): Likewise.
17719
17720         mknod: be more vocal about danger of running tests as root
17721         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
17722         root, since that is just asking for problems.
17723         Suggested by Bruno Haible, based on a report by Rainer Tammer.
17724
17725         readlinkat: split into its own module
17726         * modules/symlinkat: Split readlinkat...
17727         * modules/readlinkat: ...into separate module.
17728         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
17729         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
17730         * lib/symlinkat.c (readlinkat): Move...
17731         * lib/readlinkat.c: ...into new file.
17732         * modules/symlinkat-tests: Split readlinkat test...
17733         * modules/readlinkat-tests: ...into separate module.
17734         * tests/test-symlinkat.c: Split...
17735         * tests/test-readlinkat.c: ...into new file.
17736         * NEWS: Document the split.
17737         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17738         * lib/unistd.in.h (readlinkat): Likewise.
17739         Suggested by Bruno Haible.
17740
17741 2010-08-08  Bruno Haible  <bruno@clisp.org>
17742
17743         memxfrm: Speed up.
17744         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
17745         that usually only one call to strxfrm is necessary for each string
17746         part.
17747         Reported by Paul Eggert <eggert@cs.ucla.edu>.
17748
17749 2010-08-07  Karl Berry  <karl@gnu.org>
17750
17751         * doc/posix-headers/limits.texi,
17752         * doc/posix-functions/malloc.texi,
17753         * doc/posix-functions/strsignal.texi: missing @item.
17754         * doc/ld-version-script.texi: spurious leading i.
17755         * doc/regex.texi (Interval Operators): no commas inside @var.
17756
17757 2010-08-01  Bruno Haible  <bruno@clisp.org>
17758
17759         Integrate the regex documentation.
17760         * doc/gnulib.texi: Define 'cn' index.
17761         (Regular expressions): New a chapter that includes regex.texi and
17762         regexprops-generic.texi.
17763         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
17764         syntax.
17765
17766         Whitespace cleanup.
17767         * doc/regex.texi: Remove trailing spaces.
17768
17769         Add regex documentation.
17770         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
17771         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
17772         Written by Kathy A. Hargreaves and Karl Berry.
17773
17774 2010-08-01  Bruno Haible  <bruno@clisp.org>
17775
17776         link: Update documentation.
17777         * doc/posix-functions/link.texi: Update regarding Solaris.
17778
17779 2010-07-31  Bruno Haible  <bruno@clisp.org>
17780
17781         Update modules list.
17782         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
17783         (String handling <string.h>): Add memcmp2, memxfrm.
17784         (Container data structures): Add xlist, xsublist, xoset.
17785         (Core language properties): Add alignof, unused-parameter.
17786         (Process control, Numeric conversion functions <stdlib.h>): Renamed
17787         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
17788         (Unibyte characters <ctype.h>): New section.
17789         (String handling <string.h>): New section.
17790         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
17791         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
17792         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
17793         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
17794         tan, tanh, tanl, y0, y1, yn.
17795         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
17796         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
17797         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
17798         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
17799         unlockpt, vdprintf, vdprintf-posix.
17800         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
17801         (File system functions): Add concat-filename, sys_file, sys_ioctl,
17802         xconcat-filename.
17803         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
17804         getdtablesize, pipe2, pipe2-safer.
17805         (Security): New section.
17806         (Networking functions): Add accept4.
17807         (Signal handling): Add sigpipe.
17808         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
17809         mbmemcasecoll.
17810         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
17811         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
17812         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
17813         pipe-filter-ii.
17814         (Misc): Add argp-version-etc, login_tty, parse-duration.
17815
17816 2010-07-31  Bruno Haible  <bruno@clisp.org>
17817
17818         Improve doc in MODULES.html.
17819         * modules/linkat (Description): Add the word "function".
17820         * modules/mkfifo (Description): Likewise.
17821         * modules/mknod (Description): Likewise.
17822         * modules/remove (Description): Likewise.
17823         * modules/renameat (Description): Likewise.
17824         * modules/stat (Description): Likewise.
17825         * modules/symlink (Description): Likewise.
17826         * modules/unlink (Description): Likewise.
17827
17828 2010-07-31  Bruno Haible  <bruno@clisp.org>
17829
17830         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
17831         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
17832         option --enable/disable-c++ instead of --enable/disable-cxx.
17833         * NEWS: Mention the change.
17834
17835 2010-07-31  Bruno Haible  <bruno@clisp.org>
17836
17837         readlink, areadlink: Relax test a bit.
17838         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
17839         alternative to ENOTDIR.
17840         * tests/test-areadlink.h (test_areadlink): Likewise.
17841         Reported by Rainer Tammer.
17842
17843 2010-07-31  Bruno Haible  <bruno@clisp.org>
17844
17845         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
17846         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
17847         character, perform the search using U_STRCHR.
17848         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
17849         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
17850         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
17851         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
17852         Suggested by Paolo Bonzini.
17853
17854 2010-07-31  Bruno Haible  <bruno@clisp.org>
17855
17856         unistr/u*-strstr: Fix dependencies.
17857         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
17858         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
17859         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
17860
17861 2010-07-31  Bruno Haible  <bruno@clisp.org>
17862
17863         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
17864         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
17865         the beginning of the loop.
17866         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
17867         cases in 'switch' statement.
17868
17869         unistr/u8-strchr: Fix several bugs.
17870         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
17871         the string. When not found, return NULL, not a pointer near the end.
17872
17873         More tests for unistr/u8-strchr.
17874         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
17875         that the function does not read past the first occurrence of the byte
17876         being searched.
17877         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
17878         * tests/unistr/test-u16-strchr.c (main): New function.
17879         * tests/unistr/test-u32-strchr.c (main): New function.
17880
17881 2010-07-31  Bruno Haible  <bruno@clisp.org>
17882
17883         posix-modules: Ignore backup files of documentation files.
17884         * posix-modules: grep only through files named *.texi.
17885
17886 2010-07-31  Bruno Haible  <bruno@clisp.org>
17887
17888         symlinkat: Fix documentation.
17889         * doc/posix-functions/readlinkat.texi: Fix module name.
17890
17891 2010-07-31  Bruno Haible  <bruno@clisp.org>
17892
17893         fchownat: Replace also when chown has the trailing slash bug.
17894         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
17895         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
17896         introduced on 2010-04-10.
17897         Reported by Rainer Tammer.
17898
17899 2010-07-31  Bruno Haible  <bruno@clisp.org>
17900
17901         linkat: Work around AIX 7.1 bug.
17902         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
17903         whether linkat handles trailing slash correctly. If not, replace linkat
17904         and define LINKAT_TRAILING_SLASH_BUG.
17905         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
17906         check whether (fd1,file1) points to a directory if file1 or file2 ends
17907         in a slash. Code taken from lib/link.c.
17908         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
17909         Reported by Rainer Tammer.
17910
17911 2010-07-31  Bruno Haible  <bruno@clisp.org>
17912
17913         Correctly determine whether pow is available in libc on AIX 7 with xlc.
17914         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
17915         This disables an xlc optimization that was causing wrong test results.
17916         Reported by Rainer Tammer.
17917
17918 2010-07-31  Bruno Haible  <bruno@clisp.org>
17919
17920         iconv: Work around AIX 6.1..7.1 bug.
17921         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
17922         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
17923         cross-compiling, guess no on all versions of AIX.
17924         Reported by Rainer Tammer.
17925
17926 2010-07-31  Bruno Haible  <bruno@clisp.org>
17927
17928         readlink: Relax test a bit.
17929         * tests/test-readlink.h (test_readlink): Allow different errno value
17930         when readlink is called with a file name that ends in / and refers to
17931         a file.
17932         Suggested by Eric Blake.
17933         Reported by Rainer Tammer.
17934
17935 2010-07-31  Bruno Haible  <bruno@clisp.org>
17936
17937         copysign: Does not require -lm on glibc systems.
17938         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
17939         gl_COMMON_DOUBLE_MATHFUNC.
17940         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
17941
17942 2010-07-31  Bruno Haible  <bruno@clisp.org>
17943
17944         duplocale: Work around AIX 7.1 bug.
17945         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
17946         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
17947         * lib/duplocale.c (rpl_duplocale): Update comment.
17948         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
17949         Reported by Rainer Tammer.
17950
17951 2010-07-30  Bruno Haible  <bruno@clisp.org>
17952
17953         dirfd: Avoid link error on AIX 7.1.
17954         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
17955         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
17956         exist, set REPLACE_DIRFD.
17957         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
17958         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
17959         * doc/posix-functions/dirfd.texi: Update.
17960         Reported by Rainer Tammer.
17961
17962 2010-07-30  Eric Blake  <eblake@redhat.com>
17963
17964         strtod: next round of AIX fixes
17965         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
17966         exponent.
17967         * tests/test-strtod.c (main): Enhance tests.
17968         * doc/posix-functions/strtod.texi (strtod): Document next bug.
17969         Reported by Rainer Tammer.
17970
17971         futimens: fix configure check
17972         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
17973         Reported by Bruno Haible.
17974
17975 2010-07-30  Bruno Haible  <bruno@clisp.org>
17976
17977         getline: Update regarding AIX.
17978         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
17979         Reported by Rainer Tammer.
17980
17981 2010-07-30  Bruno Haible  <bruno@clisp.org>
17982
17983         wcwidth: Drop replacement on AIX 7.
17984         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
17985         AIX 7.
17986         Reported by Rainer Tammer.
17987
17988 2010-07-30  Bruno Haible  <bruno@clisp.org>
17989
17990         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
17991         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
17992         a 'char *'.
17993         Reported by Rainer Tammer.
17994
17995 2010-07-30  Bruno Haible  <bruno@clisp.org>
17996
17997         unlink: Update regarding AIX.
17998         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
17999         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
18000         Reported by Rainer Tammer.
18001
18002 2010-07-30  Bruno Haible  <bruno@clisp.org>
18003
18004         symlink: Update regarding AIX.
18005         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
18006         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
18007         Reported by Rainer Tammer.
18008
18009 2010-07-30  Bruno Haible  <bruno@clisp.org>
18010
18011         strndup: Update regarding AIX.
18012         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
18013         AIX 7.
18014         Reported by Rainer Tammer.
18015
18016 2010-07-30  Bruno Haible  <bruno@clisp.org>
18017
18018         stat: Update regarding AIX.
18019         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
18020         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
18021         Reported by Rainer Tammer.
18022
18023 2010-07-30  Bruno Haible  <bruno@clisp.org>
18024
18025         truncl: Fix autoconf test.
18026         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
18027         whether truncl works.
18028         Reported by Rainer Tammer.
18029
18030 2010-07-30  Bruno Haible  <bruno@clisp.org>
18031
18032         round: Update regarding AIX.
18033         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
18034         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
18035         Reported by Rainer Tammer.
18036
18037 2010-07-30  Bruno Haible  <bruno@clisp.org>
18038
18039         rename: Update regarding AIX.
18040         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
18041         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
18042         Reported by Rainer Tammer.
18043
18044 2010-07-30  Bruno Haible  <bruno@clisp.org>
18045
18046         printf.m4: Update regarding AIX.
18047         * m4/printf.m4: Update comments regarding AIX.
18048         Reported by Rainer Tammer.
18049
18050 2010-07-30  Bruno Haible  <bruno@clisp.org>
18051
18052         iconv: Update regarding AIX.
18053         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
18054         AIX 7.
18055         Reported by Rainer Tammer.
18056
18057 2010-07-30  Bruno Haible  <bruno@clisp.org>
18058
18059         getopt: Update regarding AIX.
18060         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
18061         no on AIX.
18062         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
18063         Reported by Rainer Tammer.
18064
18065 2010-07-30  Bruno Haible  <bruno@clisp.org>
18066
18067         ldexpl; Update regarding AIX.
18068         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
18069         on AIX 7.
18070         Reported by Rainer Tammer.
18071
18072 2010-07-30  Bruno Haible  <bruno@clisp.org>
18073
18074         frexpl: Update regarding AIX.
18075         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
18076         on AIX 7.
18077         Reported by Rainer Tammer.
18078
18079 2010-07-30  Bruno Haible  <bruno@clisp.org>
18080
18081         open, fopen: Update regarding AIX.
18082         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
18083         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
18084         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
18085         * doc/posix-functions/fopen.texi: Likewise.
18086         Reported by Rainer Tammer.
18087
18088 2010-07-30  Bruno Haible  <bruno@clisp.org>
18089
18090         chown: Update doc regarding AIX.
18091         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
18092         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
18093         Reported by Rainer Tammer.
18094
18095 2010-07-30  Eric Blake  <eblake@redhat.com>
18096
18097         strtod: fix bug in replacement function on AIX
18098         * lib/strtod.c (strtod): Special case broken "0x" parse in
18099         underlying strtod.
18100         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
18101         * doc/posix-functions/strtod.texi (strtod): Likewise.
18102         Reported by Rainer Tammer.
18103
18104 2010-07-30  Bruno Haible  <bruno@clisp.org>
18105
18106         mbrlen: Fix cross-compilation guess for AIX.
18107         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
18108         guess. Leftover from 2008-12-22.
18109
18110 2010-07-30  Bruno Haible  <bruno@clisp.org>
18111
18112         mbrtowc: Fix cross-compilation guess for AIX.
18113         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
18114         guess. Leftover from 2008-12-21.
18115
18116 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
18117
18118         init.sh: work around trap limitation of some shells
18119         * tests/init.sh (setup_): Move exit trap outside of shell function.
18120
18121 2010-07-29  Eric Blake  <eblake@redhat.com>
18122
18123         strtod: aid debugging
18124         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
18125         understanding why strtod is rejected.
18126
18127 2010-07-28  Bruno Haible  <bruno@clisp.org>
18128
18129         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
18130         * lib/unistr/u8-chr.c: Include <string.h>.
18131         * tests/unistr/test-u8-chr.c: Likewise.
18132         * tests/unistr/test-u16-chr.c: Likewise.
18133         * tests/unistr/test-u32-chr.c: Likewise.
18134         * tests/unistr/test-u8-strchr.c: Likewise.
18135         * tests/unistr/test-u16-strchr.c: Likewise.
18136         * tests/unistr/test-u32-strchr.c: Likewise.
18137         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
18138         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
18139         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
18140         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
18141
18142 2010-07-28  Bruno Haible  <bruno@clisp.org>
18143
18144         Use spaces for indentation, not tabs.
18145         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
18146
18147 2010-07-27  Bruno Haible  <bruno@clisp.org>
18148
18149         mbspcasecmp: Fix function specification.
18150         * lib/string.in.h (mbspcasecmp): Fix specification comment.
18151         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
18152         Reported by Eric Blake <eblake@redhat.com>.
18153
18154 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
18155
18156         timespec: use cast and not conditional, as truncation isn't possible
18157         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
18158         instead of a conditional.  Comment about the situation in more detail.
18159         This undoes most of the 2009-10-29 patch.
18160
18161 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
18162
18163         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
18164         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
18165         * lib/unistr/u8-strchr.c: Likewise.
18166         * modules/unistr/u8-chr: Depend on memchr.
18167
18168         unistr/u*-strchr: add tests
18169         * modules/unistr/u8-strchr-tests: New file.
18170         * modules/unistr/u16-strchr-tests: New file.
18171         * modules/unistr/u32-strchr-tests: New file.
18172         * tests/unistr/test-strchr.h: New file.
18173         * tests/unistr/test-u8-strchr.c: New file.
18174         * tests/unistr/test-u16-strchr.c: New file.
18175         * tests/unistr/test-u32-strchr.c: New file.
18176
18177         unistr/u*-chr: test multibyte sequences more
18178         * tests/unistr/test-chr.h: Do complete testing of the characters in the
18179         test vector.
18180         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
18181         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
18182         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
18183
18184         unistr/u*-chr: test multibyte sequences
18185         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
18186
18187         unistr/u*-chr: prepare for multibyte tests
18188         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
18189         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
18190         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
18191         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
18192         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
18193         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
18194
18195 2010-07-18  Bruno Haible  <bruno@clisp.org>
18196
18197         unistr/u8-strchr: Optimize non-ASCII argument case.
18198         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
18199         because the first byte often matches anyway.
18200         Reported by Pádraig Brady <P@draigbrady.com>.
18201
18202 2010-07-15  Karl Berry  <karl@gnu.org>
18203
18204         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
18205
18206 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
18207
18208         getcwd: on Solaris, work better if ancestors are inaccessible
18209         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
18210         buffer and size, try again with a large buffer.  This works better
18211         on Solaris, since its getcwd succeeds even if the path to the root
18212         is inaccessible, and this is helpful in common cases such as .zfs
18213         hidden directories.  Problem reported by J Chapman Flack in
18214         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
18215         Use system getcwd if it's declared, not merely if it's partly
18216         working; use the partly-working test only to avoid needless effort
18217         if the system getcwd fails.
18218         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
18219         comment that was already obsolete and is now even more obsolete.
18220         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
18221         now might call strdup.
18222
18223 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
18224
18225         pthread: Add enough so that coreutils/src/sort.c compiles.
18226         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
18227         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
18228         gnulib. Include <sched.h> and <time.h>, as per POSIX.
18229         Include <sys/types.h>, in case it defines pthread_t.
18230         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
18231         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
18232         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
18233         (pthread_rwlockattr_t, pthread_spinlock_t):
18234         New typedefs, if HAVE_PTHREAD_T is not defined.
18235         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
18236         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
18237         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
18238         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
18239         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
18240         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
18241         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
18242         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
18243         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
18244         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
18245         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
18246         New macros.
18247         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
18248         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
18249         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
18250         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
18251         (pthread_spin_unlock): New dummy functions.
18252         (pthread_create): Return EAGAIN; don't set errno.
18253         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
18254         require AC_C_INLINE.
18255         * modules/pthread (Depends-on): Add sched, time.
18256         (pthread.h): Use AM_V_GEN.
18257
18258 2010-07-13  Bruno Haible  <bruno@clisp.org>
18259
18260         striconveh: Don't malloc memory if the result buffer is sufficient.
18261         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
18262         buffer if its size is sufficient.
18263         Reported by Ludovic Courtès <ludo@gnu.org>.
18264
18265 2010-07-13  Bruno Haible  <bruno@clisp.org>
18266
18267         strtod: Add safety check.
18268         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
18269
18270 2010-07-12  Bruno Haible  <bruno@clisp.org>
18271
18272         Unify tests that set gl_cv_func_ldexpl_no_libm.
18273         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
18274         gl_FUNC_LDEXPL.
18275         (gl_FUNC_LDEXPL): Invoke it.
18276         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
18277
18278 2010-07-12  Bruno Haible  <bruno@clisp.org>
18279
18280         Unify tests that set gl_cv_func_ldexp_no_libm.
18281         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
18282         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
18283         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
18284         (configure.ac): Simply invoke gl_FUNC_LDEXP.
18285         * modules/strtod (Files): Add m4/ldexp.m4.
18286
18287 2010-07-12  Bruno Haible  <bruno@clisp.org>
18288
18289         Unify tests that set gl_cv_func_frexpl_no_libm.
18290         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
18291         gl_FUNC_FREXPL_NO_LIBM.
18292         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
18293         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
18294
18295 2010-07-12  Bruno Haible  <bruno@clisp.org>
18296
18297         Unify tests that set gl_cv_func_frexp_no_libm.
18298         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
18299         gl_FUNC_FREXP_NO_LIBM.
18300         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
18301         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
18302
18303 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
18304
18305         memcoll: clarify sizes versus lengths, document better, and tweak perf
18306         * lib/memcoll.c (strcoll_loop, memcoll0):
18307         Improve quality of descriptive comments.  Name variables
18308         consistently as to whether they are lengths (which do not include
18309         terminating null) versus sizes (which do).
18310         * lib/xmemcoll.c (xmemcoll0): Likewise.
18311         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
18312         returned when s1size == 0; this is easier to compile and saves
18313         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
18314
18315 2010-07-12  Bruno Haible  <bruno@clisp.org>
18316
18317         Tests for module '_Exit'.
18318         * modules/_Exit-tests: New file.
18319         * tests/test-_Exit.sh: New file.
18320         * tests/test-_Exit.c: New file.
18321
18322         New module '_Exit'.
18323         * lib/stdlib.in.h (__attribute__): New macro.
18324         (_Exit): New declaration.
18325         * lib/_Exit.c: New file.
18326         * m4/_Exit.m4: New file.
18327         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
18328         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
18329         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
18330         * modules/_Exit: New file.
18331         * tests/test-stdlib-c++.cc (_Exit): Check signature.
18332         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
18333
18334 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
18335
18336         strtod: make it more-accurate typically, and don't require libm
18337         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
18338         Include limits.h.  Don't include string.h.
18339         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
18340         (locale_isspace): New function, so that no casts are needed to
18341         check whether *s is a space.
18342         (ldexp): Provide an unused dummy if not available.
18343         (scale_radix_exp, parse_number, underlying_strtod): New functions.
18344         (strtod): Use them.  This implementation prefers to use the
18345         underlying strtod if available, falling back on our own code
18346         only to fix known bugs.  This is more likely to produce an
18347         accurate result.  Also, it avoids the use of libm functions.
18348         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
18349         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
18350         was absent, but it caused a test failure with coreutils.
18351         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
18352         with libm.
18353         * modules/strtod (Makefile.am, Link): libm is no longer needed.
18354         * modules/strtod-tests (Makefile.am): Likewise.
18355
18356 2010-07-11  Pádraig Brady  <P@draigBrady.com>
18357             Bruno Haible  <bruno@clisp.org>
18358
18359         unistr/u8-strchr: Optimize ASCII argument case.
18360         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
18361
18362 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
18363
18364         (x)memcoll: minor tweaks
18365         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
18366         is after the type that it qualifies.
18367         (memcoll0): Likewise.
18368         * lib/memcoll.h (memcoll0): Likewise.
18369         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
18370         * lib/xmemcoll.h (xmemcoll0): Likewise.
18371         * lib/memcoll.c (memcoll0): Correct the comment.  This function
18372         differs from memcoll in that the NUL byte is part of the argument.
18373         Omit the abort-checks, as performance is a real issue here.  Plus,
18374         the checks were wrong anyway (an off-by-one error).  Omit local
18375         variable 'diff', as it's a bit clearer that way.
18376         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
18377         no longer needed.
18378
18379 2010-07-08  Chen Guo <chenguo4@yahoo.com>
18380
18381         (x)memcoll: speedup when input is known to be NUL delimited
18382         * lib/memcoll.c: Include stdlib.
18383         (memcoll0): New function.
18384         (strcoll_loop): New function, refactored for use in both memcoll
18385         and memcoll0.
18386         * lib/memcoll.h (memcoll0): Add prototype.
18387         * lib/xmemcoll.c (xmemcoll0): New function.
18388         (collate_error): New function, refactored for use in both xmemcoll
18389         and xmemcoll0.
18390         * lib/xmemcoll.h (xmemcoll0): Add prototype.
18391         * m4/memcoll.m4: add inline invocation.
18392
18393 2010-07-06  Pádraig Brady  <P@draigBrady.com>
18394
18395         * build-aux/bootstrap: Remove any local translations
18396         from the translation project synchronization directory,
18397         so that local only translations are not distributed.
18398
18399 2010-07-04  Bruno Haible  <bruno@clisp.org>
18400
18401         fsusage: Clarify which code applies to which platforms.
18402         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
18403         platform.
18404         * lib/fsusage.c (get_fs_usage): Likewise.
18405
18406 2010-07-04  Bruno Haible  <bruno@clisp.org>
18407
18408         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
18409         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
18410         Reported by Martin Lambers <marlam@marlam.de>.
18411
18412 2010-07-04  Jim Meyering  <meyering@redhat.com>
18413
18414         hash: once again explicitly disallow insertion of NULL
18415         * lib/hash.c (hash_insert0): Reinstate just-removed test:
18416         inserting a NULL pointer cannot work with these functions.
18417         Add a comment with details.
18418         This reverts part of the 2010-07-01 commit, 5bef1a35
18419         "hash: extend module to deal with non-pointer keys".
18420
18421 2010-07-01  Bruno Haible  <bruno@clisp.org>
18422
18423         stdbool: Update doc.
18424         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
18425         Info from Christian Weisgerber <naddy@mips.inka.de>.
18426
18427 2010-07-01  Jim Meyering  <meyering@redhat.com>
18428
18429         hash: extend module to deal with non-pointer keys
18430         * lib/hash.c (hash_insert0): New interface, much like hash_insert
18431         but that allows insertion of non-pointer entries.
18432         Do not disallow an ENTRY value of NULL.
18433         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
18434         * lib/hash.h (hash_insert0): Declare.
18435
18436 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
18437
18438         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
18439         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
18440         not present (i.e. with autoconf 2.59 and when using gettextize, not
18441         gnulib), require AC_GNU_SOURCE instead.
18442
18443 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
18444
18445         idpriv-drop: Fix tests.
18446         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
18447         not to the test-idpriv-droptemp program.
18448
18449 2010-06-29  Bruno Haible  <bruno@clisp.org>
18450
18451         string: Fix syntax error with g++ 2.96.
18452         * lib/string.in.h (__pure__): Remove definition.
18453         (_GL_ATTRIBUTE_PURE): New macro.
18454         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
18455         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
18456         Reported by Christian Weisgerber <naddy@mips.inka.de>.
18457
18458 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
18459
18460         unitypes: Fix bug introduced on 2010-05-18.
18461         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
18462
18463 2010-06-22  Eric Blake  <eblake@redhat.com>
18464
18465         memmem: slight optimization
18466         * lib/str-two-way.h (critical_factorization): Update comments.
18467         Reduce work during factorization phase.
18468         Reported by Carlos Bueno <carlos@bueno.org>.
18469
18470 2010-06-21  Bruno Haible  <bruno@clisp.org>
18471
18472         Fix HAVE_CALLOC_POSIX misnomer.
18473         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
18474         !HAVE_CALLOC_POSIX.
18475         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
18476         HAVE_CALLOC_POSIX.
18477         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
18478         instead of HAVE_CALLOC_POSIX.
18479         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
18480         HAVE_CALLOC_POSIX.
18481
18482         Use modern idiom for calloc() replacement.
18483         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
18484         AC_FUNC_CALLOC.
18485         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
18486         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
18487         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18488         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
18489         (gl_REPLACE_CALLOC): New macro.
18490
18491 2010-06-21  Bruno Haible  <bruno@clisp.org>
18492
18493         Fix HAVE_REALLOC_POSIX misnomer.
18494         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
18495         !HAVE_REALLOC_POSIX.
18496         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
18497         HAVE_REALLOC_POSIX.
18498         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
18499         instead of HAVE_REALLOC_POSIX.
18500         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
18501         HAVE_REALLOC_POSIX.
18502
18503         Use modern idiom for realloc() replacement.
18504         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
18505         AC_FUNC_REALLOC.
18506         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
18507         Autoconf's AC_FUNC_REALLOC.
18508         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18509         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
18510         (gl_REPLACE_REALLOC): New macro.
18511         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
18512
18513 2010-06-21  Bruno Haible  <bruno@clisp.org>
18514
18515         Fix HAVE_MALLOC_POSIX misnomer.
18516         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
18517         !HAVE_MALLOC_POSIX.
18518         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
18519         HAVE_MALLOC_POSIX.
18520         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
18521         instead of HAVE_MALLOC_POSIX.
18522         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
18523         HAVE_MALLOC_POSIX.
18524
18525         Use modern idiom for malloc() replacement.
18526         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
18527         AC_FUNC_MALLOC.
18528         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
18529         Autoconf's AC_FUNC_MALLOC.
18530         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
18531         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
18532         (gl_REPLACE_MALLOC): New macro.
18533         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
18534
18535 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
18536
18537         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
18538         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
18539         This macro takes 3 arguments, not 4.
18540
18541 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
18542
18543         ipv6: fix detection under mingw
18544         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
18545         in6_addr.
18546
18547 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
18548
18549         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
18550         that strtod() works when cross-compiling to a glibc version known
18551         to work.
18552
18553 2010-06-15  Bruno Haible  <bruno@clisp.org>
18554
18555         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
18556
18557 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
18558
18559         select: Correct timeout.
18560         * lib/select.c (rpl_select): Compute wait_timeout correctly.
18561
18562 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
18563
18564         git-version-gen: init shell var to avoid env var influence
18565         * build-aux/git-version-gen (v): Init shell var to empty.
18566
18567 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
18568
18569         priv-set: Don't assume that priv.h exists merely because getppriv does.
18570         See Jan Andersen's bug report about AIX 5L in
18571         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
18572         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
18573         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
18574         * lib/priv-set.h: Likewise.
18575         * tests/test-priv-set.c: Likewise.
18576
18577 2010-06-13  Bruno Haible  <bruno@clisp.org>
18578
18579         relocatable: Make it easier to test whether to install wrappers.
18580         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
18581         RELOCATABLE_VIA_WRAPPER.
18582
18583 2010-06-13  Bruno Haible  <bruno@clisp.org>
18584
18585         gnulib-tool: Display specified modules and dependencies differently.
18586         * gnulib-tool (func_show_module_list): New function.
18587         (func_import, func_create_testdir): Invoke it.
18588         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
18589
18590 2010-06-13  Bruno Haible  <bruno@clisp.org>
18591
18592         gnulib-tool: Align code of func_import and func_create_testdir.
18593         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
18594         specified_modules.
18595
18596 2010-06-12  Jim Meyering  <meyering@redhat.com>
18597
18598         test-inttostr: avoid spurious failure on Solaris 9
18599         * tests/test-inttostr.c (main): Skip the test when snprintf fails
18600         to accept "%ju".  Reported by Bruno Haible.
18601
18602 2010-06-11  Jim Meyering  <meyering@redhat.com>
18603
18604         test-sys_socket: mark variables as used more readably
18605         * tests/test-sys_socket.c (main): Mark otherwise unused variables
18606         as "used" explicitly via (void) statement casts.  This is more
18607         readable than using them in an artificial return expression.
18608         Suggestion from Bruno Haible.
18609
18610 2010-06-11  Bruno Haible  <bruno@clisp.org>
18611
18612         Avoid some more warnings from "gcc -Wwrite-strings".
18613         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
18614         to 'const char *'.
18615         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
18616         * tests/test-c-strcasestr.c (main): Likewise.
18617         * tests/test-mbscasestr1.c (main): Likewise.
18618         * tests/test-mbscasestr2.c (main): Likewise.
18619         * tests/test-memmem.c (main): Likewise.
18620         * tests/test-strstr.c (main): Likewise.
18621         * tests/test-strcasestr.c (main): Likewise.
18622
18623 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18624
18625         init.sh: change framework_failure_ to fail with status 99, not 1
18626         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
18627         automake's parallel-tests rule that this is an unexpected failure,
18628         even if the test is listed in XFAIL_TESTS.
18629
18630 2010-06-11  Jim Meyering  <meyering@redhat.com>
18631
18632         test-inttostr: avoid warnings about 4-6KB literal strings
18633         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
18634         Include "macros.h", for its definition of ASSERT.
18635         (CK): s/assert/ASSERT/
18636         * modules/inttostr-tests (Files): Add macros.h.
18637
18638         init.sh: don't use $ME_ or skip_ before they are defined
18639         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
18640         their first uses.  Also hoist their companions: warn_, fail_,
18641         framework_failure_, $stderr_fileno.  Prompted by a patch from
18642         Stefano Lattarini.
18643
18644         test-sys_socket: avoid set-but-not-used warnings from gcc
18645         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
18646         avoid warning about set-but-not-used variables.
18647
18648         test-xvasprintf: avoid 'const' discard warnings
18649         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
18650         "const" when assigning from literal strings.
18651         (test_xasprintf): Add "void" in function argument list to placate
18652         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
18653
18654         tests: avoid compilation warnings in argmatch and exclude tests...
18655         in packages that define ARGMATCH_DIE_DECL, like coreutils.
18656         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
18657         Since it always exits, declare with the "noreturn" attribute.
18658         * tests/test-argmatch.c: Likewise.
18659
18660         tests: avoid 'const' discard warnings in mbsstr tests
18661         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
18662         * tests/test-mbsstr2.c (main): Likewise.
18663
18664         test-verify: avoid warning from gcc's -Wmissing-declarations
18665         * tests/test-verify.c (function): Declare to be static.
18666
18667         test-inttostr.c: include <string.h> for use of strcmp
18668         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
18669
18670         test-linkat: avoid failed assertion on "other" architectures
18671         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
18672         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
18673         sparc: https://bugs.launchpad.net/bugs/591968
18674
18675 2010-06-11  Jim Meyering  <meyering@redhat.com>
18676
18677         printf.m4: avoid autoconf's "Expanded Before Required" warning
18678         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
18679         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
18680         autoconf warning.
18681
18682 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
18683
18684         Replacement header templates are now named with ".in", not "_".
18685         * doc/gnulib-intro.texi: Correct.
18686
18687 2010-06-10  Jim Meyering  <meyering@redhat.com>
18688
18689         inttostr-tests: depend on snprintf, not snprintf-posix
18690         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
18691         snprintf-posix, to avoid this aclocal failure:
18692           missing file gnulib-tests/vasnprintf.c
18693           configure.ac:45: error: expected source file, required through \
18694           AC_LIBSOURCES, not found
18695
18696 2010-06-10  Jim Meyering  <meyering@redhat.com>
18697
18698         inttostr: add a new function, inttostr, and tests
18699         The namesake function was not available.  The existence of the
18700         template file, inttostr.c makes its addition nontrivial.
18701         * lib/anytostr.c: Rename from inttostr.c.
18702         (anytostr): Rename from inttostr.
18703         * lib/inttostr.c: New file.
18704         * modules/inttostr (Files): Add anytostr.c.
18705         (Makefile.am): Set lib_SOURCES instead of ...
18706         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
18707         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
18708         * lib/offtostr.c: Likewise.
18709         * lib/uinttostr.c: Likewise.
18710         * lib/umaxtostr.c: Likewise.
18711         * modules/inttostr-tests: New file.
18712         * tests/test-inttostr.c: New file.  Test these functions.
18713
18714 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
18715             Bruno Haible  <bruno@clisp.org>
18716
18717         Add "Extending Gnulib" chapter to manual.
18718         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
18719         chapter.
18720         (Extending Gnulib): New chapter.
18721         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
18722         chapter.
18723
18724 2010-06-09  Bruno Haible  <bruno@clisp.org>
18725
18726         Avoid relocwrapper link errors due to gnulib replacement functions.
18727         * lib/areadlink.c: Use the system's malloc, realloc functions.
18728         (areadlink): Set errno to ENOMEM explicitly.
18729         * modules/areadlink (Depends-on): Remove malloc-posix.
18730         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18731
18732 2010-06-09  Bruno Haible  <bruno@clisp.org>
18733
18734         Avoid relocwrapper link errors due to gnulib replacement functions.
18735         * lib/canonicalize-lgpl.c: Use the system's malloc function.
18736         * lib/malloca.c: Likewise.
18737         * lib/relocatable.c: Likewise.
18738         * lib/progreloc.c: Use the system's malloc, sprintf functions.
18739         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
18740         * lib/setenv.c: Use the system's malloc, realloc functions.
18741         * lib/strerror.c: Use the system's sprintf function.
18742         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18743
18744 2010-06-04  Bruno Haible  <bruno@clisp.org>
18745
18746         Prefer documented low-level autoconf macro names.
18747         * m4/lib-link.m4: Use m4_translit instead of translit.
18748         * m4/environ.m4: Likewise.
18749         * m4/mathfunc.m4: Likewise.
18750         * m4/onceonly.m4: Likewise.
18751         * m4/stdint.m4: Likewise.
18752         Suggested by Eric Blake.
18753
18754 2010-06-04  Martin Lambers  <marlam@marlam.de>
18755             Bruno Haible  <bruno@clisp.org>
18756
18757         havelib: Allow library names with '+' characters.
18758         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
18759         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
18760
18761 2010-06-09  Bruno Haible  <bruno@clisp.org>
18762
18763         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
18764         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
18765         realloc failed.
18766
18767 2010-06-08  Peter Simons  <simons@cryp.to>
18768
18769         maint.mk: make the news-check rule more configurable
18770         * top/maint.mk (news-check-lines-spec): New variable.
18771         (news-check): Use "sed -n 1,10p" in place of "head".
18772
18773 2010-06-07  Jim Meyering  <meyering@redhat.com>
18774
18775         do-release-commit-and-tag: fix typo in --help
18776         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
18777
18778         regex: avoid new dead-code warning with gcc-4.6.0
18779         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
18780         if-block containing a while-loop.  It's been unused for at least
18781         5 years.
18782
18783 2010-06-05  Bruno Haible  <bruno@clisp.org>
18784
18785         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
18786         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
18787
18788 2010-06-04  Bruno Haible  <bruno@clisp.org>
18789
18790         Update to GNU gettext 0.18.1.
18791         * modules/gettext (configure.ac): Require gettext infrastructure from
18792         version 0.18.1.
18793
18794 2010-06-03  Bruno Haible  <bruno@clisp.org>
18795
18796         Don't use AC_LIBOBJ with file names in subdirectories.
18797         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
18798         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
18799         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
18800         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
18801         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
18802         gl_LIBUNISTRING_LIBSOURCE.
18803         (Makefile.am): Augment lib_SOURCES here, conditionally.
18804         * NEWS: Drop requirement for Automake option 'subdir-objects'.
18805
18806 2010-06-03  Bruno Haible  <bruno@clisp.org>
18807
18808         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
18809         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
18810         expansion does not end with a newline.
18811         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
18812         unnecessary newline.
18813
18814 2010-06-03  Bruno Haible  <bruno@clisp.org>
18815
18816         Reduce dependencies.
18817         * tests/test-quotearg.h: New file, extracted from
18818         tests/test-quotearg.c.
18819         * tests/test-quotearg-simple.c: New file, extracted from
18820         tests/test-quotearg.c.
18821         * tests/test-quotearg.c: Don't include <ctype.h>.
18822         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
18823         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
18824         use_quote_double_quotes, use_quotearg_colon): Moved to
18825         tests/test-quotearg.h.
18826         (results_g, flag_results, custom_quotes, custom_results): Moved
18827         to tests/test-quotearg-simple.c.
18828         (main): Moved the part that does not depend on gettext to
18829         tests/test-quotearg-simple.c. Return 77 if the test cannot be
18830         performed.
18831         * modules/quotearg-simple: New file.
18832         * modules/quotearg-simple-tests: New file.
18833         * modules/quotearg (Depends-on): Add quotearg-simple.
18834         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
18835         (Files): Add tests/test-quotearg.h.
18836         Reported by Paolo Bonzini.
18837
18838 2010-06-03  Bruno Haible  <bruno@clisp.org>
18839
18840         Reduce dependencies.
18841         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
18842
18843 2010-06-03  Bruno Haible  <bruno@clisp.org>
18844
18845         time: Undefine more broken macros.
18846         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
18847         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
18848         Reported by Eric Blake.
18849
18850 2010-06-03  Bruno Haible  <bruno@clisp.org>
18851
18852         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
18853         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
18854         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
18855         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
18856         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
18857         Reported by Ludovic Courtès <ludo@gnu.org>.
18858
18859 2010-06-02  Eric Blake  <eblake@redhat.com>
18860
18861         time: work with mingw + pthreads-win32 library
18862         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
18863         if timespec is defined only in pthread.h.
18864         * modules/time (Makefile.am): Substitute it.
18865         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
18866         <pthread.h>, when needed.
18867         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
18868         from the library.
18869
18870 2010-05-31  Bruno Haible  <bruno@clisp.org>
18871
18872         Avoid expanding two macros in the wrong order.
18873         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
18874         gl_LIBUNISTRING if it is defined.
18875         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
18876         autoconf >= 2.64.
18877         Reported by Ludovic Courtès <ludo@gnu.org>.
18878
18879 2010-05-27  Jim Meyering  <meyering@redhat.com>
18880
18881         maint.mk: also prohibit "#undef" of always-defined symbols
18882         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
18883         Allow more than one space before the symbol name.
18884         (sc_prohibit_always-defined_macros): Use grep's -E, now that
18885         the regexp uses alternation.
18886
18887 2010-05-26  Eric Blake  <eblake@redhat.com>
18888
18889         maint.mk: avoid echo -e
18890         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
18891         Convert all uses of echo -* to printf.
18892         Reported by Matthias Bolte.
18893
18894 2010-05-25  Bruno Haible  <bruno@clisp.org>
18895
18896         Update to GNU gettext 0.18, part 2.
18897         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
18898         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
18899
18900 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18901
18902         Add missing include in test-pwrite.c.
18903         * tests/test-pwrite.c: Include string.h, for strcmp.
18904
18905 2010-05-24  Bruno Haible  <bruno@clisp.org>
18906
18907         * NEWS: Mention requirement for Automake option 'subdir-objects'.
18908
18909 2010-05-24  Bruno Haible  <bruno@clisp.org>
18910
18911         Don't use conversion with transliteration in u{8,16,32}_strcoll.
18912         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
18913         iconveh_error argument.
18914         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
18915         U_STRCONV_TO_LOCALE.
18916         * lib/unistr/u16-strcoll.c: Likewise.
18917         * lib/unistr/u32-strcoll.c: Likewise.
18918         * modules/unistr/u8-strcoll (Depends-on): Add
18919         uniconv/u8-strconv-to-enc, localcharset. Remove
18920         uniconv/u8-strconv-to-locale.
18921         (configure.ac): Bump version number.
18922         * modules/unistr/u16-strcoll (Depends-on): Add
18923         uniconv/u16-strconv-to-enc, localcharset. Remove
18924         uniconv/u16-strconv-to-locale.
18925         (configure.ac): Bump version number.
18926         * modules/unistr/u32-strcoll (Depends-on): Add
18927         uniconv/u32-strconv-to-enc, localcharset. Remove
18928         uniconv/u32-strconv-to-locale.
18929         (configure.ac): Bump version number.
18930
18931 2010-05-24  Bruno Haible  <bruno@clisp.org>
18932
18933         Avoid a test failure on NetBSD 5.0.
18934         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
18935         an iconv() bug.
18936
18937 2010-05-24  Bruno Haible  <bruno@clisp.org>
18938
18939         Adjust #include directive style.
18940         * modules/regex (Includes): Recommend to write <regex.h>.
18941
18942 2010-05-24  Bruno Haible  <bruno@clisp.org>
18943
18944         regex: Don't require alloca.
18945         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
18946         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
18947         only inside if (0).
18948
18949 2010-05-23  Jim Meyering  <meyering@redhat.com>
18950
18951         test-renameat.c: include <sys/stat.h>
18952         * tests/test-renameat.c: Include <sys/stat.h>; required for
18953         definition of S_IS* macros.
18954
18955 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
18956
18957         Update maintainer documentation for 'relocatable-prog' module.
18958         * doc/relocatable-maint.texi: Update.
18959         Comments by Bruno Haible.
18960
18961 2010-05-23  Bruno Haible  <bruno@clisp.org>
18962
18963         git-merge-changelog: Enable --split-merged-entry by default.
18964         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
18965         (usage): Don't mention this option any more.
18966         Reported by Ralf Wildenhues.
18967
18968 2010-05-23  Jim Meyering  <meyering@redhat.com>
18969
18970         test-pwrite: do not leave behind a test file named "out"
18971         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
18972         The trivial-looking use of init.sh is really necessary.
18973         It ensures that the temporary file, "out", is created in
18974         a temporary directory, and removed upon termination.
18975         * tests/test-pwrite.sh: Re-add file.
18976         * modules/pwrite-tests: Reference it.
18977
18978 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18979
18980         Fix output redirection buglet in init.sh.
18981         * tests/init.sh: Fix redirection of stderr.
18982
18983 2010-05-20  Simon Josefsson  <simon@josefsson.org>
18984
18985         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
18986
18987 2010-05-17  Simon Josefsson  <simon@josefsson.org>
18988
18989         * modules/valgrind-tests: New file.
18990         * m4/valgrind-tests.m4: New file.
18991         * doc/valgrind-tests.texi: New file.
18992         * doc/gnulib.texi (Running self-tests under valgrind): New
18993         section.
18994
18995 2010-05-19  Bruno Haible  <bruno@clisp.org>
18996
18997         Clean up dead code in recent commit.
18998         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
18999         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
19000         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
19001         Suggested by Paolo Bonzini.
19002
19003 2010-05-19  Bruno Haible  <bruno@clisp.org>
19004
19005         Avoid valgrind error reports from libunistring.
19006         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
19007         * modules/libunistring (Files): Add it.
19008         * modules/libunistring-optional (Files): Likewise.
19009
19010 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
19011             Bruno Haible  <bruno@clisp.org>
19012
19013         New module 'libunistring-optional'.
19014         * modules/libunistring-optional: New file.
19015         * m4/libunistring-base.m4: New file.
19016         * m4/libunistring-optional.m4: New file.
19017         * lib/unicase.in.h: Renamed from lib/unicase.h.
19018         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
19019         * lib/unictype.in.h: Renamed from lib/unictype.h.
19020         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
19021         * lib/uniname.in.h: Renamed from lib/uniname.h.
19022         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
19023         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
19024         * lib/unistr.in.h: Renamed from lib/unistr.h.
19025         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
19026         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
19027         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
19028         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
19029         gl_LIBUNISTRING. If the library was found, determine the installed
19030         version and set LIBUNISTRING_VERSION.
19031         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
19032         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
19033         handle a configuration option --with-included-libunistring.
19034         * modules/libunistring (Files): Add m4/absolute-header.m4.
19035         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
19036         Add m4/libunistring-base.m4.
19037         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19038         (Makefile.am): Build unicase.h from unicase.in.h.
19039         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
19040         Add m4/libunistring-base.m4.
19041         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19042         (Makefile.am): Build uniconv.h from uniconv.in.h.
19043         * modules/unictype/base (Files): Use unictype.in.h instead of
19044         unictype.h. Add m4/libunistring-base.m4.
19045         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19046         (Makefile.am): Build unictype.h from unictype.in.h.
19047         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
19048         Add m4/libunistring-base.m4.
19049         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19050         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
19051         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
19052         Add m4/libunistring-base.m4.
19053         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19054         (Makefile.am): Build uniname.h from uniname.in.h.
19055         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
19056         Add m4/libunistring-base.m4.
19057         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19058         (Makefile.am): Build uninorm.h from uninorm.in.h.
19059         * modules/unistdio/base (Files): Use unistdio.in.h instead of
19060         unistdio.h. Add m4/libunistring-base.m4.
19061         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19062         (Makefile.am): Build unistdio.h from unistdio.in.h.
19063         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
19064         Add m4/libunistring-base.m4.
19065         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19066         (Makefile.am): Build unistr.h from unistr.in.h.
19067         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
19068         Add m4/libunistring-base.m4.
19069         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19070         (Makefile.am): Build unitypes.h from unitypes.in.h.
19071         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
19072         Add m4/libunistring-base.m4.
19073         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19074         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
19075         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
19076         uniwidth.h. Add m4/libunistring-base.m4.
19077         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
19078         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
19079         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
19080         instead of augmenting lib_SOURCES.
19081         * modules/unicase/empty-suffix-context: Likewise.
19082         * modules/unicase/locale-language: Likewise.
19083         * modules/unicase/tolower: Likewise.
19084         * modules/unicase/totitle: Likewise.
19085         * modules/unicase/toupper: Likewise.
19086         * modules/unicase/u8-casecmp: Likewise.
19087         * modules/unicase/u8-casecoll: Likewise.
19088         * modules/unicase/u8-casefold: Likewise.
19089         * modules/unicase/u8-casexfrm: Likewise.
19090         * modules/unicase/u8-ct-casefold: Likewise.
19091         * modules/unicase/u8-ct-tolower: Likewise.
19092         * modules/unicase/u8-ct-totitle: Likewise.
19093         * modules/unicase/u8-ct-toupper: Likewise.
19094         * modules/unicase/u8-is-cased: Likewise.
19095         * modules/unicase/u8-is-casefolded: Likewise.
19096         * modules/unicase/u8-is-lowercase: Likewise.
19097         * modules/unicase/u8-is-titlecase: Likewise.
19098         * modules/unicase/u8-is-uppercase: Likewise.
19099         * modules/unicase/u8-prefix-context: Likewise.
19100         * modules/unicase/u8-suffix-context: Likewise.
19101         * modules/unicase/u8-tolower: Likewise.
19102         * modules/unicase/u8-totitle: Likewise.
19103         * modules/unicase/u8-toupper: Likewise.
19104         * modules/unicase/u16-casecmp: Likewise.
19105         * modules/unicase/u16-casecoll: Likewise.
19106         * modules/unicase/u16-casefold: Likewise.
19107         * modules/unicase/u16-casexfrm: Likewise.
19108         * modules/unicase/u16-ct-casefold: Likewise.
19109         * modules/unicase/u16-ct-tolower: Likewise.
19110         * modules/unicase/u16-ct-totitle: Likewise.
19111         * modules/unicase/u16-ct-toupper: Likewise.
19112         * modules/unicase/u16-is-cased: Likewise.
19113         * modules/unicase/u16-is-casefolded: Likewise.
19114         * modules/unicase/u16-is-lowercase: Likewise.
19115         * modules/unicase/u16-is-titlecase: Likewise.
19116         * modules/unicase/u16-is-uppercase: Likewise.
19117         * modules/unicase/u16-prefix-context: Likewise.
19118         * modules/unicase/u16-suffix-context: Likewise.
19119         * modules/unicase/u16-tolower: Likewise.
19120         * modules/unicase/u16-totitle: Likewise.
19121         * modules/unicase/u16-toupper: Likewise.
19122         * modules/unicase/u32-casecmp: Likewise.
19123         * modules/unicase/u32-casecoll: Likewise.
19124         * modules/unicase/u32-casefold: Likewise.
19125         * modules/unicase/u32-casexfrm: Likewise.
19126         * modules/unicase/u32-ct-casefold: Likewise.
19127         * modules/unicase/u32-ct-tolower: Likewise.
19128         * modules/unicase/u32-ct-totitle: Likewise.
19129         * modules/unicase/u32-ct-toupper: Likewise.
19130         * modules/unicase/u32-is-cased: Likewise.
19131         * modules/unicase/u32-is-casefolded: Likewise.
19132         * modules/unicase/u32-is-lowercase: Likewise.
19133         * modules/unicase/u32-is-titlecase: Likewise.
19134         * modules/unicase/u32-is-uppercase: Likewise.
19135         * modules/unicase/u32-prefix-context: Likewise.
19136         * modules/unicase/u32-suffix-context: Likewise.
19137         * modules/unicase/u32-tolower: Likewise.
19138         * modules/unicase/u32-totitle: Likewise.
19139         * modules/unicase/u32-toupper: Likewise.
19140         * modules/unicase/ulc-casecmp: Likewise.
19141         * modules/unicase/ulc-casecoll: Likewise.
19142         * modules/unicase/ulc-casexfrm: Likewise.
19143         * modules/uniconv/u8-conv-from-enc: Likewise.
19144         * modules/uniconv/u8-conv-to-enc: Likewise.
19145         * modules/uniconv/u8-strconv-from-enc: Likewise.
19146         * modules/uniconv/u8-strconv-from-locale: Likewise.
19147         * modules/uniconv/u8-strconv-to-enc: Likewise.
19148         * modules/uniconv/u8-strconv-to-locale: Likewise.
19149         * modules/uniconv/u16-conv-from-enc: Likewise.
19150         * modules/uniconv/u16-conv-to-enc: Likewise.
19151         * modules/uniconv/u16-strconv-from-enc: Likewise.
19152         * modules/uniconv/u16-strconv-from-locale: Likewise.
19153         * modules/uniconv/u16-strconv-to-enc: Likewise.
19154         * modules/uniconv/u16-strconv-to-locale: Likewise.
19155         * modules/uniconv/u32-conv-from-enc: Likewise.
19156         * modules/uniconv/u32-conv-to-enc: Likewise.
19157         * modules/uniconv/u32-strconv-from-enc: Likewise.
19158         * modules/uniconv/u32-strconv-from-locale: Likewise.
19159         * modules/uniconv/u32-strconv-to-enc: Likewise.
19160         * modules/uniconv/u32-strconv-to-locale: Likewise.
19161         * modules/unictype/bidicategory-byname: Likewise.
19162         * modules/unictype/bidicategory-name: Likewise.
19163         * modules/unictype/bidicategory-of: Likewise.
19164         * modules/unictype/bidicategory-test: Likewise.
19165         * modules/unictype/block-list: Likewise.
19166         * modules/unictype/block-test: Likewise.
19167         * modules/unictype/category-C: Likewise.
19168         * modules/unictype/category-Cc: Likewise.
19169         * modules/unictype/category-Cf: Likewise.
19170         * modules/unictype/category-Cn: Likewise.
19171         * modules/unictype/category-Co: Likewise.
19172         * modules/unictype/category-Cs: Likewise.
19173         * modules/unictype/category-L: Likewise.
19174         * modules/unictype/category-Ll: Likewise.
19175         * modules/unictype/category-Lm: Likewise.
19176         * modules/unictype/category-Lo: Likewise.
19177         * modules/unictype/category-Lt: Likewise.
19178         * modules/unictype/category-Lu: Likewise.
19179         * modules/unictype/category-M: Likewise.
19180         * modules/unictype/category-Mc: Likewise.
19181         * modules/unictype/category-Me: Likewise.
19182         * modules/unictype/category-Mn: Likewise.
19183         * modules/unictype/category-N: Likewise.
19184         * modules/unictype/category-Nd: Likewise.
19185         * modules/unictype/category-Nl: Likewise.
19186         * modules/unictype/category-No: Likewise.
19187         * modules/unictype/category-P: Likewise.
19188         * modules/unictype/category-Pc: Likewise.
19189         * modules/unictype/category-Pd: Likewise.
19190         * modules/unictype/category-Pe: Likewise.
19191         * modules/unictype/category-Pf: Likewise.
19192         * modules/unictype/category-Pi: Likewise.
19193         * modules/unictype/category-Po: Likewise.
19194         * modules/unictype/category-Ps: Likewise.
19195         * modules/unictype/category-S: Likewise.
19196         * modules/unictype/category-Sc: Likewise.
19197         * modules/unictype/category-Sk: Likewise.
19198         * modules/unictype/category-Sm: Likewise.
19199         * modules/unictype/category-So: Likewise.
19200         * modules/unictype/category-Z: Likewise.
19201         * modules/unictype/category-Zl: Likewise.
19202         * modules/unictype/category-Zp: Likewise.
19203         * modules/unictype/category-Zs: Likewise.
19204         * modules/unictype/category-and: Likewise.
19205         * modules/unictype/category-and-not: Likewise.
19206         * modules/unictype/category-byname: Likewise.
19207         * modules/unictype/category-name: Likewise.
19208         * modules/unictype/category-none: Likewise.
19209         * modules/unictype/category-of: Likewise.
19210         * modules/unictype/category-or: Likewise.
19211         * modules/unictype/category-test: Likewise.
19212         * modules/unictype/combining-class: Likewise.
19213         * modules/unictype/ctype-alnum: Likewise.
19214         * modules/unictype/ctype-alpha: Likewise.
19215         * modules/unictype/ctype-blank: Likewise.
19216         * modules/unictype/ctype-cntrl: Likewise.
19217         * modules/unictype/ctype-digit: Likewise.
19218         * modules/unictype/ctype-graph: Likewise.
19219         * modules/unictype/ctype-lower: Likewise.
19220         * modules/unictype/ctype-print: Likewise.
19221         * modules/unictype/ctype-punct: Likewise.
19222         * modules/unictype/ctype-space: Likewise.
19223         * modules/unictype/ctype-upper: Likewise.
19224         * modules/unictype/ctype-xdigit: Likewise.
19225         * modules/unictype/decimal-digit: Likewise.
19226         * modules/unictype/digit: Likewise.
19227         * modules/unictype/mirror: Likewise.
19228         * modules/unictype/numeric: Likewise.
19229         * modules/unictype/property-alphabetic: Likewise.
19230         * modules/unictype/property-ascii-hex-digit: Likewise.
19231         * modules/unictype/property-bidi-arabic-digit: Likewise.
19232         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
19233         * modules/unictype/property-bidi-block-separator: Likewise.
19234         * modules/unictype/property-bidi-boundary-neutral: Likewise.
19235         * modules/unictype/property-bidi-common-separator: Likewise.
19236         * modules/unictype/property-bidi-control: Likewise.
19237         * modules/unictype/property-bidi-embedding-or-override: Likewise.
19238         * modules/unictype/property-bidi-eur-num-separator: Likewise.
19239         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
19240         * modules/unictype/property-bidi-european-digit: Likewise.
19241         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
19242         * modules/unictype/property-bidi-left-to-right: Likewise.
19243         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
19244         * modules/unictype/property-bidi-other-neutral: Likewise.
19245         * modules/unictype/property-bidi-pdf: Likewise.
19246         * modules/unictype/property-bidi-segment-separator: Likewise.
19247         * modules/unictype/property-bidi-whitespace: Likewise.
19248         * modules/unictype/property-byname: Likewise.
19249         * modules/unictype/property-combining: Likewise.
19250         * modules/unictype/property-composite: Likewise.
19251         * modules/unictype/property-currency-symbol: Likewise.
19252         * modules/unictype/property-dash: Likewise.
19253         * modules/unictype/property-decimal-digit: Likewise.
19254         * modules/unictype/property-default-ignorable-code-point: Likewise.
19255         * modules/unictype/property-deprecated: Likewise.
19256         * modules/unictype/property-diacritic: Likewise.
19257         * modules/unictype/property-extender: Likewise.
19258         * modules/unictype/property-format-control: Likewise.
19259         * modules/unictype/property-grapheme-base: Likewise.
19260         * modules/unictype/property-grapheme-extend: Likewise.
19261         * modules/unictype/property-grapheme-link: Likewise.
19262         * modules/unictype/property-hex-digit: Likewise.
19263         * modules/unictype/property-hyphen: Likewise.
19264         * modules/unictype/property-id-continue: Likewise.
19265         * modules/unictype/property-id-start: Likewise.
19266         * modules/unictype/property-ideographic: Likewise.
19267         * modules/unictype/property-ids-binary-operator: Likewise.
19268         * modules/unictype/property-ids-trinary-operator: Likewise.
19269         * modules/unictype/property-ignorable-control: Likewise.
19270         * modules/unictype/property-iso-control: Likewise.
19271         * modules/unictype/property-join-control: Likewise.
19272         * modules/unictype/property-left-of-pair: Likewise.
19273         * modules/unictype/property-line-separator: Likewise.
19274         * modules/unictype/property-logical-order-exception: Likewise.
19275         * modules/unictype/property-lowercase: Likewise.
19276         * modules/unictype/property-math: Likewise.
19277         * modules/unictype/property-non-break: Likewise.
19278         * modules/unictype/property-not-a-character: Likewise.
19279         * modules/unictype/property-numeric: Likewise.
19280         * modules/unictype/property-other-alphabetic: Likewise.
19281         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
19282         * modules/unictype/property-other-grapheme-extend: Likewise.
19283         * modules/unictype/property-other-id-continue: Likewise.
19284         * modules/unictype/property-other-id-start: Likewise.
19285         * modules/unictype/property-other-lowercase: Likewise.
19286         * modules/unictype/property-other-math: Likewise.
19287         * modules/unictype/property-other-uppercase: Likewise.
19288         * modules/unictype/property-paired-punctuation: Likewise.
19289         * modules/unictype/property-paragraph-separator: Likewise.
19290         * modules/unictype/property-pattern-syntax: Likewise.
19291         * modules/unictype/property-pattern-white-space: Likewise.
19292         * modules/unictype/property-private-use: Likewise.
19293         * modules/unictype/property-punctuation: Likewise.
19294         * modules/unictype/property-quotation-mark: Likewise.
19295         * modules/unictype/property-radical: Likewise.
19296         * modules/unictype/property-sentence-terminal: Likewise.
19297         * modules/unictype/property-soft-dotted: Likewise.
19298         * modules/unictype/property-space: Likewise.
19299         * modules/unictype/property-terminal-punctuation: Likewise.
19300         * modules/unictype/property-test: Likewise.
19301         * modules/unictype/property-titlecase: Likewise.
19302         * modules/unictype/property-unassigned-code-value: Likewise.
19303         * modules/unictype/property-unified-ideograph: Likewise.
19304         * modules/unictype/property-uppercase: Likewise.
19305         * modules/unictype/property-variation-selector: Likewise.
19306         * modules/unictype/property-white-space: Likewise.
19307         * modules/unictype/property-xid-continue: Likewise.
19308         * modules/unictype/property-xid-start: Likewise.
19309         * modules/unictype/property-zero-width: Likewise.
19310         * modules/unictype/scripts: Likewise.
19311         * modules/unictype/syntax-c-ident: Likewise.
19312         * modules/unictype/syntax-c-whitespace: Likewise.
19313         * modules/unictype/syntax-java-ident: Likewise.
19314         * modules/unictype/syntax-java-whitespace: Likewise.
19315         * modules/unilbrk/u8-possible-linebreaks: Likewise.
19316         * modules/unilbrk/u8-width-linebreaks: Likewise.
19317         * modules/unilbrk/u16-possible-linebreaks: Likewise.
19318         * modules/unilbrk/u16-width-linebreaks: Likewise.
19319         * modules/unilbrk/u32-possible-linebreaks: Likewise.
19320         * modules/unilbrk/u32-width-linebreaks: Likewise.
19321         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
19322         * modules/unilbrk/ulc-width-linebreaks: Likewise.
19323         * modules/uniname/uniname: Likewise.
19324         * modules/uninorm/canonical-decomposition: Likewise.
19325         * modules/uninorm/composition: Likewise.
19326         * modules/uninorm/decomposing-form: Likewise.
19327         * modules/uninorm/decomposition: Likewise.
19328         * modules/uninorm/filter: Likewise.
19329         * modules/uninorm/nfc: Likewise.
19330         * modules/uninorm/nfd: Likewise.
19331         * modules/uninorm/nfkc: Likewise.
19332         * modules/uninorm/nfkd: Likewise.
19333         * modules/uninorm/u8-normalize: Likewise.
19334         * modules/uninorm/u8-normcmp: Likewise.
19335         * modules/uninorm/u8-normcoll: Likewise.
19336         * modules/uninorm/u8-normxfrm: Likewise.
19337         * modules/uninorm/u16-normalize: Likewise.
19338         * modules/uninorm/u16-normcmp: Likewise.
19339         * modules/uninorm/u16-normcoll: Likewise.
19340         * modules/uninorm/u16-normxfrm: Likewise.
19341         * modules/uninorm/u32-normalize: Likewise.
19342         * modules/uninorm/u32-normcmp: Likewise.
19343         * modules/uninorm/u32-normcoll: Likewise.
19344         * modules/uninorm/u32-normxfrm: Likewise.
19345         * modules/unistdio/u8-asnprintf: Likewise.
19346         * modules/unistdio/u8-asprintf: Likewise.
19347         * modules/unistdio/u8-snprintf: Likewise.
19348         * modules/unistdio/u8-sprintf: Likewise.
19349         * modules/unistdio/u8-u8-asnprintf: Likewise.
19350         * modules/unistdio/u8-u8-asprintf: Likewise.
19351         * modules/unistdio/u8-u8-snprintf: Likewise.
19352         * modules/unistdio/u8-u8-sprintf: Likewise.
19353         * modules/unistdio/u8-u8-vasnprintf: Likewise.
19354         * modules/unistdio/u8-u8-vasprintf: Likewise.
19355         * modules/unistdio/u8-u8-vsnprintf: Likewise.
19356         * modules/unistdio/u8-u8-vsprintf: Likewise.
19357         * modules/unistdio/u8-vasnprintf: Likewise.
19358         * modules/unistdio/u8-vasprintf: Likewise.
19359         * modules/unistdio/u8-vsnprintf: Likewise.
19360         * modules/unistdio/u8-vsprintf: Likewise.
19361         * modules/unistdio/u16-asnprintf: Likewise.
19362         * modules/unistdio/u16-asprintf: Likewise.
19363         * modules/unistdio/u16-snprintf: Likewise.
19364         * modules/unistdio/u16-sprintf: Likewise.
19365         * modules/unistdio/u16-u16-asnprintf: Likewise.
19366         * modules/unistdio/u16-u16-asprintf: Likewise.
19367         * modules/unistdio/u16-u16-snprintf: Likewise.
19368         * modules/unistdio/u16-u16-sprintf: Likewise.
19369         * modules/unistdio/u16-u16-vasnprintf: Likewise.
19370         * modules/unistdio/u16-u16-vasprintf: Likewise.
19371         * modules/unistdio/u16-u16-vsnprintf: Likewise.
19372         * modules/unistdio/u16-u16-vsprintf: Likewise.
19373         * modules/unistdio/u16-vasnprintf: Likewise.
19374         * modules/unistdio/u16-vasprintf: Likewise.
19375         * modules/unistdio/u16-vsnprintf: Likewise.
19376         * modules/unistdio/u16-vsprintf: Likewise.
19377         * modules/unistdio/u32-asnprintf: Likewise.
19378         * modules/unistdio/u32-asprintf: Likewise.
19379         * modules/unistdio/u32-snprintf: Likewise.
19380         * modules/unistdio/u32-sprintf: Likewise.
19381         * modules/unistdio/u32-u32-asnprintf: Likewise.
19382         * modules/unistdio/u32-u32-asprintf: Likewise.
19383         * modules/unistdio/u32-u32-snprintf: Likewise.
19384         * modules/unistdio/u32-u32-sprintf: Likewise.
19385         * modules/unistdio/u32-u32-vasnprintf: Likewise.
19386         * modules/unistdio/u32-u32-vasprintf: Likewise.
19387         * modules/unistdio/u32-u32-vsnprintf: Likewise.
19388         * modules/unistdio/u32-u32-vsprintf: Likewise.
19389         * modules/unistdio/u32-vasnprintf: Likewise.
19390         * modules/unistdio/u32-vasprintf: Likewise.
19391         * modules/unistdio/u32-vsnprintf: Likewise.
19392         * modules/unistdio/u32-vsprintf: Likewise.
19393         * modules/unistdio/ulc-asnprintf: Likewise.
19394         * modules/unistdio/ulc-asprintf: Likewise.
19395         * modules/unistdio/ulc-fprintf: Likewise.
19396         * modules/unistdio/ulc-snprintf: Likewise.
19397         * modules/unistdio/ulc-sprintf: Likewise.
19398         * modules/unistdio/ulc-vasnprintf: Likewise.
19399         * modules/unistdio/ulc-vasprintf: Likewise.
19400         * modules/unistdio/ulc-vfprintf: Likewise.
19401         * modules/unistdio/ulc-vsnprintf: Likewise.
19402         * modules/unistdio/ulc-vsprintf: Likewise.
19403         * modules/unistr/u8-check: Likewise.
19404         * modules/unistr/u8-chr: Likewise.
19405         * modules/unistr/u8-cmp: Likewise.
19406         * modules/unistr/u8-cmp2: Likewise.
19407         * modules/unistr/u8-cpy: Likewise.
19408         * modules/unistr/u8-cpy-alloc: Likewise.
19409         * modules/unistr/u8-endswith: Likewise.
19410         * modules/unistr/u8-mblen: Likewise.
19411         * modules/unistr/u8-mbsnlen: Likewise.
19412         * modules/unistr/u8-mbtouc: Likewise.
19413         * modules/unistr/u8-mbtouc-unsafe: Likewise.
19414         * modules/unistr/u8-mbtoucr: Likewise.
19415         * modules/unistr/u8-move: Likewise.
19416         * modules/unistr/u8-next: Likewise.
19417         * modules/unistr/u8-prev: Likewise.
19418         * modules/unistr/u8-set: Likewise.
19419         * modules/unistr/u8-startswith: Likewise.
19420         * modules/unistr/u8-stpcpy: Likewise.
19421         * modules/unistr/u8-stpncpy: Likewise.
19422         * modules/unistr/u8-strcat: Likewise.
19423         * modules/unistr/u8-strchr: Likewise.
19424         * modules/unistr/u8-strcmp: Likewise.
19425         * modules/unistr/u8-strcoll: Likewise.
19426         * modules/unistr/u8-strcpy: Likewise.
19427         * modules/unistr/u8-strcspn: Likewise.
19428         * modules/unistr/u8-strdup: Likewise.
19429         * modules/unistr/u8-strlen: Likewise.
19430         * modules/unistr/u8-strmblen: Likewise.
19431         * modules/unistr/u8-strmbtouc: Likewise.
19432         * modules/unistr/u8-strncat: Likewise.
19433         * modules/unistr/u8-strncmp: Likewise.
19434         * modules/unistr/u8-strncpy: Likewise.
19435         * modules/unistr/u8-strnlen: Likewise.
19436         * modules/unistr/u8-strpbrk: Likewise.
19437         * modules/unistr/u8-strrchr: Likewise.
19438         * modules/unistr/u8-strspn: Likewise.
19439         * modules/unistr/u8-strstr: Likewise.
19440         * modules/unistr/u8-strtok: Likewise.
19441         * modules/unistr/u8-to-u16: Likewise.
19442         * modules/unistr/u8-to-u32: Likewise.
19443         * modules/unistr/u8-uctomb: Likewise.
19444         * modules/unistr/u16-check: Likewise.
19445         * modules/unistr/u16-chr: Likewise.
19446         * modules/unistr/u16-cmp: Likewise.
19447         * modules/unistr/u16-cmp2: Likewise.
19448         * modules/unistr/u16-cpy: Likewise.
19449         * modules/unistr/u16-cpy-alloc: Likewise.
19450         * modules/unistr/u16-endswith: Likewise.
19451         * modules/unistr/u16-mblen: Likewise.
19452         * modules/unistr/u16-mbsnlen: Likewise.
19453         * modules/unistr/u16-mbtouc: Likewise.
19454         * modules/unistr/u16-mbtouc-unsafe: Likewise.
19455         * modules/unistr/u16-mbtoucr: Likewise.
19456         * modules/unistr/u16-move: Likewise.
19457         * modules/unistr/u16-next: Likewise.
19458         * modules/unistr/u16-prev: Likewise.
19459         * modules/unistr/u16-set: Likewise.
19460         * modules/unistr/u16-startswith: Likewise.
19461         * modules/unistr/u16-stpcpy: Likewise.
19462         * modules/unistr/u16-stpncpy: Likewise.
19463         * modules/unistr/u16-strcat: Likewise.
19464         * modules/unistr/u16-strchr: Likewise.
19465         * modules/unistr/u16-strcmp: Likewise.
19466         * modules/unistr/u16-strcoll: Likewise.
19467         * modules/unistr/u16-strcpy: Likewise.
19468         * modules/unistr/u16-strcspn: Likewise.
19469         * modules/unistr/u16-strdup: Likewise.
19470         * modules/unistr/u16-strlen: Likewise.
19471         * modules/unistr/u16-strmblen: Likewise.
19472         * modules/unistr/u16-strmbtouc: Likewise.
19473         * modules/unistr/u16-strncat: Likewise.
19474         * modules/unistr/u16-strncmp: Likewise.
19475         * modules/unistr/u16-strncpy: Likewise.
19476         * modules/unistr/u16-strnlen: Likewise.
19477         * modules/unistr/u16-strpbrk: Likewise.
19478         * modules/unistr/u16-strrchr: Likewise.
19479         * modules/unistr/u16-strspn: Likewise.
19480         * modules/unistr/u16-strstr: Likewise.
19481         * modules/unistr/u16-strtok: Likewise.
19482         * modules/unistr/u16-to-u32: Likewise.
19483         * modules/unistr/u16-to-u8: Likewise.
19484         * modules/unistr/u16-uctomb: Likewise.
19485         * modules/unistr/u32-check: Likewise.
19486         * modules/unistr/u32-chr: Likewise.
19487         * modules/unistr/u32-cmp: Likewise.
19488         * modules/unistr/u32-cmp2: Likewise.
19489         * modules/unistr/u32-cpy: Likewise.
19490         * modules/unistr/u32-cpy-alloc: Likewise.
19491         * modules/unistr/u32-endswith: Likewise.
19492         * modules/unistr/u32-mblen: Likewise.
19493         * modules/unistr/u32-mbsnlen: Likewise.
19494         * modules/unistr/u32-mbtouc: Likewise.
19495         * modules/unistr/u32-mbtouc-unsafe: Likewise.
19496         * modules/unistr/u32-mbtoucr: Likewise.
19497         * modules/unistr/u32-move: Likewise.
19498         * modules/unistr/u32-next: Likewise.
19499         * modules/unistr/u32-prev: Likewise.
19500         * modules/unistr/u32-set: Likewise.
19501         * modules/unistr/u32-startswith: Likewise.
19502         * modules/unistr/u32-stpcpy: Likewise.
19503         * modules/unistr/u32-stpncpy: Likewise.
19504         * modules/unistr/u32-strcat: Likewise.
19505         * modules/unistr/u32-strchr: Likewise.
19506         * modules/unistr/u32-strcmp: Likewise.
19507         * modules/unistr/u32-strcoll: Likewise.
19508         * modules/unistr/u32-strcpy: Likewise.
19509         * modules/unistr/u32-strcspn: Likewise.
19510         * modules/unistr/u32-strdup: Likewise.
19511         * modules/unistr/u32-strlen: Likewise.
19512         * modules/unistr/u32-strmblen: Likewise.
19513         * modules/unistr/u32-strmbtouc: Likewise.
19514         * modules/unistr/u32-strncat: Likewise.
19515         * modules/unistr/u32-strncmp: Likewise.
19516         * modules/unistr/u32-strncpy: Likewise.
19517         * modules/unistr/u32-strnlen: Likewise.
19518         * modules/unistr/u32-strpbrk: Likewise.
19519         * modules/unistr/u32-strrchr: Likewise.
19520         * modules/unistr/u32-strspn: Likewise.
19521         * modules/unistr/u32-strstr: Likewise.
19522         * modules/unistr/u32-strtok: Likewise.
19523         * modules/unistr/u32-to-u16: Likewise.
19524         * modules/unistr/u32-to-u8: Likewise.
19525         * modules/unistr/u32-uctomb: Likewise.
19526         * modules/uniwbrk/u8-wordbreaks: Likewise.
19527         * modules/uniwbrk/u16-wordbreaks: Likewise.
19528         * modules/uniwbrk/u32-wordbreaks: Likewise.
19529         * modules/uniwbrk/ulc-wordbreaks: Likewise.
19530         * modules/uniwbrk/wordbreak-property: Likewise.
19531         * modules/uniwidth/u8-strwidth: Likewise.
19532         * modules/uniwidth/u8-width: Likewise.
19533         * modules/uniwidth/u16-strwidth: Likewise.
19534         * modules/uniwidth/u16-width: Likewise.
19535         * modules/uniwidth/u32-strwidth: Likewise.
19536         * modules/uniwidth/u32-width: Likewise.
19537         * modules/uniwidth/width: Likewise.
19538         * modules/unicase/cased-tests (Makefile.am): Link all test programs
19539         with $(LIBUNISTRING).
19540         * modules/unicase/ignorable-tests: Likewise.
19541         * modules/unicase/locale-language-tests: Likewise.
19542         * modules/unicase/tolower-tests: Likewise.
19543         * modules/unicase/totitle-tests: Likewise.
19544         * modules/unicase/toupper-tests: Likewise.
19545         * modules/unicase/u8-casecmp-tests: Likewise.
19546         * modules/unicase/u8-casecoll-tests: Likewise.
19547         * modules/unicase/u8-casefold-tests: Likewise.
19548         * modules/unicase/u8-is-cased-tests: Likewise.
19549         * modules/unicase/u8-is-casefolded-tests: Likewise.
19550         * modules/unicase/u8-is-lowercase-tests: Likewise.
19551         * modules/unicase/u8-is-titlecase-tests: Likewise.
19552         * modules/unicase/u8-is-uppercase-tests: Likewise.
19553         * modules/unicase/u8-tolower-tests: Likewise.
19554         * modules/unicase/u8-totitle-tests: Likewise.
19555         * modules/unicase/u8-toupper-tests: Likewise.
19556         * modules/unicase/u16-casecmp-tests: Likewise.
19557         * modules/unicase/u16-casecoll-tests: Likewise.
19558         * modules/unicase/u16-casefold-tests: Likewise.
19559         * modules/unicase/u16-is-cased-tests: Likewise.
19560         * modules/unicase/u16-is-casefolded-tests: Likewise.
19561         * modules/unicase/u16-is-lowercase-tests: Likewise.
19562         * modules/unicase/u16-is-titlecase-tests: Likewise.
19563         * modules/unicase/u16-is-uppercase-tests: Likewise.
19564         * modules/unicase/u16-tolower-tests: Likewise.
19565         * modules/unicase/u16-totitle-tests: Likewise.
19566         * modules/unicase/u16-toupper-tests: Likewise.
19567         * modules/unicase/u32-casecmp-tests: Likewise.
19568         * modules/unicase/u32-casecoll-tests: Likewise.
19569         * modules/unicase/u32-casefold-tests: Likewise.
19570         * modules/unicase/u32-is-cased-tests: Likewise.
19571         * modules/unicase/u32-is-casefolded-tests: Likewise.
19572         * modules/unicase/u32-is-lowercase-tests: Likewise.
19573         * modules/unicase/u32-is-titlecase-tests: Likewise.
19574         * modules/unicase/u32-is-uppercase-tests: Likewise.
19575         * modules/unicase/u32-tolower-tests: Likewise.
19576         * modules/unicase/u32-totitle-tests: Likewise.
19577         * modules/unicase/u32-toupper-tests: Likewise.
19578         * modules/unicase/ulc-casecmp-tests: Likewise.
19579         * modules/unicase/ulc-casecoll-tests: Likewise.
19580         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
19581         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
19582         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
19583         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
19584         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
19585         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
19586         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
19587         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
19588         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
19589         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
19590         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
19591         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
19592         * modules/unictype/bidicategory-byname-tests: Likewise.
19593         * modules/unictype/bidicategory-name-tests: Likewise.
19594         * modules/unictype/bidicategory-of-tests: Likewise.
19595         * modules/unictype/bidicategory-test-tests: Likewise.
19596         * modules/unictype/block-list-tests: Likewise.
19597         * modules/unictype/block-of-tests: Likewise.
19598         * modules/unictype/block-test-tests: Likewise.
19599         * modules/unictype/category-C-tests: Likewise.
19600         * modules/unictype/category-Cc-tests: Likewise.
19601         * modules/unictype/category-Cf-tests: Likewise.
19602         * modules/unictype/category-Cn-tests: Likewise.
19603         * modules/unictype/category-Co-tests: Likewise.
19604         * modules/unictype/category-Cs-tests: Likewise.
19605         * modules/unictype/category-L-tests: Likewise.
19606         * modules/unictype/category-Ll-tests: Likewise.
19607         * modules/unictype/category-Lm-tests: Likewise.
19608         * modules/unictype/category-Lo-tests: Likewise.
19609         * modules/unictype/category-Lt-tests: Likewise.
19610         * modules/unictype/category-Lu-tests: Likewise.
19611         * modules/unictype/category-M-tests: Likewise.
19612         * modules/unictype/category-Mc-tests: Likewise.
19613         * modules/unictype/category-Me-tests: Likewise.
19614         * modules/unictype/category-Mn-tests: Likewise.
19615         * modules/unictype/category-N-tests: Likewise.
19616         * modules/unictype/category-Nd-tests: Likewise.
19617         * modules/unictype/category-Nl-tests: Likewise.
19618         * modules/unictype/category-No-tests: Likewise.
19619         * modules/unictype/category-P-tests: Likewise.
19620         * modules/unictype/category-Pc-tests: Likewise.
19621         * modules/unictype/category-Pd-tests: Likewise.
19622         * modules/unictype/category-Pe-tests: Likewise.
19623         * modules/unictype/category-Pf-tests: Likewise.
19624         * modules/unictype/category-Pi-tests: Likewise.
19625         * modules/unictype/category-Po-tests: Likewise.
19626         * modules/unictype/category-Ps-tests: Likewise.
19627         * modules/unictype/category-S-tests: Likewise.
19628         * modules/unictype/category-Sc-tests: Likewise.
19629         * modules/unictype/category-Sk-tests: Likewise.
19630         * modules/unictype/category-Sm-tests: Likewise.
19631         * modules/unictype/category-So-tests: Likewise.
19632         * modules/unictype/category-Z-tests: Likewise.
19633         * modules/unictype/category-Zl-tests: Likewise.
19634         * modules/unictype/category-Zp-tests: Likewise.
19635         * modules/unictype/category-Zs-tests: Likewise.
19636         * modules/unictype/category-and-not-tests: Likewise.
19637         * modules/unictype/category-and-tests: Likewise.
19638         * modules/unictype/category-byname-tests: Likewise.
19639         * modules/unictype/category-name-tests: Likewise.
19640         * modules/unictype/category-none-tests: Likewise.
19641         * modules/unictype/category-of-tests: Likewise.
19642         * modules/unictype/category-or-tests: Likewise.
19643         * modules/unictype/category-test-withtable-tests: Likewise.
19644         * modules/unictype/combining-class-tests: Likewise.
19645         * modules/unictype/ctype-alnum-tests: Likewise.
19646         * modules/unictype/ctype-alpha-tests: Likewise.
19647         * modules/unictype/ctype-blank-tests: Likewise.
19648         * modules/unictype/ctype-cntrl-tests: Likewise.
19649         * modules/unictype/ctype-digit-tests: Likewise.
19650         * modules/unictype/ctype-graph-tests: Likewise.
19651         * modules/unictype/ctype-lower-tests: Likewise.
19652         * modules/unictype/ctype-print-tests: Likewise.
19653         * modules/unictype/ctype-punct-tests: Likewise.
19654         * modules/unictype/ctype-space-tests: Likewise.
19655         * modules/unictype/ctype-upper-tests: Likewise.
19656         * modules/unictype/ctype-xdigit-tests: Likewise.
19657         * modules/unictype/decimal-digit-tests: Likewise.
19658         * modules/unictype/digit-tests: Likewise.
19659         * modules/unictype/mirror-tests: Likewise.
19660         * modules/unictype/numeric-tests: Likewise.
19661         * modules/unictype/property-alphabetic-tests: Likewise.
19662         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
19663         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
19664         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
19665         * modules/unictype/property-bidi-block-separator-tests: Likewise.
19666         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
19667         * modules/unictype/property-bidi-common-separator-tests: Likewise.
19668         * modules/unictype/property-bidi-control-tests: Likewise.
19669         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
19670         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
19671         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
19672         * modules/unictype/property-bidi-european-digit-tests: Likewise.
19673         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
19674         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
19675         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
19676         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
19677         * modules/unictype/property-bidi-pdf-tests: Likewise.
19678         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
19679         * modules/unictype/property-bidi-whitespace-tests: Likewise.
19680         * modules/unictype/property-byname-tests: Likewise.
19681         * modules/unictype/property-combining-tests: Likewise.
19682         * modules/unictype/property-composite-tests: Likewise.
19683         * modules/unictype/property-currency-symbol-tests: Likewise.
19684         * modules/unictype/property-dash-tests: Likewise.
19685         * modules/unictype/property-decimal-digit-tests: Likewise.
19686         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
19687         * modules/unictype/property-deprecated-tests: Likewise.
19688         * modules/unictype/property-diacritic-tests: Likewise.
19689         * modules/unictype/property-extender-tests: Likewise.
19690         * modules/unictype/property-format-control-tests: Likewise.
19691         * modules/unictype/property-grapheme-base-tests: Likewise.
19692         * modules/unictype/property-grapheme-extend-tests: Likewise.
19693         * modules/unictype/property-grapheme-link-tests: Likewise.
19694         * modules/unictype/property-hex-digit-tests: Likewise.
19695         * modules/unictype/property-hyphen-tests: Likewise.
19696         * modules/unictype/property-id-continue-tests: Likewise.
19697         * modules/unictype/property-id-start-tests: Likewise.
19698         * modules/unictype/property-ideographic-tests: Likewise.
19699         * modules/unictype/property-ids-binary-operator-tests: Likewise.
19700         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
19701         * modules/unictype/property-ignorable-control-tests: Likewise.
19702         * modules/unictype/property-iso-control-tests: Likewise.
19703         * modules/unictype/property-join-control-tests: Likewise.
19704         * modules/unictype/property-left-of-pair-tests: Likewise.
19705         * modules/unictype/property-line-separator-tests: Likewise.
19706         * modules/unictype/property-logical-order-exception-tests: Likewise.
19707         * modules/unictype/property-lowercase-tests: Likewise.
19708         * modules/unictype/property-math-tests: Likewise.
19709         * modules/unictype/property-non-break-tests: Likewise.
19710         * modules/unictype/property-not-a-character-tests: Likewise.
19711         * modules/unictype/property-numeric-tests: Likewise.
19712         * modules/unictype/property-other-alphabetic-tests: Likewise.
19713         * modules/unictype/property-other-default-ignorable-code-point-tests:
19714         Likewise.
19715         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
19716         * modules/unictype/property-other-id-continue-tests: Likewise.
19717         * modules/unictype/property-other-id-start-tests: Likewise.
19718         * modules/unictype/property-other-lowercase-tests: Likewise.
19719         * modules/unictype/property-other-math-tests: Likewise.
19720         * modules/unictype/property-other-uppercase-tests: Likewise.
19721         * modules/unictype/property-paired-punctuation-tests: Likewise.
19722         * modules/unictype/property-paragraph-separator-tests: Likewise.
19723         * modules/unictype/property-pattern-syntax-tests: Likewise.
19724         * modules/unictype/property-pattern-white-space-tests: Likewise.
19725         * modules/unictype/property-private-use-tests: Likewise.
19726         * modules/unictype/property-punctuation-tests: Likewise.
19727         * modules/unictype/property-quotation-mark-tests: Likewise.
19728         * modules/unictype/property-radical-tests: Likewise.
19729         * modules/unictype/property-sentence-terminal-tests: Likewise.
19730         * modules/unictype/property-soft-dotted-tests: Likewise.
19731         * modules/unictype/property-space-tests: Likewise.
19732         * modules/unictype/property-terminal-punctuation-tests: Likewise.
19733         * modules/unictype/property-test-tests: Likewise.
19734         * modules/unictype/property-titlecase-tests: Likewise.
19735         * modules/unictype/property-unassigned-code-value-tests: Likewise.
19736         * modules/unictype/property-unified-ideograph-tests: Likewise.
19737         * modules/unictype/property-uppercase-tests: Likewise.
19738         * modules/unictype/property-variation-selector-tests: Likewise.
19739         * modules/unictype/property-white-space-tests: Likewise.
19740         * modules/unictype/property-xid-continue-tests: Likewise.
19741         * modules/unictype/property-xid-start-tests: Likewise.
19742         * modules/unictype/property-zero-width-tests: Likewise.
19743         * modules/unictype/scripts-tests: Likewise.
19744         * modules/unictype/syntax-c-ident-tests: Likewise.
19745         * modules/unictype/syntax-c-whitespace-tests: Likewise.
19746         * modules/unictype/syntax-java-ident-tests: Likewise.
19747         * modules/unictype/syntax-java-whitespace-tests: Likewise.
19748         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
19749         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
19750         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
19751         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
19752         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
19753         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
19754         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
19755         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
19756         * modules/uniname/uniname-tests: Likewise.
19757         * modules/uninorm/canonical-decomposition-tests: Likewise.
19758         * modules/uninorm/compat-decomposition-tests: Likewise.
19759         * modules/uninorm/composition-tests: Likewise.
19760         * modules/uninorm/decomposing-form-tests: Likewise.
19761         * modules/uninorm/decomposition-tests: Likewise.
19762         * modules/uninorm/filter-tests: Likewise.
19763         * modules/uninorm/nfc-tests: Likewise.
19764         * modules/uninorm/nfd-tests: Likewise.
19765         * modules/uninorm/nfkc-tests: Likewise.
19766         * modules/uninorm/nfkd-tests: Likewise.
19767         * modules/uninorm/u8-normcmp-tests: Likewise.
19768         * modules/uninorm/u8-normcoll-tests: Likewise.
19769         * modules/uninorm/u16-normcmp-tests: Likewise.
19770         * modules/uninorm/u16-normcoll-tests: Likewise.
19771         * modules/uninorm/u32-normcmp-tests: Likewise.
19772         * modules/uninorm/u32-normcoll-tests: Likewise.
19773         * modules/unistdio/u8-asnprintf-tests: Likewise.
19774         * modules/unistdio/u8-vasnprintf-tests: Likewise.
19775         * modules/unistdio/u8-vasprintf-tests: Likewise.
19776         * modules/unistdio/u8-vsnprintf-tests: Likewise.
19777         * modules/unistdio/u8-vsprintf-tests: Likewise.
19778         * modules/unistdio/u16-asnprintf-tests: Likewise.
19779         * modules/unistdio/u16-vasnprintf-tests: Likewise.
19780         * modules/unistdio/u16-vasprintf-tests: Likewise.
19781         * modules/unistdio/u16-vsnprintf-tests: Likewise.
19782         * modules/unistdio/u16-vsprintf-tests: Likewise.
19783         * modules/unistdio/u32-asnprintf-tests: Likewise.
19784         * modules/unistdio/u32-vasnprintf-tests: Likewise.
19785         * modules/unistdio/u32-vasprintf-tests: Likewise.
19786         * modules/unistdio/u32-vsnprintf-tests: Likewise.
19787         * modules/unistdio/u32-vsprintf-tests: Likewise.
19788         * modules/unistdio/ulc-asnprintf-tests: Likewise.
19789         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
19790         * modules/unistdio/ulc-vasprintf-tests: Likewise.
19791         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
19792         * modules/unistdio/ulc-vsprintf-tests: Likewise.
19793         * modules/unistr/u8-check-tests: Likewise.
19794         * modules/unistr/u8-chr-tests: Likewise.
19795         * modules/unistr/u8-cmp-tests: Likewise.
19796         * modules/unistr/u8-cmp2-tests: Likewise.
19797         * modules/unistr/u8-cpy-alloc-tests: Likewise.
19798         * modules/unistr/u8-cpy-tests: Likewise.
19799         * modules/unistr/u8-mblen-tests: Likewise.
19800         * modules/unistr/u8-mbsnlen-tests: Likewise.
19801         * modules/unistr/u8-mbtouc-tests: Likewise.
19802         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
19803         * modules/unistr/u8-mbtoucr-tests: Likewise.
19804         * modules/unistr/u8-move-tests: Likewise.
19805         * modules/unistr/u8-next-tests: Likewise.
19806         * modules/unistr/u8-prev-tests: Likewise.
19807         * modules/unistr/u8-set-tests: Likewise.
19808         * modules/unistr/u8-stpcpy-tests: Likewise.
19809         * modules/unistr/u8-stpncpy-tests: Likewise.
19810         * modules/unistr/u8-strcat-tests: Likewise.
19811         * modules/unistr/u8-strcmp-tests: Likewise.
19812         * modules/unistr/u8-strcoll-tests: Likewise.
19813         * modules/unistr/u8-strcpy-tests: Likewise.
19814         * modules/unistr/u8-strdup-tests: Likewise.
19815         * modules/unistr/u8-strlen-tests: Likewise.
19816         * modules/unistr/u8-strmblen-tests: Likewise.
19817         * modules/unistr/u8-strmbtouc-tests: Likewise.
19818         * modules/unistr/u8-strncat-tests: Likewise.
19819         * modules/unistr/u8-strncmp-tests: Likewise.
19820         * modules/unistr/u8-strncpy-tests: Likewise.
19821         * modules/unistr/u8-strnlen-tests: Likewise.
19822         * modules/unistr/u8-to-u16-tests: Likewise.
19823         * modules/unistr/u8-to-u32-tests: Likewise.
19824         * modules/unistr/u8-uctomb-tests: Likewise.
19825         * modules/unistr/u16-check-tests: Likewise.
19826         * modules/unistr/u16-chr-tests: Likewise.
19827         * modules/unistr/u16-cmp-tests: Likewise.
19828         * modules/unistr/u16-cmp2-tests: Likewise.
19829         * modules/unistr/u16-cpy-alloc-tests: Likewise.
19830         * modules/unistr/u16-cpy-tests: Likewise.
19831         * modules/unistr/u16-mblen-tests: Likewise.
19832         * modules/unistr/u16-mbsnlen-tests: Likewise.
19833         * modules/unistr/u16-mbtouc-tests: Likewise.
19834         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
19835         * modules/unistr/u16-mbtoucr-tests: Likewise.
19836         * modules/unistr/u16-move-tests: Likewise.
19837         * modules/unistr/u16-next-tests: Likewise.
19838         * modules/unistr/u16-prev-tests: Likewise.
19839         * modules/unistr/u16-set-tests: Likewise.
19840         * modules/unistr/u16-stpcpy-tests: Likewise.
19841         * modules/unistr/u16-stpncpy-tests: Likewise.
19842         * modules/unistr/u16-strcat-tests: Likewise.
19843         * modules/unistr/u16-strcmp-tests: Likewise.
19844         * modules/unistr/u16-strcoll-tests: Likewise.
19845         * modules/unistr/u16-strcpy-tests: Likewise.
19846         * modules/unistr/u16-strdup-tests: Likewise.
19847         * modules/unistr/u16-strlen-tests: Likewise.
19848         * modules/unistr/u16-strmblen-tests: Likewise.
19849         * modules/unistr/u16-strmbtouc-tests: Likewise.
19850         * modules/unistr/u16-strncat-tests: Likewise.
19851         * modules/unistr/u16-strncmp-tests: Likewise.
19852         * modules/unistr/u16-strncpy-tests: Likewise.
19853         * modules/unistr/u16-strnlen-tests: Likewise.
19854         * modules/unistr/u16-to-u32-tests: Likewise.
19855         * modules/unistr/u16-to-u8-tests: Likewise.
19856         * modules/unistr/u16-uctomb-tests: Likewise.
19857         * modules/unistr/u32-check-tests: Likewise.
19858         * modules/unistr/u32-chr-tests: Likewise.
19859         * modules/unistr/u32-cmp-tests: Likewise.
19860         * modules/unistr/u32-cmp2-tests: Likewise.
19861         * modules/unistr/u32-cpy-alloc-tests: Likewise.
19862         * modules/unistr/u32-cpy-tests: Likewise.
19863         * modules/unistr/u32-mblen-tests: Likewise.
19864         * modules/unistr/u32-mbsnlen-tests: Likewise.
19865         * modules/unistr/u32-mbtouc-tests: Likewise.
19866         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
19867         * modules/unistr/u32-mbtoucr-tests: Likewise.
19868         * modules/unistr/u32-move-tests: Likewise.
19869         * modules/unistr/u32-next-tests: Likewise.
19870         * modules/unistr/u32-prev-tests: Likewise.
19871         * modules/unistr/u32-set-tests: Likewise.
19872         * modules/unistr/u32-stpcpy-tests: Likewise.
19873         * modules/unistr/u32-stpncpy-tests: Likewise.
19874         * modules/unistr/u32-strcat-tests: Likewise.
19875         * modules/unistr/u32-strcmp-tests: Likewise.
19876         * modules/unistr/u32-strcoll-tests: Likewise.
19877         * modules/unistr/u32-strcpy-tests: Likewise.
19878         * modules/unistr/u32-strdup-tests: Likewise.
19879         * modules/unistr/u32-strlen-tests: Likewise.
19880         * modules/unistr/u32-strmblen-tests: Likewise.
19881         * modules/unistr/u32-strmbtouc-tests: Likewise.
19882         * modules/unistr/u32-strncat-tests: Likewise.
19883         * modules/unistr/u32-strncmp-tests: Likewise.
19884         * modules/unistr/u32-strncpy-tests: Likewise.
19885         * modules/unistr/u32-strnlen-tests: Likewise.
19886         * modules/unistr/u32-to-u16-tests: Likewise.
19887         * modules/unistr/u32-to-u8-tests: Likewise.
19888         * modules/unistr/u32-uctomb-tests: Likewise.
19889         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
19890         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
19891         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
19892         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
19893         * modules/uniwidth/u8-strwidth-tests: Likewise.
19894         * modules/uniwidth/u8-width-tests: Likewise.
19895         * modules/uniwidth/u16-strwidth-tests: Likewise.
19896         * modules/uniwidth/u16-width-tests: Likewise.
19897         * modules/uniwidth/u32-strwidth-tests: Likewise.
19898         * modules/uniwidth/u32-width-tests: Likewise.
19899         * modules/uniwidth/width-tests: Likewise.
19900
19901 2010-05-18  Richard Jones  <rjones@redhat.com>
19902
19903         doc: users.txt: list hivex
19904         * users.txt: Add hivex.
19905
19906 2010-05-18  Richard Jones  <rjones@redhat.com>
19907
19908         doc: users.txt: list febootstrap
19909         * users.txt: Add febootstrap.
19910
19911 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
19912
19913         bootstrap: fix an error when gnulib is not used as a git submodule
19914         * build-aux/bootstrap (gnulib_path): If its length is zero then
19915         assign "gnulib" to it.
19916         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
19917
19918 2010-05-16  Bruno Haible  <bruno@clisp.org>
19919
19920         Avoid autoconf warnings about AM_ICONV.
19921         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
19922         2.64.
19923
19924 2010-05-16  Bruno Haible  <bruno@clisp.org>
19925
19926         absolute-header: Make the macro usable in more situations.
19927         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
19928         from gl_ABSOLUTE_HEADER.
19929         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
19930
19931 2010-05-16  James Youngman  <jay@gnu.org>
19932
19933         doc: update users.txt
19934         * users.txt: Add CSSC.
19935
19936 2010-05-16  Jim Meyering  <meyering@redhat.com>
19937
19938         init.sh: fix an error in the previous change; add more comments
19939         * tests/init.sh: Compare exit code in loop against 9, not 2.
19940         Patch by Bruno Haible.
19941         Make the two tests more similar by adding an empty "then" clause.
19942         Add comments.
19943
19944         init.sh: avoid unnecessary shell re-exec
19945         * tests/init.sh: Improve the re-exec-required check to first test the
19946         current shell.  If it passes the test, do not search for a shell that
19947         does pass, and do not re-exec.  This test is particularly contorted to
19948         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
19949         of $(...) evokes a syntax error and causes immediate shell exit with
19950         status 2.  Bruno Haible reported that the re-exec made it impossible
19951         to single-step through any init.sh-using script.
19952
19953 2010-05-16  Bruno Haible  <bruno@clisp.org>
19954
19955         Fix collision between gnulib's and libintl's printf replacements.
19956         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
19957         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
19958         (printf): When using GNU C, map the __printf__ function to rpl_printf
19959         via __asm__. When not using GNU C, define rpl_printf instead of
19960         __printf__.
19961         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
19962         commit.
19963         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
19964         commit.
19965         * m4/asm-underscore.m4: New file.
19966         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
19967         * modules/stdio (Files): Add m4/asm-underscore.m4.
19968         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
19969         Reported by Ben Pfaff.
19970
19971 2010-05-16  Bruno Haible  <bruno@clisp.org>
19972
19973         verify: Avoid skipping the test on openSUSE 11.0.
19974         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
19975
19976 2010-05-13  Bruno Haible  <bruno@clisp.org>
19977
19978         Avoid useless warnings from G++.
19979         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
19980         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
19981         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19982
19983 2010-05-11  Jim Meyering  <meyering@redhat.com>
19984
19985         maint.mk: tweak preceding change
19986         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
19987         regexps tighter by anchoring at EOL, and make the new group "shy"
19988         for slightly decreased overhead.
19989
19990 2010-05-11  Eric Blake  <eblake@redhat.com>
19991
19992         maint.mk: gnulib doesn't guarantee NSIG
19993         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
19994
19995 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
19996
19997         test-pwrite.c: Remove unused variable declaration.
19998         * tests/test-pwrite.c (main): Remove read_buf declaration.
19999
20000         Remove useless test-pwrite.sh file.
20001         * tests/test-pwrite.sh: Delete file.
20002         * modules/pwrite-tests: Remove references.
20003         Reported by Bruno Haible.
20004
20005 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
20006
20007         init.sh: fix a typo
20008         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
20009
20010 2010-05-10  Jim Meyering  <meyering@redhat.com>
20011
20012         maint.mk: avoid using a temporary file in the always-defined-macros check
20013         * top/maint.mk (.re-defmac): Remove rule.
20014         (gl_trap_): Remove definition.
20015         (sc_prohibit_always-defined_macros): Rewrite not to create and
20016         depend on a temporary file.  Instead, depend on GNU grep's ability
20017         to read a list of regular expressions from stdin when given "-f -".
20018
20019 2010-05-09  Bruno Haible  <bruno@clisp.org>
20020
20021         Update to GNU gettext 0.18, part 1.
20022         * m4/gettext.m4: Update to GNU gettext 0.18.
20023         * m4/intl.m4: Likewise.
20024         * m4/po.m4: Likewise.
20025         * modules/gettext (Files): Add m4/fcntl-o.m4.
20026         (configure.ac): Require gettext infrastructure from version 0.18.
20027
20028 2010-05-09  Jim Meyering  <meyering@redhat.com>
20029
20030         init.sh: enable MALLOC_PERTURB_
20031         * tests/init.sh: Enable glibc's malloc-perturbing option.
20032
20033         maint.mk: improve sc_cross_check_PATH_usage_in_tests
20034         With my recent change in init.sh from the two-line form:
20035             -#   : ${srcdir=.}
20036             -#   . "$srcdir/init.sh"; path_prepend_ .
20037             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
20038         I noticed that using the one-line form would cause this test
20039         to fail with a false-positive, or to stop working altogether,
20040         depending on whether help-version changed or all the tests did.
20041         * top/maint.mk (_hv_regex): Remove this definition.
20042         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
20043         (_hv_regex_strong): Use a stronger regex to check for conformance.
20044         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
20045         Give a separate diagnostic for lack of conforming use.
20046
20047         maint.mk: prohibit definition of symbols defined by gnulib
20048         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
20049         definition of symbols defined by gnulib.
20050
20051 2010-05-09  Bruno Haible  <bruno@clisp.org>
20052
20053         acl: Avoid test failure on Cygwin-hosted mingw.
20054         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
20055
20056 2010-05-09  Bruno Haible  <bruno@clisp.org>
20057
20058         error: Use system's fcntl function.
20059         * lib/error.c (fcntl): Undefine.
20060
20061 2010-05-09  Jim Meyering  <meyering@redhat.com>
20062
20063         verify: adjust formatting to be more consistent
20064         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
20065         argument-list '('s, and after one comma.
20066
20067 2010-05-09  Bruno Haible  <bruno@clisp.org>
20068
20069         error: More reliable output on mingw.
20070         * lib/error.c: Include <windows.h>.
20071         (is_open): New function.
20072         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
20073         defined.
20074
20075 2010-05-09  Bruno Haible  <bruno@clisp.org>
20076
20077         vasnprintf: Fix syntax errors in libintl build on mingw.
20078         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
20079         pad_ourselves and prec_ourselves after use.
20080
20081 2010-05-08  Bruno Haible  <bruno@clisp.org>
20082
20083         * lib/config.charset: Update comments for Cygwin 1.7.
20084         * lib/localcharset.c: Likewise.
20085
20086 2010-05-07  Jim Meyering  <meyering@redhat.com>
20087
20088         init.sh: improve comments
20089         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
20090         . "${srcdir=.}/init.sh"; path_prepend_ .
20091         Add a note about path_prepend_ and the alternative of using
20092         TESTS_ENVIRONMENT.
20093
20094 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
20095
20096         exclude: Unescape hashed patterns in wildcard mode.
20097         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
20098         to the hash list.
20099         * tests/test-exclude8.sh: New test case.
20100         * modules/exclude-tests: Add new test.
20101
20102 2010-05-05  Eric Blake  <eblake@redhat.com>
20103
20104         verify: automate tests
20105         * modules/verify-tests: New module.
20106         * tests/test-verify.sh: New file.
20107         * tests/test-verify.c: Guard each negative test with a unique id.
20108         Also avoid warning about unused left hand of comma expressions.
20109
20110 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
20111
20112         Further improvements to verify.h, suggested by Eric Blake.
20113         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
20114         the GL_* versions, to avoid collision with OpenGL.
20115         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
20116         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
20117         than testing merely whether it's defined.
20118
20119         Modify verify.h to pacify gcc -Wredundant_decls.
20120         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
20121         These use the prefix "GL_" since they're likely to be useful elsewhere.
20122         We may need to break them out into a different .h file.
20123         (__COUNTER__): Define to 0 if the compiler doesn't support it.
20124         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
20125         of verify_function__.
20126
20127 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
20128
20129         Tests for module pwrite.
20130         * modules/pwrite-tests: New file.
20131         * tests/test-pwrite.sh: New file.
20132         * tests/test-pwrite.c: New file.
20133
20134         New module pwrite.
20135         * lib/unistd.in.h (pwrite): New declaration.
20136         * lib/pwrite.c: New file, from glibc with modifications.
20137         * m4/pwrite.m4: New file.
20138         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
20139         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
20140         REPLACE_PWRITE.
20141         * modules/pwrite: New file.
20142         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
20143         REPLACE_PWRITE.
20144         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
20145         * doc/posix-functions/pwrite.texi: Mention the new module.
20146
20147 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
20148
20149         pread: Update documentation.
20150         * doc/posix-functions/pread.texi: Mention the 'pread' module.
20151
20152 2010-05-04  Eric Blake  <eblake@redhat.com>
20153
20154         docs: update cygwin progress
20155         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
20156         this bug.
20157         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
20158         Added in cygwin 1.7.2.
20159         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
20160         Likewise.
20161         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
20162         Likewise.
20163         * doc/glibc-functions/dup3.texi (dup3): Likewise.
20164         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
20165         * doc/glibc-functions/accept4.texi (accept4): Likewise.
20166         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
20167         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
20168         Mention nproc module.
20169         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
20170         bug in cygwin 1.7.5 addition.
20171         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
20172         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
20173         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
20174         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
20175         1.7.5.
20176         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
20177         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
20178         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
20179         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
20180         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
20181         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
20182         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
20183         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
20184         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
20185         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
20186         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
20187         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
20188         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
20189         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
20190         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
20191         Likewise.
20192         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
20193         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
20194         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
20195         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
20196         Likewise.
20197         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
20198         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
20199         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
20200         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
20201         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
20202         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
20203         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
20204         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
20205         Likewise.
20206         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
20207         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
20208         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
20209         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
20210         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
20211         Likewise.
20212         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
20213         Likewise.
20214         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
20215         Likewise.
20216         * doc/glibc-functions/xdrrec_endofrecord.texi
20217         (xdrrec_endofrecord): Likewise.
20218         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
20219         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
20220         Likewise.
20221         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
20222         Likewise.
20223
20224 2010-05-04  Jim Meyering  <meyering@redhat.com>
20225
20226         gendocs.sh: make its "-s FILE" option more useful
20227         * build-aux/gendocs.sh: When honoring the -s FILE option, update
20228         $PACKAGE to reflect the probably-different basename of "FILE".
20229
20230 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
20231
20232         bootstrap: don't ignore download_po_files failure
20233         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
20234         failure.
20235
20236 2010-05-03  Jim Meyering  <meyering@redhat.com>
20237
20238         maint.mk: allow to pass options to gendocs.sh
20239         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
20240         (gendocs_options_): New overridable variable.
20241
20242         gnu-web-doc-update: don't ignore configure or build failure
20243         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
20244
20245         announce-gen: backslash-escape '@'s in --help output
20246         * build-aux/announce-gen: Fix syntax errors.
20247
20248         maint.mk, announce-gen: allow project-specific announcement mail headers
20249         * top/maint.mk (translation_project_): Define default.
20250         (announcement_Cc_, announcement_mail_headers_): Likewise.
20251         (announcement): Invoke announce-gen with new --mail-headers option.
20252         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
20253
20254         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
20255         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
20256         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
20257         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
20258         line in the "err2" output file when running "make check" in verbose
20259         mode (i.e., with set -x enabled).
20260
20261 2010-05-03  Bruno Haible  <bruno@clisp.org>
20262
20263         wctob: Fix for weird platforms.
20264         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
20265         argument value.
20266
20267 2010-05-03  Jim Meyering  <meyering@redhat.com>
20268
20269         maint.mk: prohibit unwarranted use of <strings.h>
20270         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
20271         strings.h in a file that does not also use strcasecmp, strncasecmp,
20272         ffs or ffsll.
20273
20274         maint.mk: remove obsolete comments
20275         * top/maint.mk: Remove stale, commented-out rules.
20276
20277 2010-05-02  Bruno Haible  <bruno@clisp.org>
20278
20279         wcwidth: Declare also when it's aliased.
20280         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
20281         macro.
20282
20283 2010-05-02  Bruno Haible  <bruno@clisp.org>
20284
20285         Fix regression from 2010-04-25.
20286         * gnulib-tool (func_modules_transitive_closure): Check the status of
20287         all modules, not only of the tests that are of the form foo-tests where
20288         foo is a module.
20289
20290 2010-05-02  Bruno Haible  <bruno@clisp.org>
20291
20292         wctob: Work around nasty Cygwin 1.7.2 bug.
20293         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
20294         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
20295
20296 2010-05-01  Bruno Haible  <bruno@clisp.org>
20297
20298         fpurge: Sharper test.
20299         * tests/test-fpurge.c (main): Add one more ftell check.
20300         * modules/fpurge-tests (Depends-on): Add ftell.
20301         Suggested by Eric Blake.
20302
20303 2010-05-01  Bruno Haible  <bruno@clisp.org>
20304
20305         ftello: Another test.
20306         * tests/test-ftello3.c: New file.
20307         * modules/ftello-tests (Files): Add it.
20308         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
20309         MOSTLYCLEANFILES.
20310
20311         ftell: Another test.
20312         * tests/test-ftell3.c: New file.
20313         * modules/ftell-tests (Files): Add it.
20314         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
20315         MOSTLYCLEANFILES.
20316
20317 2010-05-01  Bruno Haible  <bruno@clisp.org>
20318
20319         ftell, ftello: Work around Solaris bug.
20320         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
20321         * lib/ftello.c: Include stdio-impl.h.
20322         (ftello): On Solaris, when _IOWRT is set, compute the result without
20323         looking at _IOREAD.
20324         * modules/ftello (Files): Add lib/stdio-impl.h.
20325         * doc/posix-functions/ftell.texi: Mention Solaris bug.
20326         * doc/posix-functions/ftello.texi: Likewise.
20327         Reported by Eric Blake.
20328
20329 2010-05-01  Bruno Haible  <bruno@clisp.org>
20330
20331         freading: Adapt to special meaning of _IOREAD flag on Solaris.
20332         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
20333         the _IOWRT flag is also set.
20334
20335 2010-05-01  Bruno Haible  <bruno@clisp.org>
20336
20337         Fix doc about a HP-UX stdio bug.
20338         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
20339         * doc/posix-functions/ftello.texi: Likewise.
20340
20341 2010-05-01  Bruno Haible  <bruno@clisp.org>
20342
20343         lseek test: Fix failure on Solaris.
20344         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
20345         output.
20346
20347 2010-04-30  Jim Meyering  <meyering@redhat.com>
20348
20349         bootstrap: don't ignore failure to generate po*/Makevars
20350         * build-aux/bootstrap (with_gettext): Don't ignore failure
20351         to create po/Makevars or runtime-po/Makevars.
20352
20353 2010-04-29  Eric Blake  <eblake@redhat.com>
20354
20355         headers: relax license to LGPLv2+
20356         * modules/fcntl-h (License): Relax license.
20357         * modules/getopt-posix (License): Likewise.
20358         * modules/locale (License): Likewise.
20359         * modules/math (License): Likewise.
20360         * modules/pty (License): Likewise.
20361         * modules/sched (License): Likewise.
20362         * modules/search (License): Likewise.
20363         * modules/spawn (License): Likewise.
20364         * modules/stdarg (License): Likewise.
20365         * modules/sysexits (License): Likewise.
20366
20367 2010-04-29  Jim Meyering  <meyering@redhat.com>
20368
20369         inttypes: relax license to LGPLv2+
20370         * modules/inttypes (License): Relax license.
20371
20372 2010-04-29  Simon Josefsson  <simon@josefsson.org>
20373
20374         * top/maint.mk (indent): Run twice to produce idempotent results.
20375
20376 2010-04-28  Bruno Haible  <bruno@clisp.org>
20377
20378         getdate: Generate getdate.c in the source directory.
20379         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
20380         MOSTLYCLEANFILES.
20381         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
20382
20383 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
20384
20385         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
20386         is not declared as a const *; avoid warnings in that case.
20387
20388 2010-04-28  Eric Blake  <eblake@redhat.com>
20389
20390         canonicalize-lgpl: avoid compiler warning
20391         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
20392         declaration' / 'extraneous semicolon' warning with some compilers.
20393         Reported by Andreas Gruenbacher.
20394
20395 2010-04-28  Jim Meyering  <meyering@redhat.com>
20396
20397         init.sh: ensure a more reliable exit status when exiting via trap
20398         * tests/init.sh (setup_): Don't rely on $? in signal handler.
20399         Inspired by patches from Dmitry V. Levin.
20400         Also trap on signal 3 (SIGQUIT).
20401
20402 2010-04-27  Bruno Haible  <bruno@clisp.org>
20403
20404         Update doc about utimes().
20405         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
20406         'utimens' module.
20407         Reported by Andreas Gruenbacher <agruen@suse.de>.
20408
20409 2010-04-27  Eric Blake  <eblake@redhat.com>
20410
20411         full-read, full-write: relax license
20412         * modules/full-read (License): Drop to LGPLv2+.
20413         * modules/full-write (License): Likewise.
20414         * modules/safe-read (License): Likewise.
20415         * modules/safe-write (License): Likewise.
20416
20417         pthread: mention library for linking
20418         * modules/pthread (Link): Mention $(LIB_PTHREAD).
20419
20420 2010-04-27  Jim Meyering  <meyering@redhat.com>
20421
20422         maint.mk: fix a bug introduced in last change
20423         * top/maint.mk (gl_assured_headers_): Now that all names are on
20424         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
20425         is not anchored to end of word, it should be adequate.
20426
20427         maint.mk: avoid side-effect in latest syntax-check
20428         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
20429         to run commands via $(shell...), and hence to incur cost only when
20430         the new rule is actually run.
20431
20432         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
20433         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
20434         and use that to create a regexp used to detect all #if HAVE_..._H uses.
20435         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
20436         (gl_assured_headers_, az_, AZ_): Define.
20437         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
20438
20439 2010-04-26  Jim Meyering  <jim@meyering.net>
20440             Bruno Haible  <bruno@clisp.org>
20441
20442         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
20443         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
20444         Prompted by an exchange with Gilles Espinasse.
20445
20446 2010-04-26  Jim Meyering  <meyering@redhat.com>
20447
20448         git-version-gen: aesthetic tweak
20449         * build-aux/git-version-gen: Use "$nl" rather than a literal,
20450         so that the command remains on a single line.
20451
20452 2010-04-26  Eric Blake  <eblake@redhat.com>
20453
20454         git-version-gen: allow use on EBCDIC hosts
20455         * build-aux/git-version-gen (dirty): Use literal rather than tying
20456         ourselves to ascii.
20457         Reported by Steve Goetze.
20458
20459 2010-04-25  Bruno Haible  <bruno@clisp.org>
20460
20461         netdb: Add support for GNULIB_POSIXCHECK.
20462         * lib/netdb.in.h: Include warn-on-use.h.
20463         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
20464         functions are used when GNULIB_POSIXCHECK is defined and the
20465         getaddrinfo module is not in use.
20466         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
20467         freeaddrinfo, gai_strerror, getnameinfo are declared.
20468         * modules/netdb (Depends-on): Add warn-on-use.
20469         (Makefile.am): Include warn-on-use.h in netdb.h.
20470
20471 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
20472
20473         build: avoid "make check" failure without .git/ directory
20474         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
20475         there is no .git/ directory.
20476
20477 2010-04-25  Bruno Haible  <bruno@clisp.org>
20478
20479         ptsname: Fix misuse of ttyname_r.
20480         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
20481         of errno.
20482
20483 2010-04-25  Bruno Haible  <bruno@clisp.org>
20484
20485         ttyname_r: Make it work on Solaris 10.
20486         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
20487         if the system function has the POSIX declaration. Test whether the
20488         function fails if the buffer is less than 128 bytes large.
20489         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
20490         system's ttyname_r function. Provide a reasonably large buffer.
20491         * modules/ttyname_r (Depends-on): Add extensions.
20492         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
20493
20494 2010-04-25  Bruno Haible  <bruno@clisp.org>
20495
20496         Use the 'extensions' module for some more functions on Solaris.
20497         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
20498         module.
20499         * doc/posix-functions/ctime_r.texi: Likewise.
20500         * doc/posix-functions/getgrgid_r.texi: Likewise.
20501         * doc/posix-functions/getgrnam_r.texi: Likewise.
20502         * doc/posix-functions/getpwnam_r.texi: Likewise.
20503         * doc/posix-functions/getpwuid_r.texi: Likewise.
20504         * doc/posix-functions/readdir_r.texi: Likewise.
20505         * doc/posix-functions/sigwait.texi: Likewise.
20506         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
20507         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
20508
20509 2010-04-25  Bruno Haible  <bruno@clisp.org>
20510
20511         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
20512         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
20513         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
20514         * lib/ttyname_r.c: Include <limits.h>.
20515         (ttyname_r): Define using the system's ttyname_r function, if it exists
20516         and not on Solaris.
20517         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
20518         set.
20519         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
20520         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
20521         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
20522         Reported by Simon Josefsson.
20523
20524 2010-04-25  Bruno Haible  <bruno@clisp.org>
20525
20526         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
20527         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
20528         * doc/posix-functions/ctime_r.texi: Likewise.
20529         * doc/posix-functions/getgrgid_r.texi: Likewise.
20530         * doc/posix-functions/getgrnam_r.texi: Likewise.
20531         * doc/posix-functions/getlogin_r.texi: Likewise.
20532         * doc/posix-functions/getpwnam_r.texi: Likewise.
20533         * doc/posix-functions/getpwuid_r.texi: Likewise.
20534         * doc/posix-functions/readdir_r.texi: Likewise.
20535         * doc/posix-functions/sigwait.texi: Likewise.
20536         * doc/posix-functions/ttyname_r.texi: Likewise.
20537         Reported by Simon Josefsson.
20538
20539 2010-04-25  Bruno Haible  <bruno@clisp.org>
20540
20541         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
20542         * gnulib-tool (func_usage): Document that --with-*-tests options apply
20543         also to --create-testdir.
20544         (func_acceptable): Don't consider the status of *-tests modules here.
20545         (func_modules_transitive_closure): Consider it here, before including a
20546         test module.
20547         (func_import, func_create_testdir): Set inc_all_direct_tests,
20548         inc_all_indirect_tests.
20549         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
20550         --create-testdir and --create-megatestdir.
20551
20552 2010-04-25  Bruno Haible  <bruno@clisp.org>
20553
20554         gnulib-tool: Add --without-*-tests options.
20555         * gnulib-tool (func_usage): Document the --without-*-tests options.
20556         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
20557         excl_unportable_tests): New variables.
20558         Fail if they are specified with --import or --update.
20559         (func_acceptable): Respect the excl_*_tests variables.
20560         (func_import): Set the excl_*_tests variables to empty.
20561
20562 2010-04-25  Simon Josefsson  <simon@josefsson.org>
20563             Bruno Haible  <bruno@clisp.org>
20564
20565         Work around a MacOS X 10.4 bug with openpty.
20566         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
20567         * tests/test-openpty.c (main): Close the master side explicitly.
20568
20569 2010-04-25  Bruno Haible  <bruno@clisp.org>
20570
20571         strnlen: Fix a C++ test error on MacOS X and Solaris.
20572         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
20573         the function is not declared.
20574         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
20575         Simon Josefsson.
20576
20577 2010-04-24  Bruno Haible  <bruno@clisp.org>
20578
20579         Avoid a gcc warning.
20580         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
20581         of correct type for %08lx directive.
20582         Reported by Eric Blake.
20583
20584 2010-04-24  Bruno Haible  <bruno@clisp.org>
20585
20586         vasnprintf: Correct errno value in case of out-of-memory.
20587         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
20588         or sprintf. Use the errno value from SNPRINTF or sprintf.
20589         Reported by Ian Beckwith <ianb@erislabs.net>.
20590
20591 2010-04-24  Bruno Haible  <bruno@clisp.org>
20592
20593         ansi-c++-opt: Find correct compiler when cross-compiling.
20594         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
20595         AC_CHECK_PROGS.
20596         Reported by Simon Josefsson.
20597
20598 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
20599
20600         vc-list-files: Add support for subversion
20601         * build-aux/vc-list-files: Use "svn list" to generate the list of
20602         files controlled by subversion.
20603
20604 2010-04-23  Jim Meyering  <meyering@redhat.com>
20605
20606         vc-list-files tests: convert to use init.sh
20607         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
20608         path_prepend_.
20609         Use Exit, not exit.
20610         Use skip_ rather than open coding it.
20611         Remove trap set-up and compare definitions.
20612         * tests/test-vc-list-files-git.sh: Likewise.
20613         * modules/vc-list-files-tests (Files): Add tests/init.sh.
20614
20615 2010-04-22  Simon Josefsson  <simon@josefsson.org>
20616
20617         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
20618         backup files.
20619
20620 2010-04-21  Simon Josefsson  <simon@josefsson.org>
20621
20622         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
20623
20624 2010-04-20  Eric Blake  <eblake@redhat.com>
20625
20626         tests: be robust to ignored SIGPIPE
20627         * tests/test-select-in.sh: Consume all output.
20628         * tests/test-lseek.sh: Check correct exit status, while avoiding
20629         EPIPE.
20630
20631 2010-04-20  Simon Josefsson  <simon@josefsson.org>
20632             Bruno Haible  <bruno@clisp.org>
20633
20634         visibility: Don't use -fvisibility if it leads to a warning.
20635         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
20636         yes, don't pretend that visibility works if it leads to a warning.
20637         Reported by Mike Gran <spk121@yahoo.com>.
20638
20639 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
20640
20641         * build-aux/bootstrap: Use "git -h" for testing for supported options
20642         instead of "git --help".  The short-form option only shows a summary,
20643         and doesn't layout the full man page.  Grep for the full option name
20644         in the summary, too.
20645
20646 2010-04-19  Bruno Haible  <bruno@clisp.org>
20647
20648         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
20649         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
20650         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
20651         mention of RELOCATABLE_STRIP.
20652         Reported by Sylvain Beucler <beuc@beuc.net>.
20653
20654 2010-04-19  Bruno Haible  <bruno@clisp.org>
20655
20656         * lib/diffseq.h: Fix typo in comment.
20657         Reported by Eric Blake.
20658
20659 2010-04-19  Bruno Haible  <bruno@clisp.org>
20660
20661         ioctl: Move autoconf macro to a .m4 file.
20662         * m4/ioctl.m4: New file, extracted from modules/ioctl.
20663         * modules/ioctl (Files): Add it.
20664         (configure.ac): Simply invoke gl_FUNC_IOCTL.
20665         Reported by Ian Beckwith <ianb@erislabs.net>.
20666
20667 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
20668             Bruno Haible  <bruno@clisp.org>
20669
20670         diffseq: Accommodate use-case with abstract arrays.
20671         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
20672         is not defined.
20673         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
20674         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
20675
20676 2010-04-18  Bruno Haible  <bruno@clisp.org>
20677
20678         * doc/posix-headers/stdbool.texi: More precise wording.
20679
20680 2010-04-17  Jim Meyering  <meyering@redhat.com>
20681
20682         maint.mk: use gnu-style indentation in an embedded perl script
20683         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
20684         Rename variable: s/two/last_two_bytes/
20685
20686 2010-04-16  Eric Blake  <eblake@redhat.com>
20687
20688         test-stdbool: skip test that fails with Solaris CC
20689         * tests/test-stdbool.c (f): Skip test that causes compilation
20690         error under buggy C++ compiler.
20691         * lib/stdbool.in.h: Document the limitation.
20692         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
20693
20694         setenv: allow compilation with C++
20695         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
20696         register keyword.
20697
20698         stdint: allow test to pass with C++
20699         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
20700
20701         getopt: allow compilation with C++
20702         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
20703         struct.
20704         * lib/getopt.c (_getopt_internal_r): Use correct type.
20705         Reported by Dagobert Michelson, via Joel E. Denny.
20706
20707 2010-04-16  Bruno Haible  <bruno@clisp.org>
20708
20709         Override netdb.h always.
20710         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
20711         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
20712         Reported by Ludovic Courtès <ludo@gnu.org>.
20713
20714 2010-04-15  Bruno Haible  <bruno@clisp.org>
20715
20716         openpty: Fix mistake from 2010-03-21.
20717         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
20718         Reported by Simon Josefsson.
20719
20720 2010-04-15  Eric Blake  <eblake@redhat.com>
20721
20722         test-forkpty: fix expected signature
20723         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
20724         Reported by Simon Josefsson.
20725
20726 2010-04-15  Jim Meyering  <meyering@redhat.com>
20727
20728         maint.mk: texinfo_suffix_re_: correct the default regexp
20729         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
20730
20731         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
20732         make it configurable via texinfo_suffix_re_.
20733
20734 2010-04-14  Eric Blake  <eblake@redhat.com>
20735
20736         strtok_r: relax license to LGPLv2+
20737         * modules/strtok_r (License): Relax license.
20738         Reported by Matthias Bolte.
20739
20740 2010-04-14  Simon Josefsson  <simon@josefsson.org>
20741
20742         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
20743         version 1.4.4 by default instead of requiring the libgcrypt
20744         version used during build.  This makes it possible to use the
20745         application with older but still binary compatible libgcrypt
20746         versions.
20747
20748 2010-04-13  Eric Blake  <eblake@redhat.com>
20749
20750         getopt-gnu: match recent glibc fixes and posix ruling
20751         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
20752         '+' handling, when requesting extensions.
20753         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
20754         'W;' handling.
20755         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
20756         * doc/posix-functions/getopt.texi (getopt): Document this.
20757         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
20758         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20759         Likewise.
20760
20761         getopt: merge bug fixes from glibc
20762         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
20763         diagnostics.  Honor '+:' correctly.  Reject ';'.
20764
20765         getopt-posix: detect MacOS bug
20766         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
20767         optind when missing a required argument.
20768         * doc/posix-functions/getopt.texi (getopt): Document the bug.
20769         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
20770         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20771         Likewise.
20772
20773         getopt-posix: avoid spurious failure on Solaris
20774         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
20775         an indicator that setting optind=1 is sufficient for reset.
20776
20777         getopt-posix: avoid spurious failure on FreeBSD
20778         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
20779         in POSIX mode, since the m4 test uses it.
20780
20781         gnulib-tool: silence warning on BSD sh
20782         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
20783
20784 2010-04-13  Jim Meyering  <meyering@redhat.com>
20785
20786         doc: users.txt: GNU patch now uses gnulib
20787         * users.txt: Add patch.
20788
20789 2010-04-12  Jim Meyering  <meyering@redhat.com>
20790
20791         maint.mk: generate more concise timing data for syntax-check rules
20792         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
20793         " done" from each line that reports a syntax-check test duration.
20794
20795 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
20796
20797         git-version-gen: use "git update-index..." rather than "git status"
20798         * build-aux/git-version-gen: Use git update-index --refresh, not
20799         "git status".  With some versions of git, "git status" would fail
20800         to update the index and result in an unwarranted "-dirty" suffix.
20801
20802 2010-04-11  Jim Meyering  <meyering@redhat.com>
20803
20804         openat: correct formatting (no semantic change)
20805         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
20806         Suggested by Bruno Haible.
20807
20808 2010-04-11  Bruno Haible  <bruno@clisp.org>
20809
20810         Stricter declaration checking in testdirs.
20811         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20812         If for_tests is true, augment AM_CPPFLAGS to define
20813         GNULIB_STRICT_CHECKING.
20814         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
20815         GNULIB_STRICT_CHECKING is defined, verify that the function is
20816         declared.
20817
20818 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
20819             Bruno Haible  <bruno@clisp.org>
20820
20821         libunistring: Improve configure output.
20822         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
20823         Don't say "consider installing GNU libunistring" when checking again
20824         with libiconv.
20825
20826 2010-04-11  Bruno Haible  <bruno@clisp.org>
20827
20828         libunistring: Correct value of $LTLIBUNISTRING.
20829         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
20830         correct the value of $LTLIBUNISTRING.
20831
20832 2010-04-11  Bruno Haible  <bruno@clisp.org>
20833
20834         havelib: Add static libraries to LIBS in the right order.
20835         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
20836         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
20837
20838 2010-04-11  Bruno Haible  <bruno@clisp.org>
20839
20840         libunistring: Detect libunistring also when it depends on libiconv.
20841         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
20842         the second AC_LIB_HAVE_LINKFLAGS invocation.
20843
20844 2010-04-11  James Youngman  <jay@gnu.org>
20845
20846         close-stream: declare local scalars to be "const"
20847         * lib/close-stream.c (close_stream): Make boolean variables const
20848         to document the fact that we set but do not change them.
20849
20850 2010-04-11  Bruno Haible  <bruno@clisp.org>
20851
20852         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
20853
20854 2010-04-11  Jim Meyering  <meyering@redhat.com>
20855
20856         maint.mk: don't include dist-check.mk
20857         * top/maint.mk: Remove bogus include directive.
20858
20859         maint.mk: improve empty-line-at-EOF check
20860         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
20861         solution, rather than tail+Perl-based one.  The latter would read
20862         a few kilobytes from the end of each file, and did not handle empty
20863         files properly.
20864
20865         maint.mk: print the elapsed time for each syntax-check rule
20866         * top/maint.mk (sc_m_rules_): Save start time in a file.
20867         (sc_z_rules_): New rules: remove temp file and print elapsed time.
20868         (local-check): Interpose the .z rules
20869
20870 2010-04-11  Jim Meyering  <meyering@redhat.com>
20871
20872         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
20873         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
20874         empty file with one that ends in an empty line.
20875
20876 2010-04-10  Bruno Haible  <bruno@clisp.org>
20877
20878         mkdir: Make it work on mingw64.
20879         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
20880         * lib/mkdir.c: Update comment.
20881         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
20882
20883 2010-04-10  Bruno Haible  <bruno@clisp.org>
20884
20885         Don't override improved macro from newer autoconf.
20886         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
20887         autoconf >= 2.62.
20888         Reported by Joel E. Denny <jdenny@clemson.edu>.
20889
20890 2010-04-10  Jim Meyering  <meyering@redhat.com>
20891
20892         maint.mk: new syntax-check rule: prohibit empty lines at end of file
20893         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
20894
20895         maint.mk: correct a diagnostic
20896         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
20897         in diagnostic; now use $prohibit.
20898
20899 2010-04-10  Bruno Haible  <address@hidden>
20900
20901         fchownat: Fix a C++ test error on Solaris 8.
20902         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
20903         the function does not exist.
20904
20905 2010-04-10  Bruno Haible  <bruno@clisp.org>
20906
20907         vasnprintf: Add more tests.
20908         * tests/test-vasnprintf-posix.c: Include <errno.h>.
20909         (test_function): Test converting an invalid wide string.
20910
20911         vasnprintf: Correct handling of unconvertible wide string arguments.
20912         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
20913         VASNPRINTF.
20914         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
20915         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
20916         smaller than the expected maximum need for the directive. Set errno to
20917         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
20918         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
20919         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
20920         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
20921         * modules/vasnprintf (Files): Add m4/printf.m4.
20922         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20923
20924 2010-04-10  Bruno Haible  <bruno@clisp.org>
20925
20926         vasnprintf: Fix crash in %ls directive.
20927         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
20928         string is passed as argument to %ls, with no precision and no width.
20929         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20930
20931 2010-04-10  Bruno Haible  <bruno@clisp.org>
20932
20933         vasnprintf: Fix multiple test failures on mingw.
20934         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
20935         _snprintf, or snwprintf, not _snwprintf.
20936
20937 2010-04-10  Bruno Haible  <bruno@clisp.org>
20938
20939         write: Fix a C++ test error on mingw.
20940         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
20941
20942 2010-04-10  Bruno Haible  <bruno@clisp.org>
20943
20944         vasnprintf test: Reduce code duplication.
20945         * tests/test-vasnprintf.c (test_function): New function, extracted from
20946         test_vasnprintf.
20947         (test_vasnprintf, test_asnprintf): Invoke it.
20948
20949 2010-04-10  Bruno Haible  <bruno@clisp.org>
20950
20951         strnlen: Fix warning in C++ mode on MacOS X.
20952         * lib/string.in.h (strnlen): Use the modern idiom.
20953         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
20954         defining strnlen as a macro already in <config.h>.
20955         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20956         REPLACE_STRNLEN.
20957         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
20958         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20959
20960 2010-04-08  James Youngman  <jay@gnu.org>
20961
20962         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
20963         the example.
20964
20965 2010-04-09  Jim Meyering  <meyering@redhat.com>
20966
20967         maint.mk: print better diagnostic when there is no $(_hv_file)
20968         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
20969         announce that when $(_hv_file) (aka help-version) does not exist.
20970
20971         init.sh: run tr in the "C" locale to avoid multibyte interpretation
20972         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
20973         not try to interpret its random input bytes.  Jarno Rajahalme reported
20974         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
20975         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
20976         (mktempd_): Likewise, just in case.
20977
20978         ftruncate: add two years to projected module removal date: 2012
20979         * m4/ftruncate.m4: Adjust comments.
20980
20981         ftruncate: mark module as obsolete; even MinGW provides it, now
20982         * modules/ftruncate (Status): Obsolete.
20983         (Notice): Say that.
20984         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
20985         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
20986
20987 2010-04-08  Bruno Haible  <bruno@clisp.org>
20988
20989         Fix side effects from tests-related modules.
20990         * modules/dprintf-posix (Comment): New section.
20991         * modules/fprintf-posix (Comment): Likewise.
20992         * modules/obstack-printf-posix (Comment): Likewise.
20993         * modules/printf-posix (Comment): Likewise.
20994         * modules/snprintf-posix (Comment): Likewise.
20995         * modules/sprintf-posix (Comment): Likewise.
20996         * modules/vasnprintf-posix (Comment): Likewise.
20997         * modules/vasprintf-posix (Comment): Likewise.
20998         * modules/vdprintf-posix (Comment): Likewise.
20999         * modules/vfprintf-posix (Comment): Likewise.
21000         * modules/vprintf-posix (Comment): Likewise.
21001         * modules/vsnprintf-posix (Comment): Likewise.
21002         * modules/vsprintf-posix (Comment): Likewise.
21003         * modules/xprintf-posix (Comment): Likewise.
21004         * modules/xvasprintf-posix (Comment): Likewise.
21005         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
21006         * modules/floorf-tests (Depends-on): Likewise.
21007         * modules/round-tests (Depends-on): Likewise.
21008         * modules/roundf-tests (Depends-on): Likewise.
21009         * modules/trunc-tests (Depends-on): Likewise.
21010         * modules/truncf-tests (Depends-on): Likewise.
21011         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
21012         'fprintf-posix' module is not present.
21013         * tests/test-floorf2.c (check): Likewise.
21014         * tests/test-trunc2.c (check): Likewise.
21015         * tests/test-truncf2.c (check): Likewise.
21016         * tests/test-round2.c (equal): Likewise.
21017         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
21018
21019 2010-04-07  Karl Berry  <karl@gnu.org>
21020
21021         * config/srclist.txt,
21022         * config/srclistvars.sh,
21023         * config/srclist-update: doc fixes.
21024
21025 2010-04-07  Jim Meyering  <meyering@redhat.com>
21026
21027         maint.mk: add a PATH crosschecking syntax-check rule
21028         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
21029         Useful if you use a test like the one in help-version (coreutils,
21030         diffutils, grep, gzip) that ensures $(VERSION) matches what is
21031         printed by prog --version.
21032
21033 2010-04-06  Bruno Haible  <bruno@clisp.org>
21034
21035         Fix link error on mingw.
21036         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
21037         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
21038
21039 2010-04-06  Bruno Haible  <bruno@clisp.org>
21040
21041         Assume rmdir exists.
21042         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
21043
21044 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
21045
21046         doc: update users.txt
21047         * users.txt: Add gcal.
21048
21049 2010-04-06  Jim Meyering  <meyering@redhat.com>
21050
21051         init.sh: simply unset TMPDIR rather than risking env -i
21052         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
21053         although it probably works fine on all Unix-based systems, some
21054         systems (Cygwin?) cannot tolerate a totally cleared environment.
21055         Suggestion from Eric Blake.
21056
21057 2010-04-06  Jim Meyering  <meyering@redhat.com>
21058
21059         init.sh: portability fix: use env's POSIX-specified -i option not -u
21060         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
21061         than unportable env -u.  Solaris 5.11's env lacks support for -u.
21062
21063 2010-04-05  Bruno Haible  <bruno@clisp.org>
21064
21065         btowc: Work around Cygwin 1.7.2 bug.
21066         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
21067         does not map NUL to 0.
21068         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
21069
21070 2010-04-05  Bruno Haible  <bruno@clisp.org>
21071
21072         Make the multithread modules work on Cygwin 1.7.2.
21073         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
21074         imported symbols can be declared weak, so that it returns "no" on
21075         Cygwin 1.7.2.
21076
21077 2010-04-05  Bruno Haible  <bruno@clisp.org>
21078
21079         Use the module 'strncat'.
21080         * modules/unistr/u8-strncat (Depends-on): Add strncat.
21081
21082         Tests for module 'strncat'.
21083         * modules/strncat-tests: New file.
21084         * tests/test-strncat.c: New file.
21085
21086         New module 'strncat'.
21087         * lib/string.in.h (strncat): New declaration.
21088         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
21089         * m4/strncat.m4: New file, based on m4/memchr.m4.
21090         * modules/strncat: New file.
21091         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
21092         is declared.
21093         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
21094         REPLACE_STRNCAT.
21095         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
21096         REPLACE_STRNCAT.
21097         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
21098         module.
21099         * tests/test-string-c++.cc: Check signature of strncat.
21100
21101 2010-04-05  Jim Meyering  <meyering@redhat.com>
21102
21103         xstrtoumax-tests: convert to use init.sh
21104         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
21105         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21106         Use Exit, not exit.
21107         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21108
21109         xstrtoimax-tests: convert to use init.sh
21110         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
21111         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21112         Use Exit, not exit.
21113         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21114
21115 2010-04-05  Bruno Haible  <bruno@clisp.org>
21116
21117         sys_socket: Avoid #define replacements in C++ mode.
21118         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
21119         warning to the function if possible, rather than #defining the symbol
21120         to a dysfunctional alias.
21121
21122 2010-04-05  Bruno Haible  <bruno@clisp.org>
21123
21124         fseeko: Fix C++ test error on mingw.
21125         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
21126         gl_FUNC_FSEEKO.
21127         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
21128         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
21129         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
21130         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
21131
21132 2010-04-05  Bruno Haible  <bruno@clisp.org>
21133
21134         duplocale: Improve test output.
21135         * tests/test-duplocale.c (main): Print reason for skipped test.
21136
21137 2010-04-05  Bruno Haible  <bruno@clisp.org>
21138
21139         Assume rmdir exists.
21140         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
21141         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
21142
21143 2010-04-05  Bruno Haible  <bruno@clisp.org>
21144
21145         Fix link error on Solaris 8 with cc.
21146         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
21147
21148 2010-04-05  Bruno Haible  <bruno@clisp.org>
21149
21150         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
21151         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
21152
21153 2010-04-05  Bruno Haible  <bruno@clisp.org>
21154
21155         vasprintf: Update documentation.
21156         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
21157
21158 2010-04-05  Bruno Haible  <bruno@clisp.org>
21159
21160         ptsname: Improve test.
21161         * tests/test-ptsname.c (main): Also try the various master names of BSD
21162         systems.
21163
21164 2010-04-05  Bruno Haible  <bruno@clisp.org>
21165
21166         memchr: Avoid a possible C++ test error.
21167         * lib/string.in.h (memchr): Provide declaration if function is missing.
21168         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
21169         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
21170         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
21171         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
21172
21173 2010-04-05  Bruno Haible  <bruno@clisp.org>
21174
21175         strtok_r: Improve idiom.
21176         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
21177         AC_LIBOBJ is used.
21178
21179 2010-04-05  Bruno Haible  <bruno@clisp.org>
21180
21181         strdup: Improve idiom.
21182         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
21183         AC_LIBOBJ is used.
21184         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
21185         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
21186         when AC_LIBOBJ is used.
21187
21188 2010-04-05  Bruno Haible  <bruno@clisp.org>
21189
21190         mbsinit, mbrtowc, wcrtomb: Improve idioms.
21191         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
21192         don't set REPLACE_MBSINIT to 1.
21193         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
21194         don't set REPLACE_MBRTOWC to 1.
21195         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
21196         exist, don't set REPLACE_MBSRTOWCS to 1.
21197         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
21198         exist, don't set REPLACE_MBSNRTOWCS to 1.
21199         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
21200         don't set REPLACE_WCRTOMB to 1.
21201         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
21202         exist, don't set REPLACE_WCSRTOMBS to 1.
21203         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
21204         exist, don't set REPLACE_WCSNRTOMBS to 1.
21205
21206 2010-04-05  Bruno Haible  <bruno@clisp.org>
21207
21208         ldexpl: Improve idiom.
21209         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
21210         make sure to set HAVE_DECL_LDEXPL to 0.
21211
21212 2010-04-05  Jim Meyering  <meyering@redhat.com>
21213
21214         xstrtol-tests: convert to use init.sh
21215         * modules/xstrtol-tests (Files): Add tests/init.sh.
21216         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21217         Use Exit, not exit.
21218         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21219
21220         atexit-tests: convert to use init.sh
21221         * modules/atexit-tests (Files): Add tests/init.sh.
21222         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
21223         Use Exit, not exit.
21224         Remove uses of $EXEEXT and "./" to run a program in the current dir.
21225
21226         init.sh: fix typo
21227         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
21228
21229         init.sh: make it easier for a test script to write to the tty, ...
21230         when using automake's parallel-tests mode.
21231         * tests/init.sh (stderr_fileno_): Define overridable variable.
21232         (warn_): New function, to use it.
21233         (fail_, skip_, framework_failure_): Use warn_.
21234
21235 2010-04-04  Bruno Haible  <bruno@clisp.org>
21236
21237         btowc: Avoid warning.
21238         * lib/btowc.c: Include <stdlib.h>.
21239         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
21240
21241 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
21242             Bruno Haible  <bruno@clisp.org>
21243
21244         wchar: Port to NetBSD 1.5.
21245         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
21246         * lib/wctype.in.h (WEOF): Likewise.
21247
21248 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
21249             Bruno Haible  <bruno@clisp.org>
21250
21251         Port extended stdio to NetBSD 1.5.
21252         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
21253         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
21254         older.
21255
21256 2010-04-04  Bruno Haible  <bruno@clisp.org>
21257
21258         string: Remove unused substitution.
21259         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
21260         HAVE_DECL_STRERROR.
21261         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
21262
21263 2010-04-04  Bruno Haible  <bruno@clisp.org>
21264
21265         strtod: Avoid a possible C++ test error.
21266         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
21267         set REPLACE_STRTOD.
21268
21269 2010-04-04  Bruno Haible  <bruno@clisp.org>
21270
21271         strerror: Update documentation.
21272         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
21273
21274 2010-04-04  Bruno Haible  <bruno@clisp.org>
21275
21276         stdio: Fix some C++ test errors on Solaris 8 with GCC.
21277         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
21278         _GL_CXXALIAS_SYS_CAST.
21279
21280 2010-04-04  Bruno Haible  <bruno@clisp.org>
21281
21282         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
21283         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
21284         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
21285         REPLACE_FREXPL to 1.
21286         * doc/posix-functions/frexpl.texi: Update documentation.
21287
21288 2010-04-04  Bruno Haible  <bruno@clisp.org>
21289
21290         math: Fix some C++ test errors on Solaris 8 and Cygwin.
21291         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
21292
21293 2010-04-04  Bruno Haible  <bruno@clisp.org>
21294
21295         Implement nanosleep for native Windows.
21296         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
21297
21298 2010-04-04  Bruno Haible  <bruno@clisp.org>
21299
21300         math: Fix some C++ test errors on Solaris 8.
21301         * lib/math.in.h (truncf, trunc): Use simpler idiom.
21302
21303 2010-04-04  Bruno Haible  <bruno@clisp.org>
21304
21305         math: Fix some C++ test errors on Cygwin.
21306         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
21307         truncl): Provide declaration if the system does not have it.
21308         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
21309         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
21310         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
21311         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
21312         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
21313         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
21314         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
21315         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
21316         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
21317         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
21318         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
21319         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
21320         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
21321         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
21322         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
21323         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
21324         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
21325         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
21326         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
21327         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
21328         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
21329         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
21330
21331 2010-04-04  Bruno Haible  <bruno@clisp.org>
21332
21333         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
21334         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
21335         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
21336         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
21337         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
21338         * m4/isinf.m4 (gl_ISINF): Likewise.
21339         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
21340
21341 2010-04-04  Bruno Haible  <bruno@clisp.org>
21342
21343         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
21344         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
21345
21346 2010-04-04  Bruno Haible  <bruno@clisp.org>
21347
21348         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
21349         * modules/tmpfile (configure.ac): Update.
21350
21351         tmpfile: Fix C++ test error on mingw.
21352         * lib/stdio.in.h (tmpfile): New declaration.
21353         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
21354         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
21355         * modules/tmpfile (Depends-on): Add stdio.
21356         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
21357         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
21358         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
21359         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
21360         REPLACE_TMPFILE.
21361         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
21362
21363 2010-04-04  Bruno Haible  <bruno@clisp.org>
21364
21365         ioctl: Fix C++ test error on mingw.
21366         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
21367         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
21368         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
21369
21370 2010-04-03  Bruno Haible  <bruno@clisp.org>
21371
21372         wcwidth: Fix C++ test error on mingw.
21373         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
21374         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
21375         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
21376
21377 2010-04-03  Bruno Haible  <bruno@clisp.org>
21378
21379         nanosleep: Fix C++ test error on mingw.
21380         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
21381         * lib/time.in.h (nanosleep): Use modern idiom.
21382         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
21383         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
21384         REPLACE_NANOSLEEP to 1.
21385         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
21386         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
21387
21388 2010-04-03  Bruno Haible  <bruno@clisp.org>
21389
21390         strptime: Fix C++ test error on mingw.
21391         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
21392         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
21393         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
21394         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
21395         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
21396         not REPLACE_STRPTIME.
21397         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
21398         REPLACE_STRPTIME.
21399
21400 2010-04-03  Bruno Haible  <bruno@clisp.org>
21401
21402         timegm: Fix C++ test error on mingw.
21403         * lib/time.in.h (timegm): Use modern idiom.
21404         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
21405         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
21406         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
21407         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
21408
21409 2010-04-03  Bruno Haible  <bruno@clisp.org>
21410
21411         timegm: Assume declaration if function exists.
21412         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
21413         if it exists. Don't clobber ac_cv_func_timegm.
21414
21415 2010-04-03  Bruno Haible  <bruno@clisp.org>
21416
21417         time_r: Fix C++ test error on mingw.
21418         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
21419         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
21420         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
21421         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
21422         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
21423
21424 2010-04-03  Bruno Haible  <bruno@clisp.org>
21425
21426         time_r: Minor updates.
21427         * modules/time_r (Description): Mention the provided functions.
21428         * lib/time_r.c: Don't include <string.h>.
21429         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
21430         * doc/posix-functions/localtime_r.texi: Likewise.
21431
21432 2010-04-03  Bruno Haible  <bruno@clisp.org>
21433
21434         time: Fix regression introduced on 2010-03-08.
21435         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
21436         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
21437
21438 2010-04-03  Jim Meyering  <meyering@redhat.com>
21439
21440         maint.mk: don't silently disable project-specific syntax-check rules
21441         * top/maint.mk (_prohibit_regexp): Define, to help people realize
21442         that they need to convert their project-specific syntax-check rules
21443         to use the new _sc_search_regexp.
21444
21445 2010-04-03  Bruno Haible  <bruno@clisp.org>
21446
21447         fchdir: Fix regression introduced on 2010-03-08.
21448         * lib/unistd.in.h (fchdir): Fix declaration.
21449         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
21450         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
21451         REPLACE_FCHDIR.
21452         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
21453         REPLACE_FCHDIR.
21454
21455 2010-04-03  Bruno Haible  <bruno@clisp.org>
21456
21457         getpagesize: Fix C++ test error on mingw.
21458         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
21459         system does not declare the function.
21460         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
21461         declared.
21462         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21463         HAVE_DECL_GETPAGESIZE.
21464         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
21465
21466 2010-04-03  Bruno Haible  <bruno@clisp.org>
21467
21468         stdio: Make C++ tests work on mingw.
21469         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
21470         does not declare the function.
21471
21472 2010-04-03  Bruno Haible  <bruno@clisp.org>
21473
21474         ftello: Fix C++ test error on mingw.
21475         * lib/stdio.in.h (ftello): Use modern idiom.
21476         * lib/ftello.c (ftello): Renamed from rpl_ftello.
21477         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
21478         is missing and that it needs to be replaced.
21479         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
21480         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
21481         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
21482
21483 2010-04-03  Bruno Haible  <bruno@clisp.org>
21484
21485         fseeko: Fix C++ test error on mingw.
21486         * lib/stdio.in.h (fseeko): Use modern idiom.
21487         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
21488         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
21489         is missing and that it needs to be replaced.
21490         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
21491         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
21492         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
21493
21494 2010-04-03  Bruno Haible  <bruno@clisp.org>
21495
21496         mkstemp: Fix C++ test error on mingw.
21497         * lib/stdlib.in.h (mkstemp): Use modern idiom.
21498         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
21499         function is missing and that it needs to be replaced.
21500         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
21501         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
21502
21503 2010-04-03  Bruno Haible  <bruno@clisp.org>
21504
21505         stpncpy: Fix C++ test error on mingw.
21506         * lib/string.in.h (stpncpy): Use modern idiom.
21507         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
21508         function is missing and that it needs to be replaced.
21509         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
21510         REPLACE_STPNCPY.
21511         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
21512
21513 2010-04-03  Bruno Haible  <bruno@clisp.org>
21514
21515         sys_stat: Fix C++ test error on mingw.
21516         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
21517         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
21518
21519 2010-04-03  Bruno Haible  <bruno@clisp.org>
21520
21521         pty: Update doc.
21522         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
21523
21524 2010-04-03  Bruno Haible  <bruno@clisp.org>
21525
21526         unistd: Fix C++ test error on mingw.
21527         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
21528
21529 2010-04-03  Bruno Haible  <bruno@clisp.org>
21530
21531         Update doc regarding mingw.
21532         * doc/glibc-functions/openpty.texi: Update regarding mingw.
21533         * doc/glibc-functions/login_tty.texi: Likewise.
21534         * doc/glibc-functions/forkpty.texi: Likewise.
21535
21536 2010-04-03  Bruno Haible  <bruno@clisp.org>
21537
21538         stdlib: Avoid compilation failure of c-strtold on mingw.
21539         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
21540
21541 2010-04-03  Bruno Haible  <bruno@clisp.org>
21542
21543         locale: Make C++ tests work on Cygwin and mingw.
21544         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
21545         cannot provide the function.
21546         Reported by Simon Josefsson.
21547
21548 2010-04-03  Bruno Haible  <bruno@clisp.org>
21549
21550         localename: Port to MacOS X 10.6.
21551         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
21552         memory layout of the locales in MacOS X 10.6 as well.
21553         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
21554
21555 2010-04-02  Bruno Haible  <bruno@clisp.org>
21556
21557         gnulib-tool: Ensure that long-running tests are executed last.
21558         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
21559         running tests after the one for the other tests.
21560
21561 2010-04-02  Bruno Haible  <bruno@clisp.org>
21562
21563         gnulib-tool: Ensure the tests in the main directory are executed first.
21564         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
21565         start with the current directory.
21566
21567 2010-04-02  Bruno Haible  <bruno@clisp.org>
21568
21569         Tests for module 'havelib', moved here from GNU gettext.
21570         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
21571         modifications.
21572         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
21573         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
21574         with modifications.
21575         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
21576         modifications.
21577         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
21578         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
21579         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
21580         with modifications.
21581         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
21582         with modifications.
21583         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
21584         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
21585         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
21586         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
21587         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
21588         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
21589         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
21590         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
21591         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
21592         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
21593         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
21594         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
21595         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
21596         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
21597         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
21598         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
21599         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
21600         with modifications.
21601         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
21602         with modifications.
21603         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
21604         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
21605         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
21606         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
21607         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
21608         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
21609         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
21610         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
21611         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
21612         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
21613         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
21614         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
21615         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
21616         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
21617         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
21618         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
21619         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
21620         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
21621         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
21622         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
21623         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
21624         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
21625         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
21626         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
21627         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
21628         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
21629         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
21630         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
21631         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
21632         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
21633         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
21634         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
21635         * tests/havelib/rpathx/rpathx.c: New file, from
21636         gettext/autoconf-lib-link.
21637         * tests/havelib/rpathx/Makefile.am: New file, from
21638         gettext/autoconf-lib-link.
21639         * tests/havelib/rpathx/configure.ac: New file, from
21640         gettext/autoconf-lib-link with modifications.
21641         * tests/havelib/rpathy/rpathy.c: New file, from
21642         gettext/autoconf-lib-link.
21643         * tests/havelib/rpathy/Makefile.am: New file, from
21644         gettext/autoconf-lib-link.
21645         * tests/havelib/rpathy/configure.ac: New file, from
21646         gettext/autoconf-lib-link with modifications.
21647         * tests/havelib/rpathz/rpathz.c: New file, from
21648         gettext/autoconf-lib-link.
21649         * tests/havelib/rpathz/Makefile.am: New file, from
21650         gettext/autoconf-lib-link.
21651         * tests/havelib/rpathz/configure.ac: New file, from
21652         gettext/autoconf-lib-link with modifications.
21653         * tests/havelib/rpathlx/usex.c: New file, from
21654         gettext/autoconf-lib-link.
21655         * tests/havelib/rpathlx/Makefile.am: New file, from
21656         gettext/autoconf-lib-link.
21657         * tests/havelib/rpathlx/configure.ac: New file, from
21658         gettext/autoconf-lib-link with modifications.
21659         * tests/havelib/rpathly/usey.c: New file, from
21660         gettext/autoconf-lib-link.
21661         * tests/havelib/rpathly/Makefile.am: New file, from
21662         gettext/autoconf-lib-link.
21663         * tests/havelib/rpathly/configure.ac: New file, from
21664         gettext/autoconf-lib-link with modifications.
21665         * tests/havelib/rpathlz/usez.c: New file, from
21666         gettext/autoconf-lib-link.
21667         * tests/havelib/rpathlz/Makefile.am: New file, from
21668         gettext/autoconf-lib-link.
21669         * tests/havelib/rpathlz/configure.ac: New file, from
21670         gettext/autoconf-lib-link with modifications.
21671         * tests/havelib/rpathlyx/usey.c: New file, from
21672         gettext/autoconf-lib-link.
21673         * tests/havelib/rpathlyx/Makefile.am: New file, from
21674         gettext/autoconf-lib-link.
21675         * tests/havelib/rpathlyx/configure.ac: New file, from
21676         gettext/autoconf-lib-link with modifications.
21677         * tests/havelib/rpathlzyx/usez.c: New file, from
21678         gettext/autoconf-lib-link.
21679         * tests/havelib/rpathlzyx/Makefile.am: New file, from
21680         gettext/autoconf-lib-link.
21681         * tests/havelib/rpathlzyx/configure.ac: New file, from
21682         gettext/autoconf-lib-link with modifications.
21683         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
21684         with modifications.
21685
21686 2010-04-02  Bruno Haible  <bruno@clisp.org>
21687
21688         gnulib-tool: Create distributed built sources also for the tests.
21689         * gnulib-tool (func_create_testdir): Also generate distributed built
21690         sources in the tests directory.
21691
21692 2010-04-02  Bruno Haible  <bruno@clisp.org>
21693
21694         gnulib-tool: Obey user's environment variables.
21695         * gnulib-tool (func_create_testdir): When creating built sources,
21696         respect the environment variables for autoconf, automake, etc. given by
21697         the user.
21698
21699 2010-04-02  Bruno Haible  <bruno@clisp.org>
21700
21701         gnulib-tool: Provide the value of --m4-base to modules.
21702         * gnulib-tool (func_import, func_create_testdir): Emit a definition
21703         of gl_m4_base.
21704
21705 2010-04-02  Eric Blake  <eblake@redhat.com>
21706
21707         maint.mk: fix some fallout
21708         * NEWS: Document the incompatible change, and its effect on cfg.mk.
21709         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
21710
21711 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
21712
21713         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
21714         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
21715         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
21716         (sc_cast_of_x_alloc_return_value): Likewise.
21717         (sc_cast_of_alloca_return_value): Likewise.
21718         (sc_space_tab): Likewise.
21719         (sc_prohibit_atoi_atof): Likewise.
21720         (sc_prohibit_magic_number_exit): Likewise.
21721         (sc_error_exit_success): Likewise.
21722         (sc_file_system): Likewise.
21723         (sc_prohibit_have_config_h): Likewise.
21724         (sc_require_config_h): Likewise.
21725         (sc_prohibit_HAVE_MBRTOWC): Likewise.
21726         (sc_obsolete_symbols): Likewise.
21727         (sc_changelog): Likewise.
21728         (sc_program_name): Likewise.
21729         (sc_the_the): Likewise.
21730         (sc_trailing_blank): Likewise.
21731         (sc_two_space_separator_in_usage): Likewise.
21732         (sc_useless_cpp_parens): Likewise.
21733         (sc_GPL_version): Likewise.
21734         (sc_GFDL_version): Likewise.
21735         (sc_texinfo_acronym): Likewise.
21736         (sc_prohibit_cvs_keyword): Likewise.
21737         (sc_prohibit_stat_st_blocks): Likewise.
21738         (sc_prohibit_S_IS_definition): Likewise.
21739         (sc_redundant_const): Likewise.
21740         (sc_makefile_TAB_only_indentation): Likewise.
21741         (sc_m4_quote_check): Likewise.
21742         (sc_makefile_path_separator_check): Likewise.
21743         (sc_copyright_check): Likewise.
21744         (sc_Wundef_boolean): Likewise.
21745         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
21746
21747         maint.mk: match 0 or more whitespace-before-function-call '('
21748         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
21749         that have zero or two-and-more spaces between the function name
21750         and the open parenthesis.
21751         (sc_error_message_warn_fatal): Likewise.
21752         (sc_error_message_uppercase): Likewise.
21753         (sc_error_message_period): Likewise.
21754
21755 2010-03-31  Eric Blake  <eblake@redhat.com>
21756
21757         maint.mk: check for [ as well as test
21758         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
21759         Based on a libvirt report by Matthias Bolte.
21760
21761         gnumakefile: don't squelch _version output
21762         * top/GNUmakefile (_version): Create one-shot dependency rather
21763         than using $(shell) when version must be regenerated.
21764         (_autoreconf): Run verbosely, by default.
21765
21766         sys_time: avoid compiler warnings
21767         * lib/sys_time.in.h (includes): Ensure gcc pragma is
21768         unconditional, fixing regression from 2010-03-29.
21769         Reported by Simon Josefsson.
21770
21771 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
21772
21773         maint.mk: s/_header_without_use/_sc_header_without_use/
21774         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
21775         (sc_prohibit_assert_without_use): Use the new name.
21776         (sc_prohibit_close_stream_without_use): Likewise.
21777         (sc_prohibit_getopt_without_use): Likewise.
21778         (sc_prohibit_quotearg_without_use): Likewise.
21779         (sc_prohibit_quote_without_use): Likewise.
21780         (sc_prohibit_long_options_without_use): Likewise.
21781         (sc_prohibit_inttostr_without_use): Likewise.
21782         (sc_prohibit_ignore_value_without_use): Likewise.
21783         (sc_prohibit_error_without_use): Likewise.
21784         (sc_prohibit_xalloc_without_use): Likewise.
21785         (sc_prohibit_hash_without_use): Likewise.
21786         (sc_prohibit_hash_pjw_without_use): Likewise.
21787         (sc_prohibit_safe_read_without_use): Likewise.
21788         (sc_prohibit_argmatch_without_use): Likewise.
21789         (sc_prohibit_canonicalize_without_use): Likewise.
21790         (sc_prohibit_root_dev_ino_without_use): Likewise.
21791         (sc_prohibit_openat_without_use): Likewise.
21792         (sc_prohibit_c_ctype_without_use): Likewise.
21793         (sc_prohibit_signal_without_use): Likewise.
21794         (sc_prohibit_intprops_without_use): Likewise.
21795
21796 2010-03-30  Eric Blake  <eblake@redhat.com>
21797
21798         maint: improve module indicators
21799         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
21800         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
21801         columns, and avoid extra macro expansion.
21802
21803         fdopendir: work around FreeBSD bug
21804         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
21805         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
21806         * modules/dirent (Makefile.am): Substitute it.
21807         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
21808         declaration.
21809         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
21810         fix.
21811         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21812
21813 2010-03-29  Bruno Haible  <bruno@clisp.org>
21814
21815         Emit #pragma system_header after the inclusion guard, not before.
21816         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
21817         guard that spans the entire file, not before. This enables an
21818         optimization in GCC's preprocessor.
21819         * lib/ctype.in.h: Likewise.
21820         * lib/dirent.in.h: Likewise.
21821         * lib/errno.in.h: Likewise.
21822         * lib/float.in.h: Likewise.
21823         * lib/getopt.in.h: Likewise.
21824         * lib/iconv.in.h: Likewise.
21825         * lib/langinfo.in.h: Likewise.
21826         * lib/locale.in.h: Likewise.
21827         * lib/math.in.h: Likewise.
21828         * lib/netdb.in.h: Likewise.
21829         * lib/netinet_in.in.h: Likewise.
21830         * lib/pty.in.h: Likewise.
21831         * lib/sched.in.h: Likewise.
21832         * lib/se-selinux.in.h: Likewise.
21833         * lib/search.in.h: Likewise.
21834         * lib/spawn.in.h: Likewise.
21835         * lib/stdarg.in.h: Likewise.
21836         * lib/stdint.in.h: Likewise.
21837         * lib/string.in.h: Likewise.
21838         * lib/strings.in.h: Likewise.
21839         * lib/sys_file.in.h: Likewise.
21840         * lib/sys_ioctl.in.h: Likewise.
21841         * lib/sys_time.in.h: Likewise.
21842         * lib/sys_times.in.h: Likewise.
21843         * lib/sys_utsname.in.h: Likewise.
21844         * lib/sys_wait.in.h: Likewise.
21845         * lib/sysexits.in.h: Likewise.
21846         * lib/wctype.in.h: Likewise.
21847
21848 2010-03-28  James Youngman  <jay@gnu.org>
21849
21850         save-cwd: don't leak a file descriptor when the caller execs.
21851         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
21852         saved file descriptor.
21853         * modules/save-cwd (Depends-on): Depend on cloexec.
21854
21855 2010-03-29  Bruno Haible  <bruno@clisp.org>
21856
21857         Remove vestiges of fts-lgpl module.
21858         * lib/fts_.h: Assume GNULIB_FTS is 1.
21859         * lib/fts.c: Likewise.
21860         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21861
21862 2010-03-28  Bruno Haible  <bruno@clisp.org>
21863
21864         Fix definition of tests witness macro.
21865         * gnulib-tool (func_import): Fix definition of witness macro.
21866
21867 2010-03-28  Bruno Haible  <bruno@clisp.org>
21868
21869         Fix ioctl's protoype on glibc systems.
21870         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
21871         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
21872         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
21873         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
21874         signature. If not, arrange to replace the ioctl function.
21875         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
21876         REPLACE_IOCTL.
21877         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
21878         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
21879         Reported by Ludovic Courtès <ludo@gnu.org>.
21880
21881 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
21882
21883         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
21884         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
21885         made it so grep -r --include=GLOB* ... did not work.
21886
21887 2010-03-26  Jim Meyering  <meyering@redhat.com>
21888             Eric Blake  <eblake@redhat.com>
21889
21890         maint.mk: prohibit use of test's -o and -a operators
21891         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
21892
21893 2010-03-28  Bruno Haible  <bruno@clisp.org>
21894
21895         Remove unused GNULIB_XYZ macro definitions.
21896         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
21897         invocation.
21898
21899 2010-03-28  Bruno Haible  <bruno@clisp.org>
21900
21901         Mark privileged tests modules.
21902         * modules/idpriv-drop-tests (Status): New section.
21903         * modules/idpriv-droptemp-tests (Status): New section.
21904
21905 2010-03-28  Bruno Haible  <bruno@clisp.org>
21906
21907         Split C++ tests into separate tests modules.
21908         * modules/dirent-c++-tests: New file, extracted from
21909         modules/dirent-tests.
21910         * modules/dirent-tests: Depend on it.
21911         * modules/fcntl-h-c++-tests: New file, extracted from
21912         modules/fcntl-h-tests.
21913         * modules/fcntl-h-tests: Depend on it.
21914         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
21915         * modules/glob-tests: Depend on it.
21916         * modules/iconv-h-c++-tests: New file, extracted from
21917         modules/iconv-h-tests.
21918         * modules/iconv-h-tests: Depend on it.
21919         * modules/langinfo-c++-tests: New file, extracted from
21920         modules/langinfo-tests.
21921         * modules/langinfo-tests: Depend on it.
21922         * modules/locale-c++-tests: New file, extracted from
21923         modules/locale-tests.
21924         * modules/locale-tests: Depend on it.
21925         * modules/math-c++-tests: New file, extracted from modules/math-tests.
21926         * modules/math-tests: Depend on it.
21927         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
21928         * modules/pty-tests: Depend on it.
21929         * modules/search-c++-tests: New file, extracted from
21930         modules/search-tests.
21931         * modules/search-tests: Depend on it.
21932         * modules/signal-c++-tests: New file, extracted from
21933         modules/signal-tests.
21934         * modules/signal-tests: Depend on it.
21935         * modules/spawn-c++-tests: New file, extracted from
21936         modules/spawn-tests.
21937         * modules/spawn-tests: Depend on it.
21938         * modules/stdio-c++-tests: New file, extracted from
21939         modules/stdio-tests.
21940         * modules/stdio-tests: Depend on it.
21941         * modules/stdlib-c++-tests: New file, extracted from
21942         modules/stdlib-tests.
21943         * modules/stdlib-tests: Depend on it.
21944         * modules/string-c++-tests: New file, extracted from
21945         modules/string-tests.
21946         * modules/string-tests: Depend on it.
21947         * modules/sys_ioctl-c++-tests: New file, extracted from
21948         modules/sys_ioctl-tests.
21949         * modules/sys_ioctl-tests: Depend on it.
21950         * modules/sys_select-c++-tests: New file, extracted from
21951         modules/sys_select-tests.
21952         * modules/sys_select-tests: Depend on it.
21953         * modules/sys_socket-c++-tests: New file, extracted from
21954         modules/sys_socket-tests.
21955         * modules/sys_socket-tests: Depend on it.
21956         * modules/sys_stat-c++-tests: New file, extracted from
21957         modules/sys_stat-tests.
21958         * modules/sys_stat-tests: Depend on it.
21959         * modules/sys_time-c++-tests: New file, extracted from
21960         modules/sys_time-tests.
21961         * modules/sys_time-tests: Depend on it.
21962         * modules/time-c++-tests: New file, extracted from modules/time-tests.
21963         * modules/time-tests: Depend on it.
21964         * modules/unistd-c++-tests: New file, extracted from
21965         modules/unistd-tests.
21966         * modules/unistd-tests: Depend on it.
21967         * modules/wchar-c++-tests: New file, extracted from
21968         modules/wchar-tests.
21969         * modules/wchar-tests: Depend on it.
21970         * modules/wctype-c++-tests: New file, extracted from
21971         modules/wctype-tests.
21972         * modules/wctype-tests: Depend on it.
21973         Reported by Simon Josefsson.
21974
21975 2010-03-28  Bruno Haible  <bruno@clisp.org>
21976
21977         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
21978         * gnulib-tool (func_exists_module): New function, extracted from
21979         func_verify_module.
21980         (func_verify_module): Use it.
21981         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
21982         'foo' only if 'foo' exists.
21983         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
21984         module.
21985
21986 2010-03-28  Bruno Haible  <bruno@clisp.org>
21987
21988         gnulib-tool: Add support for special categories of tests.
21989         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
21990         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
21991         (func_usage): Document them.
21992         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
21993         inc_unportable_tests, inc_all_tests): New variables.
21994         (func_acceptable): Consider these variables.
21995         (func_modules_transitive_closure): Make it work when the 'Status' field
21996         consists of multiple words.
21997         (func_import): Store and restore the values of inc_cxx_tests,
21998         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
21999         inc_all_tests in gnulib-comp.m4.
22000         (func_create_testdir): Set inc_all_tests to true.
22001         * doc/gnulib.texi (Extra tests modules): New section.
22002         Suggested by Jim Meyering.
22003
22004 2010-03-28  Bruno Haible  <bruno@clisp.org>
22005
22006         ansi-c++-opt: Allow turning off the C++ build by default.
22007         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
22008         gl_CXX_CHOICE_DEFAULT_NO is defined.
22009         Requested by Eric Blake.
22010
22011 2010-03-28  Bruno Haible  <bruno@clisp.org>
22012
22013         unistd: Avoid #define replacements in C++ mode.
22014         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
22015         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
22016         setsockopt, shutdown, select): In C++, attach a warning to the function
22017         if possible, rather than #defining the symbol to a dysfunctional alias.
22018         Reported by John W. Eaton <jwe@gnu.org>.
22019
22020 2010-03-28  Bruno Haible  <bruno@clisp.org>
22021
22022         Fix link errors on mingw.
22023         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
22024         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
22025         $(LIBSOCKET).
22026         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
22027         $(LIBSOCKET).
22028
22029 2010-03-28  Bruno Haible  <bruno@clisp.org>
22030             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22031
22032         lib-ignore: Determine different options for different compilers.
22033         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
22034         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
22035         Add comments.
22036         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
22037         * NEWS: Mention the change.
22038
22039 2010-03-27  Bruno Haible  <bruno@clisp.org>
22040
22041         Remove unused GNULIB_XYZ macro definitions.
22042         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
22043         * modules/fseek (configure.ac): Likewise.
22044         * modules/ioctl (configure.ac): Likewise.
22045         * modules/open (configure.ac): Likewise.
22046         * modules/stdlib-safer (configure.ac): Likewise.
22047
22048 2010-03-27  Bruno Haible  <bruno@clisp.org>
22049
22050         Add a remark about certain modules.
22051         * modules/malloc (Comment): New section.
22052         * modules/realloc (Comment): Likewise.
22053         * modules/sigpipe (Comment): Likewise.
22054
22055 2010-03-27  Bruno Haible  <bruno@clisp.org>
22056
22057         Resolve conflict between the two kinds of module indicators.
22058         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
22059         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
22060         * modules/canonicalize (configure.ac): Invoke
22061         gl_MODULE_INDICATOR_FOR_TESTS.
22062         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
22063         GNULIB_XYZ.
22064         * tests/test-dirent-c++.cc: Likewise.
22065         * tests/test-dirent-safer.c: Likewise.
22066         * tests/test-dup2.c: Likewise.
22067         * tests/test-fchdir.c: Likewise.
22068         * tests/test-fcntl-h-c++.cc: Likewise.
22069         * tests/test-getopt.c: Likewise.
22070         * tests/test-getopt.h: Likewise.
22071         * tests/test-langinfo-c++.cc: Likewise.
22072         * tests/test-locale-c++.cc: Likewise.
22073         * tests/test-math-c++.cc: Likewise.
22074         * tests/test-pty-c++.cc: Likewise.
22075         * tests/test-search-c++.cc: Likewise.
22076         * tests/test-signal-c++.cc: Likewise.
22077         * tests/test-spawn-c++.cc: Likewise.
22078         * tests/test-stdio-c++.cc: Likewise.
22079         * tests/test-stdlib-c++.cc: Likewise.
22080         * tests/test-string-c++.cc: Likewise.
22081         * tests/test-sys_ioctl-c++.cc: Likewise.
22082         * tests/test-sys_select-c++.cc: Likewise.
22083         * tests/test-sys_socket-c++.cc: Likewise.
22084         * tests/test-sys_stat-c++.cc: Likewise.
22085         * tests/test-sys_time-c++.cc: Likewise.
22086         * tests/test-time-c++.cc: Likewise.
22087         * tests/test-unistd-c++.cc: Likewise.
22088         * tests/test-wchar-c++.cc: Likewise.
22089         * tests/uninorm/test-u8-nfc.c: Likewise.
22090         * tests/uninorm/test-u8-nfd.c: Likewise.
22091         * tests/uninorm/test-u8-nfkc.c: Likewise.
22092         * tests/uninorm/test-u8-nfkd.c: Likewise.
22093         * tests/uninorm/test-u16-nfc.c: Likewise.
22094         * tests/uninorm/test-u16-nfd.c: Likewise.
22095         * tests/uninorm/test-u16-nfkc.c: Likewise.
22096         * tests/uninorm/test-u16-nfkd.c: Likewise.
22097         * tests/uninorm/test-u32-nfc.c: Likewise.
22098         * tests/uninorm/test-u32-nfc-big.c: Likewise.
22099         * tests/uninorm/test-u32-nfd.c: Likewise.
22100         * tests/uninorm/test-u32-nfd-big.c: Likewise.
22101         * tests/uninorm/test-u32-nfkc.c: Likewise.
22102         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
22103         * tests/uninorm/test-u32-nfkd.c: Likewise.
22104         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
22105         * tests/uninorm/test-u32-normalize-big.c: Likewise.
22106
22107 2010-03-27  Bruno Haible  <bruno@clisp.org>
22108
22109         Distinguish two kinds of module indicators.
22110         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
22111         gl_MODULE_INDICATOR.
22112         (gl_MODULE_INDICATOR): New macro.
22113         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
22114         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
22115         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
22116         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
22117         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
22118         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
22119         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
22120         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
22121         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
22122         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
22123         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
22124         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
22125         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
22126         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
22127         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
22128         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
22129         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
22130         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
22131         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
22132         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
22133         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
22134         * modules/cloexec (configure.ac): Likewise.
22135         * modules/getopt-gnu (configure.ac): Likewise.
22136         * modules/uninorm/u8-normalize (configure.ac): Likewise.
22137         * modules/uninorm/u16-normalize (configure.ac): Likewise.
22138         * modules/uninorm/u32-normalize (configure.ac): Likewise.
22139         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
22140
22141 2010-03-27  Bruno Haible  <bruno@clisp.org>
22142
22143         New module description field 'Comment'.
22144         * gnulib-tool: New option --extract-comment.
22145         (func_usage): Document it.
22146         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
22147         (func_get_comment): New function.
22148         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
22149
22150 2010-03-27  Bruno Haible  <bruno@clisp.org>
22151
22152         Addendum to 2010-02-07 commit.
22153         * gnulib-tool (func_usage): Document --extract-applicability option.
22154
22155 2010-03-27  Bruno Haible  <bruno@clisp.org>
22156
22157         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
22158         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
22159         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
22160         rather than link errors.
22161
22162 2010-03-27  Bruno Haible  <bruno@clisp.org>
22163
22164         Avoid side effects from tests-related modules on the compilation of lib.
22165         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
22166         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
22167         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
22168         parameter. Emit into AM_CPPFLAGS a definition of the designated C
22169         macro.
22170         (func_import): Define a witness macro. Assign it a value that depends
22171         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
22172         tests-related modules.
22173         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
22174         Reported by Jim Meyering.
22175
22176 2010-03-27  Bruno Haible  <bruno@clisp.org>
22177
22178         Factorize common .m4 code.
22179         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
22180         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
22181         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
22182         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
22183         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
22184         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
22185         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
22186         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
22187         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
22188         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
22189         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
22190         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
22191         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
22192         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
22193         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
22194         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
22195         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
22196         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
22197         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
22198         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
22199         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
22200         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
22201         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
22202         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
22203         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
22204         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
22205         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
22206         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
22207         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
22208         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
22209         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
22210         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
22211
22212 2010-03-27  Bruno Haible  <bruno@clisp.org>
22213
22214         Fix a compilation error on Cygwin with g++ >= 4.3.
22215         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
22216         if it is undefined or if we alias it to chmod.
22217         (lstat): Don't warn about the use of this function if it is undefined
22218         or if we alias it to stat.
22219         Reported by Simon Josefsson.
22220
22221 2010-03-27  Bruno Haible  <bruno@clisp.org>
22222
22223         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
22224         * modules/getlogin (configure.ac): Update.
22225
22226         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
22227         * modules/getlogin_r (configure.ac): Update.
22228
22229         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
22230         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
22231         * modules/inet_ntop (configure.ac): Update.
22232
22233         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
22234         * modules/inet_pton (configure.ac): Update.
22235
22236         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
22237         * modules/mbslen (configure.ac): Update.
22238
22239         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
22240         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
22241         * modules/forkpty (configure.ac): Update.
22242         * modules/openpty (configure.ac): Update.
22243
22244 2010-03-26  Simon Josefsson  <simon@josefsson.org>
22245
22246         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
22247         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
22248
22249 2010-03-25  Eric Blake  <eblake@redhat.com>
22250
22251         maint: use pragma consistently across replacement headers
22252         * lib/ctype.in.h (system_header): Hoist for consistent placement.
22253         * lib/dirent.in.h (system_header): Likewise.
22254         * lib/errno.in.h (system_header): Likewise.
22255         * lib/float.in.h (system_header): Likewise.
22256         * lib/getopt.in.h (system_header): Likewise.
22257         * lib/iconv.in.h (system_header): Likewise.
22258         * lib/inttypes.in.h (system_header): Likewise.
22259         * lib/langinfo.in.h (system_header): Likewise.
22260         * lib/locale.in.h (system_header): Likewise.
22261         * lib/math.in.h (system_header): Likewise.
22262         * lib/netdb.in.h (system_header): Likewise.
22263         * lib/netinet_in.in.h (system_header): Likewise.
22264         * lib/pty.in.h (system_header): Likewise.
22265         * lib/sched.in.h (system_header): Likewise.
22266         * lib/se-selinux.in.h (system_header): Likewise.
22267         * lib/search.in.h (system_header): Likewise.
22268         * lib/spawn.in.h (system_header): Likewise.
22269         * lib/stdarg.in.h (system_header): Likewise.
22270         * lib/stdint.in.h (system_header): Likewise.
22271         * lib/string.in.h (system_header): Likewise.
22272         * lib/strings.in.h (system_header): Likewise.
22273         * lib/sys_file.in.h (system_header): Likewise.
22274         * lib/sys_ioctl.in.h (system_header): Likewise.
22275         * lib/sys_socket.in.h (system_header): Likewise.
22276         * lib/sys_times.in.h (system_header): Likewise.
22277         * lib/sys_utsname.in.h (system_header): Likewise.
22278         * lib/sys_wait.in.h (system_header): Likewise.
22279         * lib/sysexits.in.h (system_header): Likewise.
22280         * lib/unistd.in.h (system_header): Likewise.
22281         * lib/wctype.in.h (system_header): Likewise.
22282
22283         arpa/inet: fix mingw compilation warning
22284         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
22285         Reported by Matthew Bolte.
22286
22287 2010-03-25  Bruno Haible  <bruno@clisp.org>
22288
22289         Avoid collision between gnulib wrapper and libintl wrapper.
22290         * lib/printf.c (printf): Don't define if a printf wrapper is already
22291         defined in intl/printf.c.
22292         Reported by Michel Boaventura <michel@michelboaventura.com>.
22293
22294 2010-03-25  Bruno Haible  <bruno@clisp.org>
22295
22296         Use ANSI C.
22297         * lib/readutmp.h (getutent): Provide ANSI C prototype.
22298
22299 2010-03-25  Bruno Haible  <bruno@clisp.org>
22300
22301         Minor formatting changes.
22302         * lib/acosl.c: Insert space before function argument list.
22303         * lib/argz.c: Likewise.
22304         * lib/asinl.c: Likewise.
22305         * lib/expl.c: Likewise.
22306         * lib/gen-uni-tables.c: Likewise.
22307         * lib/gettext.h: Likewise.
22308         * lib/glthread/lock.h: Likewise.
22309         * lib/tanl.c: Likewise.
22310         * lib/uniname/uniname.c: Likewise.
22311         * tests/test-idpriv-drop.c: Likewise.
22312         * tests/test-idpriv-droptemp.c: Likewise.
22313         * tests/test-lock.c: Likewise.
22314         * tests/test-tls.c: Likewise.
22315         * lib/argp-help.c: Insert space before function-like macro argument
22316         list.
22317         * lib/memcmp.c: Likewise.
22318         * tests/test-base64.c: Likewise.
22319         * lib/localename.c: Insert space before sizeof's argument list.
22320         * lib/safe-alloc.h: Likewise.
22321         * lib/file-set.h: Insert space before macro argument list.
22322         * tests/test-argp.c: Likewise.
22323         * lib/argp-namefrob.h: Insert space before function parameter list.
22324         * lib/getaddrinfo.c: Likewise.
22325         * lib/netdb.in.h: Likewise.
22326         * lib/parse-duration.h: Likewise.
22327         * lib/parse-duration.c: Likewise.
22328         * lib/poll.c: Likewise.
22329         * lib/select.c: Likewise.
22330         * lib/trim.h: Likewise.
22331         * tests/test-usleep.c: Likewise.
22332         * lib/ldexpl.c: Insert space before function parameter list and before
22333         function argument list.
22334         * lib/logl.c: Likewise.
22335         * lib/sqrtl.c: Likewise.
22336         * lib/trim.c: Likewise.
22337         * lib/cosl.c: Use GNU style indentation. Insert space before function
22338         argument list.
22339         * lib/sinl.c: Likewise.
22340         * lib/tsearch.c: Insert space after 'for'.
22341         Reported by Jim Meyering.
22342
22343 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
22344
22345         * maint.mk (sc_Wundef_boolean): Check for the presence of the
22346         config header before grepping, as it's not present before
22347         autoreconf/configure are run.  Reported by Simon Josefsson.
22348
22349 2010-03-23  Bruno Haible  <bruno@clisp.org>
22350
22351         pt_chown: Make it work with automake < 1.11.
22352         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
22353         Reported by Simon Josefsson.
22354
22355 2010-03-23  Bruno Haible  <bruno@clisp.org>
22356
22357         pt_chown: Don't depend on GPLed modules.
22358         * lib/pt_chown.c: Don't include idpriv.h.
22359         (main): Don't drop privileges.
22360         * modules/pt_chown (Depends-on): Remove idpriv-drop.
22361         Reported by Simon Josefsson.
22362
22363 2010-03-24  Simon Josefsson  <simon@josefsson.org>
22364
22365         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
22366         suggestions from karl@freefriends.org (Karl Berry).
22367
22368 2010-03-22  Eric Blake  <eblake@redhat.com>
22369
22370         gethostname: further tweaks
22371         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
22372         are overriding gethostname.
22373         Suggested by Bruno Haible.
22374
22375 2010-03-21  Bruno Haible  <bruno@clisp.org>
22376
22377         Fix comments.
22378         * lib/forkpty.c (rpl_forkpty): Fix comment.
22379         * lib/openpty.c (rpl_openpty): Likewise.
22380         Reported by Eric Blake.
22381
22382 2010-03-22  Eric Blake  <eblake@redhat.com>
22383
22384         gethostname: fix build on mingw
22385         * lib/unistd.in.h (includes): Work around fact that mingw
22386         <winsock2.h> re-includes <unistd.h>, by avoiding any
22387         redeclarations if we are being included by <winsock2.h>.
22388         Reported by Matthias Bolte.
22389
22390 2010-03-21  Bruno Haible  <bruno@clisp.org>
22391
22392         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
22393         * lib/forkpty.c (forkpty): New replacement function, from glibc with
22394         modifications.
22395         * lib/pty.in.h (forkpty): Update declaration. Add comments.
22396         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
22397         provide the replacement.
22398         * modules/forkpty (Depends-on): Add openpty, login_tty.
22399         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
22400         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
22401         * doc/glibc-functions/forkpty.texi: More supported platforms.
22402         * config/srclist.txt: Add forkpty.c (commented).
22403
22404 2010-03-21  Bruno Haible  <bruno@clisp.org>
22405
22406         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
22407         (Makefile.am): Verify that PTY_LIB is defined.
22408
22409         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
22410
22411 2010-03-21  Bruno Haible  <bruno@clisp.org>
22412
22413         Tests for module 'login_tty'.
22414         * modules/login_tty-tests: New file.
22415         * tests/test-login_tty.c: New file.
22416
22417         New module 'login_tty'.
22418         * lib/login_tty.c: New file.
22419         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
22420         * modules/login_tty: New file.
22421         * doc/glibc-functions/login_tty.texi: Mention the new module.
22422
22423 2010-03-21  Bruno Haible  <bruno@clisp.org>
22424
22425         login_tty: Documentation.
22426         * doc/glibc-functions/login_tty.texi: New file.
22427         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
22428
22429 2010-03-21  Bruno Haible  <bruno@clisp.org>
22430
22431         pty: Consistent macro naming.
22432         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
22433         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
22434         * modules/pty (configure.ac): Update.
22435
22436 2010-03-21  Bruno Haible  <bruno@clisp.org>
22437
22438         Tests for openpty: Make stricter.
22439         * tests/test-openpty.c (main): Add test of canonical processing and
22440         erase.
22441         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
22442
22443         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
22444         * lib/openpty.c (openpty): New replacement function.
22445         * lib/pty.in.h: Include <termios.h>.
22446         (openpty): Update declaration. Add comments.
22447         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
22448         is not declared, arrange to provide the replacement. Check for _getpty
22449         and posix_openpt.
22450         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
22451         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
22452         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
22453         * modules/pty-tests (test_pty_c___LDADD): New variable.
22454         * doc/glibc-functions/openpty.texi: More supported platforms.
22455
22456 2010-03-21  Bruno Haible  <bruno@clisp.org>
22457
22458         setenv: Tweaks.
22459         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
22460         the test program.
22461         * doc/posix-functions/setenv.texi: Update platforms list.
22462
22463 2010-03-21  Bruno Haible  <bruno@clisp.org>
22464
22465         New module 'unlockpt'.
22466         * lib/unlockpt.c: New file, from glibc with modifications.
22467         * m4/unlockpt.m4: New file.
22468         * modules/unlockpt: New file.
22469         * lib/stdlib.in.h (unlockpt): New declaration.
22470         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
22471         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
22472         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
22473         HAVE_UNLOCKPT.
22474         * doc/posix-functions/unlockpt.texi: Mention the new module.
22475         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
22476         * config/srclist.txt: Add unlockpt.c (commented).
22477
22478 2010-03-21  Jim Meyering  <meyering@redhat.com>
22479
22480         maint.mk: prohibit inclusion of "intprops.h" without use
22481         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
22482
22483 2010-03-21  Bruno Haible  <bruno@clisp.org>
22484
22485         New module 'grantpt'.
22486         * lib/grantpt.c: New file, from glibc with modifications.
22487         * m4/grantpt.m4: New file.
22488         * modules/grantpt: New file.
22489         * lib/stdlib.in.h (grantpt): New declaration.
22490         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
22491         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
22492         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
22493         HAVE_GRANTPT.
22494         * doc/posix-functions/grantpt.texi: Mention the new module.
22495         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
22496         * config/srclist.txt: Add grantpt.c (commented).
22497
22498 2010-03-21  Bruno Haible  <bruno@clisp.org>
22499
22500         New module 'pt_chown'.
22501         * lib/pt_chown.c: New file, from glibc with modifications.
22502         * lib/pty-private.h: New file, from glibc with modifications.
22503         * modules/pt_chown: New file.
22504         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
22505
22506 2010-03-21  Bruno Haible  <bruno@clisp.org>
22507
22508         Tests for module 'ptsname'.
22509         * modules/ptsname-tests: New file.
22510         * tests/test-ptsname.c: New file.
22511
22512         New module 'ptsname'.
22513         * lib/ptsname.c: New file, from glibc with modifications.
22514         * m4/ptsname.m4: New file.
22515         * modules/ptsname: New file.
22516         * lib/stdlib.in.h (ptsname): New declaration.
22517         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
22518         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
22519         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
22520         HAVE_PTSNAME.
22521         * doc/posix-functions/ptsname.texi: Mention the new module.
22522         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
22523         * config/srclist.txt: Add ptsname.c (commented).
22524
22525 2010-03-21  Bruno Haible  <bruno@clisp.org>
22526
22527         Tests for module 'ttyname_r'.
22528         * modules/ttyname_r-tests: New file.
22529         * tests/test-ttyname_r.c: New file.
22530
22531         New module 'ttyname_r'.
22532         * lib/ttyname_r.c: New file.
22533         * m4/ttyname_r.m4: New file.
22534         * modules/ttyname_r: New file.
22535         * lib/unistd.in.h (ttyname_r): New declaration.
22536         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
22537         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
22538         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
22539         HAVE_TTYNAME_R.
22540         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
22541         * doc/posix-functions/ttyname_r.texi: Mention the new module.
22542
22543 2010-03-20  Bruno Haible  <bruno@clisp.org>
22544
22545         signal: Undefine macro definitions in C++ mode.
22546         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
22547         sigfillset): Undefine macro definitions from the system header in C++
22548         mode.
22549         Reported by John W. Eaton <jwe@gnu.org>.
22550
22551 2010-03-20  Bruno Haible  <bruno@clisp.org>
22552
22553         Ensure no #include statements inside extern "C" { ... }.
22554         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
22555         contain #include statements.
22556         * lib/time.in.h: Likewise.
22557
22558 2010-03-20  Bruno Haible  <bruno@clisp.org>
22559
22560         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
22561         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
22562         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
22563         Reported by John W. Eaton <jwe@gnu.org>.
22564
22565 2010-03-20  Bruno Haible  <bruno@clisp.org>
22566
22567         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
22568         Reported by Jim Meyering.
22569
22570 2010-03-20  Bruno Haible  <bruno@clisp.org>
22571
22572         pipe: Set errno upon failure.
22573         * lib/pipe.h: Specify that when -1 is returned, errno is set.
22574         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
22575         errno value in error message.
22576
22577 2010-03-20  Bruno Haible  <bruno@clisp.org>
22578             Jim Meyering  <meyering@redhat.com>
22579
22580         lchown: Avoid "unused variable" warning.
22581         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
22582
22583 2010-03-20  Bruno Haible  <bruno@clisp.org>
22584
22585         Work around unlink() bug on MacOS X 10.5.6.
22586         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
22587         attempting to unlink a parent directory.
22588         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
22589         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
22590         activate for the replacement function.
22591         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
22592
22593 2010-03-20  Bruno Haible  <bruno@clisp.org>
22594
22595         Fix link errors on Solaris 8.
22596         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
22597         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
22598
22599 2010-03-19  Jim Meyering  <meyering@redhat.com>
22600
22601         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
22602         The _LIBC implementation of build_range_exp correctly honors the
22603         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
22604         However, the non-_LIBC implementation would ignore that syntax-bit
22605         flag and return REG_ERANGE unconditionally.
22606         This change makes it honor that flag.
22607         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
22608         Make two pointer parameters "const".
22609         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
22610         (parse_bracket_exp): Update caller.
22611
22612         regex.m4: correct the reversed range endpoint ([b-a]) test
22613         * m4/regex.m4: When requiring that [b-a] evoke failure,
22614         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
22615         test pass once again for x86-based systems.
22616
22617 2010-03-19  Bruno Haible  <bruno@clisp.org>
22618
22619         scandir: Fix link error on Solaris 8.
22620         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
22621         macros.
22622
22623 2010-03-19  Bruno Haible  <bruno@clisp.org>
22624
22625         getusershell: Fix documentation.
22626         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
22627         module.
22628         * doc/glibc-functions/setusershell.texi: Likewise.
22629
22630         getusershell: Provide declaration, missing on Solaris 9.
22631         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
22632         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
22633         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
22634         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
22635         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
22636         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
22637         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
22638         HAVE_GETUSERSHELL.
22639         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
22640
22641 2010-03-19  Bruno Haible  <bruno@clisp.org>
22642
22643         wctype: Provide iswblank function.
22644         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
22645         exists and is fine.
22646         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
22647         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
22648         * tests/test-wctype.c (main): Re-enable the iswblank tests.
22649         * doc/posix-functions/iswblank.texi: Update.
22650
22651 2010-03-19  Bruno Haible  <bruno@clisp.org>
22652
22653         Tests of module 'pty' in C++ mode.
22654         * modules/pty-tests: New file.
22655         * tests/test-pty-c++.cc: New file.
22656         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22657
22658 2010-03-19  Eric Blake  <eblake@redhat.com>
22659
22660         logb: fix documentation
22661         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
22662         1.5 declaration bug.
22663
22664         forkpty, openpty: prefer glibc's const-safe prototype
22665         * lib/forkpty.c (rpl_forkpty): New file.
22666         * lib/openpty.c (rpl_openpty): Likewise.
22667         * modules/forkpty (Files): Distribute it.
22668         * modules/openpty (Files): Likewise.
22669         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
22670         check...
22671         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
22672         replacement for for non-const BSD signature.
22673         * modules/pty (Makefile.am): Substitute witnesses.
22674         * lib/pty.in.h (forkpty, openpty): Declare replacements.
22675         * tests/test-forkpty.c: Update signature check.
22676         * tests/test-openpty.c: Likewise.
22677         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
22678         * doc/glibc-functions/openpty.texi (openpty): Likewise.
22679
22680         forkpty, openpty: split functions into new modules
22681         * modules/pty (Makefile.am): Substitute new witnesses.
22682         (Libraries): Move library detection...
22683         * modules/forkpty: ...into new module.
22684         * modules/openpty: Another new module.
22685         * modules/pty-tests: Rename and split...
22686         * modules/forkpty-tests: ...to this...
22687         * modules/openpty-tests: ...and this.
22688         * tests/test-pty.c: Rename and split...
22689         * tests/test-forkpty.c: ...to this...
22690         * tests/test-openpty.c: ...and this.
22691         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
22692         (gl_PTY): Split library searching...
22693         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
22694         (gl_FORKPTY, gl_OPENPTY): New macros.
22695         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
22696         * NEWS: Mention the split.
22697         * MODULES.html.sh (Misc): Document the modules.
22698         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
22699         * doc/glibc-functions/openpty.texi (openpty): Likewise.
22700
22701         pty: improve replacement header
22702         * lib/pty.in.h: New file.
22703         * modules/pty (Files): Ship it.
22704         (Makefile.am): Always build replacement.
22705         * m4/pty.m4: Rename...
22706         * m4/pty_h.m4: ...to this.
22707         (gl_PTY): Modernize setting of witness macros; update check of
22708         forkpty to take proper advantage of cache.
22709         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
22710
22711         getopt: avoid compiler warning
22712         * lib/getopt.c (attribute_hidden): Remove unused macro.
22713
22714 2010-03-18  Bruno Haible  <bruno@clisp.org>
22715
22716         Fix link errors on Solaris 8.
22717         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
22718         * modules/search-tests (test_search_c___LDADD): Likewise.
22719         * modules/signal-tests (test_signal_c___LDADD): Likewise.
22720         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
22721         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
22722         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
22723         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
22724         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
22725         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
22726
22727 2010-03-18  Bruno Haible  <bruno@clisp.org>
22728
22729         Fix bug introduced on 2010-03-14.
22730         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
22731         (gl_SPAWN_H): Require it.
22732         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
22733         Reported by Simon Josefsson.
22734
22735 2010-03-18  Bruno Haible  <bruno@clisp.org>
22736
22737         Fix typo introduced on 2009-12-31.
22738         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
22739         posix_spawn_file_actions_adddup2.
22740
22741 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
22742         and Eric Blake  <eblake@redhat.com>
22743
22744         test-vc-list-files-git: make more robust
22745         * tests/test-vc-list-files-git.sh: Unset problematic environment
22746         variables.  Chain commands together.
22747
22748 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
22749
22750         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
22751         `AC_CHECK_DECL' invocation.
22752
22753 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
22754
22755         * lib/inttostr.c (inttostr): Make sure the invocation of verify
22756         appears before executable statements. Suggested by Petr Sumbera
22757         <Petr.Sumbera@Sun.COM>.
22758
22759 2010-03-14  Bruno Haible  <bruno@clisp.org>
22760
22761         * tests/test-flock.c (test_exclusive): Comment out a test that causes
22762         portability problems. Instead use a simpler test.
22763         (main): Check that invalid arguments are rejected only on Linux.
22764
22765 2010-03-14  Bruno Haible  <bruno@clisp.org>
22766
22767         Fix bug introduced on 2009-12-31.
22768         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
22769         gl_PREREQ_SYS_H_WINSOCK2 always.
22770         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
22771         SYS_SOCKET_H variable.
22772         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
22773         Update comments.
22774         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
22775         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22776         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22777         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22778         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
22779
22780 2010-03-14  Bruno Haible  <bruno@clisp.org>
22781
22782         Fix values returned by sinl, cosl.
22783         * lib/trigl.h: Add specification comments.
22784         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
22785         that combines the values from the precomputed table with the values of
22786         the Chebyshev polynomials.
22787
22788 2010-03-14  Bruno Haible  <bruno@clisp.org>
22789
22790         Fix compilation error when modules 'posix_spawn[p]' are not used.
22791         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
22792         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
22793
22794 2010-03-14  Bruno Haible  <bruno@clisp.org>
22795
22796         Fix compilation error on mingw when module 'time_r' is not used.
22797         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
22798         is 1.
22799         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
22800         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
22801         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
22802         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
22803
22804 2010-03-14  Bruno Haible  <bruno@clisp.org>
22805
22806         Fix compilation error with Sun C.
22807         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
22808         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
22809         instead of GCC specific ULONG_LONG_MAX.
22810         * lib/xstrtoll.c: Likewise.
22811         * lib/xstrtoull.c: Likewise.
22812
22813 2010-03-13  Bruno Haible  <bruno@clisp.org>
22814
22815         Allow the user to disable C++ code and tests.
22816         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
22817         (gl_PROG_ANSI_CXX): Require it.
22818
22819 2010-03-13  Bruno Haible  <bruno@clisp.org>
22820
22821         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
22822         cases.
22823
22824 2010-03-13  Bruno Haible  <bruno@clisp.org>
22825
22826         Test that gnulib does not break the standard C++ headers.
22827         * tests/test-locale-c++2.cc: New file.
22828         * modules/locale-tests (Files): Add it.
22829         (Makefile.am): Compile it for test-locale-c++.
22830         * tests/test-math-c++2.cc: New file.
22831         * modules/math-tests (Files): Add it.
22832         (Makefile.am): Compile it for test-math-c++.
22833         * tests/test-signal-c++2.cc: New file.
22834         * modules/signal-tests (Files): Add it.
22835         (Makefile.am): Compile it for test-signal-c++.
22836         * tests/test-stdio-c++2.cc: New file.
22837         * modules/stdio-tests (Files): Add it.
22838         (Makefile.am): Compile it for test-stdio-c++.
22839         * tests/test-stdlib-c++2.cc: New file.
22840         * modules/stdlib-tests (Files): Add it.
22841         (Makefile.am): Compile it for test-stdlib-c++.
22842         * tests/test-string-c++2.cc: New file.
22843         * modules/string-tests (Files): Add it.
22844         (Makefile.am): Compile it for test-string-c++.
22845         * tests/test-time-c++2.cc: New file.
22846         * modules/time-tests (Files): Add it.
22847         (Makefile.am): Compile it for test-time-c++.
22848         Reported by John W. Eaton <jwe@gnu.org>.
22849
22850 2010-03-13  Bruno Haible  <bruno@clisp.org>
22851
22852         * gnulib-tool (func_usage): Clarify which options are available for
22853         --create-testdir and --create-megatestdir.
22854
22855 2010-03-13  Bruno Haible  <bruno@clisp.org>
22856
22857         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
22858         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
22859         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
22860         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
22861         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
22862         when appropriate.
22863         Reported by Jim Meyering.
22864
22865 2010-03-12  Simon Josefsson  <simon@josefsson.org>
22866
22867         * gnulib-tool (func_import): Explain origin of code.
22868
22869 2010-03-12  Bruno Haible  <bruno@clisp.org>
22870
22871         Fix problem with automake's definition of CXXLINK.
22872         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
22873         Reported by Simon Josefsson and Ludovic Courtès.
22874
22875 2010-03-12  Bruno Haible  <bruno@clisp.org>
22876
22877         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
22878         stable releases.
22879
22880 2010-03-11  Bruno Haible  <bruno@clisp.org>
22881
22882         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
22883         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
22884         whether the system provides one variant or multiple variants of the
22885         function.
22886         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
22887         C++ compilers.
22888         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
22889         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
22890         Reported by Jim Meyering.
22891
22892 2010-03-09  Simon Josefsson  <simon@josefsson.org>
22893
22894         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
22895
22896 2010-03-08  Bruno Haible  <bruno@clisp.org>
22897
22898         gnulib-tool: Add support for --libtool in --create-testdir.
22899         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
22900         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
22901
22902 2010-03-08  Eric Blake  <eblake@redhat.com>
22903
22904         gnulib-tool.texi: mention possibility of git submodule
22905         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
22906         submodules.
22907         * doc/.gitignore: Ignore another generated file.
22908
22909 2010-03-08  Karl Berry  <karl@gnu.org>
22910
22911         * doc/gnulib-tool.texi (VCS Issues): Mention third option
22912         of committing gnulib files while skipping others.
22913
22914 2010-03-07  Bruno Haible  <bruno@clisp.org>
22915
22916         Tests of module 'wctype' in C++ mode.
22917         * tests/test-wctype-c++.cc: New file.
22918         * modules/wctype-tests (Files): Add it and tests/signature.h.
22919         (Depends-on): Add ansi-c++-opt.
22920         (Makefile.am): Arrange to compile and run test-wctype-c++.
22921
22922         Tests of module 'wchar' in C++ mode.
22923         * tests/test-wchar-c++.cc: New file.
22924         * modules/wchar-tests (Files): Add it and tests/signature.h.
22925         (Depends-on): Add ansi-c++-opt.
22926         (Makefile.am): Arrange to compile and run test-wchar-c++.
22927         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
22928         gl_MODULE_INDICATOR.
22929
22930         Tests of module 'unistd' in C++ mode.
22931         * tests/test-unistd-c++.cc: New file.
22932         * modules/unistd-tests (Files): Add it and tests/signature.h.
22933         (Depends-on): Add ansi-c++-opt.
22934         (Makefile.am): Arrange to compile and run test-unistd-c++.
22935         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
22936         gl_MODULE_INDICATOR.
22937
22938         Tests of module 'time' in C++ mode.
22939         * tests/test-time-c++.cc: New file.
22940         * modules/time-tests (Files): Add it and tests/signature.h.
22941         (Depends-on): Add ansi-c++-opt.
22942         (Makefile.am): Arrange to compile and run test-time-c++.
22943         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22944
22945         Tests of module 'sys_time' in C++ mode.
22946         * tests/test-sys_time-c++.cc: New file.
22947         * modules/sys_time-tests (Files): Add it and tests/signature.h.
22948         (Depends-on): Add ansi-c++-opt.
22949         (Makefile.am): Arrange to compile and run test-sys_time-c++.
22950         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
22951         gl_MODULE_INDICATOR.
22952
22953         Tests of module 'sys_stat' in C++ mode.
22954         * tests/test-sys_stat-c++.cc: New file.
22955         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
22956         (Depends-on): Add ansi-c++-opt.
22957         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
22958         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
22959         gl_MODULE_INDICATOR.
22960
22961         Tests of module 'sys_socket' in C++ mode.
22962         * tests/test-sys_socket-c++.cc: New file.
22963         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
22964         (Depends-on): Add ansi-c++-opt.
22965         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
22966         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
22967         gl_MODULE_INDICATOR.
22968
22969         Tests of module 'sys_select' in C++ mode.
22970         * tests/test-sys_select-c++.cc: New file.
22971         * modules/sys_select-tests (Files): Add it and tests/signature.h.
22972         (Depends-on): Add ansi-c++-opt.
22973         (Makefile.am): Arrange to compile and run test-sys_select-c++.
22974         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
22975         gl_MODULE_INDICATOR.
22976
22977         Tests of module 'sys_ioctl' in C++ mode.
22978         * tests/test-sys_ioctl-c++.cc: New file.
22979         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
22980         (Depends-on): Add ansi-c++-opt.
22981         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
22982         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
22983         gl_MODULE_INDICATOR.
22984
22985         Tests of module 'string' in C++ mode.
22986         * tests/test-string-c++.cc: New file.
22987         * modules/string-tests (Files): Add it and tests/signature.h.
22988         (Depends-on): Add ansi-c++-opt.
22989         (Makefile.am): Arrange to compile and run test-string-c++.
22990         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
22991         gl_MODULE_INDICATOR.
22992
22993         Tests of module 'stdlib' in C++ mode.
22994         * tests/test-stdlib-c++.cc: New file.
22995         * modules/stdlib-tests (Files): Add it and tests/signature.h.
22996         (Depends-on): Add ansi-c++-opt.
22997         (Makefile.am): Arrange to compile and run test-stdlib-c++.
22998         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
22999         gl_MODULE_INDICATOR.
23000
23001         Tests of module 'stdio' in C++ mode.
23002         * tests/test-stdio-c++.cc: New file.
23003         * modules/stdio-tests (Files): Add it and tests/signature.h.
23004         (Depends-on): Add ansi-c++-opt.
23005         (Makefile.am): Arrange to compile and run test-stdio-c++.
23006         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
23007         gl_MODULE_INDICATOR.
23008
23009         Tests of module 'spawn' in C++ mode.
23010         * tests/test-spawn-c++.cc: New file.
23011         * modules/spawn-tests (Files): Add it and tests/signature.h.
23012         (Depends-on): Add ansi-c++-opt.
23013         (Makefile.am): Arrange to compile and run test-spawn-c++.
23014         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
23015         gl_MODULE_INDICATOR.
23016
23017         Tests of module 'signal' in C++ mode.
23018         * tests/test-signal-c++.cc: New file.
23019         * modules/signal-tests (Files): Add it and tests/signature.h.
23020         (Depends-on): Add ansi-c++-opt.
23021         (Makefile.am): Arrange to compile and run test-signal-c++.
23022         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
23023         gl_MODULE_INDICATOR.
23024
23025         Tests of module 'search' in C++ mode.
23026         * tests/test-search-c++.cc: New file.
23027         * modules/search-tests (Files): Add it and tests/signature.h.
23028         (Depends-on): Add ansi-c++-opt.
23029         (Makefile.am): Arrange to compile and run test-search-c++.
23030         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
23031         gl_MODULE_INDICATOR.
23032
23033         Tests of module 'math' in C++ mode.
23034         * tests/test-math-c++.cc: New file.
23035         * modules/math-tests (Files): Add it and tests/signature.h.
23036         (Depends-on): Add ansi-c++-opt.
23037         (Makefile.am): Arrange to compile and run test-math-c++.
23038         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
23039
23040         Tests of module 'locale' in C++ mode.
23041         * tests/test-locale-c++.cc: New file.
23042         * modules/locale-tests (Files): Add it and tests/signature.h.
23043         (Depends-on): Add ansi-c++-opt.
23044         (Makefile.am): Arrange to compile and run test-locale-c++.
23045         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
23046         gl_MODULE_INDICATOR.
23047
23048         Tests of module 'langinfo' in C++ mode.
23049         * tests/test-langinfo-c++.cc: New file.
23050         * modules/langinfo-tests (Files): Add it and tests/signature.h.
23051         (Depends-on): Add ansi-c++-opt.
23052         (Makefile.am): Arrange to compile and run test-langinfo-c++.
23053         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
23054         gl_MODULE_INDICATOR.
23055
23056         Tests of module 'iconv-h' in C++ mode.
23057         * tests/test-iconv-h-c++.cc: New file.
23058         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
23059         (Depends-on): Add ansi-c++-opt.
23060         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
23061
23062         Tests of module 'glob' in C++ mode.
23063         * tests/test-glob-c++.cc: New file.
23064         * modules/glob-tests (Files): Add it.
23065         (Depends-on): Add ansi-c++-opt.
23066         (Makefile.am): Arrange to compile and run test-glob-c++.
23067
23068         Tests of module 'fcntl-h' in C++ mode.
23069         * tests/test-fcntl-h-c++.cc: New file.
23070         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
23071         (Depends-on): Add ansi-c++-opt.
23072         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
23073         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
23074         gl_MODULE_INDICATOR.
23075
23076         Tests of module 'dirent' in C++ mode.
23077         * tests/test-dirent-c++.cc: New file.
23078         * modules/dirent-tests (Files): Add it and tests/signature.h.
23079         (Depends-on): Add ansi-c++-opt.
23080         (Makefile.am): Arrange to compile and run test-dirent-c++.
23081         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
23082         gl_MODULE_INDICATOR.
23083
23084         New module 'ansi-c++-opt'.
23085         * modules/ansi-c++-opt: New file.
23086         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
23087
23088         Document C++ namespace mode.
23089         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
23090
23091         wctype: Avoid #define replacements in C++ mode.
23092         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
23093         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
23094         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
23095         In C++, define a namespaced alias symbol.
23096         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
23097         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
23098         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
23099         rule.
23100
23101         wchar: Avoid #define replacements in C++ mode.
23102         * lib/wchar.in.h: Include c++defs.h.
23103         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
23104         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
23105         symbol.
23106         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
23107         * modules/wchar (Depends-on): Add c++defs.
23108         (Makefile.am): Update wchar.h rule.
23109
23110         unistd: Avoid #define replacements in C++ mode.
23111         * lib/unistd.in.h: Include c++defs.h.
23112         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
23113         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
23114         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
23115         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
23116         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
23117         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
23118         symbol.
23119         (environ): Update.
23120         * modules/unistd (Depends-on): Add c++defs.
23121         (Makefile.am): Update unistd.h rule.
23122
23123         time: Avoid #define replacements in C++ mode.
23124         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
23125         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
23126         define a namespaced alias symbol.
23127         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
23128         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
23129         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
23130         * modules/time (Depends-on): Add c++defs, warn-on-use.
23131         (Makefile.am): Update time.h rule.
23132         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
23133         * modules/nanosleep (configure.ac): Likewise.
23134         * modules/strptime (configure.ac): Likewise.
23135         * modules/timegm (configure.ac): Likewise.
23136
23137         sys_time: Avoid #define replacements in C++ mode.
23138         * lib/sys_time.in.h: Include c++defs.h.
23139         (gettimeofday): In C++, define a namespaced alias symbol.
23140         * modules/sys_time (Depends-on): Add c++defs.
23141         (Makefile.am): Update sys/time.h rule.
23142
23143         sys_stat: Avoid #define replacements in C++ mode.
23144         * lib/sys_stat.in.h: Include c++defs.h.
23145         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
23146         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
23147         namespaced alias symbol.
23148         In C++, define a namespaced alias symbol.
23149         * modules/sys_stat (Depends-on): Add c++defs.
23150         (Makefile.am): Update sys/stat.h rule.
23151
23152         sys_socket: Avoid #define replacements in C++ mode.
23153         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
23154         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
23155         definitions also when the system has a <sys/socket.h>.
23156         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
23157         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
23158         In C++, define a namespaced alias symbol.
23159         * modules/sys_socket (Depends-on): Add c++defs.
23160         (Makefile.am): Update sys/socket.h rule.
23161
23162         sys_select: Avoid #define replacements in C++ mode.
23163         * lib/sys_select.in.h: Include c++defs.h. Enable the function
23164         definitions also when the system has a <sys/select.h>.
23165         (select): In C++, define a namespaced alias symbol.
23166         * modules/sys_select (Depends-on): Add c++defs.
23167         (Makefile.am): Update sys/select.h rule.
23168
23169         sys_ioctl: Avoid #define replacements in C++ mode.
23170         * lib/sys_ioctl.in.h: Include c++defs.h.
23171         (ioctl): In C++, define a namespaced alias symbol.
23172         * modules/sys_ioctl (Depends-on): Add c++defs.
23173         (Makefile.am): Update sys/ioctl.h rule.
23174
23175         string: Avoid #define replacements in C++ mode.
23176         * lib/string.in.h: Include c++defs.h.
23177         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
23178         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
23179         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
23180         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
23181         strsignal, strverscmp): In C++, define a namespaced alias symbol.
23182         * modules/string (Depends-on): Add c++defs.
23183         (Makefile.am): Update string.h rule.
23184
23185         stdlib: Avoid #define replacements in C++ mode.
23186         * lib/stdlib.in.h: Include c++defs.h.
23187         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
23188         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
23189         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
23190         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
23191         symbol.
23192         * modules/stdlib (Depends-on): Add c++defs.
23193         (Makefile.am): Update stdlib.h rule.
23194
23195         stdio: Avoid #define replacements in C++ mode.
23196         * lib/stdio.in.h: Include c++defs.h.
23197         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
23198         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
23199         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
23200         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
23201         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
23202         namespaced alias symbol.
23203         * modules/stdio (Depends-on): Add c++defs.
23204         (Makefile.am): Update stdio.h rule.
23205
23206         spawn: Avoid #define replacements in C++ mode.
23207         * lib/spawn.in.h: Include c++defs.h.
23208         (posix_spawn, posix_spawnp, posix_spawnattr_init,
23209         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
23210         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
23211         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
23212         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
23213         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
23214         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
23215         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
23216         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
23217         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
23218         In C++, define a namespaced alias symbol.
23219         * modules/spawn (Depends-on): Add c++defs.
23220         (Makefile.am): Update spawn.h rule.
23221
23222         signal: Avoid #define replacements in C++ mode.
23223         * lib/signal.in.h: Include c++defs.h.
23224         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
23225         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
23226         namespaced alias symbol.
23227         * modules/signal (Depends-on): Add c++defs.
23228         (Makefile.am): Update signal.h rule.
23229
23230         search: Avoid #define replacements in C++ mode.
23231         * lib/search.in.h: Include c++defs.h.
23232         (_gl_search_compar_fn, _gl_search_action_fn): New types.
23233         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
23234         symbol.
23235         * modules/search (Depends-on): Add c++defs.
23236         (Makefile.am): Update search.h rule.
23237
23238         math: Avoid #define replacements in C++ mode.
23239         * lib/math.in.h: Include c++defs.h.
23240         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
23241         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
23242         trunc, truncl): In C++, define a namespaced alias symbol.
23243         * modules/math (Depends-on): Add c++defs.
23244         (Makefile.am): Update math.h rule.
23245
23246         locale: Avoid #define replacements in C++ mode.
23247         * lib/locale.in.h: Include c++defs.h.
23248         (duplocale): In C++, define a namespaced alias symbol.
23249         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
23250         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
23251         * modules/locale (Depends-on): Add c++defs.
23252         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
23253
23254         langinfo: Avoid #define replacements in C++ mode.
23255         * lib/langinfo.in.h: Include c++defs.h.
23256         (nl_langinfo): In C++, define a namespaced alias symbol.
23257         * modules/langinfo (Depends-on): Add c++defs.
23258         (Makefile.am): Update langinfo.h rule.
23259
23260         iconv-h: Avoid #define replacements in C++ mode.
23261         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
23262         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
23263         symbol.
23264         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
23265         whenever iconv is present.
23266         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
23267         (Makefile.am): Update iconv.h rule.
23268
23269         glob: Avoid #define replacements in C++ mode.
23270         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
23271         (_gl_glob_errfunc_fn): New type.
23272         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
23273         symbol.
23274         * modules/glob (Depends-on): Add c++defs, warn-on-use.
23275         (Makefile.am): Update glob.h rule.
23276
23277         fcntl-h: Avoid #define replacements in C++ mode.
23278         * lib/fcntl.in.h: Include c++defs.h.
23279         (fcntl, open, openat): In C++, define a namespaced alias symbol.
23280         * modules/fcntl-h (Depends-on): Add c++defs.
23281         (Makefile.am): Update fcntl.h rule.
23282
23283         dirent: Avoid #define replacements in C++ mode.
23284         * lib/dirent.in.h: Include c++defs.h.
23285         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
23286         namespaced alias symbol.
23287         (dirfd): Update declaration.
23288         * modules/dirent (Depends-on): Add c++defs.
23289         (Makefile.am): Update dirent.h rule.
23290
23291         ctype: Make it usable in C++ code.
23292         * lib/ctype.in.h: Include c++defs.h.
23293         (isblank): Declare as extern "C".
23294         * modules/ctype (Depends-on): Add c++defs.
23295         (Makefile.am): Update ctype.h rule.
23296
23297         New module 'c++defs'.
23298         * modules/c++defs: New file.
23299         * build-aux/c++defs.h: New file.
23300         Reported by John W. Eaton <jwe@gnu.org>.
23301
23302 2010-03-07  Bruno Haible  <bruno@clisp.org>
23303
23304         logb: Provide missing declaration for Cygwin.
23305         * lib/math.in.h (logb): New declaration.
23306         * m4/logb.m4: New file.
23307         * modules/logb (Files): Add m4/logb.m4.
23308         (Depends-on): Add math.
23309         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
23310         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
23311         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
23312         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
23313         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
23314
23315 2010-03-07  Bruno Haible  <bruno@clisp.org>
23316
23317         Fix test-cond link error.
23318         * tests/test-cond.c: Include <stdio.h>.
23319
23320 2010-03-07  Bruno Haible  <bruno@clisp.org>
23321
23322         Fix test-dirent-safer link error.
23323         * modules/dirent-safer-tests (Makefile.am): Define
23324         test_dirent_safer_LDADD.
23325
23326 2010-03-07  Bruno Haible  <bruno@clisp.org>
23327
23328         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
23329         among default module list.
23330
23331 2010-03-07  Bruno Haible  <bruno@clisp.org>
23332
23333         Fix link error on platforms with GNU libiconv.
23334         * modules/unistr/u8-strcoll-tests (Makefile): Define
23335         test_u8_strcoll_LDADD.
23336         * modules/unistr/u16-strcoll-tests (Makefile): Define
23337         test_u16_strcoll_LDADD.
23338         * modules/unistr/u32-strcoll-tests (Makefile): Define
23339         test_u32_strcoll_LDADD.
23340
23341 2010-03-07  Bruno Haible  <bruno@clisp.org>
23342
23343         Use POSIX declarations for socket functions.
23344         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
23345         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
23346         rpl_sendto): Change declaration to match POSIX.
23347         * lib/connect.c (rpl_connect): Likewise.
23348         * lib/accept.c (rpl_accept): Likewise.
23349         * lib/bind.c (rpl_bind): Likewise.
23350         * lib/getpeername.c (rpl_getpeername): Likewise.
23351         * lib/getsockname.c (rpl_getsockname): Likewise.
23352         * lib/recv.c (rpl_recv): Likewise.
23353         * lib/send.c (rpl_send): Likewise.
23354         * lib/recvfrom.c (rpl_recvfrom): Likewise.
23355         * lib/sendto.c (rpl_sendto): Likewise.
23356
23357 2010-03-06  Bruno Haible  <bruno@clisp.org>
23358
23359         Clarify access, euidaccess, faccessat.
23360         * doc/posix-functions/faccessat.texi: Mention security problem under
23361         "Other problems", not "Portability problems".
23362         * doc/posix-functions/access.texi: Likewise. Mention a related security
23363         problem.
23364         * doc/glibc-functions/euidaccess.texi: Mention security problems.
23365         * lib/euidaccess.c: Add comments about platforms.
23366         * lib/unistd.in.h (access, euidaccess): Add warnings.
23367
23368 2010-03-07  Bruno Haible  <bruno@clisp.org>
23369
23370         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
23371         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
23372         (POSIX_SPAWN_SETSCHEDULER): Likewise.
23373         (POSIX_SPAWN_USEVFORK): Define in a way that works when
23374         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
23375         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
23376         declare when POSIX_SPAWN_SETSCHEDULER is zero.
23377         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
23378         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
23379         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
23380         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
23381         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
23382         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
23383         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
23384         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
23385         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
23386         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
23387         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
23388         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
23389         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
23390         Likewise.
23391         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
23392         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
23393         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
23394         Likewise.
23395         * tests/test-spawn.c (main): Make it work when
23396         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
23397
23398 2010-03-07  Bruno Haible  <bruno@clisp.org>
23399
23400         Fix incorrect Makefile.am generation in German locale.
23401         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23402         Execute sed command with character range in C locale.
23403
23404 2010-03-06  Bruno Haible  <bruno@clisp.org>
23405
23406         Tests for module 'iconv-h'.
23407         * modules/iconv-h-tests: New file.
23408         * tests/test-iconv-h.c: New file.
23409
23410         New module 'iconv-h'.
23411         * modules/iconv-h: New file.
23412         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
23413         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
23414         (configure.ac): Remove gl_ICONV_H.
23415         (Makefile.am): Remove rule for iconv.h.
23416
23417 2010-03-06  Bruno Haible  <bruno@clisp.org>
23418
23419         More consistent naming of *.m4 files.
23420         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
23421         * modules/wctype (Files): Update.
23422
23423         More consistent naming of *.m4 files.
23424         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
23425         * modules/wchar (Files): Update.
23426
23427 2010-03-06  Jim Meyering  <meyering@redhat.com>
23428
23429         euidaccess: relax license to LGPLv2+
23430         * modules/euidaccess (License): Relax to LGPLv2+.
23431
23432 2010-03-06  Bruno Haible  <bruno@clisp.org>
23433
23434         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
23435         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
23436         (Makefile.am): Augment lib_SOURCES instead.
23437
23438 2010-03-04  Jim Meyering  <meyering@redhat.com>
23439
23440         utime: remove obsolete module
23441         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
23442         unnecessary for years, and has been marked as obsolete for 10 months.
23443         * modules/utime: Remove file.
23444         * lib/utime.c: Remove file.
23445         * m4/utime.m4: Remove file.
23446         * m4/utimes-null.m4: Remove file.
23447         * doc/posix-functions/utime.texi (utime): Remove reference to
23448         the module.  Move the sole "fixed by gnulib" item into the
23449         "problems not fixed by Gnulib" list.
23450         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
23451
23452 2010-03-05  Simon Josefsson  <simon@josefsson.org>
23453
23454         * modules/exit (License): Relax license to LGPLv2+.
23455         (Status): Mark as obsolete.
23456         * NEWS: Mention deprecated 'exit' module.
23457         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
23458         of now obsolete 'exit'.
23459
23460 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23461
23462         fts-lgpl: remove unused module
23463         * modules/fts-lgpl: Remove.
23464         * MODULES.html.sh (func_all_modules): Adjust.
23465         * check-module (find_included_lib_files): Adjust.
23466         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
23467
23468 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
23469
23470         copy-acl: enhance Solaris ACL error handling
23471         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
23472         * lib/set-mode-acl.c (qset_acl): Likewise.
23473
23474 2010-03-02  Bruno Haible  <bruno@clisp.org>
23475
23476         spawn: Don't override the system defined values on FreeBSD 8.
23477         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
23478         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
23479         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
23480         if HAVE_POSIX_SPAWN is 1.
23481         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
23482
23483 2010-03-01  Bruno Haible  <bruno@clisp.org>
23484
23485         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
23486         regarding Automake.
23487
23488 2010-02-25  Bruno Haible  <bruno@clisp.org>
23489
23490         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
23491         * gnulib-tool: Define 'echo' as a function only before the ksh alias
23492         setting, not afterwards.
23493         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
23494
23495 2010-02-24  Eric Blake  <eblake@redhat.com>
23496
23497         bootstrap, git-version-gen: use timestamp
23498         * build-aux/git-version-gen (scriptversion): Force UTC.
23499         * build-aux/bootstrap (scriptversion): New variable.
23500
23501         bootstrap: allow older git
23502         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
23503         older than 1.6.4.  Requested by the libvirt project.
23504
23505 2010-02-23  Eric Blake  <eblake@redhat.com>
23506
23507         warn-on-use: work with old autoconf
23508         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
23509         AS_VAR semantics of autoconf 2.60.
23510         Reported by Bruno Haible.
23511
23512         bootstrap: improve some comments
23513         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
23514         clarification comments.
23515
23516         gettimeofday: provide correct function
23517         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
23518         when replacement is declared, otherwise provide gettimeofday.
23519         Reported by Michael Goffioul.
23520
23521 2010-02-23  Jim Meyering  <meyering@redhat.com>
23522
23523         lib-ignore: relax license to "unlimited", not LGPLv2+
23524         * modules/lib-ignore (License): Relax to "unlimited".
23525
23526 2010-02-23  Jim Meyering  <meyering@redhat.com>
23527
23528         lib-ignore: relax license to LGPLv2+
23529         * modules/lib-ignore (License): Relax to LGPLv2+.
23530
23531 2010-02-22  Eric Blake  <eblake@redhat.com>
23532
23533         lseek: avoid bash 3.2 broken pipe bug
23534         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
23535         warning from bash 3.2.
23536         Reported by Ben Pfaff, with analysis from Bruno Haible.
23537
23538         bootstrap: support non-FSF copyright holder
23539         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
23540         bootstrap.conf override of COPYRIGHT_HOLDER.
23541         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
23542
23543         bootstrap: interoperate with gettext 0.14.1
23544         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
23545
23546         bootstrap: allow for alternate submodule location
23547         * build-aux/bootstrap (gnulib_path): New variable; use instead of
23548         hardcoding submodule location.
23549         (gnulib_mk): Allow direct use of Makefile.am.
23550
23551         bootstrap: use GNULIB_SRCDIR to reduce disk usage
23552         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
23553         rather than reconfiguring where the submodule points.
23554
23555         gettimeofday: restore support for platforms that lack function
23556         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
23557         replacement if function is missing.
23558         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
23559         * modules/sys_time (Makefile.am): Substitute it.
23560         * lib/sys_time.in.h (gettimeofday): Check it.
23561         Reported by Michael Goffioul.
23562
23563 2010-02-21  Bruno Haible  <bruno@clisp.org>
23564
23565         * lib/stdio.in.h (obstack_printf): Fix typo.
23566
23567 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
23568
23569         vc-list-files: use bzr ls's -R option
23570         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
23571         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
23572
23573 2010-02-21  Jim Meyering  <meyering@redhat.com>
23574
23575         init.sh: fix EXEEXT shims to work also for names like test-prog
23576         * tests/init.sh: Re-exec a better shell, when needed.
23577         If the current shell lacks support for posix $(...), an init.sh-using
23578         test will now try to find a shell that supports that.  If EXEEXT is
23579         nonempty, we also require support for hyphen-in-alias-name and shell
23580         substitutions like ${var#glob}.  Failure to find such a shell results
23581         in a skipped test.
23582
23583 2010-02-21  Bruno Haible  <bruno@clisp.org>
23584
23585         Really work around around "broken pipe" error message from bash 3.2.
23586         * gnulib-tool (func_reset_sigpipe): Remove function.
23587         (echo): In bash 3.2, define to a function that uses printf.
23588         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
23589
23590 2010-02-20  Bruno Haible  <bruno@clisp.org>
23591
23592         Restore support for automake 1.9.6 with autoconf 2.61.
23593         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
23594         Reported by James Youngman <jay@gnu.org>.
23595
23596 2010-02-20  Bruno Haible  <bruno@clisp.org>
23597
23598         Improve *printf warning condition.
23599         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
23600         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
23601         and the function is overridden due to SIGPIPE emulation.
23602
23603 2010-02-20  Bruno Haible  <bruno@clisp.org>
23604
23605         * lib/stdio.in.h: Tweak comments.
23606
23607 2010-02-19  Bruno Haible  <bruno@clisp.org>
23608
23609         Make it easier to find modules. New gnulib-tool option '--find'.
23610         * gnulib-tool: New option --find.
23611         (func_usage): Document it.
23612         (func_sanitize_modulelist): New function, extracted from
23613         func_all_modules.
23614         (func_all_modules): Invoke it.
23615         * doc/gnulib-tool.texi (Which modules?): New node.
23616
23617 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
23618
23619         * lib/sys_select.in.h: Provide select replacement even if
23620         sys/select.h exists on a system, for Interix.
23621
23622 2010-02-18  Jim Meyering  <meyering@redhat.com>
23623
23624         init.sh: don't use $(...) just yet
23625         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
23626         to accommodate e.g., Solaris' /bin/sh.
23627
23628 2010-02-17  Bruno Haible  <bruno@clisp.org>
23629
23630         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
23631         Reported by Ludovic Courtès <ludo@gnu.org>.
23632
23633 2010-02-16  Simon Josefsson  <simon@josefsson.org>
23634
23635         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
23636         linking with -lintl.
23637
23638 2010-02-17  Simon Josefsson  <simon@josefsson.org>
23639
23640         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
23641         if not provided by the system's netdb.h.  Reported by
23642         ludo@gnu.org (Ludovic Courtès).
23643
23644 2010-02-15  Jim Meyering  <meyering@redhat.com>
23645
23646         init.sh: improve portability and efficiency
23647         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
23648         "dummy" in a for loop.
23649         Use '!', not '^' to select the complement of a character set used
23650         in a "case" statement.
23651         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
23652         Suggestions from Eric Blake.
23653
23654         init.sh: automatically accommodate programs with the .exe suffix
23655         Automatically arrange for an invocation of "prog" to execute the
23656         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
23657         may use the simpler "prog", yet still work when built on a system
23658         that requires specifying the added suffix.
23659         Do this by constructing a function named "prog" that invokes
23660         "prog.exe" for each .exe file in selected directories.
23661         * tests/init.sh (find_exe_basenames_): New function.
23662         (create_exe_shim_functions_): New function.
23663         (path_prepend_): Use it.
23664
23665         maint.mk: mark syntax-check sc_*.m rules as .PHONY
23666         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
23667         "make -t syntax-check" doesn't create a ton of sc_*.m files.
23668
23669 2010-02-14  Jim Meyering  <meyering@redhat.com>
23670
23671         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
23672         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
23673         (sc_prohibit_hash_pjw_without_use): New rule.
23674
23675         maint.mk: allow the default upload destination dir to be overridden
23676         * top/maint.mk (upload_dest_dir_): Define with a default that
23677         preserves the status quo.
23678         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
23679         Reported by Peter Simons.
23680
23681         maint.mk: prohibit inclusion of "hash.h" without_use
23682         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
23683
23684 2010-02-10  Jim Meyering  <meyering@redhat.com>
23685
23686         maint.mk: prohibit inclusion of "ignore-value.h" without_use
23687         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
23688
23689 2010-02-09  Eric Blake  <ebb9@byu.net>
23690         and Bruno Haible  <bruno@clisp.org>
23691
23692         obstack-printf-posix: ensure declaration
23693         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
23694         extracted from gl_FUNC_OBSTACK_PRINTF.
23695         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
23696         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
23697         Likewise.
23698         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
23699         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
23700         0.
23701
23702 2010-02-08  Bruno Haible  <bruno@clisp.org>
23703
23704         gnulib-tool: Fix typo in 2010-02-07 commit.
23705         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
23706         Reported by Eric Blake.
23707
23708 2010-02-07  Bruno Haible  <bruno@clisp.org>
23709
23710         gnulib-tool: Fix up caching patches.
23711         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
23712         option --no-cache. Use associative arrays when supported by the shell.
23713         (sed_comments): New variable.
23714         (modcache): Renamed from do_cache.
23715         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
23716         abbreviate unnecessarily.
23717         (have_associative): New variable.
23718         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
23719         way also for ksh and zsh.
23720         (func_init_sed_convert_to_cache_statements): New function, extracted
23721         from func_cache_lookup_module. Add support for associative arrays.
23722         Don't set the c_MODULE_cached variable here. Ignore all lines before
23723         the first field header. Remove only the final newline, not all trailing
23724         newlines. Support empty fields correctly. Limit the use of 'eval' to
23725         assignments.
23726         (func_get_description, func_get_status, func_get_notice,
23727         func_get_applicability, func_get_filelist, func_get_dependencies,
23728         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
23729         func_get_automake_snippet, func_get_include_directive,
23730         func_get_link_directive, func_get_license, func_get_maintainer):
23731         Update documentation. List the unoptimized code first. Add support for
23732         associative arrays. Limit the use of 'eval' to assignments.
23733         (func_get_applicability): Undo stylistic pessimisations.
23734         (func_get_automake_snippet, func_get_include_directive): Reduce code
23735         duplication.
23736         (func_modules_transitive_closure, func_modules_add_dummy,
23737         func_modules_notice, func_modules_to_filelist, func_add_file,
23738         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
23739         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
23740         func_create_testdir, func_create_megatestdir): Update documentation.
23741
23742 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23743
23744         * gnulib-tool (func_cache_lookup_module): Store the module name
23745         belonging to the cache variable; error out if two different
23746         module names map to the same cache variable name.
23747
23748 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23749
23750         gnulib-tool: Make caching optional.
23751         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
23752         Update matching short versions of --no-changelog.
23753         (func_usage): Update.
23754         (sed_extract_cache_prog): Renamed from ...
23755         (sed_extract_prog): ... this; revert to old extraction script.
23756         (func_get_description, func_get_status)
23757         (func_get_notice, func_get_applicability, func_get_filelist)
23758         (func_get_dependencies, func_get_autoconf_early_snippet)
23759         (func_get_autoconf_snippet, func_get_automake_snippet)
23760         (func_get_include_directive, func_get_link_directive)
23761         (func_get_license, func_get_maintainer): If $do_cache is false,
23762         use old, non-caching extraction scripts.
23763         Suggestion by Bruno Haible.
23764
23765 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23766
23767         gnulib-tool: cache module metainformation.
23768         * gnulib-tool (sed_extract_prog): Match newline before each
23769         header, and rewrite header to a shell variable suffix.
23770         (func_cache_var, func_cache_lookup_module): New functions,
23771         to turn a module name into a cache variable prefix, and to
23772         look up and cache module metainformation.
23773         (func_get_description, func_get_status)
23774         (func_get_notice, func_get_applicability, func_get_filelist)
23775         (func_get_dependencies, func_get_autoconf_early_snippet)
23776         (func_get_autoconf_snippet, func_get_automake_snippet)
23777         (func_get_include_directive, func_get_link_directive)
23778         (func_get_license, func_get_maintainer): Use
23779         func_cache_lookup_module.
23780
23781 2010-02-07  Bruno Haible  <bruno@clisp.org>
23782
23783         fnctl: Fix missing dependency.
23784         * modules/fcntl (Depends-on): Add getdtablesize.
23785         Reported by John W. Eaton <jwe@gnu.org>.
23786
23787 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23788
23789         Argp: fix recognition of short alias options.
23790
23791         * lib/argp-parse.c (convert_options): Fix improper use of
23792         `|' between character values.
23793         * tests/test-argp.c (group1_option): New alias option
23794         --read (-r).
23795         (group1_parser): Special handling for 'r'.
23796         (test15): New test case.
23797         (test_fun): Add test15.
23798         * tests/test-argp-2.sh: Update expected --help and --usage
23799         outputs.
23800
23801 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23802
23803         * tests/test-argp.c: Fix indentation.
23804
23805 2010-02-04  Eric Blake  <ebb9@byu.net>
23806
23807         gettimeofday: expose type of second argument
23808         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
23809         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
23810         * tests/test-gettimeofday.c: Use it to silence warning.
23811         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
23812         the issue.
23813
23814 2010-02-03  Jim Meyering  <meyering@redhat.com>
23815
23816         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
23817         * lib/regcomp.c (TYPE_SIGNED): Define.
23818         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
23819
23820         regcomp.c: avoid a new -Wshadow warning
23821         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
23822
23823 2010-02-01  Jim Meyering  <meyering@redhat.com>
23824
23825         removing useless parentheses in cpp #define directives
23826         For motivation, see commit c0221df4, "define STREQ(a,b)
23827         consistently, removing useless parentheses"
23828         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
23829         * lib/mountlist.c (MNT_IGNORE): Likewise.
23830         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
23831
23832 2010-02-01  Eric Blake  <ebb9@byu.net>
23833
23834         sys_time: use link-warning
23835         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
23836         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
23837         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
23838         * modules/sys_time (Depends-on): Add warn-on-use.
23839         (Makefile.am): Always build replacement.
23840         (configure.ac): Update substitutions.
23841         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
23842         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
23843         bother with SYS_TIME_H.
23844         * modules/gettimeofday (configure.ac): Declare indicator.
23845         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
23846         in use.
23847
23848         closein-tests: silence compiler warning
23849         * tests/test-closein.c (main): Ignore fread result.
23850         * modules/closein-tests (Depends-on): Add ignore-value.
23851
23852         tests: silence warning about system return
23853         * tests/test-areadlink-with-size.c (main): Ignore system result.
23854         * tests/test-areadlink.c (main): Likewise.
23855         * tests/test-areadlinkat-with-size.c (main): Likewise.
23856         * tests/test-areadlinkat.c (main): Likewise.
23857         * tests/test-canonicalize-lgpl.c (main): Likewise.
23858         * tests/test-canonicalize.c (main): Likewise.
23859         * tests/test-chown.c (main): Likewise.
23860         * tests/test-fchownat.c (main): Likewise.
23861         * tests/test-fdutimensat.c (main): Likewise.
23862         * tests/test-fstatat.c (main): Likewise.
23863         * tests/test-futimens.c (main): Likewise.
23864         * tests/test-lchown.c (main): Likewise.
23865         * tests/test-link.c (main): Likewise.
23866         * tests/test-linkat.c (main): Likewise.
23867         * tests/test-lstat.c (main): Likewise.
23868         * tests/test-mkdir.c (main): Likewise.
23869         * tests/test-mkdirat.c (main): Likewise.
23870         * tests/test-mkfifo.c (main): Likewise.
23871         * tests/test-mkfifoat.c (main): Likewise.
23872         * tests/test-mknod.c (main): Likewise.
23873         * tests/test-readlink.c (main): Likewise.
23874         * tests/test-remove.c (main): Likewise.
23875         * tests/test-rename.c (main): Likewise.
23876         * tests/test-renameat.c (main): Likewise.
23877         * tests/test-rmdir.c (main): Likewise.
23878         * tests/test-symlink.c (main): Likewise.
23879         * tests/test-symlinkat.c (main): Likewise.
23880         * tests/test-unlink.c (main): Likewise.
23881         * tests/test-unlinkat.c (main): Likewise.
23882         * tests/test-utimens.c (main): Likewise.
23883         * tests/test-utimensat.c (main): Likewise.
23884         * modules/areadlink-tests (Depends-on): Add ignore-value.
23885         * modules/areadlink-with-size-tests (Depends-on): Likewise.
23886         * modules/areadlinkat-tests (Depends-on): Likewise.
23887         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
23888         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
23889         * modules/canonicalize-tests (Depends-on): Likewise.
23890         * modules/chown-tests (Depends-on): Likewise.
23891         * modules/fdutimensat-tests (Depends-on): Likewise.
23892         * modules/futimens-tests (Depends-on): Likewise.
23893         * modules/lchown-tests (Depends-on): Likewise.
23894         * modules/link-tests (Depends-on): Likewise.
23895         * modules/linkat-tests (Depends-on): Likewise.
23896         * modules/lstat-tests (Depends-on): Likewise.
23897         * modules/mkdir-tests (Depends-on): Likewise.
23898         * modules/mkfifo-tests (Depends-on): Likewise.
23899         * modules/mkfifoat-tests (Depends-on): Likewise.
23900         * modules/mknod-tests (Depends-on): Likewise.
23901         * modules/openat-tests (Depends-on): Likewise.
23902         * modules/readlink-tests (Depends-on): Likewise.
23903         * modules/remove-tests (Depends-on): Likewise.
23904         * modules/rename-tests (Depends-on): Likewise.
23905         * modules/renameat-tests (Depends-on): Likewise.
23906         * modules/rmdir-tests (Depends-on): Likewise.
23907         * modules/symlink-tests (Depends-on): Likewise.
23908         * modules/symlinkat-tests (Depends-on): Likewise.
23909         * modules/unlink-tests (Depends-on): Likewise.
23910         * modules/utimens-tests (Depends-on): Likewise.
23911         * modules/utimensat-tests (Depends-on): Likewise.
23912
23913 2010-01-31  Bruno Haible  <bruno@clisp.org>
23914
23915         Perform the same test for many <math.h> functions.
23916         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
23917         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
23918         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
23919         of gl_MATHFUNC.
23920         * modules/acos (configure.ac): Likewise.
23921         * modules/asin (configure.ac): Likewise.
23922         * modules/atan (configure.ac): Likewise.
23923         * modules/atan2 (configure.ac): Likewise.
23924         * modules/cbrt (configure.ac): Likewise.
23925         * modules/copysign (configure.ac): Likewise.
23926         * modules/cos (configure.ac): Likewise.
23927         * modules/cosh (configure.ac): Likewise.
23928         * modules/erf (configure.ac): Likewise.
23929         * modules/erfc (configure.ac): Likewise.
23930         * modules/exp (configure.ac): Likewise.
23931         * modules/fmod (configure.ac): Likewise.
23932         * modules/hypot (configure.ac): Likewise.
23933         * modules/j0 (configure.ac): Likewise.
23934         * modules/j1 (configure.ac): Likewise.
23935         * modules/jn (configure.ac): Likewise.
23936         * modules/lgamma (configure.ac): Likewise.
23937         * modules/log (configure.ac): Likewise.
23938         * modules/log10 (configure.ac): Likewise.
23939         * modules/log1p (configure.ac): Likewise.
23940         * modules/pow (configure.ac): Likewise.
23941         * modules/remainder (configure.ac): Likewise.
23942         * modules/sin (configure.ac): Likewise.
23943         * modules/sinh (configure.ac): Likewise.
23944         * modules/tan (configure.ac): Likewise.
23945         * modules/tanh (configure.ac): Likewise.
23946         * modules/y0 (configure.ac): Likewise.
23947         * modules/y1 (configure.ac): Likewise.
23948         * modules/yn (configure.ac): Likewise.
23949         Suggested by Paolo Bonzini.
23950
23951 2010-01-31  Bruno Haible  <bruno@clisp.org>
23952
23953         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
23954
23955 2010-01-31  Bruno Haible  <bruno@clisp.org>
23956
23957         Work around getdelim() bug on FreeBSD 8.0.
23958         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
23959         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
23960         not work.
23961         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
23962         is 1.
23963         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
23964         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
23965         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
23966         a non-zero size.
23967         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
23968
23969 2010-01-31  Bruno Haible  <bruno@clisp.org>
23970
23971         Work around getline() bug on FreeBSD 8.0.
23972         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
23973         and a non-zero size.
23974         * tests/test-getline.c (main): Likewise.
23975         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
23976         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
23977
23978 2010-01-28  Eric Blake  <ebb9@byu.net>
23979
23980         regex: fix build failure
23981         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
23982         platforms.
23983
23984 2010-01-28  Jim Meyering  <meyering@redhat.com>
23985
23986         regex: do not ignore memory allocation failure
23987         * lib/regex_internal.c (create_cd_newstate): Detect
23988         re_node_set_init_copy failure.   Extracted from glibc commit
23989         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23990
23991         regex: sync more white-space changes from libc
23992         * lib/regex_internal.c: White-space only changes.
23993         * lib/regexec.c: Likewise.
23994
23995         regex: add many uses of __attribute_warn_unused_result__
23996         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
23997         * lib/regexec.c: Likewise.
23998         Extracted from a messy glibc commit.
23999
24000         regcomp.c: spelling and merge-artifact from glibc
24001         * lib/regcomp.c: Merge remainder of glibc's
24002         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
24003
24004         regcomp.c: sync white-space changes from glibc
24005         * lib/regcomp.c: Merge to accommodate white space
24006         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
24007
24008         regcomp.c: do not ignore internal return values
24009         * lib/regcomp.c: Do not ignore internal return values.
24010         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
24011         but without its white-space changes and spelling fixes.
24012
24013         regex_internal.h: define __attribute_warn_unused_result__
24014         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
24015
24016         maint: add a syntax-check rule to check for vulnerable Makefile.in
24017         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
24018
24019 2010-01-27  Jim Meyering  <meyering@redhat.com>
24020
24021         ncftpput-ftp: clean up spaces
24022         * build-aux/ncftpput-ftp: Make Copyright line consistent.
24023         Remove trailing blanks.
24024
24025 2010-01-27  Simon Josefsson  <simon@josefsson.org>
24026
24027         * build-aux/git-version-gen: Fix copyright statement.
24028         * build-aux/gnupload: Likewise.
24029         * tests/test-arcfour.c: Likewise.
24030         * tests/test-arctwo.c: Likewise.
24031         * tests/test-count-one-bits.c: Likewise.
24032         * tests/test-crc.c: Likewise.
24033         * tests/test-des.c: Likewise.
24034         * tests/test-gc-arcfour.c: Likewise.
24035         * tests/test-gc-arctwo.c: Likewise.
24036         * tests/test-gc-des.c: Likewise.
24037         * tests/test-gc-hmac-md5.c: Likewise.
24038         * tests/test-gc-hmac-sha1.c: Likewise.
24039         * tests/test-gc-md2.c: Likewise.
24040         * tests/test-gc-md4.c: Likewise.
24041         * tests/test-gc-md5.c: Likewise.
24042         * tests/test-gc-pbkdf2-sha1.c: Likewise.
24043         * tests/test-gc-rijndael.c: Likewise.
24044         * tests/test-gc-sha1.c: Likewise.
24045         * tests/test-gc.c: Likewise.
24046         * tests/test-gethostname.c: Likewise.
24047         * tests/test-gettimeofday.c: Likewise.
24048         * tests/test-hash.c: Likewise.
24049         * tests/test-hmac-md5.c: Likewise.
24050         * tests/test-hmac-sha1.c: Likewise.
24051         * tests/test-md2.c: Likewise.
24052         * tests/test-md4.c: Likewise.
24053         * tests/test-md5.c: Likewise.
24054         * tests/test-memchr.c: Likewise.
24055         * tests/test-memchr2.c: Likewise.
24056         * tests/test-memcmp.c: Likewise.
24057         * tests/test-memmem.c: Likewise.
24058         * tests/test-memrchr.c: Likewise.
24059         * tests/test-rawmemchr.c: Likewise.
24060         * tests/test-read-file.c: Likewise.
24061         * tests/test-rijndael.c: Likewise.
24062         * tests/test-sockets.c: Likewise.
24063         * tests/test-strchrnul.c: Likewise.
24064         * tests/test-strstr.c: Likewise.
24065         * tests/test-strtod.c: Likewise.
24066         * build-aux/ncftpput-ftp: Likewise.
24067
24068 2010-01-26  Eric Blake  <ebb9@byu.net>
24069
24070         ignore-value: update recommended header name
24071         * modules/ignore-value (Include): Only use <> for headers that
24072         exist in glibc.
24073
24074 2010-01-26  Jim Meyering  <meyering@redhat.com>
24075
24076         test-userspec.c: avoid compiler warnings
24077         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
24078         and "initialization discards qualifiers..." warnings.
24079         Put the first "uid" in its own scope, and make char* members "const".
24080
24081 2010-01-25  Bruno Haible  <bruno@clisp.org>
24082
24083         gnulib-tool: Make warning diagnostics consistent.
24084         * gnulib-tool (func_warning): New function.
24085         Use it everywhere where gnulib-tool produces output to stderr and it is
24086         not a fatal error.
24087
24088 2010-01-25  Bruno Haible  <bruno@clisp.org>
24089
24090         Fix test dependencies.
24091         * modules/xstrtol-tests (Depends-on): Add inttypes.
24092         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
24093
24094 2010-01-25 Pádraig Brady <P@draigBrady.com>
24095
24096         syntax-check: detect incorrect boolean macro values in config.h
24097         * modules/maintainer-makefile (configure.ac): Parameterize the location
24098         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
24099         The logic is from Eric Blake and the location indicated by Jim Meyering.
24100         Note the more natural CONFIG_HEADER name is prohibited by automake
24101         for backwards compatibility reasons.
24102         * top/maint.mk (sc_Wundef_boolean): New rule.
24103
24104 2010-01-25  Jim Meyering  <meyering@redhat.com>
24105
24106         bootstrap: detect MacOS 10.6's shasum, too
24107         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
24108         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
24109
24110 2010-01-23  Jim Meyering  <meyering@redhat.com>
24111
24112         xstrtoll: new module
24113         * modules/xstrtoll: New file.
24114         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
24115         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
24116         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
24117         ./configure fails if you use this module and lack "long long".
24118         * modules/xstrtoll-tests: New module.
24119         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
24120         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
24121         new init.sh-based test framework.
24122
24123 2010-01-24  Bruno Haible  <bruno@clisp.org>
24124
24125         Tests for module 'yn'.
24126         * modules/yn-tests: New file.
24127         * tests/test-yn.c: New file.
24128
24129         Tests for module 'y1'.
24130         * modules/y1-tests: New file.
24131         * tests/test-y1.c: New file.
24132
24133         Tests for module 'y0'.
24134         * modules/y0-tests: New file.
24135         * tests/test-y0.c: New file.
24136
24137         Tests for module 'tanh'.
24138         * modules/tanh-tests: New file.
24139         * tests/test-tanh.c: New file.
24140
24141         Tests for module 'tan'.
24142         * modules/tan-tests: New file.
24143         * tests/test-tan.c: New file.
24144
24145         Tests for module 'sqrt'.
24146         * modules/sqrt-tests: New file.
24147         * tests/test-sqrt.c: New file.
24148
24149         Tests for module 'sinh'.
24150         * modules/sinh-tests: New file.
24151         * tests/test-sinh.c: New file.
24152
24153         Tests for module 'sin'.
24154         * modules/sin-tests: New file.
24155         * tests/test-sin.c: New file.
24156
24157         Tests for module 'rint'.
24158         * modules/rint-tests: New file.
24159         * tests/test-rint.c: New file.
24160
24161         Tests for module 'remainder'.
24162         * modules/remainder-tests: New file.
24163         * tests/test-remainder.c: New file.
24164
24165         Tests for module 'pow'.
24166         * modules/pow-tests: New file.
24167         * tests/test-pow.c: New file.
24168
24169         Tests for module 'nextafter'.
24170         * modules/nextafter-tests: New file.
24171         * tests/test-nextafter.c: New file.
24172
24173         Tests for module 'modf'.
24174         * modules/modf-tests: New file.
24175         * tests/test-modf.c: New file.
24176
24177         Tests for module 'logb'.
24178         * modules/logb-tests: New file.
24179         * tests/test-logb.c: New file.
24180
24181         Tests for module 'log1p'.
24182         * modules/log1p-tests: New file.
24183         * tests/test-log1p.c: New file.
24184
24185         Tests for module 'log10'.
24186         * modules/log10-tests: New file.
24187         * tests/test-log10.c: New file.
24188
24189         Tests for module 'log'.
24190         * modules/log-tests: New file.
24191         * tests/test-log.c: New file.
24192
24193         Tests for module 'lgamma'.
24194         * modules/lgamma-tests: New file.
24195         * tests/test-lgamma.c: New file.
24196
24197         Tests for module 'ldexp'.
24198         * modules/ldexp-tests: New file.
24199         * tests/test-ldexp.c: New file.
24200
24201         Tests for module 'jn'.
24202         * modules/jn-tests: New file.
24203         * tests/test-jn.c: New file.
24204
24205         Tests for module 'j1'.
24206         * modules/j1-tests: New file.
24207         * tests/test-j1.c: New file.
24208
24209         Tests for module 'j0'.
24210         * modules/j0-tests: New file.
24211         * tests/test-j0.c: New file.
24212
24213         Tests for module 'hypot'.
24214         * modules/hypot-tests: New file.
24215         * tests/test-hypot.c: New file.
24216
24217         Tests for module 'fmod'.
24218         * modules/fmod-tests: New file.
24219         * tests/test-fmod.c: New file.
24220
24221         Tests for module 'fabs'.
24222         * modules/fabs-tests: New file.
24223         * tests/test-fabs.c: New file.
24224
24225         Tests for module 'exp'.
24226         * modules/exp-tests: New file.
24227         * tests/test-exp.c: New file.
24228
24229         Tests for module 'erfc'.
24230         * modules/erfc-tests: New file.
24231         * tests/test-erfc.c: New file.
24232
24233         Tests for module 'erf'.
24234         * modules/erf-tests: New file.
24235         * tests/test-erf.c: New file.
24236
24237         Tests for module 'cosh'.
24238         * modules/cosh-tests: New file.
24239         * tests/test-cosh.c: New file.
24240
24241         Tests for module 'cos'.
24242         * modules/cos-tests: New file.
24243         * tests/test-cos.c: New file.
24244
24245         Tests for module 'copysign'.
24246         * modules/copysign-tests: New file.
24247         * tests/test-copysign.c: New file.
24248
24249         Tests for module 'cbrt'.
24250         * modules/cbrt-tests: New file.
24251         * tests/test-cbrt.c: New file.
24252
24253         Tests for module 'atan2'.
24254         * modules/atan2-tests: New file.
24255         * tests/test-atan2.c: New file.
24256
24257         Tests for module 'atan'.
24258         * modules/atan-tests: New file.
24259         * tests/test-atan.c: New file.
24260
24261         Tests for module 'asin'.
24262         * modules/asin-tests: New file.
24263         * tests/test-asin.c: New file.
24264
24265         Tests for module 'acos'.
24266         * modules/acos-tests: New file.
24267         * tests/test-acos.c: New file.
24268
24269 2010-01-24  Bruno Haible  <bruno@clisp.org>
24270
24271         Fix tests for common <math.h> functions.
24272         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
24273         code snippet that references the function pointer, rather than merely
24274         calling the function. Substitute the FUNC_LIBM variable.
24275         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
24276         * modules/acos (configure.ac): Likewise.
24277         * modules/asin (configure.ac): Likewise.
24278         * modules/atan (configure.ac): Likewise.
24279         * modules/atan2 (configure.ac): Likewise.
24280         * modules/cbrt (configure.ac): Likewise.
24281         * modules/copysign (configure.ac): Likewise.
24282         * modules/cos (configure.ac): Likewise.
24283         * modules/cosh (configure.ac): Likewise.
24284         * modules/erf (configure.ac): Likewise.
24285         * modules/erfc (configure.ac): Likewise.
24286         * modules/exp (configure.ac): Likewise.
24287         * modules/fabs (configure.ac): Likewise.
24288         * modules/fmod (configure.ac): Likewise.
24289         * modules/hypot (configure.ac): Likewise.
24290         * modules/j0 (configure.ac): Likewise.
24291         * modules/j1 (configure.ac): Likewise.
24292         * modules/jn (configure.ac): Likewise.
24293         * modules/ldexp (configure.ac): Likewise.
24294         * modules/lgamma (configure.ac): Likewise.
24295         * modules/log (configure.ac): Likewise.
24296         * modules/log10 (configure.ac): Likewise.
24297         * modules/log1p (configure.ac): Likewise.
24298         * modules/logb (configure.ac): Likewise.
24299         * modules/modf (configure.ac): Likewise.
24300         * modules/nextafter (configure.ac): Likewise.
24301         * modules/pow (configure.ac): Likewise.
24302         * modules/remainder (configure.ac): Likewise.
24303         * modules/rint (configure.ac): Likewise.
24304         * modules/sin (configure.ac): Likewise.
24305         * modules/sinh (configure.ac): Likewise.
24306         * modules/tan (configure.ac): Likewise.
24307         * modules/tanh (configure.ac): Likewise.
24308         * modules/y0 (configure.ac): Likewise.
24309         * modules/y1 (configure.ac): Likewise.
24310         * modules/yn (configure.ac): Likewise.
24311
24312 2010-01-24  Bruno Haible  <bruno@clisp.org>
24313
24314         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
24315         * tests/test-acosl.c (x): New variable.
24316         (main): Store argument in x and fetch it from x.
24317         * tests/test-asinl.c (x): New variable.
24318         (main): Store argument in x and fetch it from x.
24319         * tests/test-atanl.c (x): New variable.
24320         (main): Store argument in x and fetch it from x.
24321         * tests/test-cosl.c (x): New variable.
24322         (main): Store argument in x and fetch it from x.
24323         * tests/test-expl.c (x): New variable.
24324         (main): Store argument in x and fetch it from x.
24325         * tests/test-logl.c (x): New variable.
24326         (main): Store argument in x and fetch it from x.
24327         * tests/test-sinl.c (x): New variable.
24328         (main): Store argument in x and fetch it from x.
24329         * tests/test-sqrtl.c (x): New variable.
24330         (main): Store argument in x and fetch it from x.
24331         * tests/test-tanl.c (x): New variable.
24332         (main): Store argument in x and fetch it from x.
24333
24334 2010-01-24  Bruno Haible  <bruno@clisp.org>
24335
24336         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
24337         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
24338         assignments to the initial TESTS_ENVIRONMENT.
24339         * doc/gnulib.texi (Unit test modules): Document it.
24340         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
24341         TESTS_ENVIRONMENT.
24342         * modules/btowc-tests (Makefile.am): Likewise.
24343         * modules/c-stack-tests (Makefile.am): Likewise.
24344         * modules/c-strcase-tests (Makefile.am): Likewise.
24345         * modules/copy-file-tests (Makefile.am): Likewise.
24346         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
24347         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
24348         * modules/mbrtowc-tests (Makefile.am): Likewise.
24349         * modules/mbscasecmp-tests (Makefile.am): Likewise.
24350         * modules/mbscasestr-tests (Makefile.am): Likewise.
24351         * modules/mbschr-tests (Makefile.am): Likewise.
24352         * modules/mbscspn-tests (Makefile.am): Likewise.
24353         * modules/mbsinit-tests (Makefile.am): Likewise.
24354         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
24355         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
24356         * modules/mbspbrk-tests (Makefile.am): Likewise.
24357         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
24358         * modules/mbsrchr-tests (Makefile.am): Likewise.
24359         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
24360         * modules/mbsspn-tests (Makefile.am): Likewise.
24361         * modules/mbsstr-tests (Makefile.am): Likewise.
24362         * modules/nl_langinfo-tests (Makefile.am): Likewise.
24363         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
24364         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
24365         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
24366         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
24367         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
24368         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
24369         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
24370         * modules/wcrtomb-tests (Makefile.am): Likewise.
24371         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
24372         * modules/wcsrtombs-tests (Makefile.am): Likewise.
24373         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
24374         assignments from TESTS_ENVIRONMENT.
24375         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
24376         augmentation.
24377         * modules/argp-version-etc-tests (Makefile.am): Likewise.
24378         * modules/atexit-tests (Makefile.am): Likewise.
24379         * modules/binary-io-tests (Makefile.am): Likewise.
24380         * modules/closein-tests (Makefile.am): Likewise.
24381         * modules/dprintf-posix-tests (Makefile.am): Likewise.
24382         * modules/exclude-tests (Makefile.am): Likewise.
24383         * modules/fflush-tests (Makefile.am): Likewise.
24384         * modules/fpending-tests (Makefile.am): Likewise.
24385         * modules/fprintf-posix-tests (Makefile.am): Likewise.
24386         * modules/freadahead-tests (Makefile.am): Likewise.
24387         * modules/freadptr-tests (Makefile.am): Likewise.
24388         * modules/freadseek-tests (Makefile.am): Likewise.
24389         * modules/fseek-tests (Makefile.am): Likewise.
24390         * modules/fseeko-tests (Makefile.am): Likewise.
24391         * modules/ftell-tests (Makefile.am): Likewise.
24392         * modules/ftello-tests (Makefile.am): Likewise.
24393         * modules/idpriv-drop-tests (Makefile.am): Likewise.
24394         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
24395         * modules/lseek-tests (Makefile.am): Likewise.
24396         * modules/parse-duration-tests (Makefile.am): Likewise.
24397         * modules/perror-tests (Makefile.am): Likewise.
24398         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
24399         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
24400         * modules/pipe-tests (Makefile.am): Likewise.
24401         * modules/pread-tests (Makefile.am): Likewise.
24402         * modules/printf-posix-tests (Makefile.am): Likewise.
24403         * modules/select-tests (Makefile.am): Likewise.
24404         * modules/sigpipe-tests (Makefile.am): Likewise.
24405         * modules/tsearch-tests (Makefile.am): Likewise.
24406         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
24407         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
24408         * modules/uniname/uniname-tests (Makefile.am): Likewise.
24409         * modules/uniwidth/width-tests (Makefile.am): Likewise.
24410         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
24411         * modules/version-etc-tests (Makefile.am): Likewise.
24412         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
24413         * modules/vprintf-posix-tests (Makefile.am): Likewise.
24414         * modules/xalloc-die-tests (Makefile.am): Likewise.
24415         * modules/xprintf-posix-tests (Makefile.am): Likewise.
24416         * modules/xstrtoimax-tests (Makefile.am): Likewise.
24417         * modules/xstrtol-tests (Makefile.am): Likewise.
24418         * modules/xstrtoumax-tests (Makefile.am): Likewise.
24419         * modules/yesno-tests (Makefile.am): Likewise.
24420         Suggested by Jim Meyering.
24421
24422 2010-01-24  Bruno Haible  <bruno@clisp.org>
24423
24424         More documentation.
24425         * doc/gnulib.texi (Writing modules): New chapter.
24426         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
24427         the new chapter.
24428
24429 2010-01-24  Jim Meyering  <meyering@redhat.com>
24430
24431         maint.mk: do not prepend "./" after filtering
24432         * top/maint.mk (_prepend_srcdir_prefix): New variable
24433         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
24434         "./" when $(srcdir) is ".".
24435
24436         define STREQ(a,b) consistently, removing useless parentheses
24437         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
24438         since the only risk is that "a" or "b" contains an unparenthesized
24439         comma, but if either did that, STREQ would have 3 or more arguments.
24440         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
24441         * lib/fts.c (STREQ): Remove unnecessary parentheses.
24442         * lib/hash-triple.c (STREQ): Likewise.
24443         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
24444         * lib/getugroups.c (STREQ): Likewise.
24445
24446 2010-01-23  Jim Meyering  <meyering@redhat.com>
24447
24448         maint.mk: fix syntax-check in a non-srcdir build directory
24449         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
24450         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
24451
24452 2010-01-22  Jim Meyering  <meyering@redhat.com>
24453
24454         userspec: add unit tests
24455         * tests/test-userspec.c: New file.
24456         * modules/userspec-tests: Likewise.
24457
24458 2010-01-21  Jim Meyering  <meyering@redhat.com>
24459
24460         maint.mk: handle source file names containing "." robustly
24461         * top/maint.mk (_dot_escaped_srcdir): Define.
24462         (VC_LIST): Use it in LHS of sed substitution.
24463
24464 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
24465
24466         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
24467         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
24468         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
24469         from a non-srcdir build.
24470
24471 2010-01-20  Eric Blake  <ebb9@byu.net>
24472
24473         warn-on-use: use instead of link-warning
24474         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
24475         * modules/unistd (Depends-on, Makefile.am): Likewise.
24476         * modules/arpa_inet (Depends-on): Replace link-warning with
24477         warn-on-use.
24478         (Makefile.am): Update rules accordingly.
24479         * modules/ctype (Depends-on, Makefile.am): Likewise.
24480         * modules/dirent (Depends-on, Makefile.am): Likewise.
24481         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
24482         * modules/inttypes (Depends-on, Makefile.am): Likewise.
24483         * modules/langinfo (Depends-on, Makefile.am): Likewise.
24484         * modules/locale (Depends-on, Makefile.am): Likewise.
24485         * modules/math (Depends-on, Makefile.am): Likewise.
24486         * modules/search (Depends-on, Makefile.am): Likewise.
24487         * modules/signal (Depends-on, Makefile.am): Likewise.
24488         * modules/spawn (Depends-on, Makefile.am): Likewise.
24489         * modules/stdlib (Depends-on, Makefile.am): Likewise.
24490         * modules/string (Depends-on, Makefile.am): Likewise.
24491         * modules/strings (Depends-on, Makefile.am): Likewise.
24492         * modules/sys_file (Depends-on, Makefile.am): Likewise.
24493         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
24494         * modules/sys_select (Depends-on, Makefile.am): Likewise.
24495         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
24496         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
24497         * modules/sys_times (Depends-on, Makefile.am): Likewise.
24498         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
24499         * modules/wchar (Depends-on, Makefile.am): Likewise.
24500         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
24501         should be poisoned.
24502         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
24503         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
24504         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
24505         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24506         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
24507         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
24508         * m4/math_h.m4 (gl_MATH_H): Likewise.
24509         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24510         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
24511         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
24512         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
24513         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
24514         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
24515         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
24516         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
24517         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
24518         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24519         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24520         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
24521         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
24522         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
24523         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24524         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
24525         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
24526         GL_LINK_WARNING.
24527         * lib/ctype.in.h: Likewise.
24528         * lib/dirent.in.h: Likewise.
24529         * lib/fcntl.in.h: Likewise.
24530         * lib/inttypes.in.h: Likewise.
24531         * lib/langinfo.in.h: Likewise.
24532         * lib/locale.in.h: Likewise.
24533         * lib/math.in.h: Likewise.
24534         * lib/search.in.h: Likewise.
24535         * lib/signal.in.h: Likewise.
24536         * lib/spawn.in.h: Likewise.
24537         * lib/stdio.in.h: Likewise.
24538         * lib/stdlib.in.h: Likewise.
24539         * lib/string.in.h: Likewise.
24540         * lib/strings.in.h: Likewise.
24541         * lib/sys_file.in.h: Likewise.
24542         * lib/sys_ioctl.in.h: Likewise.
24543         * lib/sys_select.in.h: Likewise.
24544         * lib/sys_socket.in.h: Likewise.
24545         * lib/sys_stat.in.h: Likewise.
24546         * lib/sys_times.in.h: Likewise.
24547         * lib/sys_utsname.in.h: Likewise.
24548         * lib/unistd.in.h: Likewise.
24549         * lib/wchar.in.h: Likewise.
24550
24551 2010-01-20  Bruno Haible  <bruno@clisp.org>
24552
24553         Avoid duplicate -lm.
24554         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
24555         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
24556         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
24557         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
24558         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
24559         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
24560         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
24561         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
24562         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
24563         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
24564         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
24565         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
24566         Reported by Paolo Bonzini.
24567
24568 2010-01-19  Bruno Haible  <bruno@clisp.org>
24569
24570         langinfo, nl_langinfo: Relicense under LGPLv2+.
24571         * modules/langinfo (License): Change to LGPLv2+.
24572         * modules/nl_langinfo (License): Likewise.
24573         Patch by David Lutterkort <lutter@redhat.com>.
24574
24575 2010-01-19  Bruno Haible  <bruno@clisp.org>
24576
24577         Avoid compilation error with cc on OSF/1 5.1.
24578         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
24579         statement, not before.
24580         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24581
24582 2010-01-18  Bruno Haible  <bruno@clisp.org>
24583
24584         Avoid a link error due to the __printf__ symbol.
24585         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
24586         and 2.6.x.
24587         (__format__, __printf__): Remove definitions.
24588         * lib/argp-fmtstream.h: Likewise.
24589         * lib/argp.h: Likewise.
24590         * lib/error.h: Likewise.
24591         * lib/vasnprintf.h: Likewise.
24592         * lib/xprintf.h: Likewise.
24593         * lib/xvasprintf.h: Likewise.
24594         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24595
24596 2010-01-18  Bruno Haible  <bruno@clisp.org>
24597
24598         Tests for module 'tanl'.
24599         * modules/tanl-tests: New file.
24600         * tests/test-tanl.c: New file.
24601
24602         Tests for module 'sqrtl'.
24603         * modules/sqrtl-tests: New file.
24604         * tests/test-sqrtl.c: New file.
24605
24606         Tests for module 'sinl'.
24607         * modules/sinl-tests: New file.
24608         * tests/test-sinl.c: New file.
24609
24610         Tests for module 'logl'.
24611         * modules/logl-tests: New file.
24612         * tests/test-logl.c: New file.
24613
24614         Tests for module 'expl'.
24615         * modules/expl-tests: New file.
24616         * tests/test-expl.c: New file.
24617
24618         Tests for module 'cosl'.
24619         * modules/cosl-tests: New file.
24620         * tests/test-cosl.c: New file.
24621
24622         Tests for module 'atanl'.
24623         * modules/atanl-tests: New file.
24624         * tests/test-atanl.c: New file.
24625
24626         Tests for module 'asinl'.
24627         * modules/asinl-tests: New file.
24628         * tests/test-asinl.c: New file.
24629
24630         Tests for module 'acosl'.
24631         * modules/acosl-tests: New file.
24632         * tests/test-acosl.c: New file.
24633
24634         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
24635         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
24636         tanl): Use the standard gnulib idiom.
24637         * lib/cosl.c: Don't include trigl.c and sincosl.c.
24638         * lib/sinl.c: Likewise.
24639         * lib/tanl.c: Don't include trigl.c.
24640         (kernel_tanl): Make static.
24641         * lib/sincosl.c: Include trigl.h first.
24642         * lib/trigl.c: Likewise.
24643         * m4/acosl.m4: New file.
24644         * m4/asinl.m4: New file.
24645         * m4/atanl.m4: New file.
24646         * m4/cosl.m4: New file.
24647         * m4/expl.m4: New file.
24648         * m4/logl.m4: New file.
24649         * m4/sinl.m4: New file.
24650         * m4/sqrtl.m4: New file.
24651         * m4/tanl.m4: New file.
24652         * m4/mathl.m4: Remove file.
24653         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
24654         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
24655         Don't initialize GNULIB_MATHL.
24656         * modules/acosl: New file.
24657         * modules/asinl: New file.
24658         * modules/atanl: New file.
24659         * modules/cosl: New file.
24660         * modules/expl: New file.
24661         * modules/logl: New file.
24662         * modules/sinl: New file.
24663         * modules/sqrtl: New file.
24664         * modules/tanl: New file.
24665         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
24666         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
24667         substitute GNULIB_MATHL.
24668         * modules/mathl: Rewritten.
24669         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
24670         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
24671         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
24672         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
24673         * doc/posix-functions/expl.texi: Mention the 'expl' module.
24674         * doc/posix-functions/logl.texi: Mention the 'logl' module.
24675         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
24676         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
24677         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
24678
24679 2010-01-18  Bruno Haible  <bruno@clisp.org>
24680
24681         sqrt: Make gl_FUNC_SQRT requirable.
24682         * m4/sqrt.m4: New file.
24683         * modules/sqrt (Files): Add it.
24684         (configure.ac): Invoke gl_FUNC_SQRT.
24685
24686 2010-01-18  Bruno Haible  <bruno@clisp.org>
24687
24688         New modules for common <math.h> functions.
24689         * m4/mathfunc.m4: New file.
24690         * modules/acos: New file.
24691         * modules/asin: New file.
24692         * modules/atan: New file.
24693         * modules/atan2: New file.
24694         * modules/cbrt: New file.
24695         * modules/copysign: New file.
24696         * modules/cos: New file.
24697         * modules/cosh: New file.
24698         * modules/erf: New file.
24699         * modules/erfc: New file.
24700         * modules/exp: New file.
24701         * modules/fabs: New file.
24702         * modules/fmod: New file.
24703         * modules/hypot: New file.
24704         * modules/j0: New file.
24705         * modules/j1: New file.
24706         * modules/jn: New file.
24707         * modules/ldexp: New file.
24708         * modules/lgamma: New file.
24709         * modules/log: New file.
24710         * modules/log10: New file.
24711         * modules/log1p: New file.
24712         * modules/logb: New file.
24713         * modules/modf: New file.
24714         * modules/nextafter: New file.
24715         * modules/pow: New file.
24716         * modules/remainder: New file.
24717         * modules/rint: New file.
24718         * modules/sin: New file.
24719         * modules/sinh: New file.
24720         * modules/sqrt: New file.
24721         * modules/tan: New file.
24722         * modules/tanh: New file.
24723         * modules/y0: New file.
24724         * modules/y1: New file.
24725         * modules/yn: New file.
24726         * doc/posix-functions/acos.texi: Mention the 'acos' module.
24727         * doc/posix-functions/asin.texi: Mention the 'asin' module.
24728         * doc/posix-functions/atan.texi: Mention the 'atan' module.
24729         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
24730         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
24731         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
24732         * doc/posix-functions/cos.texi: Mention the 'cos' module.
24733         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
24734         * doc/posix-functions/erf.texi: Mention the 'erf' module.
24735         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
24736         * doc/posix-functions/exp.texi: Mention the 'exp' module.
24737         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
24738         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
24739         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
24740         * doc/posix-functions/j0.texi: Mention the 'j0' module.
24741         * doc/posix-functions/j1.texi: Mention the 'j1' module.
24742         * doc/posix-functions/jn.texi: Mention the 'jn' module.
24743         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
24744         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
24745         * doc/posix-functions/log.texi: Mention the 'log' module.
24746         * doc/posix-functions/log10.texi: Mention the 'log10' module.
24747         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
24748         * doc/posix-functions/logb.texi: Mention the 'logb' module.
24749         * doc/posix-functions/modf.texi: Mention the 'modf' module.
24750         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
24751         * doc/posix-functions/pow.texi: Mention the 'pow' module.
24752         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
24753         * doc/posix-functions/rint.texi: Mention the 'rint' module.
24754         * doc/posix-functions/sin.texi: Mention the 'sin' module.
24755         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
24756         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
24757         * doc/posix-functions/tan.texi: Mention the 'tan' module.
24758         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
24759         * doc/posix-functions/y0.texi: Mention the 'y0' module.
24760         * doc/posix-functions/y1.texi: Mention the 'y1' module.
24761         * doc/posix-functions/yn.texi: Mention the 'yn' module.
24762
24763 2010-01-18  Jim Meyering  <meyering@redhat.com>
24764
24765         ignore-value: relax license to LGPLv2+
24766         * modules/ignore-value (License): Relax to LGPLv2+.
24767
24768         getdate: don't leak when TZ contains two or more '"'s
24769         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
24770         double quote in TZ after the first one.
24771
24772         readtokens: do not leak internal token_lengths buffer
24773         * lib/readtokens.c (readtokens): Free the local, lengths,
24774         when the supplied "token_lengths" parameter is NULL.
24775
24776 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24777
24778         Fix a couple of missing LIBTHREAD link failures on AIX.
24779         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
24780         $(LIBTHREAD).
24781         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
24782
24783         Link test-poll against INET_PTON_LIB.
24784         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
24785         for inet_pton on Solaris 10.
24786
24787 2010-01-17  Bruno Haible  <bruno@clisp.org>
24788
24789         unistdio/*-sprintf: Fix typo in module description.
24790         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
24791         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
24792         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
24793         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
24794         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
24795         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
24796         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
24797         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24798
24799 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24800
24801         gnulib-tool: fix filelist for AIX, HP-UX ksh.
24802         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
24803         variables in shell case patterns, for AIX and HP-UX ksh.
24804
24805         Split large sed scripts, for HP-UX sed.
24806         * modules/stdio: Split sed scripts around 50 sed commands,
24807         to avoid HP-UX limit of 99 commands, in the near future.
24808         * modules/string: Likewise.
24809         * modules/unistd: Likewise.
24810
24811         gnulib-tool: avoid writing in the current directory.
24812         * gnulib-tool (func_emit_lib_Makefile_am)
24813         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
24814         not in the current directory, so concurrent gnulib-tool
24815         instances do not interfere.
24816
24817 2010-01-16  Jim Meyering  <meyering@redhat.com>
24818
24819         doc: update users.txt
24820         * users.txt: Add grep.
24821         (diffutils, gzip): Update URLs.
24822
24823 2010-01-12  Bruno Haible  <bruno@clisp.org>
24824
24825         posix_spawn: Avoid test failure on Cygwin.
24826         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
24827         characters.
24828         Reported by Simon Josefsson.
24829
24830 2010-01-12  Bruno Haible  <bruno@clisp.org>
24831
24832         * tests/test-cond.c (main): When skipping the test, show the reason.
24833
24834 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24835
24836         * lib/striconv.c (str_cd_iconv): Avoid if before free.
24837
24838 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24839
24840         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
24841         VC_LIST_ALWAYS_EXCLUDE_REGEX.
24842
24843 2010-01-12  Eric Blake  <ebb9@byu.net>
24844
24845         build: guarantee AS_VAR_IF
24846         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
24847         (gl_AS_VAR_IF): Move...
24848         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
24849         Reported by Simon Josefsson.
24850
24851 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24852
24853         * lib/stdio.in.h: Fix typo.
24854
24855 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24856
24857         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
24858         libgpg-error.
24859
24860 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24861
24862         * tests/test-xalloc-die.sh: Use $EXEEXT.
24863
24864 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24865             Bruno Haible  <bruno@clisp.org>
24866
24867         getlogin, getlogin_r: Avoid test failure.
24868         * tests/test-getlogin.c: Include <stdio.h>.
24869         (main): Skip the test when the function fails because stdin is not a
24870         tty.
24871         * tests/test-getlogin_r.c: Include <stdio.h>.
24872         (main): Skip the test when the function fails because stdin is not a
24873         tty.
24874
24875 2010-01-11  Eric Blake  <ebb9@byu.net>
24876
24877         tests: avoid more large file warnings
24878         * tests/test-fflush.c: Avoid warning about ftell use.
24879         * tests/test-fseek.c: Avoid warning about fseek use.
24880
24881 2010-01-10  Bruno Haible  <bruno@clisp.org>
24882
24883         nproc: Work better on Linux when /proc and /sys are not mounted.
24884         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
24885         as lower bound when, on glibc/Linux systems,
24886         sysconf (_SC_NPROCESSORS_CONF) returns 1.
24887         Suggested by Pádraig Brady <P@draigbrady.com>.
24888         Reported by Dmitry V. Levin <ldv@altlinux.org>.
24889
24890         nproc: Refactor.
24891         * lib/nproc.c (num_processors_via_affinity_mask): New function,
24892         extracted from num_processors.
24893         (num_processors): Call it.
24894
24895 2010-01-11  Jim Meyering  <meyering@redhat.com>
24896
24897         utimecmp: avoid new warning from upcoming gcc-4.5.0
24898         * lib/utimecmp.c (BILLION): Define using #define rather than an
24899         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
24900
24901 2010-01-11  Eric Blake  <ebb9@byu.net>
24902
24903         math: add portability warnings for classification macros
24904         * modules/math (Depends-on): Add warn-on-use.
24905         (Makefile.am): Provide new substitutions.
24906         * m4/math_h.m4 (gl_MATH_H): Require inline.
24907         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
24908         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
24909         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
24910         implement warnings.
24911
24912         unistd: warn on use of environ without module
24913         * modules/unistd (Depends-on): Add warn-on-use.
24914         (Makefile.am): Provide new substitutions.
24915         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
24916         * lib/unistd.in.h (environ): Wrap with a warning helper function.
24917
24918         stdio: warn on suspicious uses
24919         * modules/stdio (Depends-on): Add warn-on-use.
24920         (Makefile.am): Provide new substitutions.
24921         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
24922         fseeko.
24923         * lib/stdio.in.h (gets): Always warn on use.
24924         (fseek, ftell): Adjust when warnings are issued, and honor
24925         _GL_NO_LARGE_FILES as a way to silence the warning.
24926         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
24927         any warning about large file offsets.
24928         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
24929         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
24930         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
24931         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
24932         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
24933         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
24934         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
24935         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
24936
24937         warn-on-use: new module
24938         * modules/warn-on-use: New file.
24939         * build-aux/warn-on-use.h: Likewise.
24940         * m4/warn-on-use.m4: Likewise.
24941         * MODULES.html.sh (Support for building): Mention it.
24942
24943 2010-01-10  Bruno Haible  <bruno@clisp.org>
24944
24945         Tests for module 'unistr/u32-strdup'.
24946         * modules/unistr/u32-strdup-tests: New file.
24947         * tests/unistr/test-u32-strdup.c: New file.
24948
24949         Tests for module 'unistr/u16-strdup'.
24950         * modules/unistr/u16-strdup-tests: New file.
24951         * tests/unistr/test-u16-strdup.c: New file.
24952
24953         Tests for module 'unistr/u8-strdup'.
24954         * modules/unistr/u8-strdup-tests: New file.
24955         * tests/unistr/test-u8-strdup.c: New file.
24956         * tests/unistr/test-strdup.h: New file.
24957
24958         Tests for module 'unistr/u32-strncmp'.
24959         * modules/unistr/u32-strncmp-tests: New file.
24960         * tests/unistr/test-u32-strncmp.c: New file.
24961
24962         Tests for module 'unistr/u16-strncmp'.
24963         * modules/unistr/u16-strncmp-tests: New file.
24964         * tests/unistr/test-u16-strncmp.c: New file.
24965
24966         Tests for module 'unistr/u8-strncmp'.
24967         * modules/unistr/u8-strncmp-tests: New file.
24968         * tests/unistr/test-u8-strncmp.c: New file.
24969         * tests/unistr/test-strncmp.h: New file.
24970
24971         Tests for module 'unistr/u32-strcoll'.
24972         * modules/unistr/u32-strcoll-tests: New file.
24973         * tests/unistr/test-u32-strcoll.c: New file.
24974
24975         Tests for module 'unistr/u16-strcoll'.
24976         * modules/unistr/u16-strcoll-tests: New file.
24977         * tests/unistr/test-u16-strcoll.c: New file.
24978
24979         Tests for module 'unistr/u8-strcoll'.
24980         * modules/unistr/u8-strcoll-tests: New file.
24981         * tests/unistr/test-u8-strcoll.c: New file.
24982
24983         Tests for module 'unistr/u32-strcmp'.
24984         * modules/unistr/u32-strcmp-tests: New file.
24985         * tests/unistr/test-u32-strcmp.c: New file.
24986         * tests/unistr/test-u32-strcmp.h: New file.
24987
24988         Tests for module 'unistr/u16-strcmp'.
24989         * modules/unistr/u16-strcmp-tests: New file.
24990         * tests/unistr/test-u16-strcmp.c: New file.
24991         * tests/unistr/test-u16-strcmp.h: New file.
24992
24993         Tests for module 'unistr/u8-strcmp'.
24994         * modules/unistr/u8-strcmp-tests: New file.
24995         * tests/unistr/test-u8-strcmp.c: New file.
24996         * tests/unistr/test-u8-strcmp.h: New file.
24997         * tests/unistr/test-strcmp.h: New file.
24998
24999         Tests for module 'unistr/u32-strncat'.
25000         * modules/unistr/u32-strncat-tests: New file.
25001         * tests/unistr/test-u32-strncat.c: New file.
25002
25003         Tests for module 'unistr/u16-strncat'.
25004         * modules/unistr/u16-strncat-tests: New file.
25005         * tests/unistr/test-u16-strncat.c: New file.
25006
25007         Tests for module 'unistr/u8-strncat'.
25008         * modules/unistr/u8-strncat-tests: New file.
25009         * tests/unistr/test-u8-strncat.c: New file.
25010         * tests/unistr/test-strncat.h: New file.
25011
25012         Tests for module 'unistr/u32-strcat'.
25013         * modules/unistr/u32-strcat-tests: New file.
25014         * tests/unistr/test-u32-strcat.c: New file.
25015
25016         Tests for module 'unistr/u16-strcat'.
25017         * modules/unistr/u16-strcat-tests: New file.
25018         * tests/unistr/test-u16-strcat.c: New file.
25019
25020         Tests for module 'unistr/u8-strcat'.
25021         * modules/unistr/u8-strcat-tests: New file.
25022         * tests/unistr/test-u8-strcat.c: New file.
25023         * tests/unistr/test-strcat.h: New file.
25024
25025         Tests for module 'unistr/u32-stpncpy'.
25026         * modules/unistr/u32-stpncpy-tests: New file.
25027         * tests/unistr/test-u32-stpncpy.c: New file.
25028
25029         Tests for module 'unistr/u16-stpncpy'.
25030         * modules/unistr/u16-stpncpy-tests: New file.
25031         * tests/unistr/test-u16-stpncpy.c: New file.
25032
25033         Tests for module 'unistr/u8-stpncpy'.
25034         * modules/unistr/u8-stpncpy-tests: New file.
25035         * tests/unistr/test-u8-stpncpy.c: New file.
25036         * tests/unistr/test-stpncpy.h: New file.
25037
25038         Tests for module 'unistr/u32-strncpy'.
25039         * modules/unistr/u32-strncpy-tests: New file.
25040         * tests/unistr/test-u32-strncpy.c: New file.
25041
25042         Tests for module 'unistr/u16-strncpy'.
25043         * modules/unistr/u16-strncpy-tests: New file.
25044         * tests/unistr/test-u16-strncpy.c: New file.
25045
25046         Tests for module 'unistr/u8-strncpy'.
25047         * modules/unistr/u8-strncpy-tests: New file.
25048         * tests/unistr/test-u8-strncpy.c: New file.
25049         * tests/unistr/test-strncpy.h: New file.
25050
25051         Tests for module 'unistr/u32-stpcpy'.
25052         * modules/unistr/u32-stpcpy-tests: New file.
25053         * tests/unistr/test-u32-stpcpy.c: New file.
25054
25055         Tests for module 'unistr/u16-stpcpy'.
25056         * modules/unistr/u16-stpcpy-tests: New file.
25057         * tests/unistr/test-u16-stpcpy.c: New file.
25058
25059         Tests for module 'unistr/u8-stpcpy'.
25060         * modules/unistr/u8-stpcpy-tests: New file.
25061         * tests/unistr/test-u8-stpcpy.c: New file.
25062         * tests/unistr/test-stpcpy.h: New file.
25063
25064         Tests for module 'unistr/u32-strcpy'.
25065         * modules/unistr/u32-strcpy-tests: New file.
25066         * tests/unistr/test-u32-strcpy.c: New file.
25067
25068         Tests for module 'unistr/u16-strcpy'.
25069         * modules/unistr/u16-strcpy-tests: New file.
25070         * tests/unistr/test-u16-strcpy.c: New file.
25071
25072         Tests for module 'unistr/u8-strcpy'.
25073         * modules/unistr/u8-strcpy-tests: New file.
25074         * tests/unistr/test-u8-strcpy.c: New file.
25075         * tests/unistr/test-strcpy.h: New file.
25076
25077         Tests for module 'unistr/u32-strnlen'.
25078         * modules/unistr/u32-strnlen-tests: New file.
25079         * tests/unistr/test-u32-strnlen.c: New file.
25080
25081         Tests for module 'unistr/u16-strnlen'.
25082         * modules/unistr/u16-strnlen-tests: New file.
25083         * tests/unistr/test-u16-strnlen.c: New file.
25084
25085         Tests for module 'unistr/u8-strnlen'.
25086         * modules/unistr/u8-strnlen-tests: New file.
25087         * tests/unistr/test-u8-strnlen.c: New file.
25088         * tests/unistr/test-strnlen.h: New file.
25089
25090         Tests for module 'unistr/u32-strlen'.
25091         * modules/unistr/u32-strlen-tests: New file.
25092         * tests/unistr/test-u32-strlen.c: New file.
25093
25094         Tests for module 'unistr/u16-strlen'.
25095         * modules/unistr/u16-strlen-tests: New file.
25096         * tests/unistr/test-u16-strlen.c: New file.
25097
25098         Tests for module 'unistr/u8-strlen'.
25099         * modules/unistr/u8-strlen-tests: New file.
25100         * tests/unistr/test-u8-strlen.c: New file.
25101
25102         Tests for module 'unistr/u32-prev'.
25103         * modules/unistr/u32-prev-tests: New file.
25104         * tests/unistr/test-u32-prev.c: New file.
25105
25106         Tests for module 'unistr/u16-prev'.
25107         * modules/unistr/u16-prev-tests: New file.
25108         * tests/unistr/test-u16-prev.c: New file.
25109
25110         Tests for module 'unistr/u8-prev'.
25111         * modules/unistr/u8-prev-tests: New file.
25112         * tests/unistr/test-u8-prev.c: New file.
25113
25114         Tests for module 'unistr/u32-next'.
25115         * modules/unistr/u32-next-tests: New file.
25116         * tests/unistr/test-u32-next.c: New file.
25117
25118         Tests for module 'unistr/u16-next'.
25119         * modules/unistr/u16-next-tests: New file.
25120         * tests/unistr/test-u16-next.c: New file.
25121
25122         Tests for module 'unistr/u8-next'.
25123         * modules/unistr/u8-next-tests: New file.
25124         * tests/unistr/test-u8-next.c: New file.
25125
25126         Tests for module 'unistr/u32-strmbtouc'.
25127         * modules/unistr/u32-strmbtouc-tests: New file.
25128         * tests/unistr/test-u32-strmbtouc.c: New file.
25129
25130         Tests for module 'unistr/u16-strmbtouc'.
25131         * modules/unistr/u16-strmbtouc-tests: New file.
25132         * tests/unistr/test-u16-strmbtouc.c: New file.
25133
25134         Tests for module 'unistr/u8-strmbtouc'.
25135         * modules/unistr/u8-strmbtouc-tests: New file.
25136         * tests/unistr/test-u8-strmbtouc.c: New file.
25137
25138         Tests for module 'unistr/u32-strmblen'.
25139         * modules/unistr/u32-strmblen-tests: New file.
25140         * tests/unistr/test-u32-strmblen.c: New file.
25141
25142         Tests for module 'unistr/u16-strmblen'.
25143         * modules/unistr/u16-strmblen-tests: New file.
25144         * tests/unistr/test-u16-strmblen.c: New file.
25145
25146         Tests for module 'unistr/u8-strmblen'.
25147         * modules/unistr/u8-strmblen-tests: New file.
25148         * tests/unistr/test-u8-strmblen.c: New file.
25149
25150         Tests for module 'unistr/u32-cpy-alloc'.
25151         * modules/unistr/u32-cpy-alloc-tests: New file.
25152         * tests/unistr/test-u32-cpy-alloc.c: New file.
25153
25154         Tests for module 'unistr/u16-cpy-alloc'.
25155         * modules/unistr/u16-cpy-alloc-tests: New file.
25156         * tests/unistr/test-u16-cpy-alloc.c: New file.
25157
25158         Tests for module 'unistr/u8-cpy-alloc'.
25159         * modules/unistr/u8-cpy-alloc-tests: New file.
25160         * tests/unistr/test-u8-cpy-alloc.c: New file.
25161         * tests/unistr/test-cpy-alloc.h: New file.
25162
25163         Tests for module 'unistr/u32-mbsnlen'.
25164         * modules/unistr/u32-mbsnlen-tests: New file.
25165         * tests/unistr/test-u32-mbsnlen.c: New file.
25166
25167         Tests for module 'unistr/u16-mbsnlen'.
25168         * modules/unistr/u16-mbsnlen-tests: New file.
25169         * tests/unistr/test-u16-mbsnlen.c: New file.
25170
25171         Tests for module 'unistr/u8-mbsnlen'.
25172         * modules/unistr/u8-mbsnlen-tests: New file.
25173         * tests/unistr/test-u8-mbsnlen.c: New file.
25174
25175         Tests for module 'unistr/u32-chr'.
25176         * modules/unistr/u32-chr-tests: New file.
25177         * tests/unistr/test-u32-chr.c: New file.
25178
25179         Tests for module 'unistr/u16-chr'.
25180         * modules/unistr/u16-chr-tests: New file.
25181         * tests/unistr/test-u16-chr.c: New file.
25182
25183         Tests for module 'unistr/u8-chr'.
25184         * modules/unistr/u8-chr-tests: New file.
25185         * tests/unistr/test-u8-chr.c: New file.
25186         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
25187
25188         Tests for module 'unistr/u32-cmp2'.
25189         * modules/unistr/u32-cmp2-tests: New file.
25190         * tests/unistr/test-u32-cmp2.c: New file.
25191
25192         Tests for module 'unistr/u16-cmp2'.
25193         * modules/unistr/u16-cmp2-tests: New file.
25194         * tests/unistr/test-u16-cmp2.c: New file.
25195
25196         Tests for module 'unistr/u8-cmp2'.
25197         * modules/unistr/u8-cmp2-tests: New file.
25198         * tests/unistr/test-u8-cmp2.c: New file.
25199         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
25200
25201         Tests for module 'unistr/u32-cmp'.
25202         * modules/unistr/u32-cmp-tests: New file.
25203         * tests/unistr/test-u32-cmp.c: New file.
25204
25205         Tests for module 'unistr/u16-cmp'.
25206         * modules/unistr/u16-cmp-tests: New file.
25207         * tests/unistr/test-u16-cmp.c: New file.
25208
25209         Tests for module 'unistr/u8-cmp'.
25210         * modules/unistr/u8-cmp-tests: New file.
25211         * tests/unistr/test-u8-cmp.c: New file.
25212         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
25213
25214         Tests for module 'unistr/u32-set'.
25215         * modules/unistr/u32-set-tests: New file.
25216         * tests/unistr/test-u32-set.c: New file.
25217
25218         Tests for module 'unistr/u16-set'.
25219         * modules/unistr/u16-set-tests: New file.
25220         * tests/unistr/test-u16-set.c: New file.
25221
25222         Tests for module 'unistr/u8-set'.
25223         * modules/unistr/u8-set-tests: New file.
25224         * tests/unistr/test-u8-set.c: New file.
25225         * tests/unistr/test-set.h: New file.
25226
25227         Tests for module 'unistr/u32-move'.
25228         * modules/unistr/u32-move-tests: New file.
25229         * tests/unistr/test-u32-move.c: New file.
25230
25231         Tests for module 'unistr/u16-move'.
25232         * modules/unistr/u16-move-tests: New file.
25233         * tests/unistr/test-u16-move.c: New file.
25234
25235         Tests for module 'unistr/u8-move'.
25236         * modules/unistr/u8-move-tests: New file.
25237         * tests/unistr/test-u8-move.c: New file.
25238         * tests/unistr/test-move.h: New file.
25239
25240         Tests for module 'unistr/u32-cpy'.
25241         * modules/unistr/u32-cpy-tests: New file.
25242         * tests/unistr/test-u32-cpy.c: New file.
25243
25244         Tests for module 'unistr/u16-cpy'.
25245         * modules/unistr/u16-cpy-tests: New file.
25246         * tests/unistr/test-u16-cpy.c: New file.
25247
25248         Tests for module 'unistr/u8-cpy'.
25249         * modules/unistr/u8-cpy-tests: New file.
25250         * tests/unistr/test-u8-cpy.c: New file.
25251         * tests/unistr/test-cpy.h: New file.
25252
25253 2010-01-09  Bruno Haible  <bruno@clisp.org>
25254
25255         Tests for module 'unistr/u32-uctomb'.
25256         * modules/unistr/u32-uctomb-tests: New file.
25257         * tests/unistr/test-u32-uctomb.c: New file.
25258
25259         Tests for module 'unistr/u16-uctomb'.
25260         * modules/unistr/u16-uctomb-tests: New file.
25261         * tests/unistr/test-u16-uctomb.c: New file.
25262
25263         Tests for module 'unistr/u8-uctomb'.
25264         * modules/unistr/u8-uctomb-tests: New file.
25265         * tests/unistr/test-u8-uctomb.c: New file.
25266
25267         Tests for module 'unistr/u32-mbtoucr'.
25268         * modules/unistr/u32-mbtoucr-tests: New file.
25269         * tests/unistr/test-u32-mbtoucr.c: New file.
25270
25271         Tests for module 'unistr/u16-mbtoucr'.
25272         * modules/unistr/u16-mbtoucr-tests: New file.
25273         * tests/unistr/test-u16-mbtoucr.c: New file.
25274
25275         Tests for module 'unistr/u8-mbtoucr'.
25276         * modules/unistr/u8-mbtoucr-tests: New file.
25277         * tests/unistr/test-u8-mbtoucr.c: New file.
25278
25279         Tests for module 'unistr/u32-mbtouc'.
25280         * modules/unistr/u32-mbtouc-tests: New file.
25281         * tests/unistr/test-u32-mbtouc.c: New file.
25282
25283         Tests for module 'unistr/u16-mbtouc'.
25284         * modules/unistr/u16-mbtouc-tests: New file.
25285         * tests/unistr/test-u16-mbtouc.c: New file.
25286
25287         Tests for module 'unistr/u8-mbtouc'.
25288         * modules/unistr/u8-mbtouc-tests: New file.
25289         * tests/unistr/test-u8-mbtouc.c: New file.
25290
25291         Tests for module 'unistr/u32-mbtouc-unsafe'.
25292         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
25293         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
25294         * tests/unistr/test-u32-mbtouc.h: New file.
25295
25296         Tests for module 'unistr/u16-mbtouc-unsafe'.
25297         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
25298         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
25299         * tests/unistr/test-u16-mbtouc.h: New file.
25300
25301         Tests for module 'unistr/u8-mbtouc-unsafe'.
25302         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
25303         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
25304         * tests/unistr/test-u8-mbtouc.h: New file.
25305
25306         Tests for module 'unistr/u32-mblen'.
25307         * modules/unistr/u32-mblen-tests: New file.
25308         * tests/unistr/test-u32-mblen.c: New file.
25309
25310         Tests for module 'unistr/u16-mblen'.
25311         * modules/unistr/u16-mblen-tests: New file.
25312         * tests/unistr/test-u16-mblen.c: New file.
25313
25314         Tests for module 'unistr/u8-mblen'.
25315         * modules/unistr/u8-mblen-tests: New file.
25316         * tests/unistr/test-u8-mblen.c: New file.
25317
25318         Tests for module 'unistr/u32-to-u16'.
25319         * modules/unistr/u32-to-u16-tests: New file.
25320         * tests/unistr/test-u32-to-u16.c: New file.
25321
25322         Tests for module 'unistr/u32-to-u8'.
25323         * modules/unistr/u32-to-u8-tests: New file.
25324         * tests/unistr/test-u32-to-u8.c: New file.
25325
25326         Tests for module 'unistr/u16-to-u32'.
25327         * modules/unistr/u16-to-u32-tests: New file.
25328         * tests/unistr/test-u16-to-u32.c: New file.
25329
25330         Tests for module 'unistr/u16-to-u8'.
25331         * modules/unistr/u16-to-u8-tests: New file.
25332         * tests/unistr/test-u16-to-u8.c: New file.
25333
25334         Tests for module 'unistr/u8-to-u32'.
25335         * modules/unistr/u8-to-u32-tests: New file.
25336         * tests/unistr/test-u8-to-u32.c: New file.
25337
25338         Tests for module 'unistr/u8-to-u16'.
25339         * modules/unistr/u8-to-u16-tests: New file.
25340         * tests/unistr/test-u8-to-u16.c: New file.
25341
25342         Tests for module 'unistr/u32-check'.
25343         * modules/unistr/u32-check-tests: New file.
25344         * tests/unistr/test-u32-check.c: New file.
25345
25346         Tests for module 'unistr/u16-check'.
25347         * modules/unistr/u16-check-tests: New file.
25348         * tests/unistr/test-u16-check.c: New file.
25349
25350         Tests for module 'unistr/u8-check'.
25351         * modules/unistr/u8-check-tests: New file.
25352         * tests/unistr/test-u8-check.c: New file.
25353
25354         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
25355         (category_equals): New function.
25356         (main): Add more tests.
25357         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
25358
25359         * tests/unictype/test-bidi_byname.c (main): Add more tests.
25360
25361 2010-01-10  Bruno Haible  <bruno@clisp.org>
25362
25363         unistr/u*-strcoll: Try harder to distinguish different strings.
25364         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
25365         compare s1 and s2 to see if they are different.
25366
25367 2010-01-10  Bruno Haible  <bruno@clisp.org>
25368
25369         unistr/u*-stpncpy: Fix the return value.
25370         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
25371         description of the return value consistent with stpncpy in glibc.
25372         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
25373         written non-NUL unit.
25374
25375 2010-01-10  Bruno Haible  <bruno@clisp.org>
25376
25377         unistr/u*-next: Add missing dependencies.
25378         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
25379         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
25380         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
25381
25382 2010-01-10  Bruno Haible  <bruno@clisp.org>
25383
25384         unistr/u8-mbsnlen: Fix return value for incomplete character.
25385         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
25386         u8_mblen.
25387         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
25388         Remove unistr/u8-mblen.
25389         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
25390         u16_mblen.
25391         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
25392         Remove unistr/u16-mblen.
25393
25394 2010-01-10  Bruno Haible  <bruno@clisp.org>
25395
25396         wchar: Fix compilation error when <wchar.h> is used from coreutils.
25397         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
25398         Reported by Brian Gough <bjg@gnu.org> and
25399         Chris Clayton <chris2553@googlemail.com> via
25400         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
25401
25402 2010-01-09  Bruno Haible  <bruno@clisp.org>
25403
25404         unistr/u16-to-u32: Reject invalid input.
25405         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
25406         u16_mbtouc.
25407         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
25408         Remove unistr/u16-mbtouc.
25409
25410         unistr/u16-to-u8: Reject invalid input.
25411         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
25412         u16_mbtouc.
25413         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
25414         Remove unistr/u16-mbtouc.
25415
25416         unistr/u8-to-u32: Reject invalid input.
25417         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
25418         u8_mbtouc.
25419         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
25420         Remove unistr/u8-mbtouc.
25421
25422         unistr/u8-to-u16: Reject invalid input.
25423         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
25424         u8_mbtouc.
25425         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
25426         Remove unistr/u8-mbtouc.
25427
25428 2010-01-09  Bruno Haible  <bruno@clisp.org>
25429
25430         Tests for module 'getlogin'.
25431         * modules/getlogin-tests: New file.
25432         * tests/test-getlogin.c: New file.
25433
25434         New module 'getlogin'.
25435         * lib/unistd.in.h (getlogin): New declaration.
25436         * lib/getlogin.c: New file.
25437         * m4/getlogin.m4: New file.
25438         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
25439         HAVE_GETLOGIN.
25440         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
25441         HAVE_GETLOGIN.
25442         * modules/getlogin: New file.
25443         * doc/posix-functions/getlogin.texi: Mention the new module.
25444         Reported by John W. Eaton <jwe@gnu.org>.
25445
25446 2010-01-09  Bruno Haible  <bruno@clisp.org>
25447
25448         getlogin_r: Support for native Windows.
25449         * lib/getlogin_r.c: Include <windows.h>
25450         (getlogin_r): Implement for native Windows.
25451         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
25452         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
25453         via John W. Eaton <jwe@gnu.org>.
25454
25455 2010-01-09  Bruno Haible  <bruno@clisp.org>
25456
25457         getlogin_r: Small fixes.
25458         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
25459         succeeds.
25460         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
25461         before testing whether getlogin_r is declared. No need to set
25462         HAVE_DECL_GETLOGIN_R to 1.
25463         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
25464
25465 2010-01-09  Bruno Haible  <bruno@clisp.org>
25466
25467         * lib/unistd.in.h (getlogin_r): Add comment.
25468
25469 2010-01-09  Bruno Haible  <bruno@clisp.org>
25470
25471         Tests for module 'getlogin_r'.
25472         * modules/getlogin_r-tests: New file.
25473         * tests/test-getlogin_r.c: New file.
25474
25475 2010-01-09  Jim Meyering  <meyering@redhat.com>
25476
25477         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
25478         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
25479         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
25480
25481 2010-01-08  Simon Josefsson  <simon@josefsson.org>
25482
25483         * lib/dup2.c (rpl_dup2): Improve comment.
25484
25485 2010-01-08  Eric Blake  <ebb9@byu.net>
25486
25487         maint.mk: allow packages to add makefile @@ exceptions
25488         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
25489         (sc_makefile_check): Rename...
25490         (sc_makefile_at_at_check): ...to this, and use hook.
25491
25492         dup2: work around mingw bug
25493         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
25494         Reported by Simon Josefsson.
25495
25496 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
25497
25498         glob: Fix C++ compilation.
25499         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
25500         C++.
25501
25502 2010-01-07  Bruno Haible  <bruno@clisp.org>
25503
25504         Fix indentation of wctype.in.h, broken since 2007-01-06.
25505         * lib/wctype.in.h: Fix indentation of preprocessor directives.
25506
25507 2010-01-07  Bruno Haible  <bruno@clisp.org>
25508
25509         mbslen: Avoid collision with system function.
25510         * lib/string.in.h [MirBSD]: Include <wchar.h>.
25511         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
25512         * m4/mbslen.m4: New file.
25513         * modules/mbslen (Files): Add it.
25514         (configure.ac): Invoke gl_MBSLEN.
25515         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
25516         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
25517         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
25518         via Ian Beckwith <ianb@erislabs.net>.
25519
25520 2010-01-07  Bruno Haible  <bruno@clisp.org>
25521
25522         dirent: Document the last fix.
25523         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
25524
25525 2010-01-07  Bruno Haible  <bruno@clisp.org>
25526
25527         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
25528         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
25529         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
25530         va_list are defined.
25531         * doc/posix-headers/stdio.texi: Document the bug of missing types.
25532         Reported by Eric Blake.
25533
25534 2010-01-07  Bruno Haible  <bruno@clisp.org>
25535
25536         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
25537         * modules/xlist (Depends-on): Add 'list',
25538         * modules/xoset (Depends-on): Add 'oset'.
25539         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25540
25541 2010-01-07  Bruno Haible  <bruno@clisp.org>
25542
25543         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
25544         * doc/posix-functions/strncasecmp.texi: Likewise.
25545
25546 2010-01-07  Bruno Haible  <bruno@clisp.org>
25547
25548         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
25549
25550 2010-01-07  John W. Eaton  <jwe@octave.org>
25551
25552         wctype: allow C++ use
25553         * lib/wctype.in.h: Add extern "C" block for C++.
25554
25555 2010-01-06  Eric Blake  <ebb9@byu.net>
25556
25557         maint.mk: detect incorrect GFDL usage
25558         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
25559
25560 2010-01-06  Jim Meyering  <meyering@redhat.com>
25561         and Eric Blake  <ebb9@byu.net>
25562
25563         maint.mk: ignore multi-line copyright in NEWS
25564         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
25565
25566 2010-01-06  Eric Blake  <ebb9@byu.net>
25567
25568         select: add missing dependency
25569         * modules/select-tests (Depends-on): Move sockets dependency...
25570         * modules/select (Depends-on): ...here.
25571         Reported by Ian Beckwith.
25572
25573         doc: regenerate INSTALL
25574         * doc/INSTALL: Reflect recent autoconf update.
25575         * doc/INSTALL.ISO: Likewise.
25576         * doc/INSTALL.UTF-8: Likewise.
25577
25578         pread: fix compilation on glibc
25579         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
25580         Reported by Ralf Wildenhues.
25581
25582         dirent: fix test failure
25583         * lib/dirent.in.h (includes): Guarantee ino_t.
25584         Reported by Ralf Wildenhues.
25585
25586 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
25587
25588         linkat, renameat: avoid bad free
25589         * lib/at-func2.c (at_func2): Fix typo.
25590         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
25591
25592 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25593
25594         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
25595         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
25596         to avoid failure of symlink test later.
25597
25598 2010-01-06  Eric Blake  <ebb9@byu.net>
25599
25600         stdio, unistd: guarantee ssize_t
25601         * lib/unistd.in.h (includes): Ensure that types required by POSIX
25602         2008 are exposed when needed.
25603         * lib/stdio.in.h (includes): Likewise.
25604         Reported by Ralf Wildenhues.
25605
25606 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
25607
25608         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
25609         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
25610         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
25611
25612 2010-01-06  Jim Meyering  <meyering@redhat.com>
25613
25614         readtokens: this module *does* require xalloc.h
25615         It uses only functions that were omitted by the old syntax-check rule.
25616         * lib/readtokens.c: Include "xalloc.h" once again.
25617         * modules/readtokens (Depends-on): Add xalloc.
25618         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
25619
25620 2010-01-05  Eric Blake  <ebb9@byu.net>
25621
25622         maint: support 'make announcement' from a VPATH build
25623         * top/maint.mk (announcement): Look for correct NEWS file.
25624
25625 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
25626
25627         utimens (fdutimens): ignore a negative FD, per contract
25628         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
25629         when we have a valid file descriptor.  Otherwise, using a brand
25630         new glibc (with just-patched futimens that now fails with EBADF)
25631         would cause this function to fail with ENOSYS.
25632         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
25633         See also http://bugzilla.redhat.com/552320.
25634
25635 2010-01-05  Eric Blake  <ebb9@byu.net>
25636
25637         strcase: document what it provides
25638         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
25639         gnulib module.
25640         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
25641         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
25642
25643 2010-01-05  Jim Meyering  <meyering@redhat.com>
25644
25645         maint: remove useless inclusions of "xalloc.h"
25646         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
25647         * lib/readtokens.c: Likewise.
25648         * lib/same.c: Likewise.
25649         * modules/getloadavg (Depends-on): Remove xalloc.
25650         * modules/readtokens: Likewise.
25651         * modules/same: Likewise.
25652
25653         maint.mk: include 4 more function names in alloca.h-checking regexp
25654         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
25655         regexp.  Before, we would give a false-positive (saying alloca.h
25656         is included unnecessarily) when the only uses involved omitted symbols.
25657
25658         xalloc.h: use consistent formatting
25659         * lib/xalloc.h: Move declarations to start in the first column.
25660
25661 2010-01-05  Eric Blake  <ebb9@byu.net>
25662
25663         mkdir: avoid xalloc
25664         * lib/mkdir.c (includes): Drop unused header.
25665         Reported by John W. Eaton.
25666
25667 2010-01-04  Jim Meyering  <meyering@redhat.com>
25668
25669         nl_langinfo: avoid configure-time syntax error
25670         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
25671         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
25672         the empty string.  Don't let that provoke a shell syntax error.
25673
25674         regcomp, regexec, fnmatch: avoid array bounds read error
25675         * lib/regcomp.c (build_equiv_class): From glibc:
25676         Use only the low 24 bits of a findidx return value as an index
25677         into the weights array.  Patch by Ulrich Drepper:
25678         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
25679         * lib/regexec.c (check_node_accept_bytes): Likewise.
25680         * lib/fnmatch_loop.c (FCT): Likewise.
25681
25682         regcomp: skip collseq lookup when there are no rules
25683         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
25684         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
25685
25686         regcomp: recognize ill-formed { } expressions
25687         * lib/regcomp.c (parse_dup_op): From glibc:
25688         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
25689
25690         regcomp: fix typo in comment
25691         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
25692         s/satisfy/satisfies/.
25693
25694         regcomp: sync from glibc: remove dead store
25695         * lib/regcomp.c (duplicate_node_closure): Remove useless
25696         search_duplicated_node call and dead store.
25697
25698         regcomp: sync from glibc; always use nl_langinfo
25699         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
25700         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
25701         * modules/regex (Depends-on): Add nl_langinfo.
25702
25703 2010-01-04  Eric Blake  <ebb9@byu.net>
25704
25705         fdopendir: fix configure test
25706         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
25707
25708 2010-01-01  Bruno Haible  <bruno@clisp.org>
25709
25710         wchar: Remove unused configure check.
25711         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
25712
25713 2010-01-01  Eric Blake  <ebb9@byu.net>
25714
25715         headers: make check of system header explicit
25716         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
25717         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
25718         ourselves.
25719         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25720         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25721         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
25722         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
25723         internals.
25724         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
25725         missing.
25726         Suggested by Bruno Haible.
25727
25728 2010-01-01  Jim Meyering  <meyering@redhat.com>
25729
25730         ChangeLog: tweak to eliminate unnecessary copyright line
25731         * ChangeLog: Remove a copyright line that was mistakenly updated
25732         by today's update-copyright run.  Reported by Eric Blake.
25733
25734         test-update-copyright: don't let envvar setting cause test failure
25735         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
25736
25737 2010-01-01  Bruno Haible  <bruno@clisp.org>
25738
25739         localename: Avoid gcc warning.
25740         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
25741         function if it is not used.
25742
25743 2010-01-01  Jim Meyering  <meyering@redhat.com>
25744
25745         update nearly all FSF copyright year lists to include 2010
25746         Use the same procedure as for 2009, outlined in
25747         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
25748
25749         version-etc: set COPYRIGHT_YEAR to 2010
25750         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
25751
25752 2009-12-31  Eric Blake  <ebb9@byu.net>
25753
25754         doc: correct availability of cygwin 1.5.x getopt
25755         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
25756         variables.
25757         * doc/posix-functions/opterr.texi (opterr): Likewise.
25758         * doc/posix-functions/optind.texi (optind): Likewise.
25759         * doc/posix-functions/optopt.texi (optopt): Likewise.
25760         * doc/posix-functions/tzname.texi (tzname): Likewise.
25761
25762         openat: update maintainer
25763         * modules/openat (Maintainer): Add myself.
25764
25765         utimens: avoid shadowing warning
25766         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
25767         buffers into one, to avoid shadowing, as well as avoiding a
25768         redundant stat.
25769         Reported by Jim Meyering.
25770
25771         test-dup2: avoid compiler warning
25772         * tests/test-dup2.c (is_inheritable): Only define if used.
25773
25774 2010-01-01  Bruno Haible  <bruno@clisp.org>
25775
25776         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
25777         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
25778         defined, use wctomb instead of wcrtomb.
25779
25780 2010-01-01  Bruno Haible  <bruno@clisp.org>
25781
25782         iconv: Reject native Solaris iconv.
25783         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
25784         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
25785
25786 2009-12-31  Bruno Haible  <bruno@clisp.org>
25787
25788         * tests/test-signal.c (main): Remove test of 'SIG'.
25789
25790 2009-12-31  Bruno Haible  <bruno@clisp.org>
25791
25792         spawn: Fix incomplete fix.
25793         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25794         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25795         warnings for GNULIB_POSIXCHECK again.
25796         Reported by Eric Blake.
25797
25798 2009-12-31  Bruno Haible  <bruno@clisp.org>
25799
25800         Avoid namespace pollution on glibc systems.
25801         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
25802         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
25803         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
25804         glibc systems.
25805
25806 2009-12-31  Bruno Haible  <bruno@clisp.org>
25807
25808         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
25809         (gl_REPLACE_WCHAR_H): Turn into a no-op.
25810         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
25811         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
25812         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
25813         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
25814         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
25815
25816 2009-12-31  Bruno Haible  <bruno@clisp.org>
25817
25818         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
25819         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
25820         afterwards.
25821
25822 2009-12-31  Bruno Haible  <bruno@clisp.org>
25823
25824         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
25825         SYS_UTSNAME_H.
25826
25827 2009-12-31  Bruno Haible  <bruno@clisp.org>
25828
25829         spawn: Fix misapplied patch.
25830         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25831         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25832         warnings for GNULIB_POSIXCHECK.
25833
25834 2009-12-31  Bruno Haible  <bruno@clisp.org>
25835
25836         times: Update after sys_times changed.
25837         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
25838         * modules/times (Files): Add it.
25839         (configure.ac): Invoke gl_FUNC_TIMES.
25840
25841 2009-12-31  Bruno Haible  <bruno@clisp.org>
25842
25843         Use AC_C_INLINE where necessary.
25844         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
25845         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
25846         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
25847         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
25848         * m4/mbfile.m4 (gl_MBFILE): Likewise.
25849         * m4/mbiter.m4 (gl_MBITER): Likewise.
25850         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
25851         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25852         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
25853         * modules/u64 (configure.ac): Likewise.
25854
25855 2009-12-31  Bruno Haible  <bruno@clisp.org>
25856
25857         Use AC_C_INLINE instead of module 'inline' where possible.
25858         * modules/inline (Description): Clarify purpose.
25859         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
25860         * modules/count-one-bits (Depends-on): Remove inline.
25861         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
25862         * modules/openat (Depends-on): Remove inline.
25863         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
25864         instead of depending on module 'inline'.
25865         * modules/filevercmp (Depends-on, configure.ac): Likewise.
25866         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
25867         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
25868         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
25869         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
25870         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
25871         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
25872         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
25873         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
25874         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
25875         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
25876         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
25877         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
25878         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
25879         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
25880         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
25881         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
25882         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
25883         Likewise.
25884         * modules/unictype/property-ascii-hex-digit (Depends-on,
25885         configure.ac): Likewise.
25886         * modules/unictype/property-bidi-arabic-digit (Depends-on,
25887         configure.ac): Likewise.
25888         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
25889         configure.ac): Likewise.
25890         * modules/unictype/property-bidi-block-separator (Depends-on,
25891         configure.ac): Likewise.
25892         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
25893         configure.ac): Likewise.
25894         * modules/unictype/property-bidi-common-separator (Depends-on,
25895         configure.ac): Likewise.
25896         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
25897         Likewise.
25898         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
25899         configure.ac): Likewise.
25900         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
25901         configure.ac): Likewise.
25902         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
25903         configure.ac): Likewise.
25904         * modules/unictype/property-bidi-european-digit (Depends-on,
25905         configure.ac): Likewise.
25906         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
25907         configure.ac): Likewise.
25908         * modules/unictype/property-bidi-left-to-right (Depends-on,
25909         configure.ac): Likewise.
25910         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
25911         configure.ac): Likewise.
25912         * modules/unictype/property-bidi-other-neutral (Depends-on,
25913         configure.ac): Likewise.
25914         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
25915         Likewise.
25916         * modules/unictype/property-bidi-segment-separator (Depends-on,
25917         configure.ac): Likewise.
25918         * modules/unictype/property-bidi-whitespace (Depends-on,
25919         configure.ac): Likewise.
25920         * modules/unictype/property-combining (Depends-on, configure.ac):
25921         Likewise.
25922         * modules/unictype/property-composite (Depends-on, configure.ac):
25923         Likewise.
25924         * modules/unictype/property-currency-symbol (Depends-on,
25925         configure.ac): Likewise.
25926         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
25927         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
25928         Likewise.
25929         * modules/unictype/property-default-ignorable-code-point (Depends-on,
25930         configure.ac): Likewise.
25931         * modules/unictype/property-deprecated (Depends-on, configure.ac):
25932         Likewise.
25933         * modules/unictype/property-diacritic (Depends-on, configure.ac):
25934         Likewise.
25935         * modules/unictype/property-extender (Depends-on, configure.ac):
25936         Likewise.
25937         * modules/unictype/property-format-control (Depends-on, configure.ac):
25938         Likewise.
25939         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
25940         Likewise.
25941         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
25942         Likewise.
25943         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
25944         Likewise.
25945         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
25946         Likewise.
25947         * modules/unictype/property-hyphen (Depends-on, configure.ac):
25948         Likewise.
25949         * modules/unictype/property-id-continue (Depends-on, configure.ac):
25950         Likewise.
25951         * modules/unictype/property-id-start (Depends-on, configure.ac):
25952         Likewise.
25953         * modules/unictype/property-ideographic (Depends-on, configure.ac):
25954         Likewise.
25955         * modules/unictype/property-ids-binary-operator (Depends-on,
25956         configure.ac): Likewise.
25957         * modules/unictype/property-ids-trinary-operator (Depends-on,
25958         configure.ac): Likewise.
25959         * modules/unictype/property-ignorable-control (Depends-on,
25960         configure.ac): Likewise.
25961         * modules/unictype/property-iso-control (Depends-on, configure.ac):
25962         Likewise.
25963         * modules/unictype/property-join-control (Depends-on, configure.ac):
25964         Likewise.
25965         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
25966         Likewise.
25967         * modules/unictype/property-line-separator (Depends-on, configure.ac):
25968         Likewise.
25969         * modules/unictype/property-logical-order-exception (Depends-on,
25970         configure.ac): Likewise.
25971         * modules/unictype/property-lowercase (Depends-on, configure.ac):
25972         Likewise.
25973         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
25974         * modules/unictype/property-non-break (Depends-on, configure.ac):
25975         Likewise.
25976         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
25977         Likewise.
25978         * modules/unictype/property-numeric (Depends-on, configure.ac):
25979         Likewise.
25980         * modules/unictype/property-other-alphabetic (Depends-on,
25981         configure.ac): Likewise.
25982         * modules/unictype/property-other-default-ignorable-code-point
25983         (Depends-on, configure.ac): Likewise.
25984         * modules/unictype/property-other-grapheme-extend (Depends-on,
25985         configure.ac): Likewise.
25986         * modules/unictype/property-other-id-continue (Depends-on,
25987         configure.ac): Likewise.
25988         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
25989         Likewise.
25990         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
25991         Likewise.
25992         * modules/unictype/property-other-math (Depends-on, configure.ac):
25993         Likewise.
25994         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
25995         Likewise.
25996         * modules/unictype/property-paired-punctuation (Depends-on,
25997         configure.ac): Likewise.
25998         * modules/unictype/property-paragraph-separator (Depends-on,
25999         configure.ac): Likewise.
26000         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
26001         Likewise.
26002         * modules/unictype/property-pattern-white-space (Depends-on,
26003         configure.ac): Likewise.
26004         * modules/unictype/property-private-use (Depends-on, configure.ac):
26005         Likewise.
26006         * modules/unictype/property-punctuation (Depends-on, configure.ac):
26007         Likewise.
26008         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
26009         Likewise.
26010         * modules/unictype/property-radical (Depends-on, configure.ac):
26011         Likewise.
26012         * modules/unictype/property-sentence-terminal (Depends-on,
26013         configure.ac): Likewise.
26014         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
26015         Likewise.
26016         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
26017         * modules/unictype/property-terminal-punctuation (Depends-on,
26018         configure.ac): Likewise.
26019         * modules/unictype/property-titlecase (Depends-on, configure.ac):
26020         Likewise.
26021         * modules/unictype/property-unassigned-code-value (Depends-on,
26022         configure.ac): Likewise.
26023         * modules/unictype/property-unified-ideograph (Depends-on,
26024         configure.ac): Likewise.
26025         * modules/unictype/property-uppercase (Depends-on, configure.ac):
26026         Likewise.
26027         * modules/unictype/property-variation-selector (Depends-on,
26028         configure.ac): Likewise.
26029         * modules/unictype/property-white-space (Depends-on, configure.ac):
26030         Likewise.
26031         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
26032         Likewise.
26033         * modules/unictype/property-xid-start (Depends-on, configure.ac):
26034         Likewise.
26035         * modules/unictype/property-zero-width (Depends-on, configure.ac):
26036         Likewise.
26037         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
26038         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
26039         Likewise.
26040
26041 2009-12-31  Bruno Haible  <bruno@clisp.org>
26042
26043         Remove unnecessary AC_C_INLINE invocation.
26044         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
26045         since 2009-08-21.
26046
26047 2009-12-31  Jim Meyering  <meyering@redhat.com>
26048
26049         maint.mk: don't require explicit gpg_key_ID in cfg.mk
26050         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
26051         With this change, we can all remove the gpg_key_ID = ... definition
26052         from our respective cfg.mk files.
26053
26054         maint.mk: create announcement template in ~/, not in /tmp
26055         * top/maint.mk (emit_upload_commands): Adjust.
26056         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
26057         Remove temporary file, .ci-msg.
26058
26059 2009-12-31  Eric Blake  <ebb9@byu.net>
26060
26061         link-warning: always build headers with link warnings
26062         * modules/arpa_inet (Makefile.am): Always build replacement
26063         header.
26064         * modules/ctype (Makefile.am): Likewise.
26065         * modules/dirent (Makefile.am): Likewise.
26066         * modules/inttypes (Makefile.am): Likewise.
26067         * modules/langinfo (Makefile.am): Likewise.
26068         * modules/locale (Makefile.am): Likewise.
26069         * modules/spawn (Makefile.am): Likewise.
26070         * modules/sys_file (Makefile.am): Likewise.
26071         * modules/sys_ioctl (Makefile.am): Likewise.
26072         * modules/sys_select (Makefile.am): Likewise.
26073         * modules/sys_socket (Makefile.am): Likewise.
26074         * modules/sys_times (Makefile.am): Likewise.
26075         * modules/sys_utsname (Makefile.am): Likewise.
26076         * modules/sys_wait (Makefile.am): Likewise.
26077         * modules/wchar (Makefile.am): Likewise.
26078         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
26079         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
26080         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
26081         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
26082         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
26083         Likewise.
26084         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
26085         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
26086         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
26087         Likewise.
26088         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
26089         Likewise.
26090         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
26091         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
26092         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
26093         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26094         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26095         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
26096         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
26097         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
26098         (gl_WCHAR_H_DEFAULTS): Likewise.
26099
26100 2009-12-31  Eric Blake  <ebb9@byu.net>
26101
26102         signal, spawn: use link warnings
26103         * lib/signal.in.h (sigset_t): Make unconditional.
26104         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
26105         (sigpending, sigprocmask, sigaction): Add link warnings.
26106         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
26107         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
26108         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
26109         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
26110         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
26111         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
26112         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
26113         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
26114         (posix_spawn_file_actions_destroy)
26115         (posix_spawn_file_actions_addopen)
26116         (posix_spawn_file_actions_addclose)
26117         (posix_spawn_file_actions_adddup2): Likewise.
26118         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
26119         * tests/test-signal.c (main): Enhance test.
26120
26121         spawn: improve wrapper support
26122         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
26123         (gl_SPAWN_H_DEFAULTS): New defaults.
26124         * modules/spawn (Makefile.am): Substitute them.
26125         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
26126         Only declare if missing or broken.
26127
26128         sys_times, sys_utsname: use include_next
26129         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
26130         header.
26131         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
26132         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
26133         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
26134         * modules/sys_times (Depends-on): Add include_next.
26135         (Makefile.am): Substitute additional values.
26136         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
26137         * lib/sys_times.in.h (includes): Include native header, if
26138         available.
26139         * lib/sys_utsname.in.h (includes): Likewise.
26140         * tests/test-sys_times.c (main): Enhance test.
26141
26142         fdutimensat: revert prior patch
26143         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
26144         utimens.h.
26145         Reported by Bruno Haible.
26146
26147 2009-12-30  Eric Blake  <ebb9@byu.net>
26148
26149         sys_wait: drop link-warning dependency
26150         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
26151         link-warning efforts.
26152         * lib/sys_wait.in.h: Likewise.
26153
26154         fdutimensat: remove bogus dependency
26155         * modules/fdutimensat (Depends-on): Drop inline.
26156
26157         unistd: fix typo
26158         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
26159
26160 2009-12-30  Bruno Haible  <bruno@clisp.org>
26161
26162         Fix compilation error with Solaris cc.
26163         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
26164         * lib/unicase/u16-is-invariant.c: Likewise.
26165         * lib/unicase/u32-is-invariant.c: Likewise.
26166         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
26167
26168 2009-12-30  Bruno Haible  <bruno@clisp.org>
26169
26170         Fix test crash.
26171         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
26172         locales.
26173         Reported by Simon Josefsson <simon@josefsson.org>.
26174
26175 2009-12-30  Bruno Haible  <bruno@clisp.org>
26176
26177         Fix compilation error on most platforms.
26178         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
26179         Reported by Simon Josefsson <simon@josefsson.org>
26180         and Nelson H. F. Beebe <beebe@math.utah.edu>.
26181
26182 2009-12-30  Eric Blake  <ebb9@byu.net>
26183
26184         futimens, utimensat: work around ntfs-3g bug
26185         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
26186         a ctime bug is present, and expand workaround to cover ntfs-3g.
26187         * lib/utimens.c (fdutimens, lutimens): Likewise.
26188         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
26189         (validate_timespec): Adjust return value.
26190         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
26191         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26192         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
26193
26194 2009-12-29  Eric Blake  <ebb9@byu.net>
26195
26196         link-warning: make usage consistent
26197         * modules/ctype (Depends-on): Add link-warning.
26198         (Makefile.am): Update rules accordingly.
26199         * modules/langinfo (Depends-on, Makefile.am): Likewise.
26200         * modules/locale (Depends-on, Makefile.am): Likewise.
26201         * modules/sys_file (Makefile.am): Likewise.
26202         * modules/getopt-posix (Makefile.am): Delete unused link warning
26203         efforts.
26204         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
26205         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
26206         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
26207         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
26208
26209         stdio: remove unused variables
26210         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
26211         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
26212         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
26213
26214         tests: test more substitute headers
26215         * modules/ctype-tests: New file.
26216         * modules/dirent-tests: Likewise.
26217         * modules/spawn-tests: Likewise.
26218         * modules/sys_file-tests: Likewise.
26219         * modules/sys_ioctl-tests: Likewise.
26220         * modules/sys_wait-tests: Likewise.
26221         * tests/test-ctype.c: Likewise.
26222         * tests/test-dirent.c: Likewise.
26223         * tests/test-spawn.c: Likewise.
26224         * tests/test-sys_file.c: Likewise.
26225         * tests/test-sys_ioctl.c: Likewise.
26226         * tests/test-sys_wait.c: Likewise.
26227         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
26228         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
26229         whether or not flock is in use.
26230
26231         tests: remove License section from module
26232         * modules/arpa_inet-tests: Remove unneeded section.
26233         * modules/byteswap-tests: Likewise.
26234         * modules/ceilf-tests: Likewise.
26235         * modules/ceill-tests: Likewise.
26236         * modules/crypto/des-tests: Likewise.
26237         * modules/crypto/gc-arcfour-tests: Likewise.
26238         * modules/crypto/gc-arctwo-tests: Likewise.
26239         * modules/crypto/gc-des-tests: Likewise.
26240         * modules/crypto/gc-hmac-md5-tests: Likewise.
26241         * modules/crypto/gc-hmac-sha1-tests: Likewise.
26242         * modules/crypto/gc-md2-tests: Likewise.
26243         * modules/crypto/gc-md4-tests: Likewise.
26244         * modules/crypto/gc-md5-tests: Likewise.
26245         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
26246         * modules/crypto/gc-rijndael-tests: Likewise.
26247         * modules/crypto/gc-sha1-tests: Likewise.
26248         * modules/crypto/gc-tests: Likewise.
26249         * modules/crypto/md2-tests: Likewise.
26250         * modules/crypto/md4-tests: Likewise.
26251         * modules/fcntl-h-tests: Likewise.
26252         * modules/floorf-tests: Likewise.
26253         * modules/floorl-tests: Likewise.
26254         * modules/frexp-nolibm-tests: Likewise.
26255         * modules/frexp-tests: Likewise.
26256         * modules/frexpl-nolibm-tests: Likewise.
26257         * modules/frexpl-tests: Likewise.
26258         * modules/getaddrinfo-tests: Likewise.
26259         * modules/inttypes-tests: Likewise.
26260         * modules/isfinite-tests: Likewise.
26261         * modules/isinf-tests: Likewise.
26262         * modules/ldexpl-tests: Likewise.
26263         * modules/locale-tests: Likewise.
26264         * modules/math-tests: Likewise.
26265         * modules/netdb-tests: Likewise.
26266         * modules/netinet_in-tests: Likewise.
26267         * modules/printf-frexp-tests: Likewise.
26268         * modules/printf-frexpl-tests: Likewise.
26269         * modules/priv-set-tests: Likewise.
26270         * modules/random_r-tests: Likewise.
26271         * modules/round-tests: Likewise.
26272         * modules/roundf-tests: Likewise.
26273         * modules/roundl-tests: Likewise.
26274         * modules/search-tests: Likewise.
26275         * modules/select-tests: Likewise.
26276         * modules/signal-tests: Likewise.
26277         * modules/stdbool-tests: Likewise.
26278         * modules/stddef-tests: Likewise.
26279         * modules/stdint-tests: Likewise.
26280         * modules/stdio-tests: Likewise.
26281         * modules/stdlib-tests: Likewise.
26282         * modules/string-tests: Likewise.
26283         * modules/strings-tests: Likewise.
26284         * modules/sys_select-tests: Likewise.
26285         * modules/sys_socket-tests: Likewise.
26286         * modules/sys_stat-tests: Likewise.
26287         * modules/sys_time-tests: Likewise.
26288         * modules/sys_utsname-tests: Likewise.
26289         * modules/sysexits-tests: Likewise.
26290         * modules/time-tests: Likewise.
26291         * modules/trunc-tests: Likewise.
26292         * modules/truncf-tests: Likewise.
26293         * modules/truncl-tests: Likewise.
26294         * modules/tsearch-tests: Likewise.
26295         * modules/unistd-tests: Likewise.
26296         * modules/wchar-tests: Likewise.
26297         * modules/wctype-tests: Likewise.
26298
26299         tests: fix license on several tests
26300         * tests/test-des.c: Update to GPLv3+.
26301         * tests/test-flock.c: Likewise.
26302         * tests/test-fsync.c: Likewise.
26303         * tests/test-futimens.h: Likewise.
26304         * tests/test-gc-arcfour.c: Likewise.
26305         * tests/test-gc-arctwo.c: Likewise.
26306         * tests/test-gc-des.c: Likewise.
26307         * tests/test-gc-hmac-md5.c: Likewise.
26308         * tests/test-gc-hmac-sha1.c: Likewise.
26309         * tests/test-gc-md2.c: Likewise.
26310         * tests/test-gc-md4.c: Likewise.
26311         * tests/test-gc-md5.c: Likewise.
26312         * tests/test-gc-pbkdf2-sha1.c: Likewise.
26313         * tests/test-gc-rijndael.c: Likewise.
26314         * tests/test-gc-sha1.c: Likewise.
26315         * tests/test-gc.c: Likewise.
26316         * tests/test-getcwd.c: Likewise.
26317         * tests/test-link.c: Likewise.
26318         * tests/test-link.h: Likewise.
26319         * tests/test-lutimens.h: Likewise.
26320         * tests/test-md2.c: Likewise.
26321         * tests/test-md4.c: Likewise.
26322         * tests/test-mkdir.h: Likewise.
26323         * tests/test-rename.c: Likewise.
26324         * tests/test-rename.h: Likewise.
26325         * tests/test-safe-alloc.c: Likewise.
26326         * tests/test-utimens-common.h: Likewise.
26327         * tests/test-utimens.h: Likewise.
26328
26329         maint: sync license texts
26330         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
26331         * doc/gpl-3.0.texi: Revert copyright year update.
26332         * doc/lgpl-3.0.texi: Likewise.
26333
26334 2009-12-29  Jim Meyering  <meyering@redhat.com>
26335
26336         update nearly all FSF copyright year lists to include 2009
26337         The files named by the following are exempted:
26338             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
26339               test -f "$dst" && { echo "$dst"; continue; }
26340               test -d "$dst" || continue
26341               echo "$dst"/$(basename "$src")
26342             done > exempt
26343             git ls-files tests/unictype >> exempt
26344         In the remaining files, convert to all-interval notation if
26345         - there is already at least one year interval like 2000-2003
26346         - the file is maintained by me
26347         - the file is in lib/uni*/, where that style already prevails
26348         Otherwise, use update-copyright's default.
26349
26350 2009-12-29  Simon Josefsson  <simon@josefsson.org>
26351         and Eric Blake  <ebb9@byu.net>
26352
26353         tests: don't require debug system() to pass
26354         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
26355         * tests/test-rmdir.h (test_rmdir_func): Likewise.
26356         * tests/test-unlink.h (test_unlink_func): Likewise.
26357         * tests/test-fstatat.c (main): ...into callers.
26358         * tests/test-lstat.c (main): Likewise.
26359         * tests/test-rmdir.c (main): Likewise.
26360         * tests/test-unlink.c (main): Likewise.
26361         * tests/test-unlinkat.c (main): Likewise.
26362         * tests/test-areadlink-with-size.c (main): Don't require a
26363         debug-only system call to pass, aiding cross-testing to mingw.
26364         * tests/test-areadlink.c (main): Likewise.
26365         * tests/test-areadlinkat-with-size.c (main): Likewise.
26366         * tests/test-areadlinkat.c (main): Likewise.
26367         * tests/test-canonicalize-lgpl.c (main): Likewise.
26368         * tests/test-canonicalize.c (main): Likewise.
26369         * tests/test-chown.c (main): Likewise.
26370         * tests/test-fchownat.c (main): Likewise.
26371         * tests/test-lchown.c (main): Likewise.
26372         * tests/test-fdutimensat.c (main): Likewise.
26373         * tests/test-futimens.c (main): Likewise.
26374         * tests/test-link.c (main): Likewise.
26375         * tests/test-linkat.c (main): Likewise.
26376         * tests/test-mkdir.c (main): Likewise.
26377         * tests/test-mkdirat.c (main): Likewise.
26378         * tests/test-mkfifo.c (main): Likewise.
26379         * tests/test-mkfifoat.c (main): Likewise.
26380         * tests/test-mknod.c (main): Likewise.
26381         * tests/test-readlink.c (main): Likewise.
26382         * tests/test-remove.c (main): Likewise.
26383         * tests/test-rename.c (main): Likewise.
26384         * tests/test-renameat.c (main): Likewise.
26385         * tests/test-symlink.c (main): Likewise.
26386         * tests/test-symlinkat.c (main): Likewise.
26387         * tests/test-utimens.c (main): Likewise.
26388         * tests/test-utimensat.c (main): Likewise.
26389
26390 2009-12-29  Simon Josefsson  <simon@josefsson.org>
26391
26392         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
26393         on $(UNUSED_PARAMETER_H) to avoid build failure.
26394
26395 2009-12-28  Jim Meyering  <meyering@redhat.com>
26396
26397         update-copyright: you may specify a max. line length other than 72
26398         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
26399
26400         maint: use consistent FSF copyright line syntax
26401         * lib/posixtm.c: Add missing comma in FSF copyright line.
26402         * lib/posixtm.h: Likewise.
26403         * lib/getugroups.c: Add missing ", Inc.".
26404
26405         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
26406         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
26407         FSF copyright line.  Remove trailing blanks.
26408
26409 2009-12-28  Eric Blake  <ebb9@byu.net>
26410
26411         test-dup2: reduce dependencies
26412         * modules/cloexec (Configure.ac): Set witness.
26413         * modules/dup2-tests (Depends-on): Drop cloexec.
26414         * tests/test-dup2.c (main): Skip portion of test if cloexec module
26415         not present.
26416         Suggested by Bruno Haible.
26417
26418 2009-12-26  Bruno Haible  <bruno@clisp.org>
26419
26420         Remove an unneeded dependency.
26421         * modules/fseterr (Depends-on): Remove dup2.
26422
26423 2009-12-26  Eric Blake  <ebb9@byu.net>
26424
26425         tests: use macros.h in more places
26426         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
26427         (ASSERT_STREAM): Provide default of stderr.
26428         * tests/test-dirent-safer.c: Include macros.h, using alternate
26429         stream for assertions.
26430         * tests/test-dup-safer.c: Likewise.
26431         * tests/test-freopen-safer.c: Likewise.
26432         * tests/test-getopt.c: Likewise.
26433         * tests/test-openat-safer.c: Likewise.
26434         * tests/test-pipe.c: Likewise.
26435         * tests/test-popen-safer.c: Likewise.
26436         * modules/dirent-safer-tests (Files): Include macros.h.
26437         * modules/unistd-safer-tests (Files): Likewise.
26438         * modules/freopen-safer-tests (Files): Likewise.
26439         * modules/getopt-posix-tests (Files): Likewise.
26440         * modules/openat-safer-tests (Files): Likewise.
26441         * modules/pipe-tests (Files): Likewise.
26442
26443 2009-12-26  Bruno Haible  <bruno@clisp.org>
26444
26445         javacomp: Portability fix.
26446         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
26447         that it also works on Solaris.
26448
26449 2009-12-26  Bruno Haible  <bruno@clisp.org>
26450
26451         localename: Fix storage allocation of gl_locale_name_thread's result.
26452         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
26453         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
26454         all platforms that have 'uselocale'.
26455         (gl_locale_name_thread_unsafe): New function, extracted from
26456         gl_locale_name_thread.
26457         (gl_locale_name_thread): Call struniq on all platforms that have
26458         'uselocale'.
26459         * tests/test-localename.c (test_locale_name_thread): Check that the
26460         resulting strings are permanently allocated.
26461         * modules/localename-tests (Depends-on): Add strdup.
26462
26463 2009-12-26  Bruno Haible  <bruno@clisp.org>
26464
26465         * tests/test-localename.c (categories): Fill in the strings.
26466
26467 2009-12-26  Jim Meyering  <meyering@redhat.com>
26468
26469         isdir: complete the removal of m4/isdir.m4
26470         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
26471
26472         isdir: clean up, since at least grep still uses it
26473         * lib/isdir.c: Include "isdir.h".
26474         (S_ISDIR): Remove now-unneeded definition.
26475         * modules/isdir (Files): Add lib/isdir.h.
26476         * lib/isdir.h: New file, with declaration.
26477         * m4/isdir.m4: Remove file -- unneeded.
26478
26479 2009-12-25  Bruno Haible  <bruno@clisp.org>
26480
26481         selinux-h: Make generated .h files standalone.
26482         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
26483         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
26484         * lib/se-selinux.in.h: Likewise.
26485         * modules/selinux-h (Depends-on): Add unused-parameter.
26486         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
26487         selinux/selinux.h and selinux/context.h.
26488         Suggested by Eric Blake.
26489
26490 2009-12-25  Bruno Haible  <bruno@clisp.org>
26491
26492         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
26493         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
26494         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
26495         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
26496         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
26497
26498 2009-12-24  Bruno Haible  <bruno@clisp.org>
26499
26500         openat: Fix warning.
26501         * lib/openat-proc.c: Include <unistd.h>.
26502
26503 2009-12-24  Bruno Haible  <bruno@clisp.org>
26504
26505         New module 'unused-parameter'.
26506         * build-aux/unused-parameter.h: New file, extracted from earlier
26507         gnulib-common.m4.
26508         * modules/unused-parameter: New file.
26509         * lib/unistr.h: Include unused-parameter.h.
26510         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
26511         _GL_UNUSED.
26512         * modules/unistr/base (Depends-on): Add unused-parameter.
26513
26514 2009-12-24  Bruno Haible  <bruno@clisp.org>
26515
26516         Add missing dependencies to 'extensions' module.
26517         * m4/extensions.m4: Add comment.
26518         * modules/accept4 (Depends-on): Add extensions.
26519         * modules/dup3 (Depends-on): Likewise.
26520         * modules/fcntl (Depends-on): Likewise.
26521         * modules/futimens (Depends-on): Likewise.
26522         * modules/mknod (Depends-on): Likewise.
26523         * modules/pipe2 (Depends-on): Likewise.
26524         * modules/stat-time (Depends-on): Likewise.
26525         * modules/strcasestr-simple (Depends-on): Likewise.
26526         * modules/strsignal (Depends-on): Likewise.
26527         * modules/utimensat (Depends-on): Likewise.
26528         * modules/localcharset (Depends-on): Likewise. Needed because of
26529         gl_FCNTL_O_FLAGS.
26530         * modules/wcrtomb (Depends-on): Likewise. Needed because of
26531         AC_TYPE_MBSTATE_T.
26532         * modules/wcsnrtombs (Depends-on): Likewise.
26533         * modules/wcsrtombs (Depends-on): Likewise.
26534
26535 2009-12-24  Bruno Haible  <bruno@clisp.org>
26536
26537         binary-io: Avoid gcc warning due to SET_BINARY.
26538         * lib/binary-io.h (SET_BINARY): Cast the result to void.
26539         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
26540
26541 2009-12-24  Bruno Haible  <bruno@clisp.org>
26542
26543         Avoid future namespace pollution on glibc systems.
26544         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
26545         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
26546         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
26547         glibc systems.
26548
26549 2009-12-24  Bruno Haible  <bruno@clisp.org>
26550
26551         Refactor common macros used in tests.
26552         * tests/macros.h: New file.
26553         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
26554         and/or <stdlib.h>, if appropriate.
26555         (ASSERT, SIZEOF): Remove macros.
26556         * tests/test-areadlink-with-size.c: Likewise.
26557         * tests/test-areadlinkat.c: Likewise.
26558         * tests/test-areadlinkat-with-size.c: Likewise.
26559         * tests/test-argmatch.c: Likewise.
26560         * tests/test-argv-iter.c: Likewise.
26561         * tests/test-array-mergesort.c: Likewise.
26562         * tests/test-array_list.c: Likewise.
26563         * tests/test-array_oset.c: Likewise.
26564         * tests/test-avltree_list.c: Likewise.
26565         * tests/test-avltree_oset.c: Likewise.
26566         * tests/test-avltreehash_list.c: Likewise.
26567         * tests/test-base64.c: Likewise.
26568         * tests/test-binary-io.c: Likewise.
26569         * tests/test-bitrotate.c: Likewise.
26570         * tests/test-btowc.c: Likewise.
26571         * tests/test-byteswap.c: Likewise.
26572         * tests/test-c-ctype.c: Likewise.
26573         * tests/test-c-stack.c: Likewise.
26574         * tests/test-c-strcasecmp.c: Likewise.
26575         * tests/test-c-strcasestr.c: Likewise.
26576         * tests/test-c-strncasecmp.c: Likewise.
26577         * tests/test-c-strstr.c: Likewise.
26578         * tests/test-canonicalize-lgpl.c: Likewise.
26579         * tests/test-canonicalize.c: Likewise.
26580         * tests/test-carray_list.c: Likewise.
26581         * tests/test-ceilf1.c: Likewise.
26582         * tests/test-ceilf2.c: Likewise.
26583         * tests/test-ceill.c: Likewise.
26584         * tests/test-chown.c: Likewise.
26585         * tests/test-cloexec.c: Likewise.
26586         * tests/test-copy-acl.c: Likewise.
26587         * tests/test-copy-file.c: Likewise.
26588         * tests/test-count-one-bits.c: Likewise.
26589         * tests/test-dprintf-posix.c: Likewise.
26590         * tests/test-dup2.c: Likewise.
26591         * tests/test-dup3.c: Likewise.
26592         * tests/test-duplocale.c: Likewise.
26593         * tests/test-fbufmode.c: Likewise.
26594         * tests/test-fchdir.c: Likewise.
26595         * tests/test-fchownat.c: Likewise.
26596         * tests/test-fcntl-safer.c: Likewise.
26597         * tests/test-fcntl.c: Likewise.
26598         * tests/test-fdopendir.c: Likewise.
26599         * tests/test-fdutimensat.c: Likewise.
26600         * tests/test-fflush2.c: Likewise.
26601         * tests/test-file-has-acl.c: Likewise.
26602         * tests/test-filevercmp.c: Likewise.
26603         * tests/test-flock.c: Likewise.
26604         * tests/test-floorf1.c: Likewise.
26605         * tests/test-floorf2.c: Likewise.
26606         * tests/test-floorl.c: Likewise.
26607         * tests/test-fnmatch.c: Likewise.
26608         * tests/test-fopen.h: Likewise.
26609         * tests/test-fpending.c: Likewise.
26610         * tests/test-fprintf-posix.c: Likewise.
26611         * tests/test-fpurge.c: Likewise.
26612         * tests/test-freadable.c: Likewise.
26613         * tests/test-freadahead.c: Likewise.
26614         * tests/test-freading.c: Likewise.
26615         * tests/test-freadptr.c: Likewise.
26616         * tests/test-freadptr2.c: Likewise.
26617         * tests/test-freadseek.c: Likewise.
26618         * tests/test-freopen.c: Likewise.
26619         * tests/test-frexp.c: Likewise.
26620         * tests/test-frexpl.c: Likewise.
26621         * tests/test-fseek.c: Likewise.
26622         * tests/test-fseeko.c: Likewise.
26623         * tests/test-fstatat.c: Likewise.
26624         * tests/test-fstrcmp.c: Likewise.
26625         * tests/test-fsync.c: Likewise.
26626         * tests/test-ftell.c: Likewise.
26627         * tests/test-ftello.c: Likewise.
26628         * tests/test-func.c: Likewise.
26629         * tests/test-futimens.c: Likewise.
26630         * tests/test-fwritable.c: Likewise.
26631         * tests/test-fwriting.c: Likewise.
26632         * tests/test-getcwd.c: Likewise.
26633         * tests/test-getdate.c: Likewise.
26634         * tests/test-getdelim.c: Likewise.
26635         * tests/test-getdtablesize.c: Likewise.
26636         * tests/test-getgroups.c: Likewise.
26637         * tests/test-getline.c: Likewise.
26638         * tests/test-getndelim2.c: Likewise.
26639         * tests/test-glob.c: Likewise.
26640         * tests/test-hash.c: Likewise.
26641         * tests/test-i-ring.c: Likewise.
26642         * tests/test-iconv-utf.c: Likewise.
26643         * tests/test-iconv.c: Likewise.
26644         * tests/test-idpriv-drop.c: Likewise.
26645         * tests/test-idpriv-droptemp.c: Likewise.
26646         * tests/test-inet_ntop.c: Likewise.
26647         * tests/test-inet_pton.c: Likewise.
26648         * tests/test-isblank.c: Likewise.
26649         * tests/test-isfinite.c: Likewise.
26650         * tests/test-isinf.c: Likewise.
26651         * tests/test-isnan.c: Likewise.
26652         * tests/test-isnand.h: Likewise.
26653         * tests/test-isnanf.h: Likewise.
26654         * tests/test-isnanl.h: Likewise.
26655         * tests/test-lchown.c: Likewise.
26656         * tests/test-ldexpl.c: Likewise.
26657         * tests/test-link.c: Likewise.
26658         * tests/test-linkat.c: Likewise.
26659         * tests/test-linked_list.c: Likewise.
26660         * tests/test-linkedhash_list.c: Likewise.
26661         * tests/test-localename.c: Likewise.
26662         * tests/test-lseek.c: Likewise.
26663         * tests/test-lstat.c: Likewise.
26664         * tests/test-mbmemcasecmp.c: Likewise.
26665         * tests/test-mbmemcasecoll.c: Likewise.
26666         * tests/test-mbrtowc.c: Likewise.
26667         * tests/test-mbscasecmp.c: Likewise.
26668         * tests/test-mbscasestr1.c: Likewise.
26669         * tests/test-mbscasestr2.c: Likewise.
26670         * tests/test-mbscasestr3.c: Likewise.
26671         * tests/test-mbscasestr4.c: Likewise.
26672         * tests/test-mbschr.c: Likewise.
26673         * tests/test-mbscspn.c: Likewise.
26674         * tests/test-mbsinit.c: Likewise.
26675         * tests/test-mbsncasecmp.c: Likewise.
26676         * tests/test-mbsnrtowcs.c: Likewise.
26677         * tests/test-mbspbrk.c: Likewise.
26678         * tests/test-mbspcasecmp.c: Likewise.
26679         * tests/test-mbsrchr.c: Likewise.
26680         * tests/test-mbsrtowcs.c: Likewise.
26681         * tests/test-mbsspn.c: Likewise.
26682         * tests/test-mbsstr1.c: Likewise.
26683         * tests/test-mbsstr2.c: Likewise.
26684         * tests/test-mbsstr3.c: Likewise.
26685         * tests/test-memchr.c: Likewise.
26686         * tests/test-memchr2.c: Likewise.
26687         * tests/test-memcmp.c: Likewise.
26688         * tests/test-memmem.c: Likewise.
26689         * tests/test-memrchr.c: Likewise.
26690         * tests/test-mkdir.c: Likewise.
26691         * tests/test-mkdirat.c: Likewise.
26692         * tests/test-mkfifo.c: Likewise.
26693         * tests/test-mkfifoat.c: Likewise.
26694         * tests/test-mknod.c: Likewise.
26695         * tests/test-nanosleep.c: Likewise.
26696         * tests/test-nl_langinfo.c: Likewise.
26697         * tests/test-obstack-printf.c: Likewise.
26698         * tests/test-open.c: Likewise.
26699         * tests/test-openat.c: Likewise.
26700         * tests/test-pipe-filter-gi1.c: Likewise.
26701         * tests/test-pipe-filter-gi2-main.c: Likewise.
26702         * tests/test-pipe-filter-ii1.c: Likewise.
26703         * tests/test-pipe-filter-ii2-main.c: Likewise.
26704         * tests/test-pipe2.c: Likewise.
26705         * tests/test-popen.h: Likewise.
26706         * tests/test-posixtm.c: Likewise.
26707         * tests/test-pread.c: Likewise.
26708         * tests/test-printf-frexp.c: Likewise.
26709         * tests/test-printf-frexpl.c: Likewise.
26710         * tests/test-printf-posix.c: Likewise.
26711         * tests/test-priv-set.c: Likewise.
26712         * tests/test-quotearg.c: Likewise.
26713         * tests/test-random_r.c: Likewise.
26714         * tests/test-rawmemchr.c: Likewise.
26715         * tests/test-rbtree_list.c: Likewise.
26716         * tests/test-rbtree_oset.c: Likewise.
26717         * tests/test-rbtreehash_list.c: Likewise.
26718         * tests/test-readlink.c: Likewise.
26719         * tests/test-remove.c: Likewise.
26720         * tests/test-rename.c: Likewise.
26721         * tests/test-renameat.c: Likewise.
26722         * tests/test-rmdir.c: Likewise.
26723         * tests/test-round1.c: Likewise.
26724         * tests/test-roundf1.c: Likewise.
26725         * tests/test-roundl.c: Likewise.
26726         * tests/test-safe-alloc.c: Likewise.
26727         * tests/test-sameacls.c: Likewise.
26728         * tests/test-set-mode-acl.c: Likewise.
26729         * tests/test-setenv.c: Likewise.
26730         * tests/test-sigaction.c: Likewise.
26731         * tests/test-signbit.c: Likewise.
26732         * tests/test-sleep.c: Likewise.
26733         * tests/test-snprintf-posix.c: Likewise.
26734         * tests/test-snprintf.c: Likewise.
26735         * tests/test-sprintf-posix.c: Likewise.
26736         * tests/test-stat-time.c: Likewise.
26737         * tests/test-stat.c: Likewise.
26738         * tests/test-strcasestr.c: Likewise.
26739         * tests/test-strchrnul.c: Likewise.
26740         * tests/test-strerror.c: Likewise.
26741         * tests/test-striconv.c: Likewise.
26742         * tests/test-striconveh.c: Likewise.
26743         * tests/test-striconveha.c: Likewise.
26744         * tests/test-strsignal.c: Likewise.
26745         * tests/test-strstr.c: Likewise.
26746         * tests/test-strtod.c: Likewise.
26747         * tests/test-strverscmp.c: Likewise.
26748         * tests/test-symlink.c: Likewise.
26749         * tests/test-symlinkat.c: Likewise.
26750         * tests/test-trunc1.c: Likewise.
26751         * tests/test-trunc2.c: Likewise.
26752         * tests/test-truncf1.c: Likewise.
26753         * tests/test-truncf2.c: Likewise.
26754         * tests/test-truncl.c: Likewise.
26755         * tests/test-uname.c: Likewise.
26756         * tests/test-unlink.c: Likewise.
26757         * tests/test-unlinkat.c: Likewise.
26758         * tests/test-unsetenv.c: Likewise.
26759         * tests/test-usleep.c: Likewise.
26760         * tests/test-utimens.c: Likewise.
26761         * tests/test-utimensat.c: Likewise.
26762         * tests/test-vasnprintf-posix.c: Likewise.
26763         * tests/test-vasnprintf-posix2.c: Likewise.
26764         * tests/test-vasnprintf.c: Likewise.
26765         * tests/test-vasprintf-posix.c: Likewise.
26766         * tests/test-vasprintf.c: Likewise.
26767         * tests/test-vdprintf-posix.c: Likewise.
26768         * tests/test-vfprintf-posix.c: Likewise.
26769         * tests/test-vprintf-posix.c: Likewise.
26770         * tests/test-vsnprintf-posix.c: Likewise.
26771         * tests/test-vsnprintf.c: Likewise.
26772         * tests/test-vsprintf-posix.c: Likewise.
26773         * tests/test-wcrtomb.c: Likewise.
26774         * tests/test-wcsnrtombs.c: Likewise.
26775         * tests/test-wcsrtombs.c: Likewise.
26776         * tests/test-wctype.c: Likewise.
26777         * tests/test-wcwidth.c: Likewise.
26778         * tests/test-xfprintf-posix.c: Likewise.
26779         * tests/test-xmemdup0.c: Likewise.
26780         * tests/test-xprintf-posix.c: Likewise.
26781         * tests/test-xvasprintf.c: Likewise.
26782         * tests/unicase/test-locale-language.c: Likewise.
26783         * tests/unicase/test-mapping-part1.h: Likewise.
26784         * tests/unicase/test-predicate-part1.h: Likewise.
26785         * tests/unicase/test-u8-casecmp.c: Likewise.
26786         * tests/unicase/test-u8-casecoll.c: Likewise.
26787         * tests/unicase/test-u8-casefold.c: Likewise.
26788         * tests/unicase/test-u8-is-cased.c: Likewise.
26789         * tests/unicase/test-u8-is-casefolded.c: Likewise.
26790         * tests/unicase/test-u8-is-lowercase.c: Likewise.
26791         * tests/unicase/test-u8-is-titlecase.c: Likewise.
26792         * tests/unicase/test-u8-is-uppercase.c: Likewise.
26793         * tests/unicase/test-u8-tolower.c: Likewise.
26794         * tests/unicase/test-u8-totitle.c: Likewise.
26795         * tests/unicase/test-u8-toupper.c: Likewise.
26796         * tests/unicase/test-u16-casecmp.c: Likewise.
26797         * tests/unicase/test-u16-casecoll.c: Likewise.
26798         * tests/unicase/test-u16-casefold.c: Likewise.
26799         * tests/unicase/test-u16-is-cased.c: Likewise.
26800         * tests/unicase/test-u16-is-casefolded.c: Likewise.
26801         * tests/unicase/test-u16-is-lowercase.c: Likewise.
26802         * tests/unicase/test-u16-is-titlecase.c: Likewise.
26803         * tests/unicase/test-u16-is-uppercase.c: Likewise.
26804         * tests/unicase/test-u16-tolower.c: Likewise.
26805         * tests/unicase/test-u16-totitle.c: Likewise.
26806         * tests/unicase/test-u16-toupper.c: Likewise.
26807         * tests/unicase/test-u32-casecmp.c: Likewise.
26808         * tests/unicase/test-u32-casecoll.c: Likewise.
26809         * tests/unicase/test-u32-casefold.c: Likewise.
26810         * tests/unicase/test-u32-is-cased.c: Likewise.
26811         * tests/unicase/test-u32-is-casefolded.c: Likewise.
26812         * tests/unicase/test-u32-is-lowercase.c: Likewise.
26813         * tests/unicase/test-u32-is-titlecase.c: Likewise.
26814         * tests/unicase/test-u32-is-uppercase.c: Likewise.
26815         * tests/unicase/test-u32-tolower.c: Likewise.
26816         * tests/unicase/test-u32-totitle.c: Likewise.
26817         * tests/unicase/test-u32-toupper.c: Likewise.
26818         * tests/unicase/test-ulc-casecmp.c: Likewise.
26819         * tests/unicase/test-ulc-casecoll.c: Likewise.
26820         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
26821         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
26822         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
26823         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
26824         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
26825         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
26826         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
26827         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
26828         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
26829         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
26830         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
26831         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
26832         * tests/unictype/test-bidi_byname.c: Likewise.
26833         * tests/unictype/test-bidi_name.c: Likewise.
26834         * tests/unictype/test-bidi_of.c: Likewise.
26835         * tests/unictype/test-bidi_test.c: Likewise.
26836         * tests/unictype/test-block_list.c: Likewise.
26837         * tests/unictype/test-block_of.c: Likewise.
26838         * tests/unictype/test-block_test.c: Likewise.
26839         * tests/unictype/test-categ_and.c: Likewise.
26840         * tests/unictype/test-categ_and_not.c: Likewise.
26841         * tests/unictype/test-categ_byname.c: Likewise.
26842         * tests/unictype/test-categ_name.c: Likewise.
26843         * tests/unictype/test-categ_none.c: Likewise.
26844         * tests/unictype/test-categ_of.c: Likewise.
26845         * tests/unictype/test-categ_or.c: Likewise.
26846         * tests/unictype/test-categ_test_withtable.c: Likewise.
26847         * tests/unictype/test-combining.c: Likewise.
26848         * tests/unictype/test-decdigit.c: Likewise.
26849         * tests/unictype/test-digit.c: Likewise.
26850         * tests/unictype/test-mirror.c: Likewise.
26851         * tests/unictype/test-numeric.c: Likewise.
26852         * tests/unictype/test-pr_byname.c: Likewise.
26853         * tests/unictype/test-pr_test.c: Likewise.
26854         * tests/unictype/test-predicate-part1.h: Likewise.
26855         * tests/unictype/test-scripts.c: Likewise.
26856         * tests/unictype/test-sy_c_ident.c: Likewise.
26857         * tests/unictype/test-sy_java_ident.c: Likewise.
26858         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
26859         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
26860         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
26861         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
26862         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
26863         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
26864         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
26865         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
26866         * tests/uninorm/test-canonical-decomposition.c: Likewise.
26867         * tests/uninorm/test-compat-decomposition.c: Likewise.
26868         * tests/uninorm/test-composition.c: Likewise.
26869         * tests/uninorm/test-decomposing-form.c: Likewise.
26870         * tests/uninorm/test-decomposition.c: Likewise.
26871         * tests/uninorm/test-u8-nfc.c: Likewise.
26872         * tests/uninorm/test-u8-nfd.c: Likewise.
26873         * tests/uninorm/test-u8-nfkc.c: Likewise.
26874         * tests/uninorm/test-u8-nfkd.c: Likewise.
26875         * tests/uninorm/test-u8-normcmp.c: Likewise.
26876         * tests/uninorm/test-u8-normcoll.c: Likewise.
26877         * tests/uninorm/test-u16-nfc.c: Likewise.
26878         * tests/uninorm/test-u16-nfd.c: Likewise.
26879         * tests/uninorm/test-u16-nfkc.c: Likewise.
26880         * tests/uninorm/test-u16-nfkd.c: Likewise.
26881         * tests/uninorm/test-u16-normcmp.c: Likewise.
26882         * tests/uninorm/test-u16-normcoll.c: Likewise.
26883         * tests/uninorm/test-u32-nfc.c: Likewise.
26884         * tests/uninorm/test-u32-nfd.c: Likewise.
26885         * tests/uninorm/test-u32-nfkc.c: Likewise.
26886         * tests/uninorm/test-u32-nfkd.c: Likewise.
26887         * tests/uninorm/test-u32-normalize-big.c: Likewise.
26888         * tests/uninorm/test-u32-normcmp.c: Likewise.
26889         * tests/uninorm/test-u32-normcoll.c: Likewise.
26890         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
26891         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
26892         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
26893         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
26894         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
26895         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
26896         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
26897         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
26898         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
26899         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
26900         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
26901         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
26902         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
26903         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
26904         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
26905         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
26906         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
26907         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
26908         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
26909         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
26910         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
26911         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
26912         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
26913         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
26914         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
26915         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
26916         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
26917         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
26918         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
26919         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
26920         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
26921         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
26922         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
26923         * tests/uniwidth/test-u8-strwidth.c: Likewise.
26924         * tests/uniwidth/test-u8-width.c: Likewise.
26925         * tests/uniwidth/test-u16-strwidth.c: Likewise.
26926         * tests/uniwidth/test-u16-width.c: Likewise.
26927         * tests/uniwidth/test-u32-strwidth.c: Likewise.
26928         * tests/uniwidth/test-u32-width.c: Likewise.
26929         * tests/uniwidth/test-uc_width.c: Likewise.
26930         * tests/uniwidth/test-uc_width2.c: Likewise.
26931         * modules/acl-tests (Files): Add tests/macros.h.
26932         * modules/areadlink-tests (Files): Likewise.
26933         * modules/areadlink-with-size-tests (Files): Likewise.
26934         * modules/areadlinkat-tests (Files): Likewise.
26935         * modules/areadlinkat-with-size-tests (Files): Likewise.
26936         * modules/argmatch-tests (Files): Likewise.
26937         * modules/argv-iter-tests (Files): Likewise.
26938         * modules/array-list-tests (Files): Likewise.
26939         * modules/array-mergesort-tests (Files): Likewise.
26940         * modules/array-oset-tests (Files): Likewise.
26941         * modules/avltree-list-tests (Files): Likewise.
26942         * modules/avltree-oset-tests (Files): Likewise.
26943         * modules/avltreehash-list-tests (Files): Likewise.
26944         * modules/base64-tests (Files): Likewise.
26945         * modules/binary-io-tests (Files): Likewise.
26946         * modules/bitrotate-tests (Files): Likewise.
26947         * modules/btowc-tests (Files): Likewise.
26948         * modules/byteswap-tests (Files): Likewise.
26949         * modules/c-ctype-tests (Files): Likewise.
26950         * modules/c-stack-tests (Files): Likewise.
26951         * modules/c-strcase-tests (Files): Likewise.
26952         * modules/c-strcasestr-tests (Files): Likewise.
26953         * modules/c-strstr-tests (Files): Likewise.
26954         * modules/canonicalize-lgpl-tests (Files): Likewise.
26955         * modules/canonicalize-tests (Files): Likewise.
26956         * modules/carray-list-tests (Files): Likewise.
26957         * modules/ceilf-tests (Files): Likewise.
26958         * modules/ceill-tests (Files): Likewise.
26959         * modules/chown-tests (Files): Likewise.
26960         * modules/cloexec-tests (Files): Likewise.
26961         * modules/copy-file-tests (Files): Likewise.
26962         * modules/count-one-bits-tests (Files): Likewise.
26963         * modules/dprintf-posix-tests (Files): Likewise.
26964         * modules/dup2-tests (Files): Likewise.
26965         * modules/dup3-tests (Files): Likewise.
26966         * modules/duplocale-tests (Files): Likewise.
26967         * modules/fbufmode-tests (Files): Likewise.
26968         * modules/fchdir-tests (Files): Likewise.
26969         * modules/fcntl-safer-tests (Files): Likewise.
26970         * modules/fcntl-tests (Files): Likewise.
26971         * modules/fdopendir-tests (Files): Likewise.
26972         * modules/fdutimensat-tests (Files): Likewise.
26973         * modules/fflush-tests (Files): Likewise.
26974         * modules/filevercmp-tests (Files): Likewise.
26975         * modules/flock-tests (Files): Likewise.
26976         * modules/floorf-tests (Files): Likewise.
26977         * modules/floorl-tests (Files): Likewise.
26978         * modules/fnmatch-tests (Files): Likewise.
26979         * modules/fopen-safer-tests (Files): Likewise.
26980         * modules/fopen-tests (Files): Likewise.
26981         * modules/fpending-tests (Files): Likewise.
26982         * modules/fprintf-posix-tests (Files): Likewise.
26983         * modules/fpurge-tests (Files): Likewise.
26984         * modules/freadable-tests (Files): Likewise.
26985         * modules/freadahead-tests (Files): Likewise.
26986         * modules/freading-tests (Files): Likewise.
26987         * modules/freadptr-tests (Files): Likewise.
26988         * modules/freadseek-tests (Files): Likewise.
26989         * modules/freopen-tests (Files): Likewise.
26990         * modules/frexp-nolibm-tests (Files): Likewise.
26991         * modules/frexp-tests (Files): Likewise.
26992         * modules/frexpl-nolibm-tests (Files): Likewise.
26993         * modules/frexpl-tests (Files): Likewise.
26994         * modules/fseek-tests (Files): Likewise.
26995         * modules/fseeko-tests (Files): Likewise.
26996         * modules/fstrcmp-tests (Files): Likewise.
26997         * modules/fsync-tests (Files): Likewise.
26998         * modules/ftell-tests (Files): Likewise.
26999         * modules/ftello-tests (Files): Likewise.
27000         * modules/func-tests (Files): Likewise.
27001         * modules/futimens-tests (Files): Likewise.
27002         * modules/fwritable-tests (Files): Likewise.
27003         * modules/fwriting-tests (Files): Likewise.
27004         * modules/getcwd-tests (Files): Likewise.
27005         * modules/getdate-tests (Files): Likewise.
27006         * modules/getdelim-tests (Files): Likewise.
27007         * modules/getdtablesize-tests (Files): Likewise.
27008         * modules/getgroups-tests (Files): Likewise.
27009         * modules/getline-tests (Files): Likewise.
27010         * modules/getndelim2-tests (Files): Likewise.
27011         * modules/glob-tests (Files): Likewise.
27012         * modules/hash-tests (Files): Likewise.
27013         * modules/i-ring-tests (Files): Likewise.
27014         * modules/iconv-tests (Files): Likewise.
27015         * modules/iconv_open-utf-tests (Files): Likewise.
27016         * modules/idpriv-drop-tests (Files): Likewise.
27017         * modules/idpriv-droptemp-tests (Files): Likewise.
27018         * modules/inet_ntop-tests (Files): Likewise.
27019         * modules/inet_pton-tests (Files): Likewise.
27020         * modules/isblank-tests (Files): Likewise.
27021         * modules/isfinite-tests (Files): Likewise.
27022         * modules/isinf-tests (Files): Likewise.
27023         * modules/isnan-tests (Files): Likewise.
27024         * modules/isnand-nolibm-tests (Files): Likewise.
27025         * modules/isnand-tests (Files): Likewise.
27026         * modules/isnanf-nolibm-tests (Files): Likewise.
27027         * modules/isnanf-tests (Files): Likewise.
27028         * modules/isnanl-nolibm-tests (Files): Likewise.
27029         * modules/isnanl-tests (Files): Likewise.
27030         * modules/lchown-tests (Files): Likewise.
27031         * modules/ldexpl-tests (Files): Likewise.
27032         * modules/link-tests (Files): Likewise.
27033         * modules/linkat-tests (Files): Likewise.
27034         * modules/linked-list-tests (Files): Likewise.
27035         * modules/linkedhash-list-tests (Files): Likewise.
27036         * modules/localename-tests (Files): Likewise.
27037         * modules/lseek-tests (Files): Likewise.
27038         * modules/lstat-tests (Files): Likewise.
27039         * modules/mbmemcasecmp-tests (Files): Likewise.
27040         * modules/mbmemcasecoll-tests (Files): Likewise.
27041         * modules/mbrtowc-tests (Files): Likewise.
27042         * modules/mbscasecmp-tests (Files): Likewise.
27043         * modules/mbscasestr-tests (Files): Likewise.
27044         * modules/mbschr-tests (Files): Likewise.
27045         * modules/mbscspn-tests (Files): Likewise.
27046         * modules/mbsinit-tests (Files): Likewise.
27047         * modules/mbsncasecmp-tests (Files): Likewise.
27048         * modules/mbsnrtowcs-tests (Files): Likewise.
27049         * modules/mbspbrk-tests (Files): Likewise.
27050         * modules/mbspcasecmp-tests (Files): Likewise.
27051         * modules/mbsrchr-tests (Files): Likewise.
27052         * modules/mbsrtowcs-tests (Files): Likewise.
27053         * modules/mbsspn-tests (Files): Likewise.
27054         * modules/mbsstr-tests (Files): Likewise.
27055         * modules/memchr-tests (Files): Likewise.
27056         * modules/memchr2-tests (Files): Likewise.
27057         * modules/memcmp-tests (Files): Likewise.
27058         * modules/memmem-tests (Files): Likewise.
27059         * modules/memrchr-tests (Files): Likewise.
27060         * modules/mkdir-tests (Files): Likewise.
27061         * modules/mkfifo-tests (Files): Likewise.
27062         * modules/mkfifoat-tests (Files): Likewise.
27063         * modules/mknod-tests (Files): Likewise.
27064         * modules/nanosleep-tests (Files): Likewise.
27065         * modules/nl_langinfo-tests (Files): Likewise.
27066         * modules/obstack-printf-tests (Files): Likewise.
27067         * modules/open-tests (Files): Likewise.
27068         * modules/openat-tests (Files): Likewise.
27069         * modules/pipe-filter-gi-tests (Files): Likewise.
27070         * modules/pipe-filter-ii-tests (Files): Likewise.
27071         * modules/pipe2-tests (Files): Likewise.
27072         * modules/popen-safer-tests (Files): Likewise.
27073         * modules/popen-tests (Files): Likewise.
27074         * modules/posixtm-tests (Files): Likewise.
27075         * modules/pread-tests (Files): Likewise.
27076         * modules/printf-frexp-tests (Files): Likewise.
27077         * modules/printf-frexpl-tests (Files): Likewise.
27078         * modules/printf-posix-tests (Files): Likewise.
27079         * modules/priv-set-tests (Files): Likewise.
27080         * modules/quotearg-tests (Files): Likewise.
27081         * modules/random_r-tests (Files): Likewise.
27082         * modules/rawmemchr-tests (Files): Likewise.
27083         * modules/rbtree-list-tests (Files): Likewise.
27084         * modules/rbtree-oset-tests (Files): Likewise.
27085         * modules/rbtreehash-list-tests (Files): Likewise.
27086         * modules/readlink-tests (Files): Likewise.
27087         * modules/remove-tests (Files): Likewise.
27088         * modules/rename-tests (Files): Likewise.
27089         * modules/renameat-tests (Files): Likewise.
27090         * modules/rmdir-tests (Files): Likewise.
27091         * modules/round-tests (Files): Likewise.
27092         * modules/roundf-tests (Files): Likewise.
27093         * modules/roundl-tests (Files): Likewise.
27094         * modules/safe-alloc-tests (Files): Likewise.
27095         * modules/setenv-tests (Files): Likewise.
27096         * modules/sigaction-tests (Files): Likewise.
27097         * modules/signbit-tests (Files): Likewise.
27098         * modules/sleep-tests (Files): Likewise.
27099         * modules/snprintf-posix-tests (Files): Likewise.
27100         * modules/snprintf-tests (Files): Likewise.
27101         * modules/sprintf-posix-tests (Files): Likewise.
27102         * modules/stat-tests (Files): Likewise.
27103         * modules/stat-time-tests (Files): Likewise.
27104         * modules/strcasestr-tests (Files): Likewise.
27105         * modules/strchrnul-tests (Files): Likewise.
27106         * modules/strerror-tests (Files): Likewise.
27107         * modules/striconv-tests (Files): Likewise.
27108         * modules/striconveh-tests (Files): Likewise.
27109         * modules/striconveha-tests (Files): Likewise.
27110         * modules/strsignal-tests (Files): Likewise.
27111         * modules/strstr-tests (Files): Likewise.
27112         * modules/strtod-tests (Files): Likewise.
27113         * modules/strverscmp-tests (Files): Likewise.
27114         * modules/symlink-tests (Files): Likewise.
27115         * modules/symlinkat-tests (Files): Likewise.
27116         * modules/trunc-tests (Files): Likewise.
27117         * modules/truncf-tests (Files): Likewise.
27118         * modules/truncl-tests (Files): Likewise.
27119         * modules/uname-tests (Files): Likewise.
27120         * modules/unicase/cased-tests (Files): Likewise.
27121         * modules/unicase/ignorable-tests (Files): Likewise.
27122         * modules/unicase/locale-language-tests (Files): Likewise.
27123         * modules/unicase/tolower-tests (Files): Likewise.
27124         * modules/unicase/totitle-tests (Files): Likewise.
27125         * modules/unicase/toupper-tests (Files): Likewise.
27126         * modules/unicase/u8-casecmp-tests (Files): Likewise.
27127         * modules/unicase/u8-casecoll-tests (Files): Likewise.
27128         * modules/unicase/u8-casefold-tests (Files): Likewise.
27129         * modules/unicase/u8-is-cased-tests (Files): Likewise.
27130         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
27131         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
27132         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
27133         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
27134         * modules/unicase/u8-tolower-tests (Files): Likewise.
27135         * modules/unicase/u8-totitle-tests (Files): Likewise.
27136         * modules/unicase/u8-toupper-tests (Files): Likewise.
27137         * modules/unicase/u16-casecmp-tests (Files): Likewise.
27138         * modules/unicase/u16-casecoll-tests (Files): Likewise.
27139         * modules/unicase/u16-casefold-tests (Files): Likewise.
27140         * modules/unicase/u16-is-cased-tests (Files): Likewise.
27141         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
27142         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
27143         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
27144         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
27145         * modules/unicase/u16-tolower-tests (Files): Likewise.
27146         * modules/unicase/u16-totitle-tests (Files): Likewise.
27147         * modules/unicase/u16-toupper-tests (Files): Likewise.
27148         * modules/unicase/u32-casecmp-tests (Files): Likewise.
27149         * modules/unicase/u32-casecoll-tests (Files): Likewise.
27150         * modules/unicase/u32-casefold-tests (Files): Likewise.
27151         * modules/unicase/u32-is-cased-tests (Files): Likewise.
27152         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
27153         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
27154         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
27155         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
27156         * modules/unicase/u32-tolower-tests (Files): Likewise.
27157         * modules/unicase/u32-totitle-tests (Files): Likewise.
27158         * modules/unicase/u32-toupper-tests (Files): Likewise.
27159         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
27160         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
27161         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
27162         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
27163         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
27164         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
27165         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
27166         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
27167         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
27168         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
27169         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
27170         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
27171         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
27172         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
27173         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
27174         * modules/unictype/bidicategory-name-tests (Files): Likewise.
27175         * modules/unictype/bidicategory-of-tests (Files): Likewise.
27176         * modules/unictype/bidicategory-test-tests (Files): Likewise.
27177         * modules/unictype/block-list-tests (Files): Likewise.
27178         * modules/unictype/block-of-tests (Files): Likewise.
27179         * modules/unictype/block-test-tests (Files): Likewise.
27180         * modules/unictype/category-C-tests (Files): Likewise.
27181         * modules/unictype/category-Cc-tests (Files): Likewise.
27182         * modules/unictype/category-Cf-tests (Files): Likewise.
27183         * modules/unictype/category-Cn-tests (Files): Likewise.
27184         * modules/unictype/category-Co-tests (Files): Likewise.
27185         * modules/unictype/category-Cs-tests (Files): Likewise.
27186         * modules/unictype/category-L-tests (Files): Likewise.
27187         * modules/unictype/category-Ll-tests (Files): Likewise.
27188         * modules/unictype/category-Lm-tests (Files): Likewise.
27189         * modules/unictype/category-Lo-tests (Files): Likewise.
27190         * modules/unictype/category-Lt-tests (Files): Likewise.
27191         * modules/unictype/category-Lu-tests (Files): Likewise.
27192         * modules/unictype/category-M-tests (Files): Likewise.
27193         * modules/unictype/category-Mc-tests (Files): Likewise.
27194         * modules/unictype/category-Me-tests (Files): Likewise.
27195         * modules/unictype/category-Mn-tests (Files): Likewise.
27196         * modules/unictype/category-N-tests (Files): Likewise.
27197         * modules/unictype/category-Nd-tests (Files): Likewise.
27198         * modules/unictype/category-Nl-tests (Files): Likewise.
27199         * modules/unictype/category-No-tests (Files): Likewise.
27200         * modules/unictype/category-P-tests (Files): Likewise.
27201         * modules/unictype/category-Pc-tests (Files): Likewise.
27202         * modules/unictype/category-Pd-tests (Files): Likewise.
27203         * modules/unictype/category-Pe-tests (Files): Likewise.
27204         * modules/unictype/category-Pf-tests (Files): Likewise.
27205         * modules/unictype/category-Pi-tests (Files): Likewise.
27206         * modules/unictype/category-Po-tests (Files): Likewise.
27207         * modules/unictype/category-Ps-tests (Files): Likewise.
27208         * modules/unictype/category-S-tests (Files): Likewise.
27209         * modules/unictype/category-Sc-tests (Files): Likewise.
27210         * modules/unictype/category-Sk-tests (Files): Likewise.
27211         * modules/unictype/category-Sm-tests (Files): Likewise.
27212         * modules/unictype/category-So-tests (Files): Likewise.
27213         * modules/unictype/category-Z-tests (Files): Likewise.
27214         * modules/unictype/category-Zl-tests (Files): Likewise.
27215         * modules/unictype/category-Zp-tests (Files): Likewise.
27216         * modules/unictype/category-Zs-tests (Files): Likewise.
27217         * modules/unictype/category-and-not-tests (Files): Likewise.
27218         * modules/unictype/category-and-tests (Files): Likewise.
27219         * modules/unictype/category-byname-tests (Files): Likewise.
27220         * modules/unictype/category-name-tests (Files): Likewise.
27221         * modules/unictype/category-none-tests (Files): Likewise.
27222         * modules/unictype/category-of-tests (Files): Likewise.
27223         * modules/unictype/category-or-tests (Files): Likewise.
27224         * modules/unictype/category-test-withtable-tests (Files): Likewise.
27225         * modules/unictype/combining-class-tests (Files): Likewise.
27226         * modules/unictype/ctype-alnum-tests (Files): Likewise.
27227         * modules/unictype/ctype-alpha-tests (Files): Likewise.
27228         * modules/unictype/ctype-blank-tests (Files): Likewise.
27229         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
27230         * modules/unictype/ctype-digit-tests (Files): Likewise.
27231         * modules/unictype/ctype-graph-tests (Files): Likewise.
27232         * modules/unictype/ctype-lower-tests (Files): Likewise.
27233         * modules/unictype/ctype-print-tests (Files): Likewise.
27234         * modules/unictype/ctype-punct-tests (Files): Likewise.
27235         * modules/unictype/ctype-space-tests (Files): Likewise.
27236         * modules/unictype/ctype-upper-tests (Files): Likewise.
27237         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
27238         * modules/unictype/decimal-digit-tests (Files): Likewise.
27239         * modules/unictype/digit-tests (Files): Likewise.
27240         * modules/unictype/mirror-tests (Files): Likewise.
27241         * modules/unictype/numeric-tests (Files): Likewise.
27242         * modules/unictype/property-alphabetic-tests (Files): Likewise.
27243         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
27244         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
27245         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
27246         Likewise.
27247         * modules/unictype/property-bidi-block-separator-tests (Files):
27248         Likewise.
27249         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
27250         Likewise.
27251         * modules/unictype/property-bidi-common-separator-tests (Files):
27252         Likewise.
27253         * modules/unictype/property-bidi-control-tests (Files): Likewise.
27254         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
27255         Likewise.
27256         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
27257         Likewise.
27258         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
27259         Likewise.
27260         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
27261         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
27262         Likewise.
27263         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
27264         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
27265         Likewise.
27266         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
27267         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
27268         * modules/unictype/property-bidi-segment-separator-tests (Files):
27269         Likewise.
27270         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
27271         * modules/unictype/property-byname-tests (Files): Likewise.
27272         * modules/unictype/property-combining-tests (Files): Likewise.
27273         * modules/unictype/property-composite-tests (Files): Likewise.
27274         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
27275         * modules/unictype/property-dash-tests (Files): Likewise.
27276         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
27277         * modules/unictype/property-default-ignorable-code-point-tests (Files):
27278         Likewise.
27279         * modules/unictype/property-deprecated-tests (Files): Likewise.
27280         * modules/unictype/property-diacritic-tests (Files): Likewise.
27281         * modules/unictype/property-extender-tests (Files): Likewise.
27282         * modules/unictype/property-format-control-tests (Files): Likewise.
27283         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
27284         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
27285         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
27286         * modules/unictype/property-hex-digit-tests (Files): Likewise.
27287         * modules/unictype/property-hyphen-tests (Files): Likewise.
27288         * modules/unictype/property-id-continue-tests (Files): Likewise.
27289         * modules/unictype/property-id-start-tests (Files): Likewise.
27290         * modules/unictype/property-ideographic-tests (Files): Likewise.
27291         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
27292         * modules/unictype/property-ids-trinary-operator-tests (Files):
27293         Likewise.
27294         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
27295         * modules/unictype/property-iso-control-tests (Files): Likewise.
27296         * modules/unictype/property-join-control-tests (Files): Likewise.
27297         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
27298         * modules/unictype/property-line-separator-tests (Files): Likewise.
27299         * modules/unictype/property-logical-order-exception-tests (Files):
27300         Likewise.
27301         * modules/unictype/property-lowercase-tests (Files): Likewise.
27302         * modules/unictype/property-math-tests (Files): Likewise.
27303         * modules/unictype/property-non-break-tests (Files): Likewise.
27304         * modules/unictype/property-not-a-character-tests (Files): Likewise.
27305         * modules/unictype/property-numeric-tests (Files): Likewise.
27306         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
27307         * modules/unictype/property-other-default-ignorable-code-point-tests
27308         (Files): Likewise.
27309         * modules/unictype/property-other-grapheme-extend-tests (Files):
27310         Likewise.
27311         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
27312         * modules/unictype/property-other-id-start-tests (Files): Likewise.
27313         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
27314         * modules/unictype/property-other-math-tests (Files): Likewise.
27315         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
27316         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
27317         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
27318         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
27319         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
27320         * modules/unictype/property-private-use-tests (Files): Likewise.
27321         * modules/unictype/property-punctuation-tests (Files): Likewise.
27322         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
27323         * modules/unictype/property-radical-tests (Files): Likewise.
27324         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
27325         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
27326         * modules/unictype/property-space-tests (Files): Likewise.
27327         * modules/unictype/property-terminal-punctuation-tests (Files):
27328         Likewise.
27329         * modules/unictype/property-test-tests (Files): Likewise.
27330         * modules/unictype/property-titlecase-tests (Files): Likewise.
27331         * modules/unictype/property-unassigned-code-value-tests (Files):
27332         Likewise.
27333         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
27334         * modules/unictype/property-uppercase-tests (Files): Likewise.
27335         * modules/unictype/property-variation-selector-tests (Files): Likewise.
27336         * modules/unictype/property-white-space-tests (Files): Likewise.
27337         * modules/unictype/property-xid-continue-tests (Files): Likewise.
27338         * modules/unictype/property-xid-start-tests (Files): Likewise.
27339         * modules/unictype/property-zero-width-tests (Files): Likewise.
27340         * modules/unictype/scripts-tests (Files): Likewise.
27341         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
27342         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
27343         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
27344         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
27345         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
27346         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
27347         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
27348         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
27349         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
27350         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
27351         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
27352         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
27353         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
27354         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
27355         * modules/uninorm/composition-tests (Files): Likewise.
27356         * modules/uninorm/decomposing-form-tests (Files): Likewise.
27357         * modules/uninorm/decomposition-tests (Files): Likewise.
27358         * modules/uninorm/filter-tests (Files): Likewise.
27359         * modules/uninorm/nfc-tests (Files): Likewise.
27360         * modules/uninorm/nfd-tests (Files): Likewise.
27361         * modules/uninorm/nfkc-tests (Files): Likewise.
27362         * modules/uninorm/nfkd-tests (Files): Likewise.
27363         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
27364         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
27365         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
27366         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
27367         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
27368         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
27369         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
27370         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
27371         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
27372         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
27373         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
27374         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
27375         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
27376         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
27377         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
27378         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
27379         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
27380         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
27381         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
27382         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
27383         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
27384         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
27385         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
27386         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
27387         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
27388         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
27389         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
27390         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
27391         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
27392         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
27393         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
27394         * modules/uniwidth/u8-width-tests (Files): Likewise.
27395         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
27396         * modules/uniwidth/u16-width-tests (Files): Likewise.
27397         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
27398         * modules/uniwidth/u32-width-tests (Files): Likewise.
27399         * modules/uniwidth/width-tests (Files): Likewise.
27400         * modules/unlink-tests (Files): Likewise.
27401         * modules/unsetenv-tests (Files): Likewise.
27402         * modules/usleep-tests (Files): Likewise.
27403         * modules/utimens-tests (Files): Likewise.
27404         * modules/utimensat-tests (Files): Likewise.
27405         * modules/vasnprintf-posix-tests (Files): Likewise.
27406         * modules/vasnprintf-tests (Files): Likewise.
27407         * modules/vasprintf-posix-tests (Files): Likewise.
27408         * modules/vasprintf-tests (Files): Likewise.
27409         * modules/vdprintf-posix-tests (Files): Likewise.
27410         * modules/vfprintf-posix-tests (Files): Likewise.
27411         * modules/vprintf-posix-tests (Files): Likewise.
27412         * modules/vsnprintf-posix-tests (Files): Likewise.
27413         * modules/vsnprintf-tests (Files): Likewise.
27414         * modules/vsprintf-posix-tests (Files): Likewise.
27415         * modules/wcrtomb-tests (Files): Likewise.
27416         * modules/wcsnrtombs-tests (Files): Likewise.
27417         * modules/wcsrtombs-tests (Files): Likewise.
27418         * modules/wctype-tests (Files): Likewise.
27419         * modules/wcwidth-tests (Files): Likewise.
27420         * modules/xmemdup0-tests (Files): Likewise.
27421         * modules/xprintf-posix-tests (Files): Likewise.
27422         * modules/xvasprintf-tests (Files): Likewise.
27423
27424 2009-12-24  Eric Blake  <ebb9@byu.net>
27425
27426         test-nanosleep: fix typo
27427         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
27428         patch.
27429         Reported by Bruno Haible.
27430
27431 2009-12-24  Bruno Haible  <bruno@clisp.org>
27432
27433         Reduce namespace pollution on glibc systems.
27434         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
27435         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
27436         systems.
27437         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
27438         <getopt.h> on glibc systems.
27439         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
27440         systems.
27441         * lib/fcntl.c: Include <unistd.h> here instead.
27442
27443 2009-12-24  Bruno Haible  <bruno@clisp.org>
27444
27445         * lib/stdlib.in.h (includes): Fix typo in today's commit.
27446
27447 2009-12-24  Eric Blake  <ebb9@byu.net>
27448
27449         tests: add signature checks
27450         * tests/signature.h (SIGNATURE_CHECK): New file.
27451         * modules/atexit-tests (Files): Use it.
27452         * modules/btowc-tests (Files): Likewise.
27453         * modules/canonicalize-lgpl-tests (Files): Likewise.
27454         * modules/ceilf-tests (Files): Likewise.
27455         * modules/ceill-tests (Files): Likewise.
27456         * modules/chown-tests (Files): Likewise.
27457         * modules/dprintf-posix-tests (Files): Likewise.
27458         * modules/dup2-tests (Files): Likewise.
27459         * modules/dup3-tests (Files): Likewise.
27460         * modules/duplocale-tests (Files): Likewise.
27461         * modules/fchdir-tests (Files): Likewise.
27462         * modules/fcntl-tests (Files): Likewise.
27463         * modules/fdopendir-tests (Files): Likewise.
27464         * modules/fflush-tests (Files): Likewise.
27465         * modules/flock-tests (Files): Likewise.
27466         * modules/floorf-tests (Files): Likewise.
27467         * modules/floorl-tests (Files): Likewise.
27468         * modules/fnmatch-tests (Files): Likewise.
27469         * modules/fopen-tests (Files): Likewise.
27470         * modules/fprintf-posix-tests (Files): Likewise.
27471         * modules/freopen-tests (Files): Likewise.
27472         * modules/frexp-nolibm-tests (Files): Likewise.
27473         * modules/frexp-tests (Files): Likewise.
27474         * modules/frexpl-nolibm-tests (Files): Likewise.
27475         * modules/frexpl-tests (Files): Likewise.
27476         * modules/fseek-tests (Files): Likewise.
27477         * modules/fseeko-tests (Files): Likewise.
27478         * modules/fsync-tests (Files): Likewise.
27479         * modules/ftell-tests (Files): Likewise.
27480         * modules/ftello-tests (Files): Likewise.
27481         * modules/futimens-tests (Files): Likewise.
27482         * modules/getaddrinfo-tests (Files): Likewise.
27483         * modules/getcwd-tests (Files): Likewise.
27484         * modules/getdelim-tests (Files): Likewise.
27485         * modules/getdtablesize-tests (Files): Likewise.
27486         * modules/getgroups-tests (Files): Likewise.
27487         * modules/gethostname-tests (Files): Likewise.
27488         * modules/getline-tests (Files): Likewise.
27489         * modules/getopt-posix-tests (Files): Likewise.
27490         * modules/gettimeofday-tests (Files): Likewise.
27491         * modules/glob-tests (Files): Likewise.
27492         * modules/iconv-tests (Files): Likewise.
27493         * modules/inet_ntop-tests (Files): Likewise.
27494         * modules/inet_pton-tests (Files): Likewise.
27495         * modules/isblank-tests (Files): Likewise.
27496         * modules/lchown-tests (Files): Likewise.
27497         * modules/ldexpl-tests (Files): Likewise.
27498         * modules/link-tests (Files): Likewise.
27499         * modules/linkat-tests (Files): Likewise.
27500         * modules/lseek-tests (Files): Likewise.
27501         * modules/lstat-tests (Files): Likewise.
27502         * modules/mbrtowc-tests (Files): Likewise.
27503         * modules/mbsinit-tests (Files): Likewise.
27504         * modules/mbsnrtowcs-tests (Files): Likewise.
27505         * modules/mbsrtowcs-tests (Files): Likewise.
27506         * modules/memchr-tests (Files): Likewise.
27507         * modules/memcmp-tests (Files): Likewise.
27508         * modules/memmem-tests (Files): Likewise.
27509         * modules/memrchr-tests (Files): Likewise.
27510         * modules/mkdir-tests (Files): Likewise.
27511         * modules/mkfifo-tests (Files): Likewise.
27512         * modules/mkfifoat-tests (Files): Likewise.
27513         * modules/mknod-tests (Files): Likewise.
27514         * modules/nanosleep-tests (Files): Likewise.
27515         * modules/nl_langinfo-tests (Files): Likewise.
27516         * modules/obstack-printf-tests (Files): Likewise.
27517         * modules/open-tests (Files): Likewise.
27518         * modules/openat-tests (Files): Likewise.
27519         * modules/perror-tests (Files): Likewise.
27520         * modules/pipe2-tests (Files): Likewise.
27521         * modules/poll-tests (Files): Likewise.
27522         * modules/popen-tests (Files): Likewise.
27523         * modules/posix_spawn-tests (Files): Likewise.
27524         * modules/posix_spawnp-tests (Files): Likewise.
27525         * modules/pread-tests (Files): Likewise.
27526         * modules/printf-posix-tests (Files): Likewise.
27527         * modules/pty-tests (Files): Likewise.
27528         * modules/random_r-tests (Files): Likewise.
27529         * modules/rawmemchr-tests (Files): Likewise.
27530         * modules/readlink-tests (Files): Likewise.
27531         * modules/remove-tests (Files): Likewise.
27532         * modules/rename-tests (Files): Likewise.
27533         * modules/renameat-tests (Files): Likewise.
27534         * modules/rmdir-tests (Files): Likewise.
27535         * modules/round-tests (Files): Likewise.
27536         * modules/roundf-tests (Files): Likewise.
27537         * modules/roundl-tests (Files): Likewise.
27538         * modules/select-tests (Files): Likewise.
27539         * modules/setenv-tests (Files): Likewise.
27540         * modules/sigaction-tests (Files): Likewise.
27541         * modules/sleep-tests (Files): Likewise.
27542         * modules/snprintf-posix-tests (Files): Likewise.
27543         * modules/snprintf-tests (Files): Likewise.
27544         * modules/sprintf-posix-tests (Files): Likewise.
27545         * modules/stat-tests (Files): Likewise.
27546         * modules/strcasestr-tests (Files): Likewise.
27547         * modules/strchrnul-tests (Files): Likewise.
27548         * modules/strerror-tests (Files): Likewise.
27549         * modules/strsignal-tests (Files): Likewise.
27550         * modules/strstr-tests (Files): Likewise.
27551         * modules/strtod-tests (Files): Likewise.
27552         * modules/strverscmp-tests (Files): Likewise.
27553         * modules/symlink-tests (Files): Likewise.
27554         * modules/symlinkat-tests (Files): Likewise.
27555         * modules/times-tests (Files): Likewise.
27556         * modules/trunc-tests (Files): Likewise.
27557         * modules/truncf-tests (Files): Likewise.
27558         * modules/truncl-tests (Files): Likewise.
27559         * modules/tsearch-tests (Files): Likewise.
27560         * modules/uname-tests (Files): Likewise.
27561         * modules/unlink-tests (Files): Likewise.
27562         * modules/unsetenv-tests (Files): Likewise.
27563         * modules/usleep-tests (Files): Likewise.
27564         * modules/utimensat-tests (Files): Likewise.
27565         * modules/vasprintf-tests (Files): Likewise.
27566         * modules/vdprintf-posix-tests (Files): Likewise.
27567         * modules/vfprintf-posix-tests (Files): Likewise.
27568         * modules/vprintf-posix-tests (Files): Likewise.
27569         * modules/vsnprintf-posix-tests (Files): Likewise.
27570         * modules/vsnprintf-tests (Files): Likewise.
27571         * modules/vsprintf-posix-tests (Files): Likewise.
27572         * modules/wcrtomb-tests (Files): Likewise.
27573         * modules/wcsnrtombs-tests (Files): Likewise.
27574         * modules/wcsrtombs-tests (Files): Likewise.
27575         * modules/wcwidth-tests (Files): Likewise.
27576         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
27577         * tests/test-isinf.c (isinf): Likewise.
27578         * tests/test-isnan.c (isnan): Likewise.
27579         * tests/test-signbit.c (signbit): Likewise.
27580         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
27581         declaration, either as macro or with correct signature.
27582         (select): Ensure function under test is declared with correct
27583         signature in correct header.
27584         * tests/test-atexit.c (atexit): Likewise.
27585         * tests/test-btowc.c (btowc): Likewise.
27586         * tests/test-canonicalize-lgpl.c (realpath)
27587         (canonicalize_file_name): Likewise.
27588         * tests/test-ceilf1.c (ceilf): Likewise.
27589         * tests/test-ceill.c (ceill): Likewise.
27590         * tests/test-chown.c (chown): Likewise.
27591         * tests/test-dprintf-posix.c (dprintf): Likewise.
27592         * tests/test-dup2.c (dup2): Likewise.
27593         * tests/test-dup3.c (dup3): Likewise.
27594         * tests/test-duplocale.c (duplocale): Likewise.
27595         * tests/test-fchdir.c (fchdir): Likewise.
27596         * tests/test-fchownat.c (fchownat): Likewise.
27597         * tests/test-fcntl.c (fcntl): Likewise.
27598         * tests/test-fdopendir.c (fdopendir): Likewise.
27599         * tests/test-fflush.c (fflush): Likewise.
27600         * tests/test-flock.c (flock): Likewise.
27601         * tests/test-floorf1.c (floorf): Likewise.
27602         * tests/test-floorl.c (floorl): Likewise.
27603         * tests/test-fnmatch.c (fnmatch): Likewise.
27604         * tests/test-fopen.c (fopen): Likewise.
27605         * tests/test-fprintf-posix.c (fprintf): Likewise.
27606         * tests/test-freopen.c (freopen): Likewise.
27607         * tests/test-frexp.c (frexp): Likewise.
27608         * tests/test-frexpl.c (frexpl): Likewise.
27609         * tests/test-fseek.c (fseek): Likewise.
27610         * tests/test-fseeko.c (fseeko): Likewise.
27611         * tests/test-fstatat.c (fstatat): Likewise.
27612         * tests/test-fsync.c (fsync): Likewise.
27613         * tests/test-ftell.c (ftell): Likewise.
27614         * tests/test-ftello.c (ftello): Likewise.
27615         * tests/test-futimens.c (futimens): Likewise.
27616         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
27617         (gai_strerror): Likewise.
27618         * tests/test-getcwd.c (getcwd): Likewise.
27619         * tests/test-getdelim.c (getdelim): Likewise.
27620         * tests/test-getdtablesize.c (getdtablesize): Likewise.
27621         * tests/test-getgroups.c (getgroups): Likewise.
27622         * tests/test-gethostname.c (gethostname): Likewise.
27623         * tests/test-getline.c (getline): Likewise.
27624         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
27625         Likewise.
27626         * tests/test-gettimeofday.c (gettimeofday): Likewise.
27627         * tests/test-glob.c (glob, globfree): Likewise.
27628         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
27629         * tests/test-inet_ntop.c (inet_ntop): Likewise.
27630         * tests/test-inet_pton.c (inet_pton): Likewise.
27631         * tests/test-isblank.c (isblank): Likewise.
27632         * tests/test-lchown.c (lchown): Likewise.
27633         * tests/test-ldexpl.c (ldexpl): Likewise.
27634         * tests/test-link.c (link): Likewise.
27635         * tests/test-linkat.c (linkat): Likewise.
27636         * tests/test-lseek.c (lseek): Likewise.
27637         * tests/test-lstat.c (lstat): Likewise.
27638         * tests/test-mbrtowc.c (mbrtowc): Likewise.
27639         * tests/test-mbsinit.c (mbsinit): Likewise.
27640         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
27641         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
27642         * tests/test-memchr.c (memchr): Likewise.
27643         * tests/test-memcmp.c (memcmp): Likewise.
27644         * tests/test-memmem.c (memmem): Likewise.
27645         * tests/test-memrchr.c (memrchr): Likewise.
27646         * tests/test-mkdir.c (mkdir): Likewise.
27647         * tests/test-mkdirat.c (mkdirat): Likewise.
27648         * tests/test-mkfifo.c (mkfifo): Likewise.
27649         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
27650         * tests/test-mknod.c (mknod): Likewise.
27651         * tests/test-nanosleep.c (nanosleep): Likewise.
27652         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
27653         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
27654         Likewise.
27655         * tests/test-open.c (open): Likewise.
27656         * tests/test-openat.c (openat): Likewise.
27657         * tests/test-perror.c (perror): Likewise.
27658         * tests/test-pipe2.c (pipe2): Likewise.
27659         * tests/test-poll.c (poll): Likewise.
27660         * tests/test-popen.c (popen, pclose): Likewise.
27661         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
27662         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
27663         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
27664         (posix_spawn_file_actions_destroy)
27665         (posix_spawn_file_actions_addclose)
27666         (posix_spawn_file_actions_addopen)
27667         (posix_spawn_file_actions_adddup2): Likewise.
27668         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
27669         * tests/test-pread.c (pread): Likewise.
27670         * tests/test-printf-posix.c (printf): Likewise.
27671         * tests/test-pty.c (openpty, forkpty): Likewise.
27672         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
27673         (random_r): Likewise.
27674         * tests/test-rawmemchr.c (rawmemchr): Likewise.
27675         * tests/test-readlink.c (readlink): Likewise.
27676         * tests/test-remove.c (remove): Likewise.
27677         * tests/test-rename.c (rename): Likewise.
27678         * tests/test-renameat.c (renameat): Likewise.
27679         * tests/test-rmdir.c (rmdir): Likewise.
27680         * tests/test-round1.c (round): Likewise.
27681         * tests/test-roundf1.c (roundf): Likewise.
27682         * tests/test-roundl.c (roundl): Likewise.
27683         * tests/test-setenv.c (setenv): Likewise.
27684         * tests/test-sigaction.c (sigaction): Likewise.
27685         * tests/test-sleep.c (sleep): Likewise.
27686         * tests/test-snprintf.c (snprintf): Likewise.
27687         * tests/test-sprintf-posix.c (sprintf): Likewise.
27688         * tests/test-stat.c (stat): Likewise.
27689         * tests/test-stpncpy.c (stpncpy): Likewise.
27690         * tests/test-strcasestr.c (strcasestr): Likewise.
27691         * tests/test-strchrnul.c (strchrnul): Likewise.
27692         * tests/test-strerror.c (strerror): Likewise.
27693         * tests/test-strsignal.c (strsignal): Likewise.
27694         * tests/test-strstr.c (strstr): Likewise.
27695         * tests/test-strtod.c (strtod): Likewise.
27696         * tests/test-strverscmp.c (strverscmp): Likewise.
27697         * tests/test-symlink.c (symlink): Likewise.
27698         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
27699         * tests/test-times.c (times): Likewise.
27700         * tests/test-trunc1.c (trunc): Likewise.
27701         * tests/test-truncf1.c (truncf): Likewise.
27702         * tests/test-truncl.c (truncl): Likewise.
27703         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
27704         Likewise.
27705         * tests/test-uname.c (uname): Likewise.
27706         * tests/test-unlink.c (unlink): Likewise.
27707         * tests/test-unlinkat.c (unlinkat): Likewise.
27708         * tests/test-unsetenv.c (unsetenv): Likewise.
27709         * tests/test-usleep.c (usleep): Likewise.
27710         * tests/test-utimensat.c (utimensat): Likewise.
27711         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
27712         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
27713         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
27714         * tests/test-vprintf-posix.c (vprintf): Likewise.
27715         * tests/test-vsnprintf.c (vsnprintf): Likewise.
27716         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
27717         * tests/test-wcrtomb.c (wcrtomb): Likewise.
27718         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
27719         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
27720         * tests/test-wcwidth.c (wcwidth): Likewise.
27721
27722         build: pull in conditional headers during GNULIB_POSIXCHECK
27723         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
27724         definitions from any conditionally-included headers.
27725         * lib/stdlib.in.h (includes): Likewise.
27726         * lib/unistd.in.h (includes): Likewise.
27727
27728 2009-12-24  Bruno Haible  <bruno@clisp.org>
27729
27730         * tests/test-argv-iter.c: Include header file being tested immediately
27731         after config.h.
27732         * tests/test-base64.c: Likewise.
27733         * tests/test-flock.c: Likewise.
27734         * tests/test-fsync.c: Likewise.
27735         * tests/test-getdate.c: Likewise.
27736         * tests/test-getndelim2.c: Likewise.
27737         * tests/test-isfinite.c: Likewise.
27738         * tests/test-isinf.c: Likewise.
27739         * tests/test-strerror.c: Likewise.
27740         * tests/test-strsignal.c: Likewise.
27741
27742 2009-12-23  Eric Blake  <ebb9@byu.net>
27743
27744         unistd: work around cygwin bug
27745         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
27746         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
27747         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27748
27749 2009-12-23  Bruno Haible  <bruno@clisp.org>
27750
27751         localename: More tests.
27752         * tests/test-localename.c (SIZEOF): New macro.
27753         (categories): New variable.
27754         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
27755         test_locale_name_default): Add test w.r.t. thread locale.
27756         (test_locale_name_thread): New function.
27757         (main): Invoke it.
27758
27759         localename: Make aware of thread locale.
27760         * lib/localename.h (gl_locale_name_thread): New declaration.
27761         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
27762         behaviour with respect to thread locale.
27763         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
27764         <langinfo.h>, glthread/lock.h.
27765         (SIZE_BITS): New macro.
27766         (string_hash): New function.
27767         (struct hash_node): New type.
27768         (HASH_TABLE_SIZE): New macro.
27769         (struniq_hash_table, struniq_lock): New variables.
27770         (struniq): New function.
27771         (gl_locale_name_thread): New function.
27772         (gl_locale_name): Invoke it.
27773         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
27774         * modules/localename (Depends-on): Add lock.
27775         Reported by Mike Gran <spk121@yahoo.com>.
27776
27777 2009-12-23  Eric Blake  <ebb9@byu.net>
27778
27779         va-args: new module
27780         * modules/va-args: New file.
27781         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
27782         * MODULES.html.sh (Core language properties): Mention it.
27783
27784         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
27785         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
27786         named alias for __attribute__((__unused__)).
27787         * lib/chown.c: Update client.
27788         * lib/fchmodat.c: Likewise.
27789         * lib/fts.c: Likewise.
27790         * lib/getdate.y: Likewise.
27791         * lib/getgroups.c: Likewise.
27792         * lib/getopt.c: Likewise.
27793         * lib/getugroups.c: Likewise.
27794         * lib/mkdir.c: Likewise.
27795         * lib/mkfifo.c: Likewise.
27796         * lib/mkfifoat.c: Likewise.
27797         * lib/mknod.c: Likewise.
27798         * lib/mknodat.c: Likewise.
27799         * lib/readlink.c: Likewise.
27800         * lib/se-context.in.h: Likewise.
27801         * lib/se-selinux.in.h: Likewise.
27802         * lib/sockets.c: Likewise.
27803         * lib/symlink.c: Likewise.
27804         * lib/symlinkat.c: Likewise.
27805         * lib/unicodeio.c: Likewise.
27806         * lib/unistr.h: Likewise.
27807         * tests/test-areadlink.c: Likewise.
27808         * tests/test-areadlinkat.c: Likewise.
27809         * tests/test-filenamecat.c: Likewise.
27810         * tests/test-fseeko.c: Likewise.
27811         * tests/test-ftello.c: Likewise.
27812         * tests/test-getdate.c: Likewise.
27813         * tests/test-getgroups.c: Likewise.
27814         * tests/test-gethostname.c: Likewise.
27815         * tests/test-quotearg.c: Likewise.
27816         * tests/test-version-etc.c: Likewise.
27817         * tests/test-xalloc-die.c: Likewise.
27818         * tests/test-xfprintf-posix.c: Likewise.
27819         * tests/test-xprintf-posix.c: Likewise.
27820         * tests/test-xvasprintf.c: Likewise.
27821
27822         tests: avoid compiler warnings
27823         * tests/test-fcntl.c (main): Delete unused parameters.
27824         * tests/test-freopen-safer.c (main): Likewise.
27825         * tests/test-xalloc-die.c (main): Mark unused parameters.
27826         * tests/test-fseeko.c (main): Likewise.
27827         * tests/test-ftello.c (main): Likewise.
27828         * tests/test-nanosleep.c (main): Avoid declaration warning.
27829         * tests/test-sleep.c (main): Likewise.
27830         * tests/test-unsetenv.c (main): Silence warning about string
27831         literal.
27832         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
27833
27834 2009-12-23  Bruno Haible  <bruno@clisp.org>
27835
27836         * tests/test-localename.c (test_locale_name): New function, extracted
27837         from main. Also test mixed situations.
27838         (test_locale_name_posix, test_locale_name_environ,
27839         test_locale_name_default): New functions.
27840         (main): Invoke them all.
27841         * modules/localename-tests (configure.ac): Test for newlocale.
27842
27843 2009-12-23  Bruno Haible  <bruno@clisp.org>
27844
27845         unistd: Ensure getcwd gets declared before being overridden.
27846         * lib/unistd.in.h: Conditionally include <io.h>.
27847
27848 2009-12-22  Bruno Haible  <bruno@clisp.org>
27849
27850         wchar: Diagnose broken combination of glibc and gcc versions and flags.
27851         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
27852         (gl_WCHAR_H): Invoke it.
27853         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
27854         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
27855         Reported by Karl Berry <karl@freefriends.org>.
27856
27857 2009-12-22  Eric Blake  <ebb9@byu.net>
27858
27859         math, unistd: avoid redundant includes
27860         * lib/math.in.h (isnan): No need to re-include <math.h>.
27861         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
27862
27863         getsubopt: work around cygwin bug
27864         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
27865         avoid conflicting with system getsubopt.
27866         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
27867         bug.
27868
27869         getopt: synchronize from glibc
27870         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
27871         parameter order.  Adjust all callers.
27872         (_getopt_internal_r, main): Adjust quoting in error messages.
27873         Drop considerations for outdated POSIX 1003.2 error message.
27874         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
27875         callers.
27876         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
27877
27878         test-getopt: test stderr behavior
27879         * modules/getopt-posix-tests (Depends-on): Add dup2.
27880         * tests/test-getopt.c (ASSERT): Avoid stderr.
27881         (main): Move stderr to a temporary file.
27882         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
27883         Instead, add parameter to inform caller if output occurred.
27884         (test_getopt): Adjust all existing tests to expect silence, and
27885         add new tests of leading ":".
27886         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
27887         glibc shortcomings with leading "-:" or "+:" in optstring.
27888         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27889         Likewise.
27890         * doc/posix-functions/getopt.texi (getopt): Likewise.
27891
27892         test-getopt: enhance test
27893         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
27894         supports optind=0.
27895         * tests/test-getopt.c (OPTIND_MIN): Move...
27896         * tests/test-getopt.h (OPTIND_MIN): ...here.
27897         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
27898         Require that optind=0 works, since modern BSD supports it in
27899         addition to optreset, and since coreutils expects it.
27900         (test_getopt_long_only): New test.
27901         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
27902         glibc shortcomings with 'W;', and enforcement of optind=0.
27903         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27904         Likewise.
27905
27906 2009-12-21  Bruno Haible  <bruno@clisp.org>
27907
27908         localename: Improvements for MacOS X and Cygwin.
27909         * lib/localename.h (gl_locale_name_environ): New declaration.
27910         * lib/localename.c (gl_locale_name_environ): New function, extracted from
27911         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
27912         (gl_locale_name_posix): Invoke it.
27913         (gl_locale_name_default): Add comments. Use Windows native API also on
27914         Cygwin.
27915
27916 2009-12-21  Bruno Haible  <bruno@clisp.org>
27917
27918         Update list of Win32 locale ids.
27919         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
27920         (LANG_SAMI): Renamed from LANG_SAAMI.
27921         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
27922         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
27923         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
27924         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
27925         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
27926         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
27927         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
27928         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
27929         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
27930         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
27931         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
27932         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
27933         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
27934         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
27935         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
27936         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
27937         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
27938         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
27939         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
27940         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
27941         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
27942         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
27943         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
27944         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
27945         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
27946         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
27947         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
27948         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
27949         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
27950         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
27951         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
27952         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
27953         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
27954         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
27955         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
27956         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
27957         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
27958         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
27959         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
27960         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
27961         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
27962         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
27963         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
27964         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
27965         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
27966         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
27967         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
27968         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
27969         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
27970         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
27971         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
27972         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
27973         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
27974         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
27975         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
27976         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
27977         Add more languages and countries for Sami, Sorbian. Add more countries
27978         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
27979         for Pashto. Change country for Syriac, Tswana.
27980
27981 2009-12-21  Eric Blake  <ebb9@byu.net>
27982
27983         test-utimens: avoid spurious failure
27984         * tests/test-chown.h (nap): Factor...
27985         * tests/nap.h: ...into new file.
27986         * tests/test-lchown.h (nap): Avoid duplication.
27987         * tests/test-utimens-common.h (nap): Use shared implementation,
27988         necessary on file systems with 1-second resolution.
27989         * modules/chown-tests (Files): Include new file.
27990         * modules/fdutimensat-tests (Files): Likewise.
27991         * modules/futimens-tests (Files): Likewise.
27992         * modules/lchown-tests (Files): Likewise.
27993         * modules/openat-tests (Files): Likewise.
27994         * modules/utimens-tests (Files): Likewise.
27995         * modules/utimensat-tests (Files): Likewise.
27996
27997 2009-12-19  Eric Blake  <ebb9@byu.net>
27998
27999         futimens, utimensat: work around Linux bug
28000         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
28001         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
28002         * lib/utimensat.c (rpl_utimensat): Work around it.
28003         * lib/futimens.c (rpl_futimens): Adjust comment.
28004
28005         utimens: work around Linux ctime bug
28006         * lib/utimens.c (detect_ctime_bug): New helper function.
28007         (update_timespec): Differentiate between workaround needed for
28008         this bug vs. what is needed for systems that lack utimensat.
28009         (fdutimens, lutimens): Work around bug.
28010
28011         utimens: check for ctime update
28012         * tests/test-utimens-common.h (check_ctime): Define.
28013         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
28014         * tests/test-futimens.h (test_futimens): Likewise.
28015         * tests/test-lutimens.h (test_lutimens): Likewise.
28016         * doc/posix-functions/futimens.texi (futimens): Document the bug.
28017         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
28018
28019 2009-12-19  Bruno Haible  <bruno@clisp.org>
28020
28021         dprintf-posix: Check against memory leak fixed on 2009-12-15.
28022         * tests/test-dprintf-posix2.sh: New file.
28023         * tests/test-dprintf-posix2.c: New file.
28024         * modules/dprintf-posix-tests (Files): Add them.
28025         (configure.ac): Check for getrlimit and setrlimit.
28026         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
28027
28028 2009-12-19  Bruno Haible  <bruno@clisp.org>
28029
28030         fprintf-posix: Check against memory leak fixed on 2009-12-15.
28031         * tests/test-fprintf-posix3.sh: New file.
28032         * tests/test-fprintf-posix3.c: New file.
28033         * modules/fprintf-posix-tests (Files): Add them.
28034         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
28035
28036 2009-12-19  Eric Blake  <ebb9@byu.net>
28037
28038         dirfd: fix prototype
28039         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
28040         * lib/dirfd.c (dirfd): Likewise.
28041
28042         canonicalize: reduce memory usage
28043         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
28044         allocation to size.
28045         Reported by Solar Designer <solar@openwall.com>.
28046
28047 2009-12-19  Bruno Haible  <bruno@clisp.org>
28048
28049         New module attribute 'Applicability'.
28050         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
28051         * gnulib-tool: New option --extract-applicability.
28052         (func_usage): Document it.
28053         (sed_extract_prog): Recognize it.
28054         (func_get_applicability): New function.
28055         (func_import): Generalize handling of 'link-warning' module.
28056         * modules/link-warning (Applicability): New section.
28057         * modules/arg-nonnull (Applicability): New section.
28058         Repoted by Simon Josefsson <simon@josefsson.org>.
28059
28060 2009-12-19  Bruno Haible  <bruno@clisp.org>
28061
28062         fflush: tweak
28063         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
28064         * lib/fseeko.c (rpl_fseeko): Likewise.
28065
28066 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
28067
28068         * lib/gl_list.h: Fix typo in comment.
28069
28070 2009-12-16  Eric Blake  <ebb9@byu.net>
28071
28072         fcntl: use to simplify other modules
28073         * modules/cloexec (Depends-on): Add fcntl.
28074         * modules/fchdir (Depends-on): Likewise.
28075         * modules/fd-safer-flag (Depends-on): Likewise.
28076         * modules/unistd-safer (Depends-on): Likewise.
28077         * modules/dup3 (configure.ac): Set module indicator.
28078         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
28079         missing.
28080         * lib/fchdir.c (_gl_register_dup): Fix comment.
28081         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
28082         * lib/dup-safer.c (dup_safer): Likewise.
28083         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
28084         * lib/dup3.c (dup3): Likewise.
28085         * tests/test-fchdir.c (main): Enhance test.
28086         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
28087
28088         fcntl: port portions of fcntl to mingw
28089         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
28090         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
28091         replacement for mingw.
28092         * modules/fcntl (Description): Update.
28093         (Depends-on): Add dup2.
28094         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
28095         * modules/fcntl-h (Makefile.am): Substitute it.
28096         * lib/fcntl.in.h (fcntl): Update declaration.
28097         (F_DUPFD, F_GETFD): New macros, when needed.
28098         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
28099         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
28100         * tests/test-fcntl.c (check_flags, main): Enhance test for items
28101         we now guarantee.
28102
28103         fcntl: work around cygwin bug in F_DUPFD
28104         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
28105         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
28106         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
28107         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
28108         * doc/posix-functions/fcntl.texi (fcntl): Document it.
28109
28110         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
28111         * modules/fcntl (Files): List new files.
28112         (configure.ac): Run a test.
28113         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
28114         * lib/fcntl.c (rpl_fcntl): Likewise.
28115         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
28116         (gl_FCNTL_H): Always replace fcntl.h.
28117         * modules/fcntl-h (Makefile.am): Substitute witnesses.
28118         * lib/fcntl.in.h (fcntl): Declare replacement.
28119         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
28120         needed, plus a witness.
28121         * doc/posix-functions/fcntl.texi (fcntl): Document this.
28122         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
28123         * tests/test-fcntl.c: New file.
28124         * modules/fcntl-tests: Likewise.
28125
28126         binary-io: avoid potential compilation warning
28127         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
28128         directives.
28129
28130         fflush: avoid compilation error on NetBSD
28131         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
28132         between off_t and fpos_t, since the latter is sometimes a struct.
28133         * lib/fseeko.c (rpl_fseeko): Likewise.
28134         Reported by Alexander Nasonov <alnsn@yandex.ru>.
28135
28136 2009-12-15  Eric Blake  <ebb9@byu.net>
28137
28138         fcntl-h, stdio, sys_ioctl: fix declarations
28139         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
28140         function must not take arguments.
28141         * lib/sys_ioctl.in.h (ioctl): Likewise.
28142         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
28143         (open): Add a link warning.
28144
28145 2009-12-15  Jim Meyering  <meyering@redhat.com>
28146
28147         areadlink, areadlink-with-size: relax license to LGPLv2+
28148         * modules/areadlink (License): Relax to LGPLv2+.
28149         * modules/areadlink-with-size (License): Likewise.
28150
28151 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
28152             Bruno Haible  <bruno@clisp.org>
28153
28154         *printf: Fix memory leak.
28155         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
28156         * lib/vfprintf.c (vfprintf): Likewise.
28157         * lib/dprintf.c (dprintf): Likewise.
28158         * lib/vdprintf.c (vdprintf): Likewise.
28159
28160 2009-12-14  Eric Blake  <ebb9@byu.net>
28161
28162         accept4: adjust module dependencies
28163         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
28164
28165         utimens: one more try at avoiding compiler warning
28166         * lib/utimens.c (lutimens): Lower scope of result.
28167
28168 2009-12-13  Bruno Haible  <bruno@clisp.org>
28169
28170         Move the malloc checking from module 'list' to new module 'xlist'.
28171         * modules/xlist: New file.
28172         * lib/gl_xlist.h: New file.
28173         * lib/gl_xlist.c: New file.
28174         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
28175         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
28176         gl_list_add_last, gl_list_add_before, gl_list_add_after,
28177         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
28178         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
28179         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
28180         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
28181         gl_sortedlist_nx_add): New declarations.
28182         (struct gl_list_implementation): Rename and change methods accordingly.
28183         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
28184         (gl_list_nx_create): Renamed from gl_list_create.
28185         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
28186         (gl_list_nx_set_at): Renamed from gl_list_set_at.
28187         (gl_list_nx_add_first): Renamed from gl_list_add_first.
28188         (gl_list_nx_add_last): Renamed from gl_list_add_last.
28189         (gl_list_nx_add_before): Renamed from gl_list_add_before.
28190         (gl_list_nx_add_after): Renamed from gl_list_add_after.
28191         (gl_list_nx_add_at): Renamed from gl_list_add_at.
28192         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
28193         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
28194         gl_list_create_empty.
28195         (gl_list_nx_create): Renamed from gl_list_create.
28196         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
28197         (gl_list_nx_set_at): Renamed from gl_list_set_at.
28198         (gl_list_nx_add_first): Renamed from gl_list_add_first.
28199         (gl_list_nx_add_last): Renamed from gl_list_add_last.
28200         (gl_list_nx_add_before): Renamed from gl_list_add_before.
28201         (gl_list_nx_add_after): Renamed from gl_list_add_after.
28202         (gl_list_nx_add_at): Renamed from gl_list_add_at.
28203         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
28204         * lib/gl_array_list.c: Don't include xalloc.h.
28205         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
28206         NULL upon out-of-memory.
28207         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
28208         out-of-memory.
28209         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
28210         Change return type to 'int'.
28211         (gl_array_nx_set_at): Renamed from gl_array_set_at.
28212         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
28213         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
28214         upon out-of-memory.
28215         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
28216         upon out-of-memory.
28217         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
28218         upon out-of-memory.
28219         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
28220         upon out-of-memory.
28221         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
28222         out-of-memory.
28223         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
28224         Update.
28225         (gl_array_list_implementation): Update.
28226         * lib/gl_carray_list.c: Don't include xalloc.h.
28227         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
28228         Return NULL upon out-of-memory.
28229         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
28230         out-of-memory.
28231         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
28232         Change return type to 'int'.
28233         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
28234         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
28235         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
28236         upon out-of-memory.
28237         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
28238         upon out-of-memory.
28239         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
28240         out-of-memory.
28241         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
28242         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
28243         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
28244         Update.
28245         (gl_carray_list_implementation): Update.
28246         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
28247         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
28248         gl_linked_create_empty. Return NULL upon out-of-memory.
28249         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
28250         out-of-memory.
28251         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
28252         Change return type to 'int'. Return -1 upon out-of-memory.
28253         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
28254         out-of-memory.
28255         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
28256         upon out-of-memory.
28257         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
28258         upon out-of-memory.
28259         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
28260         NULL upon out-of-memory.
28261         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
28262         upon out-of-memory.
28263         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
28264         out-of-memory.
28265         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
28266         Update.
28267         * lib/gl_linked_list.c: Don't include xalloc.h.
28268         (gl_linked_list_implementation): Update.
28269         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
28270         (add_to_bucket): Change return type to 'int'.
28271         (gl_linkedhash_list_implementation): Update.
28272         * lib/gl_anytree_list1.h (free_subtree): New function.
28273         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
28274         gl_tree_create_empty. Return NULL upon out-of-memory.
28275         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
28276         Change return type to 'int'. Return -1 upon out-of-memory.
28277         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
28278         out-of-memory.
28279         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
28280         (gl_tree_remove_node): New function, moved here from
28281         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
28282         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
28283         Update.
28284         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
28285         malloc, not xmalloc. Return NULL upon out-of-memory.
28286         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
28287         out-of-memory.
28288         (gl_tree_remove_node_from_tree): New function, extracted from
28289         gl_tree_remove_node.
28290         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
28291         upon out-of-memory.
28292         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
28293         out-of-memory.
28294         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
28295         upon out-of-memory.
28296         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
28297         upon out-of-memory.
28298         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
28299         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
28300         not xmalloc. Return NULL upon out-of-memory.
28301         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
28302         out-of-memory.
28303         (gl_tree_remove_node_from_tree): New function, extracted from
28304         gl_tree_remove_node.
28305         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
28306         upon out-of-memory.
28307         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
28308         out-of-memory.
28309         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
28310         upon out-of-memory.
28311         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
28312         upon out-of-memory.
28313         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
28314         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
28315         gl_anytree_list1.h before gl_anyavltree_list2.h.
28316         (gl_avltree_list_implementation): Update.
28317         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
28318         gl_anytree_list1.h before gl_anyavltree_list2.h.
28319         (gl_rbtree_list_implementation): Update.
28320         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
28321         Change return type to 'int'. Return -1 upon out-of-memory. Use
28322         __builtin_expect.
28323         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
28324         (gl_avltreehash_list_implementation): Update.
28325         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
28326         (gl_rbtreehash_list_implementation): Update.
28327         * modules/array-list (Depends-on): Remove xalloc.
28328         * modules/carray-list (Depends-on): Likewise.
28329         * modules/linked-list (Depends-on): Likewise.
28330         * modules/linkedhash-list (Depends-on): Likewise.
28331         * modules/avltree-list (Depends-on): Likewise.
28332         * modules/rbtree-list (Depends-on): Likewise.
28333         * modules/avltreehash-list (Depends-on): Likewise.
28334         * modules/rbtreehash-list (Depends-on): Likewise.
28335
28336         * modules/xsublist: New file.
28337         * lib/gl_xsublist.h: New file.
28338         * lib/gl_xsublist.c: New file.
28339         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
28340         (gl_sublist_nx_create): New declaration.
28341         * lib/gl_sublist.c: Don't include xalloc.h.
28342         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
28343         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
28344         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
28345         Change return type to 'int'. Return -1 upon out-of-memory.
28346         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
28347         upon out-of-memory.
28348         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
28349         NULL upon out-of-memory.
28350         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
28351         upon out-of-memory.
28352         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
28353         NULL upon out-of-memory.
28354         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
28355         NULL upon out-of-memory.
28356         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
28357         upon out-of-memory.
28358         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
28359         (gl_sublist_list_implementation): Update.
28360         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
28361         upon out-of-memory.
28362         * modules/sublist (Depends-on): Remove xalloc.
28363
28364         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
28365         * tests/test-carray_list.c: Likewise.
28366         * tests/test-linked_list.c: Likewise.
28367         * tests/test-linkedhash_list.c: Likewise.
28368         * tests/test-avltree_list.c: Likewise.
28369         * tests/test-rbtree_list.c: Likewise.
28370         * tests/test-avltreehash_list.c: Likewise.
28371         * tests/test-rbtreehash_list.c: Likewise.
28372         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
28373         * modules/carray-list-tests (Makefile.am): Likewise.
28374         * modules/linked-list-tests (Makefile.am): Likewise.
28375         * modules/linkedhash-list-tests (Makefile.am): Likewise.
28376         * modules/avltree-list-tests (Makefile.am): Likewise.
28377         * modules/rbtree-list-tests (Makefile.am): Likewise.
28378         * modules/avltreehash-list-tests (Makefile.am): Likewise.
28379         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
28380
28381         * NEWS: Mention the changes.
28382
28383         * lib/clean-temp.c: Include gl_xlist.h.
28384         * modules/clean-temp (Depends-on): Add xlist.
28385
28386         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
28387         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
28388
28389         * tests/test-array_oset.c: Include gl_xlist.h.
28390         * modules/array-oset-tests (Depends-on): Add xlist.
28391
28392         Reported by José E. Marchesi <jemarch@gnu.org>.
28393
28394 2009-12-13  Bruno Haible  <bruno@clisp.org>
28395
28396         Move the malloc checking from module 'oset' to new module 'xoset'.
28397         * modules/xoset: New file.
28398         * lib/gl_xoset.h: New file.
28399         * lib/gl_xoset.c: New file.
28400         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
28401         declarations.
28402         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
28403         (struct gl_oset_implementation): Rename and change methods accordingly.
28404         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
28405         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
28406         'int'. Mark as __warn_unused_result__.
28407         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
28408         gl_oset_create_empty.
28409         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
28410         'int'.
28411         * lib/gl_array_oset.c: Don't include xalloc.h.
28412         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
28413         malloc, not xmalloc.
28414         (grow): Change return type to 'int'. Don't call xalloc_die.
28415         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
28416         to 'int'.
28417         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
28418         'int'.
28419         (gl_array_oset_implementation): Update.
28420         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
28421         gl_tree_create_empty.
28422         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
28423         'int'.
28424         * lib/gl_avltree_oset.c: Don't include xalloc.h.
28425         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
28426         xmalloc.
28427         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
28428         not xmalloc.
28429         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
28430         xmalloc.
28431         (gl_avltree_oset_implementation): Update.
28432         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
28433         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
28434         xmalloc.
28435         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
28436         not xmalloc.
28437         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
28438         xmalloc.
28439         (gl_rbtree_oset_implementation): Update.
28440         * modules/array-oset (Depends-on): Remove xalloc.
28441         * modules/avltree-oset (Depends-on): Likewise.
28442         * modules/rbtree-oset (Depends-on): Likewise.
28443         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
28444         * tests/test-avltree_oset.c: Likewise.
28445         * tests/test-rbtree_oset.c: Likewise.
28446         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
28447         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
28448         * modules/rbtree-oset-tests (Makefile.am): Likewise.
28449         * NEWS: Mention the change.
28450
28451 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
28452
28453         maint.mk: allow a project to override release-prep commands
28454         * top/maint.mk (alpha, beta, stable): Move release-preparatory
28455         commands into a new rule.
28456         (release-prep): New rule.
28457         (release-prep-hook): New overridable variable.
28458
28459 2009-12-13  Bruno Haible  <bruno@clisp.org>
28460
28461         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
28462
28463 2009-12-13  Jim Meyering  <meyering@redhat.com>
28464
28465         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
28466         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
28467
28468 2009-12-12  Bruno Haible  <bruno@clisp.org>
28469
28470         duplocale: Tweak.
28471         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
28472
28473 2009-12-12  Karl Berry  <karl@gnu.org>
28474
28475         * config/srclist.txt (strtoll.c): tab changes, no more sync.
28476
28477 2009-12-12  Bruno Haible  <bruno@clisp.org>
28478
28479         * m4/po.m4: Undo incorrect untabification.
28480
28481 2009-12-12  Bruno Haible  <bruno@clisp.org>
28482
28483         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
28484         * modules/c-strtod (Depends-on): Add locale.
28485         * modules/c-strtold (Depends-on): Likewise.
28486
28487 2009-12-12  Bruno Haible  <bruno@clisp.org>
28488
28489         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
28490
28491 2009-12-11  Eric Blake  <ebb9@byu.net>
28492
28493         setenv: relax requirement in light of POSIX ruling
28494         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
28495         not NULL.
28496         * tests/test-setenv.c (main): Relax test.
28497         * tests/test-unsetenv.c (main): Likewise.
28498         * doc/posix-functions/setenv.texi (setenv): Document this.
28499         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
28500
28501 2009-12-11  Bruno Haible  <bruno@clisp.org>
28502
28503         New module 'fd-safer-flag'.
28504         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
28505         * lib/dup-safer.c (dup_safer_flag): Remove function.
28506         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
28507         * lib/fd-safer.c (fd_safer_flag): Remove function.
28508         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
28509         * modules/cloexec (configure.ac): Drop indicator macro.
28510         * modules/fd-safer-flag: New file.
28511         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
28512         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
28513         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
28514
28515 2009-12-11  Bruno Haible  <bruno@clisp.org>
28516
28517         Tests for module 'nl_langinfo'.
28518         * modules/nl_langinfo-tests: New file.
28519         * tests/test-nl_langinfo.sh: New file.
28520         * tests/test-nl_langinfo.c: New file.
28521
28522         New module 'nl_langinfo'.
28523         * lib/nl_langinfo.c: New file.
28524         * m4/nl_langinfo.m4: New file.
28525         * modules/nl_langinfo: New file.
28526         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
28527
28528 2009-12-11  Bruno Haible  <bruno@clisp.org>
28529
28530         Tests for module 'langinfo'.
28531         * modules/langinfo-tests: New file.
28532         * tests/test-langinfo.c: New file.
28533
28534         New module 'langinfo'.
28535         * lib/langinfo.in.h: New file.
28536         * m4/langinfo_h.m4: New file.
28537         * modules/langinfo: New file.
28538         * doc/posix-headers/langinfo.texi: Mention the new module.
28539
28540 2009-12-11  Bruno Haible  <bruno@clisp.org>
28541
28542         * lib/config.charset: Untabify.
28543
28544 2009-12-11  Bruno Haible  <bruno@clisp.org>
28545
28546         * modules/unistd-safer (configure.ac): Drop indicator macro.
28547
28548 2009-12-11  Bruno Haible  <bruno@clisp.org>
28549
28550         Move pipe2-safer code to its own file.
28551         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
28552         * lib/pipe-safer.c (pipe2_safer): Remove function.
28553         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
28554         (Makefile.am): Add it to lib_SOURCES.
28555
28556 2009-12-10  Bruno Haible  <bruno@clisp.org>
28557
28558         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
28559
28560 2009-12-10  Bruno Haible  <bruno@clisp.org>
28561
28562         Declare which arguments expect non-NULL values, for GCC and clang.
28563         * build-aux/arg-nonnull.h: New file.
28564         * modules/arg-nonnull: New file.
28565         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
28566         (inet_ntop, inet_pton): Use it.
28567         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
28568         (closedir, dirfd, opendir, scandir, alphasort): Use it.
28569         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
28570         (open, openat): Use it.
28571         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
28572         (fnmatch): Use it.
28573         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
28574         (getopt, getopt_long, getopt_long_only): Use it.
28575         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
28576         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
28577         Use it.
28578         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
28579         (iconv_open): Use it.
28580         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
28581         (strtoimax, strtoumax): Use it.
28582         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
28583         (duplocale): Use it.
28584         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
28585         (frexp, frexpl): Use it.
28586         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
28587         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
28588         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
28589         (tsearch, tfind, tdelete, twalk): Use it.
28590         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
28591         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
28592         sigpending): Use it.
28593         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
28594         (posix_spawn, posix_spawnp, posix_spawnattr_init,
28595         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
28596         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
28597         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
28598         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
28599         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
28600         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
28601         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
28602         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
28603         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
28604         Use it.
28605         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
28606         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
28607         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
28608         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
28609         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
28610         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
28611         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
28612         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
28613         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
28614         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
28615         strtoull, unsetenv): Use it.
28616         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
28617         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
28618         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
28619         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
28620         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
28621         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
28622         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
28623         (strcasecmp, strncasecmp): Use it.
28624         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
28625         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
28626         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
28627         rpl_setsockopt): Use it.
28628         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
28629         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
28630         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
28631         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
28632         (gettimeofday): Use it.
28633         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
28634         (times): Use it.
28635         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
28636         (uname): Use it.
28637         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
28638         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
28639         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
28640         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
28641         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
28642         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
28643         unlinkat, write): Use it.
28644         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
28645         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
28646         * lib/argv-iter.h: Include arg-nonnull.h.
28647         (_ATTRIBUTE_NONNULL_): Remove macro.
28648         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
28649         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
28650         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
28651         optimization.
28652         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
28653         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
28654         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
28655         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
28656         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
28657         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
28658         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
28659         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
28660         * modules/arpa_inet (Depends-on): Add arg-nonnull.
28661         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
28662         * modules/dirent (Depends-on): Add arg-nonnull.
28663         (Makefile.am): Insert arg-nonnull.h into dirent.h.
28664         * modules/fcntl-h (Depends-on): Add arg-nonnull.
28665         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
28666         * modules/fnmatch (Depends-on): Add arg-nonnull.
28667         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
28668         * modules/getopt-posix (Depends-on): Add arg-nonnull.
28669         (Makefile.am): Insert arg-nonnull.h into getopt.h.
28670         * modules/glob (Depends-on): Add arg-nonnull.
28671         (Makefile.am): Insert arg-nonnull.h into glob.h.
28672         * modules/iconv_open (Depends-on): Add arg-nonnull.
28673         (Makefile.am): Insert arg-nonnull.h into iconv.h.
28674         * modules/inttypes (Depends-on): Add arg-nonnull.
28675         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
28676         * modules/locale (Depends-on): Add arg-nonnull.
28677         (Makefile.am): Insert arg-nonnull.h into locale.h.
28678         * modules/math (Depends-on): Add arg-nonnull.
28679         (Makefile.am): Insert arg-nonnull.h into math.h.
28680         * modules/netdb (Depends-on): Add arg-nonnull.
28681         (Makefile.am): Insert arg-nonnull.h into netdb.h.
28682         * modules/search (Depends-on): Add arg-nonnull.
28683         (Makefile.am): Insert arg-nonnull.h into search.h.
28684         * modules/signal (Depends-on): Add arg-nonnull.
28685         (Makefile.am): Insert arg-nonnull.h into signal.h.
28686         * modules/spawn (Depends-on): Add arg-nonnull.
28687         (Makefile.am): Insert arg-nonnull.h into spawn.h.
28688         * modules/stdio (Depends-on): Add arg-nonnull.
28689         (Makefile.am): Insert arg-nonnull.h into stdio.h.
28690         * modules/stdlib (Depends-on): Add arg-nonnull.
28691         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
28692         * modules/string (Depends-on): Add arg-nonnull.
28693         (Makefile.am): Insert arg-nonnull.h into string.h.
28694         * modules/strings (Depends-on): Add arg-nonnull.
28695         (Makefile.am): Insert arg-nonnull.h into strings.h.
28696         * modules/sys_socket (Depends-on): Add arg-nonnull.
28697         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
28698         * modules/sys_stat (Depends-on): Add arg-nonnull.
28699         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
28700         * modules/sys_time (Depends-on): Add arg-nonnull.
28701         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
28702         * modules/sys_times (Depends-on): Add arg-nonnull.
28703         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
28704         * modules/sys_utsname (Depends-on): Add arg-nonnull.
28705         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
28706         * modules/time (Depends-on): Add arg-nonnull.
28707         (Makefile.am): Insert arg-nonnull.h into time.h.
28708         * modules/unistd (Depends-on): Add arg-nonnull.
28709         (Makefile.am): Insert arg-nonnull.h into unistd.h.
28710         * modules/wchar (Depends-on): Add arg-nonnull.
28711         (Makefile.am): Insert arg-nonnull.h into wchar.h.
28712         * modules/argv-iter (Depends-on): Add arg-nonnull.
28713         * tests/test-canonicalize.c (null_ptr): New function.
28714         (main): Use it.
28715         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
28716         (main): Use it.
28717         * tests/test-memmem.c (null_ptr): New function.
28718         (main): Use it.
28719         Reported by Jim Meyering.
28720
28721 2009-12-10  Bruno Haible  <bruno@clisp.org>
28722
28723         Use spaces for indentation, not tabs.
28724         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
28725         * m4/*.m4: Untabify.
28726         * build-aux/*.h: Untabify.
28727         * tests/**/*.[hc]: Untabify.
28728         * README: New section "Indent with spaces, not TABs", based on
28729         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
28730         * NEWS: Mention the change.
28731
28732 2009-12-10  Bruno Haible  <bruno@clisp.org>
28733
28734         pty test: Fix link error.
28735         * modules/pty-tests (Makefile.am): Add the default LDADD value to
28736         test_pty_LDADD.
28737
28738 2009-12-07  Simon Josefsson  <simon@josefsson.org>
28739
28740         * modules/pty: New file.
28741         * modules/pty-tests: New file.
28742         * m4/pty.m4: New file.
28743         * tests/test-pty.c: New file.
28744         * doc/glibc-headers/pty.texi: Modified.
28745         * doc/glibc-functions/forkpty.texi: Modified.
28746         * doc/glibc-functions/openpty.texi: Modified.
28747
28748 2009-12-10  Bruno Haible  <bruno@clisp.org>
28749
28750         Avoid syntax error in C++ mode.
28751         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
28752
28753 2009-12-10  Bruno Haible  <bruno@clisp.org>
28754
28755         Use sed with option -e.
28756         * gnulib-tool (func_version, func_emit_copyright_notice,
28757         func_emit_initmacro_end, func_import, func_create_testdir): Pass
28758         option -e to sed.
28759         * modules/link-warning (Makefile.am): Likewise.
28760
28761 2009-12-10  Jim Meyering  <meyering@redhat.com>
28762
28763         mgetgroups: do not write bytes beyond end of malloc'd buffer
28764         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
28765         username, we call getgroups with a one-element-shorter buffer,
28766         but still told it the length was original, max_n_groups.
28767
28768 2009-12-09  Eric Blake  <ebb9@byu.net>
28769
28770         cloexec: relax license
28771         * modules/cloexec (Maintainer): Add myself.
28772         (License): Use LGPL, not GPL.
28773
28774         link-warning: optimize generation
28775         * modules/link-warning (Makefile.am): Reduce process usage.
28776
28777 2009-12-09  Bruno Haible  <bruno@clisp.org>
28778
28779         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
28780         workaround was added on 2009-11-17.
28781
28782 2009-12-09  Jim Meyering  <meyering@redhat.com>
28783             Bruno Haible  <bruno@clisp.org>
28784
28785         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
28786         * modules/link-warning (Makefile.am): Make the comment-removing sed
28787         command more robust in the face of bootstrap-prepended comment lines.
28788
28789 2009-12-09  Bruno Haible  <bruno@clisp.org>
28790
28791         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
28792         most one group.
28793
28794 2009-12-09  Simon Josefsson <simon@josefsson.org>
28795             Bruno Haible  <bruno@clisp.org>
28796
28797         * build-aux/link-warning.h: Add copyright notice.
28798         * modules/link-warning (Makefile.am): Generate link-warning.h from
28799         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
28800         * NEWS: Mention change in link-warning module.
28801         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
28802         * modules/dirent (Makefile.am): Add dependency to dirent.h.
28803         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
28804         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
28805         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
28806         * modules/math (Makefile.am): Add dependency to math.h.
28807         * modules/search (Makefile.am): Add dependency to search.h.
28808         * modules/signal (Makefile.am): Add dependency to signal.h.
28809         * modules/spawn (Makefile.am): Add dependency to spawn.h.
28810         * modules/stdio (Makefile.am): Add dependency to stdio.h.
28811         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
28812         * modules/string (Makefile.am): Add dependency to string.h.
28813         * modules/strings (Makefile.am): Add dependency to strings.h.
28814         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
28815         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
28816         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
28817         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
28818         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
28819         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
28820         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
28821         * modules/unistd (Makefile.am): Add dependency to unistd.h.
28822         * modules/wchar (Makefile.am): Add dependency to wchar.h.
28823
28824 2009-12-09  Bruno Haible  <bruno@clisp.org>
28825
28826         fchdir: Optimize away rpl_fstat when possible.
28827         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
28828         REPLACE_OPEN_DIRECTORY.
28829         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
28830
28831 2009-12-09  Bruno Haible  <bruno@clisp.org>
28832
28833         * lib/fchdir.c: Update comment.
28834
28835 2009-12-09  Bruno Haible  <bruno@clisp.org>
28836
28837         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
28838
28839 2009-12-08  Eric Blake  <ebb9@byu.net>
28840
28841         fchdir: avoid memory leak on re-registration.
28842         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
28843
28844 2009-12-08  Jim Meyering  <meyering@redhat.com>
28845
28846         init.sh: avoid Solaris 10 /bin/sh portability problem
28847         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
28848         sourced script:
28849           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
28850           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
28851           bar
28852         tests/init.sh relied on that, accepting a --set-path=DIR argument,
28853         and two tests used that idiom.
28854         * tests/init.sh: Update suggested usage comments.
28855         (path_prepend_): New function, to be used in place
28856         of the --src-path=DIR option.
28857         (setup_): Move PATH-prepending code into path_prepend_.
28858         * tests/test-pread.sh: Adapt to new usage.
28859         * tests/test-xalloc-die.sh: Likewise.
28860
28861 2009-12-08  Simon Josefsson  <simon@josefsson.org>
28862
28863         * doc/gnulib.texi (Glibc pty.h): Add.
28864         * doc/glibc-functions/forkpty.texi: Add.
28865         * doc/glibc-functions/openpty.texi: Add.
28866         Suggested by Bruno Haible.
28867
28868 2009-12-08  Eric Blake  <ebb9@byu.net>
28869
28870         fchdir: fix logic bugs
28871         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
28872         * tests/test-fchdir.c (main): Enhance test.
28873         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
28874         is in use.
28875
28876         dup2: fix logic bugs
28877         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
28878         REPLACE_DUP2 to decide when rpl_dup2 is needed.
28879         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
28880         exists.
28881         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
28882
28883 2009-12-07  Eric Blake  <ebb9@byu.net>
28884
28885         unlink: fix m4 detection
28886         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
28887
28888         unistd-safer: add unit test
28889         * modules/unistd-safer-tests: New file.
28890         * tests/test-dup-safer.c: Likewise.
28891         * tests/test-cloexec.c (setmode): Avoid compiler warning.
28892         * tests/test-dup2.c (setmode): Likewise.
28893         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
28894
28895         cloexec: preserve text vs. binary across dup_cloexec
28896         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
28897         mode.
28898         * modules/dup2-tests (Depends-on): Add binary-io.
28899         * modules/cloexec-tests (Depends-on): Likewise.
28900         * tests/test-dup2.c (setmode, is_mode): New helpers.
28901         (main): Add tests that translation mode is preserved.
28902         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
28903         Reported by Bruno Haible.
28904
28905         mgetgroups: reduce duplicate listings
28906         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
28907         resulting array.
28908         * tests/test-chown.h (test_chown): Simplify client.
28909         * tests/test-lchown.h (test_lchown): Likewise.
28910
28911 2009-12-06  Bruno Haible  <bruno@clisp.org>
28912
28913         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
28914         value.
28915
28916 2009-12-06  Bruno Haible  <bruno@clisp.org>
28917
28918         * lib/progname.c: Include stdio.h, stdlib.h.
28919         (set_program_name): Reject a NULL argument.
28920
28921 2009-12-05  Eric Blake  <ebb9@byu.net>
28922
28923         pipe2-safer: new module
28924         * modules/pipe2-safer: New file.
28925         * lib/unistd-safer.h (pipe2_safer): New prototype.
28926         * lib/unistd--.h (pipe2): New wrapper.
28927         * lib/pipe-safer.c (pipe2_safer): New function.
28928         * modules/pipe (Depends-on): Add pipe2-safer.
28929         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
28930
28931         stdlib-safer: preserve cloexec flag for mkostemp[s]
28932         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
28933         fd_safer_flag.
28934
28935         unistd-safer: allow preservation of cloexec status via flag
28936         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
28937         prototypes.
28938         * lib/dup-safer.c (dup_safer_flag): New function.
28939         * lib/fd-safer.c (fd_safer_flag): Likewise.
28940         * modules/cloexec (configure.ac): Set witness.
28941
28942         test-dup2: enhance test
28943         * modules/dup2-tests (Depends-on): Add cloexec.
28944         * tests/test-dup2.c (main): Enhance test.
28945
28946         cloexec: add dup_cloexec
28947         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
28948         header and comments.
28949         * lib/cloexec.c (set_cloexec_flag): Add comments.
28950         (dup_cloexec): New function, with mingw implementation borrowed
28951         from...
28952         * lib/w32spawn.h (dup_noinherit): ...here.
28953         * modules/execute (Depends-on): Add cloexec.
28954         * modules/pipe (Depends-on): Likewise.
28955         * modules/cloexec (Depends-on): Add dup2.
28956         * modules/cloexec-tests (Files): New file.
28957         * tests/test-cloexec.c: Likewise.
28958
28959         test-xalloc-die: fix test for mingw
28960         * modules/xalloc-die-tests (Files): Add tests/init.sh.
28961         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
28962         directory and .exe suffix off argv[0] output.
28963
28964         test-fseeko: fix test for mingw
28965         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
28966         than undefining fseek, so test will pass on mingw.
28967
28968 2009-12-05  Bruno Haible  <bruno@clisp.org>
28969
28970         * lib/progname.h (set_program_name): Clarify specification.
28971         * lib/progname.c (set_program_name): Likewise.
28972         Reported by Jim Meyering.
28973
28974 2009-12-05  Jim Meyering  <meyering@redhat.com>
28975
28976         maint.mk: backslash-escape parens in default regexp
28977         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
28978         backslash-escape the literal parentheses.
28979
28980         maint.mk: news-date-check: use grep -E
28981         * top/maint.mk (today): Define a Make variable, not a...
28982         (news-date-check): ...shell variable.
28983         (news-date-regexp): Use the Make variable.
28984         Use grep's -E option.  Change the failing diagnostic to mention
28985         the variable, $(news-date-regexp).
28986
28987 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
28988
28989         maintainer-makefile: allow customization of NEWS entry format
28990         * top/maint.mk (news-date-regexp): New overridable variable.
28991         (news-date-check): Use it.
28992
28993 2009-12-04  Eric Blake  <ebb9@byu.net>
28994
28995         mgetgroups: add xgetgroups, and avoid ENOSYS failures
28996         * lib/mgetgroups.h (xgetgroups): New prototype.
28997         * lib/mgetgroups.c (xgetgroups): New wrapper.
28998         (mgetgroups): Handle ENOSYS.
28999         * modules/mgetgroups (Depends-on): Add realloc.
29000         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
29001
29002         mgetgroups: avoid argument promotion issues with -1
29003         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
29004         for invalid gid_t.
29005         * tests/test-chown.h (getegid, test_chown): Likewise.
29006         * tests/test-lchown.h (getegid, test_lchown): Likewise.
29007
29008 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
29009
29010         exclude: Fix header file problems.
29011         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
29012
29013 2009-12-01  Jim Meyering  <meyering@redhat.com>
29014
29015         fts: fts_open: do not let an empty string cause immediate failure
29016         This is required in support of GNU rm, for which the command
29017         "rm A '' B" must process and remove both A and B, in spite of
29018         the empty string argument.
29019         * lib/fts.c (fts_open): Do not let the presence of an empty string
29020         cause fts_open to fail immediately.  Most fts-using tools must be
29021         able to process all arguments, in order, and can be expected to
29022         diagnose such arguments themselves.
29023
29024 2009-11-30  Eric Blake  <ebb9@byu.net>
29025
29026         utimens: fix compilation error
29027         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
29028         Declare variable at right scope.
29029
29030 2009-11-29  Jim Meyering  <meyering@redhat.com>
29031
29032         bootstrap: handle perl-5.11's changed --version output
29033         * build-aux/bootstrap (get_version): Handle perl separately,
29034         since perl-5.11's --version output is different.
29035
29036 2009-11-28  Jim Meyering  <meyering@redhat.com>
29037
29038         userspec: depend on the inttostr module, too
29039         * modules/userspec (Depends-on): Add inttostr.
29040
29041         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
29042         * lib/userspec.c (parse_with_separator): Do not accept a user ID
29043         number of MAXUID when it evaluates to (uid_t) -1.
29044         Likewise for group ID.  Reported by Matt McCutchen in
29045         <http://savannah.gnu.org/bugs/?28113>
29046
29047         userspec: reformat to use spaces, not TABs
29048         * lib/userspec.c: Expand TABs to spaces.
29049         Add Emacs' "indent-tabs-mode: nil" hint.
29050
29051 2009-11-27  Eric Blake  <ebb9@byu.net>
29052
29053         getopt-gnu: flush out another BSD bug
29054         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
29055         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
29056         flush out BSD bug.
29057         * tests/test-getopt.h (test_getopt): End lists with NULL.
29058         * tests/test-getopt_long.h (test_getopt_long): Likewise.
29059         (test_getopt_long_posix): Enhance test.
29060         * modules/getopt-posix-tests (Depends-on): Add stdbool.
29061         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
29062         getopt-gnu.
29063         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
29064         Likewise.
29065
29066 2009-11-27  Simon Josefsson  <simon@josefsson.org>
29067
29068         * modules/idpriv-droptemp-tests (Notice): Fix text.
29069
29070 2009-11-27  Jim Meyering  <meyering@redhat.com>
29071
29072         test-xalloc-die: avoid spurious failure due to libtool argv difference
29073         In a libtool-enabled project, this test would fail due to a difference
29074         in the emitted program name, e.g.,
29075         -test-xalloc-die: memory exhausted
29076         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
29077         Use program to avoid that.
29078         * modules/xalloc-die-tests (Depends-on): Add progname.
29079         * tests/test-xalloc-die.c: Include progname.h".
29080         (program_name): Remove decl.
29081         (main): Call set_program_name.
29082         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
29083
29084 2009-11-26  Richard Jones  <rjones@redhat.com>
29085
29086         w32sock: leave win32 error in place.
29087         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
29088
29089 2009-11-26  Eric Blake  <ebb9@byu.net>
29090
29091         init.sh: suggest to use skip_ and fail_ functions in comments
29092         * tests/init.sh: Add a sentence.
29093
29094 2009-11-25  Bruno Haible  <bruno@clisp.org>
29095
29096         init.sh: add documentation in comments
29097         * tests/init.sh: Add some developer and user documentation.
29098
29099 2009-11-26  Jim Meyering  <meyering@redhat.com>
29100
29101         init.sh: accommodate even those who specify bogus srcdir manually
29102         * tests/init.sh: Normally, srcdir is guaranteed by automake and
29103         configure-time tests to be sanitized, so that there is no need to
29104         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
29105         (with no double quotes) suffices.  However, since tests may be
29106         invoked manually, and since you may explicitly set srcdir to the
29107         name of a directory containing spaces, do quote its uses here.
29108         * tests/test-pread.sh: Likewise.
29109         Suggested by Bruno Haible.
29110
29111         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
29112         * tests/test-pread.sh: Write no data into the pipe, because
29113         test-pread actually reads none.  This avoids a diagnostic,
29114         "bash: echo: write error: Broken pipe", that arises in the unusual
29115         event something is ignoring SIGPIPE, and might be interpreted
29116         as some sort of failure.  Reported by Bruno Haible.
29117
29118 2009-11-25  Jim Meyering  <meyering@redhat.com>
29119
29120         test-pread: cover failure with ESPIPE and EINVAL
29121         * tests/test-pread.c (main): Test for failure, too.
29122         * tests/test-pread.sh: Invoke with stdin on a pipe.
29123         Suggested by Eric Blake.
29124
29125         pread: improvement and fix
29126         * modules/pread (Depends-on): Depend on lseek, for portability to
29127         e.g., mingw.  Suggested by Eric Blake.
29128         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
29129
29130         unistd.in.h: correct declaration of pread
29131         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
29132         Reported by Richard W.M. Jones.
29133
29134         test-pread.sh: distribute the test script
29135         * modules/pread-tests (Files): Include test-pread.sh.
29136
29137         test-pread.sh: clean up
29138         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
29139         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
29140         That is unnecessary, since it's always ".".
29141         Suggestion from Eric Blake.
29142
29143         test-pread.sh: make executable
29144         * tests/test-pread.sh: Set executable bit.
29145         Reported by Eric Blake.
29146
29147         correct typo in test-pread.sh
29148         * tests/test-pread.sh: Add #! line.
29149
29150         test pread
29151         * tests/test-pread.c: New file.
29152         * tests/test-pread.sh: Likewise.
29153         * modules/pread-tests: Likewise.
29154
29155         pread: new module
29156         * modules/pread: New file.
29157         * lib/unistd.in.h (pread): Define/declare.
29158         * lib/pread.c (pread): New file.
29159         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
29160         * modules/unistd (Makefile.am): Substitute witnesses.
29161         * doc/posix-functions/pread.texi (pread): Update.
29162         * MODULES.html.sh: Add pread.
29163
29164 2009-11-25  Jim Meyering  <meyering@redhat.com>
29165
29166         tests/init.sh: new file to be used via most *.sh tests
29167         * tests/init.sh: New file.
29168
29169 2009-11-25  Eric Blake  <ebb9@byu.net>
29170
29171         utimens: work around older Linux failure with symlinks
29172         * lib/utimens.c (lutimensat_works_really): New variable.
29173         (fdutimens, lutimens): Use it to manage kernels that support
29174         nanosecond times on files, but not on symlinks.
29175         Reported by OndÅ™ej Vašík.
29176
29177         utimes: fix configure grammar
29178         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
29179
29180 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
29181
29182         regex: Fix fastmap for multibyte character ranges.
29183         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
29184         characters when a multibyte character range is included.
29185
29186 2009-11-22  Andy Wingo  <wingo@pobox.com>
29187
29188         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
29189         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
29190
29191 2009-11-24  Bruno Haible  <bruno@clisp.org>
29192
29193         doc: Most *_l functions exist in MacOS X 10.5.
29194         * doc/posix-functions/duplocale.texi: Update platforms list.
29195         * doc/posix-functions/freelocale.texi: Likewise.
29196         * doc/posix-functions/newlocale.texi: Likewise.
29197         * doc/posix-functions/uselocale.texi: Likewise.
29198         * doc/posix-functions/isalnum_l.texi: Likewise.
29199         * doc/posix-functions/isalpha_l.texi: Likewise.
29200         * doc/posix-functions/isblank_l.texi: Likewise.
29201         * doc/posix-functions/iscntrl_l.texi: Likewise.
29202         * doc/posix-functions/isdigit_l.texi: Likewise.
29203         * doc/posix-functions/isgraph_l.texi: Likewise.
29204         * doc/posix-functions/islower_l.texi: Likewise.
29205         * doc/posix-functions/isprint_l.texi: Likewise.
29206         * doc/posix-functions/ispunct_l.texi: Likewise.
29207         * doc/posix-functions/isspace_l.texi: Likewise.
29208         * doc/posix-functions/isupper_l.texi: Likewise.
29209         * doc/posix-functions/iswalnum_l.texi: Likewise.
29210         * doc/posix-functions/iswalpha_l.texi: Likewise.
29211         * doc/posix-functions/iswblank_l.texi: Likewise.
29212         * doc/posix-functions/iswcntrl_l.texi: Likewise.
29213         * doc/posix-functions/iswctype_l.texi: Likewise.
29214         * doc/posix-functions/iswdigit_l.texi: Likewise.
29215         * doc/posix-functions/iswgraph_l.texi: Likewise.
29216         * doc/posix-functions/iswlower_l.texi: Likewise.
29217         * doc/posix-functions/iswprint_l.texi: Likewise.
29218         * doc/posix-functions/iswpunct_l.texi: Likewise.
29219         * doc/posix-functions/iswspace_l.texi: Likewise.
29220         * doc/posix-functions/iswupper_l.texi: Likewise.
29221         * doc/posix-functions/iswxdigit_l.texi: Likewise.
29222         * doc/posix-functions/isxdigit_l.texi: Likewise.
29223         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
29224         * doc/posix-functions/strcasecmp_l.texi: Likewise.
29225         * doc/posix-functions/strcoll_l.texi: Likewise.
29226         * doc/posix-functions/strfmon_l.texi: Likewise.
29227         * doc/posix-functions/strftime_l.texi: Likewise.
29228         * doc/posix-functions/strncasecmp_l.texi: Likewise.
29229         * doc/posix-functions/strxfrm_l.texi: Likewise.
29230         * doc/posix-functions/tolower_l.texi: Likewise.
29231         * doc/posix-functions/toupper_l.texi: Likewise.
29232         * doc/posix-functions/towctrans_l.texi: Likewise.
29233         * doc/posix-functions/towlower_l.texi: Likewise.
29234         * doc/posix-functions/towupper_l.texi: Likewise.
29235         * doc/posix-functions/wcscoll_l.texi: Likewise.
29236         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
29237         * doc/posix-functions/wctrans_l.texi: Likewise.
29238         * doc/posix-functions/wctype_l.texi: Likewise.
29239         * doc/glibc-functions/strptime_l.texi: Likewise.
29240         * doc/glibc-functions/strtod_l.texi: Likewise.
29241         * doc/glibc-functions/strtof_l.texi: Likewise.
29242         * doc/glibc-functions/strtol_l.texi: Likewise.
29243         * doc/glibc-functions/strtold_l.texi: Likewise.
29244         * doc/glibc-functions/strtoll_l.texi: Likewise.
29245         * doc/glibc-functions/strtoul_l.texi: Likewise.
29246         * doc/glibc-functions/strtoull_l.texi: Likewise.
29247         * doc/glibc-functions/wcsftime_l.texi: Likewise.
29248         * doc/glibc-functions/wcstod_l.texi: Likewise.
29249         * doc/glibc-functions/wcstof_l.texi: Likewise.
29250         * doc/glibc-functions/wcstol_l.texi: Likewise.
29251         * doc/glibc-functions/wcstold_l.texi: Likewise.
29252         * doc/glibc-functions/wcstoll_l.texi: Likewise.
29253         * doc/glibc-functions/wcstoul_l.texi: Likewise.
29254         * doc/glibc-functions/wcstoull_l.texi: Likewise.
29255
29256 2009-11-24  Bruno Haible  <bruno@clisp.org>
29257
29258         duplocale: Fix logic bug.
29259         * lib/duplocale.c: Don't include <langinfo.h>.
29260         (_NL_LOCALE_NAME): Remove macro.
29261         (rpl_duplocale): Use setlocale instead of nl_langinfo.
29262         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
29263
29264 2009-11-23  Jim Meyering  <meyering@redhat.com>
29265
29266         test-update-copyright: don't hard-code /usr/bin/perl
29267         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
29268         perl to print the current year.  Gilles Espinasse reported that
29269         the replaced use of perl was hard-coded as /usr/bin/perl.
29270
29271 2009-11-23  Bruno Haible  <bruno@clisp.org>
29272
29273         duplocale: Add support for glibc 2.3.x.
29274         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
29275
29276 2009-11-22  Bruno Haible  <bruno@clisp.org>
29277
29278         vasnprintf: Tiny optimization.
29279         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
29280         MacOS X.
29281
29282 2009-11-22  Bruno Haible  <bruno@clisp.org>
29283
29284         Tests for module 'duplocale'.
29285         * modules/duplocale-tests: New file.
29286         * tests/test-duplocale.c: New file.
29287
29288         New module 'duplocale'.
29289         * m4/duplocale.m4: New file.
29290         * lib/locale.in.h (duplocale): New declaration.
29291         * lib/duplocale.c: New file.
29292         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
29293         gl_LOCALE_H_DEFAULTS): New macros.
29294         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
29295         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
29296         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
29297         REPLACE_DUPLOCALE.
29298         * modules/duplocale: New file.
29299         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
29300
29301 2009-11-22  Bruno Haible  <bruno@clisp.org>
29302
29303         * modules/locale-tests (configure.ac): Test for newlocale function.
29304         * tests/test-locale.c: When the system has extended locale functions,
29305         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
29306
29307         locale: Make locale_t available when possible.
29308         * lib/locale.in.h: Include <xlocale.h> when it exists.
29309         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
29310         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
29311         * modules/locale (Depends-on): Add extensions.
29312         (Makefile.am): Also substitute HAVE_XLOCALE_H.
29313         * doc/posix-headers/locale.texi: Document the problem with locale_t.
29314
29315 2009-11-22  Bruno Haible  <bruno@clisp.org>
29316
29317         Add comments.
29318         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
29319         invocation.
29320         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
29321         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
29322         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
29323
29324 2009-11-22  Bruno Haible  <bruno@clisp.org>
29325
29326         error: account for the possibility of freopen (stdout).
29327         * lib/error.c: Include <unistd.h>.
29328         (flush_stdout): New function, extracted from error and error_at_line.
29329         Determine stdout's fd dynamically.
29330         (error, error_at_line): Invoke flush_stdout.
29331         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
29332         * modules/error (Depends-on): Add unistd.
29333
29334 2009-11-22  Bruno Haible  <bruno@clisp.org>
29335
29336         diffseq: Add comment.
29337         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
29338
29339 2009-11-22  Jim Meyering  <meyering@redhat.com>
29340
29341         c-stack: avoid defining an unused static function
29342         * lib/c-stack.c (find_stack_direction): Do not define this function
29343         when it will not be used.
29344
29345         diffseq: avoid spurious gcc warnings
29346         * lib/diffseq.h (IF_LINT2): Define.
29347         (compareseq): Use it to initialize two members of "part".
29348         This avoids two used-uninitialized warnings.
29349
29350 2009-11-21  Jim Meyering  <meyering@redhat.com>
29351
29352         c-stack: avoid "ignoring return value of `write'" warning
29353         * lib/c-stack.c: Include "ignore-value.h".
29354         (die): Explicitly ignore each write return value.
29355         * modules/c-stack (Depends-on): Add ignore-value.
29356
29357 2009-11-21  Bruno Haible  <bruno@clisp.org>
29358
29359         diffseq: reduce scope of variable 'best'.
29360         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
29361         variable, earlier used for two different purposes.
29362
29363 2009-11-21  Jim Meyering  <meyering@redhat.com>
29364
29365         diffseq: remove useless assignment to "best"
29366         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
29367         assignment.  At that point "best" is already guaranteed to be zero.
29368
29369 2009-11-20  Eric Blake  <ebb9@byu.net>
29370
29371         build: mention ftp redirector in release announcements
29372         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
29373         values that used to come from cfg.mk; mention FTP redirect URL.
29374         * build-aux/announce-gen: Mention the mirror list.
29375         Suggested by Karl Berry.
29376
29377         nanosleep: improve port to mingw
29378         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
29379         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
29380         LIB_NANOSLEEP, but only when needed.
29381         * modules/select (Link): Document LIBSOCKET.
29382         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
29383         enough.
29384
29385         nanosleep: work around cygwin bug
29386         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
29387         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
29388         bug.
29389         (getnow): Delete, not needed.
29390         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
29391         LIB_CLOCK_GETTIME.
29392         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
29393         clock-time, gettime.
29394         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
29395         bug.
29396         * modules/nanosleep-tests: New test.
29397         * tests/test-nanosleep.c: New file.
29398
29399         sleep: work around cygwin bug
29400         * lib/sleep.c (rpl_sleep): Work around the bug.
29401         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
29402         (gl_PREREQ_SLEEP): Delete unused macro.
29403         * modules/sleep (Depends-on): Add verify.
29404         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
29405         * modules/unistd (Makefile.am): Substitute witness.
29406         * lib/unistd.in.h (sleep): Update prototype.
29407         * doc/posix-functions/sleep.texi (sleep): Document the bug.
29408         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
29409         * modules/sleep-tests (Depends-on): Check for alarm.
29410
29411 2009-11-20  Jim Meyering  <meyering@redhat.com>
29412
29413         maint.mk: improve sc_prohibit_magic_number_exit
29414         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
29415         so it does not match uses like System.exit(1).
29416         Add comments showing how to correct all offenders.
29417
29418 2009-11-19  Eric Blake  <ebb9@byu.net>
29419
29420         xalloc-die-tests: add missing library
29421         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
29422
29423         test-xvasprintf: silence compiler warnings
29424         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
29425         empty string from gcc.
29426
29427 2009-11-19  Jim Meyering  <meyering@redhat.com>
29428
29429         xfreopen: new module, from coreutils
29430         * modules/xfreopen: New module.
29431         * lib/xfreopen.c: New file.
29432         * lib/xfreopen.h: New file.
29433         * MODULES.html.sh (File stream based Input/Output"): Add it.
29434
29435 2009-11-19  Eric Blake  <ebb9@byu.net>
29436
29437         manywarnings: depend on warnings
29438         * modules/manywarnings (Depends-on): Add warnings.
29439
29440         build: avoid compiler warnings
29441         * lib/select.c (rpl_select): Delete unused variable.
29442         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
29443
29444 2009-11-18  Eric Blake  <ebb9@byu.net>
29445
29446         tests: avoid false negative with --with-packager
29447         * tests/test-version-etc.sh: Discard packager information.
29448         * tests/test-argp-version-etc-1.sh: Likewise.
29449         Reported by Mike Frysinger.
29450
29451         utimens: fix regression on Solaris
29452         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
29453         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
29454         can only change fd timestamps via futimesat.  Instead, use an
29455         additional witness macro to avoid BSD bug.
29456         Reported by Jim Meyering.
29457
29458 2009-11-17  Eric Blake  <ebb9@byu.net>
29459
29460         usleep: use it to simplify tests
29461         * modules/stat-time-tests (Depends-on): Add usleep.
29462         (configure.ac): Drop usleep check.
29463         * modules/chown-tests (Depends-on, configure.ac): Likewise.
29464         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
29465         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
29466         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
29467         * modules/openat-tests (Depends-on, configure.ac): Likewise.
29468         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
29469         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
29470         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
29471         Likewise.
29472         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
29473         * tests/test-lchown.h (nap): Likewise.
29474         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
29475         * tests/test-stat-time.c (nap): Likewise.
29476         * tests/test-utimens-common.h (nap): Update comments.
29477
29478         usleep: new module
29479         * modules/usleep: New file.
29480         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
29481         * lib/usleep.c (usleep): Likewise.
29482         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
29483         * modules/unistd (Makefile.am): Substitute witnesses.
29484         * lib/unistd.in.h (usleep): Add declaration.
29485         * doc/pastposix-functions/usleep.texi (usleep): Document this.
29486         * MODULES.html.sh (Date and time): Likewise.
29487         * modules/usleep-tests (Depends-on): New test.
29488         * tests/test-usleep.c: New file.
29489
29490         chown: work around OpenBSD bug
29491         * lib/chown.c (rpl_chown): Work around the bug.
29492         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
29493         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
29494         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
29495         * modules/chown (Depends-on): Add stdbool.
29496         * modules/lchown (Depends-on): Likewise.
29497         * doc/posix-functions/chown.texi (chown): Document the bug.
29498         * doc/posix-functions/lchown.texi (lchown): Likewise.
29499         * tests/test-lchown.h (test_chown): Relax test.
29500
29501         mkstemp: avoid conflict with C++ keyword template
29502         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
29503         * lib/mkostemp.c (mkostemp): Likewise.
29504         * lib/mkostemps.c (mkostemps): Likewise.
29505         * lib/mkstemp.c (mkstemp): Likewise.
29506         * lib/mkstemps.c (mkstemps): Likewise.
29507
29508         xalloc-die-tests: optimize
29509         * tests/test-xalloc-die.sh: Reduce number of processes.
29510
29511 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29512
29513         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
29514         patch from ludo@gnu.org (Ludovic Courtès).
29515
29516 2009-11-17  Jim Meyering  <meyering@redhat.com>
29517
29518         version-etc: use proper license string
29519         * modules/version-etc (License): Use LGPL, not LGPLv3+.
29520         * modules/version-etc-fsf: Likewise.
29521
29522 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29523
29524         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
29525         printed to stdout.  Deal with EOL differences.
29526
29527 2009-11-17  Eric Blake  <ebb9@byu.net>
29528
29529         unsetenv: work around Solaris bug
29530         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
29531         * lib/unsetenv.c (rpl_unsetenv): Work around it.
29532         Reported by Jim Meyering.
29533
29534         vasnprintf: avoid compiler warnings
29535         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
29536         variables.
29537         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
29538
29539 2009-11-17  Simon Josefsson  <simon@josefsson.org>
29540
29541         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
29542         settings since xalloc-die is no longer the self test,
29543         xalloc-die.sh is.
29544
29545 2009-11-17  Jim Meyering  <meyering@redhat.com>
29546
29547         test-xalloc-die.sh: make the code agree with the commit log
29548         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
29549         at the end, just in case you happen to have a test-xalloc-die
29550         program in some other PATH directory.
29551
29552         test-xalloc-die.sh: fix a portability bug
29553         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
29554         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
29555         Otherwise, argv[0] (as often seen in diagnostics) would be too
29556         system-dependent, sometimes with, and sometimes without the leading "./".
29557
29558         version-etc-fsf: relax license to LGPLv3+
29559         * modules/version-etc-fsf (License): Relax license.
29560
29561 2009-11-16  Eric Blake  <ebb9@byu.net>
29562
29563         xalloc-die-tests: avoid printing null pointer
29564         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
29565         shell script.
29566         * tests/test-xalloc-die.c (program_name): Declare.
29567         * tests/test-xalloc-die.sh (tmpfiles): New file.
29568
29569         setenv, unsetenv: work around various bugs
29570         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
29571         (setenv) [HAVE_SETENV]: Work around bugs.
29572         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
29573         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
29574         for bugs.
29575         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
29576         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
29577         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
29578         * modules/stdlib (Makefile.am): Update substitutions.
29579         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
29580         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
29581         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
29582         * modules/setenv-tests: New test.
29583         * modules/unsetenv-tests: Likewise.
29584         * tests/test-setenv.c: New file.
29585         * tests/test-unsetenv.c: Likewise.
29586
29587 2009-11-16  Jim Meyering  <meyering@redhat.com>
29588
29589         version-etc: relax license to LGPLv3+
29590         * modules/version-etc (License): Relax license.
29591
29592         better AC_REQUIRE expanded-before-required-warning avoidance
29593         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
29594         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
29595         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
29596         which is no longer needed.
29597
29598 2009-11-16  Eric Blake  <ebb9@byu.net>
29599
29600         test-freading: clean up temporary file
29601         * tests/test-freading.c (main): Remove file on success, and use
29602         ASSERT more liberally.
29603         Reported by Jim Meyering.
29604
29605 2009-11-16  Jim Meyering  <meyering@redhat.com>
29606
29607         avoid new AC_REQUIRE expanded-before-required warnings
29608         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
29609         merely using it.
29610         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
29611         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
29612
29613 2009-11-15  Simon Josefsson  <simon@josefsson.org>
29614
29615         * tests/test-xalloc-die.c: New file.
29616         * modules/xalloc-die-tests: New file.
29617         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
29618         XFAIL_TESTS so it can be appended by modules.
29619
29620 2009-11-15  Simon Josefsson  <simon@josefsson.org>
29621
29622         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
29623         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
29624
29625 2009-11-14  Eric Blake  <ebb9@byu.net>
29626
29627         fnmatch: avoid compiler warning
29628         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
29629         to silence compiler warning about mismatch signedness in ?:.
29630         Reported by Robert Millan.
29631
29632         intprops: add double-inclusion guard
29633         * lib/intprops.h: Allow idempotent includes.
29634         Suggested by Bruce Korb.
29635
29636         openat: detect Solaris fchownat bug
29637         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
29638         penalizing glibc chownat when only lchownat is broken.
29639         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
29640         trailing slash bugs.
29641         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
29642         * modules/openat-tests (Files): Include more files.
29643         (Depends-on): Add mgetgroups, sleep, stat-time.
29644         (configure.ac): Add additional checks.
29645         (Makefile.am): Build new test.
29646         * tests/test-fchownat.c: New file.
29647
29648         lchown: detect Solaris and FreeBSD bug
29649         * lib/lchown.c (rpl_lchown): Work around bug.
29650         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
29651         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29652         * modules/unistd (Makefile.am): Populate it.
29653         * lib/unistd.in.h (lchown): Update declaration.
29654         * doc/posix-functions/lchown.texi (lchown): Document the bug.
29655         * modules/lchown-tests: New file.
29656         * tests/test-lchown.h (test_lchown): Likewise.
29657         * tests/test-lchown.c (main): Likewise.
29658
29659         chown: detect Solaris and FreeBSD bug
29660         * lib/chown.c (rpl_chown): Work around bug.
29661         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
29662         (gl_PREREQ_CHOWN): Delete.
29663         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
29664         * modules/unistd (Makefile.am): Populate it.
29665         * lib/unistd.in.h (chown): Update declaration.
29666         * lib/lchown.c (chown): Update client.
29667         * modules/lchown (Depends-on): Add lstat.
29668         * doc/posix-functions/chown.texi (chown): Document the bug.
29669         * doc/posix-functions/getgroups.texi (getgroups): Document
29670         getgroups pitfall.
29671         * modules/chown-tests: New file.
29672         * tests/test-chown.h (test_chown): Likewise.
29673         * tests/test-chown.c (main): Likewise.
29674
29675 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
29676
29677         gnulib-tool: correctly detect absence of m4 directories
29678         * gnulib-tool: Avoid extra newline on data passed to wc -l.
29679
29680 2009-11-14  Jim Meyering  <meyering@redhat.com>
29681
29682         maint.mk: Prohibit inclusion of "xalloc.h" without use.
29683         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
29684
29685 2009-11-14  John W. Eaton  <jwe@gnu.org>
29686
29687         strftime.h: wrap funtion declaration in extern "C" block
29688         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
29689
29690 2009-11-13  Eric Blake  <ebb9@byu.net>
29691
29692         getgroups: avoid compiler warning
29693         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
29694
29695         getgroups: work around FreeBSD bug
29696         * lib/getgroups.c (rpl_getgroups): Work around the bug.
29697         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
29698         * doc/posix-functions/getgroups.texi (getgroups): Document it.
29699         * tests/test-getgroups.c (main): Fix buffer overrun.
29700
29701         getgroups: avoid compilation failure
29702         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
29703         * modules/getgroups (Depends-on): Add stdint.
29704
29705 2009-11-13  Jim Meyering  <meyering@redhat.com>
29706
29707         test-getgroups: avoid compilation failure
29708         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
29709
29710 2009-11-13  Eric Blake  <ebb9@byu.net>
29711
29712         mgetgroups: new module, taken from coreutils
29713         * modules/mgetgroups: New file.
29714         * lib/mgetgroups.h: Likewise.
29715         * lib/mgetgroups.c (mgetgroups): Likewise.
29716         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
29717         * MODULES.html.sh (Users and groups): Mention it.
29718
29719         getgroups: don't expose GETGROUPS_T to user
29720         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
29721         an element at a time if GETGROUPS_T is wrong size.
29722         * lib/getugroups.h (getugroups): Change signature.
29723         * lib/unistd.in.h (getgroups): Likewise.
29724         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
29725         signature needs fixing.
29726         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
29727         AC_TYPE_GETGROUPS.
29728         * modules/group-member (Depends-on): Add getgroups.
29729         * lib/group-member.c (group_info, get_group_info): Use gid_t.
29730         (group_member): Rely on getgroups replacement.
29731         * lib/getugroups.c (getugroups): Use gid_t.
29732         * tests/test-getgroups.c (main): Likewise.
29733         * NEWS: Mention the signature change.
29734         * doc/posix-functions/getgroups.texi (getgroups): Mention the
29735         problem with signature.
29736         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
29737         GETGROUPS_T is still useful for setgroups.
29738
29739         getgroups, getugroups: provide stubs for mingw
29740         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
29741         * lib/getugroups.c (getugroups): Likewise.
29742         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
29743         function.  Modernize replacement scheme.
29744         (gl_PREREQ_GETGROUPS): Delete.
29745         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
29746         * modules/getgroups (configure.ac): Declare witness.
29747         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
29748         * modules/unistd (Depends-on): Substitute witness.
29749         * lib/unistd.in.h (getgroups): Declare replacement.
29750
29751         getgroups: avoid calling exit
29752         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
29753         drop xalloc.
29754         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
29755         dependencies.
29756         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
29757         exiting, in the rare case of malloc failure.
29758
29759         getgroups: fix logic error
29760         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
29761         has more than 20 groups.
29762         * modules/getgroups-tests: New test.
29763         * tests/test-getgroups.c: New file.
29764
29765 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29766
29767         * tests/test-base64.c: Improve.
29768
29769 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29770
29771         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
29772         Blake <ebb9@byu.net>.
29773
29774 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29775
29776         * tests/test-xvasprintf.c: Add %s%s related checks.
29777
29778 2009-11-12  Eric Blake  <ebb9@byu.net>
29779
29780         version-etc: match standards.texi style
29781         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
29782         and use <> only for URLs.
29783
29784 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
29785
29786         fts: do not fail on a submount during traversal
29787         * lib/fts.c (fts_build): Read the stat info again after opening
29788         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
29789         Original report at http://bugzilla.redhat.com/501848.
29790
29791 2009-11-12  Jim Meyering  <meyering@redhat.com>
29792
29793         bootstrap: sync from coreutils
29794         * build-aux/bootstrap (bootstrap_epilogue): New function.
29795         Use git_modules_config in one more place.  This make bootstrap's
29796         --gnulib-srcdir option more useful for testing.
29797
29798         bootstrap: generalize autoheader check
29799         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
29800         AC_CONFIG_HEADERS.
29801
29802 2009-11-11  Eric Blake  <ebb9@byu.net>
29803
29804         mkfifoat: use new modules for Solaris and BSD bugs
29805         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
29806         * lib/mkfifoat.c (mknodat): Split...
29807         * lib/mknodat.c (mknodat): ...into new file.
29808         * modules/mkfifoat (Files): Ship new file.
29809         (Depends-on): Add mkfifo, mknod.
29810         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
29811         (Depends-on): Add symlink.
29812         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
29813         redundant with test_mkfifo.h.
29814         (do_mkfifoat, do_mknodat): New helpers.
29815
29816         mknod: new module
29817         * modules/mknod: New file.
29818         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
29819         * lib/mknod.c (mknod): Likewise.
29820         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29821         defaults.
29822         * modules/sys_stat (Makefile.am): Substitute them.
29823         * lib/sys_stat.in.h (mknod): Declare replacement.
29824         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29825         Document it.
29826         * doc/posix-functions/mknod.texi (mknod): Likewise.
29827         * modules/mknod-tests: New test.
29828         * tests/test-mknod.c: Likewise.
29829
29830         mkfifo: new module
29831         * modules/mkfifo: New file.
29832         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
29833         * lib/mkfifo.c (mkfifo): Likewise.
29834         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29835         defaults.
29836         * modules/sys_stat (Makefile.am): Substitute them.
29837         * lib/sys_stat.in.h (mkfifo): Declare replacement.
29838         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29839         Document it.
29840         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
29841         * modules/mkfifo-tests: New test.
29842         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
29843         from test-mkfifoat.c.
29844         * tests/test-mkfifo.c: New file.
29845
29846         readlink: detect FreeBSD bug
29847         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
29848         slash on symlink.
29849         * doc/posix-functions/readlink.texi (readlink): Document the bug.
29850         * tests/test-readlink.h (test_readlink): Enhance test.
29851
29852         symlink: detect FreeBSD bug
29853         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
29854         slash on symlink.
29855         * doc/posix-functions/symlink.texi (symlink): Document the bug.
29856         * tests/test-symlink.h (test_symlink): Enhance test.
29857
29858 2009-11-10  Eric Blake  <ebb9@byu.net>
29859
29860         link: detect FreeBSD bug
29861         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
29862         symlink.
29863         * doc/posix-functions/link.texi (link): Document the bug.
29864         * tests/test-link.h (test_link): Enhance test.
29865         * tests/test-linkat.c (main): Update caller.
29866
29867         unlink, remove: detect FreeBSD bug
29868         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
29869         slash on symlink.
29870         * doc/posix-functions/unlink.texi (unlink): Document the bug.
29871         * doc/posix-functions/remove.texi (remove): Likewise.
29872         * tests/test-unlink.h (test_unlink): Enhance test.
29873         * tests/test-remove.c (main): Likewise.
29874
29875 2009-11-09  Eric Blake  <ebb9@byu.net>
29876
29877         rename: detect FreeBSD bug
29878         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
29879         slash on symlink.
29880         * modules/renameat-tests (Depends-on): Add filenamecat.
29881         * tests/test-rename.h (test_rename): Allow one more errno.
29882         * tests/test-renameat.c (main): Likewise.
29883         * doc/posix-functions/rename.texi (rename): Document the bug.
29884
29885         open: detect FreeBSD bug
29886         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
29887         symlink.
29888         * doc/posix-functions/open.texi (open): Document the bug.
29889         * doc/posix-functions/utimes.texi (utimes): Likewise.
29890         * tests/test-open.h (test_open): Add parameters, and test symlink
29891         handling.
29892         * tests/test-open.c (main): Adjust caller.
29893         * tests/test-fcntl-safer.c (main): Likewise.
29894         * modules/open-tests (Depends-on): Add stdbool, symlink.
29895         * modules/fcntl-safer-tests (Depends-on): Likewise.
29896         * tests/test-openat.c (main): Add test-open tests.
29897
29898         stat: detect FreeBSD bug
29899         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
29900         symlink.
29901         * doc/posix-functions/stat.texi (stat): Document the bug.
29902         * tests/test-stat.h (test_stat_func): Add argument.
29903         * tests/test-stat.c (main): Adjust caller.
29904         * tests/test-fstatat.c (main): Likewise.
29905         * modules/stat-tests (Depends-on): Add stdbool, symlink.
29906         Reported by Jim Meyering.
29907
29908 2009-11-09  James Youngman  <jay@gnu.org>
29909
29910         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
29911         * lib/strftime.c: Correct placement of #include "ignore-value.h".
29912
29913 2009-11-08  Jim Meyering  <meyering@redhat.com>
29914
29915         utimens: remove invalid futimesat call
29916         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
29917         It used the file descriptor of the target file as the DIR_FD
29918         parameter and NULL as the file name.  That caused failure with
29919         errno == EFAULT on FreeBSD-8.0-rc2
29920
29921 2009-11-07  Eric Blake  <ebb9@byu.net>
29922
29923         fflush, freadseek: use fseeko, not fseek
29924         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
29925         (clear_ungetc_buffer): Avoid potential problems on large files.
29926         * lib/freadseek.c (freadseek): Likewise.
29927         * modules/freadseek (Depends-on): Add fseeko.
29928         * modules/fseek (configure.ac): Set a witness.
29929         * tests/test-fflush.c (main): Use fseeko.
29930         * tests/test-fpurge.c (fseek): Disable link warning.
29931         * tests/test-freadable.c (fseek): Likewise.
29932         * tests/test-freading.c (fseek): Likewise.
29933         * tests/test-fseeko.c (fseek): Likewise.
29934         * tests/test-ftell.c (fseek): Likewise.
29935         * tests/test-ftello.c (fseek): Likewise.
29936         * tests/test-fwritable.c (fseek): Likewise.
29937         * tests/test-fwriting.c (fseek): Likewise.
29938
29939 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29940
29941         * modules/memchr (Depends-on): Drop getpagesize dependency.
29942
29943 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29944
29945         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
29946         Reported by Ludovic Courtès.
29947         * build-aux/pmccabe2html: Improve example usage.
29948         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
29949
29950 2009-11-06  Jim Meyering  <meyering@redhat.com>
29951
29952         do-release-commit-and-tag: New module.
29953         Automate the release-commit and tag process.
29954         * build-aux/do-release-commit-and-tag: New script, from coreutils.
29955         * modules/do-release-commit-and-tag: New file.
29956         * MODULES.html.sh (Support for maintaining and releasing): Add it.
29957
29958 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29959
29960         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
29961         because test-select.c uses inet_pton.
29962
29963 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29964
29965         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
29966         GETADDRINFO_LIB.  Bump serial number.
29967         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
29968         Suggested by Eric Blake <ebb9@byu.net>.
29969
29970 2009-11-05  Eric Blake  <ebb9@byu.net>
29971
29972         strtod: detect darwin bug
29973         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
29974         Reported by Leo Davis.
29975
29976         freopen-safer: new module
29977         * modules/freopen-safer: New module.
29978         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
29979         * lib/freopen-safer.c (freopen_safer): New file.
29980         * lib/stdio-safer.h (freopen_safer): New declaration.
29981         * lib/stdio--.h (freopen): New override.
29982         * MODULES.html.sh (File stream based Input/Output): Mention it.
29983         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
29984         freopen-safer module.
29985         * doc/posix-functions/stderr.texi (stderr): Likewise.
29986         * doc/posix-functions/stdin.texi (stdin): Likewise.
29987         * doc/posix-functions/stdout.texi (stdout): Likewise.
29988         * modules/freopen-safer-tests: New test.
29989         * tests/test-reopen-safer.c: New file.
29990
29991 2009-11-05  Jim Meyering  <meyering@redhat.com>
29992
29993         maint.mk: Prohibit inclusion of "close-stream.h" without use.
29994         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
29995
29996 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29997
29998         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
29999
30000 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30001
30002         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
30003
30004 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30005
30006         Fix link error.
30007         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
30008         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30009
30010 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30011
30012         * tests/test-func.c: Also test value of __func__.
30013
30014 2009-11-05  Simon Josefsson  <simon@josefsson.org>
30015
30016         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
30017         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
30018
30019 2009-11-05  Bruno Haible  <bruno@clisp.org>
30020
30021         Fix link error.
30022         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
30023         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
30024         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
30025
30026 2009-11-05  Bruno Haible  <bruno@clisp.org>
30027
30028         Tests for module 'inet_pton'.
30029         * modules/inet_pton-tests: New file.
30030         * tests/test-inet_pton.c: New file.
30031
30032 2009-11-05  Bruno Haible  <bruno@clisp.org>
30033
30034         Tests for module 'inet_ntop'.
30035         * modules/inet_ntop-tests: New file.
30036         * tests/test-inet_ntop.c: New file.
30037
30038 2009-11-04  Eric Blake  <ebb9@byu.net>
30039
30040         stdlib-safer: wrap all mkstemp variants
30041         * modules/mkostemp (configure.ac): Set witness.
30042         * modules/mkostemps (configure.ac): Likewise.
30043         * modules/mkstemps (configure.ac): Likewise.
30044         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
30045         (mkstemps_safer): Wrap more functions.
30046         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
30047         wrapping.
30048         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
30049         (mkstemps_safer): Implement the wrappers.
30050
30051         mkstemps, mkostemps: new modules
30052         * modules/mkostemps: New module.
30053         * modules/mkstemps: Likewise.
30054         * lib/mkostemps.c (mkostemps): New file.
30055         * lib/mkstemps.c (mkstemps): Likewise.
30056         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
30057         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
30058         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
30059         * modules/stdlib (Makefile.am): Substitute them.
30060         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
30061         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
30062         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
30063         * doc/gnulib.texi (Glibc stdlib.h): Include them.
30064         * MODULES.html.sh (File system functions): Mention them.
30065
30066         tempname: resync from glibc
30067         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
30068         same values for __GT_FILE as glibc.  Abort even when assertions
30069         are disabled.
30070         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
30071         match its value otherwise.  Allow idempotent inclusion.
30072         * lib/mkdtemp.c (mkdtemp): Adjust caller.
30073         * lib/mkostemp.c (mkostemp): Likewise.
30074         * lib/mkstemp.c (mkstemp): Likewise.
30075         * lib/tmpfile.c (tmpfile): Likewise.
30076         * NEWS: Document this.
30077
30078         utimens: fix use of futimens on older Linux
30079         * lib/utimens.c (fdutimens): Use updated, rather than original,
30080         timespec to avoid bug in older Linux kernel.
30081         Reported by Simon Josefsson.
30082
30083 2009-11-04  Bruno Haible  <bruno@clisp.org>
30084
30085         Make num_processors more flexible and consistent.
30086         * lib/nproc.h (enum nproc_query): New type.
30087         (num_processors): Add a 'query' argument.
30088         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
30089         (num_processors): Add a 'query' argument. Test the value of the
30090         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
30091         mingw, count the number of CPUs available for the current process.
30092         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
30093         Check for sched_getaffinity and sched_getaffinity_np.
30094         * modules/nproc (Depends-on): Add c-ctype, extensions.
30095         * NEWS: Mention the change.
30096
30097 2009-11-03  Bruno Haible  <bruno@clisp.org>
30098
30099         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
30100
30101 2009-11-03  Jim Meyering  <meyering@redhat.com>
30102
30103         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
30104         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
30105         if it is defined.
30106
30107 2009-11-02  Eric Blake  <ebb9@byu.net>
30108
30109         mktime, timegm: share common declaration
30110         * lib/mktime-internal.h: New file.
30111         * lib/mktime.c: Use it rather than open-coding a declaration.
30112         * lib/timegm.c: Likewise.
30113         * modules/mktime (Files): Ship it.
30114         * modules/timegm (Files): Likewise.
30115         Suggested by Bruno Haible.
30116
30117         test-update-copyright: update test to match script changes
30118         * tests/test-update-copyright.sh: Avoid hard-coding perl
30119         location.  Don't update *.bak created by earlier runs.
30120
30121 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
30122             Simon Josefsson  <simon@josefsson.org>
30123             Bruno Haible  <bruno@clisp.org>
30124
30125         Fix link error on Solaris 8.
30126         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
30127         also in libnsl. Define also INET_PTON_LIB.
30128         * modules/inet_pton (Link): New section.
30129
30130 2009-11-02  Simon Josefsson  <simon@josefsson.org>
30131             Bruno Haible  <bruno@clisp.org>
30132
30133         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
30134         * modules/inet_ntop (Link): New section.
30135         Reported by Boyan Kasarov <bkasarov@gmail.com>.
30136
30137 2009-11-02  Eric Blake  <ebb9@byu.net>
30138
30139         maint: avoid compiler warnings in m4 macros
30140         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
30141         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
30142
30143 2009-11-02  Simon Josefsson  <simon@josefsson.org>
30144
30145         * m4/pmccabe2html.m4: Remove file.
30146         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
30147         function.  Change maintainer.
30148         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
30149         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
30150         Courtès).
30151
30152 2009-10-31  Eric Blake  <ebb9@byu.net>
30153
30154         fseeko: fix m4 regression
30155         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
30156         regression from 2009-10-27.
30157         Reported by Ralf Wildenhues.
30158
30159 2009-10-31  Jim Meyering  <meyering@redhat.com>
30160
30161         inttostr: aesthetics and improved (compile-time) safety
30162         Define inttype_is_signed rather than inttype_is_unsigned,
30163         since the sole use is via "#if inttype_is_signed".
30164         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
30165         inttype_is_unsigned.
30166         * lib/offtostr.c (inttype_is_signed): Likewise.
30167         * lib/uinttostr.c (inttype_is_signed): Likewise.
30168         * lib/umaxtostr.c (inttype_is_signed): Likewise.
30169         * lib/inttostr.c (inttostr): Use verify to cross-check the
30170         inttype_is_signed value and the signedness of the actual type.
30171         * modules/inttostr (Depends-on): Add verify.
30172
30173 2009-10-30  Eric Blake  <ebb9@byu.net>
30174
30175         build: avoid compiler warnings
30176         * lib/fchmodat.c (lchmod): Mark unused variables.
30177         * lib/getopt.c (_getopt_initialize): Likewise.
30178         * lib/mktime.c (__mktime_internal): Provide prototype.
30179         * lib/inttostr.c (inttostr): Avoid compiler warning even with
30180         older gcc that do not understand #pragma GCC diagnostic.
30181         * lib/uinttostr.c (inttype_is_unsigned): Define.
30182         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
30183
30184 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
30185
30186         stat: fix compilation on AIX
30187         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
30188         only see struct stat64.
30189
30190 2009-10-30  Eric Blake  <ebb9@byu.net>
30191
30192         exclude: make more robust
30193         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
30194         rather than masking a coding bug.
30195         Suggested by Bruno Haible.
30196
30197 2009-10-30  Jim Meyering  <meyering@redhat.com>
30198
30199         perl scripts: remove #!/usr/bin/perl in favor of more portable...
30200         Rather than putting #!/usr/bin/perl on the first line,
30201         start with a variant of what's recommended by "man perlrun" that
30202         invokes the first "perl" program from your shell's search path.
30203         * build-aux/gitlog-to-changelog: Replace #!... as above.
30204         Add a "Local Variables" perl mode setting.
30205         Prompted by a patch from Ludovic Courtès.
30206         Improved by Eric Blake.
30207         * build-aux/useless-if-before-free: Likewise.
30208         * build-aux/announce-gen: Likewise.
30209         * build-aux/update-copyright: Likewise.
30210
30211 2009-10-29  Eric Blake  <ebb9@byu.net>
30212
30213         filenamecat-lgpl: adjust clients
30214         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
30215         filenamecat.
30216         * modules/renameat (Depends-on): Likewise.
30217
30218         filenamecat: split into filenamecat-lgpl
30219         * modules/filenamecat-lgpl: New module.
30220         * modules/filenamecat (Files): Move library-safe files into
30221         filenamecat-lgpl.
30222         (Depends-on): Add filenamecat-lgpl.
30223         (configure.ac): Declare witness.
30224         * lib/filenamecat.h (file_name_concat): Only declare when using
30225         GPL module.
30226         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
30227         Move...
30228         * lib/filenamecat-lgpl.c: ...into new file.
30229         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
30230         (gl_FILE_NAME_CONCAT): Use it.
30231         * MODULES.html.sh (File system functions): Mention new module.
30232
30233         argp: avoid memory leak
30234         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
30235         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
30236         base_name, since the latter malloc()s and can call exit().
30237         Leak introduced 2006-07-03.
30238
30239         dirname-lgpl: adjust clients that don't need full dirname
30240         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
30241         * modules/filenamecat (Depends-on): Likewise.
30242         * modules/linkat (Depends-on): Likewise.
30243         * modules/mkancesdirs (Depends-on): Likewise.
30244         * modules/mkdir (Depends-on): Likewise.
30245         * modules/openat (Depends-on): Likewise.
30246         * modules/savewd (Depends-on): Likewise.
30247         * modules/rename (Depends-on): Likewise.
30248         (License): Relax license.
30249         * modules/mkdir-tests (Depends-on): Drop progname.
30250         (Makefile.am): Delete unneeded LDADD.
30251         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
30252
30253         dirname: split into dirname-lgpl
30254         * modules/dirname-lgpl: New module.
30255         * modules/dirname (Files): Move library-safe files into
30256         dirname-lgpl.
30257         (Depends-on): Add dirname-lgpl.
30258         (configure.ac): Declare witness.
30259         * modules/double-slash-root (License): Relax license.
30260         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
30261         module.
30262         * lib/dirname.c (dir_len, mdir_name): Move...
30263         * lib/dirname-lgpl.c: ...into new file.
30264         * lib/basename.c (last_component, base_len): Move...
30265         * lib/basename-lgpl.c: ...into new file.
30266         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
30267         (gl_DIRNAME): Use it.
30268         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
30269         Mention new module.
30270         * modules/dirname-tests (Depends-on): Add progname.
30271         * tests/test-dirname.c (program_name): Delete.
30272
30273         mkdir: make safe for libraries
30274         * modules/mkdir (Depends-on): Drop xalloc.
30275         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
30276         exit.
30277
30278         tests: avoid some compiler warnings
30279         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
30280         literals.
30281         * tests/test-memchr.c (main): Avoid type mismatch.
30282         * tests/test-arpa_inet.c (main): Avoid unused parameters.
30283         * tests/test-base64.c (main): Likewise.
30284         * tests/test-getdelim.c (main): Likewise.
30285         * tests/test-gethostname.c (main): Likewise.
30286         * tests/test-getline.c (main): Likewise.
30287         * tests/test-netinet_in.c (main): Likewise.
30288         * tests/test-select.c (open_server_socket, main): Likewise.
30289         * tests/test-select-stdin.c (main): Likewise.
30290         * tests/test-sockets.c (main): Likewise.
30291         * tests/test-strsignal.c (main): Likewise.
30292         * tests/test-sys_select.c (main): Likewise.
30293         * tests/test-sys_socket.c (main): Likewise.
30294         * tests/test-u64.c (main): Likewise.
30295         * tests/test-xfprintf-posix.c (main): Likewise.
30296         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
30297
30298         sockets: avoid compiler warning
30299         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
30300
30301         maint: detect usage(1) and other suspicious exits
30302         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
30303
30304 2009-10-29  Jim Meyering  <meyering@redhat.com>
30305
30306         timespec: long-to-int truncation could make timespec_cmp malfunction
30307         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
30308         a multiple of 2^32 nanoseconds as no difference.
30309
30310 2009-10-28  Jim Meyering  <meyering@redhat.com>
30311
30312         fprintftime: wrap macro code argument in "do {...} while(0)"
30313         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
30314         cpy macro must be a statement that can be followed by a semicolon.
30315         Now that the else clause contains a comment and is hence longer
30316         than one line, I require curly braces.  That in turn requires
30317         that we wrap this code block in the standard do...while(0).
30318
30319         fprintftime: remove stray semicolon from previous change
30320         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
30321
30322         fprintftime: avoid a warning about ignored fwrite return value
30323         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
30324         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
30325         that is unsafe.
30326         * modules/fprintftime (Depends-on): Add ignore-value.
30327
30328         exclude: avoid an unwarranted warning
30329         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
30330
30331 2009-10-27  Eric Blake  <ebb9@byu.net>
30332
30333         fseek: avoid compilation failure when fflush is replaced
30334         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
30335         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
30336         module is in use.
30337         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
30338         module is not in use; since REPLACE_FSEEK worked otherwise.
30339         (GNULIB_FTELLO): Likewise for ftell.
30340         Reported by Ian Beckwith and others.
30341
30342 2009-10-27  Bruno Haible  <bruno@clisp.org>
30343
30344         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
30345         Reported by Jim Meyering.
30346
30347 2009-10-27  Jim Meyering  <jim@meyering.net>
30348             Bruno Haible  <bruno@clisp.org>
30349
30350         Avoid warning despite dropping the return value of fwrite.
30351         * lib/unicodeio.c: Include ignore-value.h.
30352         (fwrite_success_callback): Explicitly ignore fwrite's return value.
30353         * modules/unicodeio (Depends-on): Add ignore-value.
30354
30355 2009-10-26  Eric Blake  <ebb9@byu.net>
30356
30357         areadlinkat: fix fallback path
30358         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
30359         pointer and zero.
30360
30361 2009-10-22  Pádraig Brady  <P@draigBrady.com>
30362
30363         Use a better IO block size for modern systems
30364         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
30365         * lib/md2.c: Likewise.
30366         * lib/md4.c: Likewise.
30367         * lib/md5.c: Likewise.
30368         * lib/sha1.c: Likewise.
30369         * lib/sha256.c: Likewise.
30370         * lib/sha512.c: Likewise.
30371
30372 2009-10-22  Eric Blake  <ebb9@byu.net>
30373
30374         tests: avoid several compiler warnings
30375         * tests/test-getcwd.c (main): Avoid buffer underflow.
30376         * tests/test-getdate.c (main): String literals are not safe with
30377         putenv, so use setenv.  Declare unused argument.
30378         * modules/getdate-tests (Depends-on): Add setenv.
30379         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
30380         problems with string literals in char *.
30381         * tests/test-hash.c (main): Avoid shadowing declaration.
30382         (insert_new): Treat string literals as char const *.
30383         * tests/test-getopt.h (test_getopt): Likewise.
30384         (getopt_loop): Alter types to minimize casting elsewhere.
30385         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
30386         (test_getopt_long_posix): Likewise.
30387         (do_getopt_long): Add wrapper to minimize casting.
30388         * tests/test-atexit.c (clear_temp_file): Use void.
30389         * tests/test-areadlink-with-size.c (main): Declare unused
30390         arguments.
30391         * tests/test-areadlink.c (main): Likewise.
30392         * tests/test-areadlinkat-with-size.c (main): Likewise.
30393         * tests/test-areadlinkat.c (main): Likewise.
30394         * tests/test-canonicalize-lgpl.c (main): Likewise.
30395         * tests/test-canonicalize.c (main): Likewise.
30396         * tests/test-dirent-safer.c (main): Likewise.
30397         * tests/test-dirname.c (main): Likewise.
30398         * tests/test-dup2.c (main): Likewise.
30399         * tests/test-fchdir.c (main): Likewise.
30400         * tests/test-fcntl-h.c (main): Likewise.
30401         * tests/test-fcntl-safer.c (main): Likewise.
30402         * tests/test-fdopendir.c (main): Likewise.
30403         * tests/test-fdutimensat.c (main): Likewise.
30404         * tests/test-fflush.c (main): Likewise.
30405         * tests/test-filenamecat.c (main): Likewise.
30406         * tests/test-filevercmp.c (main): Likewise.
30407         * tests/test-fopen-safer.c (main): Likewise.
30408         * tests/test-fopen.c (main): Likewise.
30409         * tests/test-fpending.c (main): Likewise.
30410         * tests/test-fpurge.c (main): Likewise.
30411         * tests/test-freading.c (main): Likewise.
30412         * tests/test-fstatat.c (main): Likewise.
30413         * tests/test-fsync.c (main): Likewise.
30414         * tests/test-futimens.c (main): Likewise.
30415         * tests/test-getndelim2.c (main): Likewise.
30416         * tests/test-gettimeofday.c (main): Likewise.
30417         * tests/test-getopt.c (main): Likewise.
30418         * tests/test-i-ring.c (main): Likewise.
30419         * tests/test-inttypes.c (main): Likewise.
30420         * tests/test-link.c (main): Likewise.
30421         * tests/test-lstat.c (main): Likewise.
30422         * tests/test-math.c (main): Likewise.
30423         * tests/test-md5.c (main): Likewise.
30424         * tests/test-memchr2.c (main): Likewise.
30425         * tests/test-memrchr.c (main): Likewise.
30426         * tests/test-mkdir.c (main): Likewise.
30427         * tests/test-mkdirat.c (main): Likewise.
30428         * tests/test-mkfifoat.c (main): Likewise.
30429         * tests/test-open.c (main): Likewise.
30430         * tests/test-openat-safer.c (main): Likewise.
30431         * tests/test-openat.c (main): Likewise.
30432         * tests/test-quotearg.c (main): Likewise.
30433         * tests/test-rawmemchr.c (main): Likewise.
30434         * tests/test-readlink.c (main): Likewise.
30435         * tests/test-remove.c (main): Likewise.
30436         * tests/test-rename.c (main): Likewise.
30437         * tests/test-renameat.c (main): Likewise.
30438         * tests/test-rmdir.c (main): Likewise.
30439         * tests/test-sha1.c (main): Likewise.
30440         * tests/test-signal.c (main): Likewise.
30441         * tests/test-sigaction.c (main): Likewise.
30442         * tests/test-stat.c (main): Likewise.
30443         * tests/test-stat-time.c (main): Likewise.
30444         * tests/test-stddef.c (main): Likewise.
30445         * tests/test-stdint.c (main): Likewise.
30446         * tests/test-stdio.c (main): Likewise.
30447         * tests/test-stdlib.c (main): Likewise.
30448         * tests/test-strchrnul.c (main): Likewise.
30449         * tests/test-strerror.c (main): Likewise.
30450         * tests/test-string.c (main): Likewise.
30451         * tests/test-strtod.c (main): Likewise.
30452         * tests/test-strverscmp.c (main): Likewise.
30453         * tests/test-symlink.c (main): Likewise.
30454         * tests/test-symlinkat.c (main): Likewise.
30455         * tests/test-sys_stat.c (main): Likewise.
30456         * tests/test-sys_time.c (main): Likewise.
30457         * tests/test-time.c (main): Likewise.
30458         * tests/test-unistd.c (main): Likewise.
30459         * tests/test-unlink.c (main): Likewise.
30460         * tests/test-unlinkat.c (main): Likewise.
30461         * tests/test-utimens.c (main): Likewise.
30462         * tests/test-utimensat.c (main): Likewise.
30463         * tests/test-version-etc.c (main): Likewise.
30464         * tests/test-wchar.c (main): Likewise.
30465         * tests/test-wctype.c (main): Likewise.
30466         * tests/test-xprintf-posix.c (main): Likewise.
30467         * tests/test-posixtm.c (main): Likewise.
30468         (STREQ): Delete unused macro.
30469         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
30470         shadowed variables.
30471         * tests/test-memchr.c (main): Likewise.
30472
30473 2009-10-21  Eric Blake  <ebb9@byu.net>
30474
30475         areadlinkat: avoid failure on older glibc
30476         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
30477         rather than mis-comparing 0 against FUNC_RESULT of char*.
30478
30479 2009-10-21  Bruno Haible  <bruno@clisp.org>
30480
30481         * modules/stpncpy (License): Relicense under LGPLv2+.
30482         Reported by David Lutterkort <lutter@redhat.com>.
30483
30484 2009-10-20  Eric Blake  <ebb9@byu.net>
30485
30486         utimensat: work around Solaris 9 bug
30487         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
30488         has trailing slash bugs.
30489         * tests/test-lutimens.h (test_lutimens): Enhance test.
30490         * tests/test-utimens.h (test_utimens): Likewise.
30491         * doc/posix-functions/utime.texi (utime): Enhance documentation.
30492         * doc/posix-functions/utimes.texi (utimes): Likewise.
30493         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30494         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
30495         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
30496         * doc/posix-functions/futimens.texi (futimens): Likewise.
30497
30498         fdutimensat: new module
30499         * modules/fdutimensat: New file.
30500         * lib/fdutimensat.c (fdutimensat): Likewise.
30501         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
30502         * MODULES.html.sh (File system functions): Mention module.
30503         * modules/fdutimensat-tests: New test.
30504         * tests/test-fdutimensat.c: Likewise.
30505
30506         doc: regenerate INSTALL
30507         * doc/INSTALL: Reflect recent autoconf update.
30508         * doc/INSTALL.ISO: Likewise.
30509         * doc/INSTALL.UTF-8: Likewise.
30510
30511 2009-10-20  Pádraig Brady  <P@draigBrady.com>
30512
30513         acl: warn if ACL support is not detected
30514         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
30515
30516 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
30517
30518         * lib/nproc.h: Add extern "C" block for C++.
30519
30520 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
30521             Bruno Haible  <bruno@clisp.org>
30522
30523         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
30524         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
30525         * doc/posix-functions/isalpha.texi: Likewise.
30526         * doc/posix-functions/isblank.texi: Likewise.
30527         * doc/posix-functions/iscntrl.texi: Likewise.
30528         * doc/posix-functions/isdigit.texi: Likewise.
30529         * doc/posix-functions/isgraph.texi: Likewise.
30530         * doc/posix-functions/islower.texi: Likewise.
30531         * doc/posix-functions/isprint.texi: Likewise.
30532         * doc/posix-functions/ispunct.texi: Likewise.
30533         * doc/posix-functions/isspace.texi: Likewise.
30534         * doc/posix-functions/isupper.texi: Likewise.
30535         * doc/posix-functions/isxdigit.texi: Likewise.
30536
30537 2009-10-18  Bruno Haible  <bruno@clisp.org>
30538
30539         Tests for module 'isblank'.
30540         * modules/isblank-tests: New file.
30541         * tests/test-isblank.c: New file.
30542
30543         New module 'isblank'.
30544         * lib/isblank.c: New file.
30545         * m4/isblank.m4: New file.
30546         * modules/isblank: New file.
30547         * doc/posix-functions/isblank.texi: Mention the new module.
30548
30549 2009-10-18  Bruno Haible  <bruno@clisp.org>
30550
30551         New module 'ctype'.
30552         * lib/ctype.in.h: New file.
30553         * m4/ctype.m4: New file.
30554         * modules/ctype: New file.
30555         * doc/posix-headers/ctype.texi: Mention the new module.
30556
30557 2009-10-18  Jim Meyering  <meyering@redhat.com>
30558
30559         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
30560         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
30561         right after its initialization, rather than farther down.
30562         Keeping these in close proximity makes it easier to ensure
30563         that each such variable is initialized.  E.g.,
30564
30565             LIB_CLOCK_GETTIME=
30566             AC_SUBST([LIB_CLOCK_GETTIME])
30567
30568         This change also increments these serial numbers.
30569         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
30570         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
30571         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30572
30573 2009-10-18  Bruno Haible  <bruno@clisp.org>
30574
30575         Don't let environment variables perturb build.
30576         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
30577         (gl_PREREQ_GETHRXTIME): ... not here.
30578
30579 2009-10-18  Bruno Haible  <bruno@clisp.org>
30580
30581         Avoid symlink attack in localcharset module.
30582         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
30583         (O_NOFOLLOW): Define fallback.
30584         (get_charset_aliases): Don't open the file if it is a symbolic link.
30585         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
30586         gl_FCNTL_H.
30587         (gl_FCNTL_H): Require it.
30588         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
30589         * modules/localcharset (Files): Add m4/fcntl_h.m4.
30590         Reported by Fergal Glynn <fglynn@veracode.com>.
30591
30592 2009-10-18  Bruno Haible  <bruno@clisp.org>
30593
30594         Implement nproc for mingw.
30595         * lib/nproc.c: Include <windows.h>
30596         (num_processors): On native Windows platforms, try GetSystemInfo.
30597
30598 2009-10-18  Bruno Haible  <bruno@clisp.org>
30599
30600         Implement nproc for IRIX.
30601         * lib/nproc.c: Include <sys/sysmp.h>.
30602         (num_processors): On IRIX systems, try sysmp.
30603         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
30604
30605 2009-10-18  Bruno Haible  <bruno@clisp.org>
30606
30607         Implement nproc for HP-UX.
30608         * lib/nproc.c: Include <sys/pstat.h>
30609         (num_processors): On HP-UX systems, try pstat_getdynamic.
30610         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
30611         pstat_getdynamic.
30612
30613 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
30614             Bruno Haible  <bruno@clisp.org>
30615
30616         Implement nproc for NetBSD, OpenBSD.
30617         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
30618         (ARRAY_SIZE): New macro.
30619         (num_processors): On BSD systems, try sysctl of HW_NCPU.
30620         * m4/nproc.m4: New file.
30621         * modules/nproc (Files): Add m4/nproc.m4.
30622         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
30623         (Makefile.am): Instead, augment lib_SOURCES.
30624
30625 2009-10-18  Bruno Haible  <bruno@clisp.org>
30626
30627         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
30628         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
30629         sys/param.h.
30630
30631 2009-10-16  Eric Blake  <ebb9@byu.net>
30632
30633         utimensat: new module
30634         * modules/utimensat: New file.
30635         * lib/utimensat.c (utimensat): Likewise.
30636         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
30637         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
30638         so we can work around Linux bugs.
30639         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30640         * modules/sys_stat (Makefile.am): Substitute them.
30641         * lib/sys_stat.in.h (utimensat): Declare it.
30642         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30643         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30644         * modules/utimensat-tests: New test.
30645         * tests/test-utimensat.c: Likewise.
30646
30647         utimens: let lutimens work on non-symlinks
30648         * lib/utimens.c (lutimens): Fall back to utimens rather than
30649         failing with ENOSYS, when file is not a symlink.
30650         (utimens): Reduce redirection.
30651         * tests/test-lutimens.h (test_lutimens): Update test to cover
30652         non-symlinks.
30653         * tests/test-utimens.h (test_utimens): Update test to cover
30654         symlinks.
30655         * tests/test-utimens.c (main): Update caller.
30656
30657         utimens: cache whether utimensat syscall works
30658         * lib/utimens.c (utimensat_works_really): New cache variable.
30659         (fdutimens, lutimens): Use it to avoid failing syscall.
30660
30661         test-stat-time, test-utimens: improve portability
30662         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
30663         ext4 on alpha, and for cygwin.
30664         * tests/test-utimens-common.h: New file.
30665         (nap): Factor delays into single function.
30666         * tests/test-lutimens.h (test_lutimens): Use new header.
30667         * tests/test-futimens.h (test_futimens): Likewise.
30668         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
30669         timestamps to occur from same machine, as was done previously for
30670         test_utimens.
30671         * modules/utimens-tests (Files): Ship new file.
30672         * modules/futimens-tests (Files): Likewise.
30673         Reported in part by Jim Meyering.
30674
30675         sys_stat: sort replacement declarations
30676         * lib/sys_stat.in.h: Sort declarations.
30677         * lib/futimens.c (futimens): Fix typo.
30678
30679 2009-10-15  Jim Meyering  <meyering@redhat.com>
30680
30681         don't let environment settings perturb build
30682         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
30683         could cause a configure-time and/or build-time malfunction.
30684         Typically, a configure-time function-in-library test is performed
30685         via code like this:
30686
30687           LIB_VAR=
30688           AC_SUBST([LIB_VAR])
30689           prefix_saved_LIBS=$LIBS
30690             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
30691                        [test "$ac_cv_search_FUNC" = "none required" ||
30692                         LIB_VAR=$ac_cv_search_FUNC])
30693           LIBS=$prefix_saved_LIBS
30694
30695         However, in each of the files affected by this change, the LIB_VAR=
30696         initialization was omitted.  Thus, when set in the environment, its
30697         value would propagate into generated Makefiles when FUNC is not found
30698         in LIB_NAME.
30699         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
30700         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
30701         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30702
30703 2009-10-14  Eric Blake  <ebb9@byu.net>
30704
30705         fchdir: avoid infinite recursion in mingw
30706         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
30707         recursing.
30708
30709         test-stat-time: port to mingw
30710         * tests/test-stat-time.c (force_unlink): Return a value.
30711         (test_ctime) [W32]: Fix compilation error.
30712         (nap): Don't call usleep with too large an argument.  Use
30713         force_unlink.
30714         * doc/pastposix-functions/usleep.texi (usleep): Document the
30715         portability issue.
30716
30717 2009-10-13  Jim Meyering  <meyering@redhat.com>
30718
30719         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
30720         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
30721         * modules/pipe-filter-ii: Likewise.
30722         * modules/sys_socket-tests: Likewise.
30723         * modules/tsearch-tests: Likewise.
30724         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
30725         (check): Depend on it.
30726
30727 2009-10-12  Eric Blake  <ebb9@byu.net>
30728
30729         utimens-tests: port to NFS file systems
30730         * tests/test-utimens.h (test_utimens): Refactor utimecmp
30731         comparisons to avoid spurious failures from timestamp drift
30732         between NFS machines.
30733
30734 2009-10-12  Eric Blake  <ebb9@byu.net>
30735
30736         stat-time-tests: minor cleanups
30737         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
30738         * tests/test-stat-time.c (nap): Separate assignment from call.
30739         Suggested by Paolo Bonzini and Bruno Haible.
30740
30741         sys_stat: guarantee struct timespec
30742         * lib/sys_stat.in.h (includes): Always include <time.h>
30743         * modules/sys_stat (Depends-on): Add time.
30744         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
30745         mode_t permission values.
30746         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
30747         get at subsecond timestamps.
30748
30749 2009-10-10  Eric Blake  <ebb9@byu.net>
30750
30751         futimens: new module
30752         * modules/futimens: New file.
30753         * lib/futimens.c (futimens): Likewise.
30754         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
30755         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
30756         we can work around Linux bugs.
30757         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30758         * modules/sys_stat (Makefile.am): Substitute them.
30759         * lib/sys_stat.in.h (futimens): Declare it.
30760         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30761         * doc/posix-functions/futimens.texi (futimens): Likewise.
30762         * modules/futimens-tests: New test.
30763         * tests/test-futimens.c: Likewise.
30764
30765         utimens: introduce fdutimens
30766         * lib/utimens.h (fdutimens): New prototype.
30767         * lib/utimens.c (gl_futimens): Move guts...
30768         (fdutimens): ...to new interface.
30769         * tests/test-utimens.c (do_fdutimens): Use it.
30770
30771         utimens: add UTIME_NOW and UTIME_OMIT support
30772         * lib/utimens.c (validate_timespec, update_timespec): New helper
30773         functions.
30774         (gl_futimens, lutimens): Use them.
30775         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
30776         stdbool, sys_stat.
30777         (Link): Mention resulting library dependency.
30778         * modules/utimecmp (Link): Likewise.
30779         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
30780         (Makefile.am): Pick up library dependency.
30781         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
30782         definition.
30783         * tests/test-sys_stat.c: Test the definitions.
30784         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
30785         * NEWS: Document library dependency.
30786
30787         utimecmp: support symlink timestamps
30788         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
30789         hashing when possible.  Use pathconf when available.
30790         (SYSCALL_RESOLUTION): Recognize tighter resolution.
30791         * modules/utimecmp (Depends-on): Add lstat.
30792
30793         utimens: add lutimens interface
30794         * lib/utimens.c (lutimens): New function.
30795         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
30796         * lib/utimens.h (lutimens): Declare new interface.
30797         * tests/test-utimens.c (main): Enhance test.
30798         * tests/test-lutimens.h (test_lutimens): New file.
30799         * modules/utimens-tests (Files): Distribute it.
30800         (Depends-on): Add symlink.
30801         (configure.ac): Check for usleep.
30802
30803         utimens: validate futimens usage
30804         * lib/utimens.c (gl_futimens): Require valid fd up front, using
30805         fewer syscalls on failure later on.  Avoid compiler warning on
30806         mingw.
30807         * modules/utimens (Depends-on): Add dup2.
30808
30809         utimens: add test
30810         * modules/utimens-tests: New test.
30811         * tests/test-utimens.h: New file.
30812         * tests/test-futimens.h: Likewise.
30813         * tests/test-utimens.c: Likewise.
30814
30815         doc: mention timestamp portability issues
30816         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
30817         instead.
30818         * doc/posix-functions/utime.texi (utime): Likewise.
30819         * doc/posix-functions/utimes.texi (utimes): Likewise.
30820         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
30821         instead.
30822         * doc/posix-functions/futimens.texi (futimens): Mention utimens
30823         module.
30824         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30825         Mention weakness with symlink timestamps.
30826         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
30827         to utimensat/futimens instead.
30828         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
30829
30830         test-dup2: enhance test
30831         * tests/test-dup2.c (main): Also check AT_FDCWD.
30832
30833         test-stat-time: avoid more spurious failures
30834         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
30835         xfs; and avoid race if the two timestamps cross quantization edge.
30836
30837         relocatable: prefer 'file system' over 'filesystem'
30838         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
30839         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
30840         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
30841         * doc/relocatable.texi (Enabling Relocatability): Likewise.
30842         * lib/relocatable.c (compute_curr_prefix): Likewise.
30843
30844 2009-10-10  Jim Meyering  <meyering@redhat.com>
30845
30846         stat-time-tests: check for the usleep function
30847         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
30848
30849 2009-10-10  Bruno Haible  <bruno@clisp.org>
30850
30851         * modules/xnanosleep: Put the Link section after the Include section.
30852
30853 2009-10-09  Eric Blake  <ebb9@byu.net>
30854
30855         dup2: work around FreeBSD 6.1 bug
30856         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
30857         * doc/posix-functions/dup2.texi (dup2): Document it.
30858         Reported by Nelson H. F. Beebe and Jim Meyering.
30859
30860         test-stat-time: port to buggy NFS clients
30861         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
30862         (test_ctime): Also skip test if mtime and ctime are skewed.
30863
30864         maint: prefer 'file system' over 'filesystem'
30865         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
30866         * doc/posix-functions/lstat.texi (lstat): Likewise.
30867         * lib/file-has-acl.c (file_has_acl): Likewise.
30868         * lib/fwriteerror.c [TEST]: Likewise.
30869         * tests/test-areadlink.h (test_areadlink): Likewise.
30870         * tests/test-areadlinkat-with-size.c (main): Likewise.
30871         * tests/test-areadlinkat.c (main): Likewise.
30872         * tests/test-canonicalize-lgpl.c (main): Likewise.
30873         * tests/test-canonicalize.c (main): Likewise.
30874         * tests/test-fstatat.c (main): Likewise.
30875         * tests/test-linkat.c (main): Likewise.
30876         * tests/test-lstat.h (test_lstat_func): Likewise.
30877         * tests/test-mkdir.h (test_mkdir): Likewise.
30878         * tests/test-readlink.h (test_readlink): Likewise.
30879         * tests/test-remove.c (main): Likewise.
30880         * tests/test-rename.h (test_rename): Likewise.
30881         * tests/test-renameat.c (main): Likewise.
30882         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30883         * tests/test-symlink.h (test_symlink): Likewise.
30884         * tests/test-symlinkat.c (main): Likewise.
30885         * tests/test-unlink.h (test_unlink_func): Likewise.
30886         * tests/test-unlinkat.c (main): Likewise.
30887
30888         maint: make realtime library usage explicit
30889         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
30890         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
30891         * modules/settime (Link): Likewise.
30892         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
30893
30894         test-stat-time: speed up execution
30895         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
30896         warning on mingw.
30897         (nap): New helper function.
30898         (prepare_test): Use it to reduce sleep time.
30899         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
30900         execution.
30901         * modules/stat-time-tests (configure.ac): Check for usleep.
30902
30903 2009-10-09  Jim Meyering  <meyering@redhat.com>
30904
30905         selinux-h: always use getfilecon wrappers
30906         * lib/getfilecon.c: New file.
30907         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
30908         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
30909         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
30910         (fgetfilecon): Provide a stub.
30911         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
30912         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
30913         file unconditionally.
30914         When <selinux/selinux.h> is found, arrange to use wrappers.
30915         * modules/selinux-h (Files): Add getfilecon.c.
30916         (Makefile.am): Substitute include-next-related bits
30917         into the now-always-generated selinux/selinux.h file.
30918         * doc/glibc-functions/lgetfilecon.texi: New file.
30919         * doc/glibc-functions/fgetfilecon.texi: New file.
30920         * doc/glibc-functions/getfilecon.texi: New file.
30921         * doc/glibc-functions/getfilecon-desc.texi: New file.
30922         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
30923         which to pull in the new files.
30924         * MODULES.html.sh (Misc): Add selinux-h.
30925
30926 2009-10-08  Jim Meyering  <meyering@redhat.com>
30927
30928         unistd: fix comment typo
30929         * lib/unistd.in.h (euidaccess): Fix a comment typo.
30930
30931 2009-10-08  Eric Blake  <ebb9@byu.net>
30932
30933         areadlink: use SIZE_MAX consistently
30934         * modules/areadlink (Depends-on): Add stdint.
30935         * modules/areadlink-with-size (Depends-on): Likewise.
30936         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
30937         gives NULL; drop sys/types, since unistd gives size_t; and add
30938         stdint for SIZE_MAX.
30939         (SIZE_MAX): Rely on headers.
30940         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
30941         and add stdint.
30942         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
30943         (SIZE_MAX): Likewise.
30944         (INITIAL_BUF_SIZE): Turn into enum.
30945         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
30946
30947 2009-10-08  Jim Meyering  <meyering@redhat.com>
30948
30949         areadlinkat: avoid compilation failure
30950         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
30951         Fix typo in comment.
30952
30953 2009-10-07  Eric Blake  <ebb9@byu.net>
30954
30955         areadlinkat-with-size: new module
30956         * modules/areadlinkat-with-size: New module.
30957         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
30958         * lib/areadlink.h (areadlinkat): Declare it.
30959         * MODULES.html.sh (File system functions): Mention it.
30960         * modules/areadlinkat-with-size-tests: New test.
30961         * tests/test-areadlinkat-with-size.c: New file.
30962
30963         xreadlinkat: new module
30964         * modules/xreadlinkat: New module.
30965         * lib/xreadlinkat.c (xreadlinkat): New file.
30966         * lib/xreadlink.h (xreadlinkat): Declare it.
30967         * MODULES.html.sh (File system functions): Mention it.
30968
30969         areadlinkat: new module
30970         * lib/at-func.c (FUNC_FAIL): New define.
30971         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
30972         * modules/areadlinkat: New module.
30973         * lib/linkat.c (areadlinkat): Move...
30974         * lib/areadlinkat.c (areadlinkat): ...to new file.
30975         * lib/areadlink.h (areadlinkat): Declare it.
30976         * modules/linkat (Depends-on): Add areadlinkat.
30977         * MODULES.html.sh (File system functions): Mention it.
30978         * modules/areadlinkat-tests: New test.
30979         * tests/test-areadlinkat.c: New file.
30980
30981         areadlink, areadlink-with-size: add tests
30982         * modules/areadlink-tests: New test.
30983         * modules/areadlink-with-size-tests: Likewise.
30984         * tests/test-areadlink.h: New file.
30985         * tests/test-areadlink.c: Likewise.
30986         * tests/test-areadlink-with-size.c: Likewise.
30987
30988         maint: minor cleanups
30989         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
30990         _UNUSED_PARAMETER_ instead.
30991         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
30992         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
30993         * modules/linkat-tests (Files): Distribute test-link.h.
30994
30995         openat, utimens: whitespace cleanup
30996         * lib/openat.c: Prefer space throughout, rather than mix of 8
30997         spaces vs. tabs.
30998         * lib/at-func.c: Likewise.
30999         * lib/utimens.c: Likewise.
31000
31001         openat: avoid using wrong fd
31002         * lib/openat.c (openat_permissive): Reject user's fd if saving the
31003         working directory chooses same fd.
31004         * lib/at-func.c (AT_FUNC_NAME): Likewise.
31005
31006         mkdir, mkdirat: fix cygwin 1.5.x bug
31007         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
31008         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
31009         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
31010         bug.
31011         (gl_PREREQ_MKDIR): Delete unused macro.
31012         * modules/mkdir (Files): Track file rename.
31013         (configure.ac): Update macro name.
31014         * modules/openat (Depends-on): Add mkdir.
31015         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
31016
31017         mkdir, mkdirat: add tests
31018         * modules/mkdir-tests: New test.
31019         * tests/test-mkdir.h: New file.
31020         * tests/test-mkdir.c: Likewise.
31021         * tests/test-mkdirat.c: Likewise.
31022         * modules/openat-tests (Files): Add new files.
31023         (Makefile.am): Run new test.
31024
31025 2009-10-06  Eric Blake  <ebb9@byu.net>
31026
31027         doc: tweak *at function documentation
31028         * doc/posix-functions/faccessat.texi (faccessat): Mention
31029         known issue with replacement.
31030         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
31031         * doc/posix-functions/linkat.texi (linkat): Likewise.
31032         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
31033         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
31034         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31035         * doc/posix-functions/renameat.texi (renameat): Likewise.
31036         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31037
31038         openat: fix GNU/Hurd bug in unlinkat
31039         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
31040         broken.
31041         * doc/posix-functions/unlink.texi (unlink): Document this.
31042         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
31043
31044         fdopendir: fix GNU/Hurd bug
31045         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
31046         allowing non-directory fds.
31047         * lib/fdopendir.c (rpl_fdopendir): Work around it.
31048         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
31049         * modules/dirent (Makefile.am): Substitute it.
31050         * lib/dirent.in.h (fdopendir): Declare replacement.
31051         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
31052         * tests/test-fdopendir.c (main): Test something other than
31053         /dev/null, since on Hurd that behaves like a directory.
31054
31055         test-symlink: port to GNU/Hurd
31056         * tests/test-symlink.h (test_symlink): Relax expected errno.
31057
31058         doc: tweak more cygwin information
31059         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
31060         now compatible with glibc.
31061         * doc/posix-functions/getopt.texi (getopt): Likewise.
31062
31063         getopt-gnu: add another test
31064         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
31065         guarantee behavior relied on by m4.
31066         * tests/test-getopt.c (main): Use it.
31067         * modules/getopt-posix-tests (Depends-on): Add setenv.
31068         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
31069
31070         getopt: fix compilation on darwin
31071         * lib/getopt.in.h (includes): Leave breadcrumbs during system
31072         include.
31073         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
31074         Reported by Ludovic Courtès.
31075
31076 2009-10-06  Bruno Haible  <bruno@clisp.org>
31077
31078         * modules/size_max (Description): Discourage its use.
31079         Reported by Simon Josefsson.
31080
31081 2009-10-06  Jim Meyering  <meyering@redhat.com>
31082
31083         linkat: avoid compilation failure
31084         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
31085
31086 2009-10-05  Eric Blake  <ebb9@byu.net>
31087
31088         linkat: support Linux 2.6.17
31089         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
31090         linkat on Linux, but allow cache variable override.
31091         * lib/linkat.c (rpl_linkat): Define override.
31092         * modules/linkat (Depends-on): Add symlinkat.
31093         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
31094         * modules/unistd (Makefile.am): Substitute it.
31095         * lib/unistd.in.h (linkat): Declare replacement.
31096         Reported by Pádraig Brady.
31097
31098         quotearg: port test to systems with C.UTF-8 locale
31099         * tests/test-quotearg.c (struct result_strings): Add another
31100         member, differentiating between C.ASCII and C.UTF-8 handling.
31101         (compare_strings): Add parameter.
31102         (main): Adjust all callers.
31103
31104         getopt: avoid clash with FreeBSD _getopt_internal
31105         * lib/getopt.in.h (_getopt_internal): Override the name.
31106         * lib/getopt_int.h (includes): Pick up any overrides.
31107         Reported by Reuben Thomas.
31108
31109         hash: allow C89 compilation
31110         * lib/hash.c (check_tuning): Move declaration before statement.
31111         Reported by Reuben Thomas.
31112
31113 2009-10-05  Karl Berry  <karl@gnu.org>
31114
31115         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
31116
31117 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
31118             Bruno Haible  <bruno@clisp.org>
31119
31120         * lib/uname.c (uname): Use a table-driven algorithm to compute
31121         Windows NT versions.
31122
31123 2009-10-04  Bruno Haible  <bruno@clisp.org>
31124
31125         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
31126         program_invocation_short_name.
31127         * modules/progname (configure.ac): Test for presence of
31128         program_invocation_short_name.
31129         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
31130
31131 2009-10-04  Bruno Haible  <bruno@clisp.org>
31132
31133         * lib/progname.c (set_program_name): Fix comment.
31134         Reported by Jim Meyering.
31135
31136 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
31137             Bruno Haible  <bruno@clisp.org>
31138
31139         * lib/uname.c: Include <string.h>.
31140         (uname): Do only one call to GetVersionEx in the common case.
31141
31142 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
31143             Bruno Haible  <bruno@clisp.org>
31144
31145         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
31146         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
31147         (uname): Add support for Windows CE and various non-x86 CPU types.
31148
31149 2009-10-03  Bruno Haible  <bruno@clisp.org>
31150
31151         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
31152         invocation to tests/configure.ac.
31153         Reported by Ian Beckwith <ianb@erislabs.net>.
31154
31155 2009-10-02  Eric Blake  <ebb9@byu.net>
31156
31157         fchdir: avoid compiler warning
31158         * lib/fchdir.c (canonicalize_file_name)
31159         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
31160
31161         test-open: support mingw errno values
31162         * tests/test-open.h (test_open): Relax test.
31163         * tests/test-fopen.h (test_fopen): Likewise.
31164         * tests/test-openat-safer.c (main): Likewise.
31165
31166         open: fix opening directory on mingw
31167         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
31168
31169         test-open: on GNU/Hurd, /dev/null is a directory
31170         * tests/test-fopen.h (main): Rename...
31171         (test_fopen): ...to this.  Use a guaranteed non-directory when
31172         confirming open behavior on trailing slash.
31173         * tests/test-openat-safer.c (main): Likewise.
31174         * tests/test-open.h (main): Likewise....
31175         (test_open): ...to this.
31176         * tests/test-fopen.c (main): Adjust caller.
31177         * tests/test-fopen-safer.c (main): Likewise.
31178         * tests/test-open.c (main): Likewise.
31179         * tests/test-fcntl-safer.c (main): Likewise.
31180         Reported by Samuel Thibault.
31181
31182         rename, fchdir: don't ignore chdir failure
31183         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
31184         * lib/rename.c (rpl_rename) [W32]: Likewise.
31185         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
31186         an empty destination directory if source cannot be renamed,
31187         although there is still possibility for failure.
31188         * doc/posix-functions/rename.texi (rename): Document the race.
31189         Reported by Jim Meyering.
31190
31191         maint: cleanup whitespace in recent commits
31192         * lib/rename.c (rpl_rename): Remove tabs.
31193         * tests/test-link.h (test_link): Likewise.
31194         * lib/fchdir.c (get_name): Likewise.
31195         Reported by Jim Meyering.
31196
31197 2009-10-02  Ben Pfaff  <blp@gnu.org>
31198
31199         relocatable-prog-wrapper: Add missing dependency on
31200         double-slash-root.
31201         * modules/relocatable-prog-wrapper: Add dependency.
31202         Reported by Ian Beckwith <ianb@erislabs.net>.
31203
31204 2009-10-02  Eric Blake  <ebb9@byu.net>
31205
31206         renameat: fix Solaris bugs
31207         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
31208         needed fixing.
31209         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
31210         * modules/stdio (Makefile.am): Substitute it.
31211         * lib/stdio.in.h (renameat): Declare replacement.
31212         * lib/renameat.c (rpl_renameat): Implement fix.
31213
31214         renameat: new module
31215         * modules/renameat: New file.
31216         * lib/renameat.c (renameat): Likewise.
31217         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
31218         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
31219         * modules/stdio (Makefile.am): Substitute them.
31220         * lib/stdio.in.h (renameat): Declare it.
31221         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31222         * doc/posix-functions/renameat.texi (renameat): Likewise.
31223         * modules/renameat-tests: New test.
31224         * tests/test-renameat.c: Likewise.
31225
31226         rename: fix mingw bugs
31227         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
31228         directory overwrite bugs.
31229
31230         rename: fix another cygwin 1.5 bug
31231         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
31232         checks.
31233         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
31234         unnecessary cygwin workarounds.  Also work around bug with moving
31235         full directory onto an empty one.
31236         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
31237
31238         rename-dest-slash: merge into rename module
31239         * modules/rename-dest-slash (Status): Mark obsolete.
31240         (Depends-on): Add rename.
31241         (Files): Let rename do it all.
31242         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
31243         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
31244         * m4/rename-dest-slash.m4: ...so this file can be deleted.
31245         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
31246         * lib/rename.c (rpl_rename): Update comments.
31247
31248         rename: fix cygwin 1.5.x bugs
31249         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
31250         * lib/rename.c (rpl_rename): Work around them.
31251         * modules/rename (Depends-on): Add same-inode.
31252
31253         rename: fix Solaris 10 bug
31254         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
31255         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
31256         was the only bug.
31257
31258         rename: fix Solaris 9 bug
31259         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
31260         on non-directory.  Avoid calling exit.
31261         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
31262         strdup.
31263         * modules/rename-tests (Depends-on): Drop lstat.
31264         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
31265         (gl_PREREQ_RENAME): Delete unused macro.
31266
31267         rename-dest-slash: fix NetBSD bug
31268         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
31269         links.
31270         * modules/rename-dest-slash (Depends-on): Add same-inode.
31271
31272         rename-tests: new test, exposes several platform bugs
31273         * modules/rename-tests: New file.
31274         * tests/test-rename.h: Likewise.
31275         * tests/test-rename.c: Likewise.
31276         * doc/posix-functions/rename.texi (rename): Improve documentation,
31277         including bugs that will eventually be fixed in gnulib.
31278
31279 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
31280
31281         * lib/uname.c: Include <stdlib.h>
31282         (uname): Assume version info is available.
31283
31284 2009-10-02  Jim Meyering  <meyering@redhat.com>
31285
31286         gnu-web-doc-update: correct --help output
31287         * build-aux/gnu-web-doc-update: Make --help output relevant.
31288
31289         gnu-web-doc-update: add standard options
31290         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
31291
31292         gnu-web-doc-update: New module.
31293         Use this script to automatically update the on-line web documentation
31294         for your GNU project at http://www.gnu.org/software/$pkg/manual/
31295         * modules/gnu-web-doc-update: New file, from coreutils.
31296         * build-aux/gnu-web-doc-update: New script.
31297
31298 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
31299
31300         link: LoadLibrary is not needed.
31301         * lib/link.c: Use GetModuleHandle.
31302
31303 2009-10-01  Eric Blake  <ebb9@byu.net>
31304
31305         getopt: bump serial number
31306         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
31307         change.
31308
31309         tests: tighten link, rmdir, and remove tests
31310         * tests/test-link.h (includes): No need to use <config.h> here.
31311         Clean up if directory hard link was created, otherwise test for
31312         trailing '.'.
31313         * tests/test-linkat.c (main): Simplify.
31314         * tests/test-remove.c (main): Enhance test for trailing '.'.
31315         * tests/test-rmdir.h (test_rmdir_func): Likewise.
31316
31317 2009-10-01  Jim Meyering  <meyering@redhat.com>
31318
31319         maint.mk: requiring "make major" was annoying, for a "minor" release.
31320         What is intended is "stable", to contrast with alpha and beta,
31321         so require "make stable", not "make major".
31322         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
31323         (get_tool_versions): Likewise.
31324         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
31325
31326 2009-09-30  Ben Pfaff  <blp@gnu.org>
31327
31328         Fix broken build of replacement for Windows tmpfile().
31329         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
31330         flags argument added along with the 'mkostemp' module.
31331
31332 2009-09-28  Bruno Haible  <bruno@clisp.org>
31333
31334         Avoid identifier clash with POSIX function 'remove' defined as a macro.
31335         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
31336         to 'remove_elt'.
31337         (gl_list_remove): Update.
31338         * lib/gl_list.c (gl_list_remove): Update.
31339         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
31340         to 'remove_elt'.
31341         (gl_oset_remove): Update.
31342         * lib/gl_list.c (gl_oset_remove): Update.
31343         Reported by Eric Blake.
31344
31345 2009-09-28  Eric Blake  <ebb9@byu.net>
31346
31347         doc: mention yet more cygwin 1.7 status
31348         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
31349         cygwin.
31350         * doc/glibc-functions/execvpe.texi (execvpe): New file.
31351         * doc/gnulib.texi (Glibc unistd.h): Mention it.
31352
31353         argp: fix test failure
31354         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
31355         that are not upper-case.  Pass correct range to tolower.
31356
31357 2009-09-27  Jim Meyering  <meyering@redhat.com>
31358
31359         test-yesno: work around sparc-dash here-document infelicity
31360         Without this change, the literal \177 byte in a here document
31361         would make dash 0.5.5.1-3 access uninitialized memory.
31362         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
31363         Instead, use a marker, "@", and filter through tr to create the desired
31364         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
31365
31366 2009-09-27  Bruno Haible  <bruno@clisp.org>
31367
31368         Disable untested support for new flavours of ACLs on AIX.
31369         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
31370         progress.
31371         * lib/set-mode-acl.c (qset_acl): Likewise.
31372
31373 2008-12-07  Bruno Haible  <bruno@clisp.org>
31374
31375         Add support for new flavours of ACLs on AIX. (Untested.)
31376         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
31377         (file_has_acl): Add support for newer AIX.
31378         * lib/set-mode-acl.c (qset_acl): Likewise.
31379         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
31380         Rainer Tammer <tammer@tammer.net>.
31381
31382 2009-09-26  Eric Blake  <ebb9@byu.net>
31383
31384         argp: fix compilation of getopt
31385         * lib/getopt.in.h (includes): Use different guard than glibc.
31386         Reported by Sergey Poznyakoff.
31387
31388         doc: mention more cygwin 1.7 status
31389         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
31390         bug.
31391         * doc/posix-functions/execl.texi (execl): Likewise.
31392         * doc/posix-functions/execle.texi (execle): Likewise.
31393         * doc/posix-functions/execlp.texi (execlp): Likewise.
31394         * doc/posix-functions/execv.texi (execv): Likewise.
31395         * doc/posix-functions/execve.texi (execve): Likewise.
31396         * doc/posix-functions/execvp.texi (execvp): Likewise.
31397         * doc/glibc-functions/canonicalize_file_name.texi
31398         (canonicalize_file_name): Cygwin 1.7 now provides this.
31399         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
31400         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
31401         on AT_SYMLINK_NOFOLLOW.
31402
31403 2009-09-24  Eric Blake  <ebb9@byu.net>
31404
31405         test-linkat: make test more robust
31406         * tests/test-linkat.c (main): Avoid collision with EEXIST.
31407
31408         getopt: fix inclusion guards for cygwin
31409         * modules/getopt-posix (Depends-on): Add include-next.
31410         (Makefile.am): Substitute more items in replacement header.
31411         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
31412         <getopt.h>.
31413         * lib/getopt.in.h (includes): Use split inclusion guard, and
31414         prefer <getopt.h> over include <unistd.h> when one is present.
31415         (option): Also override name of 'struct option'.
31416
31417         same-inode: revert prior change; it is not yet ready
31418         * NEWS: Undo mention of this change.
31419         * lib/same-inode.h (same-inode.h): Undo tri-state change.
31420         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
31421         * lib/cycle-check.c (cycle_check): Likewise.
31422         * lib/same.c (same_name): Likewise.
31423         * lib/at-func2.c (at_func2): Likewise.
31424
31425 2009-09-23  Eric Blake  <ebb9@byu.net>
31426
31427         linkat: new module
31428         * modules/linkat: New file.
31429         * lib/at-func2.c (at_func2): Likewise.
31430         * lib/linkat.c (linkat): Likewise.
31431         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
31432         * lib/openat-priv.h (at_func2): Add declaration.
31433         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31434         * modules/unistd (Makefile.am): Substitute them.
31435         * lib/unistd.in.h (linkat): Declare it.
31436         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31437         * doc/posix-functions/linkat.texi (linkat): Likewise.
31438         * doc/posix-functions/link.texi (link): Tweak wording.
31439         * tests/test-link.c (main): Move guts...
31440         * tests/test-link.h (test_link): ...into new file.
31441         * modules/linkat-tests: New test.
31442         * tests/test-linkat.c: Likewise.
31443         * modules/link-tests (Files): Ship new file.
31444         (Depends-on): Add stdbool.
31445
31446         dirname: add library-safe mdir_name
31447         * lib/dirname.h (mdir_name): New prototype.
31448         * lib/dirname.c (dir_name): Move guts...
31449         (mdir_name): ...to new function that avoids xalloc_die.
31450
31451         fchdir: another mingw fix
31452         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
31453         * lib/fchdir.c (get_name): New helper method; skips canonicalize
31454         on mingw (where it has not yet been ported), and make it optional
31455         elsewhere.
31456         (_gl_register_fd): Use it.
31457
31458         same-inode: make SAME_INODE tri-state, to port to mingw
31459         * NEWS: Mention this change.
31460         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
31461         st_ino always being 0.
31462         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
31463         * lib/cycle-check.c (cycle_check): Likewise.
31464         * lib/same.c (same_name): Likewise.
31465
31466         lstat: avoid mingw compilation error
31467         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
31468         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
31469         lstat ourselves.
31470         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
31471         was adequate.
31472         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
31473         the checks for lstat.
31474         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
31475
31476         link: fix test failure on Solaris 9
31477         * lib/link.c (rpl_link): Don't assume link will catch bogus
31478         trailing slash on source.
31479
31480         test-symlinkat: enhance test
31481         * tests/test-readlink.c (main): Move guts...
31482         * tests/test-readlink.h (test_readlink): ...into new file.
31483         * tests/test-symlink.c (main): Move guts...
31484         * tests/test-symlink.h (test_symlink): ...into new file.
31485         * tests/test-symlinkat.c (main): Use new files for further
31486         coverage.
31487         (do_symlink, do_readlink): New helper functions.
31488         * modules/symlink-tests (Files): Ship new file.
31489         (Depends-on): Add stdbool.
31490         * modules/readlink-tests (Files): Ship new file.
31491         (Depends-on): Add stdbool.
31492         * modules/symlinkat-tests (Files): Use new files.
31493
31494 2009-09-23  Eric Blake  <ebb9@byu.net>
31495
31496         readlink: document portability issue with symlink length
31497         * doc/posix-functions/lstat.texi (lstat): Mention that some file
31498         systems have bogus st_size on symlinks, and mention the
31499         areadlink-with-size module.
31500         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
31501         * doc/posix-functions/readlink.texi (readlink): Mention the
31502         areadlink module, and ERANGE failure.
31503         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31504         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
31505
31506         readlink: fix Solaris 9 bug with trailing slash
31507         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
31508         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
31509         * doc/posix-functions/readlink.texi (readlink): Document this.
31510         * modules/readlink-tests: New test.
31511         * tests/test-readlink.c: Likewise.
31512
31513         readlink: fix cygwin 1.5.x bug with return type
31514         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
31515         * lib/unistd.in.h (readlink): Use ssize_t.
31516         * lib/readlink.c (readlink): Likewise.
31517         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31518         * modules/unistd (Makefile.am): Substitute it.
31519         * lib/unistd.in.h (readlink): Declare replacement.
31520         * doc/posix-functions/readlink.texi (readlink): Document this.
31521
31522         symlink: use throughout gnulib
31523         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
31524         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
31525         symlink is not used.
31526         * modules/symlinkat (Depends-on): Add symlink.
31527         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31528         * modules/canonicalize-tests (Depends-on): Likewise.
31529         * modules/lstat-tests (Depends-on): Likewise.
31530         * modules/openat-tests (Depends-on): Likewise.
31531         * modules/remove-tests (Depends-on): Likewise.
31532         * modules/rmdir-tests (Depends-on): Likewise.
31533         * modules/unlink-tests (Depends-on): Likewise.
31534         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
31535         * tests/test-canonicalize.c (symlink): Likewise.
31536         * tests/test-fstatat.c (symlink): Likewise.
31537         * tests/test-lstat.c (symlink): Likewise.
31538         * tests/test-remove.c (symlink): Likewise.
31539         * tests/test-rmdir.c (symlink): Likewise.
31540         * tests/test-unlink.c (symlink): Likewise.
31541         * tests/test-unlinkat.c (symlink): Likewise.
31542
31543         symlink: new module, for Solaris 9 bug
31544         * modules/symlink: New file.
31545         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
31546         * lib/symlink.c: Likewise.
31547         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
31548         * modules/unistd (Makefile.am): Substitute them.
31549         * lib/unistd.in.h (symlink): Declare replacement.
31550         * MODULES.html.sh (File system functions): Mention it.
31551         * doc/posix-functions/symlink.texi (symlink): Likewise.
31552         * modules/symlink-tests: New test.
31553         * tests/test-symlink.c: Likewise.
31554
31555 2009-09-23  Bruno Haible  <bruno@clisp.org>
31556
31557         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
31558         when needed.
31559         Test case: gnulib-tool --import --with-tests atexit inttypes.
31560         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
31561
31562 2009-09-23  Bruno Haible  <bruno@clisp.org>
31563
31564         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
31565         subcommand, not in a subshell.
31566
31567 2009-09-22  Eric Blake  <ebb9@byu.net>
31568
31569         unistd: sort replacement declarations
31570         * lib/unistd.in.h: Sort declarations.
31571
31572         open, openat: minor optimization
31573         * lib/open.c (open): If open succeeded, len is non-zero.
31574         * lib/openat.c (rpl_openat): Likewise.
31575
31576         link-follow: ensure correct result
31577         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
31578         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
31579         distinguish between possible failures.
31580
31581 2009-09-21  Eric Blake  <ebb9@byu.net>
31582
31583         fts: avoid compiler warning
31584         * lib/fts.c (dirent_inode_sort_may_be_useful)
31585         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
31586
31587 2009-09-19  Bruno Haible  <bruno@clisp.org>
31588
31589         * lib/progreloc.c (canonicalize_file_name): New declaration.
31590
31591 2009-09-19  Eric Blake  <ebb9@byu.net>
31592
31593         link: fix quoting
31594         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
31595
31596         openat: fix openat bugs on Solaris 9
31597         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
31598         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
31599         * modules/openat (Depends-on): Add open.
31600         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
31601         * modules/fcntl-h (Makefile.am): Substitute it.
31602         * lib/fcntl.in.h (openat): Declare replacement.
31603         * doc/posix-functions/openat.texi (openat): Document this.
31604
31605         openat: move fstatat and unlinkat into correct files
31606         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
31607         compiled.
31608         * lib/openat.c (fstatat, unlinkat): Move...
31609         * lib/fstatat.c (fstatat): ...into correct files.
31610         * lib/unlinkat.c (unlinkat): Likewise.
31611
31612         openat: fix unlinkat bugs on Solaris 9
31613         * lib/unlinkat.c (unlinkat): New file.
31614         * modules/openat (Depends-on): Add unlink.
31615         (Files): Distribute it.
31616         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
31617         trailing slash behavior is broken.
31618         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31619         * modules/unistd (Makefile.am): Substitute it.
31620         * lib/unistd.in.h (unlinkat): Declare replacement.
31621         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
31622
31623         openat: fix fstatat bugs on Solaris 9
31624         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
31625         stat.
31626         * doc/posix-functions/fstatat.texi (fstatat): Document this.
31627
31628         test-unlinkat: enhance test, to expose Solaris 9 bug
31629         * tests/test-unlink.c (main): Factor guts...
31630         * tests/test-unlink.h (test_rmdir_func): ...into new file.
31631         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
31632         * tests/test-rmdir.c (main): Adjust caller.
31633         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
31634         (unlinker): New helper function.
31635         (rmdirat): Enhance check.
31636         * modules/rmdir-tests (Depends-on): Add stdbool.
31637         * modules/unlink-tests (Depends-on): Likewise.
31638         (Files): Add test-unlink.h.
31639         * modules/openat-tests (Files): Likewise.
31640         (Depends-on): Add unlinkdir.
31641
31642         test-fstatat: new test, to expose Solaris 9 bugs
31643         * tests/test-stat.c (main): Factor guts...
31644         * tests/test-stat.h (test_stat_func): ...into new file.
31645         * tests/test-lstat.c (main): Factor guts...
31646         * tests/test-lstat.h (test_lstat_func): ...into new file.
31647         * tests/test-fstatat.c: New file.
31648         * modules/stat-tests (Files): Add test-stat.h.
31649         * modules/lstat-tests (Files): Add test-lstat.h.
31650         (Depends-on): Add stdbool.
31651         * modules/openat-tests (Depends-on): Add pathmax.
31652         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
31653         (Makefile.am): Run new test.
31654
31655         remove: new module, for mingw and Solaris 9 bugs
31656         * modules/remove: New file.
31657         * lib/remove.c: Likewise.
31658         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
31659         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
31660         * modules/stdio (Makefile.am): Use them.
31661         * lib/stdio.in.h (remove): Declare replacement.
31662         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31663         * doc/posix-functions/remove.texi (remove): Likewise.
31664         * modules/remove-tests: New test.
31665         * tests/test-remove.c: Likewise.
31666
31667         unlink: new module, for Solaris 9 bug
31668         * modules/unlink: New file.
31669         * lib/unlink.c: Likewise.
31670         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
31671         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31672         * modules/unistd (Makefile.am): Use them.
31673         * lib/unistd.in.h (stat): Declare replacement.
31674         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31675         * doc/posix-functions/unlink.texi (unlink): Likewise.
31676         * modules/unlink-tests: New test.
31677         * tests/test-unlink.c: Likewise.
31678
31679         lstat: fix Solaris 9 bug
31680         * lib/lstat.c (lstat): Also check for trailing slash on
31681         non-symlink, non-directories.  Use stat module to simplify logic.
31682         * doc/posix-functions/lstat.texi (lstat): Document it.
31683         * modules/lstat-tests (Depends-on): Add errno, same-inode.
31684         (configure.ac): Check for symlink.
31685         * tests/test-lstat.c (main): Add more tests.
31686
31687         stat: add as dependency to other modules
31688         * modules/chown (Depends-on): Add stat.
31689         * modules/euidaccess (Depends-on): Likewise.
31690         * modules/fchdir (Depends-on): Likewise.
31691         * modules/isdir (Depends-on): Likewise.
31692         * modules/link (Depends-on): Likewise.
31693         * modules/lstat (Depends-on): Likewise.
31694         * modules/mkdir-p (Depends-on): Likewise.
31695         * modules/modechange (Depends-on): Likewise.
31696         * modules/open (Depends-on): Likewise.
31697         * modules/readlink (Depends-on): Likewise.
31698         * modules/same (Depends-on): Likewise.
31699
31700         stat: fix Solaris 9 bug
31701         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
31702         slash.
31703         * lib/stat.c (rpl_stat): Work around it.
31704         * doc/posix-functions/stat.texi (stat): Update documentation.
31705
31706         stat: new module, for mingw bug
31707         * modules/stat: New file.
31708         * lib/stat.c: Likewise.
31709         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
31710         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31711         * modules/sys_stat (Makefile.am): Use them.
31712         * lib/sys_stat.in.h (stat): Declare replacement.
31713         * lib/openat.c (fstatat): Deal with lstat and stat being function
31714         macros.
31715         * modules/openat (Depends-on): Add inline.
31716         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31717         * doc/posix-functions/stat.texi (stat): Likewise.
31718         * modules/stat-tests: New test.
31719         * tests/test-stat.c: Likewise.
31720
31721 2009-09-19  Jim Meyering  <meyering@redhat.com>
31722
31723         syntax-check: detect unnecessary inclusion of canonicalize.h
31724         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
31725
31726 2009-09-19  Eric Blake  <ebb9@byu.net>
31727
31728         canonicalize-lgpl: adjust clients to use correct header
31729         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31730         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
31731         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
31732         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
31733         * lib/progreloc.c (includes): Likewise.
31734
31735 2009-09-19  Jim Meyering  <meyering@redhat.com>
31736
31737         test-posixtm.c: correct a comment
31738         * tests/test-posixtm.c: Correct first-line comment.
31739         Spotted by Eric Blake.
31740
31741 2009-09-16  Jim Meyering  <meyering@redhat.com>
31742
31743         posixtm-tests: make T const-correct; add a test case
31744         * tests/test-posixtm.c (T): Declare const.
31745         Add a test for -(2^31+1).
31746         Remove useless can-succeed-only-in-2002 test.
31747
31748         posixtm-tests: adjust the sole failing test
31749         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
31750         expected output matches what mktime now produces.  Cross-checked via
31751         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
31752
31753         posixtm: move #ifdef'd tests into a new module
31754         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
31755         * tests/test-posixtm.c: ... this new file.
31756         * modules/posixtm-tests: New module.
31757
31758 2009-09-19  Eric Blake  <ebb9@byu.net>
31759
31760         openat: simplify use of at-func.c
31761         * lib/at-func.c (includes): Include prerequisites here, to
31762         simplify requirements on client files.
31763         * lib/openat-priv.h: Add double-inclusion guard.
31764         * lib/faccessat.c (includes): Simplify.
31765         * lib/fchmodat.c (includes): Likewise.
31766         * lib/fchownat.c (includes): Likewise.
31767         * lib/mkdirat.c (includes): Likewise.
31768         * lib/mkfifoat.c (includes): Likewise.
31769         * lib/symlinkat.c (includes): Likewise.
31770
31771         openat: allow return of fd 0
31772         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
31773         * modules/save-cwd (Depends-on): Replace fcntl-safer with
31774         unistd-safer.
31775         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
31776         <fcntl.h>; this module does not leak fds.
31777         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
31778         must be allowed to return 0, leaving openat_safer to add the
31779         safety.
31780         (openat_permissive): Avoid writing to just-opened fd 2 if
31781         restoring the current directory fails.
31782         * lib/openat-die.c (openat_restore_fail): Add comment.
31783         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
31784         (save_cwd): Guarantee safe fd, but without use of open_safer.
31785         * tests/test-openat.c: New test.
31786         * modules/openat-tests (Files, Makefile.am): Distribute and build
31787         new file.
31788
31789         relocatable-prog-wrapper: fix build
31790         * modules/relocatable-prog-wrapper (Files): Update name of
31791         canonicalize m4 file, broken on 2009-09-17.
31792         Reported by emad hajjar <aleppos@hotmail.com>.
31793
31794 2009-09-19  Bruno Haible  <bruno@clisp.org>
31795
31796         * lib/safe-alloc.h: Use the standard header with GPL copyright.
31797         * lib/safe-alloc.c: Likewise.
31798         Reported by Ian Beckwith <ianb@erislabs.net>.
31799
31800 2009-09-18  Bruno Haible  <bruno@clisp.org>
31801
31802         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
31803         Reported by <erobles@sensacd.com.mx>.
31804
31805 2009-09-17  Eric Blake  <ebb9@byu.net>
31806
31807         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
31808         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
31809         slashes when checking if last component is missing.
31810         * tests/test-canonicalize.c (main): Test this.
31811
31812         canonicalize, canonicalize-lgpl: honor // if distinct from /
31813         * modules/canonicalize (Files): Add double-slash-root.m4.
31814         * modules/canonicalize-lgpl (Files): Likewise.
31815         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31816         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
31817         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
31818         fallback definition.
31819         (canonicalize_filename_mode): Use it to protect //.
31820         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
31821         (__realpath): Likewise.
31822         * tests/test-canonicalize.c (main): Test this.
31823         * tests/test-canonicalize-lgpl.c (main): Likewise.
31824         * modules/canonicalize-tests (Depends-on): Add same-inode.
31825         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31826
31827         canonicalize-lgpl: fix glibc bug with trailing slash
31828         * m4/canonicalize-lgpl.m4: Move contents...
31829         * m4/canonicalize.m4: ...here.
31830         (gl_CANONICALIZE_LGPL): Factor realpath check...
31831         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
31832         glibc 2.3.5 bug, fixed 2005-04-27.
31833         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
31834         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
31835         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
31836         * modules/canonicalize-lgpl (Files): Manage file rename.
31837         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31838         * modules/stdlib (Makefile.am): Substitute witness.
31839         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
31840         is needed.
31841         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
31842         replacement is required.
31843         * lib/canonicalize.c (canonicalize_file_name): Likewise.
31844         * doc/glibc-functions/canonicalize_file_name.texi
31845         (canonicalize_file_name): Document this.
31846         * doc/posix-functions/realpath.texi (realpath): Likewise.
31847
31848         canonicalize-lgpl: reject non-directory with trailing slash
31849         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
31850         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
31851         catches failures in glibc 2.3.5.
31852         * tests/test-canonicalize.c (main): Likewise.
31853
31854         canonicalize-lgpl: use native realpath if it works
31855         * lib/canonicalize-lgpl.c (realpath): Guard with
31856         FUNC_REALPATH_WORKS.
31857         * lib/stdlib.in.h (realpath): Make declaration optional based on
31858         HAVE_REALPATH.
31859         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
31860         native realpath works.
31861         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31862         * modules/stdlib (Makefile.am): Substitute witness.
31863
31864         canonicalize, canonicalize-lgpl: use <stdlib.h>
31865         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
31866         (Include): Mention <stdlib.h>.
31867         (configure.ac): Mention functions we provide.
31868         * modules/canonicalize (configure.ac): Likewise.
31869         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
31870         realpath if canonicalize_file_name is missing.
31871         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
31872         * modules/stdlib (Makefile.am): Substitute witnesses.
31873         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
31874         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
31875         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
31876         * NEWS: Document this.
31877         * doc/glibc-functions/canonicalize_file_name.texi
31878         (canonicalize_file_name): Likewise.
31879         * doc/posix-functions/realpath.texi (realpath): Likewise.
31880         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
31881
31882         test-canonicalize: consolidate into single C program
31883         * tests/test-canonicalize.sh: Delete; move setup into...
31884         * tests/test-canonicalize.c (main): ...the program, making it
31885         easier to run in debugger.  Add some tests.
31886         * modules/canonicalize-tests (Files): Remove unused file.
31887         (Depends-on): Add progname.
31888         (configure.ac, Makefile.am): Simplify.
31889
31890         test-canonicalize-lgpl: consolidate into single C program
31891         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
31892         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
31893         easier to run in debugger.  Add some tests.
31894         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
31895         (configure.ac, Makefile.am): Simplify.
31896
31897         canonicalize: avoid resolvepath
31898         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
31899         unnecessary checks.
31900         * lib/canonicalize.c (includes): Simplify.
31901         (canonicalize_file_name): Drop resolvepath implementation.
31902         * modules/canonicalize (Depends-on): Drop filenamecat.
31903
31904         canonicalize: don't lose errno
31905         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
31906         over calls to free.
31907
31908         canonicalize: simplify errno handling
31909         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
31910         assignment.
31911
31912         canonicalize, canonicalize-lgpl: update module dependencies
31913         * modules/canonicalize (Depends-on): Add extensions, lstat,
31914         pathmax, stdlib.
31915         (Files): Drop pathmax.h.
31916         (configure.ac): Adjust macro name.
31917         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
31918         lstat, stdlib, sys_stat.
31919         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
31920         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
31921         extensions.
31922         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
31923         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
31924         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
31925         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
31926         declaration, if available.
31927         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
31928         we can rely on the readlink module.
31929         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
31930         (includes): Use <unistd.h> unconditionally.
31931
31932 2009-09-17  Eric Blake  <ebb9@byu.net>
31933
31934         maint: make Include sections of modules consistent
31935         * modules/alloca: Use only header name; no need to list #include.
31936         * modules/alloca-opt: Likewise.
31937         * modules/arpa_inet: Likewise.
31938         * modules/canon-host: Likewise.
31939         * modules/configmake: Likewise.
31940         * modules/dirent: Likewise.
31941         * modules/eealloc: Likewise.
31942         * modules/environ: Likewise.
31943         * modules/fchdir: Likewise.
31944         * modules/fcntl: Likewise.
31945         * modules/fcntl-h: Likewise.
31946         * modules/gethrxtime: Likewise.
31947         * modules/gettime: Likewise.
31948         * modules/ignore-value: Likewise.
31949         * modules/inet_ntop: Likewise.
31950         * modules/inet_pton: Likewise.
31951         * modules/inttypes: Likewise.
31952         * modules/isnand-nolibm: Likewise.
31953         * modules/isnanf-nolibm: Likewise.
31954         * modules/mbchar: Likewise.
31955         * modules/mbfile: Likewise.
31956         * modules/mbiter: Likewise.
31957         * modules/mbuiter: Likewise.
31958         * modules/netdb: Likewise.
31959         * modules/netinet_in: Likewise.
31960         * modules/nproc: Likewise.
31961         * modules/pagealign_alloc: Likewise.
31962         * modules/poll: Likewise.
31963         * modules/printf-frexp: Likewise.
31964         * modules/pthread: Likewise.
31965         * modules/putenv: Likewise.
31966         * modules/random_r: Likewise.
31967         * modules/relocatable-prog: Likewise.
31968         * modules/search: Likewise.
31969         * modules/select: Likewise.
31970         * modules/selinux-h: Likewise.
31971         * modules/settime: Likewise.
31972         * modules/signal: Likewise.
31973         * modules/size_max: Likewise.
31974         * modules/socklen: Likewise.
31975         * modules/ssize_t: Likewise.
31976         * modules/stdarg: Likewise.
31977         * modules/stdbool: Likewise.
31978         * modules/stddef: Likewise.
31979         * modules/stdint: Likewise.
31980         * modules/stdio: Likewise.
31981         * modules/stdlib: Likewise.
31982         * modules/string: Likewise.
31983         * modules/strings: Likewise.
31984         * modules/sys_file: Likewise.
31985         * modules/sys_ioctl: Likewise.
31986         * modules/sys_select: Likewise.
31987         * modules/sys_socket: Likewise.
31988         * modules/sys_stat: Likewise.
31989         * modules/sys_time: Likewise.
31990         * modules/sys_times: Likewise.
31991         * modules/sys_utsname: Likewise.
31992         * modules/sys_wait: Likewise.
31993         * modules/sysexits: Likewise.
31994         * modules/time: Likewise.
31995         * modules/times: Likewise.
31996         * modules/tmpfile: Likewise.
31997         * modules/trim: Likewise.
31998         * modules/unistd: Likewise.
31999         * modules/wchar: Likewise.
32000         * modules/wctype: Likewise.
32001
32002 2009-09-17  Bruno Haible  <bruno@clisp.org>
32003
32004         Make getdate.y compile on QNX and NetBSD 5 / i386.
32005         * m4/getdate.m4 (gl_GETDATE): Conditionally define
32006         TIME_T_FITS_IN_LONG_INT.
32007         * lib/getdate.y (long_time_t): New type.
32008         (relative_time): Change type of 'seconds' field to long_time_t.
32009         (get_date): Update types of local variables. Check against overflow
32010         during conversion from long_time_t to time_t.
32011         Reported by Matt Kraai <kraai@ftbfs.org>
32012         and Hasso Tepper <hasso@netbsd.org>.
32013
32014 2009-09-17  Bruno Haible  <bruno@clisp.org>
32015
32016         * modules/COPYING: Update copyright years.
32017         * modules/README: Likeiwse.
32018         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
32019         Reported by Ian Beckwith <ianb@erislabs.net>.
32020
32021 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
32022
32023         * users.txt: Update references for gnuit package.
32024
32025 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
32026
32027         * m4/getdelim.m4: Fix typo in copyright line.
32028
32029 2009-09-17  Bruno Haible  <bruno@clisp.org>
32030
32031         * lib/atoll.c: Use the standard header with GPL copyright.
32032         * lib/argz.in.h: Likewise.
32033         * lib/glob.c: Likewise.
32034         * lib/glob-libc.h: Likewise.
32035         * lib/random_r.c: Likewise.
32036         * lib/siglist.h: Likewise.
32037         * lib/strsignal.c: Likewise.
32038         Reported by Ian Beckwith <ianb@erislabs.net>.
32039
32040 2009-09-17  Eric Blake  <ebb9@byu.net>
32041
32042         rmdir: ensure correct dependency order
32043         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
32044
32045 2009-09-17  Bruno Haible  <bruno@clisp.org>
32046
32047         Disable assertion that fails on NetBSD 5 / i386.
32048         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
32049         Reported by Sam Steingold <sds@gnu.org>
32050         and Hasso Tepper <hasso@netbsd.org>.
32051
32052 2009-09-16  Eric Blake  <ebb9@byu.net>
32053
32054         unlinkdir: port to mingw
32055         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
32056         on which no one can unlink a directory.
32057
32058         stdlib: sort witness names
32059         * modules/stdlib (Makefile.am): Sort replacements.
32060         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
32061         * lib/stdlib.in.h: Likewise.
32062
32063         parse-duration-tests: avoid link failure
32064         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
32065         LIBINTL.
32066         Reported by Tom G. Christensen.
32067
32068         openat-tests: ensure unlinkat behaves like rmdir
32069         * tests/test-rmdir.c (main): Factor guts...
32070         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
32071         * modules/rmdir-tests (Files): Ship new file.
32072         * modules/openat-tests: New test.
32073         * tests/test-unlinkat.c: Likewise.
32074
32075         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
32076         * modules/rmdir-errno (Status, Notice): Now obsolete.
32077
32078         rmdir: work around cygwin 1.5.x and mingw bugs
32079         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
32080         * lib/rmdir.c (rmdir): Work around it.
32081         * modules/rmdir (Status, Notice): No longer obsolete.
32082         (Files): Add dos.m4.
32083         (Depends-on): Add unistd.
32084         (configure.ac): Set witnesses.
32085         (License): Relax to LGPLv2+.
32086         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
32087         * modules/unistd (Makefile.am): Substitute witnesses.
32088         * lib/unistd.in.h (rmdir): Declare replacement.
32089         * doc/posix-functions/rmdir.texi (rmdir): Document this.
32090         * modules/rmdir-tests: New tests.
32091         * tests/test-rmdir.c: Likewise.
32092
32093 2009-09-15  Eric Blake  <ebb9@byu.net>
32094
32095         fchdir: improve use of replacement functions
32096         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
32097         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
32098         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
32099         REPLACE_CLOSEDIR.
32100         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
32101         * modules/sys_stat (Makefile.am): Substitute correct witness.
32102         * modules/dirent (Makefile.am): Likewise.
32103         * modules/unistd (Makefile.am): Likewise.
32104         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
32105         * lib/unistd.in.h (dup): Likewise.
32106         * lib/sys_stat.in.h (fstat): Likewise.
32107
32108         maint: ignore gnulib-tool temp files
32109         * .gitignore: Ignore files created during gnulib-tool --test.
32110
32111 2009-09-13  Jim Meyering  <meyering@redhat.com>
32112
32113         posixtm: don't reject a time that specify "60" as the number of seconds
32114         * lib/posixtm.c (posixtime): The code to reject invalid dates
32115         would also reject a time specified with the .60 suffix.
32116         But POSIX allows that, in order to accommodate leap seconds.
32117         So don't reject it.
32118         (main): Adjust tests accordingly.
32119         * modules/posixtm (Depends-on): Add stpcpy.
32120
32121 2009-09-11  Jim Meyering  <meyering@redhat.com>
32122
32123         announce-gen: include [$release_type] in emitted Subject:
32124         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
32125         e.g., [stable] in the emitted Subject: line.
32126
32127 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32128
32129         Remove obsolete macros from several modules.
32130         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
32131         obsolete Autoconf macros with their modern counterparts.
32132         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
32133         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
32134         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
32135         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
32136         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
32137         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
32138         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
32139         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
32140         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
32141         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
32142         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
32143         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
32144         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
32145         * m4/sockets.m4 (gl_SOCKETS): Likewise.
32146         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
32147         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
32148         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
32149         * m4/time_r.m4 (gl_TIME_R): Likewise.
32150         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
32151         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
32152         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
32153
32154         Fix copyright header in build-aux scripts.
32155         * build-aux/git-version-gen: Fix copyright header to match GPLv3
32156         recommendation.
32157         * build-aux/ncftpput-ftp: Likewise.
32158         * build-aux/update-copyright: Likewise.
32159
32160 2009-09-09  Eric Blake  <ebb9@byu.net>
32161
32162         test-link: allow Linux choice of errno
32163         * tests/test-link.c (main): Relax test for alternate error.
32164
32165         strndup: fix improper m4 caching
32166         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
32167         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
32168         (gl_PREREQ_STRNDUP): Delete.
32169         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
32170         * modules/string (Makefile.am): Substitute it.
32171         * lib/string.in.h (strndup): Modernize prototype.
32172
32173         getcwd: port to mingw
32174         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
32175         different from the POSIX assumptions made throughout the getcwd
32176         module; fortunately, the mingw getcwd does not need replacement.
32177         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
32178         * modules/getcwd-tests: New test.
32179         * tests/test-getcwd.c: Likewise.
32180
32181         link: fix platform bugs
32182         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
32183         * lib/link.c (link): Work around them.  Fix related mingw bug.
32184         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
32185         * modules/unistd (Makefile.am): Substitute it.
32186         * lib/unistd.in.h (link): Declare replacement.
32187         * doc/posix-functions/link.texi (link): Document this.
32188         * modules/link (Depends-on): Add strdup-posix, sys_stat.
32189
32190         test-link: consolidate into single C program, test more cases
32191         * tests/test-link.sh: Delete.
32192         * tests/test-link.c: Test more error conditions.  Exposes bugs on
32193         at least Cygwin and Solaris.
32194         * modules/link-tests (Files): Remove unused file.
32195         (Depends-on): Add errno, sys_stat.
32196         (Makefile.am): Simplify.
32197
32198 2009-09-08  Bruno Haible  <bruno@clisp.org>
32199
32200         Work around towlower, towupper bug on mingw.
32201         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
32202         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
32203         * doc/posix-functions/towlower.texi: Mention the mingw bug.
32204         * doc/posix-functions/towupper.texi: Likewise.
32205         Reported by Eric Blake.
32206
32207 2009-09-08  Jim Meyering  <meyering@redhat.com>
32208
32209         build: don't try to run autoheader if we don't use it
32210         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
32211         is not used in configure.ac.
32212
32213 2009-09-08  Eric Blake  <ebb9@byu.net>
32214
32215         euidaccess: fix compilation error
32216         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
32217
32218         rawmemchr: relax license
32219         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
32220         okay.
32221         Reported by Jim Meyering.
32222
32223         mkfifoat: new module
32224         * modules/mkfifoat: New file.
32225         * lib/mkfifoat.c: Likewise.
32226         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
32227         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
32228         * modules/sys_stat (Makefile.am): Use them.
32229         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
32230         * MODULES.html.sh (File system functions): Mention module.
32231         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
32232         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
32233         * modules/mkfifoat-tests: New test.
32234         * tests/test-mkfifoat.c: Likewise.
32235
32236         strchrnul: relax license
32237         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
32238         okay.
32239         Reported by Jim Meyering.
32240
32241 2009-09-08  Eric Blake  <ebb9@byu.net>
32242
32243         fstatat: fix compilation on Solaris
32244         * lib/fstatat.c (includes): Add fcntl.h.
32245         Reported by Pádraig Brady.
32246
32247 2009-09-07  Eric Blake  <ebb9@byu.net>
32248
32249         rename: modernize replacement
32250         * modules/rename (Depends-on): Add stdio.
32251         (configure.ac): Declare witness.
32252         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
32253         stdio take care of replacement.
32254         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
32255         * modules/stdio (Makefile.am): Substitute them.
32256         * lib/stdio.in.h (rename): Declare replacement.
32257         * lib/rename.c (includes): Allow cross-compilation to non-windows
32258         machines.
32259         * doc/posix-functions/rename.texi (rename): Improve
32260         documentation.
32261
32262         stdio: sort witness names
32263         * modules/stdio (Makefile.am): Sort replacements.
32264         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
32265         * lib/stdio.in.h: Likewise.
32266
32267         getcwd: minor cleanups
32268         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
32269         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
32270
32271         openat: provide more convenience names
32272         * modules/faccessat (configure.ac): Add C witness.
32273         * lib/unistd.in.h (readlinkat): Fix typo.
32274         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
32275         convenience wrappers.
32276         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
32277         wrappers in syntax checks.
32278
32279 2009-09-06  Eric Blake  <ebb9@byu.net>
32280
32281         doc: fix comments in recent patches
32282         * lib/faccessat.c: Mention correct function.
32283         * lib/fchmodat.c: Likewise.
32284         * lib/fchownat.c: Likewise.
32285         * lib/symlinkat.c: Likewise.
32286         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
32287         constants.
32288
32289         faccessat, symlinkat: continue cleanup of previous patch
32290         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
32291         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
32292         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
32293         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
32294         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
32295         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
32296         set.
32297
32298 2009-09-06  Bruno Haible  <bruno@clisp.org>
32299
32300         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
32301         (fstatat): Declare if GNULIB_FSTATAT is set.
32302         (mkdirat): Declare if GNULIB_MKDIRAT is set.
32303         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
32304         (unlinkat): Declare if GNULIB_UNLINKAT is set.
32305         * modules/fcntl-h (Files): Remove m4/openat.m4.
32306         * modules/sys_stat (Files): Remove m4/openat.m4.
32307         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
32308         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
32309         * modules/unistd (Files): Remove m4/openat.m4.
32310         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
32311         GNULIB_OPENAT.
32312         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
32313         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
32314         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
32315         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
32316         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
32317         gl_OPENAT_DEFAULTS.
32318         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
32319         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
32320         Don't require gl_OPENAT_DEFAULTS.
32321         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
32322         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
32323         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
32324         (gl_OPENAT_DEFAULTS): Remove macro.
32325
32326 2009-09-06  Bruno Haible  <bruno@clisp.org>
32327
32328         * modules/openat (configure.ac): Remove unneeded witness.
32329
32330 2009-09-06  Bruno Haible  <bruno@clisp.org>
32331
32332         Set errno to ENOSYS when a function is entirely unsupported.
32333         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
32334         EOPNOTSUPP.
32335         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
32336         * modules/chown (Depends-on): Remove errno.
32337
32338 2009-09-06  Bruno Haible  <bruno@clisp.org>
32339
32340         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
32341
32342 2009-09-06  Bruno Haible  <bruno@clisp.org>
32343
32344         * lib/sys_stat.in.h: Fix preprocessor command indentation.
32345
32346 2009-09-06  Ben Pfaff  <blp@gnu.org>
32347             Bruno Haible  <bruno@clisp.org>
32348
32349         Work around a glibc bug in strtok_r.
32350         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
32351         Undefine if UNDEFINE_STRTOK_R is set.
32352         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
32353         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32354         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
32355         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
32356         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
32357         UNDEFINE_STRTOK_R.
32358         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
32359
32360 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
32361
32362         exclude: minor fix
32363         * lib/exclude.c: Include wctype.h
32364
32365 2009-09-06  Akim Demaille  <demaille@gostai.com>
32366
32367         bootstrap: improve error message
32368         * build-aux/bootstrap (find_tool): Upon failure, report the list
32369         of candidates.
32370         Honor the initial value of the envvar.
32371
32372 2009-09-05  Eric Blake  <ebb9@byu.net>
32373
32374         symlinkat: new module
32375         * modules/symlinkat: New file.
32376         * lib/symlinkat.c: Likewise.
32377         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
32378         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
32379         * modules/unistd (Makefile.am): Use them.
32380         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
32381         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
32382         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
32383         * MODULES.html.sh (File system functions): Mention module.
32384         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
32385         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
32386         * modules/symlinkat-tests: New test.
32387         * tests/test-symlinkat.c: Likewise.
32388
32389         test-openat-safer: add more checks
32390         * tests/test-openat-safer.c (main): Check more code paths.
32391
32392 2009-09-05  Jim Meyering  <meyering@redhat.com>
32393
32394         syntax-check: detect unnecessary inclusion of openat.h
32395         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
32396
32397 2009-09-05  Bruno Haible  <bruno@clisp.org>
32398
32399         Support towlower, towupper.
32400         * doc/posix-functions/towlower.texi: Mention module wctype.
32401         * doc/posix-functions/towupper.texi: Likewise.
32402         * lib/wctype.in.h (towlower, towupper): New functions.
32403         * tests/test-wctype.c: Include stdio.h, stdlib.h.
32404         (ASSERT): New macro.
32405         (e): New variable.
32406         (main): Test also towlower, towupper. Test WEOF argument.
32407         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
32408
32409 2009-09-05  Bruno Haible  <bruno@clisp.org>
32410
32411         Fix conversion behaviour when the input is invalid.
32412         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
32413         mark occurring in first pass of indirect conversion.
32414         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
32415         input.
32416         Found by clang's static analyzer.
32417
32418 2009-09-05  Bruno Haible  <bruno@clisp.org>
32419
32420         * tests/test-striconveh.c (main): Test indirect conversion on platforms
32421         where direct conversion is possible.
32422
32423 2009-09-04  Eric Blake  <ebb9@byu.net>
32424
32425         openat: fail with ENOENT on empty name
32426         * lib/openat-proc.c (openat_proc_name): Special-case the empty
32427         buffer.
32428
32429         link-follow: fix logic bug in prior patch
32430         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
32431         reversed sense of yes and no in prior patch.  Avoid confusing
32432         compilation failure with desired semantics.
32433
32434         link-follow: accomodate mingw and cross-compilation
32435         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
32436         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
32437         cross-compilation results to -1, to make linkat easier to
32438         implement when cross-compiling.  Trivially support mingw.
32439         * modules/link-follow (configure.ac): Call new name.
32440         * NEWS: Mention this.
32441
32442 2009-09-03  Eric Blake  <ebb9@byu.net>
32443
32444         faccessat: compile replacement
32445         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
32446         needed.
32447
32448         fts: fix compilation error
32449         * lib/fts.c (includes): Re-add "openat.h", for
32450         openat_needs_fchdir.
32451
32452         faccessat: new module
32453         * modules/faccessat: New file.
32454         * lib/faccessat.c: Likewise.
32455         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
32456         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
32457         * modules/unistd (Makefile.am): Use it.
32458         * lib/unistd.in.h (faccessat): Declare it.
32459         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
32460         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
32461         * MODULES.html.sh (File system functions): Mention it.
32462         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
32463         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
32464
32465         euidaccess: prefer POSIX over non-standard implementation
32466         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
32467         * lib/euidaccess.c (euidaccess): Use it if available.
32468
32469         openat: make template easier to use
32470         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
32471         AT_FUNC_F2 to be undefined.
32472         (VALIDATE_FLAG): New macro; use it to reject bad flags.
32473         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
32474         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
32475         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
32476         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
32477         Likewise.
32478         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
32479         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
32480         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
32481         Likewise.
32482
32483         openat: declare in POSIX headers
32484         * NEWS: Mention this.
32485         * modules/openat (configure.ac): Declare witnesses.
32486         (Depends-on): Add fcntl-h, sys_stat, unistd.
32487         (Include): Mention correct headers.
32488         * modules/fcntl-h (Depends-on): Add link-warning.
32489         (Files): Add openat.m4.
32490         (Makefile.am): Substitute witnesses.
32491         * modules/sys_stat (Files, Makefile.am): Likewise.
32492         * modules/unistd (Files, Makefile.am): Likewise.
32493         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
32494         (gl_OPENAT_DEFAULTS): New macro.
32495         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
32496         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
32497         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
32498         (SYS_STAT_H): Remove unused variable.
32499         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
32500         * lib/fcntl--.h (includes): Remove unneeded header.
32501         * lib/openat-safer.c (includes): Likewise.
32502         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
32503         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
32504         appropriate headers.
32505         (__OPENAT_PREFIX): Delete.
32506         * lib/fcntl.in.h (openat): Provide declaration.
32507         (AT_FDCWD): Fix Solaris bug.
32508         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
32509         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
32510         * lib/fchmodat.c (includes):  Adjust to find declaration.
32511         * lib/fchownat.c (includes): Likewise.
32512         * lib/mkdirat.c (includes): Likewise.
32513         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
32514         still visible.
32515
32516 2009-09-02  Eric Blake  <ebb9@byu.net>
32517
32518         errno: use consistently
32519         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
32520         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
32521         * lib/canonicalize.c (ELOOP): Likewise.
32522         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
32523         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
32524         * lib/lchown.c (EOPNOTSUPP): Likewise.
32525         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
32526         * lib/savewd.c (ESTALE): Likewise.
32527         * lib/settime.c (ENOSYS): Likewise.
32528         * lib/utimens.c (ENOSYS): Likewise.
32529         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
32530         * lib/chdir-safer.c (ELOOP): Likewise.
32531         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
32532         * modules/c-stack (Depends-on): Add errno.
32533         * modules/canonicalize (Depends-on): Likewise.
32534         * modules/chdir-safer (Depends-on): Likewise.
32535         * modules/fdopendir (Depends-on): Likewise.
32536         * modules/inet_ntop (Depends-on): Likewise.
32537         * modules/inet_pton (Depends-on): Likewise.
32538         * modules/lchown (Depends-on): Likewise.
32539         * modules/openat (Depends-on): Likewise.
32540         * modules/savewd (Depends-on): Likewise.
32541         * modules/settime (Depends-on): Likewise.
32542         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
32543
32544         fts: avoid leaking fds
32545         * modules/fts (Depends-on): Add cloexec.
32546         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
32547         flag.
32548
32549         fts: make directory fds more robust
32550         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
32551         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
32552
32553         backupfile, chdir-long, fts, savedir: make safer
32554         * lib/backupfile.c (includes): Use "dirent--.h", since
32555         numbered_backup can write to stderr during readdir.
32556         * lib/savedir.c (includes): Likewise.
32557         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
32558         emulation can write to stderr on failure.
32559         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
32560         * lib/getcwd.c: Document why opendir_safer is unused.
32561         * lib/glob.c: Likewise.
32562         * lib/scandir.c: Likewise.
32563         * lib/openat-proc.c: Likewise, for open_safer.
32564         * modules/backupfile (Depends-on): Add dirent-safer.
32565         * modules/savedir (Depends-on): Likewise.
32566         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
32567         * modules/chdir-long (Depends-on): Add openat-safer.
32568
32569         openat-safer: new module
32570         * modules/openat-safer: New file.
32571         * lib/openat-safer.c: Likewise.
32572         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
32573         * lib/fcntl-safer.h (openat_safer): Declare.
32574         * lib/fcntl--.h (openat): Override.
32575         * MODULES.html.sh (File descriptor based I/O): Mention it.
32576         * lib/openat.h: Add double-inclusion guards.
32577         * lib/openat.c (includes): Only include "fcntl-safer.h", not
32578         "fcntl--.h", so we can implement openat.
32579         * modules/openat-safer-tests: New test.
32580         * tests/test-openat-safer.c: New file.
32581
32582         dirent-safer: new module
32583         * modules/dirent-safer: New file.
32584         * lib/dirent--.h: Likewise.
32585         * lib/dirent-safer.h: Likewise.
32586         * lib/opendir-safer.c: Likewise.
32587         * m4/dirent-safer.m4: Likewise.
32588         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
32589         * modules/dirent-safer-tests: New test.
32590         * tests/test-dirent-safer.c: New file.
32591         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
32592
32593         fdopendir: optimize on mingw
32594         * lib/unistd.in.h (_gl_directory_name): New prototype.
32595         * lib/fchdir.c (_gl_directory_name): Implement it.
32596         (fchdir): Use it to simplify implementation.
32597         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
32598         fchdir, when available, to avoid calling [f]chdir().
32599
32600         fdopendir: split into its own module
32601         * lib/openat.c (fdopendir): Move...
32602         * lib/fdopendir.c: ...into new file.
32603         * modules/fdopendir: New module.
32604         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
32605         * modules/openat (Depends-on): Add fdopendir.
32606         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
32607         fdopendir here.
32608         * modules/savedir (Depends-on): Only need fdopendir, not full
32609         openat.
32610         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
32611         * lib/openat.h (fdopendir): Drop prototype.
32612         * lib/dirent.in.h (fdopendir): Provide prototype.
32613         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
32614         * modules/dirent (Makefile.am): Substitute them.
32615         * MODULES.html.sh (File system functions): Mention it.
32616         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
32617         * modules/fdopendir-tests: New file.
32618         * tests/test-fdopendir.c: Likewise.
32619
32620         fchdir: use more consistent macro convention
32621         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
32622         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
32623         REPLACE_FCHDIR, rather than relying on config.h macros.
32624         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
32625         inside a single make-time REPLACE_FCHDIR block, rather than using
32626         the config.h FCHDIR_REPLACEMENT.
32627         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
32628         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
32629         Manage fstat replacement.
32630         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
32631         REPLACE_FCHDIR.
32632         * modules/sys_stat (Files): Add m4/unistd_h.m4.
32633         (Makefile.am): Substitute REPLACE_FCHDIR.
32634         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
32635         FCHDIR_REPLACEMENT.
32636         * lib/dup-safer.c (dup_safer): Likewise.
32637         * lib/dup2.c (rpl_dup2): Likewise.
32638         * lib/dup3.c (rpl_dup3): Likewise.
32639         * lib/open.c (rpl_open): Likewise.
32640
32641         fchdir: simplify error handling, and support dup3
32642         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
32643         stdbool, malloc-posix, realloc-posix.
32644         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
32645         (ensure_dirs_slot): Return false on allocation failure.
32646         (rpl_dup2): Delete.
32647         (_gl_register_dup): New function.
32648         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
32649         (_gl_register_fd): Close fd on allocation failure.
32650         * lib/fcntl.in.h (_gl_register_fd): Update signature.
32651         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
32652         prototype.
32653         (rpl_dup2_fchdir): Delete prototype.
32654         * lib/open.c (open): Update caller.
32655         * lib/dup2.c (dup2): Track fchdir metadata.
32656         * lib/dup3.c (dup3): Likewise.
32657         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
32658         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
32659
32660 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32661
32662         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
32663         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
32664         don't pass arguments to AC_OUTPUT.
32665
32666 2009-09-02  Bruno Haible  <bruno@clisp.org>
32667
32668         * modules/mkdtemp (License): Relicense under LGPLv2+.
32669         Reported by Paolo Bonzini.
32670
32671 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32672
32673         Replace uses of obsolete autoconf macros in Jim's modules.
32674         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
32675         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
32676         can evoke a warning from autoconf when run with -Wobsolete
32677         enabled.  They were declared obsolete for good reasons (see
32678         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
32679         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
32680         should not continue using the deprecated macros.
32681         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
32682         obsolete Autoconf macros with modern counterparts.
32683         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
32684         * m4/dos.m4 (gl_AC_DOS): Likewise.
32685         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
32686         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
32687         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
32688         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
32689         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
32690         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
32691         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
32692         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
32693         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
32694         Likewise.
32695         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
32696         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
32697         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
32698         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
32699         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
32700         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
32701
32702 2009-09-01  Eric Blake  <ebb9@byu.net>
32703
32704         fchdir: fix off-by-one bug in previous patch
32705         * lib/fchdir.c (rpl_fstat): Use correct bounds.
32706         (_gl_unregister_fd): Delete useless if.
32707
32708 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
32709
32710         maint.mk: sort the list of syntax-check rules
32711         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
32712         easier to get a sense of progress when the rules are run sequentially
32713         and take a long time.
32714
32715 2009-09-01  Simon Josefsson  <simon@josefsson.org>
32716
32717         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
32718         * modules/netinet_in: Likewise.
32719         * modules/sys_file: Likewise.
32720         * modules/sys_ioctl: Likewise.
32721         * modules/sys_select: Likewise.
32722         * modules/sys_socket: Likewise.
32723         * modules/sys_stat: Likewise.
32724         * modules/sys_time: Likewise.
32725         * modules/sys_times: Likewise.
32726         * modules/sys_utsname: Likewise.
32727         * modules/sys_wait: Likewise.
32728
32729 2009-09-01  Jim Meyering  <meyering@redhat.com>
32730
32731         fts: help ensure that return values are not ignored
32732         * lib/fts_.h (__GNUC_PREREQ): Define.
32733         (__attribute_warn_unused_result__): Define.
32734         (fts_children, fts_close, fts_open, fts_read): Declare with
32735         __attribute_warn_unused_result__.
32736
32737         fts: fts_close now fails also when closing a dir file descriptor fails
32738         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
32739         and propagate to caller, along with errno.
32740
32741         announce-gen: correct formatting in --help output
32742         * build-aux/announce-gen (usage): Move the one-line description in
32743         --help output "up", to where it belongs, just after Usage:.
32744
32745 2009-08-31  Eric Blake  <ebb9@byu.net>
32746
32747         fchdir: port to mingw
32748         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
32749         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
32750         opened, then use a substitute.
32751         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
32752         replacement.
32753         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
32754         (_gl_register_fd): No need to check stat if open already filters
32755         all directories.
32756         (fchdir): Fix error condition to match POSIX.
32757         * modules/fchdir (Depends-on): Add sys_stat.
32758         * doc/posix-functions/open.texi (open): Document the limitation.
32759         * modules/fchdir-tests: New file.
32760         * tests/test-fchdir.c: Likewise.
32761
32762         canonicalize: allow cross-testing from cygwin to mingw
32763         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
32764         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
32765         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
32766         Likewise.
32767         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
32768         target does not support symlinks.
32769         * tests/test-canonicalize-lgpl.sh: Likewise.
32770
32771         chown: avoid compilation warning on mingw
32772         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
32773         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
32774         mingw.
32775         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
32776         * modules/chown (Depends-on): Add errno.
32777
32778 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
32779
32780         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
32781         command.
32782
32783 2009-08-31  Jim Meyering  <meyering@redhat.com>
32784
32785         canonicalize: remove useless initialization
32786         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
32787         initialization of local, "end".
32788
32789 2009-08-30  Bruno Haible  <bruno@clisp.org>
32790
32791         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
32792         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
32793         ENOSYS.
32794
32795 2009-08-30  Bruno Haible  <bruno@clisp.org>
32796
32797         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
32798         /usr/xpg4/bin/tr when it exists.
32799         * tests/test-pipe-filter-gi1.sh: Likewise.
32800
32801 2009-08-30  Bruno Haible  <bruno@clisp.org>
32802
32803         Work around deficient /usr/bin/id program on Solaris.
32804         * tests/test-file-has-acl.sh (ID): New variable.
32805         * tests/test-set-mode-acl.sh (ID): Likewise.
32806         * tests/test-copy-acl.sh (ID): Likewise.
32807         * tests/test-copy-file.sh (ID): Likewise.
32808
32809 2009-08-30  Bruno Haible  <bruno@clisp.org>
32810
32811         New module 'xstriconveh'.
32812         * lib/xstriconveh.h: New file.
32813         * lib/xstriconveh.c: New file.
32814         * modules/xstriconveh: New file.
32815
32816 2009-08-30  Bruno Haible  <bruno@clisp.org>
32817
32818         Make it easier to use mem_cd_iconveh.
32819         * lib/striconveh.h (iconveh_t): New type.
32820         (iconveh_open, iconveh_close): New declarations.
32821         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32822         with a single 'const iconveh_t *' argument.
32823         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
32824         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32825         with a single 'const iconveh_t *' argument.
32826         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
32827         * tests/test-striconveh.c (main): Update.
32828         * NEWS: Mention the change.
32829
32830 2009-08-30  Bruno Haible  <bruno@clisp.org>
32831
32832         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
32833         problem.
32834
32835 2009-08-30  Bruno Haible  <bruno@clisp.org>
32836
32837         Work around iconv_open problem on Solaris.
32838         * lib/iconv_open-solaris.gperf: New file.
32839         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
32840         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
32841         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
32842         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
32843         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
32844         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
32845
32846 2009-08-29  Jim Meyering  <meyering@redhat.com>
32847
32848         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
32849         * top/maint.mk (cvs-check): Remove target; it was just an alias
32850         to the better-named vc-diff-check.
32851         (maintainer-distcheck): Remove rule.  It was used only from
32852         the (alpha/beta/major) target, and all of its commands but one
32853         were coreutils-specific.
32854         (vc-dist): Remove rule.
32855         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
32856         Run vc-diff-check, not vc-dist.
32857         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
32858
32859 2009-08-27  Bruno Haible  <bruno@clisp.org>
32860
32861         * tests/test-bitrotate.c (main): Remove test that uses a shift count
32862         of 0.
32863
32864 2009-08-27  Bruno Haible  <bruno@clisp.org>
32865
32866         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
32867         compilers.
32868         * doc/func.texi: Document the SunPRO C bug.
32869
32870 2009-08-27  Bruno Haible  <bruno@clisp.org>
32871
32872         Fix link error on Solaris.
32873         * tests/test-parse-duration.c (xstrdup): Remove function.
32874
32875 2009-08-26  Pádraig Brady  <P@draigbrady.com>
32876
32877         ignore-value: handle pointer types, too
32878         * lib/ignore-value.h (__attribute__): Remove definition.
32879         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
32880         of a more concise and more-often effective "(void) i" statement.
32881         (ignore_ptr): New function to suppress warnings from functions that
32882         return pointers, and to make it explicit that one function doesn't
32883         handle all cases.
32884
32885 2009-08-25  Bruno Haible  <bruno@clisp.org>
32886
32887         dup2: work around a Linux bug.
32888         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
32889         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
32890         * doc/posix-functions/dup2.texi: Mention the Linux bug.
32891         Reported by Simon Josefsson.
32892
32893 2009-08-25  Jim Meyering  <meyering@redhat.com>
32894
32895         libguestfs uses gnulib
32896         * users.txt: Add libguestfs.
32897
32898 2009-08-24  Eric Blake  <ebb9@byu.net>
32899
32900         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
32901         * lib/pipe2.c (includes): Add binary-io.h.
32902         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
32903
32904 2009-08-24  Bruno Haible  <bruno@clisp.org>
32905
32906         Tolerate declared but missing accept4 syscall.
32907         * lib/accept4.c (accept4): Invoke original accept4 function first, if
32908         available.
32909         * lib/sys_socket.in.h (accept4): If the function is already present,
32910         override it.
32911         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
32912         * modules/accept4 (Makefile.am): Compile accept4.c always.
32913         Reported by Paolo Bonzini and Eric Blake.
32914
32915 2009-08-23  Bruno Haible  <bruno@clisp.org>
32916
32917         New module 'accept4'.
32918         * lib/sys_socket.in.h (accept4): New declaration.
32919         * lib/accept4.c: New file.
32920         * m4/accept4.m4: New file.
32921         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
32922         GNULIB_ACCEPT4, HAVE_ACCEPT4.
32923         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
32924         HAVE_ACCEPT4.
32925         * modules/accept4: New file.
32926         * doc/glibc-functions/accept4.texi: Mention the new module.
32927
32928 2009-08-24  Jim Meyering  <meyering@redhat.com>
32929
32930         progname: also set global program_invocation_name, when possible
32931         Before this change, a libtool-enabled program that calls glibc's
32932         error function would report the program name as
32933         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
32934         * modules/progname (configure.ac): Check for a declaration of
32935         program_invocation_name.
32936         * lib/progname.c:  Include <errno.h>.
32937         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
32938         Set program_invocation_name.
32939
32940 2009-08-23  Bruno Haible  <bruno@clisp.org>
32941
32942         * lib/dup3.c: Include <string.h>.
32943
32944 2009-08-23  Bruno Haible  <bruno@clisp.org>
32945
32946         * lib/dup3.c (dup3): Test only once whether the system actually exists.
32947         * lib/pipe2.c (pipe2): Likewise.
32948         Suggested by Eric Blake.
32949
32950 2009-08-23  Bruno Haible  <bruno@clisp.org>
32951
32952         Tolerate declared but missing dup3 syscall.
32953         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
32954         * lib/unistd.in.h (dup3): If the function is already present,
32955         override it.
32956         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
32957         * modules/dup3 (Makefile.am): Compile dup3.c always.
32958         Reported by Paolo Bonzini.
32959
32960 2009-08-23  Bruno Haible  <bruno@clisp.org>
32961
32962         Tolerate declared but missing pipe2 syscall.
32963         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
32964         available.
32965         * lib/unistd.in.h (pipe2): If the function is already present,
32966         override it.
32967         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
32968         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
32969         Reported by Paolo Bonzini.
32970
32971 2009-08-23  Bruno Haible  <bruno@clisp.org>
32972
32973         * lib/pipe2.c (pipe2): Move #ifs inside function.
32974
32975 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32976
32977         quotearg: document limitations of quote_these_too
32978         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
32979         those limitations are created.
32980         * lib/quotearg.h (set_char_quoting): Document that digits and
32981         letters that are special after backslash are not permitted.
32982         (quotearg_char): Cross-reference set_char_quoting documentation.
32983
32984 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
32985
32986         quotearg: implement custom_quoting_style
32987         * lib/quotearg.c: (struct quoting_options): Add left_quote and
32988         right_quote fields.
32989         (set_custom_quoting): New public function.
32990         (quotearg_buffer_restyled): Add left_quote and right_quote
32991         arguments, handle them very much like locale quoting, and update
32992         all uses.
32993         (quotearg_n_custom): New public function.
32994         (quotearg_n_custom_mem): New public function.
32995         (quotearg_custom): New public function.
32996         (quotearg_custom_mem): New public function.
32997         * lib/quotearg.h: Prototype and document new public functions.
32998         (enum quoting_style): For escape_quoting_style and
32999         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
33000         ignored even though they're otherwise like c_quoting_style.
33001         Add custom_quoting_style member and document with comparison to
33002         clocale_quoting_style.
33003         * tests/test-quotearg.c (custom_quotes): New array.
33004         (custom_results): New array.
33005         (main): Extend to test custom quoting.
33006
33007 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
33008
33009         quotearg: fix right quote escaping when it's in quote_these_too
33010         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
33011         quote, be sure to prepend only one backslash.
33012         * tests/test-quotearg.c (use_quote_double_quotes): New function.
33013         (main): Test it.
33014
33015 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
33016
33017         quotearg-tests: test escaping of embedded locale quotes
33018         * tests/test-quotearg.c (struct result_strings): Add member for
33019         new input.
33020         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
33021         (inputs): Add new input.
33022         (results_g): Add expected results.
33023         (flag_results): Likewise.
33024         (locale_results): Likewise.
33025         (compare_strings): Check those.
33026
33027 2009-08-23  Bruno Haible  <bruno@clisp.org>
33028
33029         Tests for module 'dup3'.
33030         * modules/dup3-tests: New file.
33031         * tests/test-dup3.c: New file.
33032
33033         New module 'dup3'.
33034         * lib/unistd.in.h (dup3): New declaration.
33035         * lib/dup3.c: New file.
33036         * m4/dup3.m4: New file.
33037         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
33038         HAVE_DUP3.
33039         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
33040         * modules/dup3: New file.
33041         * doc/glibc-functions/dup3.texi: Mention the new module.
33042
33043 2009-08-23  Bruno Haible  <bruno@clisp.org>
33044
33045         Tweak the dup2 test.
33046         * tests/test-dup2.c (main): Create the test file empty. Verify that an
33047         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
33048         the test file is still empty. Fix argument order of lseek.
33049
33050 2009-08-23  Bruno Haible  <bruno@clisp.org>
33051
33052         Avoid test link errors when the modules getopt-gnu, gettext are used.
33053         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
33054         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33055
33056 2009-08-23  Bruno Haible  <bruno@clisp.org>
33057
33058         Fix getdtablesize() on mingw.
33059         * lib/getdtablesize.c (getdtablesize): Implement differently.
33060         * lib/unistd.in.h (getdtablesize): Improve comment.
33061
33062 2009-08-23  Bruno Haible  <bruno@clisp.org>
33063
33064         New module 'mkostemp'.
33065         Based on Ulrich Drepper's 2007-08-10 change in glibc.
33066         * lib/stdlib.in.h (mksotemp): New declaration.
33067         * lib/mkostemp.c: New file, from glibc with modifications.
33068         * lib/tempname.h (GT_FILE): Remove outdated comment.
33069         (gen_tempname): Add flags argument.
33070         * lib/tempname.c (__GT_BIGFILE): Remove macro.
33071         (__GT_FILE): Map to 1.
33072         (small_open, large_open): Remove macros.
33073         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
33074         * lib/mkstemp.c (mkstemp): Update.
33075         * lib/mkdtemp.c (mkdtemp): Likewise.
33076         * m4/mkostemp.m4: New file.
33077         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
33078         HAVE_MKOSTEMP.
33079         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
33080         HAVE_MKOSTEMP.
33081         * modules/mkostemp: New file, based on modules/mkstemp.
33082         * doc/glibc-functions/mkostemp.texi: Mention the new module.
33083         * NEWS: Mention the change.
33084
33085 2009-08-23  Bruno Haible  <bruno@clisp.org>
33086
33087         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
33088         Reported by Eric Blake.
33089
33090 2009-08-23  Bruno Haible  <bruno@clisp.org>
33091
33092         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
33093         Reported by Eric Blake.
33094
33095 2009-08-23  Bruno Haible  <bruno@clisp.org>
33096
33097         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
33098         * modules/pipe2 (Depends-on): Likewise.
33099
33100 2009-08-23  Eric Blake  <ebb9@byu.net>
33101
33102         fcntl-h: add O_TTY_INIT support
33103         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
33104         * tests/test-fcntl-h.c (o): Test it.
33105         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
33106
33107         fcntl-h: rename from fcntl, in preparation for fcntl(2)
33108         * modules/fcntl: Move <fcntl.h> header replacement...
33109         * modules/fcntl-h: ...to new name, so as not to collide with
33110         like-named function.
33111         * tests/test-fcntl.c: Rename...
33112         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
33113         * modules/fcntl-tests: Rename...
33114         * modules/fcntl-h-tests: ...to this.  Update test file name.
33115         * modules/chdir-long (Depends-on): Update clients.
33116         * modules/chdir-safer (Depends-on): Likewise.
33117         * modules/fcntl-safer (Depends-on): Likewise.
33118         * modules/fts (Depends-on): Likewise.
33119         * modules/mkancesdirs (Depends-on): Likewise.
33120         * modules/mkdir-p (Depends-on): Likewise.
33121         * modules/open (Depends-on): Likewise.
33122         * modules/savewd (Depends-on): Likewise.
33123         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
33124         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
33125
33126 2009-08-22  Bruno Haible  <bruno@clisp.org>
33127
33128         * modules/binary-io (License): Relicense under LGPL.
33129         * modules/pipe2 (License): Likewise.
33130
33131 2009-08-22  Bruno Haible  <bruno@clisp.org>
33132
33133         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
33134         return value.
33135         * lib/pipe-filter-gi.c (filter_init): Likewise.
33136         Reported by Eric Blake.
33137
33138 2009-08-22  Bruno Haible  <bruno@clisp.org>
33139
33140         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
33141         * modules/pipe (Depends-on): Add pipe2.
33142
33143 2009-08-22  Bruno Haible  <bruno@clisp.org>
33144
33145         Tests for module 'pipe2'.
33146         * modules/pipe2-tests: New file.
33147         * tests/test-pipe2.c: New file.
33148
33149         New module 'pipe2'.
33150         * lib/unistd.in.h (pipe2): New declaration.
33151         * lib/pipe2.c: New file.
33152         * m4/pipe2.m4: New file.
33153         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
33154         HAVE_PIPE2.
33155         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
33156         * modules/pipe2: New file.
33157         * doc/glibc-functions/pipe2.texi: Mention the new module.
33158
33159 2009-08-22  Bruno Haible  <bruno@clisp.org>
33160
33161         Reference some new glibc functions.
33162         * doc/glibc-functions/accept4.texi: New file.
33163         * doc/glibc-functions/dup3.texi: New file.
33164         * doc/glibc-functions/mkostemp.texi: New file.
33165         * doc/glibc-functions/pipe2.texi: New file.
33166         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
33167         (Glibc sys/socket.h): Refer to accept4.
33168         (Glibc unistd.h): Refer to dup3, pipe2.
33169         Reported by Eric Blake.
33170
33171 2009-08-22  Jim Meyering  <meyering@redhat.com>
33172             Bruno Haible  <bruno@clisp.org>
33173
33174         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
33175         This makes it so packages using automake-1.11's silent-rules option
33176         can print e.g., a single "GEN    configmake.h" line, rather than
33177         the 30+ statements that perform the job.  If you want to see the
33178         actual commands, you can still run "make V=1".
33179         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
33180         so that make output is abbreviated when those variables are defined
33181         appropriately.
33182         * modules/argz: Likewise.
33183         * modules/arpa_inet: Likewise.
33184         * modules/byteswap: Likewise.
33185         * modules/configmake: Likewise.
33186         * modules/dirent: Likewise.
33187         * modules/errno: Likewise.
33188         * modules/fcntl: Likewise.
33189         * modules/float: Likewise.
33190         * modules/fnmatch: Likewise.
33191         * modules/getopt-posix: Likewise.
33192         * modules/glob: Likewise.
33193         * modules/iconv_open: Likewise.
33194         * modules/inttypes: Likewise.
33195         * modules/localcharset: Likewise.
33196         * modules/locale: Likewise.
33197         * modules/math: Likewise.
33198         * modules/netdb: Likewise.
33199         * modules/netinet_in: Likewise.
33200         * modules/poll: Likewise.
33201         * modules/posix_spawnp-tests: Likewise.
33202         * modules/sched: Likewise.
33203         * modules/search: Likewise.
33204         * modules/selinux-h: Likewise.
33205         * modules/signal: Likewise.
33206         * modules/spawn: Likewise.
33207         * modules/stdarg: Likewise.
33208         * modules/stdbool: Likewise.
33209         * modules/stddef: Likewise.
33210         * modules/stdint: Likewise.
33211         * modules/stdio: Likewise.
33212         * modules/stdlib: Likewise.
33213         * modules/string: Likewise.
33214         * modules/strings: Likewise.
33215         * modules/sys_file: Likewise.
33216         * modules/sys_ioctl: Likewise.
33217         * modules/sys_select: Likewise.
33218         * modules/sys_socket: Likewise.
33219         * modules/sys_stat: Likewise.
33220         * modules/sys_time: Likewise.
33221         * modules/sys_times: Likewise.
33222         * modules/sys_utsname: Likewise.
33223         * modules/sys_wait: Likewise.
33224         * modules/sysexits: Likewise.
33225         * modules/time: Likewise.
33226         * modules/unistd: Likewise.
33227         * modules/wchar: Likewise.
33228         * modules/wctype: Likewise.
33229
33230 2009-08-22  Jim Meyering  <meyering@redhat.com>
33231
33232         announce-gen: detect write failure
33233         * build-aux/announce-gen: Add Coda at end.
33234         Remove equivalent-but-more-verbose block at top.
33235
33236 2009-08-19  Akim Demaille  <demaille@gostai.com>
33237
33238         bootstrap: --help to stdout.
33239         * bootstrap (usage): Don't send --help to stderr.
33240         Use a here doc instead of a long string.
33241
33242 2009-08-21  Eric Blake  <ebb9@byu.net>
33243
33244         test-popen-safer: split from test-popen
33245         * tests/test-popen.c (main): Move...
33246         * tests/test-popen.h: ...into new file.
33247         * tests/test-popen-safer2.c: New file.
33248         * modules/popen-tests (Files): Add test-popen.h.
33249         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
33250         Suggested by Bruno Haible.
33251
33252         test-fcntl-safer: split from test-open
33253         * tests/test-open.c (main): Move...
33254         * tests/test-open.h: ...into new file.
33255         * tests/test-fcntl-safer.c: New file.
33256         * modules/open-tests (Files): Add test-open.h.
33257         * modules/fcntl-safer-tests: New file.
33258         Suggested by Bruno Haible.
33259
33260         test-fopen-safer: split from test-fopen
33261         * tests/test-fopen.c (main): Move...
33262         * tests/test-fopen.h: ...into new file.
33263         * tests/test-fopen-safer.c: New file.
33264         * modules/fopen-tests (Files): Add test-fopen.h.
33265         * modules/fopen-safer-tests: New file.
33266         Suggested by Bruno Haible.
33267
33268 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
33269
33270         popen-safer: test O_CLOEXEC at run-time.
33271         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
33272
33273 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
33274
33275         fcntl: move more flags to the header
33276         * lib/cloexec.c: Do not define FD_CLOEXEC here.
33277         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
33278         * lib/fcntl.in.h: Do both things here.
33279
33280 2009-08-21  Jim Meyering  <meyering@redhat.com>
33281
33282         consistently remove $@-t before redirecting to it
33283         * modules/argz: Remove $@-t and $@ before redirecting to the former.
33284         * modules/alloca-opt: Likewise.
33285         * modules/byteswap: Likewise.
33286         * modules/fnmatch: Likewise.
33287         * modules/getopt-posix: Likewise.
33288         * modules/glob: Likewise.
33289         * modules/poll: Likewise.
33290         * modules/posix_spawnp-tests: Likewise.
33291         * modules/sys_socket: Likewise.
33292         * modules/sysexits: Likewise.
33293
33294 2009-08-21  Eric Blake  <ebb9@byu.net>
33295
33296         popen: simplify access to original popen
33297         * lib/popen.c (rpl_popen): No need to worry about popen being a
33298         macro.
33299         Reported by Bruno Haible.
33300
33301 2009-08-20  Eric Blake  <ebb9@byu.net>
33302
33303         build: avoid some compiler warnings
33304         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
33305         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
33306         type.
33307         (new_exclude_segment, excluded_file_pattern_p)
33308         (excluded_file_name_p): Reduce scope.
33309         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
33310         old-style declaration.
33311
33312 2009-08-20  Simon Josefsson  <simon@josefsson.org>
33313
33314         * tests/test-exclude1.sh: Handle Windows EOL.
33315         * tests/test-exclude2.sh: Likewise.
33316         * tests/test-exclude3.sh: Likewise.
33317         * tests/test-exclude4.sh: Likewise.
33318         * tests/test-exclude5.sh: Likewise.
33319         * tests/test-exclude6.sh: Likewise.
33320         * tests/test-exclude7.sh: Likewise.
33321
33322 2009-08-19  Akim Demaille  <demaille@gostai.com>
33323
33324         bootstrap: find sha1sum when named gsha1sum.
33325         * bootstrap (find_tool): New.
33326         ($SHA1SUM): New.
33327         Use it.
33328
33329 2009-08-20  Jim Meyering  <meyering@redhat.com>
33330
33331         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
33332         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
33333         expression that converts "." in a file name to "\." in the resulting
33334         regexp.  Start with a dummy statement, so that prior shell variable
33335         definitions are expanded portably.  Reported by Simon Josefsson.
33336
33337 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
33338
33339         Fix polling for writeability of a screen buffer.
33340         * lib/poll.c: Distinguish input and screen buffers for the
33341         Win32 implementation.
33342         * lib/select.c: Likewise.
33343
33344 2009-08-19  Eric Blake  <ebb9@byu.net>
33345
33346         popen-safer: prevent popen from clobbering std descriptors
33347         * modules/popen-safer: New file.
33348         * lib/popen-safer.c: Likewise.
33349         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
33350         * lib/stdio--.h (popen): Provide override.
33351         * lib/stdio-safer.h (popen_safer): Provide declaration.
33352         * tests/test-popen.c (includes): Partially test this.
33353         * modules/popen-safer-tests: New file, for more tests.
33354         * tests/test-popen-safer.c: Likewise.
33355         * MODULES.html.sh (file stream based Input/Output): Mention it.
33356
33357         tests: test some of the *-safer modules
33358         * modules/fopen-safer (Depends-on): Add fopen.
33359         * modules/fcntl-safer (Depends-on): Add fcntl.
33360         * modules/stdlib-safer (Depends-on): Add stdlib.
33361         (configure.ac): Set indicator.
33362         * modules/unistd-safer (configure.ac): Likewise.
33363         * modules/tmpfile-safer (configure.ac): Likewise.
33364         (Depends-on): Add tmpfile.
33365         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
33366         active.
33367         * tests/test-fopen.c (includes): Test safer versions when they are
33368         in use.
33369         * tests/test-open.c (includes): Likewise.
33370
33371         popen: fix cygwin 1.5 bug when stdin closed
33372         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
33373         * modules/popen: New file.
33374         * modules/popen-tests: Likewise.
33375         * tests/test-popen.c: Likewise.
33376         * m4/popen.m4: Likewise.
33377         * lib/popen.c: Likewise.
33378         * lib/stdio.in.h (popen): New declaration.
33379         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
33380         * modules/stdio (Makefile.am): Likewise.
33381         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
33382
33383 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
33384
33385         maint.mk: give full control over update-copyright exclusions
33386         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
33387         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
33388         (update-copyright): Don't force inclusion of top-level
33389         ChangeLog.  Don't force exclusion of all COPYING files, but make
33390         them the default exclusion instead.
33391
33392 2009-08-16  Bruno Haible  <bruno@clisp.org>
33393
33394         Fix test failures on Solaris 10.
33395         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
33396         tests when Solaris iconv() is used.
33397         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
33398         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
33399         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
33400         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
33401         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
33402
33403 2009-08-16  Bruno Haible  <bruno@clisp.org>
33404
33405         Fix test failures on Solaris 10.
33406         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
33407         'tr' program and pass it as first argument.
33408         * tests/test-pipe-filter-gi1.sh: Likewise.
33409         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
33410         program as first argument.
33411         * tests/test-pipe-filter-gi1.c (main): Likewise.
33412
33413 2009-08-16  Eric Blake  <ebb9@byu.net>
33414
33415         fpurge: fix previous commits
33416         * modules/fpurge (Makefile.am): Make replacement conditional,
33417         partially reverting 2007-04-29 change; missed in previous
33418         attempt.
33419         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
33420         is missing.
33421
33422 2009-08-16  Bruno Haible  <bruno@clisp.org>
33423
33424         Clarify fpurge's effect on the file position.
33425         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
33426         * tests/test-fpurge.c (main): Make a second pass for checking the file
33427         position.
33428
33429 2009-08-16  Bruno Haible  <bruno@clisp.org>
33430
33431         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
33432         declaration of fpurge is missing.
33433         * tests/test-fpurge.c (main): Check that the file has not more contents
33434         than expected. Close the file before removing it.
33435
33436 2009-08-15  Eric Blake  <ebb9@byu.net>
33437
33438         fpurge: don't wrap working cygwin implementation
33439         * lib/fpurge.c (fpurge): Fix comment typo.
33440         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
33441         1.7 to avoid replacement.
33442         * tests/test-fpurge.c (main): Enhance test.
33443
33444 2009-08-15  Eric Blake  <ebb9@byu.net>
33445         and Jim Meyering  <meyering@redhat.com>
33446
33447         test-update-copyright: skip if perl is insufficient
33448         * tests/test-update-copyright.sh: Failure to run maintainer tool
33449         should not cause testsuite failure on cygwin 1.5.
33450
33451 2009-08-14  Eric Blake  <ebb9@byu.net>
33452
33453         doc: mention more functions added in cygwin 1.7.0
33454         * doc/posix-headers/limits.texi (limits.h): Update for recent
33455         cygwin additions.
33456         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
33457         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
33458         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
33459         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
33460         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
33461
33462 2009-08-14  Eric Blake  <ebb9@byu.net>
33463
33464         maint.mk: simplify update-copyright rule
33465         * top/maint.mk (update-copyright-local): Delete, and document how
33466         to do it in cfg.mk instead.
33467         (update-copyright-exclude-regexp): Delete, and document how to do
33468         it in .x-update-copyright instead.
33469         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
33470         exclude ChangeLog.
33471
33472 2009-08-14  Bruno Haible  <bruno@clisp.org>
33473
33474         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
33475
33476 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33477
33478         maint.mk: support update-copyright-env
33479         * top/maint.mk (update-copyright-env): Define place-holder.
33480         (update-copyright): Expand $(update-copyright-env) before
33481         invoking update-copyright.
33482
33483 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33484
33485         update-copyright: implement forced reformatting
33486         * build-aux/update-copyright: Implement and document
33487         UPDATE_COPYRIGHT_FORCE.
33488         * tests/test-update-copyright.sh: Test it.
33489
33490 2009-08-14  Eric Blake  <ebb9@byu.net>
33491         and Bruno Haible  <bruno@clisp.org>
33492
33493         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
33494         * tests/test-locale.c: Revert previous patch related to NULL.
33495         * tests/test-stdio.c: Likewise.
33496         * tests/test-stdlib.c: Likewise.
33497         * tests/test-string.c: Likewise.
33498         * tests/test-unistd.c: Likewise.
33499         * modules/time-tests (Depends-on): Add verify.
33500         * modules/wchar-tests (Depends-on): Likewise.
33501         * tests/test-time.c: Test for NULL compliance.
33502         * tests/test-wchar.c: Likewise.
33503         * modules/locale (Depends-on): Add stddef.
33504         * modules/stdio (Depends-on): Likewise.
33505         * modules/stdlib (Depends-on): Likewise.
33506         * modules/string (Depends-on): Likewise.
33507         * modules/time (Depends-on): Likewise.
33508         * modules/unistd (Depends-on): Likewise.
33509         * modules/wchar (Depends-on): Likewise.
33510         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
33511         * lib/stdlib.in.h (includes): Likewise.
33512         * lib/string.in.h (includes): Likewise.
33513         * lib/time.in.h (includes): Likewise.
33514         * lib/unistd.in.h (includes): Likewise.
33515         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
33516         replaced.
33517         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
33518         * m4/stddef_h.m4: New file.
33519         * modules/stddef: Likewise.
33520         * lib/stddef.in.h: Likewise.
33521         * modules/stddef-tests: Likewise.
33522         * tests/test-stddef.c: Likewise.
33523         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
33524         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
33525         * doc/posix-headers/locale.texi (locale.h): Likewise.
33526         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
33527         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
33528         * doc/posix-headers/string.texi (string.h): Likewise.
33529         * doc/posix-headers/time.texi (time.h): Likewise.
33530         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
33531         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
33532
33533 2009-08-14  Eric Blake  <ebb9@byu.net>
33534
33535         doc: improve git diff of texinfo files
33536         * .gitattributes: Add rule for *.texi files, with hint on how to
33537         use it.
33538         Copied from m4, and based on a report by Bruno Haible.
33539
33540 2009-08-14  Bruno Haible  <bruno@clisp.org>
33541
33542         Disable multithread support by default on Cygwin 1.5.x for real.
33543         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
33544
33545 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
33546
33547         update-copyright: much ado about intervals
33548         * build-aux/update-copyright: Implement and document
33549         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
33550         of copyright year intervals.
33551         Also, document UPDATE_COPYRIGHT_YEAR.
33552         * tests/test-update-copyright.sh: Test it.
33553
33554         update-copyright: convert 2-digit to 4-digit years
33555         * build-aux/update-copyright: Implement and document.
33556         * tests/test-update-copyright.sh: Update.
33557
33558 2009-08-14  Jim Meyering  <meyering@redhat.com>
33559
33560         test-exclude: avoid coreutils "make check" failure
33561         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
33562         just as in test-argmatch.c.
33563
33564 2009-08-13  Eric Blake  <ebb9@byu.net>
33565
33566         test-dup2: fix bad assumption
33567         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
33568         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
33569
33570         test-version-etc: fix CRLF portability issue
33571         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
33572         recognize \r.
33573         * tests/test-argp-version-etc-1.sh: Likewise.
33574
33575         getopt: update client modules
33576         * modules/argp (Depends-on): Use getopt-gnu.
33577         * modules/git-merge-changelog (Depends-on): Likewise.
33578         * modules/long-options (Depends-on): Likewise.
33579         * modules/xstrtol (Depends-on): Likewise.
33580
33581 2009-08-13  Simon Josefsson  <simon@josefsson.org>
33582
33583         * tests/test-version-etc.sh: Don't fail on different
33584         project/version.  Don't fail on CRLF differences.  Rewrite to use
33585         multiple -e instead of multiple sed forks, suggested by Eric Blake
33586         <ebb9@byu.net>.
33587         * tests/test-argp-version-etc-1.sh: Likewise.
33588
33589 2009-08-13  Simon Josefsson  <simon@josefsson.org>
33590
33591         * tests/test-version-etc.sh: Don't fail on different
33592         project/version.
33593
33594 2009-08-12  Bruno Haible  <bruno@clisp.org>
33595
33596         Tests for modules 'getopt-posix', 'getopt-gnu'.
33597         * modules/getopt-posix-tests: New file.
33598         * tests/test-getopt.c: New file.
33599         * tests/test-getopt.h: New file.
33600         * tests/test-getopt_long.h: New file.
33601
33602         New modules 'getopt-posix', 'getopt-gnu'.
33603         * modules/getopt-gnu: New file, renamed from modules/getopt.
33604         * modules/getopt-posix: New file.
33605         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
33606         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
33607         (gl_GETOPT): Remove macro.
33608         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
33609         Disable the test against BSD systems that declare optreset. Test
33610         against mingw bug. Test against lack of support of optional arguments
33611         on many platforms.
33612         * doc/glibc-headers/getopt.texi: Update module name and list of
33613         relevant platforms.
33614         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
33615         'getopt-gnu' and more portability problems.
33616         * NEWS: Mention the changes.
33617
33618 2009-08-12  Bruno Haible  <bruno@clisp.org>
33619
33620         Ensure that optarg etc. get declared by <unistd.h>.
33621         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
33622         AC_USE_SYSTEM_EXTENSIONS.
33623         * modules/getopt (Depends-on): Add 'extensions'.
33624
33625 2009-08-12  Bruno Haible  <bruno@clisp.org>
33626
33627         Avoid test link errors.
33628         * modules/pipe-filter-ii-tests (Makefile.am): Define
33629         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
33630         * modules/pipe-filter-gi-tests (Makefile.am): Define
33631         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
33632         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33633
33634 2009-08-12  Bruno Haible  <bruno@clisp.org>
33635
33636         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
33637         gl_GETOPT_SUBSTITUTE before.
33638         (gl_GETOPT): Use it.
33639         * m4/argp.m4 (gl_ARGP): Update.
33640         Reported by Sergey Poznyakoff.
33641
33642         * m4/getopt.m4: Reorder macros.
33643         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
33644         (gl_GETOPT_SUBSTITUTE): Remove macro.
33645
33646 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33647
33648         Minor improvement in gitlog-to-changelog
33649
33650         * build-aux/gitlog-to-changelog: New option `--format' makes
33651         output format string configurable.
33652
33653 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
33654
33655         Optimize exclude: use hash tables for non-wildcard patterns.
33656
33657         * lib/exclude.c: Include hash.h and mbuiter.h
33658         (struct exclude_pattern, exclude_segment): New data types.
33659         (struct exclude): Rewrite.
33660         (fnmatch_pattern_has_wildcards): New function.
33661         (new_exclude_segment, free_exclude_segment): New functions.
33662         (excluded_file_pattern_p, excluded_file_name_p): New functions.
33663         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
33664         * lib/exclude.h (is_fnmatch_pattern): New prototype.
33665         * modules/exclude: Depend on hash and mbuiter.
33666
33667         * modules/exclude-tests: New file.
33668         * tests/test-exclude.c: New file.
33669         * tests/test-exclude1.sh: New file.
33670         * tests/test-exclude2.sh: New file.
33671         * tests/test-exclude3.sh: New file.
33672         * tests/test-exclude4.sh: New file.
33673         * tests/test-exclude5.sh: New file.
33674         * tests/test-exclude6.sh: New file.
33675         * tests/test-exclude7.sh: New file.
33676
33677 2009-08-12  Bruno Haible  <bruno@clisp.org>
33678
33679         Ensure that getopt() gets declared by <unistd.h>.
33680         * lib/unistd.in.h: Conditionally include getopt.h.
33681         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
33682         Set GNULIB_UNISTD_H_GETOPT.
33683         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33684         GNULIB_UNISTD_H_GETOPT.
33685         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
33686
33687 2009-08-12  Bruno Haible  <bruno@clisp.org>
33688
33689         Clarify logic.
33690         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
33691         gl_replace_getopt instead of GETOPT_H.
33692
33693 2009-08-12  Bruno Haible  <bruno@clisp.org>
33694
33695         * m4/getopt.m4: Add comments.
33696
33697 2009-08-12  Bruno Haible  <bruno@clisp.org>
33698
33699         Disable multithread support by default on Cygwin 1.5.x.
33700         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
33701         set gl_use_threads=no if not specified otherwise.
33702
33703 2009-08-11  Bruno Haible  <bruno@clisp.org>
33704
33705         Avoid compilation error on NetBSD 5.0.
33706         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
33707         * tests/test-stdio.c: Likewise.
33708         * tests/test-stdlib.c: Likewise.
33709         * tests/test-string.c: Likewise.
33710         * tests/test-unistd.c: Likewise.
33711         Reported by Greg Troxel <gdt@ir.bbn.com>
33712         at <https://savannah.gnu.org/support/?106973>.
33713
33714 2009-08-11  Bruno Haible  <bruno@clisp.org>
33715
33716         * modules/dup2-tests (Depends-on): Remove close.
33717
33718         Undo 2009-07-19 commit.
33719         * modules/acl-tests (Depends-on): Remove close.
33720         * modules/binary-io-tests (Depends-on): Likewise.
33721         * modules/closein-tests (Depends-on): Likewise.
33722         * modules/flock-tests (Depends-on): Likewise.
33723         * modules/fsync-tests (Depends-on): Likewise.
33724         * modules/lseek-tests (Depends-on): Likewise.
33725         * modules/pipe-tests (Depends-on): Likewise.
33726         * modules/posix_spawn-tests (Depends-on): Likewise.
33727         * modules/posix_spawnp-tests (Depends-on): Likewise.
33728         * modules/stat-time-tests (Depends-on): Likewise.
33729         * modules/yesno-tests (Depends-on): Likewise.
33730
33731 2009-08-10  Bruno Haible  <bruno@clisp.org>
33732
33733         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
33734
33735 2009-08-10  Bruno Haible  <bruno@clisp.org>
33736
33737         Fix a gcc warning.
33738         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
33739
33740 2009-08-10  Bruno Haible  <bruno@clisp.org>
33741
33742         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
33743         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
33744         not only the first time.
33745         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
33746         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
33747         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
33748         is 1, not only the the first time.
33749
33750 2009-08-10  Bruno Haible  <bruno@clisp.org>
33751
33752         Make it possible to use module 'gethostname' without module 'close'.
33753         * lib/unistd.in.h (close): Evoke a link error only if
33754         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
33755         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33756         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33757         * modules/unistd (Makefile.am): Substitute
33758         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33759         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
33760         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
33761         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
33762         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33763         * modules/sys_ioctl (Makefile.am): Substitute
33764         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33765         * modules/socket (configure.ac): On native Windows, set
33766         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
33767         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33768         Reported by Sam Steingold <sds@gnu.org>.
33769
33770 2009-08-10  Bruno Haible  <bruno@clisp.org>
33771
33772         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
33773         * modules/ioctl (configure.ac): Likewise.
33774
33775 2009-08-10  Bruno Haible  <bruno@clisp.org>
33776
33777         Avoid collision between gnulib wrapper and libintl wrapper.
33778         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
33779         already defined in intl/printf.c.
33780         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
33781         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
33782
33783 2009-08-09  Bruno Haible  <bruno@clisp.org>
33784
33785         Make <sys/select.h> really self-contained, also on Solaris 10.
33786         * lib/sys_select.in.h: Include <string.h>.
33787         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
33788         Solaris 10 problem.
33789         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
33790         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
33791         Reported by Jim Meyering.
33792
33793 2009-08-09  Bruno Haible  <bruno@clisp.org>
33794
33795         Avoid warnings from 'aclocal' that are due to a use of macro name
33796         AM_XGETTEXT_OPTION that is not defined in automake.
33797         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
33798         automake.
33799         * modules/error (configure.ac): Likewise.
33800         * modules/propername (configure.ac): Likewise.
33801         * modules/vasprintf (configure.ac): Likewise.
33802         * modules/verror (configure.ac): Likewise.
33803         * modules/xprintf (configure.ac): Likewise.
33804         * modules/xvasprintf (configure.ac): Likewise.
33805
33806 2009-08-08  Bruno Haible  <bruno@clisp.org>
33807
33808         Avoid compilation error in C++ mode.
33809         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
33810         Reported by Sam Steingold <sds@gnu.org>.
33811
33812 2009-08-08  Bruno Haible  <bruno@clisp.org>
33813
33814         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
33815         for the various Unix platforms.
33816         * doc/posix-headers/limits.texi: Update platforms list regarding
33817         HOST_NAME_MAX.
33818         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33819
33820 2009-08-07  Jim Meyering  <meyering@redhat.com>
33821
33822         selinux-at: fix typo in a comment
33823         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
33824         Spotted by Paolo Bonzini.
33825
33826         selinux-at: remove redundant m4 code, add documentation
33827         * modules/selinux-at (configure.ac): Remove redundant code.
33828         LIB_SELINUX is already set via the dependent module, selinux-h.
33829         (Include): Add quotes around selinux-at.h.
33830         * lib/selinux-at.h: Add documentation.
33831         Reported by Bruno Haible in
33832         http://marc.info/?l=gnulib-bug&m=124958988300749
33833
33834 2009-08-07  Bruno Haible  <bruno@clisp.org>
33835
33836         Avoid link error on MacOS X 10.3 and 10.4.
33837         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
33838         on non-ELF systems.
33839         * lib/argp-pv.c (argp_program_version): Likewise.
33840         Reported by Simon Josefsson.
33841
33842 2009-08-07  Simon Josefsson  <simon@josefsson.org>
33843
33844         * tests/test-version-etc.sh: Use $EXEEXT.
33845
33846 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
33847
33848         update-copyright: update documentation to point to maint.mk
33849         * build-aux/update-copyright: Here.
33850
33851 2009-08-06  Jim Meyering  <meyering@redhat.com>
33852
33853         maint.mk: support update-copyright-local
33854         * top/maint.mk (update-copyright-local): Define place-holder.
33855         (update-copyright): Depend on $(update-copyright-local).
33856
33857 2009-08-06  Jim Meyering  <meyering@redhat.com>
33858
33859         selinux-at: new module
33860         Initially written for coreutils, this module will soon be
33861         used by findutils, too.
33862         * MODULES.html.sh [Misc]: Add selinux-at.
33863         * lib/selinux-at.h: New file, from coreutils.
33864         * lib/selinux-at.c: Likewise.
33865         * modules/selinux-at: Likewise.
33866         (License): Change from LGPL to GPL, since it depends
33867         on the GPL'd openat module.
33868
33869         doc: update README
33870         * README: Remove references to cogito.
33871         Remove cvs-repo-updating instructions from 2007.
33872         Don't imply that CVS is better if you have limited disk space.
33873
33874 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33875
33876         update-copyright: support C-style comments
33877         * build-aux/update-copyright: Implement and document.
33878         * tests/test-update-copyright.sh: Test.
33879
33880 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33881
33882         update-copyright: support omitted "(C)"
33883         * build-aux/update-copyright: Implement and document.  Also,
33884         allow variable whitespace before "(C)".
33885         * tests/test-update-copyright.sh: Test.
33886
33887 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33888
33889         update-copyright: don't trip on non-FSF copyright statements
33890         * build-aux/update-copyright: Fix so that the first correctly
33891         formatted FSF copyright statement is recognized no matter what
33892         appears before it.  Update documentation.
33893         * tests/test-update-copyright.sh: Test that.
33894
33895 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33896
33897         update-copyright: clean up code a little
33898         * build-aux/update-copyright: Append "_re" to the name of any
33899         variable holding a regular expression.
33900         Replace "old" and "new" with "stmt" in variable names.
33901         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
33902         handled correctly.
33903         Format code more consistently.
33904
33905 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33906
33907         update-copyright-tests: improve portability
33908         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
33909         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
33910
33911 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
33912
33913         update-copyright: support @copyright{} and &copy;
33914         * build-aux/update-copyright: Implement and document.
33915         * tests/test-update-copyright.sh: Test.
33916
33917 2009-08-04  Jim Meyering  <meyering@redhat.com>
33918
33919         update-copyright-tests: correctly test EOL=\r\n handling
33920         * tests/test-update-copyright.sh: Put \r at the end of some lines
33921         for the dos-eol tests.  Based on a patch by Joel E. Denny.
33922
33923         maint.mk: make update-copyright exclusion list more configurable
33924         * top/maint.mk (update-copyright): Default to excluding COPYING,
33925         but allow an override, in case someone does want to update that file.
33926
33927         maint.mk: don't update copyright date in COPYING
33928         * top/maint.mk (update-copyright): Exclude COPYING.
33929
33930         maint.mk: add a copyright-updating rule
33931         * top/maint.mk (update-copyright): New rule.
33932         Derived from coreutils/Makefile.am.
33933
33934         update-copyright: rename some variables
33935         * build-aux/update-copyright: Rename a few variables for clarity.
33936         Tweak syntax.  List Joel E. Denny as coauthor.
33937
33938 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
33939
33940         update-copyright: fix bug for 2-digit last year and add tests
33941         * build-aux/update-copyright: Fix bug.
33942         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
33943         specified.
33944         * modules/update-copyright-tests: New
33945         * tests/test-update-copyright.sh: New.
33946
33947 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33948
33949         update-copyright: handle leading tabs in line prefix
33950         * build-aux/update-copyright: Count leading tabs as 8 spaces
33951         when computing margin.  This helps with the formatting of
33952         ChangeLogs, for example.
33953         Fix documentation a little.
33954
33955 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33956
33957         update-copyright: support EOL=\r\n
33958         * build-aux/update-copyright: Implement that.
33959
33960 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33961
33962         update-copyright: automatically format copyright statements
33963         * build-aux/update-copyright: Implement that.
33964         Also, be a little more predictable and safer by always failing
33965         when the full copyright format is not perfectly recognized as an
33966         unbroken whole.  Discussed at
33967         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
33968         Rewrite documentation.
33969
33970 2009-08-03  Bruno Haible  <bruno@clisp.org>
33971
33972         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
33973
33974 2009-08-02  Bruno Haible  <bruno@clisp.org>
33975
33976         Tests for module 'uname'.
33977         * modules/uname-tests: New file.
33978         * tests/test-uname.c: New file.
33979
33980         New module 'uname'.
33981         * lib/uname.c: New file.
33982         * m4/uname.m4: New file.
33983         * modules/uname: New file.
33984         * doc/posix-functions/uname.texi: Mention the new module.
33985
33986 2009-08-02  Bruno Haible  <bruno@clisp.org>
33987
33988         Tests for module 'sys_utsname'.
33989         * modules/sys_utsname-tests: New file.
33990         * tests/test-sys_utsname.c: New file.
33991
33992         New module 'sys_utsname'.
33993         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
33994         * m4/sys_utsname_h.m4: New file.
33995         * modules/sys_utsname: New file.
33996         * doc/posix-headers/sys_utsname.texi: Mention the new module.
33997
33998 2009-08-02  Bruno Haible  <bruno@clisp.org>
33999
34000         Implicitly initialize the sockets library.
34001         * lib/gethostname.c: Include sockets.h.
34002         (rpl_gethostname): Invoke gl_sockets_startup.
34003         * lib/socket.c: Include sockets.h.
34004         (rpl_socket): Invoke gl_sockets_startup.
34005         * modules/gethostname (Depends-on): Add sockets.
34006         * modules/socket (Depends-on): Likewise.
34007         * tests/test-poll.c: Don't include sockets.h.
34008         (main): Don't invoke gl_sockets_startup.
34009         * tests/test-select.c: Don't include sockets.h.
34010         (main): Don't invoke gl_sockets_startup.
34011
34012 2009-08-02  Bruno Haible  <bruno@clisp.org>
34013
34014         Allow multiple calls to gl_sockets_startup.
34015         * lib/sockets.c (initialized_sockets_version): New variable.
34016         (gl_sockets_startup): Do nothing if already called for this or a higher
34017         version.
34018         (gl_sockets_cleanup): Reset initialized_sockets_version.
34019
34020 2009-08-03  Simon Josefsson  <simon@josefsson.org>
34021
34022         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
34023         different project/version.
34024
34025 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
34026             Bruno Haible  <bruno@clisp.org>
34027
34028         Tests for module 'pipe-filter-gi'.
34029         * modules/pipe-filter-gi-tests: New file.
34030         * tests/test-pipe-filter-gi1.sh: New file.
34031         * tests/test-pipe-filter-gi1.c: New file.
34032         * tests/test-pipe-filter-gi2.sh: New file.
34033         * tests/test-pipe-filter-gi2-main.c: New file.
34034         * tests/test-pipe-filter-gi2-child.c: New file.
34035
34036         New module 'pipe-filter-gi'.
34037         * lib/pipe-filter-gi.c: New file.
34038         * modules/pipe-filter-gi: New file.
34039
34040 2009-08-02  Bruno Haible  <bruno@clisp.org>
34041             Paolo Bonzini  <bonzini@gnu.org>
34042
34043         Tests for module 'pipe-filter-ii'.
34044         * modules/pipe-filter-ii-tests: New file.
34045         * tests/test-pipe-filter-ii1.sh: New file.
34046         * tests/test-pipe-filter-ii1.c: New file.
34047         * tests/test-pipe-filter-ii2.sh: New file.
34048         * tests/test-pipe-filter-ii2-main.c: New file.
34049         * tests/test-pipe-filter-ii2-child.c: New file.
34050
34051         New module 'pipe-filter-ii'.
34052         * lib/pipe-filter.h: New file.
34053         * lib/pipe-filter-ii.c: New file.
34054         * lib/pipe-filter-aux.h: New file.
34055         * modules/pipe-filter-ii: New file.
34056
34057 2009-08-02  Simon Josefsson  <simon@josefsson.org>
34058
34059         * lib/gc-libgcrypt.c: Change copyright to FSF.
34060         * lib/gc-gnulib.c: Likewise.
34061
34062 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
34063
34064         * lib/gethostname.c: Include limits.h.
34065
34066 2009-08-02  Simon Josefsson  <simon@josefsson.org>
34067             Bruno Haible  <bruno@clisp.org>
34068
34069         Ensure HOST_NAME_MAX as part of the gethostname module.
34070         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
34071         define also HOST_NAME_MAX.
34072         * tests/test-gethostname.c: Include <limits.h>.
34073         (main): Check also HOST_NAME_MAX.
34074         * doc/posix-headers/limits.texi: Document the mingw problem.
34075
34076 2009-08-02  Bruno Haible  <bruno@clisp.org>
34077
34078         * lib/gethostname.c (gethostname): Fix handling of large len argument.
34079         Add comments.
34080
34081 2009-03-31  Simon Josefsson  <simon@josefsson.org>
34082
34083         * lib/gethostname.c: Add Windows wrapper.
34084         * m4/gethostname.m4: Look for gethostname in -lws2_32.
34085         * modules/gethostname: Depend on sys_socket & errno, for also
34086         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
34087         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
34088
34089 2009-07-31  Jim Meyering  <meyering@redhat.com>
34090
34091         getloadavg: fix symbol name in comment
34092         * lib/getloadavg.c: Correct a typo I introduced when adding
34093         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
34094         Matt Kraai spotted the problem.
34095
34096 2009-07-29  Matt Kraai  <mkraai@beckman.com>
34097
34098         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
34099         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
34100         code also if ! defined N_NAME_POINTER.
34101         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
34102         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
34103         but the n_name member is a 12-byte array.
34104
34105 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
34106
34107         update-copyright: generalize comment handling
34108         * build-aux/update-copyright: Handle copyright statements
34109         within more comment styles.
34110         Document usage.
34111         Report any file with an external copyright holder or parse failure.
34112
34113 2009-07-29  Jim Meyering  <meyering@redhat.com>
34114
34115         mktime: correct setting of REPLACE_MKTIME
34116         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
34117
34118         update-copyright: new module
34119         * modules/update-copyright: New file.
34120         * build-aux/update-copyright: New file.
34121         * MODULES.html.sh (maint+release support): Add update-copyright.
34122
34123 2009-07-27  Bruno Haible  <bruno@clisp.org>
34124
34125         Fix compilation error when <ctime> is used and mktime is replaced.
34126         * lib/time.in.h (mktime): New declaration.
34127         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
34128         REPLACE_MKTIME instead of defining mktime in config.h.
34129         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
34130         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
34131         Reported by Ross McFarland <rwmcfa1@neces.com>.
34132
34133 2009-07-27  Bruno Haible  <bruno@clisp.org>
34134
34135         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
34136         Reported by Matt Kraai <mkraai@beckman.com>.
34137
34138 2009-07-25  Jim Meyering  <meyering@redhat.com>
34139
34140         maint.mk: avoid warnings about missing files
34141         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
34142         diagnostic when .prev-version does not exist.
34143         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
34144         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
34145         nonexistent cfg.mk.
34146         Suggestions from Simon Josefsson.
34147
34148 2009-07-25  Bruno Haible  <bruno@clisp.org>
34149
34150         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
34151         defined as macros. Needed on QNX 6.4.1.
34152         Reported by Matt Kraai <mkraai@beckman.com>.
34153
34154 2009-07-23  Jim Meyering  <meyering@redhat.com>
34155
34156         maint.mk: invoke "make dist" with a working value of XZ_OPT
34157         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
34158
34159 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
34160
34161         Make fseeko.c compile on QNX.
34162         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
34163
34164 2009-07-22  Peter Simons  <simons@cryp.to>
34165
34166         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
34167         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
34168         * lib/md4.h: Likewise.
34169         * lib/md5.h: Likewise.
34170         * lib/sha1.h: Likewise.
34171         * lib/sha256.h: Likewise.
34172         * lib/sha512.h: Likewise.
34173
34174         tests-sha1: don't assign literal string to 'char *' variable
34175         * tests/test-sha1.c (main): Declare locals with "const" to match
34176         attributes of the right hand side.
34177
34178 2009-07-21  Eric Blake  <ebb9@byu.net>
34179
34180         dup2: fix more mingw problems
34181         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
34182         fd to itself.
34183         * doc/posix-functions/dup2.texi (dup2): Document the bug.
34184         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
34185         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
34186         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
34187         care of mingw bugs.
34188
34189 2009-07-21  Jim Meyering  <meyering@redhat.com>
34190
34191         vc-list-files: avoid failure when /bin/sh is dash
34192         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
34193         On some Debian based systems, /bin/sh is a symlink to dash, and running
34194         this command would omit the "/" following each 'tests' prefix:
34195           dash -x build-aux/vc-list-files -C . tests
34196         That is because bash and dash work differently:
34197           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
34198           bash ok
34199           dash odd
34200
34201 2009-07-21  Eric Blake  <ebb9@byu.net>
34202
34203         dup2-tests: test previous patch
34204         * modules/dup2-tests: New file.
34205         * tests/test-dup2.c: Likewise.
34206         * tests/test-open.c (main): Avoid unspecified behavior.
34207         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
34208         test.
34209
34210         dup2: work around mingw and cygwin 1.5 bug
34211         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
34212         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
34213         * modules/unistd (Makefile.am): Substitute it.
34214         * lib/unistd.in.h (dup2): Declare the replacement.
34215         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
34216         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
34217         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
34218         * modules/execute (Depends-on): Add dup2.
34219         * modules/fseterr (Depends-on): Likewise.
34220         * modules/pipe (Depends-on): Likewise.
34221         * modules/posix_spawn-internal (Depends-on): Likewise.
34222
34223 2009-07-21  Bruno Haible  <bruno@clisp.org>
34224
34225         * modules/.gitattributes: New file.
34226
34227 2009-07-20  Bruno Haible  <bruno@clisp.org>
34228
34229         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
34230         (main): Use it.
34231
34232 2009-07-20  Eric Blake  <ebb9@byu.net>
34233
34234         test-pipe: make a bit more robust.
34235         * tests/test-pipe.c (myerr): Allow error messages regardless of
34236         what we do to stderr.
34237         (test_pipe): Rearrange to avoid deadlock.
34238         (child_main): Try a larger read, to ensure we avoided deadlock.
34239         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
34240         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
34241         if misused.
34242
34243 2009-07-19  Jim Meyering  <meyering@redhat.com>
34244
34245         fts: avoid false-positive cycle-detection
34246         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
34247         for each new command line argument.
34248
34249 2009-07-19  Bruno Haible  <bruno@clisp.org>
34250
34251         Fix build error on mingw with the modules sys_select and unistd.
34252         * modules/acl-tests (Depends-on): Add close.
34253         * modules/binary-io-tests (Depends-on): Likewise.
34254         * modules/closein-tests (Depends-on): Likewise.
34255         * modules/flock-tests (Depends-on): Likewise.
34256         * modules/fsync-tests (Depends-on): Likewise.
34257         * modules/lseek-tests (Depends-on): Likewise.
34258         * modules/pipe-tests (Depends-on): Likewise.
34259         * modules/posix_spawn-tests (Depends-on): Likewise.
34260         * modules/posix_spawnp-tests (Depends-on): Likewise.
34261         * modules/stat-time-tests (Depends-on): Likewise.
34262         * modules/yesno-tests (Depends-on): Likewise.
34263
34264 2009-07-19  Bruno Haible  <bruno@clisp.org>
34265
34266         Unify conditionals.
34267         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
34268         macros, not at the compiler macros.
34269         * lib/pipe.c: Likewise.
34270         * lib/execute.c: Likewise.
34271         * lib/spawni.c: Likewise.
34272
34273 2009-07-19  Bruno Haible  <bruno@clisp.org>
34274
34275         Fix handling of closed stdin/stdout/stderr on mingw.
34276         * lib/w32spawn.h: Include unistd.h.
34277         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
34278         file descriptor with O_NOINHERIT flag.
34279         (fd_safer_noinherit): New function, based on fd-safer.c.
34280         (dup_safer_noinherit): New function, based on dup-safer.c.
34281         (undup_safer_noinherit): New function.
34282         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
34283         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
34284         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
34285         instead of fd_safer.
34286         * tests/test-pipe.c: Include <windows.h>.
34287         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
34288         result.
34289
34290         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
34291         from main.
34292         (test_pipe): Pass an extra argument for disambiguation.
34293         (main): Invoke parent_main or child_main.
34294
34295         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
34296         consistently.
34297
34298 2009-07-18  Eric Blake  <ebb9@byu.net>
34299
34300         test-pipe: fix mingw build
34301         * tests/test-pipe.c (main): Avoid fcntl on mingw.
34302
34303 2009-07-18  Bruno Haible  <bruno@clisp.org>
34304
34305         * modules/pipe-tests (Makefile.am): Fix typo.
34306
34307 2009-07-18  Eric Blake  <ebb9@byu.net>
34308
34309         error: fix mingw build
34310         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
34311         Reported by Bruno Haible.
34312
34313         error: avoid undefined use of stdout
34314         * lib/error.c (error, error_at_line): Check that fd 1 is open
34315         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
34316         is handling faults and the close_stdout module wants to report the
34317         detection of closed stdout as an error.
34318
34319 2009-07-17  Eric Blake  <ebb9@byu.net>
34320
34321         pipe: be robust in face of closed fds
34322         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
34323         should cause child to misbehave.
34324         * modules/pipe-tests: New module.
34325         * tests/test-pipe.c: New file.
34326         * tests/test-pipe.sh: New file.
34327         Reported by Akim Demaille.
34328
34329 2009-07-14  Bruno Haible  <bruno@clisp.org>
34330
34331         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
34332         Reported by anonymous kc.
34333
34334 2009-07-07  Jim Meyering  <meyering@redhat.com>
34335
34336         maint.mk: don't look for translatable strings in *.m4 or *.mk
34337         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
34338         when searching for translatable strings.
34339
34340 2009-07-05  Jim Meyering  <meyering@redhat.com>
34341
34342         remove superfluous parentheses in STREQ definition
34343         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
34344         * lib/getugroups.c (STREQ): Likewise.
34345         * lib/fnmatch.c (STREQ): Likewise.
34346         Spotted by Bruno Haible.
34347
34348 2009-07-04  Jim Meyering  <meyering@redhat.com>
34349
34350         argv-iter: new module
34351         * MODULES.html.sh: Add argv-iter.
34352         * lib/argv-iter.c, lib/argv-iter.h: New files.
34353         * modules/argv-iter: New file.
34354         * modules/argv-iter-tests: New file.
34355         * tests/test-argv-iter.c: Test it.
34356
34357 2009-07-04  Bruno Haible  <bruno@clisp.org>
34358
34359         Fix assertion.
34360         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
34361         contains more exact copies of a given entry than file2, leave the extra
34362         copies unpaired rather than aborting.
34363         Reported by Eric Blake.
34364
34365 2009-07-02  Bruno Haible  <bruno@clisp.org>
34366
34367         Speedup git-merge-changelog for git cherry-pick.
34368         * lib/git-merge-changelog.c (struct entries_mapping): New type.
34369         (entries_mapping_get): New function, extracted from compute_mapping.
34370         (entries_mapping_reverse_get): New function.
34371         (compute_mapping): Add a 'full' argument. Return the result in a
34372         'struct entries_mapping'.
34373         (main): Update. Access the mappings through entries_mapping_get.
34374         Reported by Eric Blake.
34375
34376 2009-07-02  Bruno Haible  <bruno@clisp.org>
34377
34378         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
34379         best_i.
34380
34381 2009-07-02  Bruno Haible  <bruno@clisp.org>
34382
34383         Speed up approximate search for matching ChangeLog entries.
34384         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
34385         argument. Call fstrcmp_bounded instead of fstrcmp.
34386         (compute_mapping, try_split_merged_entry, main): Update callers.
34387
34388 2009-07-02  Bruno Haible  <bruno@clisp.org>
34389
34390         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
34391
34392 2009-06-30  Bruno Haible  <bruno@clisp.org>
34393
34394         Reduce the number of uc_is_cased calls.
34395         * lib/unicase.h (casing_suffix_context_t): Add
34396         'first_char_except_ignorable' field.
34397         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
34398         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
34399         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
34400         Update initializer.
34401         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
34402         case-ignorable characters.
34403         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
34404         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
34405         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
34406         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
34407         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
34408
34409 2009-06-30  Bruno Haible  <bruno@clisp.org>
34410
34411         Tests for module 'unicase/ignorable'.
34412         * modules/unicase/ignorable-tests: New file.
34413         * tests/unicase/test-ignorable.c: New file, generated by
34414         gen-uni-tables.
34415
34416         Tests for module 'unicase/cased'.
34417         * modules/unicase/cased-tests: New file.
34418         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
34419         * tests/unicase/test-predicate-part1.h: New file, derived from
34420         tests/unictype/test-predicate-part1.h.
34421         * tests/unicase/test-predicate-part2.h: New file, same as
34422         tests/unictype/test-predicate-part2.h.
34423
34424         Fix evaluation of "Before C" condition of FINAL_SIGMA.
34425         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
34426         (output_casing_properties): New function.
34427         (main): Call it.
34428         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
34429         * lib/unicase/cased.c: Include unictype/bitmap.h.
34430         (uc_is_cased): Define through a bitmap lookup.
34431         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
34432         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
34433         (uc_is_case_ignorable): Define through a bitmap lookup.
34434         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
34435         lib/unictype/bitmap.h.
34436         (Depends-on): Add inline. Clean up.
34437         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
34438         lib/unictype/bitmap.h.
34439         (Depends-on): Add inline. Clean up.
34440         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
34441         recognition.
34442         * tests/unicase/test-u16-tolower.c (main): Likewise.
34443         * tests/unicase/test-u32-tolower.c (main): Likewise.
34444
34445 2009-06-30  Bruno Haible  <bruno@clisp.org>
34446
34447         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
34448         * lib/unicase/u16-casemap.c: Likewise.
34449         * lib/unicase/u32-casemap.c: Likewise.
34450
34451 2009-06-29  Bruno Haible  <bruno@clisp.org>
34452
34453         Define u32_casefold as a wrapper around u32_ct_casefold.
34454         * lib/unicase/u32-casefold.c: Update.
34455         * modules/unicase/u32-casefold (Depends-on): Add
34456         unicase/u32-ct-casefold, unicase/empty-prefix-context,
34457         unicase/empty-suffix-context. Clean up.
34458
34459         Define u16_casefold as a wrapper around u16_ct_casefold.
34460         * lib/unicase/u16-casefold.c: Update.
34461         * modules/unicase/u16-casefold (Depends-on): Add
34462         unicase/u16-ct-casefold, unicase/empty-prefix-context,
34463         unicase/empty-suffix-context. Clean up.
34464
34465         Define u8_casefold as a wrapper around u8_ct_casefold.
34466         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
34467         * lib/unicase/u8-casefold.c: Update.
34468         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
34469         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34470
34471         Define u32_totitle as a wrapper around u32_ct_totitle.
34472         * lib/unicase/u32-totitle.c: Update.
34473         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
34474         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34475
34476         Define u16_totitle as a wrapper around u16_ct_totitle.
34477         * lib/unicase/u16-totitle.c: Update.
34478         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
34479         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34480
34481         Define u8_totitle as a wrapper around u8_ct_totitle.
34482         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
34483         functions.
34484         (FUNC): Delegate to U_CT_TOTITLE.
34485         * lib/unicase/u8-totitle.c: Update.
34486         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
34487         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
34488
34489         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
34490         invocation.
34491         * modules/unicase/u32-tolower (Depends-on): Add
34492         unicase/empty-prefix-context, unicase/empty-suffix-context.
34493
34494         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
34495         invocation.
34496         * modules/unicase/u16-tolower (Depends-on): Add
34497         unicase/empty-prefix-context, unicase/empty-suffix-context.
34498
34499         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
34500         * modules/unicase/u8-tolower (Depends-on): Add
34501         unicase/empty-prefix-context, unicase/empty-suffix-context.
34502
34503         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
34504         invocation.
34505         * modules/unicase/u32-toupper (Depends-on): Add
34506         unicase/empty-prefix-context, unicase/empty-suffix-context.
34507
34508         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
34509         invocation.
34510         * modules/unicase/u16-toupper (Depends-on): Add
34511         unicase/empty-prefix-context, unicase/empty-suffix-context.
34512
34513         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
34514         * modules/unicase/u8-toupper (Depends-on): Add
34515         unicase/empty-prefix-context, unicase/empty-suffix-context.
34516
34517         New module 'unicase/u32-ct-casefold'.
34518         * lib/unicase/u32-ct-casefold.c: New file.
34519         * modules/unicase/u32-ct-casefold: New file.
34520
34521         New module 'unicase/u16-ct-casefold'.
34522         * lib/unicase/u16-ct-casefold.c: New file.
34523         * modules/unicase/u16-ct-casefold: New file.
34524
34525         New module 'unicase/u8-ct-casefold'.
34526         * lib/unicase/u8-ct-casefold.c: New file.
34527         * lib/unicase/u-ct-casefold.h: New file, derived from
34528         lib/unicase/u-casefold.h.
34529         * modules/unicase/u8-ct-casefold: New file.
34530
34531         New module 'unicase/u32-ct-totitle'.
34532         * lib/unicase/u32-ct-totitle.c: New file.
34533         * modules/unicase/u32-ct-totitle: New file.
34534
34535         New module 'unicase/u16-ct-totitle'.
34536         * lib/unicase/u16-ct-totitle.c: New file.
34537         * modules/unicase/u16-ct-totitle: New file.
34538
34539         New module 'unicase/u8-ct-totitle'.
34540         * lib/unicase/u8-ct-totitle.c: New file.
34541         * lib/unicase/u-ct-totitle.h: New file, derived from
34542         lib/unicase/u-totitle.h.
34543         * modules/unicase/u8-ct-totitle: New file.
34544
34545         New module 'unicase/u32-ct-tolower'.
34546         * lib/unicase/u32-ct-tolower.c: New file.
34547         * modules/unicase/u32-ct-tolower: New file.
34548
34549         New module 'unicase/u16-ct-tolower'.
34550         * lib/unicase/u16-ct-tolower.c: New file.
34551         * modules/unicase/u16-ct-tolower: New file.
34552
34553         New module 'unicase/u8-ct-tolower'.
34554         * lib/unicase/u8-ct-tolower.c: New file.
34555         * modules/unicase/u8-ct-tolower: New file.
34556
34557         New module 'unicase/u32-ct-toupper'.
34558         * lib/unicase/u32-ct-toupper.c: New file.
34559         * modules/unicase/u32-ct-toupper: New file.
34560
34561         New module 'unicase/u16-ct-toupper'.
34562         * lib/unicase/u16-ct-toupper.c: New file.
34563         * modules/unicase/u16-ct-toupper: New file.
34564
34565         New module 'unicase/u8-ct-toupper'.
34566         * lib/unicase/u8-ct-toupper.c: New file.
34567         * modules/unicase/u8-ct-toupper: New file.
34568
34569         Add context arguments to u*_casemap functions.
34570         * lib/unicase/unicasemap.h: Include unicase.h.
34571         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
34572         suffix_context arguments.
34573         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
34574         functions.
34575         (FUNC): Add prefix_context and suffix_context arguments. Use
34576         uc_is_cased and uc_is_case_ignorable.
34577         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
34578         * lib/unicase/u16-casemap.c: Likewise.
34579         * lib/unicase/u32-casemap.c: Likewise.
34580         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
34581         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34582         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
34583         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34584         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
34585         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
34586
34587         New module 'unicase/u32-suffix-context'.
34588         * lib/unicase/u32-suffix-context.c: New file.
34589         * modules/unicase/u32-suffix-context: New file.
34590
34591         New module 'unicase/u16-suffix-context'.
34592         * lib/unicase/u16-suffix-context.c: New file.
34593         * modules/unicase/u16-suffix-context: New file.
34594
34595         New module 'unicase/u8-suffix-context'.
34596         * lib/unicase/u8-suffix-context.c: New file.
34597         * lib/unicase/u-suffix-context.h: New file.
34598         * modules/unicase/u8-suffix-context: New file.
34599
34600         New module 'unicase/empty-suffix-context'.
34601         * lib/unicase/empty-suffix-context.c: New file.
34602         * modules/unicase/empty-suffix-context: New file.
34603
34604         New module 'unicase/u32-prefix-context'.
34605         * lib/unicase/u32-prefix-context.c: New file.
34606         * modules/unicase/u32-prefix-context: New file.
34607
34608         New module 'unicase/u16-prefix-context'.
34609         * lib/unicase/u16-prefix-context.c: New file.
34610         * modules/unicase/u16-prefix-context: New file.
34611
34612         New module 'unicase/u8-prefix-context'.
34613         * lib/unicase/u8-prefix-context.c: New file.
34614         * lib/unicase/u-prefix-context.h: New file.
34615         * lib/unicase/context.h: New file.
34616         * modules/unicase/u8-prefix-context: New file.
34617
34618         New module 'unicase/empty-prefix-context'.
34619         * lib/unicase/empty-prefix-context.c: New file.
34620         * modules/unicase/empty-prefix-context: New file.
34621
34622         New module 'unicase/ignorable'.
34623         * lib/unicase/ignorable.c: New file.
34624         * modules/unicase/ignorable: New file.
34625
34626         New module 'unicase/cased'.
34627         * lib/unicase/caseprop.h: New file.
34628         * lib/unicase/cased.c: New file.
34629         * modules/unicase/cased: New file.
34630
34631         New functions for case mapping of substrings.
34632         * lib/unicase.h (casing_prefix_context_t): New type.
34633         (unicase_empty_prefix_context): New variable.
34634         (u8_casing_prefix_context, u16_casing_prefix_context,
34635         u32_casing_prefix_context, u8_casing_prefixes_context,
34636         u16_casing_prefixes_context, u32_casing_prefixes_context): New
34637         declarations.
34638         (casing_suffix_context_t): New type.
34639         (unicase_empty_suffix_context): New variable.
34640         (u8_casing_suffix_context, u16_casing_suffix_context,
34641         u32_casing_suffix_context, u8_casing_suffixes_context,
34642         u16_casing_suffixes_context, u32_casing_suffixes_context,
34643         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
34644         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
34645         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
34646         declarations.
34647
34648 2009-06-28  Jim Meyering  <meyering@redhat.com>
34649
34650         boostrap: indent only with spaces
34651         * build-aux/bootstrap: Indent only with spaces, never TABs.
34652
34653         bootstrap: split long lines
34654         * build-aux/bootstrap: Keep line length < 80.
34655
34656         bootstrap: sync from coreutils
34657         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
34658         just as autoreconf does.  Verify a list of prerequisite
34659         package-name,version-number pairs if defined in bootstrap.conf.
34660         Refer to README-prereq, if prerequisites are not satisfied.
34661
34662 2009-06-27  Eric Blake  <ebb9@byu.net>
34663
34664         tests: add test for bogus NULL definition
34665         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
34666         * tests/test-stdlib.c: Likewise.
34667         * tests/test-string.c: Likewise.
34668         * tests/test-locale.c: Likewise.
34669         * tests/test-unistd.c: Likewise.
34670         * modules/stdio-tests (Depends-on): Add verify.
34671         * modules/stdlib-tests (Depends-on): Likewise.
34672         * modules/string-tests (Depends-on): Likewise.
34673         * modules/locale-tests (Depends-on): Likewise.
34674         * modules/unistd-tests (Depends-on): Likewise.
34675
34676 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
34677
34678         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
34679         self-explaining comment.
34680         * m4/selinux-selinux-h: Update serial.
34681         (gl_LIBSELINUX): New macro, adding a warning for missing development
34682         packages to code extracted from...
34683         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
34684         Add warning for missing development packages here, too.
34685
34686 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
34687
34688         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
34689
34690 2009-06-25  Eric Blake  <ebb9@byu.net>
34691
34692         version-etc: fix regression
34693         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
34694         gcc.
34695         (version_etc): Use it, to catch bugs with trailing NULL.
34696         * lib/version-etc.c (version_etc_arn): Delete unused argument.
34697         (version_etc_va): Fix logic bug.
34698         * modules/version-etc-tests: Add test.
34699         * tests/test-version-etc.c: New file.
34700         * tests/test-version-etc.sh: Likewise.
34701
34702 2009-06-25  Sam Steingold  <sds@gnu.org>
34703
34704         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
34705         mbtowc declaration.
34706
34707 2009-06-25  Eric Blake  <ebb9@byu.net>
34708
34709         fpurge: migrate into <stdio.h>
34710         * lib/fpurge.h: Delete...
34711         * lib/stdio.in.h (fpurge): ...and declare here, instead.
34712         * lib/fpurge.c (fpurge): Change declaring header.
34713         * modules/fpurge (Files): Drop deleted file.
34714         (Depends-on): Add stdio.
34715         (configure.ac): Set witness.
34716         * modules/stdio (Makefile.am): Support fpurge macros.
34717         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34718         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
34719         * lib/fflush.c: Update client.
34720         * tests/test-fpurge.c: Likewise.
34721         * NEWS: Mention the change.
34722
34723 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34724
34725         * lib/argp-version-etc.c (program_authors): Add const
34726         qualifier.
34727         * lib/version-etc.c: Fix typos in the comments.
34728         * modules/argp-version-etc: Depends on version-etc.
34729
34730 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34731
34732         argp-version-etc: new module.
34733
34734         * lib/argp-version-etc.c: New file.
34735         * lib/argp-version-etc.h: New file.
34736         * modules/argp-version-etc: New file.
34737         * modules/argp-version-etc-tests: New file.
34738         * tests/test-argp-version-etc.c: New test.
34739         * tests/test-argp-version-etc-1.sh: New test.
34740
34741 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34742
34743         Provide additional interfaces and documentation for version-etc
34744         module.
34745
34746         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
34747         interfaces.
34748         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
34749         prototypes.
34750
34751 2009-06-24  Bruno Haible  <bruno@clisp.org>
34752
34753         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
34754         HAVE_LIB${NAME} macro.
34755         Reported by Sam Steingold <sds@gnu.org>.
34756
34757 2009-06-23  Simon Josefsson  <simon@josefsson.org>
34758
34759         * modules/hash-tests (test_hash_LDADD): Link to libintl when
34760         needed.
34761
34762 2009-06-21  Bruno Haible  <bruno@clisp.org>
34763
34764         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
34765         work.
34766         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
34767         together with LIB${NAME}, LTLIB${NAME}.
34768         Reported by Sam Steingold <sds@gnu.org>.
34769
34770 2009-06-20  Jim Meyering  <meyering@redhat.com>
34771
34772         tests: make sc_require_test_exit_idiom more generic
34773         * top/maint.mk (Exit_witness_file): New overridable variable.
34774         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
34775         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
34776
34777 2009-06-19  Jim Meyering  <meyering@redhat.com>
34778
34779         hash: reverse order of src/dst parameters in an internal interface
34780         * lib/hash.c (transfer_entries): Reverse order of parameters to
34781         put DST before SRC.  Adjust callers.
34782
34783         tests: test-hash: avoid wholesale duplication
34784         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
34785         Instead, use a loop and add a single conditional.
34786
34787         tests: test-hash: allow seed selection via a command line argument
34788         * tests/test-hash.c (get_seed): New function.
34789         (main): Use it.
34790
34791 2009-06-19  Eric Blake  <ebb9@byu.net>
34792
34793         hash: avoid memory leak on allocation failure
34794         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
34795         failure.  Factor repeated algorithm...
34796         (transfer_entries): ...into new helper routine.
34797         (hash_delete): React to hash_rehash return value.
34798
34799         hash: reduce memory pressure in hash_rehash no-op case
34800         * lib/hash.c (next_prime): Avoid overflow.
34801         (hash_initialize): Factor bucket size computation...
34802         (compute_bucket_size): ...into new helper function.
34803         (hash_rehash): Use new function and open coding to reduce memory
34804         pressure, and avoid a memory leak in USE_OBSTACK code.
34805         Reported by Jim Meyering.
34806
34807 2009-06-18  Eric Blake  <ebb9@byu.net>
34808
34809         hash: make rotation more obvious
34810         * modules/hash (Depends-on): Add bitrotate and stdint.
34811         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
34812         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
34813         (SIZE_MAX): Rely on headers for definition.
34814         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
34815         (raw_hasher): Use rotr_sz.
34816         Suggested by Jim Meyering.
34817
34818         hash: fix memory leak in last patch
34819         * lib/hash.c (hash_rehash): Avoid memory leak.
34820
34821         hash: avoid no-op rehashing
34822         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
34823
34824         hash: provide default callback functions
34825         * lib/hash.c (raw_hasher, raw_comparator): New functions.
34826         (hash_initialize): Use them as defaults.
34827         * tests/test-hash.c (main): Test this.
34828
34829         hash: minor optimization
34830         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
34831         when possible.
34832         (hash_initialize): Document this promise.
34833         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
34834         * tests/test-hash.c (hash_compare_strings): Test this.
34835
34836 2009-06-18  Bruno Haible  <bruno@clisp.org>
34837
34838         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
34839         going to be replaced anyway.
34840
34841 2009-06-18  Bruno Haible  <bruno@clisp.org>
34842
34843         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
34844         in one place.
34845         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
34846         be replaced anyway.
34847
34848 2009-06-18  Eric Blake  <ebb9@byu.net>
34849
34850         hash: check for resize before insertion
34851         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
34852         threshold before insertion, so that a pathological hash_rehash
34853         that fills every bucket can still trigger another rehash.
34854
34855 2009-06-18  Jim Meyering  <meyering@redhat.com>
34856
34857         hash-tests: add a loop around the small tests
34858         * tests/test-hash.c (main): Repeat small tests with selected
34859         small initial table sizes.
34860
34861 2009-06-17  Eric Blake  <ebb9@byu.net>
34862
34863         hash: minor cleanups
34864         * lib/hash.h (hash_entry): Make opaque, by moving...
34865         * lib/hash.c (hash_entry): ...here.
34866         (hash_insert): Clarify restrictions on what can be inserted.
34867         (hash_get_next): Clarify when it is safe to remove an element
34868         during traversal.
34869         (check_tuning): Skip verification when tuning is known safe.
34870         (hash_initialize): Clarify restrictions on tuning.
34871
34872 2009-06-17  Jim Meyering  <jim@meyering.net>
34873         and Eric Blake  <ebb9@byu.net>
34874
34875         hash-tests: new module
34876         * modules/hash-tests: New file.
34877         * tests/test-hash.c: New file.
34878
34879 2009-06-17  Eric Blake  <ebb9@byu.net>
34880
34881         strstr-simple: document new module
34882         * MODULES.html.sh: Document new module.
34883
34884         strstr, strcasestr: replace on platforms with broken memchr
34885         * modules/strstr: Split into...
34886         * modules/strstr-simple: ...new module that does not care about
34887         performance, but does care about glibc bug.
34888         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
34889         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
34890         if platform memchr is broken, per Debian bug 521737.
34891         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
34892         memchr.
34893         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
34894         * doc/posix-functions/strstr.texi (strstr): Document the fix.
34895         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
34896         * modules/mountlist (Depends-on): Add strstr-simple.
34897         * modules/gen-uni-tables (Depends-on): Likewise.
34898         * modules/argz (Depends-on): Add strstr.
34899
34900 2009-06-17  Bruno Haible  <bruno@clisp.org>
34901
34902         * modules/posix_spawn-internal (Depends-on): Add errno.
34903
34904 2009-06-17  Bruno Haible  <bruno@clisp.org>
34905
34906         Define missing ESTALE on Interix 3.5.
34907         * lib/errno.in.h (ESTALE): Assign a value if missing.
34908         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
34909         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
34910         missing.
34911         * doc/posix-headers/errno.texi: Mention the Interix bug.
34912         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
34913
34914 2009-06-15  Eric Blake  <ebb9@byu.net>
34915
34916         memchr, memchr2: add valgrind exception
34917         * lib/memchr.valgrind: New file.
34918         * lib/memchr2.valgrind: New file.
34919         * modules/memchr (Files): Distribute valgrind file.
34920         * modules/memchr2 (Files): Likewise.
34921
34922         docs: memchr is no longer obsolete
34923         * MODULES.html.sh: Move memchr from obsolete to string.h section.
34924         * lib/string.in.h (memchr): Simplify logic.
34925
34926 2009-06-14  Jim Meyering  <meyering@redhat.com>
34927
34928         link-follow: fix the "checking..." message to not mention trailing slash
34929         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
34930         never considered trailing slashes.
34931
34932 2009-06-14  Bruno Haible  <bruno@clisp.org>
34933
34934         * m4/memchr.m4: Mention also the bug on IA-64.
34935         * doc/posix-functions/memchr.texi: Likewise.
34936
34937 2009-06-12  Eric Blake  <ebb9@byu.net>
34938
34939         memchr: detect broken x86_64 and alpha implementations
34940         * modules/memchr-tests (Depends-on): Move mmap detection...
34941         * modules/memchr (Depends-on): ...here.
34942         (configure.ac): Set indicator.
34943         * lib/string.in.h (memchr): Declare replacement.
34944         * modules/string (Makefile.am): Trigger replacement.
34945         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
34946         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
34947         bugs.
34948         * doc/posix-functions/memchr.texi (memchr): Document the bug.
34949         * modules/getpagesize (License): Relax license.
34950
34951 2009-06-11  Bruno Haible  <bruno@clisp.org>
34952
34953         * lib/idpriv.h: Add more references.
34954
34955 2009-06-08  Bruno Haible  <bruno@clisp.org>
34956
34957         Tests for module 'idpriv-droptemp'.
34958         * modules/idpriv-droptemp-tests: New file.
34959         * tests/test-idpriv-droptemp.sh: New file.
34960         * tests/test-idpriv-droptemp.su.sh: New file.
34961         * tests/test-idpriv-droptemp.c: New file.
34962
34963         New module 'idpriv-droptemp'.
34964         * lib/idpriv-droptemp.c: New file.
34965         * modules/idpriv-droptemp: New file.
34966
34967 2009-06-08  Bruno Haible  <bruno@clisp.org>
34968
34969         Tests for module 'idpriv-drop'.
34970         * modules/idpriv-drop-tests: New file.
34971         * tests/test-idpriv-drop.sh: New file.
34972         * tests/test-idpriv-drop.su.sh: New file.
34973         * tests/test-idpriv-drop.c: New file.
34974
34975         New module 'idpriv-drop'.
34976         * lib/idpriv.h: New file.
34977         * lib-idpriv-drop.c: New file.
34978         * m4/idpriv.m4: New file.
34979         * modules/idpriv-drop: New file.
34980
34981 2009-06-08  Bruno Haible  <bruno@clisp.org>
34982
34983         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
34984         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34985         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34986         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34987         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34988         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34989         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34990
34991 2009-06-08  Eric Blake  <ebb9@byu.net>
34992
34993         test-strstr: use memory fence, when possible
34994         * tests/test-strstr.c (main): Use memory fence, in order to be
34995         more likely to trigger Debian bug 521737.
34996         * modules/strstr-tests (Files): Pull in additional files.
34997
34998         memchr: no longer obsolete, for wider field testing
34999         * modules/memchr (Status, Notice): Delete, this module is no
35000         longer obsolete.
35001         * modules/vasnprintf (Depends-on): Add memchr.
35002
35003 2009-06-07  Jim Meyering  <meyering@redhat.com>
35004
35005         hash: declare some functions with the warn_unused_result attribute
35006         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
35007
35008 2009-06-07  Bruno Haible  <bruno@clisp.org>
35009
35010         * tests/test-alignof.c: Don't test int64_t if it does not exist.
35011         Reported by Eric Blake.
35012
35013 2009-06-06  Eric Blake  <ebb9@byu.net>
35014
35015         test-alignof: fix typo with long double
35016         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
35017         compiler error.
35018
35019 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
35020
35021         Escape non-texinfo { and }s.
35022         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
35023         markup error.
35024
35025 2009-06-04  Jim Meyering  <meyering@redhat.com>
35026
35027         gitlog-to-changelog: don't infloop on an empty commit log
35028         * build-aux/gitlog-to-changelog: Warn about an empty log message.
35029         Reported by Boris Petersen <transacid@centerim.org>.
35030
35031 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
35032
35033         version-etc: extend for packagers
35034         Add three new configure options, intended for packagers:
35035           --with-packager="packager name"
35036           --with-packager-version="packager-specific version"
35037           --with-packager-bug-reports="packager bug reporting"
35038         An example with coreutils:
35039           $ ./configure \
35040             --with-packager=Gentoo \
35041             --with-packager-bug-report=http://bugs.gentoo.org/ \
35042             --with-packager-version="patchset 1.6"
35043           $ ./src/ls --version | head -n2
35044           ls (GNU coreutils) 7.1-dirty
35045           Packaged by Gentoo (patchset 1.6)
35046         Note that the bug reporting info via --help doesn't show up because
35047         coreutils uses its own custom emit_bug_reporting_address() implementation
35048         in src/system.h.  If it didn't, it'd look like:
35049           $ ./src/ls --help | tail -n4
35050           Report bugs to <bug-coreutils@gnu.org>.
35051           Report Gentoo bugs to <http://bugs.gentoo.org/>.
35052           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
35053           General help using GNU software: <http://www.gnu.org/gethelp/>.
35054         * lib/version-etc.c: Print new information, if provided.
35055         * m4/version-etc.m4: New file.
35056         * modules/version-etc (Files): Add m4/version-etc.m4.
35057         (configure.ac): Add gl_VERSION_ETC.
35058
35059 2009-05-31  Bruno Haible  <bruno@clisp.org>
35060
35061         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
35062         and 'int64_t'.
35063         * modules/alignof-tests (Dependencies): Add stdint.
35064         Reported by Eric Blake.
35065
35066 2009-05-31  Bruno Haible  <bruno@clisp.org>
35067
35068         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
35069         restriction due to compiler bugs.
35070         Reported by Eric Blake.
35071
35072 2009-05-31  Simon Josefsson  <simon@josefsson.org>
35073             Bruno Haible  <bruno@clisp.org>
35074
35075         Fix test-alignof failure.
35076         * lib/alignof.h (alignof_slot): New macro.
35077         (alignof_type): New macro, with the same semantics as the previous
35078         'alignof'.
35079         (alignof): Alias to alignof_slot.
35080         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
35081         check that the results are usable as constant expressions.
35082
35083 2009-05-31  Bruno Haible  <bruno@clisp.org>
35084
35085         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
35086         * tests/test-memchr.c (main): Check that memchr does not read past the
35087         first occurrence of the byte.
35088         * tests/test-strstr.c (main): Update comment.
35089         Suggested by Eric Blake.
35090
35091 2009-05-30  Bruno Haible  <bruno@clisp.org>
35092
35093         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
35094         detail how to use dumpbin.
35095         Reported by David Byron <dbyron@dbyron.com>.
35096
35097 2009-06-02  Simon Josefsson  <simon@josefsson.org>
35098
35099         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
35100
35101 2009-06-02  Simon Josefsson  <simon@josefsson.org>
35102
35103         * m4/manywarnings.m4: Add GCC 4.4 warnings.
35104
35105 2009-05-28  Bruno Haible  <bruno@clisp.org>
35106
35107         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
35108         build-aux/ files.
35109
35110 2009-05-28  Simon Josefsson  <simon@josefsson.org>
35111
35112         * gnulib-tool (func_import): Transform license on build-aux/ files too.
35113
35114 2009-05-27  Simon Josefsson  <simon@josefsson.org>
35115
35116         * gnulib-tool (sed_transform_main_lib_file)
35117         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
35118         regexps.
35119
35120 2009-05-26  Simon Josefsson  <simon@josefsson.org>
35121
35122         * tests/test-strstr.c: Add another self-test.
35123         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
35124         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
35125
35126 2009-05-23  Bruno Haible  <bruno@clisp.org>
35127
35128         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
35129         change.
35130
35131 2009-05-21  Bruno Haible  <bruno@clisp.org>
35132
35133         Simplify use of mode_t varargs.
35134         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
35135         uses 'mode_t' or 'int'.
35136         * lib/openat.c (openat): Likewise.
35137         * lib/open-safer.c (open_safer): Likewise.
35138         * m4/mode_t.m4: New file.
35139         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
35140         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
35141         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
35142         * modules/open (Files): Add m4/mode_t.m4.
35143         * modules/openat (Files): Likewise.
35144         * modules/fcntl-safer (Files): Likewise.
35145         Suggested by Eric Blake.
35146
35147 2009-05-21  Pádraig Brady  <P@draigbrady.com>
35148
35149         * doc/glibc-functions/fallocate.texi: New file.
35150         * doc/gnulib.texi: Include it.
35151
35152 2009-05-21  Eric Blake  <ebb9@byu.net>
35153             Bruno Haible  <bruno@clisp.org>
35154
35155         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
35156         invocations.
35157         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
35158
35159 2009-05-21  Eric Blake  <ebb9@byu.net>
35160             Bruno Haible  <bruno@clisp.org>
35161
35162         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
35163         include_next. Fix of 2008-11-20 commit.
35164         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
35165         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
35166         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
35167         NEXT_MATH_H.
35168         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
35169         instead of NEXT_MATH_H.
35170
35171 2009-05-21  Bruno Haible  <bruno@clisp.org>
35172
35173         Avoid redefinition warnings for SIZE_MAX.
35174         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
35175         Reported by Simon Josefsson.
35176
35177 2009-05-21  Bruno Haible  <bruno@clisp.org>
35178
35179         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
35180         AC_CACHE_VAL.
35181
35182 2009-05-20  Bruno Haible  <bruno@clisp.org>
35183
35184         Make zeroptr.h work on mingw.
35185         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
35186         mprotect.
35187         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
35188         * modules/memchr2-tests (configure.ac): Likewise.
35189         * modules/memcmp-tests (configure.ac): Likewise.
35190         * modules/memmem-tests (configure.ac): Likewise.
35191         * modules/memrchr-tests (configure.ac): Likewise.
35192         Reported by Simon Josefsson.
35193
35194 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35195
35196         * tests/test-glob.c: Include string.h for strcmp prototype.
35197
35198 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35199
35200         * modules/getdelim (Depends-on): Add explicit stdint, although it
35201         was implicitly already pulled in via realloc-posix.
35202         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
35203
35204 2009-05-20  Simon Josefsson  <simon@josefsson.org>
35205
35206         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
35207         G. Christensen" <tgc@jupiterrise.com>.
35208         * m4/sys_socket_h.m4: Check for sa_family_t.
35209         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
35210         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
35211         * tests/test-sys_socket.c: Check that sa_family_t works.
35212
35213 2009-05-18  Eric Blake  <ebb9@byu.net>
35214
35215         maint.mk: allow gnulib_dir in VPATH build
35216         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
35217
35218 2009-05-15  Jim Meyering  <meyering@redhat.com>
35219
35220         maint.mk: Give gnulib_dir a default definition.
35221         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
35222         Thus, most packages no longer need to specify this variable in cfg.mk
35223
35224 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
35225
35226         rename.m4: fix typos that would make non-mingw cross-configure fail
35227         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
35228
35229 2009-05-13  Eric Blake  <ebb9@byu.net>
35230
35231         mmap-anon: avoid out-of-order autoconf expansion
35232         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
35233         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
35234         * modules/memchr-tests (Depends-on): Add extensions.
35235         * modules/memchr2-tests (Depends-on): Add extensions.
35236         * modules/memcmp-tests (Depends-on): Add extensions.
35237         * modules/memmem-tests (Depends-on): Add extensions.
35238         * modules/memrchr-tests (Depends-on): Add extensions.
35239
35240 2009-05-13  Bruno Haible  <bruno@clisp.org>
35241
35242         Make some tests ISO C 99 compliant.
35243         * tests/zerosize-ptr.h: New file.
35244         * tests/test-memchr.c: Include zerosize-ptr.h.
35245         (main): Use a zero-size object pointer instead of NULL.
35246         * tests/test-memchr2.c: Include zerosize-ptr.h.
35247         (main): Use a zero-size object pointer instead of NULL.
35248         * tests/test-memcmp.c: Include zerosize-ptr.h.
35249         (main): Use a zero-size object pointer instead of NULL.
35250         * tests/test-memmem.c: Include zerosize-ptr.h.
35251         (main): Use a zero-size object pointer instead of NULL.
35252         * tests/test-memrchr.c: Include zerosize-ptr.h.
35253         (main): Use a zero-size object pointer instead of NULL.
35254         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
35255         m4/mmap-anon.m4.
35256         (Depends-on): Add getpagesize.
35257         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35258         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
35259         m4/mmap-anon.m4.
35260         (Depends-on): Add getpagesize.
35261         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35262         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
35263         m4/mmap-anon.m4.
35264         (Depends-on): Add getpagesize.
35265         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35266         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
35267         m4/mmap-anon.m4.
35268         (Depends-on): Add getpagesize.
35269         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35270         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
35271         m4/mmap-anon.m4.
35272         (Depends-on): Add getpagesize.
35273         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
35274
35275 2009-05-12  Bruno Haible  <bruno@clisp.org>
35276
35277         Tests for module 'alignof'.
35278         * modules/alignof-tests: New file.
35279         * tests/test-alignof.c: New file.
35280
35281 2009-05-12  Bruno Haible  <bruno@clisp.org>
35282
35283         Fix alignof macro.
35284         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
35285         vendor compilers that are always correct.
35286
35287 2009-05-12  Bruno Haible  <bruno@clisp.org>
35288
35289         Make the MAP_ANONYMOUS detection work on HP-UX 11.
35290         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
35291         not whether its fully works.
35292
35293 2009-05-12  Bruno Haible  <bruno@clisp.org>
35294
35295         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
35296
35297 2009-05-12  Jim Meyering  <meyering@redhat.com>
35298
35299         * top/maint.mk: Adjust backslash alignment.
35300
35301 2009-05-11  Simon Josefsson  <simon@josefsson.org>
35302
35303         * top/maint.mk: Make $(srcdir)/build-aux configurable.
35304
35305 2009-05-11  Eric Blake  <ebb9@byu.net>
35306
35307         argp: avoid undefined behavior
35308         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
35309         macros.
35310
35311 2009-05-08  Simon Josefsson  <simon@josefsson.org>
35312
35313         * tests/test-vc-list-files-git.sh: Do git config of user.email and
35314         user.name to prevent git commit from complaining.
35315
35316 2009-05-10  Bruno Haible  <bruno@clisp.org>
35317
35318         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
35319         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
35320         it rewrites every file name only once.
35321         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
35322
35323 2009-05-08  Bruno Haible  <bruno@clisp.org>
35324
35325         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
35326         instead of 'max'.
35327
35328 2009-05-08  Simon Josefsson  <simon@josefsson.org>
35329
35330         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
35331         sockaddr_storage test.
35332
35333 2009-05-07  Simon Josefsson  <simon@josefsson.org>
35334
35335         * modules/sys_socket (Makefile.am): Substitute
35336         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
35337         * m4/sys_socket_h.m4: Check for sockaddr_storage.
35338         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
35339         * tests/test-sys_socket.c: Check sockaddr_storage.
35340
35341 2009-05-08  Bruno Haible  <bruno@clisp.org>
35342
35343         New module 'alignof'.
35344         * lib/alignof.h: New file.
35345         * modules/alignof: New file.
35346
35347 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35348             Bruno Haible  <bruno@clisp.org>
35349
35350         Fix test-file-has-acl on FreeBSD.
35351         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
35352         mask is implicitly added.
35353         * tests/test-file-has-acl.c: Include <signal.h>.
35354         (main): Terminate the test after 5 seconds.
35355         * modules/acl-tests (configure.ac): Check for alarm function.
35356
35357 2009-05-04  Bruno Haible  <bruno@clisp.org>
35358
35359         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
35360         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
35361         * modules/errno (configure.ac): Drop AC_REQUIRE.
35362         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
35363         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
35364
35365 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35366
35367         * modules/glob-tests: New module.
35368         * tests/test-glob.c: Add.
35369
35370 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35371
35372         * modules/fnmatch-tests: New module.
35373         * tests/test-fnmatch.c: Add.
35374
35375 2009-05-04  Eric Blake  <ebb9@byu.net>
35376
35377         maint: make the new no-submodule-changes rule VPATH-safe
35378         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
35379
35380 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35381             Bruno Haible  <bruno@clisp.org>
35382
35383         acl: Fix infinite loop on FreeBSD.
35384         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
35385         of return value from acl_get_entry.
35386         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
35387         Likewise.
35388
35389 2009-05-03  Bruno Haible  <bruno@clisp.org>
35390
35391         * lib/acl-internal.h (acl_entries): Clarify return value.
35392         * lib/acl_entries.c (acl_entries): Likewise.
35393
35394 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35395
35396         Bug fix in acl module.
35397         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
35398
35399 2009-05-03  Bruno Haible  <bruno@clisp.org>
35400
35401         Create gperf-generated file in the source dir, not in the build dir.
35402         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
35403         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
35404         * modules/unicase/locale-language (unicase/locale-languages.h):
35405         Likewise.
35406         * modules/unicase/special-casing (unicase/special-casing-table.h):
35407         Likewise.
35408         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
35409         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
35410         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
35411         Reported by Ralf Wildenhues.
35412
35413 2009-05-03  Bruno Haible  <bruno@clisp.org>
35414
35415         * modules/fnmatch (Description, configure.ac): Taken from
35416         fnmatch-posix.
35417         * modules/fnmatch-posix: Turn into a symbolic reference to the
35418         'fnmatch' module, and deprecate.
35419         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
35420
35421 2009-05-03  Bruno Haible  <bruno@clisp.org>
35422
35423         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
35424         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
35425         Reported by Ralf Wildenhues.
35426
35427 2009-05-04  Simon Josefsson  <simon@josefsson.org>
35428
35429         * m4/fnmatch.m4: Fix fnmatch re-define.
35430
35431 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
35432
35433         priv-set: new module and tests; adapt write-any-file
35434         * lib/priv-set.c: New file.
35435         * lib/priv-set.h: New file.
35436         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
35437         * lib/write-any-file.c: Simplify by using priv-set module.
35438         * m4/priv-set.m4: New file.
35439         * modules/priv-set: New file.
35440         * modules/unlinkdir: Add dependency on priv-set module.
35441         * modules/write-any-file: Likewise.
35442
35443         Tests for module 'priv-set'.
35444         * modules/priv-set-tests: New file.
35445         * tests/test-priv-set.c: New file.
35446
35447 2009-05-03  Jim Meyering  <meyering@redhat.com>
35448             Bruno Haible  <bruno@clisp.org>
35449
35450         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
35451         use the converted UTF-8 variant of the name instead.
35452
35453 2009-05-03  Jim Meyering  <meyering@redhat.com>
35454
35455         tests: tighten some getdate tests
35456         * tests/test-getdate.c (main): Tighten tests: require equality,
35457         not just greater than.  Set TZ envvar to UTC0.
35458
35459 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
35460
35461         getdate: correctly interpret "next monday" when run on a Monday
35462         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
35463         that e.g., "next tues" (when run on a tuesday) results in a date
35464         that is one week in the future, and not today's date.
35465         I.e., add a week when the wday is the same as the current one.
35466         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
35467         and earlier by Martin Bernreuther and Jan Minář.
35468         * tests/test-getdate.c (main): Check that "next DAY" is always in
35469         the future and that "last DAY" is always in the past.
35470
35471 2009-05-02  Jim Meyering  <meyering@redhat.com>
35472
35473         build: ensure that a release build fails when a submodule is unclean
35474         * top/maint.mk (no-submodule-changes): New rule.
35475         (alpha beta major): Depend on it.
35476
35477 2009-05-02  Bruno Haible  <bruno@clisp.org>
35478
35479         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
35480         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
35481         shell variable gl_fnmatch_required to detect which variant is
35482         requested.
35483         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
35484         gl_FUNC_FNMATCH_POSIX.
35485         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
35486         exclude fnmatch-posix.
35487
35488 2009-05-02  Bruno Haible  <bruno@clisp.org>
35489
35490         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
35491         * modules/mbsrtowcs (License): Change to LGPLv2+.
35492         * modules/strnlen1 (License): Likewise.
35493         Reported by Simon Josefsson.
35494
35495 2009-05-02  Bruno Haible  <bruno@clisp.org>
35496
35497         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
35498         "cross".
35499         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
35500         gnulib-tool was called with option --source-base=lib.
35501
35502 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35503
35504         Use automake *-local hooks without commands, for extensibility.
35505         * modules/localcharset (Makefile.am): Rename install-exec-local
35506         rule to install-exec-localcharset, and make it a prerequisite of
35507         install-exec-local.  Likewise, rename the uninstall-local rule to
35508         uninstall-localcharset, and make it a prerequisite of the former.
35509
35510 2009-05-01  Bruno Haible  <bruno@clisp.org>
35511
35512         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
35513         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
35514         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
35515         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
35516         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
35517         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
35518         m4/locale-zh.m4, m4/codeset.m4.
35519
35520         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
35521         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
35522         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
35523         m4/locale-zh.m4.
35524
35525         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
35526         REPLACE_WCRTOMB if mbstate_t must be replaced.
35527         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
35528         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
35529
35530 2009-05-01  Bruno Haible  <bruno@clisp.org>
35531
35532         Avoid compiler warnings when redefining macros defined by <libintl.h>.
35533         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
35534         dngettext, dcngettext, textdomain, bindtextdomain,
35535         bind_textdomain_codeset): Undefine before redefining.
35536
35537 2009-04-30  Bruno Haible  <bruno@clisp.org>
35538
35539         Fix bug introduced on 2009-04-25.
35540         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
35541         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
35542         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
35543         is defined.
35544         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
35545         is defined.
35546         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
35547         is defined.
35548         Reported by Elbert_Pol <elbert.pol@gmail.com>.
35549
35550 2009-04-28  Bruno Haible  <bruno@clisp.org>
35551
35552         Comment tweaks.
35553         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
35554         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
35555         * lib/unicase.h (u*_casexfrm): Likewise.
35556         Reported by Paolo Bonzini.
35557
35558 2009-04-28  Bruno Haible  <bruno@clisp.org>
35559
35560         Fix a compilation error.
35561         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
35562         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
35563         Reported by Jim Meyering.
35564
35565 2009-04-27  Bruno Haible  <bruno@clisp.org>
35566
35567         New module 'libunistring'.
35568         * modules/libunistring: New file.
35569         * m4/libunistring.m4: New file.
35570         * MODULES.html.sh (Unicode string functions): Add it.
35571
35572 2009-04-27  Eric Blake  <ebb9@byu.net>
35573
35574         maint.mk: allow package-specific header to provide <config.h>
35575         * top/maint.mk (sc_require_config_h): New variable.
35576         (sc_require_config_h, sc_require_config_h_first): Use it.
35577
35578 2009-04-27  Simon Josefsson  <simon@josefsson.org>
35579
35580         * top/maint.mk (sc_avoid_if_before_free): Except
35581         useless-if-before-free script.
35582
35583 2009-04-27  Eric Blake  <ebb9@byu.net>
35584
35585         maintainer-makefile: depend on all required helper scripts
35586         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
35587         useless-if-before-free.
35588         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
35589         version, rather than assuming gnulib checkout is available.
35590         Reported by Simen Josefsson.
35591
35592 2009-04-26  Bruno Haible  <bruno@clisp.org>
35593
35594         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
35595         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
35596         "../" or "..".
35597
35598 2009-04-26  Bruno Haible  <bruno@clisp.org>
35599
35600         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
35601         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
35602         AC_LIB_HAVE_LINKFLAGS.
35603
35604 2009-04-26  Bruno Haible  <bruno@clisp.org>
35605
35606         Simplify calling convention of u*_conv_from_encoding.
35607         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
35608         u32_conv_from_encoding): Expect a resultbuf argument and return the
35609         result directly as a pointer.
35610         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
35611         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
35612         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
35613         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
35614         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
35615         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
35616         Update.
35617         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
35618         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
35619         * lib/vasnprintf.c (VASNPRINTF): Update.
35620         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
35621         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
35622         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
35623         * NEWS: Mention the change.
35624
35625 2009-04-26  Bruno Haible  <bruno@clisp.org>
35626
35627         Simplify calling convention of u*_conv_to_encoding.
35628         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
35629         u32_conv_to_encoding): Expect a resultbuf argument and return the
35630         result directly as a pointer.
35631         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
35632         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
35633         freeing scaled_offsets if mem_iconveha failed.
35634         * lib/unicase/u-casexfrm.h (FUNC): Update.
35635         * lib/uninorm/u-normxfrm.h (FUNC): Update.
35636         * lib/vasnprintf.c (VASNPRINTF): Update.
35637         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
35638         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
35639         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
35640         * NEWS: Mention the change.
35641
35642 2009-04-26  Bruno Haible  <bruno@clisp.org>
35643
35644         Avoid test failures on AIX and OSF/1.
35645         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
35646         malloc(0).
35647         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
35648         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
35649         Likewise.
35650         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
35651         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
35652         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
35653         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
35654         * doc/posix-functions/malloc.texi: Document the portability problem
35655         related to malloc(0).
35656
35657 2009-04-26  Bruno Haible  <bruno@clisp.org>
35658
35659         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
35660         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
35661         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
35662
35663 2009-04-25  Bruno Haible  <bruno@clisp.org>
35664
35665         Avoid link error when creating a namespace clean library.
35666         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
35667         as macro with arguments if already defined as an alias.
35668         * lib/signbitf.c (gl_signbitf): Don't undefine.
35669         * lib/signbitd.c (gl_signbitd): Don't undefine.
35670         * lib/signbitl.c (gl_signbitl): Don't undefine.
35671
35672 2009-04-25  Jim Meyering  <meyering@redhat.com>
35673
35674         vc-list-files: fix another quoting bug
35675         * build-aux/vc-list-files: Avoid sed backslash expansion
35676         of pathological directory names.
35677
35678 2009-04-25  Eric Blake  <ebb9@byu.net>
35679
35680         vc-list-files: fix shell quoting error
35681         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
35682         timestamp.
35683
35684 2009-04-25  Jim Meyering  <meyering@redhat.com>
35685
35686         vc-list-files: restore lost functionality with subdir argument
35687         * build-aux/vc-list-files: When given a non-"." sub-directory
35688         argument, substitute the $dir/ prefix back onto each resulting name.
35689         Otherwise, coreutils' root_tests check would fail.
35690
35691 2009-04-24  Eric Blake  <ebb9@byu.net>
35692
35693         vc-list-files: ignore git symlinks
35694         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
35695         than ls-files, to ignore git symlinks.
35696
35697         maint.mk: import improvements from m4
35698         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
35699         (move_if_change): Delete unused macro.
35700         (news-date-check, vc-diff-check): Support VPATH builds.
35701         (announcement): Likewise.  Split --bootstrap-tools list...
35702         (boostrap-tools): ...into separate list, which can be overridden
35703         in cfg.mk.
35704         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
35705         requiring dependency on useless-if-before-free module.
35706         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
35707         Support VPATH builds.
35708
35709 2009-04-24  Jim Meyering  <meyering@redhat.com>
35710
35711         maint.mk: remove coreutils-specific rules and variables
35712         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
35713         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
35714         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
35715
35716         maint.mk: remove obsolete rule
35717         * top/maint.mk (rel-check): Remove rule.
35718         (WGET, WGETFLAGS): Remove now-unused variables.
35719
35720 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35721
35722         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
35723         consistency.
35724
35725         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
35726         '$(PATH_SEPARATOR)' instead of ':'.
35727
35728 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35729
35730         * lib/getopt1.c (main): Use 'const' for static array.
35731
35732 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35733
35734         * top/maint.mk: Sync with coreutils.
35735         * NEWS: Explain incompatibilities.
35736
35737 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35738             Bruno Haible  <bruno@clisp.org>
35739
35740         Fix cross-compilation results.
35741         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
35742         statement, as third argument of AC_TRY_RUN.
35743         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
35744         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
35745         Likewise.
35746         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
35747         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
35748         Likewise.
35749         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
35750         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
35751         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
35752
35753 2009-04-20  Bruno Haible  <bruno@clisp.org>
35754
35755         Avoid test failure on mingw.
35756         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
35757
35758 2009-04-20  Bruno Haible  <bruno@clisp.org>
35759
35760         Avoid compilation error on mingw.
35761         * modules/localename-tests (Depends-on): Add locale.
35762
35763 2009-04-19  Bruno Haible  <bruno@clisp.org>
35764
35765         Support for building a shared library on Windows platforms.
35766         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
35767         (main): Test the presence of UNINORM_NFC here.
35768         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
35769         (main): Test the presence of UNINORM_NFD here.
35770         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
35771         (main): Test the presence of UNINORM_NFKC here.
35772         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
35773         (main): Test the presence of UNINORM_NFKD here.
35774
35775 2009-04-19  Bruno Haible  <bruno@clisp.org>
35776
35777         Avoid a compiler warning.
35778         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
35779         Change type of variable 'sequence'.
35780
35781 2009-04-19  Bruno Haible  <bruno@clisp.org>
35782
35783         * modules/configmake (Makefile.am): When the contents of configmake.h
35784         does not change, arrange to preserve its modification time.
35785
35786 2009-04-17  Simon Josefsson  <simon@josefsson.org>
35787
35788         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
35789         gettext domain.
35790
35791 2009-04-16  Jim Meyering  <meyering@redhat.com>
35792
35793         useless-if-before-free: improve conversion code
35794         * build-aux/useless-if-before-free: Adjust code-in-comment to match
35795         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
35796
35797 2009-04-14  Bruno Haible  <bruno@clisp.org>
35798
35799         * modules/fcntl (Depends-on): Add extensions.
35800         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
35801
35802 2009-04-12  Ben Pfaff  <blp@gnu.org>
35803
35804         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
35805         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
35806
35807 2009-03-20  Ben Pfaff  <blp@gnu.org>
35808
35809         Make rename replace existing destinations on Windows.
35810         * m4/rename.m4: Add test for Mingw.
35811         * lib/rename.c: Add rename replacement that uses MoveFileEx with
35812         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
35813         * doc/posix-functions/rename.texi: Document.
35814
35815 2009-04-10  Bruno Haible  <bruno@clisp.org>
35816
35817         New include file "iconveh.h".
35818         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
35819         * lib/striconveh.h: Include it.
35820         (enum iconv_ilseq_handler): Remove definition.
35821         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
35822         striconveh.h.
35823         * lib/striconveha.c: Include striconveh.h.
35824         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
35825         * modules/striconveh (Files): Add lib/iconveh.h.
35826         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
35827         lib/striconveh.h.
35828
35829 2009-04-10  Bruno Haible  <bruno@clisp.org>
35830
35831         * lib/uniconv.h: Update comment.
35832
35833 2009-04-10  Bruno Haible  <bruno@clisp.org>
35834
35835         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
35836         always.
35837         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
35838         * lib/unistr/u16-mbtouc-aux.c: Likewise.
35839         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
35840         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
35841         "unistring-notinline.h", so that the function gets defined always.
35842         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
35843         * lib/unistr/u8-uctomb.c: Likewise.
35844         * lib/unistr/u16-mbtouc.c: Likewise.
35845         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
35846         * lib/unistr/u16-uctomb.c: Likewise.
35847         * lib/unistr/u32-mbtouc.c: Likewise.
35848         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
35849         * lib/unistr/u32-uctomb.c: Likewise.
35850
35851 2009-04-10  Bruno Haible  <bruno@clisp.org>
35852
35853         Mark 'utime' obsolete.
35854         * modules/utime (Status, Notice): New sections.
35855         Suggested by Jim Meyering.
35856
35857         Fix cross-compile guess for utime test.
35858         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
35859         autoconf.
35860         * doc/posix-functions/utime.texi: Give more precisions.
35861         Reported by Jan <ipif@ymail.com>.
35862
35863 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
35864
35865         filevercmp: correct today's change
35866         * lib/filevercmp.c: Also handle coreutils' test inputs.
35867         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
35868
35869         Fix regression in 'filevercmp' module. Thanks Sven Joachim
35870         for reporting it.
35871         * lib/filevercmp.c: Special handle for "", "." and "..".
35872         * tests/test-filevercmp.c: Enlarge the set suite.
35873
35874 2009-04-07  Jim Meyering  <meyering@redhat.com>
35875
35876         useless-if-before-free: show how to remove braced useless free, too
35877         * build-aux/useless-if-before-free: still only in a comment, though.
35878
35879 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
35880
35881         maint.mk: import changes to syntax-check macros from coreutils
35882         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
35883         Use them in the relevant macros.
35884
35885 2009-04-06  Bruno Haible  <bruno@clisp.org>
35886
35887         Fix unportable use of bit-fields.
35888         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
35889         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
35890         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
35891
35892 2009-04-06  Bruno Haible  <bruno@clisp.org>
35893
35894         Avoid test failures on AIX and OSF/1.
35895         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
35896         that malloc(0) = NULL.
35897         * tests/unicase/test-u8-tolower.c (check): Likewise.
35898         * tests/unicase/test-u8-totitle.c (check): Likewise.
35899         * tests/unicase/test-u8-toupper.c (check): Likewise.
35900         * tests/unicase/test-u16-casefold.c (check): Likewise.
35901         * tests/unicase/test-u16-tolower.c (check): Likewise.
35902         * tests/unicase/test-u16-totitle.c (check): Likewise.
35903         * tests/unicase/test-u16-toupper.c (check): Likewise.
35904         * tests/unicase/test-u32-casefold.c (check): Likewise.
35905         * tests/unicase/test-u32-tolower.c (check): Likewise.
35906         * tests/unicase/test-u32-totitle.c (check): Likewise.
35907         * tests/unicase/test-u32-toupper.c (check): Likewise.
35908         * tests/uninorm/test-u8-nfc.c (check): Likewise.
35909         * tests/uninorm/test-u8-nfd.c (check): Likewise.
35910         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
35911         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
35912         * tests/uninorm/test-u16-nfc.c (check): Likewise.
35913         * tests/uninorm/test-u16-nfd.c (check): Likewise.
35914         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
35915         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
35916         * tests/uninorm/test-u32-nfc.c (check): Likewise.
35917         * tests/uninorm/test-u32-nfd.c (check): Likewise.
35918         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
35919         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
35920
35921 2009-04-05  Bruno Haible  <bruno@clisp.org>
35922
35923         Work around an autoconf limitation.
35924         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
35925         comment line if it would be longer than 3 KB.
35926
35927 2009-04-05  Bruno Haible  <bruno@clisp.org>
35928
35929         Avoid test failure with libiconv-1.13.
35930         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
35931         of the expected test results.
35932
35933 2009-04-05  Bruno Haible  <bruno@clisp.org>
35934
35935         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
35936         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
35937         that it should be installed.
35938
35939 2009-04-05  Bruno Haible  <bruno@clisp.org>
35940
35941         * gnulib-tool: New option --copy-file.
35942         (func_usage): Document it.
35943         (func_dest_tmpfilename): Moved out of func_import.
35944         (func_add_file, func_update_file): New functions, extracted from
35945         func_import.
35946         (func_import): Update.
35947
35948 2009-04-05  Karl Berry  <karl@gnu.org>
35949
35950         * README: prominently mention gnulib-tool.
35951         Rearrange sections so getting the code is near the top.
35952
35953 2009-04-05  Bruno Haible  <bruno@clisp.org>
35954
35955         * lib/unicase.h: Mention u*_cmp2.
35956         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
35957         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
35958         * lib/unicase/ulc-casecmp.c: Likewise.
35959         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
35960         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
35961         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
35962         unistr/u8-cmp.
35963         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
35964         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
35965         unistr/u16-cmp.
35966         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
35967         unistr/u32-cmp.
35968
35969         * lib/uninorm.h: Mention u*_cmp2.
35970         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
35971         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
35972         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
35973         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
35974         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
35975         unistr/u8-cmp.
35976         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
35977         unistr/u16-cmp.
35978         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
35979         unistr/u32-cmp.
35980
35981         New module 'unistr/u32-cmp2'.
35982         * lib/unistr/u32-cmp2.c: New file.
35983         * modules/unistr/u32-cmp2: New file.
35984
35985         New module 'unistr/u16-cmp2'.
35986         * lib/unistr/u16-cmp2.c: New file.
35987         * modules/unistr/u16-cmp2: New file.
35988
35989         New module 'unistr/u8-cmp2'.
35990         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
35991         * lib/unistr/u8-cmp2.c: New file.
35992         * lib/unistr/u-cmp2.h: New file.
35993         * modules/unistr/u8-cmp2: New file.
35994
35995 2009-04-05  Bruno Haible  <bruno@clisp.org>
35996
35997         * lib/unictype.h (uc_property_is_valid): New macro.
35998         * tests/unictype/test-pr_byname.c (main): Use it.
35999
36000         * lib/unistr.h: Doc fixes.
36001         * lib/uniconv.h: Doc fixes.
36002         * lib/unictype.h: Doc fixes.
36003
36004 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
36005
36006         Port coreutils 7.2 to Solaris 8.
36007
36008         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
36009         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
36010         for Solaris 8.  This is a bit of a hack, as it means it's the
36011         caller's responsibility to add -lnsl if needed, but most likely it
36012         won't be needed since only getaddrinfo uses this and getaddrinfo
36013         isn't needed on Solaris 8.
36014
36015         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
36016         problem to Solaris 8 encountered with coreutils 7.2, which
36017         resulted in a message "fnmatch.c:292: warning: passing argument 4
36018         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
36019         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
36020
36021 2009-04-03  Simon Josefsson  <simon@josefsson.org>
36022
36023         * m4/ld-version-script.m4: Add FIXME comment.
36024
36025 2009-04-02  Simon Josefsson  <simon@josefsson.org>
36026
36027         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
36028         SOVERSION variable.
36029
36030 2009-04-02  Bruno Haible  <bruno@clisp.org>
36031
36032         * Makefile (info, html, dvi, pdf): Combine the rules.
36033         Suggested by Jim Meyering.
36034
36035 2009-04-01  Bruno Haible  <bruno@clisp.org>
36036
36037         * Makefile (info, html, dvi, pdf): New targets.
36038         Reported by Reuben Thomas <rrt@sc3d.org>.
36039
36040 2009-04-01  Bruno Haible  <bruno@clisp.org>
36041
36042         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
36043         can be put into PATH.
36044         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
36045
36046 2009-04-01  Bruno Haible  <bruno@clisp.org>
36047
36048         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
36049
36050 2009-04-01  Bruno Haible  <bruno@clisp.org>
36051
36052         Rename module 'visibility'.
36053         * modules/lib-symbol-visibility: Renamed from modules/visibility.
36054         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
36055         * doc/gnulib.texi: Update.
36056         * MODULES.html.sh (Misc): Update.
36057         * NEWS: Mention the change.
36058
36059 2009-04-01  Simon Josefsson  <simon@josefsson.org>
36060
36061         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
36062         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
36063         Eric Blake <ebb9@byu.net> for review.
36064         * MODULES.html.sh: Add lib-msvc-compat.
36065         * doc/gnulib.texi: Link to new section.
36066         * m4/ld-output-def.m4: New file.
36067         * doc/ld-output-def.texi: New file.
36068
36069 2009-04-01  Simon Josefsson  <simon@josefsson.org>
36070
36071         Rename ld-version-script to lib-symbol-versions.  Suggested by
36072         Bruno Haible <bruno@clisp.org>.
36073         * modules/ld-version-script: Renamed to lib-symbol-versions.
36074         * doc/ld-version-script.texi: Fix module name.
36075         * MODULES.html.sh: Add lib-symbol-versions.
36076
36077 2009-03-31  Simon Josefsson  <simon@josefsson.org>
36078
36079         * modules/u64-tests: New file.
36080         * tests/test-u64.c: New file.
36081
36082 2009-03-04  Simon Josefsson  <simon@josefsson.org>
36083
36084         * MODULES.html.sh: Mention u64.
36085         * modules/u64: New module.
36086         * modules/crypto/sha512: Depend on u64 module instead of providing
36087         u64.h.
36088
36089 2009-03-27  Eric Blake  <ebb9@byu.net>
36090
36091         test-strerror: make debugging EAI_SYSTEM easier
36092         * modules/getaddrinfo-tests (Depends-on): Add strerror.
36093         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
36094         failure was EAI_SYSTEM.
36095
36096 2009-03-25  Bruno Haible  <bruno@clisp.org>
36097
36098         Fix a problem with --enable-relocatable on Solaris 7.
36099         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
36100         since 2008-02-24.
36101
36102 2009-03-25  Eric Blake  <ebb9@byu.net>
36103
36104         test-sockets: avoid gcc warning
36105         * tests/test-sockets.c (main): Silence compiler warning.
36106
36107 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
36108
36109         New modules nproc, pthread, contributed by Glen Lenker.
36110
36111         * MODULES.html.sh: Add pthread, nproc.
36112         * lib/nproc.c: New file.
36113         * lib/nproc.h: New file.
36114         * lib/pthread.in.h: New file.
36115         * m4/pthread.m4: New file.
36116         * modules/nproc: New file.
36117         * modules/pthread: New file.
36118
36119 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36120
36121         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
36122         New variable.
36123
36124 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
36125
36126         filevercmp: handle simple~ and numbered.~3~ backup suffixes
36127         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
36128         * tests/test-filevercmp.c: Add tests for backup suffixes.
36129
36130 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36131
36132         * modules/stdlib (Depends-on): Add stdint, needed when defining
36133         struct random_data on, for example, HP-UX 10.20.  Reported by
36134         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
36135
36136 2009-03-24  Simon Josefsson  <simon@josefsson.org>
36137
36138         * lib/readline.c (readline): Call fflush on stdout after printing
36139         prompt.
36140
36141 2009-03-20  Bruno Haible  <bruno@clisp.org>
36142
36143         Remove dependency from 'close' module to -lws2_32 on native Windows.
36144         * lib/close-hook.h: New file.
36145         * lib/close-hook.c: New file.
36146         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
36147         w32sock.h.
36148         (_gl_close_fd_maybe_socket): Remove function.
36149         (rpl_close): Invoke execute_all_close_hooks instead of
36150         _gl_close_fd_maybe_socket.
36151         * lib/sockets.c: Include close-hook.h, w32sock.h.
36152         (close_fd_maybe_socket): New function, essentially from lib/close.c.
36153         (close_sockets_hook): New variable.
36154         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
36155         (gl_sockets_cleanup): Unregister it.
36156         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
36157         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
36158         * modules/close-hook: New file.
36159         * modules/close (Files): Remove lib/w32sock.h.
36160         (Depends-on): Add close-hook.
36161         (Link): Remove section.
36162         * modules/sockets (Files): Add lib/w32sock.h.
36163         (Depends-on): Add close-hook.
36164         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
36165         invocation.
36166         * NEWS: Mention that LIB_CLOSE is gone.
36167
36168 2009-03-23  Eric Blake  <ebb9@byu.net>
36169
36170         signal-tests: test previous patch
36171         * tests/test-signal.c: New file.
36172         * modules/signal-tests: Likewise.
36173
36174         signal.h: always support 'volatile sig_atomic_t'
36175         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
36176         (gl_SIGNAL_H_DEFAULTS): Add a default.
36177         * modules/signal (Makefile.am): Substitute if needed.
36178         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
36179         users can blindly add volatile.
36180         * doc/posix-headers/signal.texi (signal.h): Document it.
36181         Reported by Matthew Woehlke.
36182
36183 2009-03-23  Jim Meyering  <meyering@redhat.com>
36184
36185         pathmax: PATH_MAX: use pathconf only when available
36186         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
36187         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
36188         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
36189         This avoids a link failure in a PSP cross-compilation environment
36190         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
36191
36192         * lib/vasnprintf.c (divide): Fix typo in comment.
36193
36194 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36195
36196         * gnulib-tool (func_filter_filelist): Fix comment.
36197
36198 2009-03-20  Bruno Haible  <bruno@clisp.org>
36199
36200         Make sockets.h self-contained.
36201         * lib/sockets.c: Include sockets.h first.
36202         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
36203
36204 2009-03-19  Eric Blake  <ebb9@byu.net>
36205
36206         doc: mention more functions added in cygwin 1.7.0
36207         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
36208         addition.
36209         * doc/posix-functions/log2f.texi: Likewise.
36210
36211 2009-03-19  Jim Meyering  <meyering@redhat.com>
36212
36213         fsusage: avoid syntax error due to statement-before-declaration
36214         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
36215         after all declarations.  Reported by Matthew Woehlke in
36216         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
36217
36218 2009-03-18  Eric Blake  <ebb9@byu.net>
36219
36220         build-aux/compile: sync from automake
36221         * build-aux/compile: New file, from automake.
36222         * config/srclist.txt: Mention build-aux/compile.
36223
36224 2009-03-17  Bruno Haible  <bruno@clisp.org>
36225
36226         * lib/git-merge-changelog.c: Fix typo in comment.
36227         Reported by Reuben Thomas <rrt@sc3d.org>.
36228
36229 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
36230
36231         * m4/regex.m4: update and improve help for
36232         --without-included-regex.
36233
36234 2009-03-17  Simon Josefsson  <simon@josefsson.org>
36235
36236         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
36237         failure on missing include files.
36238
36239 2009-03-17  Eric Blake  <ebb9@byu.net>
36240
36241         doc: mention more functions added in cygwin 1.7.0
36242         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
36243         addition.
36244         * doc/posix-functions/fwscanf.texi: Likewise.
36245         * doc/posix-functions/swprintf.texi: Likewise.
36246         * doc/posix-functions/swscanf.texi: Likewise.
36247         * doc/posix-functions/vfwprintf.texi: Likewise.
36248         * doc/posix-functions/vfwscanf.texi: Likewise.
36249         * doc/posix-functions/vswprintf.texi: Likewise.
36250         * doc/posix-functions/vswscanf.texi: Likewise.
36251         * doc/posix-functions/vwprintf.texi: Likewise.
36252         * doc/posix-functions/vwscanf.texi: Likewise.
36253         * doc/posix-functions/wcscasecmp.texi: Likewise.
36254         * doc/posix-functions/wcsdup.texi: Likewise.
36255         * doc/posix-functions/wcsftime.texi: Likewise.
36256         * doc/posix-functions/wcsncasecmp.texi: Likewise.
36257         * doc/posix-functions/wprintf.texi: Likewise.
36258         * doc/posix-functions/wscanf.texi: Likewise.
36259         * doc/glibc-functions/gethostbyname2.texi: Likewise.
36260
36261 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36262
36263         maint.mk: really add $(AM_MAKEFLAGS)
36264         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
36265         was inadvertently omitted in the last commit.
36266         Spotted by Bruno Haible.
36267
36268         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
36269         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
36270         $(AM_MAKEFLAGS)' rather than plain `make'.
36271
36272         gnulib-tool: execute $MAKE not make
36273         * gnulib-tool: Default $MAKE to 'make'.
36274         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
36275         than make.  Initialize $MAKE in the do-autobuild script.
36276
36277         gnulib-tool: use $MAKE not make in generated files
36278         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
36279         make, in generated files.  Initialize $MAKE in the do-autobuild
36280         script.
36281
36282         * top/GNUmakefile (_have-git-version-gen): Fix typo.
36283
36284         GNUmakefile: disable parallelism only for multiple, recursive targets
36285         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
36286         additions in the Makefile.
36287         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
36288         by Automake.
36289         (.NOTPARALLEL): Only disable parallel builds if multiple targets
36290         are listed on the command line and at least one of them is
36291         listed in $(ALL_RECURSIVE_TARGETS).
36292
36293 2009-03-14  Bruno Haible  <bruno@clisp.org>
36294
36295         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
36296         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
36297         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
36298         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
36299         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
36300         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
36301         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
36302         unistr/u8-uctomb.
36303         * modules/unistr/u8-strchr (Depends-on): Likewise.
36304         * modules/unistr/u8-strrchr (Depends-on): Likewise.
36305         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
36306         unistr/u16-uctomb.
36307         * modules/unistr/u16-strchr (Depends-on): Likewise.
36308         * modules/unistr/u16-strrchr (Depends-on): Likewise.
36309
36310 2009-03-12  Bruno Haible  <bruno@clisp.org>
36311
36312         Work around select() bug on Interix 3.5.
36313         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
36314         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
36315         * m4/select.m4: New file.
36316         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
36317         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
36318         * modules/select (Files): Add m4/select.m4.
36319         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
36320         * modules/nanosleep (Depends-on): Add select.
36321         * modules/poll (Depends-on): Likewise.
36322         * doc/posix-functions/select.texi: Mention the Interix bug.
36323         Reported by Markus Duft <mduft@gentoo.org>.
36324
36325         * lib/select.c: Renamed from lib/winsock-select.c.
36326         * modules/select (Files): Add lib/select.c, remove
36327         lib/winsock-select.c.
36328         (configure.ac): Update.
36329
36330 2009-03-12  Jim Meyering  <meyering@redhat.com>
36331
36332         avoid gcc warnings about unused macro definitions
36333         * lib/readtokens.c (STREQ): Remove unused definition.
36334         * lib/xmalloc.c (SIZE_MAX): Likewise.
36335         * lib/openat-die.c (N_): Likewise.
36336         * lib/mountlist.c (SIZE_MAX): Remove definition.
36337         Instead, include <stdint.h>.
36338         * lib/readutmp.c: Likewise.
36339         * modules/readutmp (Depends-on): Add stdint.
36340         * modules/mountlist (Depends-on): Add stdint.
36341         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
36342
36343 2009-03-10  Bruno Haible  <bruno@clisp.org>
36344
36345         Tests for module 'mbmemcasecoll'.
36346         * modules/mbmemcasecoll-tests: New file.
36347         * tests/test-mbmemcasecoll1.sh: New file.
36348         * tests/test-mbmemcasecoll2.sh: New file.
36349         * tests/test-mbmemcasecoll3.sh: New file.
36350         * tests/test-mbmemcasecoll.c: New file.
36351
36352         New module 'mbmemcasecoll'.
36353         * lib/mbmemcasecoll.h: New file.
36354         * lib/mbmemcasecoll.c: New file.
36355         * modules/mbmemcasecoll: New file.
36356
36357         * tests/test-mbmemcasecmp.h: New file, extracted from
36358         tests/test-mbmemcasecmp.c.
36359         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
36360         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
36361         (main): Update.
36362         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
36363
36364 2009-03-09  Bruno Haible  <bruno@clisp.org>
36365
36366         Tests for module 'mbmemcasecmp'.
36367         * modules/mbmemcasecmp-tests: New file.
36368         * tests/test-mbmemcasecmp1.sh: New file.
36369         * tests/test-mbmemcasecmp2.sh: New file.
36370         * tests/test-mbmemcasecmp3.sh: New file.
36371         * tests/test-mbmemcasecmp.c: New file.
36372
36373         New module 'mbmemcasecmp'.
36374         * lib/mbmemcasecmp.h: New file.
36375         * lib/mbmemcasecmp.c: New file.
36376         * modules/mbmemcasecmp: New file.
36377
36378 2009-03-09  Bruno Haible  <bruno@clisp.org>
36379
36380         Tests for module 'unicase/ulc-casecoll'.
36381         * modules/unicase/ulc-casecoll-tests: New file.
36382         * tests/unicase/test-ulc-casecoll1.sh: New file.
36383         * tests/unicase/test-ulc-casecoll2.sh: New file.
36384         * tests/unicase/test-ulc-casecoll.c: New file.
36385
36386         New module 'unicase/ulc-casecoll'.
36387         * lib/unicase.h (ulc_casecoll): New declaration.
36388         * lib/unicase/ulc-casecoll.c: New file.
36389         * modules/unicase/ulc-casecoll: New file.
36390
36391         New module 'unicase/ulc-casexfrm'.
36392         * lib/unicase.h (ulc_casexfrm): New declaration.
36393         * lib/unicase/ulc-casexfrm.c: New file.
36394         * modules/unicase/ulc-casexfrm: New file.
36395
36396 2009-03-09  Bruno Haible  <bruno@clisp.org>
36397
36398         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
36399         invocations.
36400
36401         * m4/mbscasecmp.m4: Remove file.
36402         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
36403         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
36404
36405         * m4/mbscasestr.m4: Remove file.
36406         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
36407         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
36408
36409         * m4/mbschr.m4: Remove file.
36410         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
36411         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
36412
36413         * m4/mbscspn.m4: Remove file.
36414         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
36415         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
36416
36417         * m4/mbslen.m4: Remove file.
36418         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
36419         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
36420
36421         * m4/mbsncasecmp.m4: Remove file.
36422         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
36423         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
36424
36425         * m4/mbsnlen.m4: Remove file.
36426         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
36427         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
36428
36429         * m4/mbspbrk.m4: Remove file.
36430         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
36431         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
36432
36433         * m4/mbspcasecmp.m4: Remove file.
36434         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
36435         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
36436
36437         * m4/mbsrchr.m4: Remove file.
36438         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
36439         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
36440
36441         * m4/mbssep.m4: Remove file.
36442         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
36443         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
36444
36445         * m4/mbsspn.m4: Remove file.
36446         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
36447         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
36448
36449         * m4/mbsstr.m4: Remove file.
36450         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
36451         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
36452
36453         * m4/mbstok_r.m4: Remove file.
36454         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
36455         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
36456
36457         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
36458
36459         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
36460         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
36461
36462         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
36463
36464 2009-03-08  Bruno Haible  <bruno@clisp.org>
36465
36466         Tests for module 'unicase/ulc-casecmp'.
36467         * modules/unicase/ulc-casecmp-tests: New file.
36468         * tests/unicase/test-ulc-casecmp1.sh: New file.
36469         * tests/unicase/test-ulc-casecmp2.sh: New file.
36470         * tests/unicase/test-ulc-casecmp.c: New file.
36471
36472         New module 'unicase/ulc-casecmp'.
36473         * lib/unicase.h (ulc_casecmp): New declaration.
36474         * lib/unicase/ulc-casecmp.c: New file.
36475         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
36476         'const SRC_UNIT *'.
36477         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
36478         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
36479         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
36480         * modules/unicase/ulc-casecmp: New file.
36481
36482         Tests for module 'unicase/u32-is-cased'.
36483         * modules/unicase/u32-is-cased-tests: New file.
36484         * tests/unicase/test-u32-is-cased.c: New file.
36485
36486         Tests for module 'unicase/u16-is-cased'.
36487         * modules/unicase/u16-is-cased-tests: New file.
36488         * tests/unicase/test-u16-is-cased.c: New file.
36489
36490         Tests for module 'unicase/u8-is-cased'.
36491         * modules/unicase/u8-is-cased-tests: New file.
36492         * tests/unicase/test-u8-is-cased.c: New file.
36493         * tests/unicase/test-is-cased.h: New file.
36494
36495         New module 'unicase/u32-is-cased'.
36496         * lib/unicase/u32-is-cased.c: New file.
36497         * modules/unicase/u32-is-cased: New file.
36498
36499         New module 'unicase/u16-is-cased'.
36500         * lib/unicase/u16-is-cased.c: New file.
36501         * modules/unicase/u16-is-cased: New file.
36502
36503         New module 'unicase/u8-is-cased'.
36504         * lib/unicase/u8-is-cased.c: New file.
36505         * lib/unicase/u-is-cased.h: New file.
36506         * modules/unicase/u8-is-cased: New file.
36507
36508         Tests for module 'unicase/u32-is-casefolded'.
36509         * modules/unicase/u32-is-casefolded-tests: New file.
36510         * tests/unicase/test-u32-is-casefolded.c: New file.
36511
36512         Tests for module 'unicase/u16-is-casefolded'.
36513         * modules/unicase/u16-is-casefolded-tests: New file.
36514         * tests/unicase/test-u16-is-casefolded.c: New file.
36515
36516         Tests for module 'unicase/u8-is-casefolded'.
36517         * modules/unicase/u8-is-casefolded-tests: New file.
36518         * tests/unicase/test-u8-is-casefolded.c: New file.
36519         * tests/unicase/test-is-casefolded.h: New file.
36520
36521         New module 'unicase/u32-is-casefolded'.
36522         * lib/unicase/u32-is-casefolded.c: New file.
36523         * modules/unicase/u32-is-casefolded: New file.
36524
36525         New module 'unicase/u16-is-casefolded'.
36526         * lib/unicase/u16-is-casefolded.c: New file.
36527         * modules/unicase/u16-is-casefolded: New file.
36528
36529         New module 'unicase/u8-is-casefolded'.
36530         * lib/unicase/u8-is-casefolded.c: New file.
36531         * modules/unicase/u8-is-casefolded: New file.
36532
36533         Tests for module 'unicase/u32-is-titlecase'.
36534         * modules/unicase/u32-is-titlecase-tests: New file.
36535         * tests/unicase/test-u32-is-titlecase.c: New file.
36536
36537         Tests for module 'unicase/u16-is-titlecase'.
36538         * modules/unicase/u16-is-titlecase-tests: New file.
36539         * tests/unicase/test-u16-is-titlecase.c: New file.
36540
36541         Tests for module 'unicase/u8-is-titlecase'.
36542         * modules/unicase/u8-is-titlecase-tests: New file.
36543         * tests/unicase/test-u8-is-titlecase.c: New file.
36544         * tests/unicase/test-is-titlecase.h: New file.
36545
36546         New module 'unicase/u32-is-titlecase'.
36547         * lib/unicase/u32-is-titlecase.c: New file.
36548         * modules/unicase/u32-is-titlecase: New file.
36549
36550         New module 'unicase/u16-is-titlecase'.
36551         * lib/unicase/u16-is-titlecase.c: New file.
36552         * modules/unicase/u16-is-titlecase: New file.
36553
36554         New module 'unicase/u8-is-titlecase'.
36555         * lib/unicase/u8-is-titlecase.c: New file.
36556         * modules/unicase/u8-is-titlecase: New file.
36557
36558         Tests for module 'unicase/u32-is-lowercase'.
36559         * modules/unicase/u32-is-lowercase-tests: New file.
36560         * tests/unicase/test-u32-is-lowercase.c: New file.
36561
36562         Tests for module 'unicase/u16-is-lowercase'.
36563         * modules/unicase/u16-is-lowercase-tests: New file.
36564         * tests/unicase/test-u16-is-lowercase.c: New file.
36565
36566         Tests for module 'unicase/u8-is-lowercase'.
36567         * modules/unicase/u8-is-lowercase-tests: New file.
36568         * tests/unicase/test-u8-is-lowercase.c: New file.
36569         * tests/unicase/test-is-lowercase.h: New file.
36570
36571         New module 'unicase/u32-is-lowercase'.
36572         * lib/unicase/u32-is-lowercase.c: New file.
36573         * modules/unicase/u32-is-lowercase: New file.
36574
36575         New module 'unicase/u16-is-lowercase'.
36576         * lib/unicase/u16-is-lowercase.c: New file.
36577         * modules/unicase/u16-is-lowercase: New file.
36578
36579         New module 'unicase/u8-is-lowercase'.
36580         * lib/unicase/u8-is-lowercase.c: New file.
36581         * modules/unicase/u8-is-lowercase: New file.
36582
36583         Tests for module 'unicase/u32-is-uppercase'.
36584         * modules/unicase/u32-is-uppercase-tests: New file.
36585         * tests/unicase/test-u32-is-uppercase.c: New file.
36586
36587         Tests for module 'unicase/u16-is-uppercase'.
36588         * modules/unicase/u16-is-uppercase-tests: New file.
36589         * tests/unicase/test-u16-is-uppercase.c: New file.
36590
36591         Tests for module 'unicase/u8-is-uppercase'.
36592         * modules/unicase/u8-is-uppercase-tests: New file.
36593         * tests/unicase/test-u8-is-uppercase.c: New file.
36594         * tests/unicase/test-is-uppercase.h: New file.
36595
36596         New module 'unicase/u32-is-uppercase'.
36597         * lib/unicase/u32-is-uppercase.c: New file.
36598         * modules/unicase/u32-is-uppercase: New file.
36599
36600         New module 'unicase/u16-is-uppercase'.
36601         * lib/unicase/u16-is-uppercase.c: New file.
36602         * modules/unicase/u16-is-uppercase: New file.
36603
36604         New module 'unicase/u8-is-uppercase'.
36605         * lib/unicase/u8-is-uppercase.c: New file.
36606         * modules/unicase/u8-is-uppercase: New file.
36607
36608         New module 'unicase/u32-is-invariant'.
36609         * lib/unicase/u32-is-invariant.c: New file.
36610         * modules/unicase/u32-is-invariant: New file.
36611
36612         New module 'unicase/u16-is-invariant'.
36613         * lib/unicase/u16-is-invariant.c: New file.
36614         * modules/unicase/u16-is-invariant: New file.
36615
36616         New module 'unicase/u8-is-invariant'.
36617         * lib/unicase/u8-is-invariant.c: New file.
36618         * lib/unicase/invariant.h: New file.
36619         * lib/unicase/u-is-invariant.h: New file.
36620         * modules/unicase/u8-is-invariant: New file.
36621
36622         Tests for module 'unicase/u32-casecoll'.
36623         * modules/unicase/u32-casecoll-tests: New file.
36624         * tests/unicase/test-u32-casecoll.c: New file.
36625
36626         Tests for module 'unicase/u16-casecoll'.
36627         * modules/unicase/u16-casecoll-tests: New file.
36628         * tests/unicase/test-u16-casecoll.c: New file.
36629
36630         Tests for module 'unicase/u8-casecoll'.
36631         * modules/unicase/u8-casecoll-tests: New file.
36632         * tests/unicase/test-u8-casecoll.c: New file.
36633
36634         New module 'unicase/u32-casecoll'.
36635         * lib/unicase/u32-casecoll.c: New file.
36636         * modules/unicase/u32-casecoll: New file.
36637
36638         New module 'unicase/u16-casecoll'.
36639         * lib/unicase/u16-casecoll.c: New file.
36640         * modules/unicase/u16-casecoll: New file.
36641
36642         New module 'unicase/u8-casecoll'.
36643         * lib/unicase/u8-casecoll.c: New file.
36644         * lib/unicase/u-casecoll.h: New file.
36645         * modules/unicase/u8-casecoll: New file.
36646
36647         New module 'unicase/u32-casexfrm'.
36648         * lib/unicase/u32-casexfrm.c: New file.
36649         * modules/unicase/u32-casexfrm: New file.
36650
36651         New module 'unicase/u16-casexfrm'.
36652         * lib/unicase/u16-casexfrm.c: New file.
36653         * modules/unicase/u16-casexfrm: New file.
36654
36655         New module 'unicase/u8-casexfrm'.
36656         * lib/unicase/u8-casexfrm.c: New file.
36657         * lib/unicase/u-casexfrm.h: New file.
36658         * modules/unicase/u8-casexfrm: New file.
36659
36660         Tests for module 'unicase/u32-casecmp'.
36661         * modules/unicase/u32-casecmp-tests: New file.
36662         * tests/unicase/test-u32-casecmp.c: New file.
36663
36664         Tests for module 'unicase/u16-casecmp'.
36665         * modules/unicase/u16-casecmp-tests: New file.
36666         * tests/unicase/test-u16-casecmp.c: New file.
36667
36668         Tests for module 'unicase/u8-casecmp'.
36669         * modules/unicase/u8-casecmp-tests: New file.
36670         * tests/unicase/test-u8-casecmp.c: New file.
36671         * tests/unicase/test-casecmp.h: New file.
36672
36673         New module 'unicase/u32-casecmp'.
36674         * lib/unicase/u32-casecmp.c: New file.
36675         * modules/unicase/u32-casecmp: New file.
36676
36677         New module 'unicase/u16-casecmp'.
36678         * lib/unicase/u16-casecmp.c: New file.
36679         * modules/unicase/u16-casecmp: New file.
36680
36681         New module 'unicase/u8-casecmp'.
36682         * lib/unicase/u8-casecmp.c: New file.
36683         * lib/unicase/u-casecmp.h: New file.
36684         * modules/unicase/u8-casecmp: New file.
36685
36686         Tests for module 'unicase/u32-casefold'.
36687         * modules/unicase/u32-casefold-tests: New file.
36688         * tests/unicase/test-u32-casefold.c: New file.
36689
36690         Tests for module 'unicase/u16-casefold'.
36691         * modules/unicase/u16-casefold-tests: New file.
36692         * tests/unicase/test-u16-casefold.c: New file.
36693
36694         Tests for module 'unicase/u8-casefold'.
36695         * modules/unicase/u8-casefold-tests: New file.
36696         * tests/unicase/test-u8-casefold.c: New file.
36697
36698         New module 'unicase/u32-casefold'.
36699         * lib/unicase/u32-casefold.c: New file.
36700         * modules/unicase/u32-casefold: New file.
36701
36702         New module 'unicase/u16-casefold'.
36703         * lib/unicase/u16-casefold.c: New file.
36704         * modules/unicase/u16-casefold: New file.
36705
36706         New module 'unicase/u8-casefold'.
36707         * lib/unicase/u8-casefold.c: New file.
36708         * lib/unicase/u-casefold.h: New file.
36709         * modules/unicase/u8-casefold: New file.
36710
36711         New module 'unicase/tocasefold'.
36712         * lib/unicase/casefold.h: New file.
36713         * lib/unicase/tocasefold.c: New file.
36714         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
36715         * modules/unicase/tocasefold: New file.
36716
36717         Tests for module 'unicase/u32-totitle'.
36718         * modules/unicase/u32-totitle-tests: New file.
36719         * tests/unicase/test-u32-totitle.c: New file.
36720
36721         Tests for module 'unicase/u16-totitle'.
36722         * modules/unicase/u16-totitle-tests: New file.
36723         * tests/unicase/test-u16-totitle.c: New file.
36724
36725         Tests for module 'unicase/u8-totitle'.
36726         * modules/unicase/u8-totitle-tests: New file.
36727         * tests/unicase/test-u8-totitle.c: New file.
36728
36729         New module 'unicase/u32-totitle'.
36730         * lib/unicase/u32-totitle.c: New file.
36731         * modules/unicase/u32-totitle: New file.
36732
36733         New module 'unicase/u16-totitle'.
36734         * lib/unicase/u16-totitle.c: New file.
36735         * modules/unicase/u16-totitle: New file.
36736
36737         New module 'unicase/u8-totitle'.
36738         * lib/unicase/u8-totitle.c: New file.
36739         * lib/unicase/u-totitle.h: New file.
36740         * modules/unicase/u8-totitle: New file.
36741
36742         Tests for module 'unicase/u32-tolower'.
36743         * modules/unicase/u32-tolower-tests: New file.
36744         * tests/unicase/test-u32-tolower.c: New file.
36745
36746         Tests for module 'unicase/u16-tolower'.
36747         * modules/unicase/u16-tolower-tests: New file.
36748         * tests/unicase/test-u16-tolower.c: New file.
36749
36750         Tests for module 'unicase/u8-tolower'.
36751         * modules/unicase/u8-tolower-tests: New file.
36752         * tests/unicase/test-u8-tolower.c: New file.
36753
36754         New module 'unicase/u32-tolower'.
36755         * lib/unicase/u32-tolower.c: New file.
36756         * modules/unicase/u32-tolower: New file.
36757
36758         New module 'unicase/u16-tolower'.
36759         * lib/unicase/u16-tolower.c: New file.
36760         * modules/unicase/u16-tolower: New file.
36761
36762         New module 'unicase/u8-tolower'.
36763         * lib/unicase/u8-tolower.c: New file.
36764         * modules/unicase/u8-tolower: New file.
36765
36766         Tests for module 'unicase/u32-toupper'.
36767         * modules/unicase/u32-toupper-tests: New file.
36768         * tests/unicase/test-u32-toupper.c: New file.
36769
36770         Tests for module 'unicase/u16-toupper'.
36771         * modules/unicase/u16-toupper-tests: New file.
36772         * tests/unicase/test-u16-toupper.c: New file.
36773
36774         Tests for module 'unicase/u8-toupper'.
36775         * modules/unicase/u8-toupper-tests: New file.
36776         * tests/unicase/test-u8-toupper.c: New file.
36777
36778         New module 'unicase/u32-toupper'.
36779         * lib/unicase/u32-toupper.c: New file.
36780         * modules/unicase/u32-toupper: New file.
36781
36782         New module 'unicase/u16-toupper'.
36783         * lib/unicase/u16-toupper.c: New file.
36784         * modules/unicase/u16-toupper: New file.
36785
36786         New module 'unicase/u8-toupper'.
36787         * lib/unicase/u8-toupper.c: New file.
36788         * modules/unicase/u8-toupper: New file.
36789
36790         New module 'unicase/u32-casemap'.
36791         * lib/unicase/u32-casemap.c: New file.
36792         * modules/unicase/u32-casemap: New file.
36793
36794         New module 'unicase/u16-casemap'.
36795         * lib/unicase/u16-casemap.c: New file.
36796         * modules/unicase/u16-casemap: New file.
36797
36798         New module 'unicase/u8-casemap'.
36799         * lib/unicase/unicasemap.h: New file.
36800         * lib/unicase/u8-casemap.c: New file.
36801         * lib/unicase/u-casemap.h: New file.
36802         * modules/unicase/u8-casemap: New file.
36803
36804         New module 'unicase/special-casing'.
36805         * lib/unicase/special-casing.h: New file.
36806         * lib/unicase/special-casing.c: New file.
36807         * lib/unicase/special-casing-table.gperf: New file, generated by
36808         gen-uni-tables.c.
36809         * modules/unicase/special-casing: New file.
36810
36811         Tests for module 'unicase/locale-language'.
36812         * modules/unicase/locale-language-tests: New file.
36813         * tests/unicase/test-locale-language.sh: New file.
36814         * tests/unicase/test-locale-language.c: New file.
36815
36816         New module 'unicase/locale-language'.
36817         * lib/unicase/locale-language.c: New file.
36818         * lib/unicase/locale-languages.gperf: New file.
36819         * modules/unicase/locale-language: New file.
36820
36821         Generate more tables for case conversion and case folding.
36822         * lib/gen-uni-tables.c (SCC_*): New enum items.
36823         (struct special_casing_rule): New type.
36824         (casing_rules, num_casing_rules, allocated_casing_rules): New
36825         variables.
36826         (add_casing_rule, fill_casing_rules): New functions.
36827         (struct casefold_rule): New type.
36828         (casefolding_rules, num_casefolding_rules,
36829         allocated_casefolding_rules): New variables.
36830         (fill_casefolding_rules): New function.
36831         (unicode_casefold): New variable.
36832         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
36833         sort_casing_rules, output_casing_rules): New functions.
36834         (main): Accept to more arguments: SpecialCasing.txt and
36835         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
36836         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
36837         Output mapping for casefolding.
36838
36839         * lib/unicase.h: Include stdbool.h, uninorm.h.
36840         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
36841         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
36842         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
36843         arguments.
36844         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
36845         resultp arguments.
36846         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
36847         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
36848         resultp arguments.
36849         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
36850         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
36851         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
36852         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
36853         declarations.
36854         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
36855
36856 2009-03-08  Bruno Haible  <bruno@clisp.org>
36857
36858         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36859         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
36860         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
36861         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36862
36863 2009-03-07  Bruno Haible  <bruno@clisp.org>
36864
36865         Adjust u*_normcmp, u*_normcoll API.
36866         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36867         u16_normcoll, u32_normcoll): Change failure conventions.
36868         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
36869         errno and return -1.
36870         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36871
36872 2009-03-07  Bruno Haible  <bruno@clisp.org>
36873
36874         Tests for module 'uninorm/u32-normcoll'.
36875         * modules/uninorm/u32-normcoll-tests: New file.
36876         * tests/uninorm/test-u32-normcoll.c: New file.
36877
36878         Tests for module 'uninorm/u16-normcoll'.
36879         * modules/uninorm/u16-normcoll-tests: New file.
36880         * tests/uninorm/test-u16-normcoll.c: New file.
36881
36882         Tests for module 'uninorm/u8-normcoll'.
36883         * modules/uninorm/u8-normcoll-tests: New file.
36884         * tests/uninorm/test-u8-normcoll.c: New file.
36885
36886 2009-03-07  Bruno Haible  <bruno@clisp.org>
36887
36888         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
36889         tests/uninorm/test-u32-normcmp.c.
36890         * tests/uninorm/test-u32-normcmp.c: Include it.
36891         (test_nonascii): New function, extracted from main. Add some more
36892         tests.
36893         (main): Invoke test_ascii and test_nonascii.
36894         * modules/uninorm/u32-normcmp-tests (Files): Add
36895         tests/uninorm/test-u32-normcmp.h.
36896         (Depends-on): Remove uninorm/u32-normcmp.
36897
36898         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
36899         tests/uninorm/test-u16-normcmp.c.
36900         * tests/uninorm/test-u16-normcmp.c: Include it.
36901         (test_nonascii): New function, extracted from main. Add some more
36902         tests.
36903         (main): Invoke test_ascii and test_nonascii.
36904         * modules/uninorm/u16-normcmp-tests (Files): Add
36905         tests/uninorm/test-u16-normcmp.h.
36906         (Depends-on): Remove uninorm/u16-normcmp.
36907
36908         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
36909         tests/uninorm/test-u8-normcmp.c.
36910         * tests/uninorm/test-u8-normcmp.c: Include it.
36911         (test_nonascii): New function, extracted from main. Add some more
36912         tests.
36913         (main): Invoke test_ascii and test_nonascii.
36914         * modules/uninorm/u8-normcmp-tests (Files): Add
36915         tests/uninorm/test-u8-normcmp.h.
36916         (Depends-on): Remove uninorm/u8-normcmp.
36917
36918 2009-03-07  Bruno Haible  <bruno@clisp.org>
36919
36920         New module 'uninorm/u32-normcoll'.
36921         * lib/uninorm/u32-normcoll.c: New file.
36922         * modules/uninorm/u32-normcoll: New file.
36923
36924         New module 'uninorm/u16-normcoll'.
36925         * lib/uninorm/u16-normcoll.c: New file.
36926         * modules/uninorm/u16-normcoll: New file.
36927
36928         New module 'uninorm/u8-normcoll'.
36929         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
36930         declarations.
36931         * lib/uninorm/u8-normcoll.c: New file.
36932         * lib/uninorm/u-normcoll.h: New file.
36933         * modules/uninorm/u8-normcoll: New file.
36934
36935         New module 'uninorm/u32-normxfrm'.
36936         * lib/uninorm/u32-normxfrm.c: New file.
36937         * modules/uninorm/u32-normxfrm: New file.
36938
36939         New module 'uninorm/u16-normxfrm'.
36940         * lib/uninorm/u16-normxfrm.c: New file.
36941         * modules/uninorm/u16-normxfrm: New file.
36942
36943         New module 'uninorm/u8-normxfrm'.
36944         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
36945         declarations.
36946         * lib/uninorm/u8-normxfrm.c: New file.
36947         * lib/uninorm/u-normxfrm.h: New file.
36948         * modules/uninorm/u8-normxfrm: New file.
36949
36950 2009-03-07  Bruno Haible  <bruno@clisp.org>
36951
36952         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
36953         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
36954         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
36955
36956 2009-03-07  Bruno Haible  <bruno@clisp.org>
36957
36958         New module 'memxfrm'.
36959         * lib/memxfrm.h: New file.
36960         * lib/memxfrm.c: New file.
36961         * modules/memxfrm: New file.
36962
36963 2009-03-07  Bruno Haible  <bruno@clisp.org>
36964
36965         New module 'memcmp2'.
36966         * lib/memcmp2.h: New file.
36967         * lib/memcmp2.c: New file.
36968         * modules/memcmp2: New file.
36969
36970 2009-03-07  Bruno Haible  <bruno@clisp.org>
36971
36972         Tests for module 'uninorm/decomposing-form'.
36973         * modules/uninorm/decomposing-form-tests: New file.
36974         * tests/uninorm/test-decomposing-form.c: New file.
36975
36976         New module 'uninorm/decomposing-form'.
36977         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
36978         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
36979         Add 'decomposing_variant' field.
36980         * lib/uninorm/decomposing-form.c: New file.
36981         * lib/uninorm/nfc.c (uninorm_nfc): Update.
36982         * lib/uninorm/nfd.c (uninorm_nfd): Update.
36983         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
36984         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
36985         * modules/uninorm/decomposing-form: New file.
36986         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
36987         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
36988
36989 2009-03-07  Bruno Haible  <bruno@clisp.org>
36990
36991         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
36992         strings.
36993
36994 2009-03-06  Bruno Haible  <bruno@clisp.org>
36995
36996         Tests for module 'uninorm/u32-normcmp'.
36997         * tests/uninorm/test-u32-normcmp.c: New file.
36998         * modules/uninorm/u32-normcmp-tests: New file.
36999
37000         Tests for module 'uninorm/u16-normcmp'.
37001         * tests/uninorm/test-u16-normcmp.c: New file.
37002         * modules/uninorm/u16-normcmp-tests: New file.
37003
37004         Tests for module 'uninorm/u8-normcmp'.
37005         * tests/uninorm/test-u8-normcmp.c: New file.
37006         * modules/uninorm/u8-normcmp-tests: New file.
37007
37008         New module 'uninorm/u32-normcmp'.
37009         * lib/uninorm/u32-normcmp.c: New file.
37010         * modules/uninorm/u32-normcmp: New file.
37011
37012         New module 'uninorm/u16-normcmp'.
37013         * lib/uninorm/u16-normcmp.c: New file.
37014         * modules/uninorm/u16-normcmp: New file.
37015
37016         New module 'uninorm/u8-normcmp'.
37017         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
37018         declarations.
37019         * lib/uninorm/u8-normcmp.c: New file.
37020         * lib/uninorm/u-normcmp.h: New file.
37021         * modules/uninorm/u8-normcmp: New file.
37022
37023 2009-03-06  Bruno Haible  <bruno@clisp.org>
37024
37025         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
37026         Reported by Eric Blake.
37027
37028 2009-03-06  Eric Blake  <ebb9@byu.net>
37029             Bruno Haible  <bruno@clisp.org>
37030
37031         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
37032         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
37033         condition.
37034         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
37035         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
37036         condition.
37037         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
37038
37039 2009-03-06  Eric Blake  <ebb9@byu.net>
37040
37041         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
37042         to avoid compiler warnings.
37043         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
37044
37045 2009-03-05  Bruno Haible  <bruno@clisp.org>
37046
37047         * tests/test-ftell.c (main): Disable test beyond end of file on
37048         FreeMiNT.
37049         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
37050
37051 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
37052
37053         * lib/filevercmp.c: Move hidden files up in ordering.
37054         * tests/test-filevercmp.c: Add tests for hidden files.
37055
37056 2009-03-04  Bruno Haible  <bruno@clisp.org>
37057
37058         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
37059         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
37060         AM_CFLAGS.
37061         Reported by Simon Josefsson.
37062
37063 2009-03-03  Bruno Haible  <bruno@clisp.org>
37064
37065         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
37066         Reported by Simon Josefsson.
37067
37068         * doc/ld-version-script.texi: Update node reference.
37069
37070 2009-03-03  Bruno Haible  <bruno@clisp.org>
37071
37072         * modules/visibility (License): Change to 'unlimited'.
37073         Suggested by Simon Josefsson.
37074
37075 2009-03-03  Jim Meyering  <meyering@redhat.com>
37076
37077         unlinkdir: cannot_unlink_dir may modify process state
37078         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
37079         it's neither thread-safe nor appropriate for use in a library.
37080
37081 2009-03-03  Eric Blake  <ebb9@byu.net>
37082
37083         test-closein: silence test under Darwin
37084         * tests/test-closein.sh: Ignore stderr from cat, since we don't
37085         care if it dies from EPIPE or EBADF.
37086
37087 2009-03-03  Bruno Haible  <bruno@clisp.org>
37088
37089         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
37090         earlier.
37091         * doc/visibility.texi: Fix @node and @section.
37092
37093 2009-03-03  Simon Josefsson  <simon@josefsson.org>
37094
37095         * doc/gnulib.texi: Link to sections for ld version script and
37096         visibility.
37097         * doc/visibility.texi: Add @node and @section.
37098         * modules/ld-version-script: New module.
37099         * m4/ld-version-script.m4: New file.
37100         * doc/ld-version-script.texi: New file.
37101
37102 2009-03-02  David Lutterkort  <lutter@redhat.com>
37103
37104         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
37105         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37106
37107 2009-03-02  Bruno Haible  <bruno@clisp.org>
37108
37109         * doc/visibility.texi: Mention libtool's -export-symbols option.
37110
37111 2009-03-02  Jim Meyering  <meyering@redhat.com>
37112
37113         announce-gen: new option: --no-print-checksums
37114         * build-aux/announce-gen (usage): Describe it.
37115         (print_checksums): Print a newline here, not in the [*] footnote.
37116         (main): Honor it.
37117
37118 2009-03-01  Bruno Haible  <bruno@clisp.org>
37119
37120         Use socklen_t in the native Windows replacements prototypes.
37121         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
37122         instead of 'int'.
37123         * lib/getsockopt.c (rpl_getsockopt): Likewise.
37124         * lib/setsockopt.c (rpl_setsockopt): Likewise.
37125         * modules/getsockopt (Depends-on): Add socklen.
37126         * modules/setsockopt (Depends-on): Add socklen.
37127
37128 2009-03-01  Bruno Haible  <bruno@clisp.org>
37129
37130         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
37131         least 4.2.
37132
37133 2009-03-01  Eric Blake  <ebb9@byu.net>
37134             Bruno Haible  <bruno@clisp.org>
37135
37136         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
37137         error messages.
37138         * lib/wait-process.c (wait_subprocess): Omit error message about
37139         deadly signal sent to the child of termsigp != NULL.
37140
37141 2009-03-01  Eric Blake  <ebb9@byu.net>
37142
37143         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
37144
37145 2009-03-01  Bruno Haible  <bruno@clisp.org>
37146
37147         Avoid a gcc warning.
37148         * tests/test-sched.c (b): Make global.
37149         Reported by Eric Blake.
37150
37151 2009-01-19  Martin Lambers  <marlam@marlam.de>
37152
37153         Provide POSIX semantics for socket timeout options on W32.
37154         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
37155         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
37156         * modules/setsockopt: Depend on sys_time module for struct timeval.
37157         * modules/getsockopt: Depend on sys_time module for struct timeval.
37158
37159 2009-03-01  Simon Josefsson  <simon@josefsson.org>
37160
37161         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
37162         __USE_GNU, for consistency with netdb.in.h.
37163         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37164
37165 2009-03-01  Bruno Haible  <bruno@clisp.org>
37166
37167         More support for FreeMiNT.
37168         * lib/fseeko.c (rpl_fseeko): Complete last commit.
37169         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37170
37171 2009-03-01  Bruno Haible  <bruno@clisp.org>
37172
37173         More support for FreeMiNT.
37174         * lib/fpurge.c (fpurge): Correct last commit.
37175         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37176
37177 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37178
37179         Fix unportable awk script in vc-list-files.
37180         * build-aux/vc-list-files: In the replacement awk script, use
37181         substr with a second argument of 1, not zero.
37182         Report by Simon Josefsson.
37183
37184 2009-02-28  Bruno Haible  <bruno@clisp.org>
37185
37186         More support for FreeMiNT.
37187         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
37188         to FreeMiNT today.
37189         * lib/fwriting.c (fwriting): Likewise.
37190         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
37191
37192 2009-02-28  Bruno Haible  <bruno@clisp.org>
37193
37194         * tests/test-freadseek.c (main): Disable test beyond end of file on
37195         FreeMiNT.
37196         * tests/test-ftello.c (main): Likewise.
37197         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
37198
37199 2009-02-28  Bruno Haible  <bruno@clisp.org>
37200
37201         Add tentative support for FreeMiNT.
37202         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
37203         * lib/fpurge.c (fpurge): Likewise.
37204         * lib/freadable.c (freadable): Likewise.
37205         * lib/freading.c (freading): Likewise.
37206         * lib/freadptr.c (freadptr): Likewise.
37207         * lib/freadseek.c (freadptrinc): Likewise.
37208         * lib/fseeko.c (rpl_fseeko): Likewise.
37209         * lib/fseterr.c (fseterr): Likewise.
37210         * lib/fwritable.c (fwritable): Likewise.
37211         * lib/fwriting.c (fwriting): Likewise.
37212         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
37213         Hourihane.
37214         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37215
37216 2009-02-28  Bruno Haible  <bruno@clisp.org>
37217
37218         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
37219         SIGCHLD.
37220         Reported by Jim Meyering.
37221
37222 2009-02-28  Bruno Haible  <bruno@clisp.org>
37223
37224         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
37225         Mention the results of these tests on various platforms.
37226         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
37227         order.
37228         * doc/posix-functions/printf.texi: Likewise.
37229         * doc/posix-functions/snprintf.texi: Likewise.
37230         * doc/posix-functions/sprintf.texi: Likewise.
37231         * doc/posix-functions/vfprintf.texi: Likewise.
37232         * doc/posix-functions/vprintf.texi: Likewise.
37233         * doc/posix-functions/vsnprintf.texi: Likewise.
37234         * doc/posix-functions/vsprintf.texi: Likewise.
37235         * doc/glibc-functions/obstack_printf.texi: Likewise.
37236         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
37237
37238 2009-02-28  Bruno Haible  <bruno@clisp.org>
37239
37240         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
37241         Reported by Loïc Minier <lool@dooz.org>.
37242
37243 2009-02-27  Bruno Haible  <bruno@clisp.org>
37244
37245         * gnulib-tool (func_import): Make the sed expression used to create the
37246         sed script for updating the .gitignore file POSIX compliant.
37247         Reported by Eric Blake.
37248
37249 2009-02-27  Bruno Haible  <bruno@clisp.org>
37250
37251         * gnulib-tool (sed): Don't alias as "sed --posix".
37252         Reported by Eric Blake.
37253
37254 2009-02-27  Bruno Haible  <bruno@clisp.org>
37255
37256         Avoid test link errors.
37257         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
37258         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
37259         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
37260         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
37261         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37262
37263 2009-02-27  Bruno Haible  <bruno@clisp.org>
37264
37265         Avoid spurious "(cached)" in configure output.
37266         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
37267         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
37268         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
37269         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
37270         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
37271         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
37272         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
37273         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
37274         Reported by Eric Blake.
37275
37276 2009-02-27  Eric Blake  <ebb9@byu.net>
37277
37278         printf: fix regression in previous patch
37279         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
37280
37281 2009-02-27  Bruno Haible  <bruno@clisp.org>
37282
37283         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
37284         value.
37285         * lib/stdint.in.h: Likewise.
37286         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
37287
37288 2009-02-27  Eric Blake  <ebb9@byu.net>
37289
37290         doc: mention more functions added in cygwin 1.7.0
37291         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
37292         addition.
37293         * doc/posix-functions/open_wmemstream.texi: Likewise.
37294         * doc/posix-functions/wcsnlen.texi: Likewise.
37295         * doc/posix-functions/wcsnrtombs.texi: Likewise.
37296         * doc/posix-functions/wcstod.texi: Likewise.
37297         * doc/posix-functions/wcstof.texi: Likewise.
37298         * doc/posix-functions/wcstoimax.texi: Likewise.
37299         * doc/posix-functions/wcstok.texi: Likewise.
37300         * doc/posix-functions/wcstoumax.texi: Likewise.
37301
37302         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
37303         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
37304         * doc/posix-functions/fprintf.texi: Update.
37305         * doc/posix-functions/printf.texi: Update.
37306         * doc/posix-functions/snprintf.texi: Update.
37307         * doc/posix-functions/sprintf.texi: Update.
37308         * doc/posix-functions/vfprintf.texi: Update.
37309         * doc/posix-functions/vprintf.texi: Update.
37310         * doc/posix-functions/vsnprintf.texi: Update.
37311         * doc/posix-functions/vsprintf.texi: Update.
37312         * doc/glibc-functions/obstack_printf.texi: Update.
37313         * doc/glibc-functions/obstack_vprintf.texi: Update.
37314
37315 2009-02-26  Eric Blake  <ebb9@byu.net>
37316
37317         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
37318         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
37319         compilation bug by using runtime conversion.
37320         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
37321         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
37322         * modules/ceill-tests (Files): Use nan.h.
37323         * modules/floorl-tests (Files): Likewise.
37324         * modules/frexpl-tests (Files): Likewise.
37325         * modules/isnanl-tests (Files): Likewise.
37326         * modules/ldexpl-tests (Files): Likewise.
37327         * modules/roundl-tests (Files): Likewise.
37328         * modules/truncl-tests (Files): Likewise.
37329         * tests/test-ceill.c (main): Use a working NaN.
37330         * tests/test-floorl.c (main): Likewise.
37331         * tests/test-frexpl.c (main): Likewise.
37332         * tests/test-isnan.c (test_long_double): Likewise.
37333         * tests/test-isnanl.h (main): Likewise.
37334         * tests/test-ldexpl.h (main): Likewise.
37335         * tests/test-roundl.h (main): Likewise.
37336         * tests/test-truncl.h (main): Likewise.
37337         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
37338
37339 2009-02-26  Eric Blake  <ebb9@byu.net>
37340             Bruno Haible  <bruno@clisp.org>
37341
37342         Work around a *printf bug with %ls on Solaris.
37343         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
37344         precision is specified, sprintf stops converting the wide string
37345         argument when the number of bytes that have been produced by this
37346         conversion equals or exceeds the precision.
37347         * doc/posix-functions/fprintf.texi: Update.
37348         * doc/posix-functions/printf.texi: Update.
37349         * doc/posix-functions/snprintf.texi: Update.
37350         * doc/posix-functions/sprintf.texi: Update.
37351         * doc/posix-functions/vfprintf.texi: Update.
37352         * doc/posix-functions/vprintf.texi: Update.
37353         * doc/posix-functions/vsnprintf.texi: Update.
37354         * doc/posix-functions/vsprintf.texi: Update.
37355         * doc/glibc-functions/obstack_printf.texi: Update.
37356         * doc/glibc-functions/obstack_vprintf.texi: Update.
37357
37358 2009-02-26  Eric Blake  <ebb9@byu.net>
37359
37360         stdlib: favor compiler check of random.h
37361         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
37362         to avoid an ObjC random.h installed by Swarm.
37363
37364 2009-02-26  Bruno Haible  <bruno@clisp.org>
37365
37366         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
37367         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
37368         Reported by Gary V. Vaughan <gary@gnu.org>.
37369
37370 2009-02-26  Bruno Haible  <bruno@clisp.org>
37371
37372         Fix *printf behaviour regarding the %ls directive.
37373         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
37374         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
37375         NEED_PRINTF_DIRECTIVE_LS.
37376         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
37377         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
37378         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
37379         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
37380         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
37381         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
37382         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
37383         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
37384         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
37385         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
37386         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
37387         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
37388         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
37389         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
37390         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
37391         * doc/posix-functions/fprintf.texi: Update.
37392         * doc/posix-functions/printf.texi: Update.
37393         * doc/posix-functions/snprintf.texi: Update.
37394         * doc/posix-functions/sprintf.texi: Update.
37395         * doc/posix-functions/vfprintf.texi: Update.
37396         * doc/posix-functions/vprintf.texi: Update.
37397         * doc/posix-functions/vsnprintf.texi: Update.
37398         * doc/posix-functions/vsprintf.texi: Update.
37399         * doc/glibc-functions/obstack_printf.texi: Update.
37400         * doc/glibc-functions/obstack_vprintf.texi: Update.
37401         Reported by Eric Blake.
37402
37403 2009-02-25  Bruno Haible  <bruno@clisp.org>
37404
37405         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
37406         with known value.
37407         Reported by Gary V. Vaughan <gary@gnu.org>.
37408
37409 2009-02-25  Bruno Haible  <bruno@clisp.org>
37410
37411         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
37412         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
37413         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
37414         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
37415         Reported by Gary V. Vaughan <gary@gnu.org>.
37416
37417 2009-02-25  Bruno Haible  <bruno@clisp.org>
37418
37419         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
37420         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
37421         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
37422         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
37423         Reported by Gary V. Vaughan <gary@gnu.org>.
37424
37425 2009-02-25  Eric Blake  <ebb9@byu.net>
37426
37427         tests: skip fseek/ftell tests if ungetc is broken
37428         * m4/ungetc.m4: New file.
37429         * modules/fseek-tests: Split test, so ungetc dependency is
37430         separate from rest of test.
37431         * modules/fseeko-tests: Likewise.
37432         * modules/ftell-tests: Likewise.
37433         * modules/ftello-tests: Likewise.
37434         * tests/test-fseek.c (main): Isolate ungetc dependency.
37435         * tests/test-fseeko.c (main): Likewise.
37436         * tests/test-ftell.c (main): Likewise.
37437         * tests/test-ftello.c (main): Likewise.
37438         * tests/test-fseek2.sh: New file.
37439         * tests/test-fseeko2.sh: Likewise.
37440         * tests/test-ftell2.sh: Likewise.
37441         * tests/test-ftello2.sh: Likewise.
37442
37443 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
37444
37445         test-getaddrinfo: fix usage of skip return code 77
37446         * tests/test-gettaddrinfo.c: Return skip code 77 only
37447         for first occurance of skip (4x77 is not 77)
37448
37449 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
37450
37451         strtod: avoid C99 decl-after-statement
37452         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
37453
37454 2009-02-24  Eric Blake  <ebb9@byu.net>
37455
37456         strtod: detect HP-UX 11.31 bug
37457         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
37458         Reported by Gary V. Vaughan.
37459
37460 2009-02-23  Bruno Haible  <bruno@clisp.org>
37461
37462         Fix invalid read past end of memory block.
37463         * lib/vasnprintf.c (DCHAR_SET): Define.
37464         (local_wcslen): Define only when needed.
37465         (local_strnlen, local_wcsnlen): New functions.
37466         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
37467         directives that involve a conversion ourselves.
37468         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
37469         wcsnlen, mbrtowc, wcrtomb.
37470         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
37471         * tests/test-vasprintf-posix.c (test_function): Likewise.
37472         * tests/test-snprintf-posix.h (test_function): Likewise.
37473         * tests/test-sprintf-posix.h (test_function): Likewise.
37474         Reported by Ben Pfaff <blp@cs.stanford.edu>.
37475
37476 2009-02-22  Bruno Haible  <bruno@clisp.org>
37477
37478         Implement new clarified decomposition of Hangul syllables.
37479         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
37480         of type LTV, return only a pairwise decomposition.
37481         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
37482         Likewise.
37483         * tests/uninorm/test-decomposition.c (main): Updated expected result.
37484         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
37485         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
37486
37487 2009-02-22  Bruno Haible  <bruno@clisp.org>
37488
37489         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
37490         zero-length results and shrink excess allocated memory.
37491         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
37492         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
37493         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
37494         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
37495         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
37496         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
37497         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
37498         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
37499         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
37500         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
37501         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
37502         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
37503
37504 2009-02-21  Bruno Haible  <bruno@clisp.org>
37505
37506         * doc/gnulib.texi: Include safe-alloc.texi earlier.
37507         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
37508         spaces after a period. Put a space between a macro name and its
37509         argument list. Trivial rewordings.
37510         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
37511         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
37512         (main): Return 0 explicitly.
37513
37514 2009-02-21  Bruno Haible  <bruno@clisp.org>
37515
37516         Tests for module 'uninorm/filter'.
37517         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
37518         * modules/uninorm/filter-tests: New file.
37519
37520         New module 'uninorm/filter'.
37521         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
37522         uninorm_filter_flush, uninorm_filter_free): New declarations.
37523         * lib/uninorm/uninorm-filter.c: New file.
37524         * modules/uninorm/filter: New file.
37525
37526 2009-02-21  Bruno Haible  <bruno@clisp.org>
37527
37528         Tests for module 'uninorm/nfkc'.
37529         * tests/uninorm/test-nfkc.c: New file.
37530         * tests/uninorm/test-u8-nfkc.c: New file.
37531         * tests/uninorm/test-u16-nfkc.c: New file.
37532         * tests/uninorm/test-u32-nfkc.c: New file.
37533         * tests/uninorm/test-u32-nfkc-big.sh: New file.
37534         * tests/uninorm/test-u32-nfkc-big.c: New file.
37535         * modules/uninorm/nfkc-tests: New file.
37536
37537         New module 'uninorm/nfkc'.
37538         * lib/uninorm/nfkc.c: New file.
37539         * modules/uninorm/nfkc: New file.
37540
37541         Tests for module 'uninorm/nfkd'.
37542         * tests/uninorm/test-nfkd.c: New file.
37543         * tests/uninorm/test-u8-nfkd.c: New file.
37544         * tests/uninorm/test-u16-nfkd.c: New file.
37545         * tests/uninorm/test-u32-nfkd.c: New file.
37546         * tests/uninorm/test-u32-nfkd-big.sh: New file.
37547         * tests/uninorm/test-u32-nfkd-big.c: New file.
37548         * modules/uninorm/nfkd-tests: New file.
37549
37550         New module 'uninorm/nfkd'.
37551         * lib/uninorm/nfkd.c: New file.
37552         * modules/uninorm/nfkd: New file.
37553
37554         Tests for module 'uninorm/nfc'.
37555         * tests/uninorm/test-nfc.c: New file.
37556         * tests/uninorm/test-u8-nfc.c: New file.
37557         * tests/uninorm/test-u16-nfc.c: New file.
37558         * tests/uninorm/test-u32-nfc.c: New file.
37559         * tests/uninorm/test-u32-nfc-big.sh: New file.
37560         * tests/uninorm/test-u32-nfc-big.c: New file.
37561         * modules/uninorm/nfc-tests: New file.
37562
37563         New module 'uninorm/nfc'.
37564         * lib/uninorm/nfc.c: New file.
37565         * modules/uninorm/nfc: New file.
37566
37567         Tests for module 'uninorm/nfd'.
37568         * tests/uninorm/test-nfd.c: New file.
37569         * tests/uninorm/test-u8-nfd.c: New file.
37570         * tests/uninorm/test-u16-nfd.c: New file.
37571         * tests/uninorm/test-u32-nfd.c: New file.
37572         * tests/uninorm/test-u32-nfd-big.sh: New file.
37573         * tests/uninorm/test-u32-nfd-big.c: New file.
37574         * tests/uninorm/test-u32-normalize-big.h: New file.
37575         * tests/uninorm/test-u32-normalize-big.c: New file.
37576         * tests/uninorm/NormalizationTest.txt: New file, created from
37577         Unicode 5.1.0 NormalizationTest.txt.
37578         * modules/uninorm/nfd-tests: New file.
37579
37580         New module 'uninorm/nfd'.
37581         * lib/uninorm/nfd.c: New file.
37582         * modules/uninorm/nfd: New file.
37583
37584         New module 'uninorm/u32-normalize'.
37585         * lib/uninorm/u32-normalize.c: New file.
37586         * modules/uninorm/u32-normalize: New file.
37587
37588         New module 'uninorm/u16-normalize'.
37589         * lib/uninorm/u16-normalize.c: New file.
37590         * modules/uninorm/u16-normalize: New file.
37591
37592         New module 'uninorm/u8-normalize'.
37593         * lib/uninorm/u8-normalize.c: New file.
37594         * lib/uninorm/normalize-internal.h: New file.
37595         * lib/uninorm/u-normalize-internal.h: New file.
37596         * modules/uninorm/u8-normalize: New file.
37597
37598         New module 'uninorm/decompose-internal'.
37599         * lib/uninorm/decompose-internal.c: New file.
37600         * modules/uninorm/decompose-internal: New file.
37601
37602         Tests for module 'uninorm/composition'.
37603         * tests/uninorm/test-composition.c: New file.
37604         * modules/uninorm/composition-tests: New file.
37605
37606         New module 'uninorm/composition'.
37607         * lib/uninorm/composition.c: New file.
37608         * lib/uninorm/composition-table.gperf: New file, generated by
37609         gen-uni-tables.
37610         * modules/uninorm/composition: New file.
37611
37612         Tests for module 'uninorm/compat-decomposition'.
37613         * tests/uninorm/test-compat-decomposition.c: New file.
37614         * modules/uninorm/compat-decomposition-tests: New file.
37615
37616         New module 'uninorm/compat-decomposition'.
37617         * lib/uninorm/decompose-internal.h: New file.
37618         * lib/uninorm/compat-decomposition.c: New file.
37619         * modules/uninorm/compat-decomposition: New file.
37620
37621         Tests for module 'uninorm/canonical-decomposition'.
37622         * tests/uninorm/test-canonical-decomposition.c: New file.
37623         * modules/uninorm/canonical-decomposition-tests: New file.
37624
37625         New module 'uninorm/canonical-decomposition'.
37626         * lib/uninorm/canonical-decomposition.c: New file.
37627         * modules/uninorm/canonical-decomposition: New file.
37628
37629         Tests for module 'uninorm/decomposition'.
37630         * tests/uninorm/test-decomposition.c: New file.
37631         * modules/uninorm/decomposition-tests: New file.
37632
37633         New module 'uninorm/decomposition'.
37634         * lib/uninorm/decomposition.c: New file.
37635         * modules/uninorm/decomposition: New file.
37636
37637         New module 'uninorm/decomposition-table'.
37638         * lib/uninorm/decomposition-table.h: New file.
37639         * lib/uninorm/decomposition-table.c: New file.
37640         * lib/uninorm/decomposition-table1.h: New file, generated by
37641         gen-uni-tables.
37642         * lib/uninorm/decomposition-table2.h: New file, generated by
37643         gen-uni-tables.
37644         * modules/uninorm/decomposition-table: New file.
37645
37646         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
37647         (UC_DECOMP_*): New enumeration items.
37648         (get_decomposition): New function.
37649         (struct decomp_table): New type.
37650         (output_decomposition, output_decomposition_tables): New functions.
37651         (unicode_composition_exclusions): New variable.
37652         (fill_composition_exclusions, debug_output_composition_tables): New
37653         functions.
37654         (main): Accept one more argument. Invoke fill_composition_exclusions.
37655         Output decomposition and composition tables.
37656
37657         New module 'uninorm/base'.
37658         * lib/uninorm.h: New file.
37659         * lib/unictype.h: Update comment.
37660         * modules/uninorm/base: New file.
37661
37662 2009-02-21  David Lutterkort  <lutter@redhat.com>
37663
37664         Tests for module 'safe-alloc'.
37665         * tests/test-safe-alloc.c: New file.
37666         * modules/safe-alloc-tests: New file.
37667
37668         New module 'safe-alloc'.
37669         * lib/safe-alloc.h: New file.
37670         * lib/safe-alloc.c: New file.
37671         * m4/safe-alloc.m4: New file.
37672         * modules/safe-alloc: New file.
37673         * doc/safe-alloc.texi: New file.
37674         * doc/gnulib.texi: Include it.
37675         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
37676         safe-alloc.
37677
37678 2009-02-18  Bruno Haible  <bruno@clisp.org>
37679
37680         Fix link error on non-glibc systems.
37681         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
37682         variable.
37683         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
37684
37685 2009-02-18  Jim Meyering  <meyering@redhat.com>
37686
37687         fts: avoid used-uninitialized error due to recent change
37688         * lib/fts.c (fts_read): Guard uses of the new member,
37689         parent->fts_n_dirs_remaining, since it's not relevant for
37690         the parent of a directory specified on the command-line.
37691
37692 2009-02-17  James Youngman  <jay@gnu.org>
37693             Bruno Haible  <bruno@clisp.org>
37694
37695         * m4/include_next.m4: Reformulate comment.
37696
37697 2009-02-16  Jim Meyering  <meyering@redhat.com>
37698
37699         fts: add #if guards so that the fts_lgpl module still builds
37700         * lib/fts.c: Guard just-added hash-table-using parts with
37701         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
37702         Reported by Simon Josefsson.
37703
37704 2009-02-15  Bruno Haible  <bruno@clisp.org>
37705
37706         * modules/array-mergesort-tests: New file.
37707         * tests/test-array-mergesort.c: New file.
37708
37709         New module 'array-mergesort'.
37710         * modules/array-mergesort: New file.
37711         * lib/array-mergesort.h: New file.
37712
37713 2009-02-15  Bruno Haible  <bruno@clisp.org>
37714
37715         Fix 2009-02-07 commit.
37716         * lib/gen-uni-tables.c (output_predicate, output_category,
37717         output_combclass, output_bidi_category, output_decimal_digit,
37718         output_digit, output_numeric, output_mirror, output_scripts,
37719         output_ident_category, output_simple_mapping): Fix format directives.
37720         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
37721
37722 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
37723
37724         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
37725         fixes are available from IBM.
37726
37727 2009-02-13  Jim Meyering  <meyering@redhat.com>
37728
37729         fts: arrange not to stat non-directories in more cases
37730         This makes GNU find (when it doesn't need to stat each file)
37731         *much* more efficient at traversing reiserfs file systems.
37732         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
37733         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
37734         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
37735         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
37736         (leaf_optimization_applies): New function.
37737         (LCO_hash, LCO_compare): New helper functions.
37738         (link_count_optimize_ok): New function.
37739         (fts_stat): Initialize new member (if dir).
37740         (fts_read): Decrement parent's fts_n_dirs_remaining count if
37741         we've just stat'ed a directory.  Skip the stat call when possible.
37742         ---
37743         Note this AFS-related exchange:
37744         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
37745         and note find's pioctl call in find/fstype.c.
37746         But that is necessary only if you want to enable the
37747         optimization for AFS, and for now, I don't.
37748
37749         fts: move a function definition "up" (no semantic change)
37750         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
37751         "up" to precede upcoming use of a related function.
37752
37753 2009-02-11  Jim Meyering  <meyering@redhat.com>
37754
37755         fts: correct internal computation of nlinks (optimization-related)
37756         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
37757         whether the current entry is a directory, so don't test it.
37758
37759 2009-02-10  Bruno Haible  <bruno@clisp.org>
37760
37761         Tests for module 'uniwbrk/ulc-wordbreaks'.
37762         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
37763         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
37764         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
37765
37766         Tests for module 'uniwbrk/u32-wordbreaks'.
37767         * modules/uniwbrk/u32-wordbreaks-tests: New file.
37768         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
37769
37770         Tests for module 'uniwbrk/u16-wordbreaks'.
37771         * modules/uniwbrk/u16-wordbreaks-tests: New file.
37772         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
37773
37774         Tests for module 'uniwbrk/u8-wordbreaks'.
37775         * modules/uniwbrk/u8-wordbreaks-tests: New file.
37776         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
37777
37778 2009-02-10  Bruno Haible  <bruno@clisp.org>
37779
37780         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
37781         property.
37782         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
37783         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
37784         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
37785
37786 2009-02-10  Simon Josefsson  <simon@josefsson.org>
37787
37788         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
37789         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
37790
37791 2009-02-10  Bruno Haible  <bruno@clisp.org>
37792
37793         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
37794         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
37795         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
37796         * lib/unilbrk/u8-possible-linebreaks.c: Update.
37797         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
37798         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
37799
37800 2009-02-09  Simon Josefsson  <simon@josefsson.org>
37801
37802         * lib/sockets.h (gl_fd_to_handle): New function.
37803
37804         * tests/test-sockets.c: Call gl_fd_to_handle.
37805
37806 2009-02-09  Bruno Haible  <bruno@clisp.org>
37807
37808         * doc/havelib.texi: Document the conventions on bi-arch systems.
37809
37810 2009-02-08  Bruno Haible  <bruno@clisp.org>
37811
37812         Document the AC_LIB_LINKFLAGS macro.
37813         * doc/havelib.texi: New file, mostly written on 2005-05-24.
37814         * doc/gnulib.texi: Include it.
37815
37816 2009-02-08  Bruno Haible  <bruno@clisp.org>
37817
37818         Fix wrong order of sections, compared to TOC.
37819         * doc/gnulib.texi: Include relocatable-maint.texi after the
37820         "Regular expressions" node, not before.
37821
37822 2009-02-08  Bruno Haible  <bruno@clisp.org>
37823
37824         Tests for module 'unicase/totitle'.
37825         * modules/unicase/totitle-tests: New file.
37826
37827         Tests for module 'unicase/tolower'.
37828         * modules/unicase/tolower-tests: New file.
37829
37830         Tests for module 'unicase/toupper'.
37831         * modules/unicase/toupper-tests: New file.
37832         * tests/unicase/test-mapping-part1.h: New file.
37833         * tests/unicase/test-mapping-part2.h: New file.
37834
37835         New module 'unicase/totitle'.
37836         * modules/unicase/totitle: New file.
37837         * lib/unicase/totitle.c: New file.
37838
37839         New module 'unicase/tolower'.
37840         * modules/unicase/tolower: New file.
37841         * lib/unicase/tolower.c: New file.
37842
37843         New module 'unicase/toupper'.
37844         * modules/unicase/toupper: New file.
37845         * lib/unicase/toupper.c: New file.
37846         * lib/unicase/simple-mapping.h: New file.
37847
37848         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
37849         (mapping_table): New structure.
37850         (output_simple_mapping): New function.
37851         (main): Invoke output_simple_mapping_test and output_simple_mapping.
37852         * modules/gen-uni-tables (Description): Update.
37853         * lib/unicase/toupper.h: New file, automatically generated by
37854         gen-uni-tables.
37855         * lib/unicase/tolower.h: New file, automatically generated by
37856         gen-uni-tables.
37857         * lib/unicase/totitle.h: New file, automatically generated by
37858         gen-uni-tables.
37859         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
37860         gen-uni-tables.
37861         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
37862         gen-uni-tables.
37863         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
37864         gen-uni-tables.
37865
37866         New module 'unicase/base'.
37867         * modules/unicase/base: New file.
37868         * lib/unicase.h: New file.
37869
37870 2009-02-08  Bruno Haible  <bruno@clisp.org>
37871
37872         New module 'uniwbrk/ulc-wordbreaks'.
37873         * modules/uniwbrk/ulc-wordbreaks: New file.
37874         * lib/uniwbrk/ulc-wordbreaks.c: New file.
37875
37876         New module 'uniwbrk/u32-wordbreaks'.
37877         * modules/uniwbrk/u32-wordbreaks: New file.
37878         * lib/uniwbrk/u32-wordbreaks.c: New file.
37879
37880         New module 'uniwbrk/u16-wordbreaks'.
37881         * modules/uniwbrk/u16-wordbreaks: New file.
37882         * lib/uniwbrk/u16-wordbreaks.c: New file.
37883
37884         New module 'uniwbrk/u8-wordbreaks'.
37885         * modules/uniwbrk/u8-wordbreaks: New file.
37886         * lib/uniwbrk/u8-wordbreaks.c: New file.
37887         * lib/uniwbrk/u-wordbreaks.h: New file.
37888
37889         New module 'uniwbrk/table'.
37890         * modules/uniwbrk/table: New file.
37891         * lib/uniwbrk/wbrktable.h: New file.
37892         * lib/uniwbrk/wbrktable.c: New file.
37893
37894         New module 'uniwbrk/wordbreak-property'.
37895         * modules/uniwbrk/wordbreak-property: New file.
37896         * lib/uniwbrk/wordbreak-property.c: New file.
37897
37898         * lib/gen-uni-tables.c (WBP_*): New enum items.
37899         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
37900         (unicode_org_wbp): New variable.
37901         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
37902         New functions.
37903         (wbp_table): New structure.
37904         (output_wbp, output_wbrk_tables): New functions.
37905         (main): Accept additional argument. Invoke fill_org_wbp,
37906         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
37907         output_wbrk_tables.
37908         * modules/gen-uni-tables (Description): Update.
37909         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
37910         gen-uni-tables.
37911
37912         New module 'uniwbrk/base'.
37913         * modules/uniwbrk/base: New file.
37914         * lib/uniwbrk.h: New file.
37915
37916 2009-02-08  Bruno Haible  <bruno@clisp.org>
37917
37918         Update to Unicode 5.1.0.
37919         * lib/gen-uni-tables.c (is_property_alphabetic): Include
37920         U+2185..U+2188.
37921         (is_property_default_ignorable_code_point): Don't include characters
37922         of category Cc or Cs and not-a-characters.
37923         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
37924         U+0D79, U+109E, U+109F, U+A60C.
37925         * lib/unictype/bidi_of.h: Regenerated.
37926         * lib/unictype/blocks.h: Regenerated.
37927         * lib/unictype/categ_C.h: Regenerated.
37928         * lib/unictype/categ_Cf.h: Regenerated.
37929         * lib/unictype/categ_Cn.h: Regenerated.
37930         * lib/unictype/categ_L.h: Regenerated.
37931         * lib/unictype/categ_Ll.h: Regenerated.
37932         * lib/unictype/categ_Lm.h: Regenerated.
37933         * lib/unictype/categ_Lo.h: Regenerated.
37934         * lib/unictype/categ_Lu.h: Regenerated.
37935         * lib/unictype/categ_M.h: Regenerated.
37936         * lib/unictype/categ_Mc.h: Regenerated.
37937         * lib/unictype/categ_Me.h: Regenerated.
37938         * lib/unictype/categ_Mn.h: Regenerated.
37939         * lib/unictype/categ_N.h: Regenerated.
37940         * lib/unictype/categ_Nd.h: Regenerated.
37941         * lib/unictype/categ_Nl.h: Regenerated.
37942         * lib/unictype/categ_No.h: Regenerated.
37943         * lib/unictype/categ_P.h: Regenerated.
37944         * lib/unictype/categ_Pd.h: Regenerated.
37945         * lib/unictype/categ_Pe.h: Regenerated.
37946         * lib/unictype/categ_Pf.h: Regenerated.
37947         * lib/unictype/categ_Pi.h: Regenerated.
37948         * lib/unictype/categ_Po.h: Regenerated.
37949         * lib/unictype/categ_Ps.h: Regenerated.
37950         * lib/unictype/categ_S.h: Regenerated.
37951         * lib/unictype/categ_Sk.h: Regenerated.
37952         * lib/unictype/categ_Sm.h: Regenerated.
37953         * lib/unictype/categ_So.h: Regenerated.
37954         * lib/unictype/categ_of.h: Regenerated.
37955         * lib/unictype/combining.h: Regenerated.
37956         * lib/unictype/ctype_alnum.h: Regenerated.
37957         * lib/unictype/ctype_alpha.h: Regenerated.
37958         * lib/unictype/ctype_graph.h: Regenerated.
37959         * lib/unictype/ctype_lower.h: Regenerated.
37960         * lib/unictype/ctype_print.h: Regenerated.
37961         * lib/unictype/ctype_punct.h: Regenerated.
37962         * lib/unictype/ctype_upper.h: Regenerated.
37963         * lib/unictype/decdigit.h: Regenerated.
37964         * lib/unictype/digit.h: Regenerated.
37965         * lib/unictype/mirror.h: Regenerated.
37966         * lib/unictype/numeric.h: Regenerated.
37967         * lib/unictype/pr_alphabetic.h: Regenerated.
37968         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
37969         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
37970         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
37971         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
37972         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
37973         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
37974         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
37975         * lib/unictype/pr_combining.h: Regenerated.
37976         * lib/unictype/pr_dash.h: Regenerated.
37977         * lib/unictype/pr_decimal_digit.h: Regenerated.
37978         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
37979         * lib/unictype/pr_deprecated.h: Regenerated.
37980         * lib/unictype/pr_diacritic.h: Regenerated.
37981         * lib/unictype/pr_extender.h: Regenerated.
37982         * lib/unictype/pr_format_control.h: Regenerated.
37983         * lib/unictype/pr_grapheme_base.h: Regenerated.
37984         * lib/unictype/pr_grapheme_extend.h: Regenerated.
37985         * lib/unictype/pr_grapheme_link.h: Regenerated.
37986         * lib/unictype/pr_id_continue.h: Regenerated.
37987         * lib/unictype/pr_id_start.h: Regenerated.
37988         * lib/unictype/pr_ideographic.h: Regenerated.
37989         * lib/unictype/pr_ignorable_control.h: Regenerated.
37990         * lib/unictype/pr_lowercase.h: Regenerated.
37991         * lib/unictype/pr_math.h: Regenerated.
37992         * lib/unictype/pr_numeric.h: Regenerated.
37993         * lib/unictype/pr_other_alphabetic.h: Regenerated.
37994         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
37995         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
37996         * lib/unictype/pr_other_id_continue.h: Regenerated.
37997         * lib/unictype/pr_other_lowercase.h: Regenerated.
37998         * lib/unictype/pr_other_math.h: Regenerated.
37999         * lib/unictype/pr_punctuation.h: Regenerated.
38000         * lib/unictype/pr_sentence_terminal.h: Regenerated.
38001         * lib/unictype/pr_soft_dotted.h: Regenerated.
38002         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
38003         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
38004         * lib/unictype/pr_unified_ideograph.h: Regenerated.
38005         * lib/unictype/pr_uppercase.h: Regenerated.
38006         * lib/unictype/pr_xid_continue.h: Regenerated.
38007         * lib/unictype/pr_xid_start.h: Regenerated.
38008         * lib/unictype/pr_zero_width.h: Regenerated.
38009         * lib/unictype/scripts.h: Regenerated.
38010         * lib/unictype/scripts_byname.gperf: Regenerated.
38011         * lib/unictype/sy_java_ident.h: Regenerated.
38012         * lib/unilbrk/lbrkprop1.h: Regenerated.
38013         * lib/unilbrk/lbrkprop2.h: Regenerated.
38014         * tests/unictype/test-categ_C.c: Regenerated.
38015         * tests/unictype/test-categ_Cf.c: Regenerated.
38016         * tests/unictype/test-categ_Cn.c: Regenerated.
38017         * tests/unictype/test-categ_L.c: Regenerated.
38018         * tests/unictype/test-categ_Ll.c: Regenerated.
38019         * tests/unictype/test-categ_Lm.c: Regenerated.
38020         * tests/unictype/test-categ_Lo.c: Regenerated.
38021         * tests/unictype/test-categ_Lu.c: Regenerated.
38022         * tests/unictype/test-categ_M.c: Regenerated.
38023         * tests/unictype/test-categ_Mc.c: Regenerated.
38024         * tests/unictype/test-categ_Me.c: Regenerated.
38025         * tests/unictype/test-categ_Mn.c: Regenerated.
38026         * tests/unictype/test-categ_N.c: Regenerated.
38027         * tests/unictype/test-categ_Nd.c: Regenerated.
38028         * tests/unictype/test-categ_Nl.c: Regenerated.
38029         * tests/unictype/test-categ_No.c: Regenerated.
38030         * tests/unictype/test-categ_P.c: Regenerated.
38031         * tests/unictype/test-categ_Pd.c: Regenerated.
38032         * tests/unictype/test-categ_Pe.c: Regenerated.
38033         * tests/unictype/test-categ_Pf.c: Regenerated.
38034         * tests/unictype/test-categ_Pi.c: Regenerated.
38035         * tests/unictype/test-categ_Po.c: Regenerated.
38036         * tests/unictype/test-categ_Ps.c: Regenerated.
38037         * tests/unictype/test-categ_S.c: Regenerated.
38038         * tests/unictype/test-categ_Sk.c: Regenerated.
38039         * tests/unictype/test-categ_Sm.c: Regenerated.
38040         * tests/unictype/test-categ_So.c: Regenerated.
38041         * tests/unictype/test-ctype_alnum.c: Regenerated.
38042         * tests/unictype/test-ctype_alpha.c: Regenerated.
38043         * tests/unictype/test-ctype_graph.c: Regenerated.
38044         * tests/unictype/test-ctype_lower.c: Regenerated.
38045         * tests/unictype/test-ctype_print.c: Regenerated.
38046         * tests/unictype/test-ctype_punct.c: Regenerated.
38047         * tests/unictype/test-ctype_upper.c: Regenerated.
38048         * tests/unictype/test-decdigit.h: Regenerated.
38049         * tests/unictype/test-digit.h: Regenerated.
38050         * tests/unictype/test-numeric.h: Regenerated.
38051         * tests/unictype/test-pr_alphabetic.c: Regenerated.
38052         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
38053         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
38054         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
38055         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
38056         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
38057         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
38058         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
38059         * tests/unictype/test-pr_combining.c: Regenerated.
38060         * tests/unictype/test-pr_dash.c: Regenerated.
38061         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
38062         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
38063         * tests/unictype/test-pr_deprecated.c: Regenerated.
38064         * tests/unictype/test-pr_diacritic.c: Regenerated.
38065         * tests/unictype/test-pr_extender.c: Regenerated.
38066         * tests/unictype/test-pr_format_control.c: Regenerated.
38067         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
38068         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
38069         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
38070         * tests/unictype/test-pr_id_continue.c: Regenerated.
38071         * tests/unictype/test-pr_id_start.c: Regenerated.
38072         * tests/unictype/test-pr_ideographic.c: Regenerated.
38073         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
38074         * tests/unictype/test-pr_lowercase.c: Regenerated.
38075         * tests/unictype/test-pr_math.c: Regenerated.
38076         * tests/unictype/test-pr_numeric.c: Regenerated.
38077         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
38078         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
38079         Regenerated.
38080         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
38081         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
38082         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
38083         * tests/unictype/test-pr_other_math.c: Regenerated.
38084         * tests/unictype/test-pr_punctuation.c: Regenerated.
38085         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
38086         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
38087         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
38088         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
38089         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
38090         * tests/unictype/test-pr_uppercase.c: Regenerated.
38091         * tests/unictype/test-pr_xid_continue.c: Regenerated.
38092         * tests/unictype/test-pr_xid_start.c: Regenerated.
38093         * tests/unictype/test-pr_zero_width.c: Regenerated.
38094
38095         Update to Unicode 5.1.0.
38096         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
38097         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
38098         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
38099         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
38100         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
38101         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
38102         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
38103         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
38104         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
38105         (nonspacing_table_ind): Update.
38106         * tests/uniwidth/test-uc_width2.sh: Update expected result.
38107
38108         Update to Unicode 5.1.0.
38109         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
38110         code transform.
38111         * lib/uniname/uniname.c (unicode_character_name,
38112         unicode_name_character): Add the range 0x1Fxxx to the code transform.
38113         * lib/uniname/uninames.h: Regenerated.
38114         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
38115
38116 2009-02-07  Bruno Haible  <bruno@clisp.org>
38117
38118         Merge gen-ctype and gen-lbrk into a single program.
38119         * lib/gen-uni-tables.c: New file, incorporating
38120         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
38121         Add directory prefixes to the names of the generated files.
38122         * lib/unictype/gen-ctype.c: Remove file.
38123         * lib/unilbrk/gen-lbrk.c: Remove file.
38124         * modules/gen-uni-tables: New file.
38125         * modules/unictype/gen-ctype: Remove file.
38126         * modules/unilbrk/gen-lbrk: Remove file.
38127
38128 2009-02-07  Bruno Haible  <bruno@clisp.org>
38129
38130         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
38131
38132         New module 'unistr/u32-strcoll'.
38133         * modules/unistr/u32-strcoll: New file.
38134         * lib/unistr/u32-strcoll.c: New file.
38135
38136         New module 'unistr/u16-strcoll'.
38137         * modules/unistr/u16-strcoll: New file.
38138         * lib/unistr/u16-strcoll.c: New file.
38139
38140         New module 'unistr/u8-strcoll'.
38141         * modules/unistr/u8-strcoll: New file.
38142         * lib/unistr/u8-strcoll.c: New file.
38143         * lib/unistr/u-strcoll.h: New file.
38144
38145 2009-02-07  Bruno Haible  <bruno@clisp.org>
38146
38147         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
38148         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
38149         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
38150         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
38151         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
38152         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
38153
38154 2009-02-07  Bruno Haible  <bruno@clisp.org>
38155
38156         Make 64-bit clean.
38157         * lib/unictype/gen-ctype.c (output_predicate, output_category,
38158         output_combclass, output_bidi_category, output_decimal_digit,
38159         output_digit, output_numeric, output_mirror, output_scripts,
38160         output_ident_category): Use proper width specifier in format strings.
38161
38162 2009-02-07  Bruno Haible  <bruno@clisp.org>
38163
38164         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
38165         failure behaviour.
38166
38167 2009-02-07  Jim Meyering  <meyering@redhat.com>
38168
38169         regex: avoid compilation failure with upcoming gcc-4.4
38170         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
38171         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
38172         "... error: integer overflow in preprocessor expression".
38173
38174 2009-02-05  Ben Pfaff  <blp@gnu.org>
38175
38176         Fix link errors on Windows when close module is used.
38177         * modules/close: Add $(LIB_CLOSE) to Link section.
38178         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
38179         $(LIB_CLOSE) on Windows.
38180
38181 2009-02-05  Jim Meyering  <meyering@redhat.com>
38182
38183         still avoid unused-parameter warnings, but do it cleanly
38184         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
38185         (get_fs_usage): Cast to void instead.
38186         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
38187         (dev_from_mount_options, read_file_system_list): Cast to void.
38188         Prompted by Bruno Haible.
38189
38190 2009-02-04  Jim Meyering  <meyering@redhat.com>
38191
38192         fsusage.c: correct copyright year
38193         * lib/fsusage.c: Reflect year in which the change is pushed into
38194
38195         avoid misc. warnings
38196         * lib/fsusage.c (UNUSED_PARAM): Define.
38197         (get_fs_usage): Mark parameter "disk" as unused.
38198         * lib/getugroups.c (getgrent): Use "void" in prototype.
38199         * lib/mountlist.c: Mark unused parameters.
38200         (read_file_system_list): Declare a local with "const".
38201         * lib/nanosleep.c (getnow): Declare static.
38202         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
38203
38204         dirfd: set errno upon failure
38205         * lib/dirfd.c: Include <errno.h>.
38206         Set errno to ENOTSUP when returning -1.
38207         * modules/dirfd (Depends-on): Add errno.
38208         Suggested by John Kodis <kodis@comcast.net>.
38209
38210 2009-02-01  Bruno Haible  <bruno@clisp.org>
38211
38212         Don't assume sizeof (long) >= sizeof (void *).
38213         * lib/memcmp.c: Include stdint.h.
38214         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
38215         srcp2 to 'const byte *'.
38216         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
38217         types to uintptr_t.
38218         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
38219         * modules/memcmp (Depends-on): Add stdint.
38220         Reported by Ozkan Sezer <sezeroz@gmail.com>.
38221
38222 2009-01-30  Eric Blake  <ebb9@byu.net>
38223
38224         fix more require-before-expand issues
38225         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
38226         expand, AC_PROG_AWK.
38227         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
38228
38229 2009-01-28  Eric Blake  <ebb9@byu.net>
38230
38231         version-etc: use consistent URL formatting
38232         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
38233         Improve formatting.  Use fputs for string without %.
38234
38235 2009-01-28  Jim Meyering  <meyering@redhat.com>
38236
38237         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
38238         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
38239         "underquoted definition of NAME" from autoconf-2.59.
38240
38241 2009-01-28  Bruno Haible  <bruno@clisp.org>
38242
38243         * doc/gnulib.texi: Add "Obsolete modules" to index.
38244
38245 2009-01-28  Jim Meyering  <meyering@redhat.com>
38246
38247         useless-if-before-free: recognize more variants
38248         * build-aux/useless-if-before-free: Also recognize e.g.,
38249         if (NULL != p) free (p);
38250
38251 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
38252
38253         test-getaddrinfo: skip (don't fail) this test when there's no network
38254         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
38255         on the presumption that it means you lack network access.
38256
38257 2009-01-26  Jim Meyering  <meyering@redhat.com>
38258
38259         fflush: avoid warnings on modern systems
38260         * lib/fflush.c (rpl_fflush): Move declarations of locals,
38261         pos and result, into scopes where they're used.
38262
38263 2009-01-26  Eric Blake  <ebb9@byu.net>
38264
38265         Silence warning reintroduced by recent extensions patch.
38266         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
38267         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
38268         autoconf.
38269
38270         Backport improved autoconf semantics of AC_DEFUN_ONCE.
38271         * m4/00gnulib.m4: New file.
38272         * gnulib-tool (func_get_filelist): Always use it.
38273         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
38274         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
38275
38276 2009-01-25  Bruno Haible  <bruno@clisp.org>
38277
38278         Make test-quotearg work on MacOS X and AIX.
38279         * tests/test-quotearg.sh: New file.
38280         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
38281         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
38282         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
38283         include <libintl.h>.
38284         (fake_locale): Remove variable.
38285         (gettext, dgettext, dcgettext): Remove functions.
38286         (main): Instead of setting a fake locale, set a real locale. Call
38287         textdomain and bindtextdomain.
38288         * modules/quotearg-tests (Files): Add the new files.
38289         (Depends-on): Add gettext, setenv, unsetenv.
38290         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
38291         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
38292         Augment TESTS_ENVIRONMENT.
38293
38294 2009-01-25  Bruno Haible  <bruno@clisp.org>
38295
38296         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
38297         fr_FR.ISO8859-1 locale on MacOS X.
38298         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
38299         ja_JP.eucJP locale on MacOS X.
38300         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
38301         zh_CN.GB18030 locale on MacOS X.
38302
38303 2009-01-25  Bruno Haible  <bruno@clisp.org>
38304
38305         Avoid link errors on MacOS X 10.3.
38306         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
38307         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
38308
38309 2009-01-25  Bruno Haible  <bruno@clisp.org>
38310
38311         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
38312         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
38313         * modules/pipe (Files): Remove m4/posix_spawn.m4.
38314         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
38315         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
38316         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
38317         posix_spawnattr_init, posix_spawnattr_setsigmask,
38318         posix_spawnattr_setflags, posix_spawnattr_destroy.
38319
38320         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
38321         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
38322         * modules/execute (Files): Remove m4/posix_spawn.m4.
38323         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
38324         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
38325         posix_spawnattr_init, posix_spawnattr_setsigmask,
38326         posix_spawnattr_setflags, posix_spawnattr_destroy.
38327
38328 2009-01-25  Bruno Haible  <bruno@clisp.org>
38329
38330         * lib/glthread/threadlib.c: Include <stdlib.h>.
38331
38332 2009-01-25  Bruno Haible  <bruno@clisp.org>
38333
38334         * lib/glthread/threadlib.c (dummy): New declaration.
38335
38336 2009-01-25  Bruno Haible  <bruno@clisp.org>
38337
38338         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
38339         multibyte characters also for the GB18030 encoding. Don't crash when
38340         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
38341
38342 2009-01-25  Bruno Haible  <bruno@clisp.org>
38343
38344         Avoid redefining 'struct random_data' on OSF/1 5.1.
38345         * lib/stdlib.in.h: Include <random.h> if it exists.
38346         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
38347         HAVE_RANDOM_H. Include <random.h> when testing whether
38348         'struct random_data' exists.
38349         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
38350
38351 2009-01-25  Bruno Haible  <bruno@clisp.org>
38352
38353         Don't install charset.alias on MacOS X >= 10.3.
38354         * lib/localcharset.c (DARWIN7): New macro.
38355         (get_charset_aliases): Hardcode the result for Darwin7.
38356         * modules/localcharset (install-exec-local): Don't install
38357         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
38358
38359 2009-01-25  Bruno Haible  <bruno@clisp.org>
38360
38361         Don't install charset.alias on mingw and Cygwin.
38362         * modules/localcharset (install-exec-local): Don't install
38363         charset.alias on mingw and Cygwin, if the file does not yet exist.
38364         The result for these platforms is hardcoded in localcharset.c.
38365
38366 2009-01-25  Bruno Haible  <bruno@clisp.org>
38367
38368         Make it possible again to use AC_GNU_SOURCE together with gnulib.
38369         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
38370         before requiring AC_USE_SYSTEM_EXTENSIONS.
38371
38372 2009-01-25  Jim Meyering  <meyering@redhat.com>
38373
38374         c-strtod: avoid warnings
38375         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
38376         "assignment discards qualifiers from pointer target type" warnings.
38377
38378 2009-01-24  Bruno Haible  <bruno@clisp.org>
38379
38380         Add support for non-UTF-8 locales on MacOS X.
38381         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
38382         canonical encodings. For Darwin 7 and newer, don't map traditional
38383         encodings to UTF-8.
38384         Reported by Vincent Lefevre <vincent@vinc17.org>
38385         at <http://savannah.gnu.org/bugs/?25235>.
38386
38387 2009-01-24  Bruno Haible  <bruno@clisp.org>
38388
38389         * doc/gnulib.texi (Obsolete modules): New section.
38390         Reported by Mike Frysinger <vapier@gentoo.org>.
38391
38392 2009-01-24  Bruno Haible  <bruno@clisp.org>
38393
38394         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
38395         (%.dvi): New rule.
38396
38397 2009-01-24  Bruno Haible  <bruno@clisp.org>
38398
38399         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
38400         Reported by Eric Blake.
38401
38402 2009-01-24  Bruno Haible  <bruno@clisp.org>
38403
38404         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
38405         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
38406         Reported by Gary V. Vaughan <gary@gnu.org>.
38407
38408 2009-01-24  Bruno Haible  <bruno@clisp.org>
38409
38410         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
38411
38412 2009-01-23  Bruno Haible  <bruno@clisp.org>
38413
38414         Make c-strtod, c-strtold usable in libraries.
38415         * lib/c-strtod.c: Include string.h instead of xalloc.h.
38416         (C_STRTOD): Call strdup instead of xstrdup.
38417         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
38418         * modules/c-strtold (Depends-on): Likewise.
38419         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
38420         * NEWS: Mention the change.
38421         Reported by Michael Gold <mgold@ncf.ca>.
38422
38423 2009-01-23  Jim Meyering  <meyering@redhat.com>
38424
38425         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
38426         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
38427         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
38428
38429 2009-01-23  Simon Josefsson  <simon@josefsson.org>
38430
38431         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
38432         GNU CoreUtils.
38433         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
38434         * modules/version-etc (Description): Update.
38435
38436 2009-01-22  Bruno Haible  <bruno@clisp.org>
38437
38438         Cache the C locale object.
38439         * lib/c-strtod.c (c_locale_cache): New variable.
38440         (c_locale): New function.
38441         (C_STRTOD): Use it, and don't call freelocale.
38442         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
38443         Suggested by Paolo Bonzini.
38444
38445 2009-01-21  Bruno Haible  <bruno@clisp.org>
38446
38447         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
38448         conditions other than overflow.
38449
38450 2009-01-21  Bruno Haible  <bruno@clisp.org>
38451
38452         * lib/c-strtod.c: Include errno.h.
38453         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
38454         value from STRTOD_L and STRTOD.
38455
38456 2009-01-21  Bruno Haible  <bruno@clisp.org>
38457         and Jim Meyering  <meyering@redhat.com>
38458
38459         nanosleep: skip configure test (fail it) for apple universal builds
38460         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
38461         universal builds, assume that nanosleep does not work.
38462         * modules/nanosleep (Depends-on): Add multiarch.
38463
38464         mktime: skip configure test (fail it) for apple universal builds
38465         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
38466         universal builds, assume that mktime does not work.
38467         * modules/mktime (Depends-on): Add multiarch.
38468
38469 2009-01-21  Eric Blake  <ebb9@byu.net>
38470
38471         multiarch: avoid expand-before-require warning
38472         * modules/multiarch (configure.ac): Require, rather than expand,
38473         gl_MULTIARCH.
38474         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
38475         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
38476         enforce that all clients require it.  Partial reversion of
38477         2008-12-29 patch.
38478
38479         error: avoid expand-before-require warning
38480         * modules/errno (configure.ac): Require, rather than expand,
38481         gl_HEADER_ERRNO_H.
38482         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
38483         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
38484         enforce that all clients require it.
38485
38486         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
38487         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
38488         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
38489         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
38490
38491 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
38492
38493         Revert:
38494         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
38495
38496         regex: do not depend on obsolete modules.
38497         * modules/regex: Remove memcmp and memmove.
38498
38499 2009-01-20  Bruno Haible  <bruno@clisp.org>
38500
38501         Make the 'link' module link on Windows NT 4.
38502         * lib/link.c (_WIN32_WINNT): Don't define.
38503         (CreateHardLinkFuncType): New type.
38504         (CreateHardLinkFunc, initialized): New variables.
38505         (initialize): New function.
38506         (link): Invoke CreateHardLink indirectly through the function pointer.
38507
38508 2009-01-20  Bruno Haible  <bruno@clisp.org>
38509
38510         Fix compilation failure on mingw.
38511         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
38512
38513 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
38514
38515         * doc/c-strtod.texi: Mention a couple of restrictions.
38516
38517 2009-01-20  Jim Meyering  <meyering@redhat.com>
38518
38519         gettimeofday: move more declarations out of functions
38520         * lib/gettimeofday.c: Move extern declarations of tzset and
38521         gmtime out of containing functions.  Prompted by Bruno Haible.
38522
38523 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
38524
38525         regex: do not depend on obsolete modules.
38526         * modules/regex: Remove memcmp and memmove.
38527
38528 2009-01-19  Bruno Haible  <bruno@clisp.org>
38529
38530         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
38531         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
38532         gl_BIGENDIAN, not AC_C_BIGENDIAN.
38533         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
38534         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
38535
38536 2009-01-19  Bruno Haible  <bruno@clisp.org>
38537
38538         * tests/test-link.c: Include <errno.h>.
38539         (main): Exit with code 77 when a hard link cannot be created due to
38540         the file system.
38541         * tests/test-link.sh: Skip test when a hard link cannot be created due
38542         to the file system.
38543         Suggested by Eric Blake.
38544
38545 2009-01-19  Martin Lambers  <marlam@marlam.de>
38546
38547         * modules/link-tests: New file.
38548         * tests/test-link.sh: New file.
38549         * tests/test-link.c: New file.
38550
38551 2009-01-19  Eric Blake  <ebb9@byu.net>
38552
38553         doc: mention another function added in cygwin 1.7.0
38554         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
38555         Another new function in cygwin 1.7.
38556
38557 2009-01-19  Bruno Haible  <bruno@clisp.org>
38558
38559         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
38560         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
38561         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
38562         gl_BIGENDIAN, not AC_C_BIGENDIAN.
38563         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
38564         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
38565         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
38566         * m4/md4.m4 (gl_MD4): Likewise.
38567         * m4/md5.m4 (gl_MD5): Likewise.
38568         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
38569         * m4/sha1.m4 (gl_SHA1): Likewise.
38570         * m4/sha256.m4 (gl_SHA256): Likewise.
38571         * m4/sha512.m4 (gl_SHA512): Likewise.
38572
38573 2009-01-19  Bruno Haible  <bruno@clisp.org>
38574
38575         * modules/uniname/uniname-tests (Depends-on): Add progname.
38576         * tests/uniname/test-uninames.c: Include progname.h.
38577         (main): Call set_program_name.
38578
38579         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
38580         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
38581         (main): Call set_program_name.
38582
38583         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
38584         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
38585         (main): Call set_program_name.
38586
38587         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
38588         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
38589         (main): Call set_program_name.
38590
38591         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
38592         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
38593         (main): Call set_program_name.
38594
38595         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
38596         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
38597         (main): Call set_program_name.
38598
38599         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
38600         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
38601         (main): Call set_program_name.
38602
38603         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
38604         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
38605         (main): Call set_program_name.
38606
38607         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
38608         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
38609         (main): Call set_program_name.
38610
38611 2009-01-19  Eric Blake  <ebb9@byu.net>
38612
38613         test-unistd: test previous patch
38614         * tests/test-unistd.c: Test *_FILENO macros.
38615
38616         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
38617         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38618         Guarantee a definition.
38619         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
38620         * modules/unistd-safer (Depends-on): Add dependency on unistd.
38621         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
38622         * lib/dup-safer.c (STDERR_FILENO): Likewise.
38623         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38624         Likewise.
38625         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
38626         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
38627         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
38628         Likewise.
38629         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
38630         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
38631         (STDERR_FILENO): Likewise.
38632         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
38633         (STDERR_FILENO): Likewise.
38634         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
38635         (STDERR_FILENO): Likewise.
38636         Reported by Elbert Pol.
38637
38638 2009-01-19  Eric Blake  <ebb9@byu.net>
38639
38640         doc: mention more functions added in cygwin 1.7.0
38641         * doc/posix-functions/abort.texi (abort): Update wording related
38642         to cygwin.
38643         * doc/posix-functions/daylight.texi (daylight): Likewise.
38644         * doc/posix-functions/optarg.texi (optarg): Likewise.
38645         * doc/posix-functions/optarg.texi (opterr): Likewise.
38646         * doc/posix-functions/optarg.texi (optind): Likewise.
38647         * doc/posix-functions/optarg.texi (optopt): Likewise.
38648         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
38649         worked in 1.5.x, and was withdrawn in 1.7.
38650         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
38651         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
38652         cygwin versions.
38653         * doc/posix-functions/perror.texi (perror): Likewise.
38654         * doc/posix-functions/printf.texi (printf): Likewise.
38655         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
38656         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
38657         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
38658         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
38659         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
38660         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
38661         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
38662         Likewise.
38663         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
38664         Likewise.
38665         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
38666         this function.
38667         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
38668         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
38669         Likewise.
38670         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
38671         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
38672         * doc/posix-functions/confstr.texi (confstr): Likewise.
38673         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
38674         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
38675         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
38676         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
38677         * doc/posix-functions/fputws.texi (fputws): Likewise.
38678         * doc/posix-functions/fwide.texi (fwide): Likewise.
38679         * doc/posix-functions/getwc.texi (getwc): Likewise.
38680         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
38681         * doc/posix-functions/putwc.texi (putwc): Likewise.
38682         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
38683         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
38684         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
38685         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
38686         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
38687         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
38688         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
38689         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
38690         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
38691         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
38692         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
38693
38694 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
38695
38696         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
38697         * lib/ioctl.c: Include <sys/ioctl.h>.
38698
38699 2009-01-19  Simon Josefsson  <simon@josefsson.org>
38700
38701         * modules/getdate-tests (Depends-on): Add progname.
38702         * tests/test-getdate.c: Use progname module, to avoid link errors
38703         on non-glibc systems.
38704
38705 2009-01-18  Simon Josefsson  <simon@josefsson.org>
38706
38707         * modules/filenamecat-tests (Depends-on): Add progname.
38708         * modules/fstrcmp-tests (Depends-on): Likewise.
38709
38710         * tests/test-filenamecat.c: Use progname module, to avoid link
38711         errors on non-glibc systems.
38712         * tests/test-fstrcmp.c: Likewise.
38713
38714 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
38715
38716         gettimeofday: avoid warning: nested extern declaration of 'localtime'
38717         * lib/gettimeofday.c: Move extern declaration out of function.
38718
38719 2009-01-18  Bruno Haible  <bruno@clisp.org>
38720
38721         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
38722         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
38723         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
38724
38725 2009-01-18  Bruno Haible  <bruno@clisp.org>
38726
38727         * lib/strftime.c (MEMPCPY): Remove unused macro.
38728         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
38729
38730 2009-01-18  Martin Lambers  <marlam@marlam.de>
38731
38732         New module 'link'.
38733         * lib/unistd.in.h (link): New declaration.
38734         * lib/link.c: New file.
38735         * m4/link.m4: New file.
38736         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
38737         HAVE_LINK.
38738         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
38739         * modules/link: New file.
38740         * doc/posix-functions/link.texi: Mention the new module.
38741
38742 2009-01-18  Bruno Haible  <bruno@clisp.org>
38743
38744         * tests/test-avltree_list.c (main): Call set_program_name.
38745         * tests/test-avltree_oset.c (main): Likewise.
38746         * tests/test-obstack-printf.c: Include progname.h.
38747         (main): Call set_program_name.
38748         * tests/test-quotearg.c: Include progname.h.
38749         (main): Call set_program_name.
38750         * tests/test-xmemdup0.c: Include progname.h.
38751         (main): Call set_program_name.
38752
38753 2009-01-18  Bruno Haible  <bruno@clisp.org>
38754
38755         New module 'alphasort'.
38756         * lib/dirent.in.h (alphasort): New declaration.
38757         * lib/alphasort.c: New file, from glibc with modifications.
38758         * m4/alphasort.m4: New file.
38759         * modules/alphasort: New file.
38760         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
38761         HAVE_ALPHASORT.
38762         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
38763         HAVE_ALPHASORT.
38764         * doc/posix-functions/alphasort.texi: Mention the new module and the
38765         portability problems.
38766
38767 2009-01-18  Bruno Haible  <bruno@clisp.org>
38768
38769         New module 'scandir'.
38770         * lib/dirent.in.h (scandir): New declaration.
38771         * lib/scandir.c: New file, from glibc with modifications.
38772         * m4/scandir.m4: New file.
38773         * modules/scandir: New file.
38774         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
38775         HAVE_SCANDIR.
38776         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
38777         HAVE_SCANDIR.
38778         * doc/posix-functions/scandir.texi: Mention the new module and the
38779         portability problems.
38780
38781 2009-01-17  Bruno Haible  <bruno@clisp.org>
38782
38783         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
38784         Update documentation.
38785         (func_remove_suffix): Escape all dots in the suffix. Update
38786         documentation.
38787         (func_filter_filelist): Update documentation.
38788         Reported by Ralf Wildenhues.
38789
38790 2009-01-17  Bruno Haible  <bruno@clisp.org>
38791
38792         * modules/dprintf-posix-tests: New file.
38793         * tests/test-dprintf-posix.sh: New file.
38794         * tests/test-dprintf-posix.c: New file.
38795
38796         New modules 'dprintf', 'dprintf-posix'.
38797         * lib/stdio.in.h (dprintf): New declaration.
38798         * lib/dprintf.c: New file.
38799         * m4/dprintf.m4: New file.
38800         * m4/dprintf-posix.m4: New file.
38801         * modules/dprintf: New file.
38802         * modules/dprintf-posix: New file.
38803         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
38804         HAVE_DPRINTF, REPLACE_DPRINTF.
38805         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
38806         HAVE_DPRINTF, REPLACE_DPRINTF.
38807         * doc/posix-functions/dprintf.texi: Mention the new modules.
38808
38809 2009-01-17  Bruno Haible  <bruno@clisp.org>
38810
38811         * modules/vdprintf-posix-tests: New file.
38812         * tests/test-vdprintf-posix.sh: New file.
38813         * tests/test-vdprintf-posix.c: New file.
38814
38815         New modules 'vdprintf', 'vdprintf-posix'.
38816         * lib/stdio.in.h (vdprintf): New declaration.
38817         * lib/vdprintf.c: New file.
38818         * m4/vdprintf.m4: New file.
38819         * m4/vdprintf-posix.m4: New file.
38820         * modules/vdprintf: New file.
38821         * modules/vdprintf-posix: New file.
38822         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
38823         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38824         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
38825         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38826         * doc/posix-functions/vdprintf.texi: Mention the new modules.
38827
38828 2009-01-17  Bruno Haible  <bruno@clisp.org>
38829
38830         Fix replacement of fopen on mingw.
38831         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
38832         mingw.
38833
38834 2009-01-17  Bruno Haible  <bruno@clisp.org>
38835
38836         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
38837         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
38838
38839 2009-01-17  Bruno Haible  <bruno@clisp.org>
38840
38841         Avoid test-fflush2.sh failure on mingw.
38842         * tests/test-fflush2.c: Include binary-io.h.
38843         (main): Put standard input into binary mode.
38844         * modules/fflush-tests (Depends-on): Add binary-io.
38845
38846 2009-01-17  Bruno Haible  <bruno@clisp.org>
38847
38848         * lib/wchar.in.h: In another particular situation, include only the
38849         system's <wchar.h> file.
38850         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
38851         Reported by Albert Chin-A-Young <china@thewrittenword.com>
38852         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
38853
38854 2009-01-17  Bruno Haible  <bruno@clisp.org>
38855
38856         Support for stripping executables in --enable-relocatable.
38857         * build-aux/install-reloc: Expect one more argument, or an environment
38858         variable RELOC_STRIP_PROG. If set, strip the destination program and
38859         its wrapper.
38860         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
38861         RELOC_STRIP_PROG.
38862         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
38863         to set RELOCATABLE_STRIP.
38864         * NEWS: Mention the new Makefile requirement.
38865
38866 2009-01-17  Bruno Haible  <bruno@clisp.org>
38867
38868         * build-aux/install-reloc: Remove debugging information left over by
38869         C compiler on MacOS X.
38870
38871 2009-01-17  Bruno Haible  <bruno@clisp.org>
38872
38873         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
38874         * lib/progreloc.c (find_executable): Fix type of pointer passed to
38875         _NSGetExecutablePath.
38876
38877 2009-01-16  Jim Meyering  <meyering@redhat.com>
38878
38879         strerror: avoid warnings about discarding "const"
38880         * lib/strerror.c (rpl_strerror): Instead of returning a const
38881         string from each and every "case", use a variable, and add a single
38882         cast after the switch.
38883
38884 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
38885
38886         * lib/arpa_inet.in.h: Add extern "C" block for C++.
38887
38888 2009-01-16  Bruno Haible  <bruno@clisp.org>
38889
38890         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
38891         array initializer syntax that also works in C++ mode.
38892         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38893
38894 2009-01-16  Jim Meyering  <meyering@redhat.com>
38895
38896         poll: suppress a warning
38897         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
38898         to ignore "...unsigned expression < 0 is always false" warnings.
38899
38900 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
38901
38902         poll: remove declarations of unused variables
38903         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
38904         sockbuf and optlen.
38905
38906 2009-01-15  Bruno Haible  <bruno@clisp.org>
38907
38908         Make fflush-after-ungetc POSIX compliant on BSD systems.
38909         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
38910         (clear_ungetc_buffer): Implement also for other systems.
38911         (rpl_fflush): On glibc systems, invoke
38912         clear_ungetc_buffer_preserving_position. Otherwise, invoke
38913         clear_ungetc_buffer after fetching the stream's position, not before.
38914
38915 2009-01-15  Bruno Haible  <bruno@clisp.org>
38916
38917         Make fflush-after-ungetc POSIX compliant on glibc systems.
38918         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
38919         after ungetc.
38920         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
38921         (rpl_fflush): On glibc systems, simply call the system's fflush
38922         function after clearing the ungetc buffer.
38923         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
38924         Instead, lseek only to the end of file, then use the system's fseeko
38925         for the rest. On glibc systems, reset the EOF indicator bit.
38926
38927 2009-01-15  Jim Meyering  <meyering@redhat.com>
38928
38929         openmp.m4: revert quote-adding change, for portability to older autoconf
38930         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
38931         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
38932         Simon Josefsson noticed the problem when using autoconf-2.61.
38933
38934 2009-01-15  Bruno Haible  <bruno@clisp.org>
38935
38936         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
38937         * tests/test-fflush2.c (ASSERT): Always fail.
38938         (main): Add two tests for fflush() after ungetc(), taking into account
38939         the Austin Group's clarification.
38940         Suggested by Eric Blake.
38941
38942 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
38943
38944         mktime.m4: remove K&R-style function prototypes
38945         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
38946         for the Sun C++ compiler.
38947
38948 2009-01-14  Bruno Haible  <bruno@clisp.org>
38949
38950         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
38951         while including <wchar.h>.
38952         * lib/wchar.in.h: In two particular situations on HP-UX, include only
38953         the system's <wchar.h> file.
38954         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38955
38956 2009-01-14  Bruno Haible  <bruno@clisp.org>
38957
38958         * m4/csharp.m4: Don't mention gettext on the serial number line.
38959         * m4/csharpexec.m4: Likewise.
38960         * m4/eaccess.m4: Likewise.
38961         * m4/javaexec.m4: Likewise.
38962         * m4/sig_atomic_t.m4: Likewise.
38963         * m4/tmpdir.m4: Likewise.
38964         * m4/intldir.m4: Bump gettext version.
38965         * m4/lib-ld.m4: Likewise.
38966
38967 2009-01-14  Bruno Haible  <bruno@clisp.org>
38968
38969         * lib/progname.c (set_program_name): Add more comments.
38970         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
38971
38972 2009-01-14  Simon Josefsson  <simon@josefsson.org>
38973
38974         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
38975         were sys/stat.h does not define it.
38976
38977 2009-01-14  Jim Meyering  <meyering@redhat.com>
38978
38979         many *.m4 files: improve m4 quoting
38980         99% of this change was performed by running the following commands:
38981         git ls-files | grep '\.m4$' | xargs perl -pi \
38982           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
38983           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
38984           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
38985           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
38986         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
38987         The remainder were to add Copyright dates, increment serial numbers,
38988         undo some changes in comments, exclude m4/intl.m4, and add quotes
38989         around the "1" in ",1" where the unusual spacing prohibited the
38990         above regexps from doing the job.  For more details, see
38991         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
38992         * m4/acl.m4: Modified.
38993         * m4/afs.m4: Likewise.
38994         * m4/alloca.m4: Likewise.
38995         * m4/argp.m4: Likewise.
38996         * m4/argz.m4: Likewise.
38997         * m4/atexit.m4: Likewise.
38998         * m4/bison-i18n.m4: Likewise.
38999         * m4/bison.m4: Likewise.
39000         * m4/byteswap.m4: Likewise.
39001         * m4/c-stack.m4: Likewise.
39002         * m4/c-strtod.m4: Likewise.
39003         * m4/calloc.m4: Likewise.
39004         * m4/canonicalize-lgpl.m4: Likewise.
39005         * m4/chown.m4: Likewise.
39006         * m4/clock_time.m4: Likewise.
39007         * m4/codeset.m4: Likewise.
39008         * m4/copy-file.m4: Likewise.
39009         * m4/csharp.m4: Likewise.
39010         * m4/csharpcomp.m4: Likewise.
39011         * m4/csharpexec.m4: Likewise.
39012         * m4/d-ino.m4: Likewise.
39013         * m4/d-type.m4: Likewise.
39014         * m4/dirfd.m4: Likewise.
39015         * m4/double-slash-root.m4: Likewise.
39016         * m4/eaccess.m4: Likewise.
39017         * m4/eealloc.m4: Likewise.
39018         * m4/environ.m4: Likewise.
39019         * m4/errno_h.m4: Likewise.
39020         * m4/euidaccess.m4: Likewise.
39021         * m4/execute.m4: Likewise.
39022         * m4/fatal-signal.m4: Likewise.
39023         * m4/fchdir.m4: Likewise.
39024         * m4/fcntl_h.m4: Likewise.
39025         * m4/fileblocks.m4: Likewise.
39026         * m4/filenamecat.m4: Likewise.
39027         * m4/findprog.m4: Likewise.
39028         * m4/flexmember.m4: Likewise.
39029         * m4/fnmatch.m4: Likewise.
39030         * m4/fopen.m4: Likewise.
39031         * m4/fpending.m4: Likewise.
39032         * m4/fprintf-posix.m4: Likewise.
39033         * m4/free.m4: Likewise.
39034         * m4/frexp.m4: Likewise.
39035         * m4/frexpl.m4: Likewise.
39036         * m4/fsusage.m4: Likewise.
39037         * m4/ftruncate.m4: Likewise.
39038         * m4/gc-camellia.m4: Likewise.
39039         * m4/gc-random.m4: Likewise.
39040         * m4/gc.m4: Likewise.
39041         * m4/getaddrinfo.m4: Likewise.
39042         * m4/getcwd-abort-bug.m4: Likewise.
39043         * m4/getcwd-path-max.m4: Likewise.
39044         * m4/getdate.m4: Likewise.
39045         * m4/getdomainname.m4: Likewise.
39046         * m4/getgroups.m4: Likewise.
39047         * m4/gethostname.m4: Likewise.
39048         * m4/gethrxtime.m4: Likewise.
39049         * m4/getline.m4: Likewise.
39050         * m4/getloadavg.m4: Likewise.
39051         * m4/getndelim2.m4: Likewise.
39052         * m4/getpass.m4: Likewise.
39053         * m4/gettext.m4: Likewise.
39054         * m4/gettime.m4: Likewise.
39055         * m4/gettimeofday.m4: Likewise.
39056         * m4/gnulib-common.m4: Likewise.
39057         * m4/group-member.m4: Likewise.
39058         * m4/host-os.m4: Likewise.
39059         * m4/iconv.m4: Likewise.
39060         * m4/iconv_open.m4: Likewise.
39061         * m4/inet_ntop.m4: Likewise.
39062         * m4/inet_pton.m4: Likewise.
39063         * m4/inline.m4: Likewise.
39064         * m4/intldir.m4: Likewise.
39065         * m4/intlmacosx.m4: Likewise.
39066         * m4/intmax.m4: Likewise.
39067         * m4/intmax_t.m4: Likewise.
39068         * m4/inttypes.m4: Likewise.
39069         * m4/inttypes_h.m4: Likewise.
39070         * m4/inttypes-pri.m4: Likewise.
39071         * m4/isapipe.m4: Likewise.
39072         * m4/isnand.m4: Likewise.
39073         * m4/isnanf.m4: Likewise.
39074         * m4/isnanl.m4: Likewise.
39075         * m4/javacomp.m4: Likewise.
39076         * m4/javaexec.m4: Likewise.
39077         * m4/jm-winsz1.m4: Likewise.
39078         * m4/jm-winsz2.m4: Likewise.
39079         * m4/lchown.m4: Likewise.
39080         * m4/lcmessage.m4: Likewise.
39081         * m4/ldexpl.m4: Likewise.
39082         * m4/lib-ld.m4: Likewise.
39083         * m4/lib-link.m4: Likewise.
39084         * m4/libsigsegv.m4: Likewise.
39085         * m4/link-follow.m4: Likewise.
39086         * m4/localcharset.m4: Likewise.
39087         * m4/locale-fr.m4: Likewise.
39088         * m4/locale-ja.m4: Likewise.
39089         * m4/locale-tr.m4: Likewise.
39090         * m4/locale-zh.m4: Likewise.
39091         * m4/lock.m4: Likewise.
39092         * m4/longlong.m4: Likewise.
39093         * m4/ls-mntd-fs.m4: Likewise.
39094         * m4/lstat.m4: Likewise.
39095         * m4/malloc.m4: Likewise.
39096         * m4/mathl.m4: Likewise.
39097         * m4/mbrtowc.m4: Likewise.
39098         * m4/mbstate_t.m4: Likewise.
39099         * m4/mbswidth.m4: Likewise.
39100         * m4/memchr.m4: Likewise.
39101         * m4/memcmp.m4: Likewise.
39102         * m4/memcpy.m4: Likewise.
39103         * m4/memmem.m4: Likewise.
39104         * m4/memmove.m4: Likewise.
39105         * m4/mempcpy.m4: Likewise.
39106         * m4/memrchr.m4: Likewise.
39107         * m4/memset.m4: Likewise.
39108         * m4/minmax.m4: Likewise.
39109         * m4/mkdir-slash.m4: Likewise.
39110         * m4/mkdtemp.m4: Likewise.
39111         * m4/mktime.m4: Likewise.
39112         * m4/mmap-anon.m4: Likewise.
39113         * m4/mountlist.m4: Likewise.
39114         * m4/nanosleep.m4: Likewise.
39115         * m4/nls.m4: Likewise.
39116         * m4/nocrash.m4: Likewise.
39117         * m4/open.m4: Likewise.
39118         * m4/openat.m4: Likewise.
39119         * m4/openmp.m4: Likewise.
39120         * m4/pathmax.m4: Likewise.
39121         * m4/perl.m4: Likewise.
39122         * m4/physmem.m4: Likewise.
39123         * m4/pipe.m4: Likewise.
39124         * m4/po.m4: Likewise.
39125         * m4/poll.m4: Likewise.
39126         * m4/posixtm.m4: Likewise.
39127         * m4/posixver.m4: Likewise.
39128         * m4/printf-frexp.m4: Likewise.
39129         * m4/printf-frexpl.m4: Likewise.
39130         * m4/printf-posix.m4: Likewise.
39131         * m4/printf-posix-rpl.m4: Likewise.
39132         * m4/printf.m4: Likewise.
39133         * m4/progtest.m4: Likewise.
39134         * m4/putenv.m4: Likewise.
39135         * m4/readline.m4: Likewise.
39136         * m4/readlink.m4: Likewise.
39137         * m4/readutmp.m4: Likewise.
39138         * m4/realloc.m4: Likewise.
39139         * m4/regex.m4: Likewise.
39140         * m4/relocatable.m4: Likewise.
39141         * m4/relocatable-lib.m4: Likewise.
39142         * m4/rename-dest-slash.m4: Likewise.
39143         * m4/rename.m4: Likewise.
39144         * m4/rmdir-errno.m4: Likewise.
39145         * m4/rmdir.m4: Likewise.
39146         * m4/roundf.m4: Likewise.
39147         * m4/roundl.m4: Likewise.
39148         * m4/rpmatch.m4: Likewise.
39149         * m4/save-cwd.m4: Likewise.
39150         * m4/selinux-selinux-h.m4: Likewise.
39151         * m4/setenv.m4: Likewise.
39152         * m4/settime.m4: Likewise.
39153         * m4/sig2str.m4: Likewise.
39154         * m4/sig_atomic_t.m4: Likewise.
39155         * m4/signalblocking.m4: Likewise.
39156         * m4/signbit.m4: Likewise.
39157         * m4/sigpipe.m4: Likewise.
39158         * m4/sockets.m4: Likewise.
39159         * m4/sockpfaf.m4: Likewise.
39160         * m4/st_dm_mode.m4: Likewise.
39161         * m4/stat-time.m4: Likewise.
39162         * m4/stdbool.m4: Likewise.
39163         * m4/stdint.m4: Likewise.
39164         * m4/stdint_h.m4: Likewise.
39165         * m4/stpcpy.m4: Likewise.
39166         * m4/stpncpy.m4: Likewise.
39167         * m4/strcase.m4: Likewise.
39168         * m4/strchrnul.m4: Likewise.
39169         * m4/strcspn.m4: Likewise.
39170         * m4/strdup.m4: Likewise.
39171         * m4/strftime.m4: Likewise.
39172         * m4/strndup.m4: Likewise.
39173         * m4/strnlen.m4: Likewise.
39174         * m4/strpbrk.m4: Likewise.
39175         * m4/strptime.m4: Likewise.
39176         * m4/strsep.m4: Likewise.
39177         * m4/strtod.m4: Likewise.
39178         * m4/strtoimax.m4: Likewise.
39179         * m4/strtok_r.m4: Likewise.
39180         * m4/strtol.m4: Likewise.
39181         * m4/strtoll.m4: Likewise.
39182         * m4/strtoul.m4: Likewise.
39183         * m4/strtoull.m4: Likewise.
39184         * m4/strtoumax.m4: Likewise.
39185         * m4/strverscmp.m4: Likewise.
39186         * m4/threadlib.m4: Likewise.
39187         * m4/timegm.m4: Likewise.
39188         * m4/tm_gmtoff.m4: Likewise.
39189         * m4/tmpdir.m4: Likewise.
39190         * m4/tmpfile.m4: Likewise.
39191         * m4/tzset.m4: Likewise.
39192         * m4/uintmax_t.m4: Likewise.
39193         * m4/unlinkdir.m4: Likewise.
39194         * m4/unlocked-io.m4: Likewise.
39195         * m4/uptime.m4: Likewise.
39196         * m4/userspec.m4: Likewise.
39197         * m4/utimbuf.m4: Likewise.
39198         * m4/utime.m4: Likewise.
39199         * m4/utimes-null.m4: Likewise.
39200         * m4/utimes.m4: Likewise.
39201         * m4/vararrays.m4: Likewise.
39202         * m4/vasnprintf.m4: Likewise.
39203         * m4/vfprintf-posix.m4: Likewise.
39204         * m4/vprintf-posix.m4: Likewise.
39205         * m4/wait-process.m4: Likewise.
39206         * m4/wchar_t.m4: Likewise.
39207         * m4/wint_t.m4: Likewise.
39208         * m4/write-any-file.m4: Likewise.
39209         * m4/yield.m4: Likewise.
39210
39211 2009-01-13  Bruno Haible  <bruno@clisp.org>
39212
39213         Avoid test-copy-file.sh failures when ACL support insufficient.
39214         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
39215         TESTS_ENVIRONMENT.
39216         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
39217         Reported by Jim Meyering.
39218
39219 2009-01-13  Bruno Haible  <bruno@clisp.org>
39220
39221         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
39222         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
39223         * modules/unistdio/u8-printf-parse (Files): Likewise.
39224         * modules/unistdio/u32-printf-parse (Files): Likewise.
39225         * modules/unistdio/ulc-printf-parse (Files): Likewise.
39226
39227 2009-01-13  Simon Josefsson  <simon@josefsson.org>
39228
39229         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
39230         and m4/inttypes_h.m4 too.
39231
39232 2009-01-12  Eric Blake  <ebb9@byu.net>
39233
39234         tests: IRIX 6.2 cc can't compile -0.0 into .data
39235         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
39236         rather than at compile-time.
39237         * tests/test-floorl.c (minus_zero): Likewise.
39238         * tests/test-frexpl.c (minus_zero): Likewise.
39239         * tests/test-isnan.c (minus_zerol): Likewise.
39240         * tests/test-isnanl.h (minus_zero): Likewise.
39241         * tests/test-ldexpl.c (minus_zero): Likewise.
39242         * tests/test-roundl.c (minus_zero): Likewise.
39243         * tests/test-signbit.c (minus_zerol): Likewise.
39244         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
39245         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
39246         * tests/test-truncl.c (minus_zero): Likewise.
39247         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
39248         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
39249         Reported by Tom G. Christensen and Nelson H. F. Beebe.
39250
39251 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39252
39253         regex: fix glibc bug 9697
39254         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
39255         handling.
39256
39257 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39258
39259         regex: fix glibc bug 697
39260         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
39261         being NULL also if there are no backreferences.
39262
39263 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
39264
39265         regex: merge glibc changes
39266         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
39267         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
39268         re_string_skip_chars, re_string_reconstruct): Likewise.
39269         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
39270
39271 2009-01-07  Jim Meyering  <meyering@redhat.com>
39272
39273         poll: filter through cppi
39274         * lib/poll.c: Indent cpp directives to reflect nesting.
39275
39276 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
39277
39278         poll: don't return uninitialized
39279         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
39280
39281 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
39282
39283         avoid compile failure on AIX 6.1
39284         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
39285         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
39286
39287 2009-01-04  Jim Meyering  <meyering@redhat.com>
39288
39289         remove duplicate inclusion of <stdio.h>
39290         * tests/test-fprintf-posix.c: Likewise.
39291         * tests/test-printf-posix.c: Likewise.
39292         * tests/test-snprintf-posix.c: Likewise.
39293         * tests/test-sprintf-posix.c: Likewise.
39294         * tests/test-vasprintf-posix.c: Likewise.
39295         * tests/test-vfprintf-posix.c: Likewise.
39296         * tests/test-vprintf-posix.c: Likewise.
39297         * tests/test-vsnprintf-posix.c: Likewise.
39298         * tests/test-vsprintf-posix.c: Likewise.
39299
39300 2009-01-03  Jim Meyering  <meyering@redhat.com>
39301
39302         gnulib-tool: fix sed-based filtering
39303         * gnulib-tool (func_filter_filelist): Remove extra backslash
39304         in sed_fff_filter definition.
39305
39306 2009-01-02  Jim Meyering  <meyering@redhat.com>
39307
39308         strftime: avoid compilation failure on Solaris 2.6
39309         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
39310         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
39311         Don't #define mbrlen or mbsinit, since now they're guaranteed to
39312         be available.  Reported by Tom G. Christensen.  Details in
39313         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
39314
39315 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39316             Bruno Haible  <bruno@clisp.org>
39317
39318         Speed up gnulib-tool by doing more string processing through shell
39319         built-ins.
39320         * gnulib-tool (fast_func_append): New variable.
39321         (func_remove_prefix, func_remove_suffix): New functions.
39322         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
39323         (func_filter_filelist): New function.
39324         (func_get_dependencies): Use func_remove_suffix instead of sed.
39325         (func_get_automake_snippet): Use func_filter_filelist instead of a
39326         subshell and sed invocation.
39327
39328 2009-01-01  Bruno Haible  <bruno@clisp.org>
39329
39330         Fix a security bug.
39331         * gnulib-tool (func_import, import, update): Don't allow the characters
39332         '"', '$', '`', '\' in macro arguments that become part of commands that
39333         are evaluated.
39334
39335 2009-01-01  Bruno Haible  <bruno@clisp.org>
39336
39337         * gnulib-tool (func_reset_sigpipe): Add more comments.
39338
39339 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39340
39341         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
39342         func_emit_tests_Makefile_am, func_import): Abort loops early if we
39343         already know the answer.
39344
39345 2009-01-01  Jim Meyering  <meyering@redhat.com>
39346
39347         * lib/version-etc.c (version_etc_va): Update copyright year.
39348
39349 2008-12-30  Bruno Haible  <bruno@clisp.org>
39350
39351         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
39352         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
39353         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
39354
39355 2008-12-29  Eric Blake  <ebb9@byu.net>
39356
39357         multiarch: avoid autoconf AC_REQUIRE bug
39358         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
39359         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
39360         2.63 and older.
39361         Reported by Bruno Haible, and analyzed in
39362         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
39363
39364 2008-12-29  Bruno Haible  <bruno@clisp.org>
39365
39366         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
39367         files in subdirectories correctly.
39368         Reported by Ralf Wildenhues.
39369
39370 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39371
39372         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
39373         rather than 'join FILE -', for Solaris join.
39374
39375 2008-12-29  Bruno Haible  <bruno@clisp.org>
39376
39377         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
39378         quoting.
39379         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
39380         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
39381         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
39382         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
39383         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
39384         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
39385         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
39386         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
39387         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
39388         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
39389         * m4/nls.m4 (AM_NLS): Likewise.
39390         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
39391         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
39392         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
39393         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
39394         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
39395         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
39396         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
39397         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
39398         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
39399         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
39400         * m4/xsize.m4 (gl_XSIZE): Likewise.
39401         Suggested by Jim Meyering.
39402
39403 2008-11-17  Bruce Korb  <bkorb@gnu.org>
39404
39405         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
39406         * lib/parse-duration.c: use a switch instead of cascading if's.
39407
39408 2008-12-29  Eric Blake  <ebb9@byu.net>
39409
39410         wchar.h: supply WEOF on Irix 5.3
39411         * lib/wchar.in.h (wint_t): Also supply WEOF.
39412         * lib/wctype.in.h (wint_t): Likewise.
39413         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
39414         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
39415         Reported by Tom G. Christensen.
39416
39417 2008-12-26  Bruno Haible  <bruno@clisp.org>
39418
39419         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
39420         i486, i586, i686.
39421
39422 2008-12-26  Bruno Haible  <bruno@clisp.org>
39423
39424         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
39425
39426 2008-12-26  Bruno Haible  <bruno@clisp.org>
39427
39428         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
39429         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
39430         not __STDC_CONSTANT_MACROS.
39431         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
39432
39433 2008-12-25  Bruno Haible  <bruno@clisp.org>
39434
39435         Add support for universal builds to vasnprintf.
39436         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
39437         universal builds, guess no.
39438         * modules/vasnprintf-posix (Depends-on): Add multiarch.
39439         * modules/vasprintf-posix (Depends-on): Likewise.
39440         * modules/fprintf-posix (Depends-on): Likewise.
39441         * modules/vfprintf-posix (Depends-on): Likewise.
39442         * modules/snprintf-posix (Depends-on): Likewise.
39443         * modules/vsnprintf-posix (Depends-on): Likewise.
39444         * modules/sprintf-posix (Depends-on): Likewise.
39445         * modules/vsprintf-posix (Depends-on): Likewise.
39446         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
39447         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
39448         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
39449         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
39450         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
39451         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
39452         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
39453
39454         Add support for universal builds to <inttypes.h>.
39455         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
39456         _SCNu64_PREFIX): In Apple
39457         universal builds, define directly, using _LP64.
39458         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
39459         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
39460         * modules/inttypes (Depends-on): Add multiarch.
39461         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
39462
39463         Add support for universal builds to <stdint.h>.
39464         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
39465         universal builds, define directly, using _LP64.
39466         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
39467         Apple universal builds, don't test for the size and suffix of ptrdiff_t
39468         and size_t.
39469         * modules/stdint (Depends-on): Add multiarch.
39470         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
39471
39472         New module 'multiarch'.
39473         * modules/multiarch: New file.
39474         * m4/multiarch.m4: New file.
39475
39476 2008-12-25  Bruno Haible  <bruno@clisp.org>
39477
39478         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
39479
39480 2008-12-25  Bruno Haible  <bruno@clisp.org>
39481
39482         * modules/btowc (License): Relicense under LGPLv2+.
39483         * modules/mbsinit (License): Likewise.
39484         * modules/mbrtowc (License): Likewise.
39485         * modules/wcrtomb (License): Likewise.
39486         * modules/streq (License): Likewise.
39487         Reported by David Lutterkort <lutter@redhat.com>.
39488
39489 2008-12-23  Bruno Haible  <bruno@clisp.org>
39490
39491         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
39492
39493 2008-12-23  Bruno Haible  <bruno@clisp.org>
39494
39495         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
39496         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
39497         GETADDRINFO_LIB, not in LIBS.
39498         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
39499         * modules/canon-host (Link): Likewise.
39500         * NEWS: Mention the change.
39501         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
39502         GETADDRINFO_LIB.
39503
39504 2008-12-22  Bruno Haible  <bruno@clisp.org>
39505
39506         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
39507         * doc/posix-functions/iswalpha_l.texi: Likewise.
39508         * doc/posix-functions/iswblank_l.texi: Likewise.
39509         * doc/posix-functions/iswcntrl_l.texi: Likewise.
39510         * doc/posix-functions/iswctype_l.texi: Likewise.
39511         * doc/posix-functions/iswdigit_l.texi: Likewise.
39512         * doc/posix-functions/iswgraph_l.texi: Likewise.
39513         * doc/posix-functions/iswlower_l.texi: Likewise.
39514         * doc/posix-functions/iswprint_l.texi: Likewise.
39515         * doc/posix-functions/iswpunct_l.texi: Likewise.
39516         * doc/posix-functions/iswspace_l.texi: Likewise.
39517         * doc/posix-functions/iswupper_l.texi: Likewise.
39518         * doc/posix-functions/iswxdigit_l.texi: Likewise.
39519         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
39520         * doc/posix-functions/open_wmemstream.texi: Likewise.
39521         * doc/posix-functions/swscanf.texi: Likewise.
39522         * doc/posix-functions/towctrans_l.texi: Likewise.
39523         * doc/posix-functions/towlower.texi: Likewise.
39524         * doc/posix-functions/towlower_l.texi: Likewise.
39525         * doc/posix-functions/towupper.texi: Likewise.
39526         * doc/posix-functions/towupper_l.texi: Likewise.
39527         * doc/posix-functions/vfwprintf.texi: Likewise.
39528         * doc/posix-functions/vfwscanf.texi: Likewise.
39529         * doc/posix-functions/vswscanf.texi: Likewise.
39530         * doc/posix-functions/vwprintf.texi: Likewise.
39531         * doc/posix-functions/vwscanf.texi: Likewise.
39532         * doc/posix-functions/wcpcpy.texi: Likewise.
39533         * doc/posix-functions/wcpncpy.texi: Likewise.
39534         * doc/posix-functions/wcscasecmp.texi: Likewise.
39535         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
39536         * doc/posix-functions/wcscoll_l.texi: Likewise.
39537         * doc/posix-functions/wcsdup.texi: Likewise.
39538         * doc/posix-functions/wcsncasecmp.texi: Likewise.
39539         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
39540         * doc/posix-functions/wcsnlen.texi: Likewise.
39541         * doc/posix-functions/wcsnrtombs.texi: Likewise.
39542         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
39543         * doc/posix-functions/wctrans_l.texi: Likewise.
39544         * doc/posix-functions/wctype_l.texi: Likewise.
39545         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
39546         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
39547         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
39548         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
39549         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
39550         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
39551         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
39552         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
39553         * doc/glibc-functions/wcschrnul.texi: Likewise.
39554         * doc/glibc-functions/wcsftime_l.texi: Likewise.
39555         * doc/glibc-functions/wcstod_l.texi: Likewise.
39556         * doc/glibc-functions/wcstof_l.texi: Likewise.
39557         * doc/glibc-functions/wcstol_l.texi: Likewise.
39558         * doc/glibc-functions/wcstold_l.texi: Likewise.
39559         * doc/glibc-functions/wcstoll_l.texi: Likewise.
39560         * doc/glibc-functions/wcstoq.texi: Likewise.
39561         * doc/glibc-functions/wcstoul_l.texi: Likewise.
39562         * doc/glibc-functions/wcstoull_l.texi: Likewise.
39563         * doc/glibc-functions/wcstouq.texi: Likewise.
39564         * doc/glibc-functions/wmempcpy.texi: Likewise.
39565
39566 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
39567             Eric Blake  <ebb9@byu.net>
39568             Paolo Bonzini  <bonzini@gnu.org>
39569             Bruno Haible  <bruno@clisp.org>
39570
39571         Make c-stack work on Haiku.
39572         * lib/c-stack.c (SA_ONSTACK): Define fallback.
39573         (c_stack_action): Use SA_ONSTACK flag.
39574
39575 2008-12-22  Bruno Haible  <bruno@clisp.org>
39576
39577         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
39578
39579 2008-12-22  Bruno Haible  <bruno@clisp.org>
39580
39581         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
39582         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
39583         being overridden.
39584         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
39585         New macros.
39586         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
39587         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
39588         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
39589         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
39590
39591 2008-12-22  Bruno Haible  <bruno@clisp.org>
39592
39593         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
39594         from test code.
39595
39596 2008-12-22  Eric Blake  <ebb9@byu.net>
39597
39598         Avoid gcc warnings on cygwin.
39599         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
39600         Avoid unused variable.
39601         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
39602         Likewise.
39603
39604 2008-12-22  Bruno Haible  <bruno@clisp.org>
39605
39606         Remove HAVE_MBRTOWC conditionals.
39607         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
39608         (mbscasecmp): Assume mbrtowc function.
39609         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
39610         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
39611         * lib/mbschr.c: Include mbuiter.h unconditionally.
39612         (mbschr): Assume mbrtowc function.
39613         * lib/mbscspn.c: Include mbuiter.h unconditionally.
39614         (mbscspn): Assume mbrtowc function.
39615         * lib/mbslen.c: Include mbuiter.h unconditionally.
39616         (mbslen): Assume mbrtowc function.
39617         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
39618         (mbsncasecmp): Assume mbrtowc function.
39619         * lib/mbsnlen.c: Include mbiter.h unconditionally.
39620         (mbsnlen): Assume mbrtowc function.
39621         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
39622         (mbspbrk): Assume mbrtowc function.
39623         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
39624         (mbspcasecmp): Assume mbrtowc function.
39625         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
39626         (mbsrchr): Assume mbrtowc function.
39627         * lib/mbssep.c: Include mbuiter.h unconditionally.
39628         (mbssep): Assume mbrtowc function.
39629         * lib/mbsspn.c: Include mbuiter.h unconditionally.
39630         (mbsspn): Assume mbrtowc function.
39631         * lib/mbsstr.c: Include mbuiter.h unconditionally.
39632         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
39633         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
39634         (mbstok_r): Assume mbrtowc function.
39635         * lib/propername.c: Include mbuiter.h unconditionally.
39636         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
39637         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
39638         (trim2): Assume mbrtowc function.
39639         * lib/mbswidth.c (mbsinit): Remove fallback definition.
39640         (mbsnwidth): Assume mbrtowc function.
39641         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
39642         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
39643         fallback definitions.
39644         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
39645
39646 2008-12-22  Bruno Haible  <bruno@clisp.org>
39647
39648         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
39649
39650 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
39651
39652         * modules/regex: Request emulations for the mb*/wc* functions we need.
39653         * m4/regex.m4: Don't look for those functions here.
39654         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
39655
39656 2008-12-22  Bruno Haible  <bruno@clisp.org>
39657
39658         * modules/fnmatch (Depends-on): Remove duplicated dependency.
39659
39660 2008-12-21  Bruno Haible  <bruno@clisp.org>
39661
39662         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
39663         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
39664         (Include): Remove conditionalization.
39665         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
39666         (Include): Remove conditionalization.
39667         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
39668         (Include): Remove conditionalization.
39669         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
39670         * m4/mbfile.m4 (gl_MBFILE): Likewise.
39671         * NEWS: Mention the change.
39672         Reported by Alan Hourihane <alanh@fairlite.co.uk>
39673         via Sergey Poznyakoff <gray@gnu.org.ua>.
39674
39675 2008-12-21  Bruno Haible  <bruno@clisp.org>
39676
39677         * MODULES.html.sh (Extended multibyte and wide character utilities
39678         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
39679         wcrtomb, wcsrtombs.
39680         (Support for systems lacking POSIX:2008): Add accept, bind, close,
39681         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
39682         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
39683         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
39684
39685 2008-12-21  Bruno Haible  <bruno@clisp.org>
39686
39687         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
39688
39689 2008-12-21  Bruno Haible  <bruno@clisp.org>
39690
39691         * modules/wcsnrtombs-tests: New file.
39692         * tests/test-wcsnrtombs1.sh: New file.
39693         * tests/test-wcsnrtombs2.sh: New file.
39694         * tests/test-wcsnrtombs3.sh: New file.
39695         * tests/test-wcsnrtombs4.sh: New file.
39696         * tests/test-wcsnrtombs.c: New file.
39697
39698         New module 'wcsnrtombs'.
39699         * lib/wchar.in.h (wcsnrtombs): New declaration.
39700         * lib/wcsnrtombs.c: New file.
39701         * lib/wcsrtombs-state.c: New file.
39702         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
39703         (internal_state): Remove variable.
39704         * m4/wcsnrtombs.m4: New file.
39705         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
39706         compilation units.
39707         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
39708         HAVE_WCSNRTOMBS.
39709         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
39710         HAVE_WCSNRTOMBS.
39711         * modules/wcsnrtombs: New file.
39712         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
39713         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
39714
39715 2008-12-21  Bruno Haible  <bruno@clisp.org>
39716
39717         * modules/wcsrtombs-tests: New file.
39718         * tests/test-wcsrtombs1.sh: New file.
39719         * tests/test-wcsrtombs2.sh: New file.
39720         * tests/test-wcsrtombs3.sh: New file.
39721         * tests/test-wcsrtombs4.sh: New file.
39722         * tests/test-wcsrtombs.c: New file.
39723
39724         New module 'wcsrtombs'.
39725         * lib/wchar.in.h (wcsrtombs): New declaration.
39726         * lib/wcsrtombs.c: New file.
39727         * m4/wcsrtombs.m4: New file.
39728         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
39729         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
39730         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
39731         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
39732         * modules/wcsrtombs: New file.
39733         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
39734         bugs.
39735
39736 2008-12-21  Bruno Haible  <bruno@clisp.org>
39737
39738         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
39739         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
39740         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
39741         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
39742         if not correct.
39743         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
39744         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
39745         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39746         m4/locale-zh.m4, m4/codeset.m4.
39747         * doc/posix-functions/wcrtomb.texi: Document the bug.
39748
39749 2008-12-21  Bruno Haible  <bruno@clisp.org>
39750
39751         Work around a btowc() bug on IRIX 6.5.
39752         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
39753         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
39754         REPLACE_WTOBC if not.
39755         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
39756         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
39757         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
39758
39759 2008-12-21  Bruno Haible  <bruno@clisp.org>
39760
39761         * modules/wcrtomb-tests: New file.
39762         * tests/test-wcrtomb.sh: New file.
39763         * tests/test-wcrtomb.c: New file.
39764
39765         New module 'wcrtomb'.
39766         * lib/wchar.in.h (wcrtomb): New declaration.
39767         * lib/wcrtomb.c: New file.
39768         * m4/wcrtomb.m4: New file.
39769         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
39770         HAVE_WCRTOMB.
39771         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
39772         HAVE_WCRTOMB.
39773         * modules/wcrtomb: New file.
39774         * doc/posix-functions/wcrtomb.texi: Mention the new module.
39775
39776 2008-12-21  Bruno Haible  <bruno@clisp.org>
39777
39778         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
39779         * modules/mbsrtowcs (Files): Likewise.
39780         * modules/wctob (Files): Likewise.
39781         * modules/c-strcase-tests (Files): Likewise.
39782         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
39783         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
39784         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
39785         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
39786         * modules/vasnprintf-posix-tests (Files): Likewise.
39787
39788 2008-12-21  William Pursell  <bill.pursell@gmail.com>
39789
39790         gitlog-to-changelog: pass all command-line arguments to git-log
39791         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
39792         it is sometimes convenient to filter the commits in various ways.
39793         gitlog-to-changelog only allows --since to specify a start date,
39794         but git-log itself supports many other filtering mechanisms.
39795         At the moment, I want to filter by branch name.  Rather than
39796         adding a --branch option to gitlog-to-changelog, it seems more
39797         flexible to simply pass all options directly to git-log and let
39798         git do the work.  Notice that this effectively makes --since a
39799         redundant option for gitlog-to-changelog, but removing it would
39800         require current usage to change since calls would then require
39801         an additional '--'.
39802
39803 2008-12-21  Bruno Haible  <bruno@clisp.org>
39804
39805         * modules/mbsnrtowcs-tests: New file.
39806         * tests/test-mbsnrtowcs1.sh: New file.
39807         * tests/test-mbsnrtowcs2.sh: New file.
39808         * tests/test-mbsnrtowcs3.sh: New file.
39809         * tests/test-mbsnrtowcs4.sh: New file.
39810         * tests/test-mbsnrtowcs.c: New file.
39811
39812         New module 'mbsnrtowcs'.
39813         * lib/wchar.in.h (mbsnrtowcs): New declaration.
39814         * lib/mbsnrtowcs.c: New file.
39815         * lib/mbsrtowcs-state.c: New file.
39816         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
39817         (internal_state): Remove variable.
39818         * m4/mbsnrtowcs.m4: New file.
39819         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
39820         compilation units.
39821         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
39822         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39823         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
39824         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39825         * modules/mbsnrtowcs: New file.
39826         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
39827         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
39828         portability problem.
39829
39830 2008-12-21  Bruno Haible  <bruno@clisp.org>
39831
39832         Work around mbsrtowcs bug.
39833         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
39834         (gl_FUNC_MBSRTOWCS): Invoke it.
39835         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39836         m4/locale-zh.m4.
39837         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
39838
39839 2008-12-21  Bruno Haible  <bruno@clisp.org>
39840
39841         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
39842
39843 2008-12-21  Bruno Haible  <bruno@clisp.org>
39844
39845         Update doc for AIX.
39846         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
39847         16-bit wchar_t type.
39848         * doc/posix-functions/btowc.texi: Likewise.
39849         * doc/posix-functions/fgetwc.texi: Likewise.
39850         * doc/posix-functions/fgetws.texi: Likewise.
39851         * doc/posix-functions/fputwc.texi: Likewise.
39852         * doc/posix-functions/fputws.texi: Likewise.
39853         * doc/posix-functions/fwide.texi: Likewise.
39854         * doc/posix-functions/fwprintf.texi: Likewise.
39855         * doc/posix-functions/fwscanf.texi: Likewise.
39856         * doc/posix-functions/getwchar.texi: Likewise.
39857         * doc/posix-functions/getwc.texi: Likewise.
39858         * doc/posix-functions/iswalnum.texi: Likewise.
39859         * doc/posix-functions/iswalpha.texi: Likewise.
39860         * doc/posix-functions/iswblank.texi: Likewise.
39861         * doc/posix-functions/iswcntrl.texi: Likewise.
39862         * doc/posix-functions/iswctype.texi: Likewise.
39863         * doc/posix-functions/iswdigit.texi: Likewise.
39864         * doc/posix-functions/iswgraph.texi: Likewise.
39865         * doc/posix-functions/iswlower.texi: Likewise.
39866         * doc/posix-functions/iswprint.texi: Likewise.
39867         * doc/posix-functions/iswpunct.texi: Likewise.
39868         * doc/posix-functions/iswspace.texi: Likewise.
39869         * doc/posix-functions/iswupper.texi: Likewise.
39870         * doc/posix-functions/iswxdigit.texi: Likewise.
39871         * doc/posix-functions/mbrtowc.texi: Likewise.
39872         * doc/posix-functions/mbsrtowcs.texi: Likewise.
39873         * doc/posix-functions/mbstowcs.texi: Likewise.
39874         * doc/posix-functions/mbtowc.texi: Likewise.
39875         * doc/posix-functions/putwchar.texi: Likewise.
39876         * doc/posix-functions/putwc.texi: Likewise.
39877         * doc/posix-functions/swprintf.texi: Likewise.
39878         * doc/posix-functions/tolower.texi: Likewise.
39879         * doc/posix-functions/toupper.texi: Likewise.
39880         * doc/posix-functions/towctrans.texi: Likewise.
39881         * doc/posix-functions/ungetwc.texi: Likewise.
39882         * doc/posix-functions/vswprintf.texi: Likewise.
39883         * doc/posix-functions/wcrtomb.texi: Likewise.
39884         * doc/posix-functions/wcscat.texi: Likewise.
39885         * doc/posix-functions/wcschr.texi: Likewise.
39886         * doc/posix-functions/wcscmp.texi: Likewise.
39887         * doc/posix-functions/wcscoll.texi: Likewise.
39888         * doc/posix-functions/wcscpy.texi: Likewise.
39889         * doc/posix-functions/wcscspn.texi: Likewise.
39890         * doc/posix-functions/wcsftime.texi: Likewise.
39891         * doc/posix-functions/wcslen.texi: Likewise.
39892         * doc/posix-functions/wcsncat.texi: Likewise.
39893         * doc/posix-functions/wcsncmp.texi: Likewise.
39894         * doc/posix-functions/wcsncpy.texi: Likewise.
39895         * doc/posix-functions/wcspbrk.texi: Likewise.
39896         * doc/posix-functions/wcsrchr.texi: Likewise.
39897         * doc/posix-functions/wcsrtombs.texi: Likewise.
39898         * doc/posix-functions/wcsspn.texi: Likewise.
39899         * doc/posix-functions/wcsstr.texi: Likewise.
39900         * doc/posix-functions/wcstod.texi: Likewise.
39901         * doc/posix-functions/wcstof.texi: Likewise.
39902         * doc/posix-functions/wcstoimax.texi: Likewise.
39903         * doc/posix-functions/wcstok.texi: Likewise.
39904         * doc/posix-functions/wcstold.texi: Likewise.
39905         * doc/posix-functions/wcstoll.texi: Likewise.
39906         * doc/posix-functions/wcstol.texi: Likewise.
39907         * doc/posix-functions/wcstombs.texi: Likewise.
39908         * doc/posix-functions/wcstoull.texi: Likewise.
39909         * doc/posix-functions/wcstoul.texi: Likewise.
39910         * doc/posix-functions/wcstoumax.texi: Likewise.
39911         * doc/posix-functions/wcswidth.texi: Likewise.
39912         * doc/posix-functions/wcsxfrm.texi: Likewise.
39913         * doc/posix-functions/wctob.texi: Likewise.
39914         * doc/posix-functions/wctomb.texi: Likewise.
39915         * doc/posix-functions/wctrans.texi: Likewise.
39916         * doc/posix-functions/wctype.texi: Likewise.
39917         * doc/posix-functions/wcwidth.texi: Likewise.
39918         * doc/posix-functions/wmemchr.texi: Likewise.
39919         * doc/posix-functions/wmemcmp.texi: Likewise.
39920         * doc/posix-functions/wmemcpy.texi: Likewise.
39921         * doc/posix-functions/wmemmove.texi: Likewise.
39922         * doc/posix-functions/wmemset.texi: Likewise.
39923         * doc/posix-functions/wprintf.texi: Likewise.
39924         * doc/posix-functions/wscanf.texi: Likewise.
39925
39926 2008-12-21  Bruno Haible  <bruno@clisp.org>
39927
39928         Update doc for HP-UX 11.11.
39929         * doc/posix-functions/btowc.texi: Clarify that the function is missing
39930         in HP-UX version 11.00, not in all versions of HP-UX 11.
39931         * doc/posix-functions/fwide.texi: Likewise.
39932         * doc/posix-functions/fwprintf.texi: Likewise.
39933         * doc/posix-functions/fwscanf.texi: Likewise.
39934         * doc/posix-functions/inet_ntop.texi: Likewise.
39935         * doc/posix-functions/inet_pton.texi: Likewise.
39936         * doc/posix-functions/mbrlen.texi: Likewise.
39937         * doc/posix-functions/mbrtowc.texi: Likewise.
39938         * doc/posix-functions/mbsinit.texi: Likewise.
39939         * doc/posix-functions/mbsrtowcs.texi: Likewise.
39940         * doc/posix-functions/swprintf.texi: Likewise.
39941         * doc/posix-functions/swscanf.texi: Likewise.
39942         * doc/posix-functions/towctrans.texi: Likewise.
39943         * doc/posix-functions/vfwprintf.texi: Likewise.
39944         * doc/posix-functions/vswprintf.texi: Likewise.
39945         * doc/posix-functions/vwprintf.texi: Likewise.
39946         * doc/posix-functions/wcrtomb.texi: Likewise.
39947         * doc/posix-functions/wcsrtombs.texi: Likewise.
39948         * doc/posix-functions/wcsstr.texi: Likewise.
39949         * doc/posix-functions/wctob.texi: Likewise.
39950         * doc/posix-functions/wctrans.texi: Likewise.
39951         * doc/posix-functions/wmemchr.texi: Likewise.
39952         * doc/posix-functions/wmemcmp.texi: Likewise.
39953         * doc/posix-functions/wmemcpy.texi: Likewise.
39954         * doc/posix-functions/wmemmove.texi: Likewise.
39955         * doc/posix-functions/wmemset.texi: Likewise.
39956         * doc/posix-functions/wprintf.texi: Likewise.
39957         * doc/posix-functions/wscanf.texi: Likewise.
39958
39959 2008-12-21  Bruno Haible  <bruno@clisp.org>
39960
39961         Work around a portability problem.
39962         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
39963         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
39964
39965 2008-12-20  Bruno Haible  <bruno@clisp.org>
39966
39967         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
39968         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
39969         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
39970         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
39971         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
39972
39973         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
39974         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
39975         set.
39976         (GNULIB_defined_mbstate_t): New macro.
39977         (mbsinit): Redefine if REPLACE_MBSINIT is set.
39978         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
39979         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
39980         reuses the system's mbrtowc function but works around the bugs.
39981         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
39982         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
39983         macros.
39984         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
39985         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
39986         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
39987         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
39988         REPLACE_MBSINIT if mbsinit needs to be overridden.
39989         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
39990         REPLACE_MBSINIT, REPLACE_MBRTOWC.
39991         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
39992         REPLACE_MBSINIT, REPLACE_MBRTOWC.
39993         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39994         m4/locale-zh.m4.
39995         (Depends): Add mbsinit.
39996         * modules/mbsinit (Depends): Add mbrtowc.
39997         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
39998
39999 2008-12-20  Bruno Haible  <bruno@clisp.org>
40000
40001         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
40002         so that there are no conversion errors on AIX.
40003         * tests/test-mbsrtowcs.c (main): LIkewise.
40004
40005 2008-12-20  Bruno Haible  <bruno@clisp.org>
40006
40007         Work around wctob bug on Solaris <= 9.
40008         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
40009         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
40010         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
40011         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
40012         * modules/wctob (Files): Add m4/locale-fr.m4.
40013         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
40014
40015 2008-12-20  Bruno Haible  <bruno@clisp.org>
40016
40017         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
40018         /dev/null.
40019         * tests/test-select-in.sh: Likewise.
40020         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
40021
40022 2008-12-20  Bruno Haible  <bruno@clisp.org>
40023
40024         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
40025         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
40026         Cygwin 1.5.x.
40027
40028 2008-12-20  Bruno Haible  <bruno@clisp.org>
40029
40030         Ensure mbstate_t is defined on HP-UX 11.11.
40031         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
40032         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
40033         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
40034         AC_USE_SYSTEM_EXTENSIONS.
40035         * modules/fnmatch (Depends-on): Add extensions.
40036         * modules/mbrlen (Depends-on): Likewise.
40037         * modules/mbrtowc (Depends-on): Likewise.
40038         * modules/mbsinit (Depends-on): Likewise.
40039         * modules/mbsrtowcs (Depends-on): Likewise.
40040         * modules/mbswidth (Depends-on): Likewise.
40041         * modules/quotearg (Depends-on): Likewise.
40042         * modules/strftime (Depends-on): Likewise.
40043
40044 2008-12-20  Bruno Haible  <bruno@clisp.org>
40045
40046         Ensure wctob is declared on IRIX 6.5.
40047         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
40048         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
40049         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
40050         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
40051         of HAVE_WCTOB.
40052         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
40053         HAVE_WCTOB.
40054         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
40055
40056 2008-12-19  Bruno Haible  <bruno@clisp.org>
40057
40058         * modules/mbsrtowcs-tests: New file.
40059         * tests/test-mbsrtowcs1.sh: New file.
40060         * tests/test-mbsrtowcs2.sh: New file.
40061         * tests/test-mbsrtowcs3.sh: New file.
40062         * tests/test-mbsrtowcs4.sh: New file.
40063         * tests/test-mbsrtowcs.c: New file.
40064
40065         New module 'mbsrtowcs'.
40066         * lib/wchar.in.h (mbsrtowcs): New declaration.
40067         * lib/mbsrtowcs.c: New file.
40068         * m4/mbsrtowcs.m4: New file.
40069         * modules/mbsrtowcs: New file.
40070         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
40071         HAVE_MBSRTOWCS.
40072         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
40073         HAVE_MBSRTOWCS.
40074         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
40075
40076 2008-12-19  Bruno Haible  <bruno@clisp.org>
40077
40078         New module 'mbrlen'.
40079         * lib/wchar.in.h (mbrlen): New declaration.
40080         * lib/mbrlen.c: New file.
40081         * m4/mbrlen.m4: New file.
40082         * modules/mbrlen: New file.
40083         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
40084         HAVE_MBRLEN.
40085         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
40086         HAVE_MBRLEN.
40087         * doc/posix-functions/mbrlen.texi: Document the new module.
40088
40089 2008-12-19  Bruno Haible  <bruno@clisp.org>
40090
40091         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
40092         * modules/mbrtowc (Depends-on): Add verify.
40093         Suggested by Paul Eggert.
40094
40095 2008-12-18  Bruno Haible  <bruno@clisp.org>
40096
40097         * modules/mbsinit-tests: New file.
40098         * tests/test-mbsinit.sh: New file.
40099         * tests/test-mbsinit.c: New file.
40100
40101 2008-12-18  Bruno Haible  <bruno@clisp.org>
40102
40103         * modules/mbrtowc-tests: New file.
40104         * tests/test-mbrtowc1.sh: New file.
40105         * tests/test-mbrtowc2.sh: New file.
40106         * tests/test-mbrtowc3.sh: New file.
40107         * tests/test-mbrtowc4.sh: New file.
40108         * tests/test-mbrtowc.c: New file.
40109
40110         New module 'mbrtowc'.
40111         * lib/wchar.in.h (mbstate_t): Override when the system does not have
40112         mbsinit and mbrtowc.
40113         (mbrtowc): New declaration.
40114         * lib/mbrtowc.c: New file.
40115         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
40116         * modules/mbrtowc: New file.
40117         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
40118         HAVE_MBRTOWC.
40119         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
40120         HAVE_MBRTOWC.
40121         * doc/posix-functions/mbrtowc.texi: Document the new module.
40122
40123 2008-12-18  Bruno Haible  <bruno@clisp.org>
40124
40125         New module 'wctob'.
40126         * lib/wchar.in.h (wctob): New declaration.
40127         * lib/wctob.c: New file.
40128         * m4/wctob.m4: New file.
40129         * modules/wctob: New file.
40130         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
40131         HAVE_WCTOB.
40132         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
40133         * doc/posix-functions/wctob.texi: Document the new module.
40134
40135 2008-12-18  Bruno Haible  <bruno@clisp.org>
40136
40137         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
40138         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
40139
40140 2008-12-18  Simon Josefsson  <simon@josefsson.org>
40141
40142         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
40143         G. Christensen" <tgc@jupiterrise.com>.
40144
40145         * lib/flock.c: Need to include errno.h.  Reported by "Tom
40146         G. Christensen" <tgc@jupiterrise.com>.
40147
40148         * lib/flock.c: Need to include string.h.  Reported by "Tom
40149         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
40150         <ebb9@byu.net>.
40151
40152 2008-12-18  Bruno Haible  <bruno@clisp.org>
40153
40154         * m4/locale-ja.m4: New file, from GNU gettext.
40155
40156 2008-12-17  Bruno Haible  <bruno@clisp.org>
40157
40158         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
40159         Suggested by Eric Blake.
40160
40161 2008-12-17  Bruno Haible  <bruno@clisp.org>
40162
40163         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
40164
40165 2008-12-17  Bruno Haible  <bruno@clisp.org>
40166
40167         * lib/mbsinit.c: Include verify.h. Verify an assumption.
40168         * modules/mbsinit (Depends-on): Add verify.
40169         Suggested by Paul Eggert.
40170
40171 2008-12-17  Bruno Haible  <bruno@clisp.org>
40172
40173         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
40174         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
40175         gl_FUNC_MBRTOWC.
40176         * m4/mbiter.m4 (gl_MBITER): LIkewise.
40177         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
40178         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
40179         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
40180         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
40181         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
40182         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
40183         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
40184         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
40185         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
40186         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
40187         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
40188         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
40189         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
40190         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
40191         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
40192         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
40193         * modules/trim (configure.ac): Likewise.
40194
40195 2008-12-17  Bruno Haible  <bruno@clisp.org>
40196
40197         * modules/btowc-tests: New file.
40198         * tests/test-btowc1.sh: New file.
40199         * tests/test-btowc2.sh: New file.
40200         * tests/test-btowc.c: New file.
40201
40202         New module 'btowc'.
40203         * lib/wchar.in.h (btowc): New declaration.
40204         * lib/btowc.c: New file.
40205         * m4/btowc.m4: New file.
40206         * modules/btowc: New file.
40207         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
40208         HAVE_BTOWC.
40209         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
40210         * doc/posix-functions/btowc.texi: Document the new module.
40211
40212 2008-12-17  Bruno Haible  <bruno@clisp.org>
40213
40214         New module 'mbsinit'.
40215         * lib/wchar.in.h (mbsinit): New declaration.
40216         * lib/mbsinit.c: New file.
40217         * m4/mbsinit.m4: New file.
40218         * modules/mbsinit: New file.
40219         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
40220         HAVE_MBSINIT.
40221         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
40222         HAVE_MBSINIT.
40223         * doc/posix-functions/mbsinit.texi: Document the new module.
40224
40225 2008-12-16  Bruno Haible  <bruno@clisp.org>
40226
40227         * lib/unistd.in.h: Add comment.
40228         * tests/test-environ.c: Don't include <stdlib.h>.
40229
40230 2008-12-16  Bruno Haible  <bruno@clisp.org>
40231
40232         * lib/parse-duration.h (parse_duration): Document return value
40233         convention.
40234         * lib/parse-duration.c: Include specification header first. Add
40235         comments.
40236         (_): Remove macro.
40237         (parse_year_month_day, parse_hour_minute_second): Move side effects
40238         outside of strchr call.
40239         (parse_non_iso8601): Move side effects outside of isspace call.
40240         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
40241         call.
40242
40243 2008-12-16  Bruno Haible  <bruno@clisp.org>
40244
40245         * tests/test-parse-duration.sh: Produce no output when the test
40246         succeeds.
40247
40248 2008-12-16  Bruno Haible  <bruno@clisp.org>
40249
40250         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
40251         expressions.
40252
40253 2008-12-15  Bruno Haible  <bruno@clisp.org>
40254
40255         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
40256         * doc/glibc-functions/flistxattr.texi: Likewise.
40257         * doc/glibc-functions/fopencookie.texi: Likewise.
40258         * doc/glibc-functions/fremovexattr.texi: Likewise.
40259         * doc/glibc-functions/fsetxattr.texi: Likewise.
40260         * doc/glibc-functions/getxattr.texi: Likewise.
40261         * doc/glibc-functions/lgetxattr.texi: Likewise.
40262         * doc/glibc-functions/listxattr.texi: Likewise.
40263         * doc/glibc-functions/llistxattr.texi: Likewise.
40264         * doc/glibc-functions/lremovexattr.texi: Likewise.
40265         * doc/glibc-functions/lsetxattr.texi: Likewise.
40266         * doc/glibc-functions/removexattr.texi: Likewise.
40267         * doc/glibc-functions/setxattr.texi: Likewise.
40268         * doc/posix-functions/open_memstream.texi: Likewise.
40269
40270 2008-12-15  Eric Blake  <ebb9@byu.net>
40271
40272         Update doc for cygwin 1.7.
40273         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
40274         functions.
40275         * doc/posix-functions/fchmodat.texi: Likewise.
40276         * doc/posix-functions/fchownat.texi: Likewise.
40277         * doc/posix-functions/fdopendir.texi: Likewise.
40278         * doc/posix-functions/fmemopen.texi: Likewise.
40279         * doc/posix-functions/freeaddrinfo.texi: Likewise.
40280         * doc/posix-functions/fstatat.texi: Likewise.
40281         * doc/posix-functions/futimens.texi: Likewise.
40282         * doc/posix-functions/gai_strerror.texi: Likewise.
40283         * doc/posix-functions/getaddrinfo.texi: Likewise.
40284         * doc/posix-functions/getnameinfo.texi: Likewise.
40285         * doc/posix-functions/if_freenameindex.texi: Likewise.
40286         * doc/posix-functions/if_indextoname.texi: Likewise.
40287         * doc/posix-functions/if_nameindex.texi: Likewise.
40288         * doc/posix-functions/if_nametoindex.texi: Likewise.
40289         * doc/posix-functions/insque.texi: Likewise.
40290         * doc/posix-functions/linkat.texi: Likewise.
40291         * doc/posix-functions/llrint.texi: Likewise.
40292         * doc/posix-functions/llrintf.texi: Likewise.
40293         * doc/posix-functions/llrintl.texi: Likewise.
40294         * doc/posix-functions/lockf.texi: Likewise.
40295         * doc/posix-functions/lrintl.texi: Likewise.
40296         * doc/posix-functions/mkdirat.texi: Likewise.
40297         * doc/posix-functions/mkfifoat.texi: Likewise.
40298         * doc/posix-functions/mknodat.texi: Likewise.
40299         * doc/posix-functions/mq_close.texi: Likewise.
40300         * doc/posix-functions/mq_getattr.texi: Likewise.
40301         * doc/posix-functions/mq_notify.texi: Likewise.
40302         * doc/posix-functions/mq_open.texi: Likewise.
40303         * doc/posix-functions/mq_receive.texi: Likewise.
40304         * doc/posix-functions/mq_send.texi: Likewise.
40305         * doc/posix-functions/mq_setattr.texi: Likewise.
40306         * doc/posix-functions/mq_timedreceive.texi: Likewise.
40307         * doc/posix-functions/mq_timedsend.texi: Likewise.
40308         * doc/posix-functions/mq_unlink.texi: Likewise.
40309         * doc/posix-functions/open_memstream.texi: Likewise.
40310         * doc/posix-functions/openat.texi: Likewise.
40311         * doc/posix-functions/posix_fadvise.texi: Likewise.
40312         * doc/posix-functions/posix_fallocate.texi: Likewise.
40313         * doc/posix-functions/posix_madvise.texi: Likewise.
40314         * doc/posix-functions/posix_memalign.texi: Likewise.
40315         * doc/posix-functions/posix_openpt.texi: Likewise.
40316         * doc/posix-functions/readlinkat.texi: Likewise.
40317         * doc/posix-functions/remque.texi: Likewise.
40318         * doc/posix-functions/renameat.texi: Likewise.
40319         * doc/posix-functions/rintl.texi: Likewise.
40320         * doc/posix-functions/sem_unlink.texi: Likewise.
40321         * doc/posix-functions/shm_open.texi: Likewise.
40322         * doc/posix-functions/shm_unlink.texi: Likewise.
40323         * doc/posix-functions/signgam.texi: Likewise.
40324         * doc/posix-functions/sigset.texi: Likewise.
40325         * doc/posix-functions/stpcpy.texi: Likewise.
40326         * doc/posix-functions/stpncpy.texi: Likewise.
40327         * doc/posix-functions/strerror.texi: Likewise.
40328         * doc/posix-functions/strtod.texi: Likewise.
40329         * doc/posix-functions/symlinkat.texi: Likewise.
40330         * doc/posix-functions/unlinkat.texi: Likewise.
40331         * doc/posix-functions/utimensat.texi: Likewise.
40332         * doc/glibc-functions/bindresvport.texi: Likewise.
40333         * doc/glibc-functions/dn_expand.texi: Likewise.
40334         * doc/glibc-functions/exp10.texi: Likewise.
40335         * doc/glibc-functions/exp10f.texi: Likewise.
40336         * doc/glibc-functions/fgetxattr.texi: Likewise.
40337         * doc/glibc-functions/flistxattr.texi: Likewise.
40338         * doc/glibc-functions/fopencookie.texi: Likewise.
40339         * doc/glibc-functions/freeifaddrs.texi: Likewise.
40340         * doc/glibc-functions/fremovexattr.texi: Likewise.
40341         * doc/glibc-functions/fsetxattr.texi: Likewise.
40342         * doc/glibc-functions/getifaddrs.texi: Likewise.
40343         * doc/glibc-functions/getxattr.texi: Likewise.
40344         * doc/glibc-functions/lgetxattr.texi: Likewise.
40345         * doc/glibc-functions/listxattr.texi: Likewise.
40346         * doc/glibc-functions/llistxattr.texi: Likewise.
40347         * doc/glibc-functions/lremovexattr.texi: Likewise.
40348         * doc/glibc-functions/lsetxattr.texi: Likewise.
40349         * doc/glibc-functions/pow10.texi: Likewise.
40350         * doc/glibc-functions/pow10f.texi: Likewise.
40351         * doc/glibc-functions/rcmd_af.texi: Likewise.
40352         * doc/glibc-functions/removexattr.texi: Likewise.
40353         * doc/glibc-functions/res_init.texi: Likewise.
40354         * doc/glibc-functions/res_mkquery.texi: Likewise.
40355         * doc/glibc-functions/res_query.texi: Likewise.
40356         * doc/glibc-functions/res_querydomain.texi: Likewise.
40357         * doc/glibc-functions/res_send.texi: Likewise.
40358         * doc/glibc-functions/rresvport_af.texi: Likewise.
40359         * doc/glibc-functions/setxattr.texi: Likewise.
40360         * doc/glibc-functions/strcasestr.texi: Likewise.
40361
40362 2008-12-15  Bruno Haible  <bruno@clisp.org>
40363
40364         Fix compilation error on OSF/1 4.0.
40365         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
40366         <sys/time.h>, simply delegate to the system header.
40367         Reported by Daniel Richard G. <oss@teragram.com>.
40368
40369 2008-12-15  Bruno Haible  <bruno@clisp.org>
40370
40371         * doc/posix-functions/openat.texi: Mention the 'openat' module.
40372         * doc/posix-functions/fchmodat.texi: Likewise.
40373         * doc/posix-functions/fchownat.texi: Likewise.
40374         * doc/posix-functions/fdopendir.texi: Likewise.
40375         * doc/posix-functions/fstatat.texi: Likewise.
40376         * doc/posix-functions/mkdirat.texi: Likewise.
40377         * doc/posix-functions/unlinkat.texi: Likewise.
40378
40379 2008-12-14  Bruno Haible  <bruno@clisp.org>
40380
40381         Update doc for POSIX:2008.
40382         * doc/posix-functions/faccessat.texi: New file.
40383         * doc/posix-functions/fchmodat.texi: New file.
40384         * doc/posix-functions/fchownat.texi: New file.
40385         * doc/posix-functions/fdopendir.texi: New file.
40386         * doc/posix-functions/fstatat.texi: New file.
40387         * doc/posix-functions/futimens.texi: New file.
40388         * doc/posix-functions/linkat.texi: New file.
40389         * doc/posix-functions/mkdirat.texi: New file.
40390         * doc/posix-functions/mkfifoat.texi: New file.
40391         * doc/posix-functions/mknodat.texi: New file.
40392         * doc/posix-functions/open_wmemstream.texi: New file.
40393         * doc/posix-functions/openat.texi: New file.
40394         * doc/posix-functions/psiginfo.texi: New file.
40395         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
40396         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
40397         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
40398         * doc/posix-functions/readlinkat.texi: New file.
40399         * doc/posix-functions/renameat.texi: New file.
40400         * doc/posix-functions/strerror_l.texi: New file.
40401         * doc/posix-functions/symlinkat.texi: New file.
40402         * doc/posix-functions/unlinkat.texi: New file.
40403         * doc/posix-functions/utimensat.texi: New file.
40404         * doc/gnulib.texi (Function Substitutes): Add these subsections.
40405
40406 2008-12-14  Bruno Haible  <bruno@clisp.org>
40407
40408         Update doc for POSIX:2008.
40409         * doc/posix-functions/alphasort.texi: Renamed from
40410         doc/glibc-functions/alphasort.texi.
40411         * doc/posix-functions/dirfd.texi: Renamed from
40412         doc/glibc-functions/dirfd.texi.
40413         * doc/posix-functions/dprintf.texi: Renamed from
40414         doc/glibc-functions/dprintf.texi.
40415         * doc/posix-functions/duplocale.texi: Renamed from
40416         doc/glibc-functions/duplocale.texi.
40417         * doc/posix-functions/fexecve.texi: Renamed from
40418         doc/glibc-functions/fexecve.texi.
40419         * doc/posix-functions/fmemopen.texi: Renamed from
40420         doc/glibc-functions/fmemopen.texi.
40421         * doc/posix-functions/freelocale.texi: Renamed from
40422         doc/glibc-functions/freelocale.texi.
40423         * doc/posix-functions/getdate_err.texi: Renamed from
40424         doc/glibc-functions/getdate_err.texi.
40425         * doc/posix-functions/isalnum_l.texi: Renamed from
40426         doc/glibc-functions/isalnum_l.texi.
40427         * doc/posix-functions/isalpha_l.texi: Renamed from
40428         doc/glibc-functions/isalpha_l.texi.
40429         * doc/posix-functions/isblank_l.texi: Renamed from
40430         doc/glibc-functions/isblank_l.texi.
40431         * doc/posix-functions/iscntrl_l.texi: Renamed from
40432         doc/glibc-functions/iscntrl_l.texi.
40433         * doc/posix-functions/isdigit_l.texi: Renamed from
40434         doc/glibc-functions/isdigit_l.texi.
40435         * doc/posix-functions/isgraph_l.texi: Renamed from
40436         doc/glibc-functions/isgraph_l.texi.
40437         * doc/posix-functions/islower_l.texi: Renamed from
40438         doc/glibc-functions/islower_l.texi.
40439         * doc/posix-functions/isprint_l.texi: Renamed from
40440         doc/glibc-functions/isprint_l.texi.
40441         * doc/posix-functions/ispunct_l.texi: Renamed from
40442         doc/glibc-functions/ispunct_l.texi.
40443         * doc/posix-functions/isspace_l.texi: Renamed from
40444         doc/glibc-functions/isspace_l.texi.
40445         * doc/posix-functions/isupper_l.texi: Renamed from
40446         doc/glibc-functions/isupper_l.texi.
40447         * doc/posix-functions/iswalnum_l.texi: Renamed from
40448         doc/glibc-functions/iswalnum_l.texi.
40449         * doc/posix-functions/iswalpha_l.texi: Renamed from
40450         doc/glibc-functions/iswalpha_l.texi.
40451         * doc/posix-functions/iswblank_l.texi: Renamed from
40452         doc/glibc-functions/iswblank_l.texi.
40453         * doc/posix-functions/iswcntrl_l.texi: Renamed from
40454         doc/glibc-functions/iswcntrl_l.texi.
40455         * doc/posix-functions/iswctype_l.texi: Renamed from
40456         doc/glibc-functions/iswctype_l.texi.
40457         * doc/posix-functions/iswdigit_l.texi: Renamed from
40458         doc/glibc-functions/iswdigit_l.texi.
40459         * doc/posix-functions/iswgraph_l.texi: Renamed from
40460         doc/glibc-functions/iswgraph_l.texi.
40461         * doc/posix-functions/iswlower_l.texi: Renamed from
40462         doc/glibc-functions/iswlower_l.texi.
40463         * doc/posix-functions/iswprint_l.texi: Renamed from
40464         doc/glibc-functions/iswprint_l.texi.
40465         * doc/posix-functions/iswpunct_l.texi: Renamed from
40466         doc/glibc-functions/iswpunct_l.texi.
40467         * doc/posix-functions/iswspace_l.texi: Renamed from
40468         doc/glibc-functions/iswspace_l.texi.
40469         * doc/posix-functions/iswupper_l.texi: Renamed from
40470         doc/glibc-functions/iswupper_l.texi.
40471         * doc/posix-functions/iswxdigit_l.texi: Renamed from
40472         doc/glibc-functions/iswxdigit_l.texi.
40473         * doc/posix-functions/isxdigit_l.texi: Renamed from
40474         doc/glibc-functions/isxdigit_l.texi.
40475         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
40476         doc/glibc-functions/mbsnrtowcs.texi.
40477         * doc/posix-functions/mkdtemp.texi: Renamed from
40478         doc/glibc-functions/mkdtemp.texi.
40479         * doc/posix-functions/newlocale.texi: Renamed from
40480         doc/glibc-functions/newlocale.texi.
40481         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
40482         doc/glibc-functions/nl_langinfo_l.texi.
40483         * doc/posix-functions/open_memstream.texi: Renamed from
40484         doc/glibc-functions/open_memstream.texi.
40485         * doc/posix-functions/opterr.texi: Renamed from
40486         doc/glibc-functions/opterr.texi.
40487         * doc/posix-functions/optind.texi: Renamed from
40488         doc/glibc-functions/optind.texi.
40489         * doc/posix-functions/optopt.texi: Renamed from
40490         doc/glibc-functions/optopt.texi.
40491         * doc/posix-functions/psignal.texi: Renamed from
40492         doc/glibc-functions/psignal.texi.
40493         * doc/posix-functions/scandir.texi: Renamed from
40494         doc/glibc-functions/scandir.texi.
40495         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
40496         doc/glibc-functions/sched_get_priority_min.texi.
40497         * doc/posix-functions/signgam.texi: Renamed from
40498         doc/glibc-functions/signgam.texi.
40499         * doc/posix-functions/stpcpy.texi: Renamed from
40500         doc/glibc-functions/stpcpy.texi.
40501         * doc/posix-functions/stpncpy.texi: Renamed from
40502         doc/glibc-functions/stpncpy.texi.
40503         * doc/posix-functions/strcasecmp_l.texi: Renamed from
40504         doc/glibc-functions/strcasecmp_l.texi.
40505         * doc/posix-functions/strcoll_l.texi: Renamed from
40506         doc/glibc-functions/strcoll_l.texi.
40507         * doc/posix-functions/strfmon_l.texi: Renamed from
40508         doc/glibc-functions/strfmon_l.texi.
40509         * doc/posix-functions/strftime_l.texi: Renamed from
40510         doc/glibc-functions/strftime_l.texi.
40511         * doc/posix-functions/strncasecmp_l.texi: Renamed from
40512         doc/glibc-functions/strncasecmp_l.texi.
40513         * doc/posix-functions/strndup.texi: Renamed from
40514         doc/glibc-functions/strndup.texi.
40515         * doc/posix-functions/strnlen.texi: Renamed from
40516         doc/glibc-functions/strnlen.texi.
40517         * doc/posix-functions/strsignal.texi: Renamed from
40518         doc/glibc-functions/strsignal.texi.
40519         * doc/posix-functions/strxfrm_l.texi: Renamed from
40520         doc/glibc-functions/strxfrm_l.texi.
40521         * doc/posix-functions/timer_gettime.texi: Renamed from
40522         doc/glibc-functions/timer_gettime.texi.
40523         * doc/posix-functions/tolower_l.texi: Renamed from
40524         doc/glibc-functions/tolower_l.texi.
40525         * doc/posix-functions/toupper_l.texi: Renamed from
40526         doc/glibc-functions/toupper_l.texi.
40527         * doc/posix-functions/towctrans_l.texi: Renamed from
40528         doc/glibc-functions/towctrans_l.texi.
40529         * doc/posix-functions/towlower_l.texi: Renamed from
40530         doc/glibc-functions/towlower_l.texi.
40531         * doc/posix-functions/towupper_l.texi: Renamed from
40532         doc/glibc-functions/towupper_l.texi.
40533         * doc/posix-functions/uselocale.texi: Renamed from
40534         doc/glibc-functions/uselocale.texi.
40535         * doc/posix-functions/vdprintf.texi: Renamed from
40536         doc/glibc-functions/vdprintf.texi.
40537         * doc/posix-functions/wcpcpy.texi:
40538         Renamed from doc/glibc-functions/wcpcpy.texi.
40539         * doc/posix-functions/wcpncpy.texi: Renamed from
40540         doc/glibc-functions/wcpncpy.texi.
40541         * doc/posix-functions/wcscasecmp.texi: Renamed from
40542         doc/glibc-functions/wcscasecmp.texi.
40543         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
40544         doc/glibc-functions/wcscasecmp_l.texi.
40545         * doc/posix-functions/wcscoll_l.texi: Renamed from
40546         doc/glibc-functions/wcscoll_l.texi.
40547         * doc/posix-functions/wcsdup.texi: Renamed from
40548         doc/glibc-functions/wcsdup.texi.
40549         * doc/posix-functions/wcsncasecmp.texi: Renamed from
40550         doc/glibc-functions/wcsncasecmp.texi.
40551         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
40552         doc/glibc-functions/wcsncasecmp_l.texi.
40553         * doc/posix-functions/wcsnlen.texi: Renamed from
40554         doc/glibc-functions/wcsnlen.texi.
40555         * doc/posix-functions/wcsnrtombs.texi: Renamed from
40556         doc/glibc-functions/wcsnrtombs.texi.
40557         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
40558         doc/glibc-functions/wcsxfrm_l.texi.
40559         * doc/posix-functions/wctrans_l.texi: Renamed from
40560         doc/glibc-functions/wctrans_l.texi.
40561         * doc/posix-functions/wctype_l.texi: Renamed from
40562         doc/glibc-functions/wctype_l.texi.
40563         * doc/gnulib.texi (Function Substitutes): Add these subsections.
40564         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
40565         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
40566         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
40567         these subsections.
40568         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
40569         Remove sections.
40570
40571 2008-12-14  Bruno Haible  <bruno@clisp.org>
40572
40573         Update doc for POSIX:2008.
40574         * doc/posix-functions/*.texi: Update URL of POSIX specification.
40575
40576 2008-12-14  Bruno Haible  <bruno@clisp.org>
40577
40578         Update doc for POSIX:2008.
40579         * doc/pastposix-functions/bcmp.texi: Renamed from
40580         doc/posix-functions/bcmp.texi.
40581         * doc/pastposix-functions/bcopy.texi: Renamed from
40582         doc/posix-functions/bcopy.texi.
40583         * doc/pastposix-functions/bsd_signal.texi: Renamed from
40584         doc/posix-functions/bsd_signal.texi.
40585         * doc/pastposix-functions/bzero.texi: Renamed from
40586         doc/posix-functions/bzero.texi.
40587         * doc/pastposix-functions/ecvt.texi: Renamed from
40588         doc/posix-functions/ecvt.texi.
40589         * doc/pastposix-functions/fcvt.texi: Renamed from
40590         doc/posix-functions/fcvt.texi.
40591         * doc/pastposix-functions/ftime.texi: Renamed from
40592         doc/posix-functions/ftime.texi.
40593         * doc/pastposix-functions/gcvt.texi: Renamed from
40594         doc/posix-functions/gcvt.texi.
40595         * doc/pastposix-functions/getcontext.texi: Renamed from
40596         doc/posix-functions/getcontext.texi.
40597         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
40598         doc/posix-functions/gethostbyaddr.texi.
40599         * doc/pastposix-functions/gethostbyname.texi: Renamed from
40600         doc/posix-functions/gethostbyname.texi.
40601         * doc/pastposix-functions/getwd.texi: Renamed from
40602         doc/posix-functions/getwd.texi.
40603         * doc/pastposix-functions/h_errno.texi: Renamed from
40604         doc/posix-functions/h_errno.texi.
40605         * doc/pastposix-functions/index.texi: Renamed from
40606         doc/posix-functions/index.texi.
40607         * doc/pastposix-functions/makecontext.texi: Renamed from
40608         doc/posix-functions/makecontext.texi.
40609         * doc/pastposix-functions/mktemp.texi: Renamed from
40610         doc/posix-functions/mktemp.texi.
40611         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
40612         doc/posix-functions/pthread_attr_getstackaddr.texi.
40613         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
40614         doc/posix-functions/pthread_attr_setstackaddr.texi.
40615         * doc/pastposix-functions/rindex.texi: Renamed from
40616         doc/posix-functions/rindex.texi.
40617         * doc/pastposix-functions/scalb.texi: Renamed from
40618         doc/posix-functions/scalb.texi.
40619         * doc/pastposix-functions/setcontext.texi: Renamed from
40620         doc/posix-functions/setcontext.texi.
40621         * doc/pastposix-functions/swapcontext.texi: Renamed from
40622         doc/posix-functions/swapcontext.texi.
40623         * doc/pastposix-functions/ualarm.texi: Renamed from
40624         doc/posix-functions/ualarm.texi.
40625         * doc/pastposix-functions/usleep.texi: Renamed from
40626         doc/posix-functions/usleep.texi.
40627         * doc/pastposix-functions/vfork.texi: Renamed from
40628         doc/posix-functions/vfork.texi.
40629         * doc/pastposix-functions/wcswcs.texi: Renamed from
40630         doc/posix-functions/wcswcs.texi.
40631         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
40632         (Function Substitutes): Update.
40633
40634 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40635
40636         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
40637         m4/strerror.m4.
40638
40639 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40640             Bruno Haible  <bruno@clisp.org>
40641
40642         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
40643
40644 2008-12-13  Bruno Haible  <bruno@clisp.org>
40645
40646         * modules/strtoull (Depends-on): Remove unistd.
40647
40648 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40649
40650         * modules/strtoull (Depends-on): Add stdlib.
40651
40652 2008-12-11  Simon Josefsson  <simon@josefsson.org>
40653
40654         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
40655
40656 2008-12-10  Jim Meyering  <meyering@redhat.com>
40657
40658         gl_ASSERT: don't say assertions are disabled when they're not
40659         * m4/assert.m4 (gl_ASSERT): Do not make configure report
40660         "checking whether to enable assertions... no", when they are in
40661         fact enabled.  This is solely a bug in the output of configure.
40662         In spite of saying "no", NDEBUG was not defined in that case.
40663         Also, as noted by Eric Blake, leave assertions enabled upon
40664         --enable-assert=INVALID.
40665
40666 2008-12-10  Bruno Haible  <bruno@clisp.org>
40667
40668         Change MODULES.html to refer to POSIX:2008 where possible.
40669         * MODULES.html.sh (POSIX2008_URL): New variable.
40670         (posix_headers): Remove sys/timeb, ucontext.
40671         (posix2001_headers): New variable.
40672         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
40673         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
40674         index, makecontext, mktemp, pthread_attr_getstackaddr,
40675         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
40676         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
40677         (posix2001_functions): New variable.
40678         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
40679         otherwise.
40680
40681 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40682
40683         add missing include to parse-duration.c
40684         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
40685         * modules/parse-duration (Depends-on): Add xalloc.
40686
40687         fix sed script reading maint.mk
40688         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
40689         (syntax-check-rules): Use it.
40690
40691 2008-12-09  Bruno Haible  <bruno@clisp.org>
40692
40693         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
40694         MacOS X 10.4/PowerPC.
40695         Reported by Simon Josefsson.
40696
40697 2008-12-08  Jim Meyering  <meyering@redhat.com>
40698
40699         work around mingw's lack of some S_IF definitions
40700         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
40701         Reported by Simon Josefsson.
40702
40703 2008-12-08  Bruno Haible  <bruno@clisp.org>
40704
40705         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
40706         applied to variables. Needed on MacOS X 10.4/PowerPC.
40707         Reported by Simon Josefsson.
40708
40709 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
40710         and Eric Blake  <ebb9@byu.net>
40711
40712         assert: honor --enable-assert
40713         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
40714         order to honor --enable-assert, rather than treating it as a
40715         synonym for --disable-assert.
40716
40717 2008-12-08  Jim Meyering  <meyering@redhat.com>
40718
40719         * lib/posixtm.c: Remove now-useless declaration of mktime.
40720
40721         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
40722
40723 2008-12-07  Bruno Haible  <bruno@clisp.org>
40724
40725         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
40726         test_once): Mark functions as static.
40727         * tests/test-tls.c (test_tls): Likewise.
40728
40729 2008-12-07  Bruno Haible  <bruno@clisp.org>
40730
40731         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
40732         iconv_register_autodetect.
40733
40734 2008-12-07  Jim Meyering  <meyering@redhat.com>
40735
40736         posixtm.c: avoid a warning
40737         * lib/posixtm.c (posixtime): Don't initialize tm0.
40738         It's no longer needed to placate gcc4's -Wuninitialized,
40739         and the attempt to placate would elicit a new warning.
40740
40741         unicodeio.c: mark unused parameters
40742         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40743         (fallback_failure_callback): Likewise.
40744
40745 2008-12-07  Bruno Haible  <bruno@clisp.org>
40746
40747         * gnulib-tool (func_create_testdir): When building the tests
40748         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
40749         Reported by Simon Josefsson.
40750
40751 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40752
40753         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
40754
40755 2008-12-06  Bruno Haible  <bruno@clisp.org>
40756
40757         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
40758         Suggested by Eric Blake.
40759
40760 2008-12-06  Bruno Haible  <bruno@clisp.org>
40761
40762         Fix a c-stack test failure on MacOS X.
40763         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
40764         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
40765         handler for SIGBUS as well.
40766         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
40767         install a signal handler for SIGBUS as well.
40768         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
40769
40770 2008-12-06  Bruno Haible  <bruno@clisp.org>
40771
40772         Advocacy documentation.
40773         * doc/gnulib-intro.texi (Benefits): New section.
40774         * doc/gnulib.texi: Update.
40775
40776 2008-12-06  Bruno Haible  <bruno@clisp.org>
40777
40778         Document the 'manywarnings' module.
40779         * doc/manywarnings.texi: New file.
40780         * doc/gnulib.texi: Include it.
40781
40782 2008-12-05  Eric Blake  <ebb9@byu.net>
40783
40784         tests: silence some gcc warnings
40785         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
40786         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
40787         type mismatches.
40788
40789 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40790             Bruno Haible  <bruno@clisp.org>
40791
40792         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
40793
40794 2008-11-29  Jim Meyering  <meyering@redhat.com>
40795
40796         unicodeio.c: mark unused parameters
40797         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40798         (fallback_failure_callback): Likewise.
40799
40800         fts: fix a thinko
40801         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
40802         (set_stat_type): Return S_IF*-valued "type" directly.
40803         Prompted by James Youngman's spotting a related bug.
40804         Confirmed by further testing through find.
40805
40806         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
40807         * lib/fts.c (D_TYPE): Define.
40808         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
40809         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
40810         (s_ifmt_shift_bits): New function.
40811         (set_stat_type): New function.
40812         (fts_build): When not calling fts_stat, call set_stat_type
40813         to propagate dirent.d_type info to fts_read caller.
40814         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
40815         fts_statp->st_mode type information may be valid.
40816
40817 2008-11-28  Simon Josefsson  <simon@josefsson.org>
40818
40819         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
40820         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
40821         <sds@gnu.org>.
40822
40823 2008-11-20  Bruno Haible  <bruno@clisp.org>
40824
40825         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
40826         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
40827         INCLUDE_NEXT.
40828         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
40829         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
40830         * modules/math (Makefile.am): Substitute
40831         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
40832         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40833
40834 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
40835             Bruno Haible  <bruno@clisp.org>
40836
40837         * lib/stdint.in.h: Define all type macros so that their expansion is
40838         a single typedef'ed token. Fixes a compilation failure in Boost which
40839         does "using ::int8_t;".
40840
40841 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40842
40843         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
40844         gl_MANYWARN_ALL_GCC.
40845         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
40846         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
40847         * modules/manywarnings: New file.
40848         * MODULES.html.sh: Mention manywarnings module.
40849
40850 2008-11-18  Bruno Haible  <bruno@clisp.org>
40851
40852         * doc/gnulib-tool.texi (Unit tests): New section.
40853
40854 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40855
40856         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
40857         paths like 'lib/po/foo.po'.
40858
40859 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40860
40861         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
40862         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
40863
40864 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40865
40866         * m4/warnings.m4: Use CPPFLAGS to really check whether the
40867         parameter works.
40868
40869 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40870
40871         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
40872
40873 2008-11-17  Bruce Korb  <bkorb@gnu.org>
40874
40875         * modules/parse-duration-tests: New file.
40876         * tests/test-parse-duration.sh: New file.
40877         * tests/test-parse-duration.c: New file.
40878
40879         New module 'parse-duration'.
40880         * lib/parse-duration.h: New file.
40881         * lib/parse-duration.c: New file.
40882         * modules/parse-duration: New file.
40883
40884 2008-11-17  Bruno Haible  <bruno@clisp.org>
40885
40886         * tests/test-select-out.sh: Comment out the first pipe test.
40887         Reported by Simon Josefsson.
40888
40889 2008-11-17  Bruno Haible  <bruno@clisp.org>
40890
40891         * modules/getaddrinfo (Depends-on): Add servent, hostent.
40892         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
40893         gl_HOSTENT.
40894
40895 2008-11-17  Bruno Haible  <bruno@clisp.org>
40896
40897         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
40898         -lnetwork and -lnet. Needed for Haiku and BeOS.
40899
40900 2008-11-16  Bruno Haible  <bruno@clisp.org>
40901
40902         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
40903
40904 2008-11-16  Bruno Haible  <bruno@clisp.org>
40905
40906         Avoid test failure on Haiku.
40907         * tests/test-fsync.c: Include <errno.h>.
40908         (main): Don't require that fsync (0) fails.
40909
40910 2008-11-15  Bruno Haible  <bruno@clisp.org>
40911
40912         New module 'hostent'.
40913         * modules/hostent: New file.
40914         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
40915
40916 2008-11-15  Bruno Haible  <bruno@clisp.org>
40917
40918         New module 'servent'.
40919         * modules/servent: New file.
40920         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
40921
40922 2008-11-15  Bruno Haible  <bruno@clisp.org>
40923
40924         Avoid generating same test program with two different rules.
40925         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
40926         test-frexp to test-frexp-nolibm.
40927         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
40928         test-frexpl to test-frexpl-nolibm.
40929
40930 2008-11-15  Bruno Haible  <bruno@clisp.org>
40931
40932         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
40933         $(FREXPL_LIBM).
40934
40935 2008-11-15  Bruno Haible  <bruno@clisp.org>
40936
40937         * lib/netdb.in.h: Activate the definitions also when the system's
40938         <netdb.h> has 'struct addrinfo'.
40939         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
40940         EAI_OVERFLOW or AI_NUMERICSERV.
40941         * doc/posix-headers/netdb.texi: Document the problem.
40942
40943 2008-11-15  Bruno Haible  <bruno@clisp.org>
40944
40945         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
40946
40947         Make the 'sched' module work on platforms where <sched.h> exists but
40948         is incomplete (such as Haiku).
40949         * lib/sched.in.h; Include the system's <sched.h> if it exists.
40950         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
40951         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
40952         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
40953         HAVE_STRUCT_SCHED_PARAM.
40954         * modules/sched (Depends-on): Add include_next.
40955         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
40956         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
40957         * doc/posix-headers/sched.texi: Document the issue.
40958
40959 2008-11-13  Jim Meyering  <meyering@redhat.com>
40960
40961         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
40962         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
40963         test would fail due to the difference in the Report bugs to ...
40964         line.  The expected address is empty, "<>", while the actual
40965         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
40966
40967 2008-11-12  Bruno Haible  <bruno@clisp.org>
40968
40969         lstat: don't compile lstat.c on systems lacking lstat
40970         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
40971         which don't have lstat; this is handled by lib/sys_stat.in.h already.
40972         Reported by Daniel P. Berrange via Jim Meyering.
40973
40974 2008-11-12  Jim Meyering  <meyering@redhat.com>
40975
40976         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
40977
40978 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40979
40980         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
40981         instead.
40982
40983 2008-11-12  Bruno Haible  <bruno@clisp.org>
40984
40985         * lib/unicodeio.c: Include unistr.h.
40986         (utf8_wctomb): Remove function.
40987         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
40988
40989 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40990
40991         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
40992         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
40993         <bruno@clisp.org>.
40994         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
40995
40996 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40997
40998         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
40999         * doc/gnulib.texi: Add section for warnings.
41000
41001 2008-11-11  Bruno Haible  <bruno@clisp.org>
41002
41003         * lib/sockets.h: Add a comment.
41004
41005 2008-11-11  Karl Berry  <karl@gnu.org>
41006
41007         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
41008
41009 2008-11-11  Eric Blake  <ebb9@byu.net>
41010
41011         fdl.texi: avoid git symlinks
41012         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
41013
41014 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41015
41016         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
41017
41018 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41019
41020         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
41021         (gl_WARN_ADD): Substitute $2 if literal.
41022
41023 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41024
41025         * m4/warning.m4: Remove.
41026
41027 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
41028
41029         * m4/warnings.m4: Almost complete rewrite. :-)
41030
41031 2008-11-10  Simon Josefsson  <simon@josefsson.org>
41032
41033         * modules/warnings: New module.
41034         * m4/warnings.m4: New file.
41035         * MODULES.html.sh: Mention warnings module.
41036         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
41037         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41038
41039 2008-11-10  Eric Blake  <ebb9@byu.net>
41040
41041         fdl.texi: make a symlink to the latest version
41042         * doc/standards.texi: Revert today's earlier change.
41043         * doc/fdl-1.2.texi: Rename from old fdl.texi...
41044         * doc/fdl.texi: ...and replace this with a symlink to the newer
41045         fdl-1.3.texi.
41046
41047 2008-11-10  Bruno Haible  <bruno@clisp.org>
41048
41049         * tests/test-select-fd.c (main): Accept the result file name as fourth
41050         argument.
41051         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
41052         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
41053
41054 2008-11-10  Bruno Haible  <bruno@clisp.org>
41055
41056         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
41057         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
41058         as autoconf-substituted macros.
41059         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
41060         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
41061         gl_NETDB_H_DEFAULTS. Set these variables.
41062         * modules/netdb (Makefile.am): Substitute these variables.
41063
41064 2008-11-10  Eric Blake  <ebb9@byu.net>
41065
41066         standards.texi: include correct file for FDL 1.3
41067         * doc/standards.texi (GNU Free Documentation License): Change
41068         include file to pull in FDL 1.3, not 1.2.
41069
41070         fdl.texi: revert accidental change to license
41071         * doc/fdl.texi: This is FDL 1.2, not 1.3.
41072
41073 2008-11-10  Bruno Haible  <bruno@clisp.org>
41074
41075         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
41076         cross-compiling guesses also when the native compile gives no result.
41077
41078 2008-11-10  Bruno Haible  <bruno@clisp.org>
41079
41080         * lib/spawni.c (__spawni): Force variable into the stack.
41081
41082 2008-11-10  Bruno Haible  <bruno@clisp.org>
41083
41084         Add support for Haiku.
41085         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
41086         glibc and BeOS, but also on Haiku.
41087         * lib/fpurge.c (fpurge): Likewise.
41088         * lib/freadable.c (freadable): Likewise.
41089         * lib/freadahead.c (freadahead): Likewise.
41090         * lib/freading.c (freading): Likewise.
41091         * lib/freadptr.c (freadptr): Likewise.
41092         * lib/freadseek.c (freadptrinc): Likewise.
41093         * lib/fseeko.c (rpl_fseeko): Likewise.
41094         * lib/fseterr.c (fseterr): Likewise.
41095         * lib/fwritable.c (fwritable): Likewise.
41096         * lib/fwriting.c (fwriting): Likewise.
41097         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
41098
41099 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
41100
41101         * lib/config.charset: Treat Haiku like BeOS.
41102
41103 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
41104
41105         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
41106         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
41107
41108 2008-11-08  Bruno Haible  <bruno@clisp.org>
41109
41110         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
41111         AC_CACHE_CHECK.
41112
41113 2008-11-08  Bruno Haible  <bruno@clisp.org>
41114
41115         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
41116
41117 2008-11-08  Bruno Haible  <bruno@clisp.org>
41118
41119         * tests/test-select-fd.c: New file.
41120         * tests/test-select-in.sh: New file.
41121         * tests/test-select-out.sh: New file.
41122         * tests/test-select-stdin.c: New file.
41123         * modules/select-tests (Files): Add the new files.
41124         (Depends-on): Add gettimeofday.
41125         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
41126         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
41127         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
41128
41129 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
41130             Bruno Haible  <bruno@clisp.org>
41131
41132         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
41133
41134 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
41135
41136         * build-aux/pmccabe2html: Added support for C++ source files.
41137
41138 2008-11-05  Ben Pfaff  <blp@gnu.org>
41139
41140         Fix lib/close.c build on Windows.
41141         * modules/close (Files): Add lib/w32sock.h.
41142
41143 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
41144
41145         Accept Bison's NEWS format.
41146         * build-aux/announce-gen (print_news_deltas): Tweak
41147         $re_prefix.
41148
41149 2008-11-04  Bruno Haible  <bruno@clisp.org>
41150
41151         * modules/random_r (Maintainer): Add glibc.
41152
41153 2008-11-04  Simon Josefsson  <simon@josefsson.org>
41154
41155         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
41156         by karl@freefriends.org (Karl Berry).
41157         * doc/alloca.texi: Likewise.
41158         * doc/c-ctype.texi: Likewise.
41159         * doc/c-strcase.texi: Likewise.
41160         * doc/c-strcaseeq.texi: Likewise.
41161         * doc/c-strcasestr.texi: Likewise.
41162         * doc/c-strstr.texi: Likewise.
41163         * doc/c-strtod.texi: Likewise.
41164         * doc/c-strtold.texi: Likewise.
41165         * doc/ctime.texi: Likewise.
41166         * doc/error.texi: Likewise.
41167         * doc/fdl.texi: Likewise.
41168         * doc/gcd.texi: Likewise.
41169         * doc/getdate.texi: Likewise.
41170         * doc/gnulib-intro.texi: Likewise.
41171         * doc/gnulib-tool.texi: Likewise.
41172         * doc/gnulib.texi: Likewise.
41173         * doc/inet_ntoa.texi: Likewise.
41174         * doc/maintain.texi: Likewise.
41175         * doc/make-stds.texi: Likewise.
41176         * doc/quote.texi: Likewise.
41177         * doc/regexprops-generic.texi: Likewise.
41178         * doc/standards.texi: Likewise.
41179         * doc/verify.texi: Likewise.
41180         * doc/visibility.texi: Likewise.
41181         * doc/gnulib.texi (GNU Free Documentation License): Include
41182         fdl-1.3.texi instead of fdl.texi.
41183
41184 2008-11-04  Simon Josefsson  <simon@josefsson.org>
41185
41186         * doc/fdl-1.3.texi: New file, from
41187         <http://www.gnu.org/licenses/fdl-1.3.texi>.
41188         * modules/fdl-1.3: Add.
41189         * MODULES.html.sh: Add fdl-1.3.
41190
41191 2008-11-03  Bruno Haible  <bruno@clisp.org>
41192
41193         Make determination of absolute name of header file work with AIX xlc.
41194         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
41195         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
41196         preprocessing.
41197         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
41198         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
41199
41200 2008-11-03  Simon Josefsson  <simon@josefsson.org>
41201
41202         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
41203         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
41204         <ludo@gnu.org>.
41205
41206 2008-11-02  Bruno Haible  <bruno@clisp.org>
41207
41208         Mark 'strpbrk' obsolete.
41209         * modules/strpbrk (Status, Notice): New sections.
41210         * modules/strtok_r (Depends-on): Add strpbrk.
41211
41212 2008-11-02  Bruno Haible  <bruno@clisp.org>
41213
41214         Mark 'strdup' obsolete.
41215         * modules/strdup (Status, Notice): New sections.
41216         * modules/findprog (Depends-on): Add strdup.
41217         * modules/getaddrinfo (Depends-on): Likewise.
41218         * modules/localename (Depends-on): Likewise.
41219         * modules/relocatable-lib (Depends-on): Likewise.
41220         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
41221         * modules/relocatable-prog (Depends-on): Likewise.
41222         * modules/trim (Depends-on): Likewise.
41223         * modules/unictype/gen-ctype (Depends-on): Likewise.
41224         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
41225
41226 2008-11-02  Bruno Haible  <bruno@clisp.org>
41227
41228         Mark 'strcspn' obsolete.
41229         * modules/strcspn (Status, Notice): New sections.
41230
41231 2008-11-02  Bruno Haible  <bruno@clisp.org>
41232
41233         Mark 'rmdir' obsolete.
41234         * modules/rmdir (Status, Notice): New sections.
41235         * modules/clean-temp (Depends-on): Add rmdir.
41236         * modules/openat (Depends-on): Likewise.
41237
41238 2008-11-02  Bruno Haible  <bruno@clisp.org>
41239
41240         Mark 'raise' obsolete.
41241         * modules/raise (Status, Notice): New sections.
41242         (Include): Specify <signal.h>.
41243         * modules/stdio (Depends-on): Add raise.
41244         * modules/write (Depends-on): Likewise.
41245
41246 2008-11-02  Bruno Haible  <bruno@clisp.org>
41247
41248         Mark 'memset' obsolete.
41249         * modules/memset (Status, Notice): New sections.
41250
41251 2008-11-02  Bruno Haible  <bruno@clisp.org>
41252
41253         Mark 'memmove' obsolete.
41254         * modules/memmove (Status, Notice): New sections.
41255         * modules/argp (Depends-on): Add memmove.
41256         * modules/argz (Depends-on): Likewise.
41257         * modules/canonicalize (Depends-on): Likewise.
41258         * modules/canonicalize-lgpl (Depends-on): Likewise.
41259         * modules/fts (Depends-on): Likewise.
41260         * modules/getcwd (Depends-on): Likewise.
41261         * modules/human (Depends-on): Likewise.
41262         * modules/regex (Depends-on): Likewise.
41263         * modules/striconveh (Depends-on): Likewise.
41264         * modules/trim (Depends-on): Likewise.
41265         * modules/unistr/u8-move (Depends-on): Likewise.
41266         * modules/unistr/u16-move (Depends-on): Likewise.
41267         * modules/unistr/u32-move (Depends-on): Likewise.
41268
41269 2008-11-02  Bruno Haible  <bruno@clisp.org>
41270
41271         Mark 'memcpy' obsolete.
41272         * modules/memcpy (Status, Notice): New sections.
41273
41274 2008-11-02  Bruno Haible  <bruno@clisp.org>
41275
41276         Mark 'memcmp' obsolete.
41277         * modules/memcmp (Status, Notice): New sections.
41278         * modules/argmatch (Depends-on): Add memchr.
41279         * modules/backupfile (Depends-on): Likewise.
41280         * modules/c-strcasestr (Depends-on): Likewise.
41281         * modules/crypto/des (Depends-on): Likewise.
41282         * modules/csharpcomp (Depends-on): Likewise.
41283         * modules/fnmatch (Depends-on): Likewise.
41284         * modules/git-merge-changelog (Depends-on): Likewise.
41285         * modules/isnand (Depends-on): Likewise.
41286         * modules/isnand-nolibm (Depends-on): Likewise.
41287         * modules/isnanf (Depends-on): Likewise.
41288         * modules/isnanf-nolibm (Depends-on): Likewise.
41289         * modules/isnanl (Depends-on): Likewise.
41290         * modules/isnanl-nolibm (Depends-on): Likewise.
41291         * modules/mbchar (Depends-on): Likewise.
41292         * modules/memcoll (Depends-on): Likewise.
41293         * modules/quotearg (Depends-on): Likewise.
41294         * modules/regex (Depends-on): Likewise.
41295         * modules/relocatable-prog (Depends-on): Likewise.
41296         * modules/same (Depends-on): Likewise.
41297         * modules/signbit (Depends-on): Likewise.
41298         * modules/strcasestr-simple (Depends-on): Likewise.
41299         * modules/unictype/gen-ctype (Depends-on): Likewise.
41300         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
41301         * modules/uniname/uniname (Depends-on): Likewise.
41302         * modules/unistr/u8-cmp (Depends-on): Likewise.
41303
41304 2008-11-02  Bruno Haible  <bruno@clisp.org>
41305
41306         Mark 'memchr' obsolete.
41307         * modules/memchr (Status, Notice): New sections.
41308         * modules/argp (Depends-on): Add memchr.
41309         * modules/base64 (Depends-on): Likewise.
41310         * modules/c-strcasestr (Depends-on): Likewise.
41311         * modules/chdir-long (Depends-on): Likewise.
41312         * modules/fnmatch (Depends-on): Likewise.
41313         * modules/getsubopt (Depends-on): Likewise.
41314         * modules/git-merge-changelog (Depends-on): Likewise.
41315         * modules/glob (Depends-on): Likewise.
41316         * modules/strcasestr-simple (Depends-on): Likewise.
41317         * modules/strnlen (Depends-on): Likewise.
41318
41319 2008-11-02  Bruno Haible  <bruno@clisp.org>
41320
41321         Mark 'atexit' obsolete.
41322         * modules/atexit (Status, Notice): New sections.
41323         * modules/chdir-long (Depends-on): Add atexit.
41324         * modules/wait-process (Depends-on): Likewise.
41325
41326 2008-11-02  Bruno Haible  <bruno@clisp.org>
41327
41328         * gnulib-tool: New option --with-obsolete.
41329         (func_usage): Document it.
41330         (func_modules_transitive_closure): Drop obsolete dependencies if
41331         incobsolete is not true.
41332         (func_import): Read and save the incobsolete variable to the cache.
41333
41334 2008-11-02  Bruno Haible  <bruno@clisp.org>
41335
41336         * modules/TEMPLATE-EXTENDED: New field 'Status'.
41337         * gnulib-tool: New option --extract-status.
41338         (func_usage): Document it.
41339         (sed_extract_prog): Recognize it.
41340         (func_get_status): New function.
41341
41342 2008-10-30  Simon Josefsson  <simon@josefsson.org>
41343
41344         * modules/sockets (License): Change from LGPL to LGPLv2+.
41345
41346 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41347
41348         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
41349
41350 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41351
41352         * MODULES.html.sh (Support for systems lacking POSIX:2001):
41353         Mention times and sys_times.
41354         * modules/sys_times, modules/sys_times-tests: New modules.
41355         * modules/times, modules/times-tests: Likewise
41356         * m4/sys_times_h.m4: New file.
41357         * lib/sys_times.in.h: Likewise
41358         * lib/times.c: Likewise.
41359         * tests/test-sys_times.c: Likewise.
41360         * tests/test-times.c: Likewise.
41361         * doc/posix-headers/sys_times.texi: Update.
41362         * doc/posix-functions/times.texi: Update.
41363
41364 2008-10-28  Jim Meyering  <meyering@redhat.com>
41365
41366         * modules/tempname (Depends-on): Add lstat.
41367
41368         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
41369
41370 2008-10-28  Simon Josefsson  <simon@josefsson.org>
41371
41372         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
41373         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
41374         using idiom used elsewhere in gnulib.
41375
41376 2008-10-27  Jim Meyering  <meyering@redhat.com>
41377
41378         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
41379
41380 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41381
41382         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
41383         TESTS_ENVIRONMENT, for shell scripts that needs to call built
41384         programs.
41385         * tests/test-argp-2.sh: Use $EXEEXT when needed.
41386
41387 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41388
41389         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
41390
41391 2008-10-27  Bruno Haible  <bruno@clisp.org>
41392
41393         * tests/test-lstat.c: Include <stdio.h>.
41394
41395 2008-10-27  Simon Josefsson  <simon@josefsson.org>
41396
41397         * modules/lstat-tests: New module.
41398         * tests/test-lstat.c: New file.
41399
41400 2008-10-26  Jim Meyering  <meyering@redhat.com>
41401
41402         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
41403
41404 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41405             Bruno Haible  <bruno@clisp.org>
41406
41407         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
41408         * modules/configmake (Include): Add a note that the include must come
41409         after all system headers.
41410         * lib/javaversion.c: Include configmake.h after all other includes.
41411
41412 2008-10-26  Bruno Haible  <bruno@clisp.org>
41413
41414         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
41415         HAVE_STRUCT_RANDOM_DATA to 1.
41416         (gl_STDLIB_H): Simplify.
41417
41418 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41419
41420         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
41421         substitute HAVE_STRUCT_RANDOM_DATA.
41422         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
41423         random_data.
41424         * modules/stdlib (Makefile.am): Substitute
41425         HAVE_STRUCT_RANDOM_DATA.
41426
41427 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41428
41429         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
41430         * doc/gnulib-intro.texi (Copyright): Likewise.
41431
41432 2008-10-26  Simon Josefsson  <simon@josefsson.org>
41433
41434         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
41435         findings.
41436
41437 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
41438             Bruno Haible  <bruno@clisp.org>
41439
41440         * lib/unistd.in.h: Include <winsock2.h>.
41441         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
41442         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
41443         Provide dummy declarations.
41444         (gethostname): Override.
41445         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
41446         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
41447         gl_PREREQ_SYS_H_WINSOCK2.
41448         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
41449         * doc/posix-functions/gethostname.texi: More details.
41450
41451 2008-10-25  Bruno Haible  <bruno@clisp.org>
41452
41453         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
41454         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
41455         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
41456
41457         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
41458         here ...
41459         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
41460         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
41461         gl_UNISTD_H_DEFAULTS.
41462
41463 2008-10-25  Eric Blake  <ebb9@byu.net>
41464
41465         signbit: avoid spurious compiler failure
41466         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
41467         declarations inside function.
41468
41469 2008-10-24  Simon Josefsson  <simon@josefsson.org>
41470             Bruno Haible  <bruno@clisp.org>
41471
41472         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
41473         * modules/random_r (Depends-on): Add stdint.
41474
41475 2008-10-24  Bruno Haible  <bruno@clisp.org>
41476
41477         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
41478         Eggert.
41479         * modules/strerror (License): Likewise.
41480
41481 2008-10-24  Jim Meyering  <meyering@redhat.com>
41482
41483         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
41484         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
41485
41486 2008-10-24  Eric Blake  <ebb9@byu.net>
41487
41488         getgroups: fix compilation when getgroups is available
41489         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
41490         but with <config.h> override of getgroups disabled.
41491
41492 2008-10-24  Simon Josefsson  <simon@josefsson.org>
41493
41494         * doc/gnulib.texi (Header files): Add note about C++ problems.
41495         Explained by Bruno Haible <bruno@clisp.org>.
41496
41497 2008-10-23  Bruno Haible  <bruno@clisp.org>
41498
41499         Define a dummy SA_NODEFER macro on Interix.
41500         * lib/signal.in.h (SA_NODEFER): Define fallback.
41501         Reported by Aleksey Cheusov <cheusov@tut.by> via
41502         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
41503
41504 2008-10-23  Bruno Haible  <bruno@clisp.org>
41505
41506         * modules/freadahead (License): Change to LGPLv2+.
41507         Suggested by Simon Josefsson.
41508
41509 2008-10-23  Jim Meyering  <meyering@redhat.com>
41510
41511         random_r: new module
41512         * modules/random_r: New file.
41513         * m4/random_r.m4: New file.
41514         * lib/random_r.c: New file, from glibc.
41515         * modules/random_r-tests: New file.
41516         * tests/test-random_r.c: New file.
41517         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
41518          Declare.
41519         (RAND_MAX): Define.
41520         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
41521         * modules/stdlib: Substitute them, too.
41522         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
41523         * doc/glibc-functions/initstate_r.texi: Mention the new module.
41524         * doc/glibc-functions/random_r.texi: Likewise.
41525         * doc/glibc-functions/setstate_r.texi: Likewise.
41526         * doc/glibc-functions/srandom_r.texi: Likewise.
41527         * config/srclist.txt: Mention it.
41528
41529 2008-10-23  David Lutterkort  <lutter@redhat.com>
41530
41531         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
41532         link requirement
41533
41534 2008-10-23  Jim Meyering  <meyering@redhat.com>
41535
41536         selinux-h: mark parameters of stub functions as intentionally unused
41537         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
41538         * lib/se-context.in.h: Likewise.
41539
41540 2008-10-22  Simon Josefsson  <simon@josefsson.org>
41541
41542         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
41543
41544 2008-10-22  Simon Josefsson  <simon@josefsson.org>
41545
41546         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
41547
41548 2008-10-22  Eric Blake  <ebb9@byu.net>
41549
41550         glthread/thread: avoid compiler warning
41551         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
41552         Add unreachable abort to silence compiler.
41553
41554 2008-10-22  Eric Blake  <ebb9@byu.net>
41555
41556         netdb: also supply struct addrinfo for cygwin 1.5.x
41557         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
41558         older cygwin.
41559         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
41560         cygwin.
41561         * doc/posix-headers/netdb.texi (netdb.h): Document this.
41562
41563 2008-10-22  Bruno Haible  <bruno@clisp.org>
41564
41565         * users.txt: Update entry about pspp.
41566
41567 2008-10-21  Bruno Haible  <bruno@clisp.org>
41568
41569         Simplification.
41570         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
41571         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
41572
41573         Simplification.
41574         * lib/ioctl.c (ioctl): Don't undefine.
41575         * lib/socket.c (socket): Don't undefine.
41576
41577         Remove unused module indicator macros.
41578         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
41579         GNULIB_$1 as a C macro.
41580
41581         * doc/posix-functions/close.texi: Undo last change.
41582         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
41583         Windows platforms.
41584
41585 2008-10-21  Bruno Haible  <bruno@clisp.org>
41586
41587         Add gethostname() declaration to <unistd.h>.
41588         * lib/unistd.in.h (gethostname): New declaration.
41589         * lib/gethostname.c: Include <unistd.h>.
41590         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
41591         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
41592         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
41593         and HAVE_GETHOSTNAME.
41594         * modules/gethostname (Depends-on): Add unistd.
41595         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41596         (Include): Specify <unistd.h>.
41597         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
41598         HAVE_GETHOSTNAME.
41599         * tests/test-gethostname.c: Include <unistd.h> first.
41600
41601 2008-10-21  Bruno Haible  <bruno@clisp.org>
41602
41603         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
41604         * modules/select-tests (Depends-on): Likewise.
41605         Reported by Simon Josefsson.
41606
41607 2008-10-21  Simon Josefsson  <simon@josefsson.org>
41608
41609         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
41610         * lib/accept.c: New file, based on winsock.c.
41611         * lib/bind.c: New file, based on winsock.c.
41612         * lib/connect.c: New file, based on winsock.c.
41613         * lib/getpeername.c: New file, based on winsock.c.
41614         * lib/getsockname.c: New file, based on winsock.c.
41615         * lib/getsockopt.c: New file, based on winsock.c.
41616         * lib/ioctl.c: New file, based on winsock.c.
41617         * lib/listen.c: New file, based on winsock.c.
41618         * lib/recv.c: New file, based on winsock.c.
41619         * lib/recvfrom.c: New file, based on winsock.c.
41620         * lib/send.c: New file, based on winsock.c.
41621         * lib/sendto.c: New file, based on winsock.c.
41622         * lib/setsockopt.c: New file, based on winsock.c.
41623         * lib/shutdown.c: New file, based on winsock.c.
41624         * lib/socket.c: New file, based on winsock.c.
41625         * lib/w32sock.h: New file, based on winsock.c.
41626         * lib/winsock.c: Remove file.
41627         * modules/accept: Likewise.
41628         * modules/bind: Likewise.
41629         * modules/connect: Likewise.
41630         * modules/getpeername: Likewise.
41631         * modules/getsockname: Likewise.
41632         * modules/getsockopt: Likewise.
41633         * modules/ioctl: Likewise.
41634         * modules/listen: Likewise.
41635         * modules/recv: Likewise.
41636         * modules/recvfrom: Likewise.
41637         * modules/send: Likewise.
41638         * modules/sendto: Likewise.
41639         * modules/setsockopt: Likewise.
41640         * modules/shutdown: Likewise.
41641         * modules/socket: Use socket.c instead of winsock.c.
41642         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
41643         * doc/posix-functions/accept.texi: Doc fix.
41644         * doc/posix-functions/bind.texi: Doc fix.
41645         * doc/posix-functions/close.texi: Doc fix.
41646         * doc/posix-functions/connect.texi: Doc fix.
41647         * doc/posix-functions/getpeername.texi: Doc fix.
41648         * doc/posix-functions/getsockname.texi: Doc fix.
41649         * doc/posix-functions/getsockopt.texi: Doc fix.
41650         * doc/posix-functions/ioctl.texi: Doc fix.
41651         * doc/posix-functions/listen.texi: Doc fix.
41652         * doc/posix-functions/recv.texi: Doc fix.
41653         * doc/posix-functions/recvfrom.texi: Doc fix.
41654         * doc/posix-functions/send.texi: Doc fix.
41655         * doc/posix-functions/sendto.texi: Doc fix.
41656         * doc/posix-functions/setsockopt.texi: Doc fix.
41657         * doc/posix-functions/shutdown.texi: Doc fix.
41658         * doc/posix-functions/socket.texi: Doc fix.
41659
41660 2008-10-20  Bruno Haible  <bruno@clisp.org>
41661
41662         Take into account the role of SIGABRT_COMPAT on Windows 2008.
41663         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
41664         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
41665         as an alias for SIGABRT.
41666         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
41667         (sigaction): Map it to SIGABRT.
41668         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
41669
41670 2008-10-20  Bruno Haible  <bruno@clisp.org>
41671
41672         * lib/fts.c: Don't include lstat.h.
41673         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
41674
41675         Move the lstat() declaration to <sys/stat.h>.
41676         * lib/lstat.h: Remove file.
41677         * lib/sys_stat.in.h: Add special invocation convention.
41678         (lstat): New declaration.
41679         * lib/lstat.c (orig_lstat): New function.
41680         (rpl_lstat): Use orig_lstat instead of lstat.
41681         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
41682         AC_C_INLINE. Set REPLACE_LSTAT.
41683         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
41684         and REPLACE_LSTAT.
41685         * modules/lstat (Files): Remove lib/lstat.h.
41686         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
41687         (Include): Specify <sys/stat.h> instead of lstat.h.
41688         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
41689         REPLACE_LSTAT.
41690         * NEWS: Mention the change.
41691
41692 2008-10-20  Bruno Haible  <bruno@clisp.org>
41693
41694         * modules/posix_spawn-tests: New file.
41695         * tests/test-posix_spawn3.c: New file.
41696
41697 2008-10-20  Bruno Haible  <bruno@clisp.org>
41698
41699         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
41700         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
41701         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
41702         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
41703         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
41704
41705 2008-10-20  Bruno Haible  <bruno@clisp.org>
41706
41707         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
41708         of posix_spawn on AIX 5.3.
41709
41710 2008-10-20  Bruno Haible  <bruno@clisp.org>
41711
41712         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
41713
41714 2008-10-20  Bruno Haible  <bruno@clisp.org>
41715
41716         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
41717         of AC_LANG_PROGRAM.
41718
41719 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41720
41721         * lib/netdb.in.h: Don't define GNU specific constants until they
41722         are supported or needed.  Reported by Bruno Haible
41723         <bruno@clisp.org>.
41724
41725 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41726
41727         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
41728
41729 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41730
41731         * lib/getaddrinfo.h: Remove file.
41732         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
41733         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
41734         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
41735         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
41736         * modules/netdb: Substitute GNULIB_GETADDRINFO.
41737         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
41738         * tests/test-getaddrinfo.c: Likewise.
41739         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
41740         * NEWS: Mention change.
41741
41742 2008-10-19  Bruno Haible  <bruno@clisp.org>
41743
41744         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
41745
41746 2008-10-19  Bruno Haible  <bruno@clisp.org>
41747
41748         * lib/wait-process.c: Include simply <sys/wait.h>.
41749         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
41750         WIFSTOPPED): Remove fallback definitions.
41751         * modules/wait-process (Depends-on): Add sys_wait.
41752
41753         New module 'sys_wait'.
41754         * modules/sys_wait: New file.
41755         * lib/sys_wait.in.h: New file, partially copied from
41756         lib/wait-process.c.
41757         * m4/sys_wait_h.m4: New file.
41758         * doc/posix-headers/sys_wait.texi: Mention the new module.
41759
41760 2008-10-19  Bruno Haible  <bruno@clisp.org>
41761
41762         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
41763
41764 2008-10-19  Bruno Haible  <bruno@clisp.org>
41765
41766         Assume that waitpid() fills an 'int' status, not a 'union wait'.
41767         * lib/wait-process.c (WAIT_T): Remove type.
41768         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
41769         (wait_subprocess): Update.
41770
41771 2008-10-19  Bruno Haible  <bruno@clisp.org>
41772
41773         New module 'atoll'.
41774         * modules/atoll: New file.
41775         * lib/stdlib.in.h (atoll): New declaration.
41776         * lib/atoll.c: New file, from glibc with modifications.
41777         * m4/atoll.m4: New file.
41778         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
41779         HAVE_ATOLL.
41780         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
41781         * doc/posix-functions/atoll.texi: Mention the new module.
41782
41783 2008-10-19  Bruno Haible  <bruno@clisp.org>
41784
41785         Add strtoull() declaration to <stdlib.h>.
41786         * lib/stdlib.in.h (strtoull): New declaration.
41787         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41788         Set HAVE_STRTOULL.
41789         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
41790         HAVE_STRTOULL.
41791         * modules/strtoull (Depends-on): Add stdlib.
41792         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41793         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
41794         HAVE_STRTOULL.
41795
41796 2008-10-19  Bruno Haible  <bruno@clisp.org>
41797
41798         Add strtoll() declaration to <stdlib.h>.
41799         * lib/stdlib.in.h (strtoll): New declaration.
41800         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41801         Set HAVE_STRTOLL.
41802         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
41803         HAVE_STRTOLL.
41804         * modules/strtoll (Depends-on): Add stdlib.
41805         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41806         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
41807
41808 2008-10-19  Bruno Haible  <bruno@clisp.org>
41809
41810         * modules/bcopy (Depends-on): Add strings.
41811         (Include): Specify <strings.h>.
41812
41813 2008-10-19  Bruno Haible  <bruno@clisp.org>
41814
41815         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
41816
41817 2008-10-19  Bruno Haible  <bruno@clisp.org>
41818
41819         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
41820         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
41821         mingw.
41822
41823 2008-10-19  Bruno Haible  <bruno@clisp.org>
41824
41825         * lib/atanl.c: Don't include isnanl.h.
41826         * lib/cosl.c: Likewise.
41827         * lib/ldexpl.c: Likewise.
41828         * lib/logl.c: Likewise.
41829         * lib/sinl.c: Likewise.
41830         * lib/sqrtl.c: Likewise.
41831         * lib/tanl.c: Likewise.
41832
41833         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
41834         * lib/isnanf.h: Remove file.
41835         * lib/isnand.h: Remove file.
41836         * lib/isnanl.h: Remove file.
41837         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
41838         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
41839         macros.
41840         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
41841         HAVE_ISNANF, don't define it as a C macro.
41842         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
41843         HAVE_ISNAND, don't define it as a C macro.
41844         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
41845         HAVE_ISNANL, don't define it as a C macro.
41846         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
41847         HAVE_ISNAN[FDL].
41848         * modules/isnanf (Files): Remove lib/isnanf.h.
41849         (Depends-on): Add math.
41850         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41851         (Include): Specify <math.h> instead of isnanf.h.
41852         * modules/isnand (Files): Remove lib/isnand.h.
41853         (Depends-on): Add math.
41854         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41855         (Include): Specify <math.h> instead of isnand.h.
41856         * modules/isnanl (Files): Remove lib/isnanl.h.
41857         (Depends-on): Add math.
41858         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41859         (Include): Specify <math.h> instead of isnanl.h.
41860         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
41861         HAVE_ISNAN[FDL].
41862         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
41863         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
41864         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
41865         * NEWS: Mention the change.
41866
41867 2008-10-18  Bruno Haible  <bruno@clisp.org>
41868
41869         Add getusershell(), setusershell(), endusershell() declarations to
41870         <unistd.h>.
41871         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
41872         declarations.
41873         * lib/getusershell.c: Include unistd.h.
41874         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
41875         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
41876         HAVE_GETUSERSHELL.
41877         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
41878         and HAVE_GETUSERSHELL.
41879         * modules/getusershell (Depends-on): Add unistd, extensions.
41880         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41881         (Include): Specify <unistd.h>.
41882         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
41883         HAVE_GETUSERSHELL.
41884
41885 2008-10-18  Bruno Haible  <bruno@clisp.org>
41886
41887         Add a getloadavg() declaration to <stdlib.h>.
41888         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
41889         getloadavg declaration.
41890         (getloadavg): New declaration.
41891         * lib/getloadavg.c: Include <stdlib.h> first.
41892         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
41893         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
41894         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
41895         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
41896         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
41897         * modules/getloadavg (Depends-on): Add stdlib, extensions.
41898         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41899         (Include): Specify <stdlib.h>.
41900         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
41901         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
41902
41903 2008-10-18  Bruno Haible  <bruno@clisp.org>
41904
41905         * lib/dirchownmod.c: Don't include lchmod.h.
41906
41907         Move the lchmod() declaration to <sys/stat.h>.
41908         * lib/lchmod.h: Remove file.
41909         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
41910         (lchmod): New declaration, moved here from lib/lchown.h.
41911         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
41912         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
41913         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
41914         and HAVE_LCHMOD.
41915         * modules/lchmod (Files): Remove lib/lchmod.h.
41916         (Depends-on): Add sys_stat, extensions.
41917         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
41918         (Include): Specify <sys/stat.h> instead of lchmod.h.
41919         * modules/sys_stat (Depends-on): Add link-warning.
41920         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
41921         definition of GL_LINK_WARNING.
41922         * NEWS: Mention the change.
41923
41924 2008-10-18  Bruno Haible  <bruno@clisp.org>
41925
41926         * lib/fchdir.c: Don't include dirfd.h.
41927         * lib/fts.c: Likewise.
41928         * lib/getcwd.c: Likewise.
41929         * lib/glob.c: Likewise.
41930
41931         Move the dirfd() declaration to <dirent.h>.
41932         * lib/dirfd.h: Remove file.
41933         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
41934         (dirfd): New declaration.
41935         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
41936         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
41937         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
41938         HAVE_DECL_DIRFD.
41939         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
41940         HAVE_DECL_DIRFD.
41941         * modules/dirfd (Files): Remove lib/dirfd.h.
41942         (Depends-on): Add dirent, extensions.
41943         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
41944         (Include): Specify <dirent.h> instead of dirfd.h.
41945         * modules/dirent (Depends-on): Add link-warning.
41946         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
41947         definition of GL_LINK_WARNING.
41948         * NEWS: Mention the change.
41949
41950 2008-10-18  Bruno Haible  <bruno@clisp.org>
41951
41952         Move the euidaccess() declaration to <unistd.h>.
41953         * lib/euidaccess.h: Remove file.
41954         * lib/unistd.in.h (euidaccess): New declaration.
41955         * lib/euidaccess.c: Don't include euidaccess.h.
41956         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
41957         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
41958         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
41959         and HAVE_EUIDACCESS.
41960         * modules/euidaccess (Files): Remove lib/euidaccess.h.
41961         (Depends-on): Add unistd.
41962         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41963         (Include): Specify <unistd.h> instead of euidaccess.h.
41964         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
41965         HAVE_EUIDACCESS.
41966         * NEWS: Mention the change.
41967
41968 2008-10-18  Bruno Haible  <bruno@clisp.org>
41969
41970         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
41971
41972         Move the getdomainname() declaration to <unistd.h>.
41973         * lib/getdomainname.h: Remove file.
41974         * lib/unistd.in.h (getdomainname): New declaration.
41975         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
41976         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
41977         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
41978         HAVE_GETDOMAINNAME.
41979         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41980         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
41981         * modules/getdomainname (Files): Remove lib/getdomainname.h.
41982         (Depends-on): Add unistd, extensions.
41983         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41984         (Includes): Specify <unistd.h> instead of getdomainname.h.
41985         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
41986         HAVE_GETDOMAINNAME.
41987         * NEWS: Mention the change.
41988
41989 2008-10-18  Bruno Haible  <bruno@clisp.org>
41990
41991         * modules/dirent: New file.
41992         * m4/dirent_h.m4: New file.
41993         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
41994         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
41995         * modules/fchdir (Files): Remove lib/dirent.in.h.
41996         (Depends-on): Add dirent.
41997         (Makefile.am): Move rules to modules/dirent.
41998         * doc/posix-headers/dirent.texi: Mention the new module.
41999
42000 2008-10-18  Bruno Haible  <bruno@clisp.org>
42001
42002         Avoid -Wunused-parameter warnings in public gnulib header files.
42003         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
42004         macro.
42005         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
42006
42007 2008-10-18  Bruno Haible  <bruno@clisp.org>
42008
42009         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
42010         * doc/glibc-functions/error.texi: Mention the module 'error'.
42011         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
42012         * doc/glibc-functions/getdomainname.texi: Mention the module
42013         'getdomainname'.
42014         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
42015         * doc/glibc-functions/getpagesize.texi: Mention the module
42016         'getpagesize'.
42017         * doc/glibc-functions/getusershell.texi: Mention the module
42018         'getusershell'.
42019         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
42020         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
42021         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
42022         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
42023         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
42024         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
42025         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
42026         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
42027         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
42028         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
42029         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
42030         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
42031         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
42032         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
42033
42034 2008-10-17  Bruno Haible  <bruno@clisp.org>
42035
42036         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
42037         HP-UX and IRIX, use -0.0L.
42038         * tests/test-ceill.c (minus_zero): Likewise.
42039         * tests/test-floorl.c (minus_zero): Likewise.
42040         * tests/test-frexpl.c (minus_zero): Likewise.
42041         * tests/test-isnan.c (minus_zerol): Likewise.
42042         * tests/test-isnanl.h (minus_zero): Likewise.
42043         * tests/test-ldexpl.c (minus_zero): Likewise.
42044         * tests/test-roundl.c (minus_zero): Likewise.
42045         * tests/test-signbit.c (minus_zerol): Likewise.
42046         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
42047         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
42048         * tests/test-truncl.c (minus_zero): Likewise.
42049         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
42050         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
42051         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
42052         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
42053
42054 2008-10-17  Bruno Haible  <bruno@clisp.org>
42055
42056         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
42057         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
42058         that it gets activated only for gcc >= 3.0.
42059         * lib/dirent.in.h: Likewise.
42060         * lib/errno.in.h: Likewise.
42061         * lib/fcntl.in.h: Likewise.
42062         * lib/float.in.h: Likewise.
42063         * lib/iconv.in.h: Likewise.
42064         * lib/inttypes.in.h: Likewise.
42065         * lib/locale.in.h: Likewise.
42066         * lib/math.in.h: Likewise.
42067         * lib/netdb.in.h: Likewise.
42068         * lib/netinet_in.in.h: Likewise.
42069         * lib/search.in.h: Likewise.
42070         * lib/signal.in.h: Likewise.
42071         * lib/spawn.in.h: Likewise.
42072         * lib/stdarg.in.h: Likewise.
42073         * lib/stdint.in.h: Likewise.
42074         * lib/stdio.in.h: Likewise.
42075         * lib/stdlib.in.h: Likewise.
42076         * lib/string.in.h: Likewise.
42077         * lib/strings.in.h: Likewise.
42078         * lib/sys_file.in.h: Likewise.
42079         * lib/sys_ioctl.in.h: Likewise.
42080         * lib/sys_select.in.h: Likewise.
42081         * lib/sys_socket.in.h: Likewise.
42082         * lib/sys_stat.in.h: Likewise.
42083         * lib/sys_time.in.h: Likewise.
42084         * lib/sysexits.in.h: Likewise.
42085         * lib/time.in.h: Likewise.
42086         * lib/unistd.in.h: Likewise.
42087         * lib/wchar.in.h: Likewise.
42088         * lib/wctype.in.h: Likewise.
42089         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42090
42091 2008-10-17  Jim Meyering  <meyering@redhat.com>
42092
42093         ignore-value: don't depend on inline module
42094         * modules/ignore-value (Depends-on): Remove 'inline'.
42095         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
42096         Suggestion from Bruno Haible.
42097
42098 2008-10-17  Bruno Haible  <bruno@clisp.org>
42099
42100         New implementation of condition variables for Win32.
42101         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
42102         (gl_linked_waitqueue_t): New type.
42103         (gl_cond_t): Use it.
42104         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
42105         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
42106         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
42107         (glthread_cond_init_func, glthread_cond_wait_func,
42108         glthread_cond_timedwait_func, glthread_cond_signal_func,
42109         glthread_cond_broadcast_func, glthread_cond_destroy_func):
42110         Reimplemented on the basis of gl_linked_waitqueue_t.
42111         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
42112         gl_waitqueue_t.
42113         (gl_rwlock_t): Update.
42114         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
42115
42116 2008-10-17  Simon Josefsson  <simon@josefsson.org>
42117
42118         * modules/recvfrom (Depends-on): Add dependency on getpeername.
42119         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42120
42121 2008-10-17  Jim Meyering  <meyering@redhat.com>
42122
42123         ignore-value: new module
42124         * modules/ignore-value: New file.
42125         * lib/ignore-value.h: New file.
42126         * MODULES.html.sh (Compiler warning management): New section,
42127         just for this module.  More to come.
42128
42129 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
42130
42131         open-safer.c: avoid 'signed and unsigned in conditional...' warning
42132         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
42133         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
42134
42135 2008-10-16  Jim Meyering  <meyering@redhat.com>
42136
42137         openat-die.c: avoid 'no previous prototype' warning
42138         * lib/openat-die.c: Include "openat.h".
42139         Reported by Reuben Thomas <rrt@sc3d.org>.
42140
42141 2008-10-16  Simon Josefsson  <simon@josefsson.org>
42142
42143         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
42144         * lib/netdb.in.h: Fix typo.
42145         Reported by Bruno Haible  <bruno@clisp.org>
42146
42147         * lib/netdb.in.h: Include sys/socket.h for platforms without
42148         netdb.h, to get structures like hostent on MinGW.
42149         * modules/netdb (Depends-on): Add sys_socket.
42150
42151 2008-10-15  Simon Josefsson  <simon@josefsson.org>
42152
42153         * modules/netdb, modules/netdb-tests: New file.
42154         * m4/netdb_h.m4: New file.
42155         * lib/netdb.in.h: Add, currently just an empty file pending
42156         definitions.
42157         * tests/test-netdb.c: New file.
42158         * doc/posix-headers/netdb.texi: Mention that we replace it if
42159         needed.
42160         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42161         netdb.
42162
42163 2008-10-15  Simon Josefsson  <simon@josefsson.org>
42164
42165         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
42166         with code.
42167
42168 2008-10-13  Bruno Haible  <bruno@clisp.org>
42169
42170         * lib/glthread/cond.c (glthread_cond_wait_func,
42171         glthread_cond_timedwait_func): Add a comment.
42172
42173 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42174
42175         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
42176         * tests/test-select.c: Likewise,
42177
42178 2008-10-13  Bruno Haible  <bruno@clisp.org>
42179
42180         * lib/glthread/cond.c (glthread_cond_wait_func,
42181         glthread_cond_timedwait_func): Fix variable name.
42182         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42183
42184 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
42185
42186         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
42187         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
42188         struct sockaddr.sa_len.
42189         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
42190
42191 2008-10-13  Simon Josefsson  <simon@josefsson.org>
42192
42193         * build-aux/pmccabe2html: Add css and css_url parameters.
42194
42195 2008-10-12  Bruno Haible  <bruno@clisp.org>
42196
42197         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
42198         calling aclx_get.
42199         Reported by Rainer Tammer <tammer@tammer.net>.
42200
42201 2008-10-12  Bruno Haible  <bruno@clisp.org>
42202
42203         Use msvcrt aware primitives for creation/termination of Win32 threads.
42204         * lib/glthread/thread.c: Include <process.h>.
42205         (glthread_create_func): Use _beginthreadex instead of CreateThread.
42206         (wrapper_func): Update signature.
42207         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
42208
42209 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
42210             Bruno Haible  <bruno@clisp.org>
42211
42212         Provide a Win32 implementation of the 'cond' module.
42213         * lib/glthread/cond.h [USE_WIN32]: New implementation.
42214         * lib/glthread/cond.c (glthread_cond_init_func,
42215         glthread_cond_wait_func, glthread_cond_timedwait_func,
42216         glthread_cond_signal_func, glthread_cond_broadcast_func,
42217         glthread_cond_destroy_func) [USE_WIN32]: New functions.
42218         * modules/cond (Dependencies): Add gettimeofday.
42219
42220 2008-10-11  Bruno Haible  <bruno@clisp.org>
42221
42222         Make sleep work on older versions of mingw.
42223         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
42224         only whether it exists.
42225         * doc/posix-functions/sleep.texi: Mention the problem with older
42226         versions of mingw.
42227
42228 2008-10-11  Bruno Haible  <bruno@clisp.org>
42229
42230         New module 'shutdown'.
42231         * modules/shutdown: New file.
42232         * lib/sys_socket.in.h (shutdown): New declaration.
42233         * lib/winsock.c (shutdown): New function.
42234         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
42235         GNULIB_SHUTDOWN.
42236         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
42237         * doc/posix-functions/shutdown.texi: Document the new module.
42238
42239 2008-10-11  Jim Meyering  <meyering@redhat.com>
42240
42241         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
42242
42243 2008-10-11  Bruno Haible  <bruno@clisp.org>
42244
42245         New module 'fclose'.
42246         * modules/fclose: New file.
42247         * lib/stdio.in.h (fclose): New declaration.
42248         * lib/fclose.c: New file.
42249         * m4/fclose.m4: New file.
42250         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
42251         REPLACE_FCLOSE.
42252         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
42253         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
42254         REPLACE_FCLOSE.
42255         * modules/close (Depends-on): fclose.
42256         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
42257
42258 2008-10-11  Bruno Haible  <bruno@clisp.org>
42259
42260         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
42261         set errno and don't call _close.
42262
42263 2008-10-10  Bruno Haible  <bruno@clisp.org>
42264
42265         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
42266         ACL, not afterwards. Fixes test failure on Cygwin.
42267
42268 2008-10-09  Ben Pfaff  <blp@gnu.org>
42269
42270         * build-aux/announce-gen: Fix gnulib version related part of usage
42271         message.  Die with a useful error message if no tarballs are
42272         found.
42273
42274 2008-10-10  Jim Meyering  <meyering@redhat.com>
42275
42276         bootstrap: use git's --depth=N option only if it's supported
42277         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
42278         recognize the --depth option.  Reported by Pádraig Brady.
42279
42280 2008-10-09  Bruno Haible  <bruno@clisp.org>
42281
42282         New module 'ioctl'.
42283         * modules/ioctl: New file.
42284         * lib/sys_socket.in.h (ioctl): Remove declaration.
42285         * lib/winsock.c: Include <sys/ioctl.h>.
42286         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
42287         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
42288         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
42289         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
42290         * doc/posix-functions/ioctl.texi: Mention the new module.
42291
42292 2008-10-09  Bruno Haible  <bruno@clisp.org>
42293
42294         New module 'sys_ioctl'.
42295         * lib/sys_ioctl.in.h: New file.
42296         * m4/sys_ioctl_h.m4: New file.
42297         * modules/sys_ioctl: New file.
42298         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
42299
42300 2008-10-09  Bruno Haible  <bruno@clisp.org>
42301
42302         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
42303         * lib/winsock.c: Include <stdarg.h>.
42304         (rpl_ioctl): Change to second argument 'int' and then varargs.
42305
42306 2008-10-09  Bruno Haible  <bruno@clisp.org>
42307
42308         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
42309         when the sys_socket module is present and the system has <winsock2.h>.
42310
42311 2008-10-09  Bruno Haible  <bruno@clisp.org>
42312
42313         * doc/posix-functions/close.texi: Mention module 'close' instead of
42314         module 'sys_socket'.
42315
42316 2008-10-09  Bruno Haible  <bruno@clisp.org>
42317
42318         * doc/glibc-headers/sys_ioctl.texi: New file.
42319         * doc/gnulib.texi: Include it.
42320
42321 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42322             Bruno Haible  <bruno@clisp.org>
42323
42324         Combine the two replacements of 'close'.
42325         * lib/sys_socket.in.h (close): Define to a reminder to include
42326         <unistd.h>.
42327         (_gl_close_fd_maybe_socket): New declaration.
42328         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
42329         * lib/winsock.c (close): Remove undefinition.
42330         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
42331         needed for the gnulib module 'close'.
42332         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
42333         define to an error symbol or to a warning, if suitable.
42334         * lib/close.c: Include <sys/socket.h>.
42335         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
42336         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
42337         UNISTD_H_HAVE_WINSOCK2_H.
42338         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
42339         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42340         UNISTD_H_HAVE_WINSOCK2_H.
42341         * modules/sys_socket (Files): Add m4/unistd_h.m4.
42342         (configure.ac): Set a module indicator.
42343         (Makefile.am): Substitute GNULIB_CLOSE.
42344         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
42345         * modules/poll-tests (Depends-on): Add close.
42346         * modules/select-tests (Depends-on): Likewise.
42347
42348 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42349             Bruno Haible  <bruno@clisp.org>
42350
42351         New module 'close'.
42352         * modules/close: New file.
42353         * lib/unistd.in.h (close): Move declaration out of the
42354         FCHDIR_REPLACEMENT scope.
42355         (_gl_unregister_fd): New declaration.
42356         * lib/close.c: New file.
42357         * lib/fchdir.c (rpl_close): Remove function.
42358         * m4/close.m4: New file.
42359         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
42360         close.
42361         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
42362         REPLACE_CLOSE.
42363         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
42364         REPLACE_CLOSE.
42365         * modules/fchdir (Depends-on): Add close.
42366
42367 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42368             Bruno Haible  <bruno@clisp.org>
42369
42370         * lib/fcntl.in.h (open): Simplify conditionals.
42371         (_gl_register_fd): New declaration.
42372         * lib/fchdir.c (rpl_open): Remove function.
42373         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
42374         also.
42375         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
42376         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
42377         open.
42378
42379 2008-10-09  Jim Meyering  <meyering@redhat.com>
42380
42381         GNUmakefile: use the more name-space-friendly "_version"
42382         * top/GNUmakefile (_dummy): Update.
42383         (_version): Rename from "version".
42384
42385 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42386             Bruno Haible  <bruno@clisp.org>
42387
42388         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
42389         rpl_close.
42390         (_gl_register_fd): New function, extracted from rpl_open.
42391         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
42392         (rpl_open, rpl_opendir): Use _gl_register_fd.
42393
42394 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
42395
42396         Fix organization of 'open' replacement.
42397         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
42398         (gl_FUNC_OPEN): Use it.
42399         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
42400
42401 2008-10-08  Bruno Haible  <bruno@clisp.org>
42402
42403         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
42404
42405 2008-10-08  Simon Josefsson  <simon@josefsson.org>
42406
42407         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
42408         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
42409         listen).
42410
42411 2008-10-08  Eric Blake  <ebb9@byu.net>
42412
42413         GNUmakefile: add 'make version' target
42414         * top/GNUmakefile (_curr-ver): Split version update rules...
42415         (version): ...into a target.
42416
42417 2008-10-07  Bruno Haible  <bruno@clisp.org>
42418
42419         Use a more portable replacement expression for -0.0L.
42420         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
42421         instead of -0.0L. Fix m4 quotation.
42422
42423         * tests/test-signbit.c: Include <float.h>.
42424         (minus_zero): New variable.
42425         (test_signbitl): Use minus_zero instead of -zero.
42426         * modules/signbit-tests (Depends-on): Add float.
42427
42428         * tests/test-ceill.c: Include <float.h>.
42429         (zero): Remove variable.
42430         (minus_zero): New variable.
42431         (main): Use minus_zero instead of -zero.
42432         * modules/ceill-tests (Depends-on): Add float.
42433
42434         * tests/test-floorl.c: Include <float.h>.
42435         (zero): Remove variable.
42436         (minus_zero): New variable.
42437         (main): Use minus_zero instead of -zero.
42438         * modules/floorl-tests (Depends-on): Add float.
42439
42440         * tests/test-roundl.c: Include <float.h>.
42441         (zero): Remove variable.
42442         (minus_zero): New variable.
42443         (main): Use minus_zero instead of -zero.
42444         * modules/roundl-tests (Depends-on): Add float.
42445
42446         * tests/test-truncl.c: Include <float.h>.
42447         (zero): Remove variable.
42448         (minus_zero): New variable.
42449         (main): Use minus_zero instead of -zero.
42450         * modules/truncl-tests (Depends-on): Add float.
42451
42452         * tests/test-frexpl.c (zero): Remove variable.
42453         (minus_zero): New variable.
42454         (main): Use minus_zero instead of -zero.
42455         * modules/frexpl-tests (Depends-on): Add float.
42456
42457         * tests/test-isnan.c (zerol): Remove variable.
42458         (minus_zerol): New variable.
42459         (test_long_double): Use minus_zerol instead of -zerol.
42460         * modules/isnan-tests (Depends-on): Add float.
42461
42462         * tests/test-isnanl.h (zero): Remove variable.
42463         (minus_zero): New variable.
42464         (main): Use minus_zero instead of -zero.
42465         * modules/isnanl-nolibm-tests (Depends-on): Add float.
42466         * modules/isnanl-tests (Depends-on): Add float.
42467
42468         * tests/test-ldexpl.c (zero): Remove variable.
42469         (minus_zero): New variable.
42470         (main): Use minus_zero instead of -zero.
42471         * modules/ldexpl-tests (Depends-on): Add float.
42472
42473         * tests/test-snprintf-posix.h (zerol): Remove variable.
42474         (minus_zerol): New variable.
42475         (test_function): Use minus_zerol instead of -zerol.
42476         * modules/snprintf-posix-tests (Depends-on): Add float.
42477         * modules/vsnprintf-posix-tests (Depends-on): Add float.
42478
42479         * tests/test-sprintf-posix.h (zerol): Remove variable.
42480         (minus_zerol): New variable.
42481         (test_function): Use minus_zerol instead of -zerol.
42482         * modules/sprintf-posix-tests (Depends-on): Add float.
42483         * modules/vsprintf-posix-tests (Depends-on): Add float.
42484
42485         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
42486         (minus_zerol): New variable.
42487         (test_function): Use minus_zerol instead of -zerol.
42488         * modules/vasnprintf-posix-tests (Depends-on): Add float.
42489
42490         * tests/test-vasprintf-posix.c (zerol): Remove variable.
42491         (minus_zerol): New variable.
42492         (test_function): Use minus_zerol instead of -zerol.
42493         * modules/vasprintf-posix-tests (Depends-on): Add float.
42494
42495 2008-10-07  Simon Josefsson  <simon@josefsson.org>
42496
42497         * MODULES.html.sh (Support for building documentation): Mention
42498         pmccabe2html.  Sort entries.
42499
42500         Add pmccabe2html module, from gnupdf.
42501         * build-aux/pmccabe.css: New file.
42502         * build-aux/pmccabe2html: New file.
42503         * m4/pmccabe2html.m4: New file.
42504         * modules/pmccabe2html: New file.
42505
42506 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
42507
42508         flock: new module
42509         * MODULES.html.sh: Add to list of modules.
42510         * lib/flock.c: flock implementation for Windows and Unix systems
42511         which have fcntl.
42512         * doc/glibc-functions/flock.texi: Update documentation.
42513         * lib/sys_file.in.h: <sys/file.h> header file.
42514         * m4/flock.m4: M4 macros.
42515         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
42516         * modules/flock: flock module.
42517         * modules/flock-tests: flock tests module.
42518         * modules/sys_file: sys/file.h module.
42519         * tests/test-flock.c: test suite for flock.
42520
42521 2008-10-06  Jim Meyering  <meyering@redhat.com>
42522
42523         bootstrap: check for LT_INIT more portably still ;-)
42524         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
42525         Spotted by Bruno Haible.
42526
42527 2008-10-06  Eric Blake  <ebb9@byu.net>
42528
42529         test-signbit: avoid tripping Irix cc bug on -0.0L
42530         * tests/test-signbit.c (minus_zerol): Delete, and replace with
42531         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
42532         entire testsuite consistent and avoids an Irix 6.2 bug.
42533
42534 2008-10-05  Bruno Haible  <bruno@clisp.org>
42535             Jim Meyering  <jim@meyering.net>
42536
42537         Add an option for ignoring EPIPE during close_stdout.
42538         * lib/closeout.h: Include <stdbool.h>.
42539         (close_stdout_set_ignore_EPIPE): New declaration.
42540         * lib/closeout.c: Include <stdbool.h>.
42541         (ignore_EPIPE): New variable.
42542         (close_stdout_set_ignore_EPIPE): New function.
42543         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
42544         * lib/close-stream.c (close_stream): Mention the possible EPIPE
42545         failure.
42546         * modules/closeout (Depends-on): Add stdbool.
42547
42548 2008-10-05  Bruno Haible  <bruno@clisp.org>
42549
42550         * modules/accept: New file.
42551         * modules/bind: New file.
42552         * modules/connect: New file.
42553         * modules/getpeername: New file.
42554         * modules/getsockname: New file.
42555         * modules/getsockopt: New file.
42556         * modules/listen: New file.
42557         * modules/recv: New file.
42558         * modules/recvfrom: New file.
42559         * modules/send: New file.
42560         * modules/sendto: New file.
42561         * modules/setsockopt: New file.
42562         * modules/socket: New file.
42563         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
42564         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
42565         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
42566         the particular module is requested. Add a link warning when the
42567         particular module is not requested.
42568         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
42569         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
42570         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
42571         the particular module is requested.
42572         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
42573         gl_SYS_SOCKET_H_DEFAULTS): New macros.
42574         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
42575         * modules/sys_socket (Depends-on): Add link-warning.
42576         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
42577         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
42578         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
42579         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
42580         GL_LINK_WARNING.
42581         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
42582         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
42583         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
42584         * doc/posix-functions/getpeername.texi: Mention the new module
42585         'getpeername'.
42586         * doc/posix-functions/getsockname.texi: Mention the new module
42587         'getsockname'.
42588         * doc/posix-functions/getsockopt.texi: Mention the new module
42589         'getsockopt'.
42590         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
42591         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
42592         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
42593         * doc/posix-functions/send.texi: Mention the new module 'send'.
42594         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
42595         * doc/posix-functions/setsockopt.texi: Mention the new module
42596         'setsockopt'.
42597         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
42598         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
42599         listen, connect, accept.
42600         * modules/select-tests (Depends-on): Likewise.
42601
42602 2008-10-05  Bruno Haible  <bruno@clisp.org>
42603
42604         * lib/winsock.c (strerror): Remove unused #undef.
42605         (rpl_close): Remove unused local variable.
42606
42607         * modules/sys_socket (Depends-on); Add errno.
42608
42609 2008-10-05  Bruno Haible  <bruno@clisp.org>
42610
42611         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
42612         (select): Add a link warning when the 'select' module is not used.
42613         * modules/sys_select (Depends-on): Add link-warning.
42614         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
42615         Suggested by Paolo Bonzini.
42616
42617 2008-10-05  Jim Meyering  <meyering@redhat.com>
42618
42619         bootstrap: check for LT_INIT more portably
42620         * build-aux/bootstrap: Avoid using grep -E, since it's not
42621         portable enough.  Suggestion from Bruno Haible.
42622
42623 2008-10-05  Bruno Haible  <bruno@clisp.org>
42624
42625         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
42626         as being fixed by gnulib.
42627
42628 2008-10-05  Bruno Haible  <bruno@clisp.org>
42629
42630         * modules/select-tests: New file, mostly copied from
42631         modules/sys_select-tests.
42632         * tests/test-select.c: New file, mostly copied from
42633         tests/test-sys_select.c.
42634         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
42635         * modules/sys_select-tests (Depends-on): Remove all dependencies.
42636         (Makefile.am): Remove test_sys_select_LDADD.
42637
42638         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
42639         to an undefined symbol, for an error message.
42640         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
42641         (gl_SYS_SELECT_H_DEFAULTS): New macro.
42642         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
42643         winsock-select.c here.
42644         * modules/sys_select (Files): Remove lib/winsock-select.c.
42645         (Depends-on): Remove alloca.
42646         (Makefile.am): Substitute GNULIB_SELECT.
42647         * modules/select: New file.
42648         * doc/posix-functions/select.texi: Update.
42649
42650 2008-10-05  Bruno Haible  <bruno@clisp.org>
42651
42652         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
42653         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
42654         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
42655         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
42656         getdtablesize.
42657         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
42658         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
42659
42660 2008-10-05  Bruno Haible  <bruno@clisp.org>
42661
42662         * modules/getdtablesize-tests: New file.
42663         * tests/test-getdtablesize.c: New file.
42664
42665         New module 'getdtablesize'.
42666         * lib/unistd.in.h (getdtablesize): New declaration.
42667         * lib/getdtablesize.c: New file.
42668         * m4/getdtablesize.m4: New file.
42669         * modules/getdtablesize: New file.
42670         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42671         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
42672         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
42673         HAVE_GETDTABLESIZE.
42674         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
42675
42676 2008-10-05  Bruno Haible  <bruno@clisp.org>
42677
42678         * modules/sched (Makefile.am): Fix typo.
42679         Reported by Simon Josefsson.
42680
42681 2008-10-05  Jim Meyering  <meyering@redhat.com>
42682
42683         bootstrap: check for LT_INIT, too
42684         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
42685         are deprecated.  Suggestion from Ralf Wildenhues.
42686
42687 2008-10-05  Bruno Haible  <bruno@clisp.org>
42688
42689         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
42690         overriding them by ours.
42691         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
42692
42693 2008-10-05  Jim Meyering  <meyering@redhat.com>
42694
42695         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
42696         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
42697         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
42698
42699 2008-10-04  Bruno Haible  <bruno@clisp.org>
42700
42701         * modules/dup2 (License): Change to LGPLv2+.
42702         * modules/sleep (License): Likewise.
42703         * modules/perror (License): Likewise.
42704         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
42705         Blake.
42706         * modules/signal (License): Likewise.
42707         * modules/sigprocmask (License): Likewise.
42708         * modules/raise (License): Change to LGPLv2+, with approval by Jim
42709         Meyering.
42710
42711 2008-10-04  Bruno Haible  <bruno@clisp.org>
42712
42713         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
42714         Reported by Rainer Tammer <tammer@tammer.net>.
42715
42716 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
42717             Bruno Haible  <bruno@clisp.org>
42718
42719         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
42720         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
42721         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
42722
42723 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
42724
42725         filevercmp: new module
42726         * lib/filevercmp.h: New function filevercmp comparing version strings.
42727         * lib/filevercmp.c: Implementation of filevercmp function.
42728         * modules/filevercmp: Module metadata.
42729         * tests/test-filevercmp.c: Unit test for new module.
42730         * modules/filevercmp-tests: Unit test metadata.
42731         * MODULES.html.sh: Add filevercmp module.
42732
42733 2008-10-03  Bruno Haible  <bruno@clisp.org>
42734
42735         * lib/c-ctype.h: Add comment.
42736         Reported by Jim Meyering.
42737
42738 2008-10-02  Bruno Haible  <bruno@clisp.org>
42739
42740         * modules/posix_spawn-internal (Depends-on): Add 'open'.
42741
42742 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42743
42744         * build-aux/bootstrap: Allow renaming bootstrap, and change the
42745         name of bootstrap.conf accordingly.
42746
42747 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42748
42749         * build-aux/bootstrap: Install git-merge-changelog configuration
42750         items into .gitconfig if needed.
42751
42752 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42753
42754         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
42755         git repository, and initialize/update it accordingly.
42756
42757 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
42758
42759         * modules/fsync-tests: New file.
42760         * tests/test-fsync.c: New file.
42761
42762         New module 'fsync'.
42763         * lib/fsync.c: New file.
42764         * m4/fsync.m4: New file.
42765         * modules/fsync: New file.
42766         * lib/unistd.in.h (fsync): New declaration.
42767         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
42768         GNULIB_FSYNC and HAVE_FSYNC.
42769         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
42770         * MODULES.html.sh (posix_functions): Add fsync.
42771         * doc/posix-functions/fsync.texi: Mention the new module.
42772
42773 2008-10-02  Jim Meyering  <meyering@redhat.com>
42774
42775         fts.c: sync with similar code from coreutils' remove.c
42776         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
42777         Guard also with "#if defined __linux__", since for now at least,
42778         this code is Linux-kernel-specific.
42779
42780 2008-10-02  Jim Meyering  <meyering@redhat.com>
42781
42782         fts: bug fixes
42783         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
42784         Include <sys/vfs.h>, not <sys/statfs.h>.
42785
42786         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
42787         Include <sys/vfs.h>, not <sys/statfs.h>.
42788
42789 2008-10-01  Bruno Haible  <bruno@clisp.org>
42790
42791         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
42792         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
42793         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
42794         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
42795         * doc/posix-functions/posix_spawnp.texi: Likewise.
42796         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
42797         whether posix_spawn actually works.
42798         * m4/pipe.m4 (gl_PIPE): Likewise.
42799         * modules/execute (Files): Add m4/posix_spawn.m4.
42800         * modules/pipe (Files): Add m4/posix_spawn.m4.
42801         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
42802
42803 2008-10-01  Jim Meyering  <meyering@redhat.com>
42804
42805         remove trailing spaces
42806         * NEWS: Likewise.
42807         * lib/poll.c (poll): Likewise.
42808         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
42809         * lib/winsock.c (rpl_close): Likewise.
42810         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
42811         * modules/yield: Likewise.
42812         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
42813         * tests/test-sys_select.c (connect_to_socket): Likewise.
42814
42815         fts.c: adjust a new interface to be more generally useful
42816         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
42817         (fts_build): Adjust caller.
42818
42819 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42820
42821         * modules/cond-tests: New file.
42822         * tests/test-cond.c: New file.
42823
42824 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42825             Bruno Haible  <bruno@clisp.org>
42826
42827         * modules/cond (Dependencies): Add errno, time.
42828         * lib/glthread/cond.h: Include <time.h>.
42829         (gl_cond_define, gl_cond_define_initialized): Use the same definition
42830         across platforms.
42831
42832 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42833             Bruno Haible  <bruno@clisp.org>
42834
42835         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
42836
42837 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42838             Bruno Haible  <bruno@clisp.org>
42839
42840         * modules/tls-tests (Depends-on): Add thread, yield.
42841         (configure.ac): Remove all checks.
42842         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
42843         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42844         gl_thread_self): Remove definitions. Include glthread/thread.h and
42845         glthread/yield.h instead.
42846         (test_tls): Pass an additional NULL argument to gl_thread_join.
42847
42848 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42849             Bruno Haible  <bruno@clisp.org>
42850
42851         * modules/lock-tests (Depends-on): Add thread, yield.
42852         (configure.ac): Remove all checks.
42853         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
42854         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42855         gl_thread_self): Remove definitions. Include glthread/thread.h and
42856         glthread/yield.h instead.
42857         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
42858         additional NULL argument to gl_thread_join.
42859
42860 2008-09-30  Bruno Haible  <bruno@clisp.org>
42861
42862         Fix the Win32 implementation of the 'thread' module.
42863         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
42864         pointer type.
42865         (gl_thread_self): Invoke gl_thread_self_func.
42866         (gl_thread_self_func): New declaration.
42867         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
42868         (do_init_self_key, init_self_key): New functions.
42869         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
42870         Remove some fields.
42871         (running_threads, running_lock): Remove variables.
42872         (get_current_thread_handle): New function.
42873         (gl_thread_self_func, wrapper_func, glthread_create_func,
42874         glthread_join_func, gl_thread_exit_func): Largely rewritten and
42875         simplified.
42876
42877 2008-09-30  Bruno Haible  <bruno@clisp.org>
42878
42879         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
42880         files.
42881
42882 2008-09-30  Jim Meyering  <meyering@redhat.com>
42883
42884         fts.m4: correct the test for statfs.f_type
42885         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
42886         when checking for statfs.f_type.
42887
42888 2008-09-15  Simon Josefsson  <simon@josefsson.org>
42889
42890         tests: avoid some compiler warnings
42891         * tests/test-memchr.c (main): Pass NULL indirectly.
42892         * tests/test-getdate.c (main): Remove unused variable 'ret'.
42893
42894 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
42895
42896         getdate.y: disallow countable dayshifts like "4 yesterday ago"
42897         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
42898         exactly specified dayshifts.
42899         (dayshift): New rule.
42900         (rel): Add dayshift.
42901         (relative_time_table) [tomorrow, yesterday, today, now]:
42902         Use tDAY_SHIFT in place of tDAY_UNIT.
42903         * tests/test-getdate.c: Add tests for now-disallowed countable
42904         dayshifts, e.g., "4 yesterday ago".
42905
42906 2008-09-29  Bruno Haible  <bruno@clisp.org>
42907
42908         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
42909         * tests/test-posix_spawn1.in.sh: Renamed from
42910         tests/test-posix_spawn.in.sh.
42911         * tests/test-posix_spawn2.c: New file.
42912         * tests/test-posix_spawn2.in.sh: New file.
42913         * modules/posix_spawnp-tests (Files): Update.
42914         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
42915
42916 2008-09-29  Bruno Haible  <bruno@clisp.org>
42917
42918         Propagate effects of putenv/setenv/unsetenv to child processes.
42919         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
42920         * lib/pipe.c (create_pipe): Likewise.
42921
42922 2008-09-29  Bruno Haible  <bruno@clisp.org>
42923
42924         Enable use of shell scripts as executables in mingw.
42925         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
42926         run the program as a shell script.
42927         * lib/pipe.c (create_pipe): Likewise.
42928         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
42929         resulting array.
42930
42931 2008-09-29  Eric Blake  <ebb9@byu.net>
42932
42933         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
42934
42935 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
42936
42937         * doc/posix-functions/accept.texi: Update mingw problems.
42938         * doc/posix-functions/bind.texi: Update mingw problems.
42939         * doc/posix-functions/close.texi: Update mingw problems.
42940         * doc/posix-functions/connect.texi: Update mingw problems.
42941         * doc/posix-functions/getpeername.texi: Update mingw problems.
42942         * doc/posix-functions/getsockname.texi: Update mingw problems.
42943         * doc/posix-functions/getsockopt.texi: Update mingw problems.
42944         * doc/posix-functions/ioctl.texi: Update mingw problems.
42945         * doc/posix-functions/listen.texi: Update mingw problems.
42946         * doc/posix-functions/recv.texi: Update mingw problems.
42947         * doc/posix-functions/recvfrom.texi: Update mingw problems.
42948         * doc/posix-functions/select.texi: Update mingw problems.
42949         * doc/posix-functions/send.texi: Update mingw problems.
42950         * doc/posix-functions/sendto.texi: Update mingw problems.
42951         * doc/posix-functions/setsockopt.texi: Update mingw problems.
42952         * doc/posix-functions/socket.texi: Update mingw problems.
42953
42954 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
42955             Bruno Haible  <bruno@clisp.org>
42956
42957         * lib/sys_select.in.h: Include sys/time.h.
42958         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
42959         * modules/sys_select: Depend on sys_time.
42960         * tests/test-sys_select.c: Test that sys/select.h defines struct
42961         timeval fully.
42962
42963 2008-09-29  Bruno Haible  <bruno@clisp.org>
42964
42965         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
42966         * lib/sys_select.in.h: Likewise.
42967
42968 2008-09-29  Bruno Haible  <bruno@clisp.org>
42969
42970         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
42971
42972 2008-09-29  Bruno Haible  <bruno@clisp.org>
42973
42974         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
42975         Set LIBSOCKET instead of augmenting LIBS.
42976         * modules/sockets (Link): New section.
42977         * modules/sockets-tests (test_sockets_LDADD): New variable.
42978         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
42979         * modules/poll-tests (test_poll_LDADD): New variable.
42980         * NEWS: Document the change.
42981
42982 2008-09-29  Bruno Haible  <bruno@clisp.org>
42983
42984         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
42985         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
42986         ARPA_INET_H directly.
42987         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42988
42989 2008-09-28  Bruno Haible  <bruno@clisp.org>
42990
42991         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
42992         from gl_HEADER_SYS_SOCKET.
42993         (gl_HEADER_SYS_SOCKET): Invoke it.
42994         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42995
42996 2008-09-28  Bruno Haible  <bruno@clisp.org>
42997
42998         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
42999         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
43000         Needed on OSF/1 4.0.
43001
43002 2008-09-28  Bruno Haible  <bruno@clisp.org>
43003
43004         Override open more carefully.
43005         * lib/open.c (orig_open): New function.
43006         (rpl_open): Use orig_open instead of open.
43007         * lib/fcntl.in.h: Add special invocation convention.
43008         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
43009         (gl_FUNC_OPEN): Invoke it.
43010
43011         Override freopen more carefully.
43012         * lib/freopen.c (orig_freopen): New function.
43013         (rpl_freopen): Use orig_freopen instead of freopen.
43014         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
43015         (gl_FUNC_FREOPEN): Invoke it.
43016
43017         Override fopen more carefully.
43018         * lib/fopen.c (orig_fopen): New function.
43019         (rpl_fopen): Use orig_fopen instead of fopen.
43020         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
43021         (gl_FUNC_FOPEN): Invoke it.
43022         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
43023
43024 2008-09-28  Bruno Haible  <bruno@clisp.org>
43025
43026         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
43027         SIGPIPE.
43028
43029 2008-09-28  Bruno Haible  <bruno@clisp.org>
43030
43031         * tests/test-sigaction.c (handler, main): Disable the check whether
43032         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
43033         glibc systems with LinuxThreads.
43034
43035 2008-09-28  Bruno Haible  <bruno@clisp.org>
43036
43037         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
43038
43039         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
43040         with AIX xlc.
43041         * lib/fcntl.in.h (open): Likewise.
43042         Reported by Rainer Tammer <tammer@tammer.net>.
43043
43044 2008-09-28  Bruno Haible  <bruno@clisp.org>
43045
43046         * modules/posix_spawnp-tests: New file.
43047         * tests/test-posix_spawn.c: New file.
43048         * tests/test-posix_spawn.in.sh: New file.
43049
43050         New module 'posix_spawnp'.
43051         * modules/posix_spawnp: New file.
43052         * lib/spawnp.c: New file, from GNU libc with modifications.
43053         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
43054
43055         New module 'posix_spawn'.
43056         * modules/posix_spawn: New file.
43057         * lib/spawn.c: New file, from GNU libc with modifications.
43058         * doc/posix-functions/posix_spawn.texi: Mention the new module.
43059
43060         New module 'posix_spawnattr_destroy'.
43061         * modules/posix_spawnattr_destroy: New file.
43062         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
43063         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
43064         module.
43065
43066         New module 'posix_spawnattr_setsigmask'.
43067         * modules/posix_spawnattr_setsigmask: New file.
43068         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
43069         modifications.
43070         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
43071         new module.
43072
43073         New module 'posix_spawnattr_getsigmask'.
43074         * modules/posix_spawnattr_getsigmask: New file.
43075         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
43076         modifications.
43077         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
43078         new module.
43079
43080         New module 'posix_spawnattr_setsigdefault'.
43081         * modules/posix_spawnattr_setsigdefault: New file.
43082         * lib/spawnattr_setdefault.c: New file, from GNU libc with
43083         modifications.
43084         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
43085         new module.
43086
43087         New module 'posix_spawnattr_getsigdefault'.
43088         * modules/posix_spawnattr_getsigdefault: New file.
43089         * lib/spawnattr_getdefault.c: New file, from GNU libc with
43090         modifications.
43091         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
43092         new module.
43093
43094         New module 'posix_spawnattr_setschedpolicy'.
43095         * modules/posix_spawnattr_setschedpolicy: New file.
43096         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
43097         modifications.
43098         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
43099         new module.
43100
43101         New module 'posix_spawnattr_getschedpolicy'.
43102         * modules/posix_spawnattr_getschedpolicy: New file.
43103         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
43104         modifications.
43105         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
43106         new module.
43107
43108         New module 'posix_spawnattr_setschedparam'.
43109         * modules/posix_spawnattr_setschedparam: New file.
43110         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
43111         modifications.
43112         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
43113         new module.
43114
43115         New module 'posix_spawnattr_getschedparam'.
43116         * modules/posix_spawnattr_getschedparam: New file.
43117         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
43118         modifications.
43119         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
43120         new module.
43121
43122         New module 'posix_spawnattr_setpgroup'.
43123         * modules/posix_spawnattr_setpgroup: New file.
43124         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
43125         modifications.
43126         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
43127         module.
43128
43129         New module 'posix_spawnattr_getpgroup'.
43130         * modules/posix_spawnattr_getpgroup: New file.
43131         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
43132         modifications.
43133         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
43134         module.
43135
43136         New module 'posix_spawnattr_setflags'.
43137         * modules/posix_spawnattr_setflags: New file.
43138         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
43139         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
43140         module.
43141
43142         New module 'posix_spawnattr_getflags'.
43143         * modules/posix_spawnattr_getflags: New file.
43144         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
43145         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
43146         module.
43147
43148         New module 'posix_spawnattr_init'.
43149         * modules/posix_spawnattr_init: New file.
43150         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
43151         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
43152         module.
43153
43154         New module 'posix_spawn_file_actions_destroy'.
43155         * modules/posix_spawn_file_actions_destroy: New file.
43156         * lib/spawn_faction_destroy.c: New file, from GNU libc with
43157         modifications.
43158         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
43159         the new module.
43160
43161         New module 'posix_spawn_file_actions_addopen'.
43162         * modules/posix_spawn_file_actions_addopen: New file.
43163         * lib/spawn_faction_addopen.c: New file, from GNU libc with
43164         modifications.
43165         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
43166         the new module.
43167
43168         New module 'posix_spawn_file_actions_adddup2'.
43169         * modules/posix_spawn_file_actions_adddup2: New file.
43170         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
43171         modifications.
43172         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
43173         the new module.
43174
43175         New module 'posix_spawn_file_actions_addclose'.
43176         * modules/posix_spawn_file_actions_addclose: New file.
43177         * lib/spawn_faction_addclose.c: New file, from GNU libc with
43178         modifications.
43179         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
43180         the new module.
43181
43182         New module 'posix_spawn_file_actions_init'.
43183         * modules/posix_spawn_file_actions_init: New file.
43184         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
43185         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
43186         new module.
43187
43188         New module 'posix_spawn-internal'.
43189         * modules/posix_spawn-internal: New file.
43190         * lib/spawn_int.h: New file, from GNU libc with modifications.
43191         * lib/spawni.c: New file, from GNU libc with modifications.
43192         * m4/posix_spawn.m4: New file.
43193
43194         New module 'spawn'.
43195         * modules/spawn: New file.
43196         * lib/spawn.in.h: New file, from GNU libc with modifications.
43197         * m4/spawn_h.m4: New file.
43198         * doc/posix-headers/spawn.texi: Mention the new module.
43199
43200 2008-09-28  Bruno Haible  <bruno@clisp.org>
43201
43202         * modules/sched-tests: New file.
43203         * tests/test-sched.c: New file.
43204
43205         New module 'sched'.
43206         * modules/sched: New file.
43207         * lib/sched.in.h: New file.
43208         * m4/sched_h.m4: New file.
43209         * doc/posix-headers/sched.texi: Mention the new module.
43210
43211 2008-09-27  Eric Blake  <ebb9@byu.net>
43212
43213         Fix previous patch, and tweak references to $0.
43214         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
43215         (func_version, func_gnulib_dir): Don't call this program
43216         gnulib-tool.
43217         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
43218         with using $0 in function.
43219         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
43220         (func_fatal_error): Reuse the name the user invoked us with.
43221
43222 2008-09-27  Bruno Haible  <bruno@clisp.org>
43223
43224         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
43225         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
43226         (gl_ICONV_H): Not here.
43227         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
43228         instead of assigning ICONV_H directly.
43229
43230         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
43231         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
43232         WCHAR_H directly.
43233
43234 2008-09-27  Bruno Haible  <bruno@clisp.org>
43235
43236         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
43237         * modules/arpa_inet (Depends-on): Add link-warning.
43238         (Makefile.am): Insert the definition of GL_LINK-WARNING.
43239         * modules/unistd (Makefile.am): Likewise.
43240
43241 2008-09-26  Bruno Haible  <bruno@clisp.org>
43242
43243         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
43244         variables.
43245         (func_version): Essentially copied from gnulib-tool.
43246         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
43247         func_readlink): Copied from gnulib-tool.
43248
43249 2008-09-26  Bruno Haible  <bruno@clisp.org>
43250
43251         * gnulib-tool (func_version): Change directory to $gnulib_dir before
43252         invoking git-version-gen.
43253
43254 2008-09-26  Bruno Haible  <bruno@clisp.org>
43255
43256         * posix-modules: Update to directory names changed on 2008-01-19.
43257         Remove commas in output before splitting into words. No more need to
43258         avoid 'ftruncate' since 2007-02-19.
43259
43260 2008-09-26  Bruno Haible  <bruno@clisp.org>
43261
43262         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
43263
43264 2008-09-26  Bruno Haible  <bruno@clisp.org>
43265
43266         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
43267         * modules/fwriteerror (Depends-on): Add errno.
43268
43269 2008-09-26  Bruno Haible  <bruno@clisp.org>
43270
43271         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
43272         * tests/test-vc-list-files-cvs.sh: Likewise.
43273
43274 2008-09-26  Bruno Haible  <bruno@clisp.org>
43275
43276         * doc/posix-headers/sys_resource.texi: Reorder items.
43277
43278 2008-09-26  Jim Meyering  <meyering@redhat.com>
43279
43280         fts: tweak inode comparison function
43281         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
43282         inode numbers, as documented.
43283
43284         fts: sort dirent entries on inode number before traversing
43285         This avoids a quadratic, seek-related performance penalty when
43286         operating on a directory containing many entries (measurable at 10k;
43287         3.5 hours at 2 million entries with a cold cache) on certain types
43288         of file systems, including ext3 and ext4, but not tmpfs.
43289         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
43290         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
43291         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
43292         (fs_handles_readdir_ordered_dirents_efficiently): New function.
43293         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
43294         (fts_build): Set the stat.st_ino member from D_INO.
43295         If it is likely to be useful, sort dirent entries on inode number.
43296
43297         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
43298         and the struct statfs.f_type member.
43299         * modules/fts (Depends-on): Add d-ino.
43300
43301 2008-09-26  Bruno Haible  <bruno@clisp.org>
43302
43303         * modules/sigpipe-die (Depends-on): Add sigpipe.
43304
43305         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
43306         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
43307         and GNULIB_STDIO_H_SIGPIPE are set.
43308         * lib/stdio-write.c: New file.
43309         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
43310         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43311         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43312         REPLACE_STDIO_WRITE_FUNCS.
43313         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
43314         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43315         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43316         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
43317         * modules/stdio (Files): Add lib/stdio-write.c.
43318         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
43319         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
43320         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
43321         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
43322         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
43323         REPLACE_FPRINTF_POSIX.
43324         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
43325         REPLACE_PRINTF_POSIX.
43326         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
43327         REPLACE_VFPRINTF_POSIX.
43328         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
43329         REPLACE_VPRINTF_POSIX.
43330         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
43331         SIGPIPE issue.
43332         * doc/posix-functions/fputc.texi: Likewise.
43333         * doc/posix-functions/fputs.texi: Likewise.
43334         * doc/posix-functions/fwrite.texi: Likewise.
43335         * doc/posix-functions/printf.texi: Likewise.
43336         * doc/posix-functions/putc.texi: Likewise.
43337         * doc/posix-functions/putchar.texi: Likewise.
43338         * doc/posix-functions/puts.texi: Likewise.
43339         * doc/posix-functions/vfprintf.texi: Likewise.
43340         * doc/posix-functions/vprintf.texi: Likewise.
43341
43342         * modules/safe-write (Depends-on): Add write.
43343
43344         * modules/sigpipe-tests: New file.
43345         * tests/test-sigpipe.c: New file.
43346         * tests/test-sigpipe.sh: New file.
43347
43348         * modules/write: New file.
43349         * lib/unistd.in.h: Include <sys/types.h>.
43350         (write): New declaration.
43351         * lib/write.c: New file.
43352         * m4/write.m4: New file.
43353         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
43354         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
43355         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
43356         GNULIB_WRITE, REPLACE_WRITE.
43357         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
43358         and the SIGPIPE issue.
43359
43360         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
43361         (raise): New declaration.
43362         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
43363         (ext_signal): New function.
43364         (rpl_raise): New function.
43365         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
43366         GNULIB_SIGNAL_H_SIGPIPE.
43367         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
43368         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
43369
43370         * modules/sigpipe: New file.
43371         * m4/sigpipe.m4: New file.
43372
43373 2008-09-25  Derek Price  <derek@ximbiot.com>
43374             Bruno Haible  <bruno@clisp.org>
43375
43376         * gnulib-tool (func_import): Report all license incompatibilities, not
43377         just the first one.
43378
43379 2008-09-25  Bruno Haible  <bruno@clisp.org>
43380
43381         * gnulib-tool (func_import): When computing the edits, consider not
43382         only the Makefile.ams that exist but also those that will be generated.
43383
43384 2008-09-25  Simon Josefsson  <simon@josefsson.org>
43385
43386         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
43387         fixes gnulib-tool --test warning about duplicate dependency.
43388
43389 2008-09-25  Bruno Haible  <bruno@clisp.org>
43390
43391         * gnulib-tool: Don't ask the user to perform edits in the generated
43392         Makefile.ams.
43393         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
43394         apply to the Makefile.am being generated.
43395         (func_emit_tests_Makefile_am): Execute edits that apply to the
43396         Makefile.am being generated.
43397         (func_import): Setup list of Makefile.am edits before emitting the
43398         Makefile.ams, not at the end.
43399         (func_create_testdir): Update.
43400         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43401
43402 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43403
43404         * gnulib-tool (func_import): Store the --tests-base option in the
43405         comment in gnulib-cache.m4.
43406
43407 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
43408
43409         * NEWS: Document increased portability that sys_select now provides.
43410
43411         * lib/sys_select.in.h: Install select wrapper.
43412         * lib/sys_socket.in.h: Use more descriptive name when there is no
43413         select wrapper.
43414         * lib/winsock-select.c: New.
43415         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
43416         Require gl_HEADER_SYS_SOCKET.
43417         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
43418         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
43419         * tests/test-sys_select.c: Add functional tests.
43420
43421 2008-09-24  Eric Blake  <ebb9@byu.net>
43422
43423         open, fopen: close fd leak in last patch
43424         * lib/open.c (rpl_open): Close fd before returning error.
43425         * lib/fopen.c (rpl_fopen): Close fd before returning error.
43426         * doc/posix-functions/open.texi (open): Document that Irix also
43427         has the bug.
43428         * doc/posix-functions/fopen.texi (fopen): Likewise.
43429         Reported by Paolo Bonzini.
43430
43431 2008-09-24  Bruno Haible  <bruno@clisp.org>
43432
43433         Ensure that a filename ending in a slash cannot be used to access a
43434         non-directory.
43435         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
43436         to check whether it's really a directory.
43437         * lib/fopen.c: Include fcntl.h, unistd.h.
43438         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
43439         and fdopen().
43440         * modules/fopen (Depends-on): Add unistd.
43441         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
43442         * tests/test-fopen.c (main): Likewise.
43443         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
43444         * doc/posix-functions/fopen.texi: Likewise.
43445         Reported by Eric Blake.
43446
43447 2008-09-23  Eric Blake  <ebb9@byu.net>
43448
43449         c-stack: avoid compiler optimizations when provoking overflow
43450         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
43451         recursion harder to optimize, to ensure a stack overflow occurs.
43452         * tests/test-c-stack.c (recurse): Likewise.
43453         Borrowed from libsigsegv.
43454
43455         c-stack: work around Irix sigaltstack bug
43456         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
43457         whether sigaltstack uses wrong end of stack_t (copied in part from
43458         libsigsegv).
43459         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
43460         Irix bug, without requiring an over-allocation.
43461         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
43462         bug.
43463
43464         fopen: document mingw bug on directories
43465         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
43466         not allowing a stream visiting a directory, even though reading
43467         from such a stream is not portable.
43468
43469 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43470
43471         * lib/poll.c: Rewrite.
43472         * modules/poll: Depend on alloca.
43473
43474 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43475
43476         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
43477         instead define prototypes for a full set of wrappers.  Ensure
43478         that Cygwin does not use the compatibility code, which is only
43479         for MinGW.
43480         * lib/winsock.c: New.
43481         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
43482         * modules/sys_socket: Add lib/winsock.c.
43483
43484         * modules/poll-tests: Add errno and perror.
43485         * tests/test-poll.c: Use ioctl, not ioctlsocket.
43486
43487 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
43488
43489         * tests/test-poll.c: Downgrade minimum needed Winsock version.
43490
43491 2008-09-23  Bruno Haible  <bruno@clisp.org>
43492
43493         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
43494         * doc/glibc-functions/*: Likewise.
43495
43496 2008-09-23  Simon Josefsson  <simon@josefsson.org>
43497
43498         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
43499         success.
43500
43501 2008-09-22  Eric Blake  <ebb9@byu.net>
43502             Bruno Haible  <bruno@clisp.org>
43503
43504         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
43505         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
43506         supply %A but mishandle pseudo-NaN.
43507         Reported by Simon Josefsson.
43508
43509 2008-09-21  Bruno Haible  <bruno@clisp.org>
43510
43511         * tests/test-lock.c (main): Tweak skip message.
43512         * tests/test-tls.c (main): Likewise.
43513
43514 2008-09-21  Bruno Haible  <bruno@clisp.org>
43515
43516         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
43517         whether 'struct sigaction' has sa_sigaction here...
43518         (gl_PREREQ_SIG_HANDLER_H): ... not here.
43519         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
43520
43521 2008-09-21  Bruno Haible  <bruno@clisp.org>
43522
43523         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
43524         section.
43525         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
43526         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
43527         the new section.
43528         (Support for obsolete systems lacking POSIX:2001): New section.
43529         (String handling <string.h>): Move strdup to the new section.
43530         Suggested by Simon Josefsson and Paolo Bonzini.
43531
43532 2008-09-21  Bruno Haible  <bruno@clisp.org>
43533
43534         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
43535         exponents in %e and %g results on 'long double'. Needed for mingw's
43536         improved *printf functions.
43537         * tests/test-vasprintf-posix.c (test_function): Likewise.
43538         * tests/test-snprintf-posix.h (test_function): Likewise.
43539         * tests/test-sprintf-posix.h (test_function): Likewise.
43540         Reported by Eric Blake.
43541
43542 2008-09-21  Bruno Haible  <bruno@clisp.org>
43543
43544         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
43545         * tests/test-sprintf-posix.h (test_function): Likewise.
43546
43547 2008-09-21  Bruno Haible  <bruno@clisp.org>
43548
43549         * modules/getpass (Depends-on): Add strdup-posix.
43550
43551         New module 'strdup-posix'.
43552         * modules/strdup-posix: New file.
43553         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
43554         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
43555         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43556         REPLACE_STRDUP.
43557         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
43558         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
43559         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43560         strdup-posix.
43561
43562         * modules/strdup (Depends-on): Remove malloc-posix.
43563
43564 2008-09-20  Bruno Haible  <bruno@clisp.org>
43565
43566         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
43567         Wildenhues.
43568
43569 2008-09-20  Bruno Haible  <bruno@clisp.org>
43570
43571         Ensure that wint_t gets defined on IRIX 5.3.
43572         * lib/wchar.in.h (wint_t): Define if not defined by the system.
43573         * lib/wctype.in.h (wint_t): Likewise.
43574         (__wctype_wint_t): Remove type.
43575         (isw*): Use wint_t instead of __wctype_wint_t.
43576         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
43577         * modules/wchar (Files): Add m4/wint_t.m4.
43578         (Makefile.am): Substitute HAVE_WINT_T.
43579         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
43580         * tests/test-wctype.c: Check that wint_t is defined.
43581         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
43582         * doc/posix-headers/wctype.texi: Likewise.
43583         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43584
43585 2008-09-18  Bruno Haible  <bruno@clisp.org>
43586
43587         * gnulib-tool (func_exit): Update comment.
43588
43589 2008-09-18  Simon Josefsson  <simon@josefsson.org>
43590
43591         * modules/getaddrinfo (Depends-on): Remove strdup, this module
43592         assumes strdup exists and does not depend on strdup to return
43593         ENOMEM on out of memory conditions.
43594
43595 2008-09-18  Bruno Haible  <bruno@clisp.org>
43596
43597         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
43598         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
43599         digits for the exponent.
43600
43601 2008-09-18  Jim Meyering  <meyering@redhat.com>
43602             Bruno Haible  <bruno@clisp.org>
43603
43604         * lib/vasnprintf.c (decimal_point_char): Define also if
43605         NEED_PRINTF_INFINITE_LONG_DOUBLE.
43606
43607 2008-09-16  Bruno Haible  <bruno@clisp.org>
43608         and Eric Blake  <ebb9@byu.net>
43609
43610         vasnprintf: support Irix 5.3
43611         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
43612         that mishandle long double infinity.
43613         Reported by Tom G. Christensen.
43614
43615 2008-09-16  Bruno Haible  <bruno@clisp.org>
43616
43617         * doc/glibc-functions/scandir.texi: Mention the function is missing on
43618         Solaris 9.
43619         * doc/glibc-functions/alphasort.texi: Likewise.
43620         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
43621
43622 2008-09-16  Jim Meyering  <meyering@redhat.com>
43623
43624         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
43625         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
43626         a umask modification leak out of a subshell.  Otherwise, the
43627         opensolaris /bin/sh would be accepted and thus cause unwarranted
43628         failures in the coreutils test suite.
43629
43630 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
43631
43632         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
43633         to succeed.
43634
43635 2008-09-16  Jim Meyering  <meyering@redhat.com>
43636
43637         avoid spurious test failure when library is built without ACL support
43638         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
43639         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
43640         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
43641         * tests/test-copy-acl.sh: Likewise.
43642
43643 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43644
43645         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
43646         based on character occurrence counts.
43647
43648 2008-09-15  Eric Blake  <ebb9@byu.net>
43649
43650         tests: avoid some compiler warnings
43651         * tests/test-memchr.c (main): Pass NULL indirectly.
43652         * tests/test-closein.c (main): Avoid unused variable.
43653
43654 2008-09-15  Bruno Haible  <bruno@clisp.org>
43655
43656         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
43657         are missing on OpenBSD 4.0 individually.
43658         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43659
43660 2008-09-15  Bruno Haible  <bruno@clisp.org>
43661
43662         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
43663         * doc/posix-functions/strerror.texi: Mention also Cygwin.
43664         * doc/posix-functions/perror.texi: Likewise.
43665         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
43666         is missing.
43667         Reported by Eric Blake.
43668
43669         * lib/errno.in.h: Use replacement values >= 2000.
43670         Reported by Eric Blake.
43671
43672 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43673
43674         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
43675         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
43676         limit.
43677         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
43678         compareseq was aborted.
43679
43680 2008-09-14  Bruno Haible  <bruno@clisp.org>
43681
43682         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
43683         yvec_edit_count.
43684         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
43685         (fstrcmp_bounded): Simplify result computation accordingly.
43686
43687 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43688
43689         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
43690         (fstrcmp): Define in terms of fstrcmp_bounded.
43691         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
43692         lower_bound argument.
43693         Return quickly if the result is certainly < lower_bound.
43694         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
43695
43696 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43697
43698         * lib/diffseq.h (EARLY_ABORT): New macro.
43699         (compareseq): Change return type to bool. Return true when EARLY_ABORT
43700         evaluates to true.
43701
43702 2008-09-14  Bruno Haible  <bruno@clisp.org>
43703
43704         * modules/perror-tests: New file.
43705         * tests/test-perror.sh: New file.
43706         * tests/test-perror.c: New file.
43707
43708         New module 'perror'.
43709         * lib/stdio.in.h (perror): New declaration.
43710         * lib/perror.c: New file.
43711         * m4/perror.m4: New file.
43712         * modules/perror: New file.
43713         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
43714         * doc/posix-functions/perror.texi: Mention the perror module.
43715         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
43716         REPLACE_PERROR.
43717         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
43718         REPLACE_PERROR.
43719
43720 2008-09-14  Bruno Haible  <bruno@clisp.org>
43721
43722         * modules/stdio (Makefile.am): Reorder to match the order in
43723         lib/stdio.in.h.
43724         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43725
43726 2008-09-13  Bruno Haible  <bruno@clisp.org>
43727
43728         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
43729
43730 2008-09-13  Bruno Haible  <bruno@clisp.org>
43731
43732         Extend strerror to cover the added errno values.
43733         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
43734         (rpl_strerror): Provide error messages for the added errno values and
43735         for the WSA* values.
43736         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
43737         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
43738         strerror.
43739         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
43740         * modules/strerror (Depends-on): Add errno.
43741         * doc/posix-functions/strerror.texi: Document the change.
43742         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
43743         and EOVERFLOW.
43744
43745 2008-09-13  Bruno Haible  <bruno@clisp.org>
43746
43747         * modules/EOVERFLOW: Remove file.
43748         * m4/eoverflow.m4: Remove file.
43749         * modules/EOVERFLOW-tests: Remove file.
43750         * tests/test-EOVERFLOW.c: Remove file.
43751         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
43752         * modules/ftell (Depends-on): Likewise.
43753         * modules/getdelim (Depends-on): Likewise.
43754         * modules/getugroups (Depends-on): Likewise.
43755         * modules/poll (Depends-on): Likewise.
43756         * modules/snprintf (Depends-on): Likewise.
43757         * modules/sprintf-posix (Depends-on): Likewise.
43758         * modules/vasnprintf (Depends-on): Likewise.
43759         * modules/vasprintf (Depends-on): Likewise.
43760         * modules/vfprintf-posix (Depends-on): Likewise.
43761         * modules/vsnprintf (Depends-on): Likewise.
43762         * modules/vsprintf-posix (Depends-on): Likewise.
43763         * modules/xvasprintf (Depends-on): Likewise.
43764         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43765         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
43766         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
43767         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
43768         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43769         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
43770         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
43771         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
43772         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43773         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
43774         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
43775         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
43776         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43777         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
43778         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
43779         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
43780         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43781         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
43782         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
43783         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
43784         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43785         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
43786         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
43787         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
43788         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
43789         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43790         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
43791         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
43792         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
43793         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
43794         * MODULES.html.sh: Remove EOVERFLOW.
43795         * NEWS: Mention the change.
43796
43797 2008-09-13  Bruno Haible  <bruno@clisp.org>
43798
43799         * modules/errno-tests: New file.
43800         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
43801
43802         * lib/errno.in.h: New file.
43803         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
43804         * modules/errno: New file.
43805         * doc/posix-headers/errno.texi: Update documentation.
43806         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
43807
43808 2008-09-13  Bruno Haible  <bruno@clisp.org>
43809
43810         * tests/test-poll.c: Use #if for native Windows, rather than testing
43811         __MSVCRT__.
43812
43813 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43814             Bruno Haible  <bruno@clisp.org>
43815
43816         * lib/glob.c: Don't include <pwd.h> on native Windows.
43817         (WINDOWS32): New macro.
43818         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
43819
43820 2008-09-13  Bruno Haible  <bruno@clisp.org>
43821
43822         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
43823         (ETIMEDOUT): Remove macro.
43824         (glthread_cond_timedwait_multithreaded): New declaration.
43825         (glthread_cond_timedwait): Use it.
43826         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
43827         (glthread_cond_timedwait_multithreaded): New function.
43828
43829 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43830
43831         * modules/poll-tests: Do not check for io.h.
43832         * tests/test-poll.c: Check for __MSVCRT__ instead.
43833
43834 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43835
43836         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
43837         * modules/poll-tests: Add inet_pton, stdbool, sockets.
43838         * tests/test-poll.c: Use them.  Use _pipe on Windows.
43839
43840 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43841
43842         * modules/poll-tests: New.
43843         * tests/test-poll.c: New.
43844
43845 2008-09-12  Eric Blake  <ebb9@byu.net>
43846
43847         frexp: test for NetBSD failure on -0.0
43848         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
43849         not all, bugs from NetBSD 3.0 have been fixed.
43850         * doc/posix-functions/frexp.texi (frexp): Document bug.
43851         Reported by Thomas Klausner.
43852
43853         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
43854         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
43855         literal -0.0.
43856         Reported by Jonathan C. Patschke <jp@centtech.com>.
43857
43858 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43859
43860         * lib/glthread/cond.h: Use dummy implementation also if
43861         USE_WIN32_THREADS.
43862
43863 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43864
43865         * modules/fnmatch-posix (License): Change to LGPLv2+.
43866         * modules/fnmatch-gnu (License): Likewise.
43867
43868 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43869
43870         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
43871
43872 2008-09-11  Jim Meyering  <meyering@redhat.com>
43873
43874         * users.txt: Add gtk-vnc.
43875
43876 2008-09-08  Simon Josefsson  <simon@josefsson.org>
43877
43878         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
43879         rotate amounts.
43880
43881         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
43882         required for 16-bit and 8-bit rotates.
43883         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
43884         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
43885         UINT8_MAX instead of hard-coded constants.
43886         Suggested by Paul Eggert.
43887
43888 2008-09-07  Bruno Haible  <bruno@clisp.org>
43889
43890         * tests/test-striconveh.c (main): Check behaviour when converting from
43891         UTF-7.
43892
43893         Make striconveh work better with stateful encodings.
43894         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
43895         that iconv does not increment the inptr when returning -1/EINVAL.
43896
43897 2008-09-07  Bruno Haible  <bruno@clisp.org>
43898
43899         * build-aux/config.rpath: Update according to libtool-2.2.6.
43900         * build-aux/config.libpath: Likewise.
43901
43902 2008-09-06  Bruno Haible  <bruno@clisp.org>
43903
43904         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
43905         * lib/freadptr.c (freadptr): Likewise.
43906         * lib/freadseek.c (freadptrinc): Likewise.
43907         Reported by Simon Josefsson.
43908
43909 2008-09-06  Bruno Haible  <bruno@clisp.org>
43910
43911         * modules/freadptr (License): Change to LGPLv2+.
43912         * modules/freadseek (License): Likewise.
43913         Suggested by Eric Blake.
43914
43915         * modules/memchr2 (License): Change to LGPLv2+.
43916         Approved by Eric Blake.
43917
43918 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43919             Bruno Haible  <bruno@clisp.org>
43920
43921         Make gnulib-tool work with native 'sed' on AIX.
43922         * gnulib-tool (sed_noop): New variable.
43923         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
43924         func_add_or_update, func_create_testdir): Use it to initialize sed
43925         script variables.
43926         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43927
43928 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
43929             Bruno Haible  <bruno@clisp.org>
43930
43931         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
43932         also works after #include directives.
43933
43934 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
43935
43936         getdate.y: reject an out-of-range timezone value
43937         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
43938         the range [-24...+24].  When specified with only one or two digits,
43939         * tests/test-getdate.c: Tests for the fix.
43940         * doc/getdate.texi: Document this change.
43941
43942 2008-09-03  Bruno Haible  <bruno@clisp.org>
43943
43944         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
43945
43946 2008-09-02  Simon Josefsson  <simon@josefsson.org>
43947
43948         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
43949         <bruce.korb@gmail.com> with ideas from Ben Pfaff
43950         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
43951         Blake <ebb9@byu.net>.
43952
43953         * tests/test-bitrotate.c: Add more test vectors.
43954
43955 2008-09-02  Eric Blake  <ebb9@byu.net>
43956
43957         vasnprintf-posix: handle large precision via %.*d
43958         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
43959         when handling it ourselves.
43960         * tests/test-vasnprintf-posix.c (test_function): Add test.
43961         * tests/test-snprintf-posix.h (test_function): Likewise.
43962         * tests/test-sprintf-posix.h (test_function): Likewise.
43963         * tests/test-vasprintf-posix.c (test_function): Likewise.
43964         Reported by Alain Guibert.
43965
43966 2008-09-01  Eric Blake  <ebb9@byu.net>
43967
43968         c-stack: make configure-time check more robust
43969         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
43970         successful sigaction call.
43971         Reported by Tom G. Christensen.
43972
43973 2008-09-01  Bruno Haible  <bruno@clisp.org>
43974
43975         New module 'findprog-lgpl'.
43976         * modules/findprog-lgpl: New file.
43977         * lib/findprog-lgpl.c: New file.
43978         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
43979         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
43980         to decide whether to use strdup or xstrdup, concatenated_filename or
43981         xconcatenated_filename.
43982
43983 2008-09-01  Bruno Haible  <bruno@clisp.org>
43984
43985         Split module 'concat-filename' into 'concat-filename' (LGPL) and
43986         'xconcat-filename' (GPL).
43987         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
43988         (License): Change to LGPLv2+.
43989         * modules/xconcat-filename: New file.
43990         * lib/concat-filename.h (concatenated_filename): Change specification.
43991         (xconcatenated_filename): New declaration.
43992         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
43993         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
43994         memory situations.
43995         * lib/xconcat-filename.c: New file.
43996         * NEWS: Mention the change.
43997         * lib/findprog.c: Include concat-filename.h, not filename.h.
43998         (find_in_path): Use xconcatenated_filename instead of
43999         concatenated_filename.
44000         * lib/javacomp.c: Include concat-filename.h, not filename.h.
44001         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
44002         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
44003         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
44004         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
44005         instead of concatenated_filename.
44006         * lib/javaexec.c: Include concat-filename.h, not filename.h.
44007         (execute_java_class): Use xconcatenated_filename instead of
44008         concatenated_filename.
44009         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
44010         * modules/javacomp (Depends-on): Likewise.
44011         * modules/javaexec (Depends-on): Likewise.
44012
44013 2008-09-01  Bruno Haible  <bruno@clisp.org>
44014
44015         Split module 'filename' into 'filename' and 'concat-filename'.
44016         * modules/filename: Keep only lib/filename.h.
44017         (License): Change to LGPLv2+.
44018         * modules/concat-filename: New file, extracted from modules/filename.
44019         * lib/filename.h (concatenated_filename): Remove declaration.
44020         * lib/concat-filename.h: New file, extracted from lib/filename.h.
44021         * lib/concat-filename.c: Include concat-filename.h.
44022         * NEWS: Mention the change.
44023
44024 2008-09-01  Simon Josefsson  <simon@josefsson.org>
44025
44026         * lib/bitrotate.h (rotl8, rotr8): Add.
44027
44028         * modules/bitrotate (configure.ac): Need
44029         AC_REQUIRE([AC_C_INLINE]).
44030         (Description): Mention stdint.h.  Reported by Bruno Haible
44031         <bruno@clisp.org>.
44032
44033         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
44034         Paolo Bonzini <bonzini@gnu.org>.
44035
44036 2008-08-31  Bruno Haible  <bruno@clisp.org>
44037
44038         Assume Solaris specific bi-arch conventions on Solaris systems.
44039         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
44040         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
44041         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
44042         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
44043         like acl_libdirstem.
44044         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
44045         acl_libdirstem.
44046         * NEWS: Mention the change.
44047         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
44048
44049 2008-08-31  Jim Meyering  <meyering@redhat.com>
44050
44051         * lib/strftime.h: Add comments describing the two added arguments.
44052
44053         remove duplicate #include directives
44054         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
44055         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
44056
44057 2008-08-31  Bruno Haible  <bruno@clisp.org>
44058
44059         New module 'sigpipe-die'.
44060         * modules/sigpipe-die: New file.
44061         * lib/sigpipe-die.h: New file.
44062         * lib/sigpipe-die.c: New file.
44063         * MODULES.html.sh (Signal handling): Add sigpipe-die.
44064
44065 2008-08-31  Bruno Haible  <bruno@clisp.org>
44066
44067         Don't override previously installed signal handlers.
44068         * lib/fatal-signal.c (saved_sigactions): New variable.
44069         (uninstall_handlers): Reset the signal to the saved handler, not
44070         to SIG_DFL (except when ignored).
44071         (install_handlers): Save the previous handlers.
44072
44073 2008-08-30  Bruno Haible  <bruno@clisp.org>
44074
44075         * gnulib-tool (func_reset_sigpipe): New function.
44076         (func_get_automake_snippet, func_modules_transitive_closure,
44077         func_import): Invoke it before a join command that reads from stdin,
44078         to avoid "echo: write error: Broken pipe" error messages on stderr.
44079         Reported by Sam Steingold <sds@gnu.org>.
44080
44081 2008-08-30  Bruno Haible  <bruno@clisp.org>
44082
44083         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
44084         Code copied from m4/open.m4.
44085         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
44086         access and the filename ends in a slash. Code copied from lib/open.c.
44087         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
44088         * tests/test-fopen.c (main): Check against bug with trailing slash.
44089
44090 2008-08-29  Bruno Haible  <bruno@clisp.org>
44091
44092         Avoid some "gcc -pedantic" warnings.
44093         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
44094         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
44095         * lib/dirent.in.h: Likewise.
44096         * lib/fcntl.in.h: Likewise.
44097         * lib/float.in.h: Likewise.
44098         * lib/iconv.in.h: Likewise.
44099         * lib/inttypes.in.h: Likewise.
44100         * lib/locale.in.h: Likewise.
44101         * lib/math.in.h: Likewise.
44102         * lib/netinet_in.in.h: Likewise.
44103         * lib/search.in.h: Likewise.
44104         * lib/signal.in.h: Likewise.
44105         * lib/stdarg.in.h: Likewise.
44106         * lib/stdint.in.h: Likewise.
44107         * lib/stdio.in.h: Likewise.
44108         * lib/stdlib.in.h: Likewise.
44109         * lib/string.in.h: Likewise.
44110         * lib/strings.in.h: Likewise.
44111         * lib/sys_select.in.h: Likewise.
44112         * lib/sys_socket.in.h: Likewise.
44113         * lib/sys_stat.in.h: Likewise.
44114         * lib/sys_time.in.h: Likewise.
44115         * lib/sysexits.in.h: Likewise.
44116         * lib/time.in.h: Likewise.
44117         * lib/unistd.in.h: Likewise.
44118         * lib/wchar.in.h: Likewise.
44119         * lib/wctype.in.h: Likewise.
44120         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
44121         * modules/fchdir (Makefile.am): Likewise.
44122         * modules/fcntl (Makefile.am): Likewise.
44123         * modules/float (Makefile.am): Likewise.
44124         * modules/iconv_open (Makefile.am): Likewise.
44125         * modules/inttypes (Makefile.am): Likewise.
44126         * modules/locale (Makefile.am): Likewise.
44127         * modules/math (Makefile.am): Likewise.
44128         * modules/netinet_in (Makefile.am): Likewise.
44129         * modules/search (Makefile.am): Likewise.
44130         * modules/signal (Makefile.am): Likewise.
44131         * modules/stdarg (Makefile.am): Likewise.
44132         * modules/stdint (Makefile.am): Likewise.
44133         * modules/stdio (Makefile.am): Likewise.
44134         * modules/stdlib (Makefile.am): Likewise.
44135         * modules/string (Makefile.am): Likewise.
44136         * modules/strings (Makefile.am): Likewise.
44137         * modules/sys_select (Makefile.am): Likewise.
44138         * modules/sys_socket (Makefile.am): Likewise.
44139         * modules/sys_stat (Makefile.am): Likewise.
44140         * modules/sys_time (Makefile.am): Likewise.
44141         * modules/sysexits (Makefile.am): Likewise.
44142         * modules/time (Makefile.am): Likewise.
44143         * modules/unistd (Makefile.am): Likewise.
44144         * modules/wchar (Makefile.am): Likewise.
44145         * modules/wctype (Makefile.am): Likewise.
44146         Reported by Reuben Thomas <rrt@sc3d.org>.
44147
44148 2008-08-29  Bruno Haible  <bruno@clisp.org>
44149
44150         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
44151         any more.
44152
44153 2008-08-29  Simon Josefsson  <simon@josefsson.org>
44154
44155         * MODULES.html.sh (Misc): Add bitrotate.
44156
44157         * modules/bitrotate: New file.
44158
44159         * lib/bitrotate.h: New file.
44160
44161         * modules/bitrotate-tests: New file.
44162
44163         * tests/test-bitrotate.c: New file.
44164
44165         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
44166         on the bitrotate module.
44167
44168         * lib/arctwo.c: Use new bitrotate module.
44169
44170 2008-08-29  Jim Meyering  <meyering@redhat.com>
44171
44172         bootstrap: merge changes from coreutils
44173         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
44174         of copied files.  Remove a kludge, now that this is fixed.
44175         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
44176         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
44177         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
44178
44179 2008-08-29  Bruno Haible  <bruno@clisp.org>
44180
44181         * MODULES.html.sh: Remove --cvs-urls option.
44182
44183 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
44184
44185         maint.mk: adjust to file name change
44186         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
44187
44188 2008-08-28  Jim Meyering  <meyering@redhat.com>
44189
44190         * modules/getndelim2 (License): Relicense to LGPLv2+.
44191         Approved by Richard Stallman for the version of 1995, and by
44192         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
44193
44194 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
44195
44196         * lib/getdelim.c (flockfile, funlockfile): Make all of them
44197         dummy if one is not available.  Do not touch them if
44198         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
44199         (getc_maybe_unlocked): New.
44200         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
44201
44202 2008-08-26  Eric Blake  <ebb9@byu.net>
44203
44204         doc/INSTALL: resync from autoconf
44205         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
44206         (INSTALL_PRELUDE): Delete; this is done more efficiently by
44207         moving...
44208         * install.texi [!autoconf]: ...here.  Resync from autoconf.
44209         * INSTALL: Regenerate.
44210         * INSTALL.ISO: New file.
44211         * INSTALL.UTF-8: Likewise.
44212
44213 2008-08-26  Jim Meyering  <meyering@redhat.com>
44214
44215         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
44216         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
44217         these definitions conditional, so that they may be overridden, too.
44218
44219 2008-08-26  Bruno Haible  <bruno@clisp.org>
44220
44221         Generate INSTALL file variants with prettier quotes.
44222         * doc/Makefile (INSTALL_PRELUDE): New macro.
44223         (INSTALL): Use it.
44224         (INSTALL.ISO, INSTALL.UTF-8): New rules.
44225
44226 2008-08-26  Bruno Haible  <bruno@clisp.org>
44227
44228         Run makeinfo in an English locale.
44229         * doc/Makefile (MAKEINFO): New variable.
44230
44231 2008-08-26  Bruno Haible  <bruno@clisp.org>
44232
44233         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
44234         Suggested by Eric Blake.
44235
44236 2008-08-25  Bruno Haible  <bruno@clisp.org>
44237
44238         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
44239
44240 2008-08-25  Eric Blake  <ebb9@byu.net>
44241
44242         c-stack: test that stack overflow can be caught
44243         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
44244         that platform allows handling stack overflow; at least OS/2 EMX
44245         has sigaltstack, but crashes before transferring control to
44246         handler on stack overflow.
44247         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
44248         check for HAVE_STACK_OVERFLOW_HANDLING.
44249         Reported by Elbert Pol.
44250
44251 2008-08-25  Bruno Haible  <bruno@clisp.org>
44252
44253         * doc/posix-functions/strftime.texi: Fix description of strftime
44254         module.
44255
44256 2008-08-24  Bruno Haible  <bruno@clisp.org>
44257
44258         * tests/uniwidth/test-uc_width2.c: New file.
44259         * tests/uniwidth/test-uc_width2.sh: New file.
44260         * modules/uniwidth/width-tests (Files): Add the new files.
44261         (TESTS): Add uniwidth/test-uc_width2.sh.
44262         (TESTS_ENVIRONMENT): New variable.
44263         (check_PROGRAMS): Add test-uc_width2.
44264         (test_uc_width2_SOURCES): New variable.
44265
44266         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
44267         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
44268         not 0x00AB.
44269         Reported by Alexander V. Lukyanov <lav@netis.ru>.
44270
44271 2008-08-22  Eric Blake  <ebb9@byu.net>
44272
44273         test-lock, test-tls: mention why a test is skipped
44274         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
44275         skipped.
44276         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
44277
44278         count-one-bits: relax license
44279         * modules/count-one-bits (License): Relicense to LGPLv2+.
44280         Suggested by Ludovic Courtès, approved by Ben Pfaff.
44281
44282 2008-08-22  Andreas Schwab  <schwab@suse.de>
44283
44284         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
44285         Remove spurious space in assignment.
44286
44287 2008-08-21  Simon Josefsson  <simon@josefsson.org>
44288
44289         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
44290         Paul Eggert <eggert@CS.UCLA.EDU>.
44291
44292 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
44293
44294         * modules/gettext: Add m4/threadlib.m4.
44295
44296 2008-08-19  Eric Blake  <ebb9@byu.net>
44297
44298         test-c-stack: fix compilation failure on FreeBSD 5.0
44299         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
44300         headers before <sys/resource.h>.
44301         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
44302         the bug.
44303         Reported by Nelson H. F. Beebe.
44304
44305         strverscmp: migrate from "strverscmp.h" to <string.h>
44306         * modules/string (Makefile.am): Add new hooks.
44307         * modules/strverscmp (Files): Remove strverscmp.h.
44308         (Depends-on): Add string.
44309         (configure.ac): Add indicator.
44310         (Include): Mention new header.
44311         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
44312         defaults.
44313         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
44314         results.
44315         * lib/strverscmp.h: Delete.
44316         * lib/string.in.h (strverscmp): Provide declaration, when needed.
44317         * tests/test-strverscmp.c (includes): Adjust client.
44318         * lib/check-version.c (includes): Likewise.
44319         * NEWS: Document the change.
44320
44321         strverscmp: add unit test
44322         * modules/strverscmp-tests: New file.
44323         * tests/test-strverscmp.c: Likewise.
44324
44325 2008-08-19  Simon Josefsson  <simon@josefsson.org>
44326
44327         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
44328         regarding Windows crypto stuff, from Mono.
44329
44330 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
44331
44332         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
44333         if present, for intel RND.  Return error on failures.
44334
44335 2008-08-18  Ben Pfaff  <blp@gnu.org>
44336
44337         gitlog-to-changelog: give better diagnostic for failed pipe-open
44338         * build-aux/gitlog-to-changelog: Improve error message: suggest
44339         that the version of Git may be too old.
44340
44341 2008-08-18  Simon Josefsson  <simon@josefsson.org>
44342
44343         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
44344         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
44345
44346 2008-08-18  Bruno Haible  <bruno@clisp.org>
44347
44348         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
44349         pthread_in_use().
44350
44351 2008-08-18  Bruno Haible  <bruno@clisp.org>
44352
44353         * lib/glthread/threadlib.c: Include <pthread.h>.
44354
44355 2008-08-18  Bruno Haible  <bruno@clisp.org>
44356
44357         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
44358         glthread_recursive_lock_* macros.
44359         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
44360         Fix syntax error.
44361
44362 2008-08-18  Bruno Haible  <bruno@clisp.org>
44363
44364         * lib/glthread/thread.c: Avoid forcing a context switch right after
44365         thread creation.
44366
44367 2008-08-17  Bruno Haible  <bruno@clisp.org>
44368
44369         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
44370         * lib/glthread/thread.h: Provide Win32 specific implementation.
44371         * modules/thread (Files): Add lib/glthread/thread.c.
44372         (Depends-on): Add lock.
44373         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
44374
44375 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44376
44377         New module 'yield'.
44378         * modules/yield: New file.
44379         * lib/glthread/yield.h: New file.
44380         * m4/yield.m4: New file.
44381         * MODULES.html.sh (Multithreading): Add yield.
44382
44383 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44384
44385         New module 'thread'.
44386         * modules/thread: New file.
44387         * lib/glthread/thread.h: New file.
44388         * m4/thread.m4: New file.
44389         * MODULES.html.sh (Multithreading): Add thread.
44390
44391 2008-08-17  Bruno Haible  <bruno@clisp.org>
44392
44393         * lib/glthread/lock.h: Include <stdlib.h> always.
44394         * lib/glthread/tls.h: Likewise.
44395         * lib/glthread/cond.h: Likewise.
44396
44397 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
44398
44399         New module 'cond'.
44400         * modules/cond: New file.
44401         * lib/glthread/cond.h: New file.
44402         * lib/glthread/cond.c: New file.
44403         * m4/cond.m4: New file.
44404         * MODULES.html.sh (Multithreading): Add cond.
44405
44406 2008-08-16  Eric Blake  <ebb9@byu.net>
44407
44408         c-stack: fix regression on Irix 5.3 from 2008-06-21
44409         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
44410         sa_sigaction...
44411         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
44412         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
44413         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
44414         * modules/signal (Makefile.am): Use the value.
44415         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
44416         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
44417         * doc/posix-headers/signal.texi (signal.h): Document this
44418         portability issue.
44419         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
44420         Reported by Tom G. Christensen.
44421
44422 2008-08-17  Bruno Haible  <bruno@clisp.org>
44423
44424         New module 'threadlib'.
44425         * modules/threadlib: New file.
44426         * lib/glthread/threadlib.c: New file, extracted from
44427         lib/glthread/lock.c.
44428         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
44429         functions.
44430         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
44431         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
44432         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
44433         macros.
44434         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
44435         (gl_DISABLE_THREADS): Remove macro.
44436         * modules/lock (Files): Remove build-aux/config.rpath.
44437         (Depends-on): Remove havelib. Add threadlib.
44438         (configure.ac-early): Remove section.
44439         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
44440         * modules/tls (Depends-on): Remove lock. Add threadlib.
44441         (Link): New section, copied from threadlib.
44442         * MODULES.html.sh (Multithreading): Add threadlib.
44443
44444 2008-08-14  Bruno Haible  <bruno@clisp.org>
44445
44446         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
44447         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
44448         glthread_rwlock_unlock, glthread_rwlock_destroy,
44449         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
44450         glthread_recursive_lock_destroy): Define as macros always.
44451         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
44452         glthread_lock_lock.
44453         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
44454         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
44455         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
44456         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
44457         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
44458         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
44459         (glthread_recursive_lock_lock_func): Renamed from
44460         glthread_recursive_lock_lock.
44461         (glthread_recursive_lock_unlock_func): Renamed from
44462         glthread_recursive_lock_unlock.
44463         (glthread_recursive_lock_destroy_func): Renamed from
44464         glthread_recursive_lock_destroy.
44465
44466 2008-08-14  Bruno Haible  <bruno@clisp.org>
44467
44468         * lib/glthread/lock.h: Renamed from lib/lock.h.
44469         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
44470         * lib/glthread/tls.h: Renamed from lib/tls.h.
44471         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
44472         * lib/fstrcmp.c: Update includes.
44473         * lib/strsignal.c: Update includes.
44474         * modules/lock (Files, Makefile.am): Update.
44475         (Include): Change to "glthread/lock.h".
44476         * modules/tls (Files, Makefile.am): Update.
44477         (Include): Change to "glthread/tls.h".
44478         * tests/test-lock.c: Update includes.
44479         * tests/test-tls.c: Update includes.
44480         * NEWS: Mention the renamed header files.
44481
44482 2008-08-11  Jim Meyering  <meyering@redhat.com>
44483
44484         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
44485
44486 2008-08-11  Eric Blake  <ebb9@byu.net>
44487
44488         test-c-stack: avoid C99-ism
44489         * tests/test-c-stack.c (main): Fix whitespace, move declaration
44490         before statement.
44491         Reported by Alain Guibert.
44492
44493 2008-08-10  Jim Meyering  <meyering@redhat.com>
44494
44495         ensure that return value of uinttostr et al are not ignored
44496         * lib/inttostr.h (__GNUC_PREREQ): Define.
44497         (__attribute_warn_unused_result__): Define.
44498         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
44499
44500 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
44501
44502         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
44503         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
44504
44505 2008-08-07  Jim Meyering  <meyering@redhat.com>
44506
44507         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
44508
44509         * modules/mkstemp (License): Relicense under LGPLv2+.
44510         * modules/tempname (License): Likewise.
44511
44512 2008-08-06  Bruno Haible  <bruno@clisp.org>
44513
44514         * lib/poll.c (poll): Further micro-optimization.
44515
44516 2008-08-06  Jim Meyering  <meyering@redhat.com>
44517
44518         inet_pton.c: use locale-independent tolower
44519         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
44520         (inet_pton6): Use c_tolower rather than tolower.
44521         * modules/inet_pton (Depends-on): Add c-ctype.
44522
44523 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
44524
44525         * lib/poll.c (poll): Avoid division when timeout is 0, cache
44526         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
44527
44528 2008-08-06  Jim Meyering  <meyering@redhat.com>
44529
44530         * modules/inet_pton (License): Relicense under LGPLv2+.
44531
44532 2008-08-03  Bruno Haible  <bruno@clisp.org>
44533
44534         Additional non-aborting API for lock and tls.
44535         * lib/lock.h: Include <errno.h>.
44536         (glthread_lock_init): New macro/function.
44537         (gl_lock_init): Define as wrapper around glthread_lock_init.
44538         (glthread_lock_lock): New macro/function.
44539         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
44540         (glthread_lock_unlock): New macro/function.
44541         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
44542         (glthread_lock_destroy): New macro/function.
44543         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
44544         (glthread_rwlock_init): New macro/function.
44545         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
44546         (glthread_rwlock_rdlock): New macro/function.
44547         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
44548         (glthread_rwlock_wrlock): New macro/function.
44549         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
44550         (glthread_rwlock_unlock): New macro/function.
44551         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
44552         (glthread_rwlock_destroy): New macro/function.
44553         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
44554         (glthread_recursive_lock_init): New macro/function.
44555         (gl_recursive_lock_init): Define as wrapper around
44556         glthread_recursive_lock_init.
44557         (glthread_recursive_lock_lock): New macro/function.
44558         (gl_recursive_lock_lock): Define as wrapper around
44559         glthread_recursive_lock_lock.
44560         (glthread_recursive_lock_unlock): New macro/function.
44561         (gl_recursive_lock_unlock): Define as wrapper around
44562         glthread_recursive_lock_unlock.
44563         (glthread_recursive_lock_destroy): New macro/function.
44564         (gl_recursive_lock_destroy): Define as wrapper around
44565         glthread_recursive_lock_destroy.
44566         (glthread_once): New macro/function.
44567         (gl_once): Define as wrapper around glthread_once.
44568         Update function declarations.
44569         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
44570         glthread_rwlock_init. Return error code.
44571         (glthread_rwlock_rdlock_multithreaded): Renamed from
44572         glthread_rwlock_rdlock. Return error code.
44573         (glthread_rwlock_wrlock_multithreaded): Renamed from
44574         glthread_rwlock_wrlock. Return error code.
44575         (glthread_rwlock_unlock_multithreaded): Renamed from
44576         glthread_rwlock_unlock. Return error code.
44577         (glthread_rwlock_destroy_multithreaded): Renamed from
44578         glthread_rwlock_destroy. Return error code.
44579         (glthread_recursive_lock_init_multithreaded): Renamed from
44580         glthread_recursive_lock_init. Return error code.
44581         (glthread_recursive_lock_lock_multithreaded): Renamed from
44582         glthread_recursive_lock_lock. Return error code.
44583         (glthread_recursive_lock_unlock_multithreaded): Renamed from
44584         glthread_recursive_lock_unlock. Return error code.
44585         (glthread_recursive_lock_destroy_multithreaded): Renamed from
44586         glthread_recursive_lock_destroy. Return error code.
44587         (glthread_once_call): Make static.
44588         (glthread_once_multithreaded): Renamed from glthread_once.
44589         * lib/tls.h: Include <errno.h>.
44590         (glthread_tls_key_init): New macro/function.
44591         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
44592         (glthread_tls_set): New macro/function.
44593         (gl_tls_set): Define as wrapper around glthread_tls_set.
44594         (glthread_tls_key_destroy): New macro/function.
44595         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
44596         Update function declarations.
44597         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
44598         glthread_tls_get.
44599         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
44600
44601 2008-08-04  Eric Blake  <ebb9@byu.net>
44602
44603         gnumakefile: use space, not TAB, outside of targets
44604         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
44605
44606 2008-08-02  Jim Meyering  <meyering@redhat.com>
44607
44608         getdate.y: avoid locale-dependent date parsing failure
44609         In Turkish locales, getdate would fail to recognize keywords
44610         containing a lowercase "i".  The solution is not to rely on
44611         locale-sensitive case-conversion.
44612         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
44613         (lookup_word): Use c_toupper in place of toupper.
44614         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
44615         Reported by Vefa Bicakci <bicave@superonline.com> in
44616         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
44617         * modules/getdate (Depends-on): Add c-ctype.
44618
44619 2008-08-02  Bruno Haible  <bruno@clisp.org>
44620
44621         * gnulib-tool (func_import): When updating or creating a .gitignore
44622         file, prepend each added line with a slash, and ignore leading slashes
44623         from the existing lines.
44624         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
44625
44626 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44627
44628         Portability fix for GNU make 3.79.1.
44629         * top/GNUmakefile: Avoid 'else COND', which older GNU make
44630         versions do not understand.
44631
44632 2008-08-01  Bruno Haible  <bruno@clisp.org>
44633
44634         Work around bug of HP-UX 10.20 cc with -0.0 literal.
44635         * tests/test-isnanf.h (zero): New variable.
44636         (main): Avoid literal -0.0f.
44637         * tests/test-isnand.h (zero): New variable.
44638         (main): Avoid literal -0.0.
44639         * tests/test-isnanl.h (zero): New variable.
44640         (main): Avoid literal -0.0L.
44641         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
44642         (test_float, test_double, test_long_double): Avoid literals -0.0f,
44643         -0.0, -0.0L.
44644         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
44645         (test_signbitd): Avoid literal -0.0.
44646         (test_signbitl): Avoid literal -0.0L.
44647         * tests/test-ceilf1.c (zero): New variable.
44648         (main): Avoid literal -0.0f.
44649         * tests/test-ceill.c (zero): New variable.
44650         (main): Avoid literal -0.0L.
44651         * tests/test-floorf1.c (zero): New variable.
44652         (main): Avoid literal -0.0f.
44653         * tests/test-floorl.c (zero): New variable.
44654         (main): Avoid literal -0.0L.
44655         * tests/test-roundf1.c (zero): New variable.
44656         (main): Avoid literal -0.0f.
44657         * tests/test-round1.c (zero): New variable.
44658         (main): Avoid literal -0.0.
44659         * tests/test-roundl.c (zero): New variable.
44660         (main): Avoid literal -0.0L.
44661         * tests/test-truncf1.c (zero): New variable.
44662         (main): Avoid literal -0.0f.
44663         * tests/test-trunc1.c (zero): New variable.
44664         (main): Avoid literal -0.0.
44665         * tests/test-truncl.c (zero): New variable.
44666         (main): Avoid literal -0.0L.
44667         * tests/test-frexp.c (zero): New variable.
44668         (main): Avoid literal -0.0.
44669         * tests/test-frexpl.c (zero): New variable.
44670         (main): Avoid literal -0.0L.
44671         * tests/test-ldexpl.c (zero): New variable.
44672         (main): Avoid literal -0.0L.
44673         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
44674         (zerod, zerol): New variables.
44675         (test_function): Avoid literals -0.0, -0.0L.
44676         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
44677         (zerod, zerol): New variables.
44678         (test_function): Avoid literals -0.0, -0.0L.
44679         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
44680         (zerod, zerol): New variables.
44681         (test_function): Avoid literals -0.0, -0.0L.
44682         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
44683         (zerod, zerol): New variables.
44684         (test_function): Avoid literals -0.0, -0.0L.
44685         * tests/test-strtod.c (zero): New variable.
44686         (main): Avoid literal -0.0.
44687         Reported by Jonathan C. Patschke <jp@centtech.com>.
44688
44689 2008-07-31  Jim Meyering  <meyering@redhat.com>
44690
44691         sha256.h: correct definition of SHA224_DIGEST_SIZE
44692         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
44693         Reported by Paulie Pena IV <paulie4@gmail.com>.
44694         Define as 224 / 8, rather than as a literal.
44695         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
44696         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
44697         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
44698
44699 2008-07-31  Bruno Haible  <bruno@clisp.org>
44700
44701         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
44702         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
44703         Reported by Jonathan Patschke <jp@centtech.com>.
44704
44705 2008-07-31  Bruno Haible  <bruno@clisp.org>
44706
44707         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
44708         Reported by Paolo Bonzini <bonzini@gnu.org>.
44709
44710 2008-07-30  Eric Blake  <ebb9@byu.net>
44711
44712         test-strtod: allow compilation without -lm
44713         * tests/test-strtod.c (main): Avoid link dependence on fabs.
44714         Reported by Dennis Clarke <blastwave@gmail.com>.
44715
44716 2008-07-28  Jim Meyering  <meyering@redhat.com>
44717
44718         bootstrap: work also when there are no .po files in po/
44719         * build-aux/bootstrap (update_po_files): Complete the change
44720         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
44721
44722 2008-07-27  Jim Meyering  <meyering@redhat.com>
44723
44724         * users.txt: Add zile.
44725
44726 2008-07-26  Ben Pfaff  <blp@gnu.org>
44727
44728         Add missing dependencies on new m4/exponent[fdl].m4 files.
44729         * modules/isnanf-nolibm: Add m4/exponentf.m4.
44730         * modules/isnand-nolibm: Add m4/exponentd.m4.
44731         * modules/isnanl-nolibm: Add m4/exponentl.m4.
44732         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
44733         m4/isnan[fdl].m4, because the macros actually used moved.
44734         Reported by Jim Meyering.
44735
44736 2008-07-14  Ben Pfaff  <blp@gnu.org>
44737
44738         Add isinf module.
44739         * lib/isinf.c: New file.
44740         * lib/math.in.h: Define isinf macro if we have decided to replace
44741         it.
44742         * m4/isinf.m4: New file.
44743         * m4/math_h.m4: Initialize and substitute variables for isinf
44744         module.
44745         * modules/isinf: New file.
44746         * modules/isinf-tests: New file.
44747         * modules/math: Add substitutions for new module.
44748         * tests/test-isinf.c: New file.
44749         * doc/posix-functions/isinf.texi: Mention new module.
44750         * MODULES.html.sh: Mention new module.
44751
44752 2008-07-14  Ben Pfaff  <blp@gnu.org>
44753
44754         Factor out some macros for use by additional modules.
44755         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
44756         exponentf.m4.
44757         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
44758         exponentd.m4.
44759         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
44760         file exponentl.m4.
44761         * m4/exponentf.m4: New file.
44762         * m4/exponentd.m4: New file.
44763         * m4/exponentl.m4: New file.
44764         * modules/isnanf: Use new file m4/exponentf.m4.
44765         * modules/isnand: Use new file m4/exponentd.m4.
44766         * modules/isnanl: Use new file m4/exponentl.m4.
44767
44768 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
44769
44770         mktime.c: normalize tp->tm_isdst value to -1/0/1.
44771         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
44772         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
44773         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
44774
44775         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
44776         readlink on platforms without PATH_MAX.
44777
44778 2008-07-21  Eric Blake  <ebb9@byu.net>
44779
44780         Warn, not fail, on stale version.
44781         * top/GNUmakefile (_curr-ver): Tone down previous patch.
44782
44783         Don't allow installation with stale devel version number.
44784         * top/GNUmakefile (_is-install-target): New macro.
44785         (_curr-ver): Forbid installation with stale version number.
44786
44787 2008-07-20  Bruno Haible  <bruno@clisp.org>
44788
44789         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
44790         TESTS_ENVIRONMENT.
44791         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
44792
44793 2008-07-20  Bruno Haible  <bruno@clisp.org>
44794
44795         * lib/c-stack.h (c_stack_action): Add documentation.
44796         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
44797
44798 2008-07-20  Bruno Haible  <bruno@clisp.org>
44799
44800         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
44801         * modules/readlink (License): Likewise.
44802
44803 2008-07-17  Eric Blake  <ebb9@byu.net>
44804
44805         * modules/c-stack (Link): Fix typo.
44806
44807         Make c-stack use libsigsegv, when available.
44808         * modules/c-stack (Depends-on): Add libsigsegv.
44809         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
44810         needed.
44811         * lib/c-stack.c (SIGSTKSZ): Define fallback.
44812         (segv_handler, overflow_handler, c_stack_action)
44813         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
44814         implementation when libsigsegv is available, but only when using
44815         the library is necessary.
44816         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
44817         comment, explaining why XSI check fails on Linux.
44818         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
44819         * tests/test-c-stack2.sh: Tweak skip message.
44820         * NEWS: Document new link-time requirements.
44821
44822 2008-07-16  Eric Blake  <ebb9@byu.net>
44823
44824         c-stack: Expose false positives when not using libsigsegv.
44825         * modules/c-stack-tests (Files): Expand test.
44826         * tests/test-c-stack.c (main): Add means to conditionally trigger
44827         non-overflow SIGSEGV.
44828         * tests/test-c-stack2.sh: New file.
44829
44830 2008-07-14  Bruno Haible  <bruno@clisp.org>
44831
44832         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
44833         Reported by Eric Blake.
44834
44835 2008-07-14  Sam Steingold  <sds@gnu.org>
44836             Bruno Haible  <bruno@clisp.org>
44837
44838         New module libsigsegv.
44839         * modules/libsigsegv: New file.
44840         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
44841         modifications.
44842         * MODULES.html.sh (Signal handling): New section.
44843
44844 2008-07-14  Bruno Haible  <bruno@clisp.org>
44845
44846         * modules/unictype/ctype-* (Description): Add the word "function".
44847         Improves the resulting doc in MODULES.html.
44848
44849 2008-07-12  Ben Pfaff  <blp@gnu.org>
44850
44851         Add longlong module.
44852         * modules/longlong: New file.
44853
44854 2008-07-12  Bruno Haible  <bruno@clisp.org>
44855
44856         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
44857         to empty.
44858
44859 2008-07-10  Ben Pfaff  <blp@gnu.org>
44860
44861         Add isnan module.
44862         * doc/posix-functions/isnan.texi: Mention new module.
44863         * lib/math.in.h: Define isnan macro if we have decided to replace
44864         it.
44865         * m4/isnan.m4: New file.
44866         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
44867         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
44868         also.
44869         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
44870         redundancy.
44871         * m4/math_h.m4: Initialize and substitute variables for isnan
44872         module.
44873         * modules/isnan: New file.
44874         * modules/isnan-tests: New file.
44875         * modules/math: Add substitutions for new module.
44876         * tests/test-isnan.c: New file.
44877         * MODULES.html.sh: Mention new module.
44878
44879 2008-07-10  Ben Pfaff  <blp@gnu.org>
44880
44881         Add isnanf module.
44882         * lib/isnanf.m4: New file.
44883         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
44884         (gl_HAVE_ISNANF_IN_LIBM): New macro.
44885         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
44886         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
44887         * modules/isnanf: New file.
44888         * modules/isnanf-tests: New file.
44889         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
44890         files.
44891         * tests/test-isnanf-nolibm.c: factored most of its contents into
44892         new file tests/test-isnanf.h.
44893         * tests/test-isnanf.h: New file.
44894         * tests/test-isnanf.c: New file.
44895         * MODULES.html.sh: Mention new module.
44896         * doc/glibc-functions/isnanf.texi: Mention new module.
44897
44898 2008-07-10  Ben Pfaff  <blp@gnu.org>
44899
44900         Add isnand module.
44901         * lib/isnand.h: New file.
44902         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
44903         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
44904         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
44905         functionality also.
44906         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
44907         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
44908         (gl_HAVE_ISNAND_IN_LIBM): New macro.
44909         * modules/isnand: New file.
44910         * modules/isnand-tests: New file.
44911         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
44912         files.
44913         * tests/test-isnand-nolibm.c: factored most of its contents into
44914         new file tests/test-isnand.h.
44915         * tests/test-isnand.h: New file.
44916         * tests/test-isnand.c: New file.
44917         * MODULES.html.sh: Mention new module.
44918
44919 2008-07-10  Ben Pfaff  <blp@gnu.org>
44920
44921         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
44922         * lib/isnand.h: Rename lib/isnand-nolibm.h.
44923         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
44924         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
44925         * modules/isnanf-nolibm: Update references to renamed files.
44926         * modules/isnand-nolibm: Likewise.
44927         * modules/isnanf-nolibm-tests: Likewise.
44928         * modules/isnand-nolibm-tests: Likewise.
44929         * lib/frexp.c: Likewise.
44930         * lib/isfinite.c: Likewise.
44931         * lib/signbitd.c: Likewise.
44932         * lib/signbitf.c: Likewise.
44933         * lib/vasnprintf.c: Likewise.
44934         * tests/test-ceilf1.c: Likewise.
44935         * tests/test-ceilf2.c: Likewise.
44936         * tests/test-floorf1.c: Likewise.
44937         * tests/test-floorf2.c: Likewise.
44938         * tests/test-frexp.c: Likewise.
44939         * tests/test-round1.c: Likewise.
44940         * tests/test-round2.c: Likewise.
44941         * tests/test-roundf1.c: Likewise.
44942         * tests/test-strtod.c: Likewise.
44943         * tests/test-trunc1.c: Likewise.
44944         * tests/test-trunc2.c: Likewise.
44945         * tests/test-truncf1.c: Likewise.
44946         * tests/test-truncf2.c: Likewise.
44947         * NEWS: Mention the renamed header files.
44948
44949 2008-07-11  Jim Meyering  <meyering@redhat.com>
44950
44951         vc-list-files: make the last-resort awk code more portable
44952         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
44953         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
44954         does not support it.
44955
44956 2008-07-10  Eric Blake  <ebb9@byu.net>
44957
44958         Work with tar's bootstrap.
44959         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
44960         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
44961         an m4 comment.
44962
44963 2008-07-09  Jim Meyering  <meyering@redhat.com>
44964
44965         posix-shell.m4: fix typo that made this test malfunction
44966         * m4/posix-shell.m4: Remove capitalization in variable name.
44967
44968 2008-07-08  Bruno Haible  <bruno@clisp.org>
44969
44970         * m4/onceonly.m4: Update comments.
44971         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44972
44973 2008-07-04  Jim Meyering  <meyering@redhat.com>
44974
44975         * users.txt: Add vc-dwim.
44976         (bison, coreutils): Use the gitweb URL.
44977
44978 2008-07-03  Jim Meyering  <meyering@redhat.com>
44979
44980         * users.txt: Add libffcall.  From Sam Steingold.
44981
44982 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
44983
44984         getdate.y: do not ignore TZ with relative day, month or year offset
44985         * lib/getdate.y (get_date): Move the tz-handling block to follow the
44986         relative-date-handling, since otherwise, the latter would clobber the
44987         sole output (an updated Start value) of the tz-handling block.
44988         * tests/test-getdate.c: Tests for the fix
44989
44990 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44991
44992         Recognize 'foo_LIBRARIES += libgnu.a'.
44993         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
44994         makefile snippet has already specified an installation location,
44995         also using '+='.
44996
44997 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
44998
44999         getdate.y: factor out common actions
45000         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
45001         Use them in place of open-coded actions.
45002
45003 2008-07-01  Simon Josefsson  <simon@josefsson.org>
45004
45005         Add self-test for getdate module.
45006         * modules/getdate-tests: New file.
45007         * tests/test-getdate.c: New file.
45008
45009 2008-06-29  Bruno Haible  <bruno@clisp.org>
45010
45011         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
45012         .gitignore.
45013         Reported by Sylvain Beucler <beuc@beuc.net>.
45014
45015 2008-06-29  Bruno Haible  <bruno@clisp.org>
45016
45017         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
45018         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
45019
45020 2008-06-29  Bruno Haible  <bruno@clisp.org>
45021
45022         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
45023         EXTRA_DIST.
45024         Reported by Sylvain Beucler <beuc@beuc.net>.
45025
45026 2008-06-26  Jim Meyering  <meyering@redhat.com>
45027
45028         make several modules depend on the "open" module
45029         This provides slightly increased consistency when opening-for-write
45030         the name of a non-directory spelled with a trailing slash.
45031         * modules/chdir-safer: Likewise.
45032         * modules/chown: Likewise.
45033         * modules/clean-temp: Likewise.
45034         * modules/copy-file: Likewise.
45035         * modules/fchdir: Likewise.
45036         * modules/fcntl-safer: Likewise.
45037         * modules/pipe: Likewise.
45038         * modules/utime: Likewise.
45039         Prompted by Eric Blake and Bruno Haible.
45040
45041 2008-06-24  Andreas Schwab  <schwab@suse.de>
45042
45043         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
45044         literals can be used as initializers for global variables.
45045
45046 2008-06-23  Eric Blake  <ebb9@byu.net>
45047
45048         Make gnulib-cache.m4 easier to diff.
45049         * gnulib-tool (func_import): Allow newlines when reading cached
45050         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
45051
45052 2008-06-23  Bruno Haible  <bruno@clisp.org>
45053
45054         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
45055         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
45056         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
45057         m4/signalblocking.m4.
45058         (gl_PREREQ_SIGACTION): Don't invoke it.
45059         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
45060         gl_PREREQ_SIG_HANDLER_H.
45061         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
45062         Don't check for sigaction here.
45063
45064 2008-06-23  Bruno Haible  <bruno@clisp.org>
45065
45066         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
45067         (install_handlers): Don't set the SA_RESETHAND flag.
45068
45069 2008-06-23  Bruno Haible  <bruno@clisp.org>
45070
45071         * m4/sigaction.m4: Comment fixes.
45072         * lib/signal.in.h: Likewise.
45073
45074 2008-06-23  Eric Blake  <ebb9@byu.net>
45075
45076         Fix typo.
45077         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
45078
45079         Avoid SA_ namespace.
45080         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
45081         Reported by Ralf Wildenhues.
45082
45083         Avoid test failure due to SA_RESTORER.
45084         * tests/test-sigaction.c (SA_MASK): New macro.
45085         (main): Avoid failing due to extension flags being set.
45086         Reported by Jim Meyering.
45087
45088         Revert use of sig-handler.h in sigprocmask.c.
45089         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
45090         it requires the existence of struct sigaction.
45091         * lib/sigprocmask.c (handler_t): Restore typedef.
45092         (rpl_signal, old_handlers): Use local type.
45093
45094 2008-06-22  Bruno Haible  <bruno@clisp.org>
45095
45096         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
45097         conditionally.
45098         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
45099
45100 2008-06-22  Bruno Haible  <bruno@clisp.org>
45101
45102         * doc/posix-functions/siginterrupt.texi: Move note.
45103
45104         * lib/signal.in.h (SA_RESTART): New macro.
45105         * lib/sigaction.c: Update comment.
45106
45107         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
45108
45109         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
45110         (gl_PREREQ_SIGPROCMASK): Invoke it.
45111         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
45112
45113         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
45114
45115         * lib/sigprocmask.c: Update a comment.
45116
45117 2008-06-21  Eric Blake  <ebb9@byu.net>
45118
45119         Use sigaction module rather than signal().
45120         * modules/c-stack (Depends-on): Add sigaction.
45121         * modules/fatal-signal (Depends-on): Likewise.
45122         * modules/nanosleep (Depends-on): Likewise.
45123         * modules/sigprocmask (Files): Add sig-handler.h.
45124         * modules/sigaction (Files): Likewise.
45125         * lib/sig-handler.h (get_handler): New file, suggested by Paul
45126         Eggert.
45127         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
45128         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
45129         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
45130         (init_fatal_signals): Likewise.
45131         * lib/nanosleep.c (rpl_nanosleep): Likewise.
45132         (siginterrupt): Delete fallback.
45133         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
45134         instead.
45135         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
45136         siginterrupt.
45137
45138         New module sigaction, for mingw.
45139         * modules/sigaction: New module...
45140         * modules/sigaction-tests: ...and its test.
45141         * m4/sigaction.m4: New file.
45142         * lib/sigaction.c: Likewise.
45143         * tests/test-sigaction.c: Likewise.
45144         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
45145         * modules/signal (Makefile.am): Likewise.
45146         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
45147         needed.
45148         * doc/posix-headers/signal.texi (signal.h): Mention provided
45149         types.
45150         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
45151         that sigaction is preferable.
45152         * doc/posix-functions/sigaction.texi (sigaction): Mention new
45153         module.
45154         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45155         sigaction.
45156
45157         Improve robustness of sigprocmask by overriding signal.
45158         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
45159         is in use.
45160         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
45161         (SIGKILL, SIGSTOP): Provide fallbacks.
45162         (rpl_signal): Implement.
45163         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
45164         signal can be called inside handlers.
45165
45166         Fix nanosleep module on mingw.
45167         * modules/nanosleep (Depends-on): Add sys_select.
45168         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
45169
45170         Fix licensing of sigprocmask.
45171         * modules/raise (License): Relicense as LGPL.
45172
45173 2008-06-21  Bruno Haible  <bruno@clisp.org>
45174
45175         * lib/propername.c (proper_name_utf8): Don't use the transliterated
45176         result if it contains question marks.
45177         Reported by Michael Geng <linux@michaelgeng.de>.
45178
45179 2008-06-19  Bruno Haible  <bruno@clisp.org>
45180
45181         Fix CVS-ism.
45182         * doc/gnulib.texi: Include updated-stamp.texi.
45183         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
45184         (updated-stamp.texi): New rule.
45185         (gnulib.info): Depend on it.
45186         * doc/.gitignore: Add updated-stamp.texi.
45187         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
45188
45189 2008-06-19  Bruno Haible  <bruno@clisp.org>
45190
45191         * doc/Makefile (gnulib.info): Update and simplify dependencies.
45192         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
45193
45194 2008-06-19  Eric Blake  <ebb9@byu.net>
45195
45196         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
45197         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
45198         Reported by Stepan Kasal.
45199
45200 2008-06-18  Bruno Haible  <bruno@clisp.org>
45201
45202         * lib/fatal-signal.c (init_fatal_signals): Add comment.
45203         Reported by Eric Blake.
45204
45205 2008-06-18  Eric Blake  <ebb9@byu.net>
45206
45207         Work around cygwin 1.5.25 strsignal bug.
45208         * tests/test-strsignal.c: Allow for const char *.
45209         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
45210
45211 2008-06-18  Simon Josefsson  <simon@josefsson.org>
45212
45213         * users.txt: Update URL to article and add author/date
45214         information.
45215
45216 2008-06-17  Bruno Haible  <bruno@clisp.org>
45217
45218         New macro gl_DISABLE_THREADS.
45219         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
45220         if the user did not pass --enable-threads or --disable-threads option.
45221         (gl_DISABLE_THREADS): New macro.
45222         Reported by Eric Blake <ebb9@byu.net>.
45223
45224 2008-06-17  Bruno Haible  <bruno@clisp.org>
45225
45226         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
45227         when the macro ignores it.
45228         Based on a patch by Eric Blake <ebb9@byu.net>.
45229
45230 2008-06-17  Bruno Haible  <bruno@clisp.org>
45231
45232         * modules/tls (License): Change to LGPLv2+.
45233         Reported by Eric Blake.
45234
45235 2008-06-17  Eric Blake  <ebb9@byu.net>
45236
45237         Simplify c-stack prerequisites.
45238         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
45239         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
45240         no longer requires <ucontext.h> to exist.  Optimize setrlimit
45241         check.
45242         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
45243         <sys/resource.h>.
45244
45245         Move c-stack test into testsuite.
45246         * modules/c-stack-tests: New file.
45247         * lib/c-stack.c [DEBUG]: Move test program...
45248         * tests/test-c-stack.c: ...into this new file.  Skip rather than
45249         fail test if sigaltstack is lacking.
45250         * tests/test-c-stack.sh: New driver file.
45251
45252 2008-06-16  Eric Blake  <ebb9@byu.net>
45253
45254         Use raise module consistently.
45255         * modules/fatal-signal (Depends-on): Add raise.
45256         * modules/sigprocmask (Depends-on): Likewise.
45257         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
45258         * lib/sigprocmask.c (sigprocmask): Likewise.
45259         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
45260         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
45261
45262         Fix compliance bug in sigpending.
45263         * lib/sigprocmask.c (sigpending): Return pending array via
45264         parameter, not return value.
45265
45266 2008-06-14  Eric Blake  <ebb9@byu.net>
45267
45268         Improve obstack-printf test code.
45269         * tests/test-obstack-printf.c (test_function): Fix comment, and
45270         simplify usage of obstack_* in macros.  Add a test for coverage.
45271         Reported by Bruno Haible.
45272
45273 2008-06-14  Bruno Haible  <bruno@clisp.org>
45274
45275         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
45276         array size as a constant, not as a const variable.
45277         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
45278         AC_USE_SYSTEM_EXTENSIONS.
45279         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
45280         Test whether the obstack_printf function actually exists.
45281         * modules/obstack-printf (Depends-on): Add extensions.
45282         (Include): Remove obstack.h.
45283         * modules/obstack-printf-posix (Depends-on): Add extensions.
45284         (Include): Remove obstack.h.
45285
45286 2008-06-13  Eric Blake  <ebb9@byu.net>
45287
45288         Add obstack-printf and obstack-printf-posix modules.
45289         * modules/obstack-printf: New file.
45290         * modules/obstack-printf-posix: Likewise.
45291         * MODULES.html.sh (Misc): Mention them.
45292         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
45293         Likewise.
45294         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
45295         Likewise.
45296         * modules/stdio (Makefile.am): Accomodate new modules.
45297         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45298         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
45299         Declare.
45300         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
45301         functions.
45302         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
45303         (gl_REPLACE_OBSTACK_PRINTF): New macros
45304         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
45305         * tests/test-obstack-printf.c: New file.
45306         * modules/obstack-printf-tests: Likewise.
45307         * modules/obstack-printf-posix-tests: Likewise.
45308
45309 2008-06-11  Bruno Haible  <bruno@clisp.org>
45310
45311         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
45312         * lib/open.c: Include errno.h.
45313         (open): Fail when attempting to write to a file that has a trailing
45314         slash.
45315         * tests/test-open.c (main): Test against trailing slash bug.
45316         * doc/posix-functions/open.texi: Mention the trailing slash bug.
45317
45318 2008-06-10  Bruno Haible  <bruno@clisp.org>
45319
45320         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
45321         for $? to work inside the trap command, with various /bin/sh-s.
45322         * tests/test-vc-list-files-cvs.sh: Likewise.
45323
45324 2008-06-10  Bruno Haible  <bruno@clisp.org>
45325
45326         * lib/acl-internal.h: Don't include gettext.h here.
45327         * lib/set-mode-acl.c: Include gettext.h here.
45328         * lib/copy-acl.c: Likewise.
45329
45330 2008-06-10  Bruno Haible  <bruno@clisp.org>
45331
45332         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
45333         * lib/wait-process.c (wait_subprocess): Likewise.
45334         * lib/execute.h (execute): Add termsigp argument.
45335         * lib/execute.c (execute): Likewise.
45336         * lib/csharpcomp.c (compile_csharp_using_pnet,
45337         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
45338         * lib/csharpexec.c (execute_csharp_using_pnet,
45339         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
45340         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
45341         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
45342         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
45343         is_jikes_present): Update.
45344         * lib/javaexec.c (execute_java_class): Update.
45345         * lib/javaversion.c (execute_and_read_line): Update.
45346         * NEWS: Document the changes.
45347         Reported by Eric Blake.
45348
45349 2008-06-10  Eric Blake  <ebb9@byu.net>
45350
45351         Add missing include.
45352         * tests/test-strstr.c (includes): Add <signal.h>.
45353         * tests/test-strcasestr.c (includes): Likewise.
45354         * tests/test-memmem.c (includes): Likewise.
45355
45356 2008-06-10  Bruno Haible  <bruno@clisp.org>
45357
45358         * lib/wait-process.c (wait_subprocess): Add an assertion.
45359
45360 2008-06-10  Bruno Haible  <bruno@clisp.org>
45361
45362         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
45363
45364 2008-06-10  Bruno Haible  <bruno@clisp.org>
45365
45366         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
45367         using alarm().
45368         * tests/test-strcasestr.c (main): Likewise.
45369         * tests/test-strstr.c (main): Likewise.
45370
45371 2008-06-09  Bruno Haible  <bruno@clisp.org>
45372
45373         Work around the Solaris 10 ACE ACLs ABI change.
45374         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
45375         declare if ACL_NO_TRIVIAL is present.
45376         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
45377         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
45378         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
45379         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
45380         define if ACL_NO_TRIVIAL is present.
45381         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
45382         and use the current ABI.
45383         (file_has_acl): Use same #if condition as elsewhere.
45384         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
45385         in use, and use the current ABI.
45386         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
45387         Reported by Jim Meyering.
45388
45389 2008-06-09  Eric Blake  <ebb9@byu.net>
45390
45391         Work around environments that (stupidly) ignore SIGALRM.
45392         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
45393         before using alarm().
45394         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45395         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
45396         Reported by Ian Beckwith <ianb@erislabs.net>.
45397
45398         Produce autobuild blurb earlier in log.
45399         * modules/autobuild (configure.ac-early): Move AB_INIT here.
45400
45401 2008-06-09  Jim Meyering  <meyering@redhat.com>
45402         and OndÅ™ej Vašík  <ovasik@redhat.com>
45403
45404         utimens.c: correct kernel bug work-around
45405         OndÅ™ej Vašík found that the invalid return value of 280 indicates
45406         failure, not success, and the kernel bug we're trying to work
45407         around affects not just the utimensat call, but also the fallback
45408         futimens call.
45409         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
45410         not success.
45411         [HAVE_FUTIMENS]: Use the same work-around, here.
45412
45413 2008-06-09  Jim Meyering  <meyering@redhat.com>
45414
45415         add more guards around definition of ACE_-related code
45416         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
45417         ALLOW and ACE_OWNER are also defined.
45418
45419 2008-06-08  Bruno Haible  <bruno@clisp.org>
45420
45421         * lib/acl-internal.h: Add me as co-author.
45422         * lib/file-has-acl.c: Likewise.
45423         * lib/set-mode-acl.c: Likewise.
45424         * lib/copy-acl.c: Likewise.
45425
45426 2008-06-08  Bruno Haible  <bruno@clisp.org>
45427
45428         Add support for AIX ACLs.
45429         * lib/acl-internal.h (acl_nontrivial): New declaration.
45430         * lib/file-has-acl.c (acl_nontrivial): New function.
45431         (file_has_acl): Add implementation using AIX 4 ACL API.
45432         * lib/set-mode-acl.c (qset_acl): Likewise.
45433         * lib/copy-acl.c (qcopy_acl): Likewise.
45434
45435 2008-06-08  Bruno Haible  <bruno@clisp.org>
45436
45437         Add support for HP-UX ACLs.
45438         * lib/acl-internal.h (acl_nontrivial): New declaration.
45439         * lib/file-has-acl.c (acl_nontrivial): New function.
45440         (file_has_acl): Add implementation using HP-UX 11 ACL API.
45441         * lib/set-mode-acl.c (qset_acl): Likewise.
45442         * lib/copy-acl.c (qcopy_acl): Likewise.
45443
45444 2008-06-08  Bruno Haible  <bruno@clisp.org>
45445
45446         Add support for Cygwin ACLs.
45447         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
45448         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
45449         the chmod_or_fchmod call.
45450         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
45451
45452 2008-06-08  Bruno Haible  <bruno@clisp.org>
45453
45454         Fix bug with setuid modes in Solaris 10+ code.
45455         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
45456         succeeded, when the mode contains some special bits.
45457
45458 2008-06-08  Bruno Haible  <bruno@clisp.org>
45459
45460         Add support for Solaris 7..10 ACLs.
45461         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
45462         declarations.
45463         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
45464         functions.
45465         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
45466         * lib/set-mode-acl.c (qset_acl): Likewise.
45467         * lib/copy-acl.c (qcopy_acl): Likewise.
45468
45469 2008-06-08  Bruno Haible  <bruno@clisp.org>
45470
45471         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
45472         declaration.
45473         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
45474         (acl_access_nontrivial): Remove MacOS X case.
45475         (file_has_acl): Use acl_extended_nontrivial.
45476         * lib/copy-acl.c (qcopy_acl): Likewise.
45477
45478 2008-06-08  Bruno Haible  <bruno@clisp.org>
45479
45480         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
45481
45482 2008-06-08  Jim Meyering  <meyering@redhat.com>
45483
45484         * modules/acl (Maintainer): Add Bruno Haible.
45485
45486 2008-06-07  Bruno Haible  <bruno@clisp.org>
45487
45488         Improve support for Tru64 ACLs.
45489         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
45490         ACL on OSF/1.
45491
45492 2008-06-07  Bruno Haible  <bruno@clisp.org>
45493
45494         Add support for MacOS X ACLs.
45495         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
45496         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
45497         * lib/set-mode-acl.c (qset_acl): Likewise.
45498         * lib/copy-acl.c (qcopy_acl): Likewise.
45499
45500 2008-06-07  Bruno Haible  <bruno@clisp.org>
45501
45502         Fix memory leak introduced on 2008-05-22.
45503         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
45504         use.
45505
45506 2008-06-07  Bruno Haible  <bruno@clisp.org>
45507
45508         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
45509         to construct an empty ACL.
45510
45511 2008-06-07  Bruno Haible  <bruno@clisp.org>
45512
45513         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
45514         precisely.
45515         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
45516
45517 2008-06-07  Bruno Haible  <bruno@clisp.org>
45518
45519         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
45520         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
45521
45522 2008-06-07  Bruno Haible  <bruno@clisp.org>
45523
45524         * doc/posix-functions/_setjmp.texi: Explain the use of this function
45525         regardless of POSIX.
45526         * doc/posix-functions/_longjmp.texi: Likewise.
45527         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
45528         SystemV platform in this case.
45529
45530 2008-06-06  Eric Blake  <ebb9@byu.net>
45531
45532         Document abort() bugs.
45533         * doc/posix-functions/abort.texi (abort): Mention anomalies.
45534
45535         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
45536         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
45537         sigsetjmp.
45538         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
45539         siglongjmp, but only as a macro.
45540         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
45541         is obsolete.
45542         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
45543
45544         Tweak documentation to cover cygwin argz bugs.
45545         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
45546         argz bug fix; no code change needed since no cygwin releases
45547         occurred between the last fix and the bug being tested.
45548         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
45549         module and recently fixed cygwin bugs.
45550         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
45551         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
45552         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
45553         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
45554         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
45555         Likewise.
45556         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
45557         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
45558         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
45559         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
45560         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
45561         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
45562         Likewise.
45563
45564         Avoid gcc warning on cygwin.
45565         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
45566         !ACL_NO_TRIVIAL]: Avoid unused variable.
45567
45568 2008-06-05  Eric Blake  <ebb9@byu.net>
45569
45570         Be tolerant of UNKNOWN version in gnulib-tool test dir.
45571         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
45572         git-version-gen fails to come up with a version.
45573         Reported by Simon Josefsson.
45574
45575 2008-06-05  Jim Meyering  <meyering@redhat.com>
45576             Paul Eggert  <eggert@cs.ucla.edu>
45577
45578         utimens.c: work around a probable Linux kernel bug
45579         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
45580         appears to be a kernel bug that causes utimensat to return 280
45581         instead of 0, indicating success.
45582
45583 2008-06-04  Bruno Haible  <bruno@clisp.org>
45584
45585         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
45586         2008-06-01 commit.
45587
45588 2008-06-04  Bruno Haible  <bruno@clisp.org>
45589
45590         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
45591         * lib/file-has-acl.c (acl_access_nontrivial): New function.
45592         (file_has_acl): Use it. Save errno afterwards.
45593         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
45594
45595 2008-06-03  Bruno Haible  <bruno@clisp.org>
45596
45597         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
45598         draft code. Simplify #ifs.
45599         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
45600         Put Solaris code after POSIX-draft code. Fix comments regarding
45601         Solaris 10, HP-UX. Mention Cygwin.
45602         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
45603
45604 2008-06-03  Eric Blake  <ebb9@byu.net>
45605
45606         Provide fallback for older kernels.
45607         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
45608         Provide runtime fallback if kernel lacks support.
45609         Reported by Mike Frysinger.
45610
45611 2008-06-02  Bruno Haible  <bruno@clisp.org>
45612
45613         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
45614         it exists.
45615
45616 2008-06-02  Bruno Haible  <bruno@clisp.org>
45617
45618         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
45619         * lib/copy-acl.c (qcopy_acl): Update comment.
45620
45621 2008-06-02  Bruno Haible  <bruno@clisp.org>
45622
45623         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
45624         like ACL APIs.
45625
45626 2008-06-02  Bruno Haible  <bruno@clisp.org>
45627
45628         * tests/test-file-has-acl.sh: Use different code for Cygwin.
45629         * tests/test-set-mode-acl.sh: Likewise.
45630         * tests/test-copy-acl.sh: Likewise.
45631         * tests/test-copy-file.sh: Likewise.
45632
45633 2008-06-02  Bruno Haible  <bruno@clisp.org>
45634
45635         * tests/test-file-has-acl.sh: Remove unused code.
45636
45637 2008-06-01  Bruno Haible  <bruno@clisp.org>
45638
45639         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
45640         (copy_acl): Just a wrapper around qcopy_acl that emits the error
45641         messages.
45642         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
45643
45644 2008-06-01  Bruno Haible  <bruno@clisp.org>
45645
45646         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
45647         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
45648         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
45649         APIs.
45650         * modules/acl-tests (configure.ac): Remove tests now contained in
45651         m4/acl.m4.
45652
45653 2008-06-02  Jim Meyering  <meyering@redhat.com>
45654
45655         announce-gen: use a better key-server host name
45656         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
45657         it may be more consistently reliable.  Suggested by Werner Koch
45658         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
45659
45660 2008-06-01  Bruno Haible  <bruno@clisp.org>
45661
45662         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
45663         Reported by Voroskoi Andras <voroskoi@gmail.com>.
45664
45665 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
45666
45667         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
45668
45669 2008-06-01  Bruno Haible  <bruno@clisp.org>
45670
45671         New ACL tests.
45672         * tests/test-file-has-acl.sh: New file.
45673         * tests/test-file-has-acl.c: New file.
45674         * tests/test-set-mode-acl.sh: New file.
45675         * tests/test-set-mode-acl.c: New file.
45676         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
45677         * tests/test-copy-acl.c: New file.
45678         * modules/acl-tests: New file, based on modules/copy-file-tests.
45679         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
45680         (Depends-on): Add acl-tests.
45681         (configure.ac): Remove checks.
45682         (Makefile.am): Don't create test-sameacls program here any more.
45683
45684 2008-06-01  Bruno Haible  <bruno@clisp.org>
45685
45686         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
45687         * tests/test-sameacls.c: Include progname.h.
45688         (main): Invoke set_program_name. Portability fixes for MacOS X,
45689         Solaris, HP-UX.
45690
45691 2008-06-01  Bruno Haible  <bruno@clisp.org>
45692
45693         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
45694         function.
45695         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
45696
45697 2008-06-01  Bruno Haible  <bruno@clisp.org>
45698
45699         * modules/rpmatch (Depends-on): Add strdup.
45700
45701 2008-06-01  Bruno Haible  <bruno@clisp.org>
45702
45703         * lib/pipe.c: Include unistd-safer.h.
45704         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
45705         * modules/pipe (Depends-on): Add unistd-safer.
45706
45707 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45708
45709         * modules/autobuild (configure.ac): Call AB_INIT.
45710
45711 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45712
45713         * tests/test-getaddrinfo.c: Don't print debug messages by default.
45714         Suggested by Bruno Haible <bruno@clisp.org>.
45715
45716 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45717
45718         * tests/test-base64.c: Cast size_t to unsigned long when invoking
45719         printf.  Use %lu instead of %d.  Reported by Bruno Haible
45720         <bruno@clisp.org>.
45721
45722 2008-05-29  Eric Blake  <ebb9@byu.net>
45723
45724         Prefer new POSIX 200x interfaces over futimesat.
45725         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
45726         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
45727         when available.
45728         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
45729
45730 2008-05-28  Bruno Haible  <bruno@clisp.org>
45731
45732         * modules/stpcpy (License): Change to LGPLv2+.
45733         Requested by David Lutterkort <dlutter@redhat.com>.
45734
45735 2008-05-27  Bruno Haible  <bruno@clisp.org>
45736
45737         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
45738         current mingw.
45739         Reported by Jose E. Marchesi <jemarch@gnu.org>.
45740
45741 2008-05-27  Bruno Haible  <bruno@clisp.org>
45742
45743         * modules/iconv_open (Link): New section, from module 'iconv'.
45744         * modules/striconv (Link): Likewise.
45745         * modules/striconveh (Link): Likewise.
45746         * modules/xstriconv (Link): Likewise.
45747         * modules/unicodeio (Link): Likewise.
45748         * modules/propername (Link): Likewise.
45749         Reported by Jim Meyering.
45750
45751 2008-05-26  Jim Meyering  <meyering@redhat.com>
45752
45753         sha256: do not artificially restrict buffer length to be < 2^32
45754         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
45755         uint32_t to size_t.
45756         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
45757         to match.
45758
45759         avoid unaligned access errors, e.g., on sparc
45760         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
45761         direct access through a possibly-unaligned uint64* pointer.
45762         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
45763         direct access through a possibly-unaligned uint32* pointer.
45764         Prompted by this patch from Tom "spot" Callaway:
45765         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
45766
45767         sha512.c: fix typo in comment
45768         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
45769
45770 2008-05-25  Bruno Haible  <bruno@clisp.org>
45771
45772         * lib/set-mode-acl.c: Renamed from lib/acl.c.
45773         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
45774         (Makefile.am): Update lib_SOURCES.
45775
45776 2008-05-25  Bruno Haible  <bruno@clisp.org>
45777
45778         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
45779
45780 2008-05-25  Jim Meyering  <meyering@redhat.com>
45781
45782         useless-if-before-free: freed expr may have white-space differences
45783         * build-aux/useless-if-before-free: Recognize cases in which the
45784         freed expression differs from the tested one in embedded white
45785         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
45786         $1 was used, so we can't make any regexp shy.  Improved tests now
45787         detect this.
45788
45789         useless-if-before-free: accept white space in the expression.
45790         * build-aux/useless-if-before-free: For now, any white space
45791         in the expression must be identical in the free argument.
45792
45793         useless-if-before-free: efficiency tweak
45794         * build-aux/useless-if-before-free: Make the expression-matching
45795         regexp "shy".
45796         Make the *outer* regexp shy, not the expr-matching one.
45797
45798         update code-in-comment to accept cast of free arg
45799         * build-aux/useless-if-before-free: Update regexp.
45800
45801 2008-05-25  Bruno Haible  <bruno@clisp.org>
45802
45803         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
45804         * modules/copy-file-tests (Files, Makefile.am): Update.
45805         * tests/test-copy-file.c (func_test_copy): Update.
45806
45807 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
45808
45809         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
45810
45811 2008-05-23  Bruno Haible  <bruno@clisp.org>
45812
45813         Improve support for ACLs on OSF/1.
45814         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
45815         Remove fallback for unknown flavors of ACLs.
45816
45817 2008-05-22  Bruno Haible  <bruno@clisp.org>
45818
45819         Add support for ACLs on OSF/1.
45820         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
45821         replacements.
45822         (acl_free_text): New macro fallback.
45823         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
45824         acl_free.
45825         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
45826         acl_free_text function. Require AC_C_INLINE.
45827
45828 2008-05-22  Bruno Haible  <bruno@clisp.org>
45829
45830         Make copy_acl work on MacOS X 10.5.
45831         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
45832         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
45833         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
45834         If MODE_INSIDE_ACL, don't assume that every system has the same text
45835         representation for ACLs as FreeBSD.
45836         * lib/copy-acl.c (copy_acl): Add support for platforms with
45837         !MODE_INSIDE_ACL.
45838         * lib/file-has-acl.c (file_has_acl): Likewise.
45839         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
45840         FreeBSD, MacOS X, or IRIX, respectively.
45841
45842 2008-05-22  Bruno Haible  <bruno@clisp.org>
45843
45844         * lib/acl.h: Don't include <sys/acl.h>.
45845         (GETACLCNT): Move fallback to lib/acl-internal.h.
45846         * lib/acl-internal.h: Include <sys/acl.h> here.
45847         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
45848
45849 2008-05-22  Bruno Haible  <bruno@clisp.org>
45850
45851         Split off copy_acl function to separate file.
45852         * lib/copy-acl.c: New file, extracted from lib/acl.c.
45853         * lib/acl.c (copy_acl): Moved function to separate file.
45854         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
45855         * modules/acl (Files): Add lib/copy-acl.c.
45856         (Makefiles.am): Augment lib_SOURCES.
45857
45858 2008-05-22  Bruno Haible  <bruno@clisp.org>
45859
45860         * modules/copy-file-tests: New file.
45861         * tests/test-copy-file.sh: New file.
45862         * tests/test-copy-file.c: New file.
45863         * tests/test-copy-file-sameacls.c: New file.
45864
45865 2008-05-22  Eric Blake  <ebb9@byu.net>
45866
45867         Avoid gcc warning.
45868         * tests/test-memcmp.c (main): Pass NULL indirectly.
45869
45870 2008-05-21  Bruno Haible  <bruno@clisp.org>
45871
45872         Add reference doc about ACLs.
45873         * doc/acl-resources.txt: New file.
45874         * doc/acl-cygwin.txt: New file.
45875
45876 2008-05-21  Bruno Haible  <bruno@clisp.org>
45877
45878         Avoid one more warning from gcc.
45879         * lib/vasnprintf.c (IF_LINT): Update comments.
45880         (VASNPRINTF): Use it also for the 'prefix' array initializer.
45881
45882 2008-05-21  Jim Meyering  <meyering@redhat.com>
45883
45884         avoid a warning from gcc
45885         * lib/vasnprintf.c (IF_LINT): Define.
45886         (scale10_round_decimal_long_double):
45887         Use it to avoid a "may be used uninitialized" warning.
45888         (scale10_round_decimal_double): Likewise.
45889
45890 2008-05-21  Simon Josefsson  <simon@josefsson.org>
45891
45892         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
45893         declared.
45894
45895 2008-05-20  Bruno Haible  <bruno@clisp.org>
45896
45897         * tests/test-memcmp.c (main): Test also the sign of the result. Test
45898         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
45899
45900 2008-05-20  Simon Josefsson  <simon@josefsson.org>
45901
45902         * modules/memcmp-tests: New file.
45903         * tests/test-memcmp.c: New file.
45904
45905 2008-05-19  Bruno Haible  <bruno@clisp.org>
45906
45907         * modules/propername (Notice, configure.ac): Put quoted "..." into
45908         --keyword option.
45909         * lib/propername.h: Update comments accordingly.
45910         Reported by Eric Blake.
45911
45912 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
45913
45914         * modules/getpass-gnu (Depends-on): Add fseeko.
45915
45916 2008-05-19  Simon Josefsson  <simon@josefsson.org>
45917
45918         * modules/base64-tests: New file.
45919
45920 2008-05-19  Bo Borgerson <gigabo@gmail.com>
45921
45922         * lib/base64.c (base64_decode_ctx): If a decode context structure
45923         was passed in use it to ignore newlines.  If a context structure
45924         was _not_ passed in, continue to treat newlines as garbage (this
45925         is the historical behavior).  Formerly base64_decode.
45926         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
45927         takes a decode context structure.
45928         * lib/base64.h (base64_decode): Macro for four-argument calls.
45929         (base64_decode_alloc): Likewise.
45930         * lib/base64.c (base64_decode_ctx): If a decode context structure
45931         was passed in use it to ignore newlines.  If a context structure
45932         was _not_ passed in, continue to treat newlines as garbage (this
45933         is the historical behavior).  Formerly base64_decode.
45934         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
45935         takes a decode context structure.
45936         * lib/base64.h (base64_decode): Macro for four-argument calls.
45937         (base64_decode_alloc): Likewise.
45938
45939 2008-05-19  Jim Meyering  <meyering@redhat.com>
45940
45941         avoid a warning from gcc
45942         * lib/trim.c (IF_LINT): Define.
45943         (trim2): Use it to avoid a "may be used uninitialized" warning.
45944
45945         Fix doc typo.
45946         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
45947
45948 2008-05-19  Bruno Haible  <bruno@clisp.org>
45949
45950         * doc/glibc-functions/getpass.texi: Document limits of other
45951         implementations.
45952
45953 2008-05-19  Simon Josefsson  <simon@josefsson.org>
45954             Bruno Haible <bruno@clisp.org>
45955
45956         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
45957
45958 2008-05-18  Bruno Haible  <bruno@clisp.org>
45959
45960         * modules/propername: New file, from GNU gettext.
45961         * lib/propername.h: New file, from GNU gettext.
45962         * lib/propername.c: New file, from GNU gettext.
45963         * MODULES.html.sh (Internationalization functions): Add propername.
45964
45965 2008-05-16  Jim Meyering  <meyering@redhat.com>
45966             Bruno Haible  <bruno@clisp.org>
45967
45968         Avoid some warnings from "gcc -Wshadow".
45969         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
45970
45971 2008-05-15  Eric Blake  <ebb9@byu.net>
45972
45973         Extend previous patch to cygwin 1.7.0.
45974         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
45975         fast implementation in cygwin >= 1.7.0.
45976         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45977         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45978
45979 2008-05-15  Bruno Haible  <bruno@clisp.org>
45980
45981         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
45982         implementation in glibc >= 2.9.
45983         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45984         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45985
45986 2008-05-15  Bruno Haible  <bruno@clisp.org>
45987
45988         * MODULES.html.sh (Internationalization functions): Remove linebreak.
45989         (Unicode string functions): Add unilbrk/*.
45990         Reported by Karl Berry.
45991
45992 2008-05-15  Eric Blake  <ebb9@byu.net>
45993
45994         Fix violation of <stdbool.h> replacement in regex.
45995         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
45996         * lib/regexec.c (re_search_internal): Likewise.
45997         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
45998
45999 2008-05-15  Jim Meyering  <meyering@redhat.com>
46000
46001         avoid distracting test output when git or cvs is not found
46002         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
46003         * tests/test-vc-list-files-git.sh: Likewise.
46004
46005 2008-05-15  Eric Blake  <ebb9@byu.net>
46006
46007         Glibc finally accepted the memmem speedup code, bugzilla #5514.
46008         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
46009         glibc version.
46010         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
46011         * doc/posix-functions/strstr.texi (strstr): Likewise.
46012         * lib/str-two-way.h (MAX): Sychronize with glibc.
46013
46014 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
46015
46016         * lib/regcomp.c (optimize_utf8): Add a note on why we test
46017         opr.ctx_type.
46018         (calc_first): Initialize constraint field.
46019         (duplicate_node_closure): Use it instead of special casing ANCHORS.
46020         Fix grammar.
46021         (duplicate_node): Merge constraint field for all node types.
46022         (calc_eclosure_iter): Look at constraint field for all node types.
46023         * lib/regex_internal.c (create_cd_newstate): Don't look at
46024         opr.ctx_type.
46025
46026 2008-05-14  Bruno Haible  <bruno@clisp.org>
46027
46028         Help GCC to do better code generation.
46029         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
46030         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
46031         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
46032         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
46033         Declare with attribute 'malloc' if supported.
46034
46035 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
46036
46037         use "echo STR|wc -c" rather than unportable "expr length STR"
46038         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
46039         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
46040
46041 2008-05-14  Jim Meyering  <meyering@redhat.com>
46042
46043         use dd ibs=$n count=1 ... rather than less-portable head -c$n
46044         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
46045         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
46046         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
46047         via Collin Lasse.
46048
46049 2008-05-14  Eric Blake  <ebb9@byu.net>
46050
46051         Avoid quadratic growth in gl_LIBSOURCES.
46052         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
46053         Suggested by Bruno Haible.
46054
46055         Test xmemdup0.
46056         * modules/xmemdup0-tests: New file.
46057         * tests/test-xmemdup0.c: Likewise.
46058
46059 2008-05-13  Eric Blake  <ebb9@byu.net>
46060
46061         Split xmemdup0 into its own module.
46062         * modules/xmemdup0: New file.
46063         * lib/xmemdup0.h: Likewise.
46064         * lib/xmemdup0.c: Likewise.
46065         * MODULES.html.sh (Memory management functions): Add xmemdup0.
46066         * lib/xalloc.h (xmemdup0): Remove.
46067         * lib/xmalloc.c (xmemdup0): Likewise.
46068
46069 2008-05-13  Eric Blake  <ebb9@byu.net>
46070             Bruno Haible  <bruno@clisp.org>
46071
46072         Reduce number of forks required during autoconf.
46073         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
46074         and gl_LIBSOURCES_DIR.
46075         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
46076         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
46077         m4_syscmd per file.
46078         <m4_foreach_w>: Move...
46079         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
46080
46081 2008-05-13  Eric Blake  <ebb9@byu.net>
46082
46083         * gnulib-tool: Fix various comment typos.
46084
46085 2008-05-12  Bruno Haible  <bruno@clisp.org>
46086
46087         Tailor the linebreaking algorithm.
46088         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
46089
46090 2008-05-12  Bruno Haible  <bruno@clisp.org>
46091
46092         Update to Unicode 5.0.0.
46093         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
46094         LBP_JV, LBP_JT. Redistribute values.
46095         (unilbrk_table): Change size.
46096         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
46097         Unicode TR#14 rev. 22.
46098         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
46099         LBP_JV, LBP_JT. Redistribute values.
46100         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
46101         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
46102         Update.
46103         * lib/unilbrk/lbrkprop1.h: Regenerated.
46104         * lib/unilbrk/lbrkprop2.h: Regenerated.
46105         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
46106         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
46107         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
46108         Likewise.
46109         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
46110         Likewise.
46111         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
46112         result.
46113         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
46114         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
46115         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
46116         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
46117         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
46118         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
46119
46120 2008-05-11  Bruno Haible  <bruno@clisp.org>
46121
46122         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
46123
46124 2008-05-11  Bruno Haible  <bruno@clisp.org>
46125
46126         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
46127         * modules/unilbrk/gen-lbrk: New file.
46128
46129 2008-05-11  Bruno Haible  <bruno@clisp.org>
46130
46131         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
46132         * m4/sha512.m4 (gl_SHA512): Likewise.
46133
46134 2008-05-11  Jim Meyering  <meyering@redhat.com>
46135
46136         New modules: crypto/sha256, crypto/sha512 (from coreutils)
46137         * modules/crypto/sha256: New file.
46138         * modules/crypto/sha512: Likewise.
46139         * lib/sha256.c: Likewise.
46140         * lib/sha256.h: Likewise.
46141         * lib/sha512.c: Likewise.
46142         * lib/sha512.h: Likewise.
46143         * lib/u64.h: Likewise.
46144         * m4/sha256.m4: Likewise.
46145         * m4/sha512.m4: Likewise.
46146         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
46147
46148 2008-05-10  Bruno Haible  <bruno@clisp.org>
46149
46150         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
46151         (Input/Output <stdio.h>): Add xprintf.
46152         (Signal handling <signal.h>): Add strsignal.
46153         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
46154         (Core language properties): Add func.
46155         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
46156         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
46157         strings.
46158         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
46159         (Input/output): New section.
46160         (File system functions): Add openat-die, stat-macros.
46161         (Networking functions): Add sockets.
46162         (Unicode string functions): Add unictype/*.
46163         (Support for building libraries and executables): Add gperf.
46164         (Support for building documentation): Add agpl-3.0.
46165         (Misc): Add nocrash.
46166
46167 2008-05-10  Bruno Haible  <bruno@clisp.org>
46168
46169         * modules/unictype/gen-ctype: New file.
46170
46171 2008-05-10  Jim Meyering  <meyering@redhat.com>
46172
46173         Make chdir-safer.c more efficient on a system with no symlinks.
46174         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
46175         also if ELOOP is zero.  Suggested by Bruno Haible.
46176
46177         Make chdir-safer.c slightly safer.
46178         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
46179         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
46180
46181         Avoid compile failure on systems without ELOOP (like mingw).
46182         * lib/chdir-safer.c (ELOOP): Define if not already defined.
46183         Reported by Bruno Haible.
46184
46185 2008-05-10  Bruno Haible  <bruno@clisp.org>
46186
46187         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
46188         (is_utf8_encoding): Use a case-insensitive comparison.
46189         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
46190         streq.
46191
46192 2008-05-10  Bruno Haible  <bruno@clisp.org>
46193
46194         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
46195         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
46196         * lib/unilbrk/ulc-common.h (iconv_string_length,
46197         iconv_string_keeping_offsets): Remove declarations.
46198         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
46199         Don't include <iconv.h>, streq.h, xsize.h.
46200         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
46201         conversion.
46202         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
46203         <iconv.h>, streq.h, xsize.h.
46204         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
46205         conversion.
46206         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
46207         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
46208         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
46209         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
46210
46211 2008-05-10  Bruno Haible  <bruno@clisp.org>
46212
46213         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
46214         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
46215
46216         * modules/unilbrk/u32-width-linebreaks-tests: New file.
46217         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
46218
46219         * modules/unilbrk/u16-width-linebreaks-tests: New file.
46220         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
46221
46222         * modules/unilbrk/u8-width-linebreaks-tests: New file.
46223         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
46224
46225         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
46226         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
46227
46228         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
46229         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
46230
46231         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
46232         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
46233
46234         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
46235         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
46236
46237 2008-05-10  Bruno Haible  <bruno@clisp.org>
46238
46239         Split up 'linebreak' module.
46240         * lib/unilbrk.h: New file, based on lib/linebreak.h.
46241         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
46242         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
46243         modifications.
46244         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
46245         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
46246         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
46247         lib/linebreak.c.
46248         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
46249         lib/linebreak.c.
46250         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
46251         lib/linebreak.c.
46252         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
46253         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
46254         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
46255         lib/linebreak.c.
46256         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
46257         lib/linebreak.c.
46258         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
46259         lib/linebreak.c.
46260         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
46261         lib/linebreak.c.
46262         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
46263         lib/linebreak.c.
46264         * modules/unilbrk/base: New file.
46265         * modules/unilbrk/tables: New file.
46266         * modules/unilbrk/u8-possible-linebreaks: New file.
46267         * modules/unilbrk/u16-possible-linebreaks: New file.
46268         * modules/unilbrk/u32-possible-linebreaks: New file.
46269         * modules/unilbrk/ulc-common: New file.
46270         * modules/unilbrk/ulc-possible-linebreaks: New file.
46271         * modules/unilbrk/u8-width-linebreaks: New file.
46272         * modules/unilbrk/u16-width-linebreaks: New file.
46273         * modules/unilbrk/u32-width-linebreaks: New file.
46274         * modules/unilbrk/ulc-width-linebreaks: New file.
46275         * lib/linebreak.h: Remove file.
46276         * lib/linebreak.c: Remove file.
46277         * m4/linebreak.m4: Remove file.
46278         * modules/linebreak: Remove file.
46279         * NEWS: Mention the changes.
46280
46281 2008-05-09  Eric Blake  <ebb9@byu.net>
46282
46283         Add xmemdup0.
46284         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
46285         implementation.
46286         * lib/xmalloc.c (xmemdup0): New C implementation.
46287
46288 2008-05-08  Bruno Haible  <bruno@clisp.org>
46289
46290         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
46291
46292 2008-05-07  Eric Blake  <ebb9@byu.net>
46293
46294         Support cross-compilation of <wctype.h>.
46295         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
46296         AC_CACHE_CHECK.
46297
46298 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
46299
46300         * build-aux/vc-list-files: Add support for bzr.
46301
46302 2008-05-03  Jim Meyering  <meyering@redhat.com>
46303
46304         avoid failed assertion with tight malloc
46305         * tests/test-getndelim2.c: Correct an off-by-one assertion.
46306
46307 2008-05-03  Simon Josefsson  <simon@josefsson.org>
46308
46309         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
46310         are needed from arpa/inet.h.
46311         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
46312         Reported by Bruno Haible.
46313
46314 2008-05-02  Jim Meyering  <meyering@redhat.com>
46315
46316         avoid compilation error on FreeBSD 6
46317         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
46318
46319 2008-05-01  Jim Meyering  <meyering@redhat.com>
46320
46321         useless-if-before-free: correct --help's exit status description
46322         * build-aux/useless-if-before-free (usage): Like grep, exit 0
46323         for one or more matches, etc.  Reported by Bruno Haible.
46324
46325         vc-list-files: make the stand-alone gnulib test work
46326         * modules/vc-list-files-tests (configure.ac):
46327         Define and AC_SUBST abs_aux_dir.
46328         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
46329         $(abs_top_srcdir) to each script and having each of them
46330         duplicate the work of setting PATH, set PATH here, using
46331         the new variable, abs_aux_dir instead.
46332         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
46333         * tests/test-vc-list-files-git.sh: Likewise.
46334         Reported by Bruno Haible.
46335
46336 2008-05-01  Bruno Haible  <bruno@clisp.org>
46337
46338         * lib/getndelim2.c (getndelim2): Fix newsize computation during
46339         reallocation. Rename 'done' to 'found_delimiter'.
46340
46341 2008-05-01  Jim Meyering  <meyering@redhat.com>
46342
46343         vc-list-files: accommodate /bin/sh like the one from Solaris 10
46344         * build-aux/vc-list-files: Use `...`, not $(...).
46345
46346 2008-04-30  Jim Meyering  <meyering@redhat.com>
46347
46348         add tests for vc-list-files
46349         * modules/vc-list-files-tests: New module.
46350         * tests/test-vc-list-files-cvs.sh: New file.
46351         * tests/test-vc-list-files-git.sh: New file.
46352
46353         avoid a warning from gcc
46354         * lib/getndelim2.c (IF_LINT): Define.
46355         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
46356
46357         vc-list-files: work properly with build-aux/cvsu, too
46358         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
46359         to all cvs-based clauses.
46360
46361         vc-list-files: work properly in the CVS+awk case, too
46362         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
46363
46364         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
46365         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
46366         take more than one file argument, so .  Add quotes, just in case $dir
46367         ever contains a shell meta-character.  Prompted by Soren Hansen in
46368         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
46369
46370 2008-04-29  Eric Blake  <ebb9@byu.net>
46371
46372         Optimize getndelim2 to use block operations when possible.
46373         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
46374         freadseek, and memchr2.
46375         * lib/getndelim2.c (getndelim2): Use them for block reads.
46376
46377 2008-04-29  Bruno Haible  <bruno@clisp.org>
46378
46379         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
46380         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46381         * modules/inet_ntop (Depends-on): Add extensions.
46382         * modules/inet_pton (Depends-on): Likewise.
46383         Reported by Simon Josefsson.
46384
46385 2008-04-29  Jim Meyering  <meyering@redhat.com>
46386
46387         When the is more than one match in a block, match all of them.
46388         * build-aux/useless-if-before-free: Iterate through each block
46389         until there are no more matches.
46390
46391         Fix broken useless-if-before-free script.
46392         * build-aux/useless-if-before-free: Fix typo: missing "?" after
46393         the expression to match cast of argument to free-like function.
46394
46395 2008-04-29  Eric Blake  <ebb9@byu.net>
46396
46397         Use new header.
46398         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
46399
46400 2008-04-29  Jim Meyering  <meyering@redhat.com>
46401
46402         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
46403         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
46404         by gnulib to exist and to declare e.g., inet_ntop.
46405         Don't include "inet_ntop.h", now removed.
46406
46407         * m4/arpa_inet_h.m4: Remove trailing blanks.
46408
46409 2008-04-29  Eric Blake  <ebb9@byu.net>
46410
46411         Silence valgrind on safe reads beyond potential array bounds.
46412         * lib/rawmemchr.valgrind: New file.
46413         * lib/strchrnul.valgrind: Likewise.
46414         * modules/rawmemchr (Files): Distribute new file.
46415         * modules/strchrnul (Files): Likewise.
46416         Suggested by Bruno Haible.
46417
46418 2008-04-29  Bruno Haible  <bruno@clisp.org>
46419
46420         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
46421         (inet_ntop, inet_pton): Change portability warning's wording.
46422         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
46423         Invoke gl_CHECK_NEXT_HEADERS.
46424         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
46425         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
46426         set ARPA_INET_H.
46427         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
46428         * modules/arpa_inet (Description): No longer only for systems that
46429         lack it.
46430         (Depends-on): Add include_next.
46431         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
46432         HAVE_ARPA_INET_H.
46433
46434 2008-04-29  Jim Meyering  <meyering@redhat.com>
46435
46436         * modules/mkdir (License): Re-license as LGPLv2+.
46437
46438 2008-04-29  Bruno Haible  <bruno@clisp.org>
46439
46440         * modules/rawmemchr (Maintainer): Set to Eric.
46441         * modules/strchrnul (Maintainer): Likewise.
46442
46443 2008-04-29  Simon Josefsson  <simon@josefsson.org>
46444
46445         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
46446         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
46447
46448         * modules/arpa_inet (arpa/inet.h): Use them.
46449
46450 2008-04-28  Eric Blake  <ebb9@byu.net>
46451
46452         Test getndelim2.
46453         * modules/getndelim2-tests: New file.
46454         * tests/test-getndelim2.c: Likewise.
46455         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
46456         stream.
46457         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
46458
46459         * MODULES.html.sh: Document new module.
46460
46461 2008-04-20  Bruno Haible  <bruno@clisp.org>
46462
46463         * lib/c-stack.c (die): Use raise.
46464         * modules/c-stack (Depends-on): Add raise.
46465
46466 2008-04-28  Bruno Haible  <bruno@clisp.org>
46467
46468         Expect rpmatch to be declared.
46469         * lib/yesno.c (rpmatch): Remove declaration.
46470
46471         Declare rpmatch.
46472         * lib/stdlib.in.h (rpmatch): New declaration.
46473         * lib/rpmatch.c: Include <stdlib.h> first.
46474         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
46475         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
46476         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
46477         HAVE_RPMATCH.
46478         * modules/rpmatch (Depends-on): Add stdlib, extensions.
46479         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
46480         (Include): Set to <stdlib.h>.
46481         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
46482         HAVE_RPMATCH.
46483         * NEWS: Document the change.
46484
46485 2008-04-28  Bruno Haible  <bruno@clisp.org>
46486
46487         Change rpmatch to use nl_langinfo when appropriate.
46488         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
46489         (N_): New macro.
46490         (localized_pattern): New function/macro.
46491         (try): Remove match, nomatch arguments. Copy the pattern into safe
46492         memory before caching it.
46493         (rpmatch): Use localized_pattern. Add translator comments.
46494         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
46495         Suggested by Eric Blake.
46496         * modules/rpmatch (Depends-on): Add stdbool.
46497
46498 2008-04-28  Eric Blake  <ebb9@byu.net>
46499
46500         Add rawmemchr module, matching glibc.
46501         * modules/string (Makefile.am): New indicator.
46502         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
46503         * lib/string.in.h (rawmemchr): Declare when appropriate.
46504         * modules/rawmemchr: New file.
46505         * m4/rawmemchr.m4: Likewise.
46506         * lib/rawmemchr.c: Likewise.
46507         * modules/rawmemchr-tests: Likewise.
46508         * tests/test-rawmemchr.c: Likewise.
46509         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
46510         module.
46511         * modules/strchrnul (Depends-on): Add rawmemchr.
46512         * lib/strchrnul.c (strchrnul): Optimize a corner case.
46513
46514         Whitespace cleanup.
46515         * tests/test-strchrnul.c: Reindent.
46516         * lib/strchrnul.c: Likewise.
46517
46518         Optimize and test strchrnul.
46519         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
46520         * modules/strchrnul-tests: New file.
46521         * tests/test-strchrnul.c: Likewise.
46522
46523         Remove intprops dependency.
46524         * modules/memchr (Depends-on): Remove intprops.
46525         * modules/memrchr (Depends-on): Likewise.
46526         * modules/memchr2 (Depends-on): Likewise.
46527         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
46528         * lib/memrchr.c (__memrchr): Likewise.
46529         * lib/memrchr2.c (memchr2): Likewise.
46530         Reported by Simon Josefsson.
46531
46532 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46533
46534         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
46535         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46536
46537 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46538
46539         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
46540
46541         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
46542
46543         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
46544
46545         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
46546         declarations.
46547         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
46548
46549         * m4/inet_pton.m4: Don't check for header files.
46550
46551         * m4/inet_ntop.m4: Don't check for header files.
46552
46553 2008-04-28  Simon Josefsson  <simon@josefsson.org>
46554
46555         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
46556         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
46557         trigger for cygwin).
46558         Reported by Bruno Haible  <bruno@clisp.org>.
46559
46560 2008-04-28  Bruno Haible  <bruno@clisp.org>
46561
46562         * doc/posix-functions/strdup.texi: Mention mingw problem.
46563
46564 2008-04-27  Bruno Haible  <bruno@clisp.org>
46565
46566         * modules/stat-time-tests (Depends-on): Add sleep.
46567         * tests/test-stat-time.c (force_unlink): New function.
46568         (cleanup): Use it.
46569         (test_mtime): Remove the ctime related tests.
46570         (test_ctime): New function, containing the ctime related tests.
46571         (main): Call test_ctime, except on native Windows platforms.
46572
46573 2008-04-27  Bruno Haible  <bruno@clisp.org>
46574
46575         * lib/rpmatch.c (rpmatch): Add some comments.
46576         Reported by James Youngman <jay@gnu.org>.
46577
46578 2008-04-27  Bruno Haible  <bruno@clisp.org>
46579
46580         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
46581         quiet NaNs.
46582
46583 2008-04-27  Bruno Haible  <bruno@clisp.org>
46584
46585         Make test-yesno.sh work on mingw.
46586         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
46587         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
46588         (main): Set stdin to binary mode.
46589         * modules/yesno-tests (Depends-on): Add binary-io.
46590
46591 2008-04-27  Bruno Haible  <bruno@clisp.org>
46592
46593         Fix 'isfinite' on x86, x86_64, ia64 platforms.
46594         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
46595         argument that lie outside the IEEE 854 domain.
46596         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
46597         (gl_ISFINITE): Use it.
46598         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
46599
46600 2008-04-27  Bruno Haible  <bruno@clisp.org>
46601
46602         Allow local renaming in config.h.
46603         * lib/memrchr.c (memrchr): Don't undefine outside libc.
46604
46605 2008-04-27  Bruno Haible  <bruno@clisp.org>
46606
46607         * lib/memchr.c (__memchr): Change type of 'i'.
46608         * lib/memchr2.c (memchr2): Likewise.
46609
46610 2008-04-26  Eric Blake  <ebb9@byu.net>
46611         and Bruno Haible  <bruno@clisp.org>
46612
46613         Optimize and test memrchr.
46614         * modules/memrchr (Depends-on): Add intprops.
46615         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
46616         * modules/memrchr-tests: New file.
46617         * tests/test-memrchr.c: New file.
46618
46619 2008-04-26  Bruno Haible  <bruno@clisp.org>
46620
46621         Add tentative support for DragonFly BSD.
46622         * lib/stdio-impl.h: Add macros for DragonFly BSD.
46623         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
46624         fp.
46625         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
46626         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
46627         * lib/fpurge.c (fpurge): Likewise.
46628         * lib/freadable.c (freaadable): Likewise.
46629         * lib/freadahead.c (freadahead): Likewise.
46630         * lib/freading.c (freading): Likewise.
46631         * lib/freadptr.c (freadptr): Likewise.
46632         * lib/freadseek.c (freadptrinc): Likewise.
46633         * lib/fseeko.c (fseeko): Likewise.
46634         * lib/fseterr.c (fseterr): Likewise.
46635         * lib/fwritable.c (fwritable): Likewise.
46636         * lib/fwriting.c (fwriting): Likewise.
46637
46638 2008-04-26  Bruno Haible  <bruno@clisp.org>
46639
46640         * lib/stdio-impl.h: New file.
46641         * lib/fbufmode.c: Include stdio-impl.h.
46642         (fbufmode): Use fp_, remove redundant #defines.
46643         * lib/fflush.c: Include stdio-impl.h.
46644         (clear_ungetc_buffer): Remove redundant #defines.
46645         * lib/fpurge.c: Include stdio-impl.h.
46646         (fpurge): Remove redundant #defines.
46647         * lib/freadable.c: Include stdio-impl.h.
46648         (freadable): Remove redundant #defines.
46649         * lib/freadahead.c: Include stdio-impl.h.
46650         (freadahead): Remove redundant #defines.
46651         * lib/freading.c: Include stdio-impl.h.
46652         (freading): Remove redundant #defines.
46653         * lib/freadptr.c: Include stdio-impl.h.
46654         (freadptr): Remove redundant #defines.
46655         * lib/freadseek.c: Include stdio-impl.h.
46656         (freadptrinc): Remove redundant #defines.
46657         * lib/fseeko.c: Include stdio-impl.h.
46658         (rpl_fseeko): Remove redundant #defines.
46659         * lib/fseterr.c: Include stdio-impl.h.
46660         (fseterr): Remove redundant #defines.
46661         * lib/fwritable.c: Include stdio-impl.h.
46662         (fwritable: Remove redundant #defines.
46663         * lib/fwriting.c: Include stdio-impl.h.
46664         (fwriting): Remove redundant #defines.
46665         * modules/fbufmode (Files): Add lib/stdio-impl.h.
46666         * modules/fflush (Files): Likewise.
46667         * modules/fpurge (Files): Likewise.
46668         * modules/freadable (Files): Likewise.
46669         * modules/freadahead (Files): Likewise.
46670         * modules/freading (Files): Likewise.
46671         * modules/freadptr (Files): Likewise.
46672         * modules/freadseek (Files): Likewise.
46673         * modules/fseeko (Files): Likewise.
46674         * modules/fseterr (Files): Likewise.
46675         * modules/fwritable (Files): Likewise.
46676         * modules/fwriting (Files): Likewise.
46677
46678 2008-04-26  Bruno Haible  <bruno@clisp.org>
46679
46680         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
46681         restore_seek_optimization, update_fpos_cache): New functions, extracted
46682         from rpl_fflush.
46683         (rpl_fflush): Use them.
46684         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
46685         (gl_REPLACE_FFLUSH): Use it.
46686
46687 2008-04-26  Bruno Haible  <bruno@clisp.org>
46688
46689         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
46690         on Solaris.
46691         * tests/test-xstrtoimax.sh: Likewise.
46692         * tests/test-xstrtoumax.sh: Likewise.
46693         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46694
46695 2008-04-26  Bruno Haible  <bruno@clisp.org>
46696
46697         * modules/memchr-tests: New file.
46698         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
46699
46700 2008-04-26  Eric Blake  <ebb9@byu.net>
46701             Bruno Haible  <bruno@clisp.org>
46702
46703         * lib/memchr.c: Include intprops.h.
46704         (__memchr): Optimize parallel detection of matching bytes. Rename local
46705         variables. Add explanatory comments.
46706
46707 2008-04-26  Bruno Haible  <bruno@clisp.org>
46708
46709         Fix module 'memchr', broken since 2000-10-28.
46710         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
46711
46712 2008-04-26  Bruno Haible  <bruno@clisp.org>
46713
46714         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
46715         comments.
46716
46717 2008-04-25  Eric Blake  <ebb9@byu.net>
46718
46719         Use native fstatat on cygwin 1.7.0.
46720         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
46721         first.
46722
46723 2008-04-23  Eric Blake  <ebb9@byu.net>
46724
46725         Improve memchr2 performance.
46726         * lib/memchr2.c (memchr2): Further optimize parallel detection of
46727         NUL bytes.
46728         * modules/memchr2 (Depends-on): Use intprops.h.
46729
46730 2008-04-23  Simon Josefsson  <simon@josefsson.org>
46731
46732         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
46733         an inline function instead of a CPP macro.  Patch by Ben Pfaff
46734         <blp@cs.stanford.edu>.
46735
46736 2008-04-23  Simon Josefsson  <simon@josefsson.org>
46737
46738         * lib/arpa_inet.in.h: New file.
46739
46740         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
46741         (Makefile.am): Sed in substitute header file.
46742
46743         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
46744         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
46745
46746         * modules/inet_ntop (configure.ac): Use
46747         gl_ARPA_INET_MODULE_INDICATOR.
46748
46749         * modules/inet_pton (configure.ac): Use
46750         gl_ARPA_INET_MODULE_INDICATOR.
46751
46752 2008-04-22  Jim Meyering  <meyering@redhat.com>
46753
46754         * modules/verify (License): Re-license as LGPLv2+.
46755
46756 2008-04-22  Simon Josefsson  <simon@josefsson.org>
46757
46758         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
46759         parameter to void* as per POSIX standard (MinGW uses char*).
46760
46761 2008-04-21  Bruno Haible  <bruno@clisp.org>
46762
46763         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
46764         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
46765         Define to replacements if REPLACE_ISWCNTRL is 1.
46766         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
46767         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
46768         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
46769         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
46770         what it fixes.
46771         * doc/posix-functions/iswalpha.texi: Likewise.
46772         * doc/posix-functions/iswblank.texi: Likewise.
46773         * doc/posix-functions/iswcntrl.texi: Likewise.
46774         * doc/posix-functions/iswdigit.texi: Likewise.
46775         * doc/posix-functions/iswgraph.texi: Likewise.
46776         * doc/posix-functions/iswlower.texi: Likewise.
46777         * doc/posix-functions/iswprint.texi: Likewise.
46778         * doc/posix-functions/iswpunct.texi: Likewise.
46779         * doc/posix-functions/iswspace.texi: Likewise.
46780         * doc/posix-functions/iswupper.texi: Likewise.
46781         * doc/posix-functions/iswxdigit.texi: Likewise.
46782         Reported by Alain Guibert.
46783
46784 2008-04-21  Bruno Haible  <bruno@clisp.org>
46785
46786         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
46787         Patch by Alain Guibert.
46788
46789 2008-04-21  Bruno Haible  <bruno@clisp.org>
46790
46791         Fix test failures on mingw.
46792         * tests/test-xstrtol.c (print_no_progname): New function.
46793         (main): Install it in error_print_progname hook.
46794         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
46795         * tests/test-xstrtoimax.sh: Likewise.
46796         * tests/test-xstrtoumax.sh: Likewise.
46797
46798 2008-04-21  Bruno Haible  <bruno@clisp.org>
46799
46800         Fix test failure on mingw.
46801         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
46802
46803 2008-04-21  Bruno Haible  <bruno@clisp.org>
46804
46805         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
46806         Actually assign a value.
46807
46808 2008-04-20  Bruno Haible  <bruno@clisp.org>
46809
46810         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
46811         take 2.
46812         * lib/canonicalize.c (canonicalize_file_name): Elide if the
46813         'canonicalize-lgpl' module is also used.
46814         * lib/canonicalize-lgpl.c: Undo last change.
46815         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
46816
46817 2008-04-20  Bruno Haible  <bruno@clisp.org>
46818
46819         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
46820         config.h. Provide _mkdir based fallback for mingw.
46821         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
46822         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
46823         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
46824         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
46825         rather than defining mkdir in config.h.
46826         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
46827         (gl_SYS_STAT_H_DEFAULTS): New macro.
46828         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
46829         HAVE_IO_H any more.
46830         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
46831         HAVE_DECL_MKDIR and HAVE_IO_H.
46832
46833 2008-04-20  Bruno Haible  <bruno@clisp.org>
46834
46835         * lib/isapipe.c: Port to native Windows platforms.
46836
46837 2008-04-20  Bruno Haible  <bruno@clisp.org>
46838
46839         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
46840
46841 2008-04-21  Eric Blake  <ebb9@byu.net>
46842
46843         Work around preprocessors that don't handle UINTMAX_MAX.
46844         * lib/memchr2.c (memchr2): Avoid embedded #if.
46845         Reported by Alain Guibert, fix suggested by Bruno Haible.
46846
46847 2008-04-21  Simon Josefsson  <simon@josefsson.org>
46848
46849         * doc/posix-functions/strftime.texi (strftime): Explain better
46850         Windows incompatibility.  Suggested by Micah Cowan
46851         <micah@cowan.name>.
46852
46853 2008-04-20  Bruno Haible  <bruno@clisp.org>
46854
46855         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
46856         unistr/u8-mblen.
46857
46858 2008-04-20  Bruno Haible  <bruno@clisp.org>
46859
46860         Fix test failure on platforms with non-GNU iconv.
46861         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
46862         (U_TO_U8): Use it, rather than u16_to_u8.
46863         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
46864         units at the end of the input string.
46865         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
46866
46867 2008-04-20  Bruno Haible  <bruno@clisp.org>
46868
46869         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
46870         when the resulting length is 0.
46871         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
46872
46873 2008-04-20  Bruno Haible  <bruno@clisp.org>
46874
46875         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
46876         works.
46877         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
46878
46879 2008-04-20  Bruno Haible  <bruno@clisp.org>
46880
46881         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
46882         * modules/tsearch-tests (configure.ac): Test for initstate function.
46883
46884 2008-04-20  Bruno Haible  <bruno@clisp.org>
46885
46886         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
46887         for nlink_t if missing.
46888         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
46889
46890 2008-04-19  Bruno Haible  <bruno@clisp.org>
46891
46892         Work around snprintf bug on Linux libc5.
46893         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
46894         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
46895         gl_SNPRINTF_SIZE1.
46896         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46897         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
46898         that test failed.
46899         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
46900         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
46901         * modules/snprintf (Files): Add m4/printf.m4.
46902         * modules/vsnprintf (Files): Likewise.
46903         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
46904         * doc/posix-functions/vsnprintf.texi: Likewise.
46905
46906 2008-04-19  Bruno Haible  <bruno@clisp.org>
46907
46908         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
46909         from 0.0058 to less than 10^-7.
46910
46911 2008-04-19  Bruno Haible  <bruno@clisp.org>
46912
46913         Fix rounding when a precision is given.
46914         * lib/vasnprintf.c (is_borderline): New function.
46915         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
46916         9...9x.
46917         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
46918         %e, %g.
46919         * tests/test-vasprintf-posix.c (test_function): Likewise.
46920         * tests/test-snprintf-posix.h (test_function): Likewise.
46921         * tests/test-sprintf-posix.h (test_function): Likewise.
46922         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
46923         * tests/test-printf-posix.h (test_function): Likewise.
46924         * tests/test-printf-posix.output: Update.
46925         Reported by John Darrington <john@darrington.wattle.id.au> via
46926         Ben Pfaff <blp@cs.stanford.edu>.
46927
46928 2008-04-18  Simon Josefsson  <simon@josefsson.org>
46929
46930         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
46931         Suggested by Bruno Haible <bruno@clisp.org>.
46932
46933 2008-04-17  Bruno Haible  <bruno@clisp.org>
46934
46935         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
46936         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
46937         implementation.
46938         Patch by Bruce Merry <bmerry@gmail.com>.
46939
46940 2008-04-17  Simon Josefsson  <simon@josefsson.org>
46941
46942         * doc/posix-functions/strftime.texi (strftime): Mention that %e
46943         doesn't work under Windows.
46944
46945 2008-04-16  Bruno Haible  <bruno@clisp.org>
46946
46947         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
46948         New macros.
46949         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
46950         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
46951         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
46952         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
46953         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
46954         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
46955         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
46956         macros.
46957         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
46958         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
46959         Northern Sotho, Uighur.
46960
46961 2008-04-16  Bruno Haible  <bruno@clisp.org>
46962
46963         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
46964         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
46965         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
46966         Reported by Daniel Bergström <daniel@octocode.com>.
46967
46968 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
46969             Bruno Haible  <bruno@clisp.org>
46970
46971         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
46972         function.
46973         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
46974         New functions, mostly extracted from gl_locale_name_default.
46975         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
46976
46977 2008-04-16  Eric Blake  <ebb9@byu.net>
46978
46979         Adjust strtod detection to catch glibc 2.7 bug.
46980         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
46981         Reported by John Gatewood Ham.
46982
46983 2008-04-16  Bruno Haible  <bruno@clisp.org>
46984
46985         Add tentative support for Linux libc5.
46986         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
46987         * lib/fpurge.c (fpurge): Likewise.
46988         * lib/freadable.c (freadable): Likewise.
46989         * lib/freadahead.c (freadahead): Likewise.
46990         * lib/freading.c (freading): Likewise.
46991         * lib/freadptr.c (freadptr): Likewise.
46992         * lib/freadseek.c (freadptrinc): Likewise.
46993         * lib/fseeko.c (rpl_fseeko): Likewise.
46994         * lib/fseterr.c (fseterr): Likewise.
46995         * lib/fwritable.c (fwritable): Likewise.
46996         * lib/fwriting.c (fwriting): Likewise.
46997         Reported by Alain Guibert <alguibert+bts@free.fr>.
46998
46999 2008-04-15  Bruno Haible  <bruno@clisp.org>
47000
47001         * modules/mathl (configure.ac): Define module indicator.
47002
47003 2008-04-15  Bruno Haible  <bruno@clisp.org>
47004
47005         * lib/logl.c (logl): Remove unused variables.
47006
47007 2008-04-15  Bruno Haible  <bruno@clisp.org>
47008
47009         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
47010         fails.
47011
47012 2008-04-15  Bruno Haible  <bruno@clisp.org>
47013
47014         * lib/trim.c (trim2): Fix argument of isspace() macro.
47015
47016 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
47017
47018         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
47019         to 0.
47020         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
47021
47022 2008-04-14  Bruno Haible  <bruno@clisp.org>
47023
47024         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
47025         AC_LANG_PROGRAM argument.
47026         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
47027         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
47028         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
47029         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
47030         * m4/math_h.m4 (gl_MATH_H): Likewise.
47031         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
47032         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
47033         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
47034         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
47035         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
47036         * m4/regex.m4 (gl_REGEX): Likewise.
47037         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
47038         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
47039         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
47040         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
47041         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
47042         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
47043         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
47044         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
47045
47046 2008-04-14  Jim Meyering  <meyering@redhat.com>
47047
47048         test-strtod: fix typos: s/abs/fabs/
47049         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
47050
47051 2008-04-13  Bruno Haible  <bruno@clisp.org>
47052
47053         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
47054         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
47055         module is also used and while not building the reloc-wrapper.
47056
47057 2008-04-13  Bruno Haible  <bruno@clisp.org>
47058
47059         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
47060
47061 2008-04-13  Bruno Haible  <bruno@clisp.org>
47062
47063         Fix AIX compilation failure introduced on 2008-04-02.
47064         * tests/test-frexp.c (exp): Undefine before redefining.
47065         * tests/test-frexpl.c (exp): Likewise.
47066
47067 2008-04-13  Bruno Haible  <bruno@clisp.org>
47068
47069         Work around a HP-UX stdio bug.
47070         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
47071         * tests/test-ftello.c (main): Likewise.
47072         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
47073         * doc/posix-functions/ftello.texi: Likewise.
47074
47075 2008-04-13  Bruno Haible  <bruno@clisp.org>
47076
47077         Make test-signbit pass on HP-UX/hppa.
47078         * tests/test-signbit.c (minus_zerol): New variable.
47079         (test_signbitl): Use it.
47080
47081 2008-04-13  Bruno Haible  <bruno@clisp.org>
47082
47083         Make truncl work on OSF/1 4.0.
47084         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
47085         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
47086         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
47087         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
47088         HAVE_DECL_TRUNCL.
47089         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
47090         HAVE_DECL_TRUNCL.
47091         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
47092
47093 2008-04-13  Bruno Haible  <bruno@clisp.org>
47094
47095         * lib/unictype.h: Remove trailing comma from enumeration definitions.
47096
47097 2008-04-13  Bruno Haible  <bruno@clisp.org>
47098
47099         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
47100         expression, so as to avoid HP-UX 11 cc compiler bug.
47101
47102 2008-04-13  Bruno Haible  <bruno@clisp.org>
47103
47104         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
47105
47106 2008-04-13  Bruno Haible  <bruno@clisp.org>
47107
47108         * lib/git-merge-changelog.c: Remove empty declaration outside of
47109         functions.
47110
47111 2008-04-13  Bruno Haible  <bruno@clisp.org>
47112
47113         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
47114
47115 2008-04-13  Bruno Haible  <bruno@clisp.org>
47116
47117         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
47118         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
47119         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
47120         also if it exists but lacks definitions of the SHUT_* macros.
47121         * modules/sys_socket (Description): Update.
47122         Reported by Elbert Pol <e.pol@chello.nl>.
47123
47124 2008-04-13  Bruno Haible  <bruno@clisp.org>
47125
47126         * lib/localcharset.c (OS2): Don't redefine if already defined.
47127         Reported by Elbert Pol <e.pol@chello.nl>.
47128
47129 2008-04-13  Bruno Haible  <bruno@clisp.org>
47130
47131         * lib/binary-io.h [__EMX__]: Include <io.h>.
47132         Reported by Elbert Pol <e.pol@chello.nl>.
47133
47134 2008-04-12  Bruno Haible  <bruno@clisp.org>
47135
47136         * lib/fpucw.h: Enable the definitions also for x86_64.
47137         Needed for NetBSD/x86_64.
47138         Reported by Thomas Klausner <tk@giga.or.at>.
47139
47140 2008-04-12  Bruno Haible  <bruno@clisp.org>
47141
47142         * tests/test-strtod.c: Include isnand.h.
47143         (main): Use isnand instead of isnan.
47144         Reported by Jim Meyering.
47145
47146 2008-04-12  Bruno Haible  <bruno@clisp.org>
47147
47148         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
47149         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
47150
47151 2008-04-12  Jim Meyering  <meyering@redhat.com>
47152
47153         * m4/math_h.m4 (gl_MATH_H): Fix typos.
47154
47155 2008-04-12  Bruno Haible  <bruno@clisp.org>
47156
47157         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
47158         Reported by Elbert Pol <e.pol@chello.nl>.
47159
47160 2008-04-12  Eric Blake  <ebb9@byu.net>
47161
47162         Work around Solaris 10 math.h bug.
47163         * m4/math_h.m4 (gl_MATH_H): Check for bug.
47164         (gl_MATH_H_DEFAULTS): Set up default.
47165         * modules/math (Makefile.am): Replace new indicators.
47166         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
47167         * tests/test-math.c (main): Test this.
47168         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
47169         * doc/posix-headers/math.texi (math.h): Mention bug.
47170         Reported by Nelson H. F. Beebe and Jim Meyering.
47171
47172 2008-04-11  Bruno Haible  <bruno@clisp.org>
47173
47174         Adapt to future versions of Apple GCC.
47175         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
47176         Reported by Peter O'Gorman <peter@pogma.com>.
47177
47178 2008-04-11  Bruno Haible  <bruno@clisp.org>
47179
47180         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
47181
47182 2008-04-11  Bruno Haible  <bruno@clisp.org>
47183
47184         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
47185
47186         * modules/getaddrinfo-tests (Makefile.am): Define
47187         test_getaddrinfo_LDADD.
47188
47189 2008-04-11  Bruno Haible  <bruno@clisp.org>
47190
47191         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
47192         (init): Fix syntax error.
47193         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
47194         is declared.
47195
47196 2008-04-11  Bruno Haible  <bruno@clisp.org>
47197
47198         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
47199         * modules/glob (Depends-on): Add stdbool.
47200
47201 2008-04-11  Bruno Haible  <bruno@clisp.org>
47202
47203         * lib/trim.c: Include <string.h>.
47204
47205 2008-04-11  Eric Blake  <ebb9@byu.net>
47206
47207         Avoid compile failure on OS/2.
47208         * lib/regex_internal.h (internal_function): Disable optimization
47209         on OS/2 (__EMX__), where it caused compiler error.
47210         Reported by Elbert Pol.
47211
47212 2008-04-11  Bruno Haible  <bruno@clisp.org>
47213
47214         Flush the standard error stream before aborting. Needed on mingw.
47215         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
47216         * tests/test-array_list.c (ASSERT): Likewise.
47217         * tests/test-array_oset.c (ASSERT): Likewise.
47218         * tests/test-avltree_list.c (ASSERT): Likewise.
47219         * tests/test-avltree_oset.c (ASSERT): Likewise.
47220         * tests/test-avltreehash_list.c (ASSERT): Likewise.
47221         * tests/test-binary-io.c (ASSERT): Likewise.
47222         * tests/test-byteswap.c (ASSERT): Likewise.
47223         * tests/test-c-ctype.c (ASSERT): Likewise.
47224         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
47225         * tests/test-c-strcasestr.c (ASSERT): Likewise.
47226         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
47227         * tests/test-c-strstr.c (ASSERT): Likewise.
47228         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
47229         * tests/test-canonicalize.c (ASSERT): Likewise.
47230         * tests/test-carray_list.c (ASSERT): Likewise.
47231         * tests/test-ceilf1.c (ASSERT): Likewise.
47232         * tests/test-ceilf2.c (ASSERT): Likewise.
47233         * tests/test-ceill.c (ASSERT): Likewise.
47234         * tests/test-count-one-bits.c (ASSERT): Likewise.
47235         * tests/test-fbufmode.c (ASSERT): Likewise.
47236         * tests/test-fflush2.c (ASSERT): Likewise.
47237         * tests/test-floorf1.c (ASSERT): Likewise.
47238         * tests/test-floorf2.c (ASSERT): Likewise.
47239         * tests/test-floorl.c (ASSERT): Likewise.
47240         * tests/test-fopen.c (ASSERT): Likewise.
47241         * tests/test-fpending.c (ASSERT): Likewise.
47242         * tests/test-fprintf-posix.c (ASSERT): Likewise.
47243         * tests/test-fpurge.c (ASSERT): Likewise.
47244         * tests/test-freadable.c (ASSERT): Likewise.
47245         * tests/test-freadahead.c (ASSERT): Likewise.
47246         * tests/test-freading.c (ASSERT): Likewise.
47247         * tests/test-freadptr.c (ASSERT): Likewise.
47248         * tests/test-freadptr2.c (ASSERT): Likewise.
47249         * tests/test-freadseek.c (ASSERT): Likewise.
47250         * tests/test-freopen.c (ASSERT): Likewise.
47251         * tests/test-frexp.c (ASSERT): Likewise.
47252         * tests/test-frexpl.c (ASSERT): Likewise.
47253         * tests/test-fseek.c (ASSERT): Likewise.
47254         * tests/test-fseeko.c (ASSERT): Likewise.
47255         * tests/test-fstrcmp.c (ASSERT): Likewise.
47256         * tests/test-ftell.c (ASSERT): Likewise.
47257         * tests/test-ftello.c (ASSERT): Likewise.
47258         * tests/test-func.c (ASSERT): Likewise.
47259         * tests/test-fwritable.c (ASSERT): Likewise.
47260         * tests/test-fwriting.c (ASSERT): Likewise.
47261         * tests/test-getdelim.c (ASSERT): Likewise.
47262         * tests/test-getline.c (ASSERT): Likewise.
47263         * tests/test-i-ring.c (ASSERT): Likewise.
47264         * tests/test-iconv-utf.c (ASSERT): Likewise.
47265         * tests/test-iconv.c (ASSERT): Likewise.
47266         * tests/test-isfinite.c (ASSERT): Likewise.
47267         * tests/test-isnand.c (ASSERT): Likewise.
47268         * tests/test-isnanf.c (ASSERT): Likewise.
47269         * tests/test-isnanl.h (ASSERT): Likewise.
47270         * tests/test-ldexpl.c (ASSERT): Likewise.
47271         * tests/test-linked_list.c (ASSERT): Likewise.
47272         * tests/test-linkedhash_list.c (ASSERT): Likewise.
47273         * tests/test-localename.c (ASSERT): Likewise.
47274         * tests/test-lseek.c (ASSERT): Likewise.
47275         * tests/test-mbscasecmp.c (ASSERT): Likewise.
47276         * tests/test-mbscasestr1.c (ASSERT): Likewise.
47277         * tests/test-mbscasestr2.c (ASSERT): Likewise.
47278         * tests/test-mbscasestr3.c (ASSERT): Likewise.
47279         * tests/test-mbscasestr4.c (ASSERT): Likewise.
47280         * tests/test-mbschr.c (ASSERT): Likewise.
47281         * tests/test-mbscspn.c (ASSERT): Likewise.
47282         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
47283         * tests/test-mbspbrk.c (ASSERT): Likewise.
47284         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
47285         * tests/test-mbsrchr.c (ASSERT): Likewise.
47286         * tests/test-mbsspn.c (ASSERT): Likewise.
47287         * tests/test-mbsstr1.c (ASSERT): Likewise.
47288         * tests/test-mbsstr2.c (ASSERT): Likewise.
47289         * tests/test-mbsstr3.c (ASSERT): Likewise.
47290         * tests/test-memchr2.c (ASSERT): Likewise.
47291         * tests/test-memmem.c (ASSERT): Likewise.
47292         * tests/test-open.c (ASSERT): Likewise.
47293         * tests/test-printf-frexp.c (ASSERT): Likewise.
47294         * tests/test-printf-frexpl.c (ASSERT): Likewise.
47295         * tests/test-printf-posix.c (ASSERT): Likewise.
47296         * tests/test-quotearg.c (ASSERT): Likewise.
47297         * tests/test-rbtree_list.c (ASSERT): Likewise.
47298         * tests/test-rbtree_oset.c (ASSERT): Likewise.
47299         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
47300         * tests/test-round1.c (ASSERT): Likewise.
47301         * tests/test-roundf1.c (ASSERT): Likewise.
47302         * tests/test-roundl.c (ASSERT): Likewise.
47303         * tests/test-signbit.c (ASSERT): Likewise.
47304         * tests/test-sleep.c (ASSERT): Likewise.
47305         * tests/test-snprintf-posix.c (ASSERT): Likewise.
47306         * tests/test-snprintf.c (ASSERT): Likewise.
47307         * tests/test-sprintf-posix.c (ASSERT): Likewise.
47308         * tests/test-stat-time.c (ASSERT): Likewise.
47309         * tests/test-strcasestr.c (ASSERT): Likewise.
47310         * tests/test-strerror.c (ASSERT): Likewise.
47311         * tests/test-striconv.c (ASSERT): Likewise.
47312         * tests/test-striconveh.c (ASSERT): Likewise.
47313         * tests/test-striconveha.c (ASSERT): Likewise.
47314         * tests/test-strsignal.c (ASSERT): Likewise.
47315         * tests/test-strstr.c (ASSERT): Likewise.
47316         * tests/test-strtod.c (ASSERT): Likewise.
47317         * tests/test-trunc1.c (ASSERT): Likewise.
47318         * tests/test-trunc2.c (ASSERT): Likewise.
47319         * tests/test-truncf1.c (ASSERT): Likewise.
47320         * tests/test-truncf2.c (ASSERT): Likewise.
47321         * tests/test-truncl.c (ASSERT): Likewise.
47322         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
47323         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
47324         * tests/test-vasnprintf.c (ASSERT): Likewise.
47325         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
47326         * tests/test-vasprintf.c (ASSERT): Likewise.
47327         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
47328         * tests/test-vprintf-posix.c (ASSERT): Likewise.
47329         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
47330         * tests/test-vsnprintf.c (ASSERT): Likewise.
47331         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
47332         * tests/test-wcwidth.c (ASSERT): Likewise.
47333         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
47334         * tests/test-xprintf-posix.c (ASSERT): Likewise.
47335         * tests/test-xvasprintf.c (ASSERT): Likewise.
47336         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
47337         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
47338         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
47339         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
47340         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
47341         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
47342         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
47343         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
47344         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
47345         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
47346         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
47347         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
47348         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
47349         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
47350         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
47351         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
47352         * tests/unictype/test-block_list.c (ASSERT): Likewise.
47353         * tests/unictype/test-block_of.c (ASSERT): Likewise.
47354         * tests/unictype/test-block_test.c (ASSERT): Likewise.
47355         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
47356         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
47357         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
47358         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
47359         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
47360         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
47361         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
47362         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
47363         * tests/unictype/test-combining.c (ASSERT): Likewise.
47364         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
47365         * tests/unictype/test-digit.c (ASSERT): Likewise.
47366         * tests/unictype/test-mirror.c (ASSERT): Likewise.
47367         * tests/unictype/test-numeric.c (ASSERT): Likewise.
47368         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
47369         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
47370         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
47371         * tests/unictype/test-scripts.c (ASSERT): Likewise.
47372         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
47373         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
47374         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
47375         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
47376         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
47377         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
47378         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
47379         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
47380         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
47381         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
47382         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
47383         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
47384         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
47385         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
47386         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
47387         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
47388         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
47389         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
47390         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
47391         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
47392         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
47393         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
47394         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
47395         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
47396         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
47397         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
47398         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
47399         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
47400         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
47401         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
47402         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
47403         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
47404         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
47405         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
47406         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
47407         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
47408         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
47409         Reported by Eric Blake.
47410
47411 2008-04-11  Bruno Haible  <bruno@clisp.org>
47412
47413         * lib/wchar.in.h: Tweak comment.
47414
47415 2008-04-11  Bruno Haible  <bruno@clisp.org>
47416
47417         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
47418         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
47419         gl_COMMON.
47420         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
47421
47422 2008-04-11  Bruno Haible  <bruno@clisp.org>
47423
47424         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
47425
47426 2008-04-11  Simon Josefsson  <simon@josefsson.org>
47427
47428         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
47429         of attempting to use non-existing /dev/*random.  Based on patch
47430         from Adam Strzelecki <ono@java.pl> in
47431         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
47432
47433 2008-04-08  Bruno Haible  <bruno@clisp.org>
47434
47435         Add tentative support for emx+gcc.
47436         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
47437         * lib/fpurge.c (fpurge): Likewise.
47438         * lib/freadable.c (freadable): Likewise.
47439         * lib/freadahead.c (freadahead): Likewise.
47440         * lib/freading.c (freading): Likewise.
47441         * lib/freadptr.c (freadptr): Likewise.
47442         * lib/freadseek.c (freadptrinc): Likewise.
47443         * lib/fseeko.c (rpl_fseeko): Likewise.
47444         * lib/fseterr.c (fseterr): Likewise.
47445         * lib/fwritable.c (fwritable): Likewise.
47446         * lib/fwriting.c (fwriting): Likewise.
47447         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
47448
47449 2008-04-09  Eric Blake  <ebb9@byu.net>
47450
47451         Avoid some autoconf warnings.
47452         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
47453         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
47454         * m4/afs.m4 (gl_AFS): Likewise.
47455         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
47456         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
47457         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47458         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
47459         (gl_INTEGER_TYPE_SUFFIX): Likewise.
47460         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
47461         (AC_CHECK_DECLS_ONCE): Likewise.
47462         Rename file...
47463         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
47464         gnulib-tool requires autoconf 2.59 or better.
47465         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
47466
47467 2008-04-08  Eric Blake  <ebb9@byu.net>
47468
47469         Use 'git describe --match' if present (added in git 1.5.5).
47470         * build-aux/git-version-gen: Limit result to tags that match 'v*'
47471         if possible.
47472
47473 2008-04-08  Bruno Haible  <bruno@clisp.org>
47474
47475         Add tentative support for OpenServer.
47476         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
47477         _ptr, _cnt.
47478         * lib/fpurge.c (fpurge): Likewise.
47479         * lib/freadable.c (freadable): Likewise.
47480         * lib/freadahead.c (freadahead): Likewise.
47481         * lib/freading.c (freading): Likewise.
47482         * lib/freadptr.c (freadptr): Likewise.
47483         * lib/freadseek.c (freadptrinc): Likewise.
47484         * lib/fseeko.c (rpl_fseeko): Likewise.
47485         * lib/fseterr.c (fseterr): Likewise.
47486         * lib/fwritable.c (fwritable): Likewise.
47487         * lib/fwriting.c (fwriting): Likewise.
47488         Reported by Roger Cornelius <rac@tenzing.org> and
47489         Brian K. White <brian@aljex.com>.
47490
47491 2008-04-06  Jim Meyering  <meyering@redhat.com>
47492
47493         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
47494
47495 2008-04-06  Bruno Haible  <bruno@clisp.org>
47496
47497         Avoid possible error with non-ASCII bytes in UTF-8 locales.
47498         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
47499         * tests/test-printf-posix.sh: Likewise.
47500         * tests/test-vfprintf-posix.sh: Likewise.
47501         * tests/test-vprintf-posix.sh: Likewise.
47502         * tests/test-xprintf-posix.sh: Likewise.
47503
47504 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47505
47506         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
47507         hide error from 'ls', needed on OS/2.
47508         Report by Elbert Pol <elbert.pol@gmail.com>.
47509
47510 2008-04-04  Eric Blake  <ebb9@byu.net>
47511
47512         Make test-fseeko.c failures meaningful.
47513         * tests/test-fseeko.c: Print line number on failure.
47514         * tests/test-fseek.c: Likewise.
47515         Reported by Nelson H. F. Beebe.
47516
47517         Improve strtod bug detection check.
47518         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
47519         required for Solaris 10.
47520         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
47521
47522 2008-04-04  Bruno Haible  <bruno@clisp.org>
47523
47524         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
47525         by m4/setenv.m4.
47526
47527 2008-04-03  Eric Blake  <ebb9@byu.net>
47528
47529         Ensure sane .version contents.
47530         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
47531         version string.
47532         * build-aux/git-version-gen: Improve documentation.
47533
47534         Make GNU make output nicer.
47535         * top/GNUmakefile [!_have-Makefile]: Add dependency on
47536         MAKECMDGOALS to enforce message for all command line targets.  Set
47537         srcdir for use in maint.mk.
47538
47539         Another maintainer tweak.
47540         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
47541         a target that regenerates version.
47542
47543 2008-04-03  Jim Meyering  <meyering@redhat.com>
47544
47545         vc-list-files: don't cause coreutils "make po-check" failure
47546         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
47547
47548 2008-04-03  Eric Blake  <ebb9@byu.net>
47549
47550         Allow VPATH usage of vc-list-files.
47551         * build-aux/vc-list-files (scriptversion): Add timestamp.
47552         (options): Add --help, --version, -C.
47553         (CVS): Support installed cvsu.
47554
47555 2008-04-02  Bruno Haible  <bruno@clisp.org>
47556
47557         Avoid some "statement with no effect" warnings from gcc.
47558         * tests/test-wctype.c (main): Explicitly ignore unused values.
47559         Reported by Jim Meyering.
47560
47561 2008-04-02  Jim Meyering  <meyering@redhat.com>
47562
47563         Avoid some warnings from "gcc -Wshadow".
47564         * tests/test-frexp.c (exp): Define to a different identifier.
47565         * tests/test-frexpl.c (exp): Likewise.
47566
47567 2008-04-03  Jim Meyering  <meyering@redhat.com>
47568
47569         bootstrap: remove dangling *.[ch] symlinks from lib
47570         * build-aux/bootstrap [dangling symlink removal]: Move find's
47571         -depth option to precede all others, to avoid a warning.
47572         Remove *.[ch] files too, and from "$source_base" (usually lib/).
47573
47574 2008-04-02  Bruno Haible  <bruno@clisp.org>
47575
47576         Avoid some warnings from "gcc -Wshadow".
47577         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
47578         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
47579         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
47580         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
47581         Reported by Jim Meyering.
47582
47583 2008-04-01  Bruno Haible  <bruno@clisp.org>
47584
47585         Fix test to work on IRIX 6.5 with cc.
47586         * tests/test-math.c (numeric_equal): New function.
47587         (main): Use it.
47588
47589 2008-04-01  Bruno Haible  <bruno@clisp.org>
47590
47591         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
47592
47593 2008-04-01  Bruno Haible  <bruno@clisp.org>
47594
47595         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
47596         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47597         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
47598         (Depends-on): Remove math.
47599
47600         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
47601         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47602         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
47603         (Depends-on): Remove math.
47604
47605         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
47606         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47607         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
47608         (Depends-on): Remove math.
47609         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
47610         (Depends-on): Remove math.
47611
47612         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
47613         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
47614         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
47615         (Depends-on): Remove math.
47616         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
47617         (Depends-on): Remove math.
47618
47619         * tests/test-round1.c: Include nan.h.
47620         (main): Use NaNd instead of NAN.
47621         * modules/round-tests (Files): Add tests/nan.h.
47622
47623         * tests/test-trunc1.c: Include nan.h.
47624         (main): Use NaNd instead of NAN.
47625         * modules/trunc-tests (Files): Add tests/nan.h.
47626
47627         * tests/test-roundf1.c: Include nan.h.
47628         (main): Use NaNf instead of NAN.
47629         * modules/roundf-tests (Files): Add tests/nan.h.
47630
47631         * tests/test-truncf1.c: Include nan.h.
47632         (main): Use NaNf instead of NAN.
47633         * modules/truncf-tests (Files): Add tests/nan.h.
47634
47635         * tests/test-ceilf1.c: Include nan.h.
47636         (main): Use NaNf instead of NAN.
47637         * modules/ceilf-tests (Files): Add tests/nan.h.
47638
47639         * tests/test-floorf1.c: Include nan.h.
47640         (main): Use NaNf instead of NAN.
47641         * modules/floorf-tests (Files): Add tests/nan.h.
47642
47643         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
47644         (main): Use NaNf instead of NAN.
47645         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
47646
47647         * tests/test-isnand.c: Include nan.h instead of <math.h>.
47648         (main): Use NaNd instead of NAN.
47649         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
47650
47651         * tests/test-frexp.c: Include nan.h.
47652         (main): Use NaNd instead of NAN.
47653         * modules/frexp-tests (Files): Add tests/nan.h.
47654
47655         * lib/isnan.c: Don't include <math.h>.
47656         (FUNC): Don't use NAN macro.
47657         * modules/isnand-nolibm (Depends-on): Remove math.
47658         * modules/isnanf-nolibm (Depends-on): Remove math.
47659         * modules/isnanl (Depends-on): Remove math.
47660         * modules/isnanl-nolibm (Depends-on): Remove math.
47661
47662         * tests/nan.h: New file.
47663
47664 2008-04-01  Eric Blake  <ebb9@byu.net>
47665
47666         Fix typos.
47667         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
47668         values to be the right type.
47669
47670         For now, cater to gnulib strtod inaccuracies.
47671         * tests/test-strtod.c (main): Allow 1-ulp error on expected
47672         fractional results.  While not as nice from a QoI perspective, it
47673         is a quicker patch than correctly implementing decimal to binary
47674         rounding.
47675
47676 2008-03-31  Eric Blake  <ebb9@byu.net>
47677
47678         Guarantee a definition of NAN.
47679         * lib/math.in.h (NAN): Define if missing.
47680         * tests/test-math.c (main): Test it.
47681         * doc/posix-headers/math.texi (math.h): Document this.
47682         * lib/isnan.c (rpl_isnand): Use it.
47683         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
47684         * tests/test-floorf1.c (NaN): Likewise.
47685         * tests/test-frexp.c (NaN): Likewise.
47686         * tests/test-isnand.c (NaN): Likewise.
47687         * tests/test-isnanf.c (NaN): Likewise.
47688         * tests/test-round1.c (NaN): Likewise.
47689         * tests/test-roundf1.c (NaN): Likewise.
47690         * tests/test-snprintf-posix.h (NaN): Likewise.
47691         * tests/test-sprintf-posix.h (NaN): Likewise.
47692         * tests/test-trunc1.c (NaN): Likewise.
47693         * tests/test-truncf1.c (NaN): Likewise.
47694         * tests/test-vasnprintf-posix.c (NaN): Likewise.
47695         * tests/test-vasprintf-posix.c (NaN): Likewise.
47696         * modules/isnand-nolibm (Depends-on): Add math.
47697         * modules/isnanf-nolibm (Depends-on): Likewise.
47698         * modules/isnanl (Depends-on): Likewise.
47699         * modules/isnanl-nolibm (Depends-on): Likewise.
47700         * modules/snprintf-posix-tests (Depends-on): Likewise.
47701         * modules/sprintf-posix-tests (Depends-on): Likewise.
47702         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
47703         * modules/vsprintf-posix-tests (Depends-on): Likewise.
47704         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
47705         * modules/vasprintf-posix-tests (Depends-on): Likewise.
47706
47707 2008-03-31  Bruno Haible  <bruno@clisp.org>
47708
47709         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
47710         * doc/posix-functions/strtod.texi: Likewise.
47711
47712 2008-03-31  Bruno Haible  <bruno@clisp.org>
47713
47714         * tests/test-strtod.c (main): Don't use C99 syntax.
47715
47716 2008-03-31  Bruno Haible  <bruno@clisp.org>
47717
47718         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
47719         Reported by Eric Blake.
47720
47721 2008-03-31  Jim Meyering  <meyering@redhat.com>
47722
47723         Don't compare actual signbit return values.
47724         * tests/test-strtod.c (main): Rather, compare only their
47725         zero/non-zero nature.
47726
47727 2008-03-31  Eric Blake  <ebb9@byu.net>
47728
47729         More strtod documentation.
47730         * doc/posix-functions/strtod.texi (strtod): Interpret more test
47731         failures as distinct bugs.
47732
47733 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
47734
47735         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
47736         Problem reported by Erik Benada in
47737         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
47738
47739 2008-03-30  Bruno Haible  <bruno@clisp.org>
47740
47741         * tests/test-strtod.c: Add comments about which assertion fails on which
47742         platform.
47743         * doc/posix-functions/strtod.texi: Add info about many more platforms.
47744
47745 2008-03-30  Eric Blake  <ebb9@byu.net>
47746
47747         Test signbit behavior on zeros.
47748         * tests/test-signbit.c (test_signbitf): Add tests for zero.
47749         (test_signbitd, test_signbitl): Likewise.
47750
47751         More strtod touchups.
47752         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
47753         sign of negative underflow, for now.  Use .5, not .1.
47754         * doc/posix-functions/strtod.texi (strtod): Mention these
47755         limitations.
47756         Reported by Jim Meyering.
47757
47758 2008-03-30  Bruno Haible  <bruno@clisp.org>
47759
47760         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
47761         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
47762
47763 2008-03-30  Bruno Haible  <bruno@clisp.org>
47764
47765         Avoid failure when attempting to return empty iconv results on some
47766         platforms.
47767         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
47768         allocation, don't report ENOMEM when the resulting string is empty.
47769
47770 2008-03-30  Bruno Haible  <bruno@clisp.org>
47771
47772         Fix buffer overrun.
47773         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
47774         Don't consider the width for tmp_length. Check count against tmp_length
47775         before doing the padding. Ensure enough allocation during padding.
47776
47777 2008-03-30  Eric Blake  <ebb9@byu.net>
47778
47779         strtod touchups.
47780         * lib/strtod.c (strtod): Avoid compiler warnings.
47781         Reported by Jim Meyering.
47782
47783 2008-03-30  Bruno Haible  <bruno@clisp.org>
47784
47785         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
47786         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
47787         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
47788         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
47789         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
47790         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
47791         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
47792         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
47793
47794         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
47795         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
47796         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
47797         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
47798         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
47799         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
47800         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
47801         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
47802
47803         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
47804         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
47805         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
47806         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
47807         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
47808         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
47809         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
47810         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
47811
47812         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
47813         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
47814
47815         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
47816         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
47817
47818         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
47819         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
47820
47821         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
47822         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
47823         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
47824
47825         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
47826         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
47827         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
47828
47829         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
47830         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
47831         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
47832
47833         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
47834         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
47835         * modules/vasprintf (Depends-on): Add EOVERFLOW.
47836
47837         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
47838         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
47839         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
47840         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
47841         (Depends-on): Add EOVERFLOW.
47842         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
47843         (Depends-on): Add EOVERFLOW.
47844         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47845         (Depends-on): Add EOVERFLOW.
47846         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47847         (Depends-on): Add EOVERFLOW.
47848         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47849         (Depends-on): Add EOVERFLOW.
47850         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47851         (Depends-on): Add EOVERFLOW.
47852         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47853         (Depends-on): Add EOVERFLOW.
47854         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47855         (Depends-on): Add EOVERFLOW.
47856
47857         * lib/sprintf.c (EOVERFLOW): Remove fallback.
47858         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
47859         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
47860
47861         * lib/snprintf.c (EOVERFLOW): Remove fallback.
47862         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
47863         * modules/snprintf (Depends-on): Add EOVERFLOW.
47864
47865         * lib/poll.c (EOVERFLOW): Remove fallback.
47866         * modules/poll (Depends-on): Add EOVERFLOW.
47867
47868         * lib/getugroups.c (EOVERFLOW): Remove fallback.
47869         * modules/getugroups (Depends-on): Add EOVERFLOW.
47870
47871         * lib/getdelim.c (EOVERFLOW): Remove fallback.
47872         * modules/getdelim (Depends-on): Add EOVERFLOW.
47873
47874         * lib/ftell.c (EOVERFLOW): Remove fallback.
47875         * modules/ftell (Depends-on): Add EOVERFLOW.
47876
47877         * lib/fprintf.c (EOVERFLOW): Remove fallback.
47878         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
47879         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
47880
47881         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
47882
47883         * modules/EOVERFLOW-tests: New file.
47884         * tests/test-EOVERFLOW.c: New file.
47885
47886         * modules/EOVERFLOW: New file.
47887         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
47888
47889 2008-03-30  Bruno Haible  <bruno@clisp.org>
47890
47891         Fix bug introduced on 2007-06-10.
47892         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
47893         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
47894
47895 2008-03-30  Bruno Haible  <bruno@clisp.org>
47896
47897         Improve freadseek's efficiency after ungetc.
47898         * lib/freadseek.c: Include freadahead.h.
47899         (freadptrinc): New function, extracted from freadseek.
47900         (freadseek): Use it in a loop. Use freadahead to determine the number
47901         of loop iterations.
47902         * modules/freadseek (Depends-on): Add freadahead.
47903         (configure.ac): Require AC_C_INLINE.
47904
47905 2008-03-30  Bruno Haible  <bruno@clisp.org>
47906
47907         * lib/freadseek.c (freadseek): Don't ignore the return value of
47908         freadptr.
47909
47910 2008-03-29  Eric Blake  <ebb9@byu.net>
47911
47912         Add hex float support.
47913         * modules/strtod (Depends-on): Add c-ctype.
47914         (Link): Mention POW_LIB.
47915         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
47916         whitespace between 'e' and exponent.
47917         * tests/test-strtod.c (main): Enable hex float tests.
47918         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
47919         now provides.
47920
47921         Document various strtod bugs, with some fixes.
47922         * doc/posix-functions/strtod.texi (strtod): Document bugs with
47923         "-0x", "inf", "nan", and hex constants.
47924         * doc/posix-functions/atof.texi (atof): Likewise.
47925         * modules/stdlib (Makefile.am): Support strtod.
47926         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
47927         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
47928         detect additional strtod bugs.
47929         * lib/stdlib.in.h (rpl_strtod): Add declarations.
47930         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
47931         bool where appropriate.  Parse 'inf' and 'nan'.
47932         * tests/test-strtod.c: New file.
47933         * modules/strtod (Depends-on): Add stdbool, stdlib.
47934         (configure.ac): Turn on module indicator.
47935         * modules/strtod-tests: New module.
47936
47937 2008-03-29  Eric Blake  <ebb9@byu.net>
47938
47939         Fix ftell on mingw.
47940         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
47941         * modules/ftell-tests (Depends-on): Add binary-io.
47942         * modules/ftello-tests (Depends-on): Likewise.
47943         * tests/test-ftell.c (main): Enhance test to cover behavior after
47944         ungetc.  Enforce binary mode.
47945         * tests/test-ftello.c (main): Likewise.
47946
47947         Pass test-freadseek on cygwin.
47948         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
47949         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
47950         ungetc buffer.
47951
47952         * tests/test-fflush2.c (main): Fix typo.
47953
47954 2008-03-29  Bruno Haible  <bruno@clisp.org>
47955
47956         * tests/test-fflush2.c (main): Temporarily disable the contents of
47957         this test.
47958         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
47959         Reported by Eric Blake.
47960
47961 2008-03-28  Simon Josefsson  <simon@josefsson.org>
47962
47963         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
47964         (GC_SHA224_DIGEST_SIZE): Add.
47965
47966         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
47967         (gc_hash_digest_length): Likewise.
47968         (gc_hash_buffer): Likewise.
47969
47970 2008-03-25  Bruno Haible  <bruno@clisp.org>
47971
47972         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
47973         detail which gettext release to use.
47974         Reported by Simon Josefsson.
47975
47976 2008-03-26  Jim Meyering  <meyering@redhat.com>
47977
47978         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
47979         * modules/gnumakefile (clean-GNUmakefile): Also, use
47980         test ... && ... || : syntax rather than if-then ... fi.
47981
47982         gnumakefile: Don't double-quote-expand $(VPATH) value.
47983         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
47984
47985 2008-03-24  Eric Blake  <ebb9@byu.net>
47986
47987         Alter GNUmakefile to install into top directory.
47988         * modules/maintainer-makefile: Split, and add dependency...
47989         * modules/gnumakefile: to this new module.
47990         * build-aux/GNUmakefile: Move...
47991         * top/GNUmakefile: ...here.
47992         * build-aux/maint.mk: Move...
47993         * top/maint.mk: ...here.
47994         * MODULES.html.sh (Support for maintaining...): Document new
47995         module.
47996
47997 2008-03-23  Bruno Haible  <bruno@clisp.org>
47998
47999         * gnulib-tool: New options --vc-files, --no-vc-files.
48000         (func_usage): Document them.
48001         (vc_files): New variable.
48002         (func_import): Consider vc_files.
48003         (func_create_testdir): Set vc_files to empty.
48004         Suggested by Jim Meyering and Karl Berry.
48005
48006 2008-03-23  Bruno Haible  <bruno@clisp.org>
48007
48008         Fix regex compilation error on HP-UX 11.
48009         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
48010         * modules/regex (Files): Add m4/mbstate_t.m4.
48011         Reported by Ton Voon <ton.voon@altinity.com>.
48012
48013 2008-03-23  Bruno Haible  <bruno@clisp.org>
48014
48015         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
48016
48017 2008-03-23  Eric Blake  <ebb9@byu.net>
48018             Bruno Haible  <bruno@clisp.org>
48019
48020         Install files from top/ in the destination directory.
48021         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
48022         augmentation also for the files from top/.
48023         (func_import, func_create_testdir): Rewrite file names:
48024         top/filename -> filename.
48025
48026 2008-03-23  Bruno Haible  <bruno@clisp.org>
48027
48028         Tweak "gnulib --version" output.
48029         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
48030
48031 2008-03-23  Bruno Haible  <bruno@clisp.org>
48032
48033         Tweak "gnulib --version" output.
48034         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
48035         rather than contents of ChangeLog, when possible.
48036
48037 2008-03-21  Eric Blake  <ebb9@byu.net>
48038
48039         More --version tweaks.
48040         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
48041         date of last ChangeLog entry.
48042
48043 2008-03-21  Jim Meyering  <meyering@redhat.com>
48044
48045         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
48046
48047 2008-03-20  Eric Blake  <ebb9@byu.net>
48048
48049         VPATH fix.
48050         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
48051
48052 2008-03-20  Simon Josefsson  <simon@josefsson.org>
48053
48054         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
48055         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
48056
48057 2008-03-20  Eric Blake  <ebb9@byu.net>
48058
48059         Sync GNUmakefile with coreutils.
48060         * build-aux/GNUmakefile (have-Makefile): Rename...
48061         (_have-Makefile): ...to this, for namespace consideration.
48062         (GNUmakefile.cfg): Include, if present.
48063         (_autoreconf): Define a default.
48064         (_is-dist-target): New rule for rebuilds to pick up intra-release
48065         version.
48066         (maint-cfg.mk): Rename...
48067         (cfg.mk): ...to this.
48068
48069 2008-03-18  Jim Meyering  <meyering@redhat.com>
48070
48071         New script and module: mktempd
48072         * MODULES.html.sh (maint+release support): Add mktempd.
48073         * build-aux/mktempd: New file.
48074         * modules/mktempd: New file.
48075
48076 2008-03-15  Jim Meyering  <meyering@redhat.com>
48077
48078         Undo last change.
48079         * lib/sha1.c, lib/md5.c: 63 != ~63.
48080         Reported by Andreas Schwab.
48081
48082         sha1.c, md5.c: Hoist a redundant expression.
48083         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
48084         "ctx->buflen" only once, before calling *_process_block.
48085         * lib/md5.c (md5_process_bytes): Likewise.
48086
48087 2008-03-14  Eric Blake  <ebb9@byu.net>
48088
48089         Bump copyright year in files generated by gnulib-tool.
48090         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
48091         gnulib-tool, rather than hard-coding it.
48092
48093         Fix 'gnulib-tool --version' output to work with git.
48094         * gnulib-tool (func_gnulib_dir): New function, extracted from...
48095         (startup): ...here.
48096         (func_version): Use it to invoke git-version-gen, rather than
48097         relying on CVS keyword expansion.  Modernize wording.
48098         (cvsdatestamp, last_checkin_date, version): Kill unused
48099         variables.
48100
48101 2008-03-12  Jim Meyering  <meyering@redhat.com>
48102
48103         Recognize optional cast of the argument to free.
48104         * build-aux/useless-if-before-free: Update regexps.
48105
48106         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
48107
48108 2008-03-11  Bruno Haible  <bruno@clisp.org>
48109
48110         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
48111         by a single package.
48112         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
48113         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
48114         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
48115         Reported by Sam Steingold <sds@gnu.org>.
48116
48117 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
48118
48119         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
48120         repositories.
48121
48122 2008-03-11  Bruno Haible  <bruno@clisp.org>
48123
48124         Avoid conflicts between local macro definitions.
48125         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
48126         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
48127
48128 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
48129             Bruno Haible  <bruno@clisp.org>
48130
48131         Make va_copy work with some version of xlc on AIX 5.1.
48132         * lib/stdarg.in.h: New file.
48133         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
48134         On AIX, use a <stdarg.h> file substitute.
48135         * modules/stdarg (Files): Add lib/stdarg.in.h.
48136         (Depends-on): Add include_next.
48137         (Makefile.am): Build a stdarg.h substitute if requested.
48138         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
48139
48140 2008-03-10  Bruno Haible  <bruno@clisp.org>
48141
48142         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
48143         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
48144         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
48145
48146 2008-03-10  Bruno Haible  <bruno@clisp.org>
48147
48148         * modules/stdlib (Depends-on): Add include_next, remove
48149         absolute-header.
48150
48151 2008-03-09  Bruno Haible  <bruno@clisp.org>
48152
48153         * lib/freadahead.h (freadahead): Document more precisely.
48154         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
48155         the sum of both buffer sizes.
48156         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
48157         * NEWS: Document the change.
48158
48159 2008-03-09  Bruno Haible  <bruno@clisp.org>
48160
48161         Extend freadptr to return also the buffer size.
48162         * lib/freadptr.h (freadptr): Add sizep argument.
48163         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
48164         (freadptr): Add sizep argument. Determine buffer size like freadahead
48165         does.
48166         * tests/test-freadptr.c: Don't include freadahead.h.
48167         (main): Adapt for new calling convention of freadptr.
48168         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
48169         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
48170         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
48171         tests/test-freadptr2.sh.
48172         (Depends): Remove freadahead.
48173         (TESTS): Add test-freadptr2.sh.
48174         (check_PROGRAMS): Add test-freadptr2.
48175
48176 2008-03-09  Bruno Haible  <bruno@clisp.org>
48177
48178         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
48179         Report and solution by Simon Josefsson.
48180
48181 2008-03-06  Bruno Haible  <bruno@clisp.org>
48182
48183         Make fflush after ungetc work on BSD platforms.
48184         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
48185         * tests/test-fflush2.c: New file.
48186         * tests/test-fflush2.sh: New file.
48187         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
48188         tests/test-fflush2.c.
48189         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
48190         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
48191
48192 2008-03-06  Eric Blake  <ebb9@byu.net>
48193
48194         Likewise for ftello.
48195         * modules/ftello (Dependencies): Add extensions.
48196         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
48197
48198 2008-03-06  Bruno Haible  <bruno@clisp.org>
48199
48200         * modules/fseeko (Dependencies): Add extensions.
48201         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
48202         Needed on glibc systems.
48203
48204 2008-03-06  Bruno Haible  <bruno@clisp.org>
48205
48206         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
48207         email address.
48208         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48209
48210 2008-03-06  Bruno Haible  <bruno@clisp.org>
48211
48212         * users.txt: Add libgnupdf.
48213
48214 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
48215
48216         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
48217         (Header File Substitutes, Function Substitutes,
48218         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
48219         (Build robot for gnulib): Fix typo.
48220
48221 2008-03-06  Bruno Haible  <bruno@clisp.org>
48222
48223         * doc/gnulib-tool.texi (VCS Issues): Small updates.
48224         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
48225
48226 2008-03-06  Bruno Haible  <bruno@clisp.org>
48227
48228         * doc/func.texi: New file, extracted from doc/gnulib.texi.
48229         * doc/gnulib.texi: Include it.
48230
48231 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48232
48233         * modules/func (License): Change license to unlimited; there was
48234         no LGPL parts in the module anyway.
48235
48236 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48237
48238         * modules/__func__: Renamed to modules/func.
48239         * modules/__func__-tests: Renamed to modules/func-tests.
48240         * tests/test-__func__.c: Renamed to tests/test-func.c.
48241         * m4/__func__.m4: Renamed to m4/func.m4.
48242         * doc/gnulib.texi (__func__): Section renamed to func.
48243         Suggested by Eric Blake <ebb9@byu.net>.
48244
48245 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48246
48247         * doc/gnulib.texi (__func__): Use C99 terminology when talking
48248         about __func__.  Make example self-contained.  Suggested by Eric
48249         Blake <ebb9@byu.net>.
48250
48251         * tests/test-__func__.c (main): Avoid extraneous () around __func.
48252         Suggested by Eric Blake <ebb9@byu.net>.
48253
48254 2008-03-06  Simon Josefsson  <simon@josefsson.org>
48255
48256         * modules/__func__: New file.
48257         * modules/__func__-tests: New file.
48258         * tests/test-__func__.c: New file.
48259         * m4/__func__.m4: New file.
48260         * doc/gnulib.texi (__func__): Document __func__ module.
48261
48262 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48263
48264         * modules/byteswap (License): Re-license as LGPLv2+.
48265
48266 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48267
48268         * doc/Makefile: Add pdf target.
48269
48270 2008-03-05  Simon Josefsson  <simon@josefsson.org>
48271
48272         * modules/inline (License): Use 'unlimited', since there are only
48273         *.m4 files in this module.
48274
48275 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
48276             Bruno Haible  <bruno@clisp.org>
48277
48278         Add support for HP C 7.1 on OpenVMS 8.3.
48279         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
48280
48281 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
48282
48283         Update VMS specifics.
48284         * lib/getopt.c [VMS]: Remove include of unixlib.h.
48285
48286 2008-03-02  Jim Meyering  <meyering@redhat.com>
48287
48288         Remove the last dependency on the "free" module.
48289         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
48290         Reported by Bob Proulx.
48291
48292         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
48293
48294         Remove useless "if" tests before free.  Deprecate "free" module.
48295         * doc/posix-functions/free.texi: Mention that this
48296         module is no longer useful.
48297         * modules/free (Notice): Say this module is obsolete.
48298         * modules/readutmp (Depends-on): Remove free.
48299         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
48300         * lib/putenv.c (putenv): Likewise.
48301         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
48302         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
48303         * tests/test-c-strcasestr.c (main): Likewise.
48304         * tests/test-c-strstr.c (main): Likewise.
48305         * tests/test-mbscasestr1.c (main): Likewise.
48306         * tests/test-mbscasestr2.c (main): Likewise.
48307         * tests/test-mbsstr1.c (main): Likewise.
48308         * tests/test-mbsstr2.c (main): Likewise.
48309         * tests/test-memmem.c (main): Likewise.
48310         * tests/test-strcasestr.c (main): Likewise.
48311         * tests/test-striconv.c (main): Likewise.
48312         * tests/test-striconveh.c (main): Likewise.
48313         * tests/test-striconveha.c (main): Likewise.
48314         * tests/test-strstr.c (main): Likewise.
48315
48316         * build-aux/git-version-gen: Adjust a comment and the Usage string.
48317
48318         bootstrap: sync from coreutils again
48319         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
48320
48321 2008-03-01  Jim Meyering  <meyering@redhat.com>
48322
48323         bootstrap: sync from coreutils
48324         * build-aux/bootstrap (update_po_files): Copy a .po file into place
48325         also when the target doesn't exist.
48326
48327 2008-03-01  Eric Blake  <ebb9@byu.net>
48328
48329         Fix bugs in last patch.
48330         * lib/memchr2.c (memchr2): Fix typo.
48331         * tests/test-memchr2.c: Test previous bug, and don't use GNU
48332         extension.
48333         Reported by Bruce Korb.
48334
48335         New module 'memchr2'.
48336         * modules/memchr2: New file.
48337         * modules/memchr2-tests: Likewise.
48338         * lib/memchr2.h: Likewise.
48339         * lib/memchr2.c: Likewise, based on memchr.c.
48340         * tests/test-memchr2.c: New test.
48341         * MODULES.html.sh (String handling): Add memchr2.
48342
48343 2008-02-29  Bruno Haible  <bruno@clisp.org>
48344
48345         * modules/freadseek-tests: New file.
48346         * tests/test-freadseek.sh: New file.
48347         * tests/test-freadseek.c: New file.
48348
48349         New module 'freadseek'.
48350         * modules/freadseek: New file.
48351         * lib/freadseek.h: New file.
48352         * lib/freadseek.c: New file.
48353         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
48354
48355 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
48356
48357         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
48358         wydawca.
48359
48360         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
48361         program_invocation_name and program_invocation_short_name are
48362         present.
48363
48364 2008-02-28  Bruno Haible  <bruno@clisp.org>
48365
48366         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
48367         * tests/test-freadptr.sh: Also test non-seekable stdin.
48368
48369 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
48370
48371         * build-aux/bootstrap (source_base, m4_base)
48372         (doc_base, tests_base): New variables.
48373         (gnulib_tool_options): Do not hardcode base directories, use
48374         the above variables instead.
48375
48376 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
48377
48378         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
48379
48380 2008-02-28  Bruno Haible  <bruno@clisp.org>
48381
48382         * modules/freadptr-tests: New file.
48383         * tests/test-freadptr.sh: New file.
48384         * tests/test-freadptr.c: New file.
48385
48386         New module 'freadptr'.
48387         * modules/freadptr: New file.
48388         * lib/freadptr.h: New file.
48389         * lib/freadptr.c: New file.
48390         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
48391
48392 2008-02-26  Karl Berry  <karl@freefriends.org>
48393
48394         Sync from Libtool:
48395         * libltdl/argz.c (argz_add, argz_count): New functions.
48396         * libltdl/argz.in.h: Declare them.
48397         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
48398
48399 2008-02-22  Bruno Haible  <bruno@clisp.org>
48400
48401         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
48402         is a pointer type.  Needed for HP-UX 10.
48403         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
48404         * doc/posix-functions/gmtime_r.texi: Likewise.
48405         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
48406
48407 2008-02-24  Bruno Haible  <bruno@clisp.org>
48408
48409         * modules/environ-tests: New file.
48410         * tests/test-environ.c: New file.
48411
48412         New module 'environ'.
48413         * modules/environ: New file.
48414         * lib/unistd.in.h (environ): New declaration.
48415         * m4/environ.m4: New file.
48416         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
48417         after use.
48418         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
48419         HAVE_DECL_ENVIRON.
48420         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
48421         HAVE_DECL_ENVIRON.
48422         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
48423         wrong claim that 'environ' is missing on some systems.
48424         * modules/execute (Depends-on): Add environ.
48425         * lib/execute.c (environ): Remove fallback declaration.
48426         * modules/pipe (Depends-on): Add environ.
48427         * lib/pipe.c (environ): Remove fallback declaration.
48428         * modules/setenv (Depends-on): Add environ.
48429         * lib/setenv.c (environ): Remove fallback declaration.
48430         * modules/unsetenv (Depends-on): Add environ.
48431         * lib/unsetenv.c (environ): Remove fallback declaration.
48432         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
48433         m4/environ.m4.
48434         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
48435         (gl_PREREQ_UNSETENV): Likewise.
48436
48437 2008-02-24  Bruno Haible  <bruno@clisp.org>
48438
48439         * doc/posix-functions/environ.texi: Document the MacOS X problem.
48440
48441 2008-02-20  Bob Proulx  <bob@proulx.com>
48442
48443         Enable use of older two part flavor 'git describe'.
48444         * build-aux/git-version-gen: If using the older two part flavor of
48445         git version then recreate the third part now present in the
48446         newer three part flavor of git describe.
48447
48448 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
48449
48450         * lib/fts.c (fts_build): Typo correction to comment.
48451
48452 2008-02-17  Bruno Haible  <bruno@clisp.org>
48453
48454         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
48455         generating no-op conflicts.
48456
48457 2008-02-17  Bruno Haible  <bruno@clisp.org>
48458
48459         Speed up by 10%.
48460         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
48461         result_entries, rather than an index-based loop.
48462
48463 2008-02-17  Bruno Haible  <bruno@clisp.org>
48464
48465         Speed up by 25%.
48466         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
48467         'hashcode_cached'.
48468         (entry_create): New function.
48469         (entry_hashcode): Use the cached hashcode if possible.
48470         (read_changelog_file, try_split_merged_entry): Use entry_create.
48471
48472 2008-02-17  Bruno Haible  <bruno@clisp.org>
48473
48474         Speed up from O(n^2) to O(n) for long ChangeLog files.
48475         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
48476         (read_changelog_file): Change implementation of entries_reversed list
48477         to rbtreehash.
48478         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
48479
48480 2008-02-17  Bruno Haible  <bruno@clisp.org>
48481
48482         New option --split-merged-entry.
48483         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
48484         (find_paragraph_end, try_split_merged_entry): New functions.
48485         (long_options): Add option --split-merged-entry.
48486         (usage): Document option --split-merged-entry.
48487         (main): Implement option --split-merged-entry.
48488         Reported by Eric Blake.
48489
48490 2008-02-17  Bruno Haible  <bruno@clisp.org>
48491
48492         * lib/git-merge-changelog.c: Include c-strstr.h.
48493         (main): Support the "git pull --rebase" situation.
48494         * modules/git-merge-changelog (Depends-on): Add c-strstr.
48495         Reported by Eric Blake.
48496
48497 2008-02-16  Eric Blake  <ebb9@byu.net>
48498
48499         Avoid doubling \ in common case of "c-maybe" quoting style.
48500         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
48501         eliding outer quotes.
48502         * lib/quotearg.h: Document this.
48503         * tests/test-quotearg.c (result_strings, inputs, results_g)
48504         (flag_results, locale_results): Test it by adding a new string to
48505         each test group.
48506         (compare_strings): Test new string.
48507
48508 2008-02-13  Eric Blake  <ebb9@byu.net>
48509
48510         Avoid trigraph quoting in default output.
48511         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
48512         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
48513         unless explicitly requested.
48514         * tests/test-quotearg.c (flag_results, main): Add additional tests.
48515
48516 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
48517
48518         Don't rely on signed integer overflowing to negative value.
48519         * lib/getugroups.c (getugroups): Include <limits.h>.
48520         Instead, compare against INT_MAX, and increment only if the test passes.
48521
48522 2008-02-13  Jim Meyering  <meyering@redhat.com>
48523         and Eric Blake  <ebb9@byu.net>
48524
48525         Avoid shadowing warning and compile errors on Linux.
48526         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
48527         forwarding macros on Linux.
48528         (dcgettext): Define a stub, for Linux.
48529         (results_g, main): Avoid warnings.
48530
48531 2008-02-12  Eric Blake  <ebb9@byu.net>
48532
48533         Silence warning in last patch.
48534         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
48535
48536         Quotearg part 4: add tests, fix c-maybe colon quoting.
48537         * lib/quotearg.h: Improve documentation.
48538         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
48539         escapes when adding outer quotes.  When quoting trigraphs, use
48540         valid C notation.  When quoting NUL, omit extra characters if next
48541         character is not digit.  Alter prototype.
48542         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
48543         callers.
48544         * modules/quotearg-tests: New module.
48545         * tests/test-quotearg.c: New test.
48546
48547 2008-02-07  Eric Blake  <ebb9@byu.net>
48548
48549         Quotearg part 3: add flag to control outer quote elision.
48550         * lib/quotearg.h (c_maybe_quoting_style): New style.
48551         (enum quoting_flags): Better documentation of flags.
48552         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
48553         c-maybe style.
48554         (quotearg_buffer_restyled): Handle new flag to elide outer
48555         quotes.
48556
48557         Quotearg part 2: add flag that can control NUL elision.
48558         * lib/quotearg.h (set_quoting_flags): New prototype.
48559         * lib/quotearg.c (struct quoting_options): Add flag field.
48560         (set_quoting_flags): New function.
48561         (quotearg_buffer_restyled): Add flags parameter.
48562         (quotearg_alloc_mem): Set the flag if length cannot be returned.
48563         (quotearg_n_options): Set the flag, since length cannot be
48564         returned.
48565         (quoting_options_from_style): Default flags correctly.
48566
48567         Quotearg part 1: more wrappers, restore quotearg_char state.
48568         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
48569         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
48570         (quotearg_colon_mem): New wrappers.
48571         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
48572         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
48573         functions.
48574         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
48575         (quotearg_colon_mem): New functions.
48576
48577 2008-02-11  Bruno Haible  <bruno@clisp.org>
48578
48579         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
48580         library in the current directory: it does not work with parallel make.
48581         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
48582
48583 2008-02-11  Bruno Haible  <bruno@clisp.org>
48584
48585         * .gitattributes: New file.
48586
48587 2008-02-11  Jim Meyering  <meyering@redhat.com>
48588
48589         useless-if-before-free: Fix reversed exit values.
48590         * build-aux/useless-if-before-free: Use correct values
48591         for EXIT_MATCH and EXIT_NO_MATCH.
48592
48593         * build-aux/useless-if-before-free: Close stdout carefully.
48594
48595 2008-02-10  Bruno Haible  <bruno@clisp.org>
48596
48597         New module 'git-merge-changelog'.
48598         * modules/git-merge-changelog: New file.
48599         * lib/git-merge-changelog.c: New file.
48600
48601 2008-02-10  Jim Meyering  <meyering@redhat.com>
48602
48603         useless-if-before-free: New option: --list (-l).
48604
48605         useless-if-before-free: Don't exit immediately upon open failure.
48606         * build-aux/useless-if-before-free: Exit 2 for errors.
48607         Upon failure to open a file, don't exit immediately.
48608         Rather, just warn and continue with any remaining files.
48609
48610 2008-02-10  Bruno Haible  <bruno@clisp.org>
48611
48612         New abstract list operation 'node_set_value'.
48613         * lib/gl_list.h (gl_list_node_set_value): New function.
48614         (struct gl_list_implementation): New field node_set_value.
48615         * lib/gl_list.c (gl_list_node_set_value): New function.
48616         * lib/gl_array_list.c (gl_array_node_set_value): New function.
48617         (gl_array_list_implementation): Update.
48618         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
48619         (gl_carray_list_implementation): Update.
48620         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
48621         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
48622         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
48623         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
48624         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
48625         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
48626         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
48627         Update.
48628         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
48629         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
48630         (gl_sublist_list_implementation): Update.
48631
48632 2008-02-10  Bruno Haible  <bruno@clisp.org>
48633
48634         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
48635         Needed when ELEMENT is #defined to 'some_type *'.
48636
48637 2008-02-10  Jim Meyering  <meyering@redhat.com>
48638
48639         New script and module: useless-if-before-free
48640         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
48641         * build-aux/useless-if-before-free: New file.
48642         * modules/useless-if-before-free: New file.
48643
48644         * build-aux/gitlog-to-changelog: Use committer date, not author date.
48645
48646         xstrtol_error: Fix typo.
48647         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
48648         s/exit_failure/exit_status/.
48649
48650 2008-02-09  Jim Meyering  <meyering@redhat.com>
48651
48652         New script and module: gitlog-to-changelog
48653         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
48654         * modules/gitlog-to-changelog: New file.
48655         * build-aux/gitlog-to-changelog: New file.
48656
48657 2008-02-08  Jim Meyering  <meyering@redhat.com>
48658
48659         Avoid two "parameter unused" warnings.
48660         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
48661         Mark "st" as used.
48662
48663         Use "git COMMAND", not "git-COMMAND".
48664         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
48665         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
48666         * build-aux/git-version-gen: Use "git status", not "git-status".
48667
48668 2008-02-07  Bruno Haible  <bruno@clisp.org>
48669
48670         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
48671         Avoids a crash on Windows Vista.
48672         Reported by Adam Strzelecki <ono@java.pl> via
48673         Simon Josefsson <simon@josefsson.org>.
48674
48675 2008-02-06  Bruno Haible  <bruno@clisp.org>
48676
48677         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
48678         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
48679         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
48680         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
48681         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48682         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48683         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
48684         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
48685         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48686         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48687         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48688         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48689         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48690         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48691         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48692         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
48693         left-adjust flag.
48694         * tests/test-snprintf-posix.h (test_function): Likewise.
48695         * tests/test-sprintf-posix.h (test_function): Likewise.
48696         * tests/test-vasprintf-posix.c (test_function): Likewise.
48697         * doc/posix-functions/fprintf.texi: Update.
48698         * doc/posix-functions/printf.texi: Update.
48699         * doc/posix-functions/snprintf.texi: Update.
48700         * doc/posix-functions/sprintf.texi: Update.
48701         * doc/posix-functions/vfprintf.texi: Update.
48702         * doc/posix-functions/vprintf.texi: Update.
48703         * doc/posix-functions/vsnprintf.texi: Update.
48704         * doc/posix-functions/vsprintf.texi: Update.
48705         Reported by Peter Fales <psfales@alcatel-lucent.com>.
48706
48707 2008-02-06  Bruno Haible  <bruno@clisp.org>
48708
48709         Fix bug introduced on 2008-01-26.
48710         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
48711
48712 2008-02-06  Bruno Haible  <bruno@clisp.org>
48713
48714         Fix bug introduced on 2007-06-10.
48715         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
48716         !NEED_PRINTF_FLAG_ZERO.
48717
48718 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
48719
48720         getloadavg: use libperfstat on AIX5
48721         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
48722
48723 2008-02-03  Bruno Haible  <bruno@clisp.org>
48724
48725         * lib/diffseq.h: Add comments about required #includes.
48726         Reported by Michael Biggs <gnulib@doubleplum.net>.
48727
48728 2008-02-01  Bruno Haible  <bruno@clisp.org>
48729
48730         * users.txt: Add gnuit.
48731
48732 2008-01-31  Bruno Haible  <bruno@clisp.org>
48733
48734         * lib/md4.c (set_uint32): Mark as inline.
48735         * lib/md5.c (set_uint32): Likewise.
48736         * lib/sha1.c (set_uint32): Likewise.
48737         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
48738         * m4/md5.m4 (gl_MD5): Likewise.
48739         * m4/sha1.m4 (gl_SHA1): Likewise.
48740
48741 2008-01-31  Jim Meyering  <meyering@redhat.com>
48742
48743         Use "sizeof VAR", rather than a literal "4".
48744         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
48745         * lib/md4.c (md4_read_ctx): Likewise.
48746         * lib/sha1.c (sha1_read_ctx): Likewise.
48747
48748 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48749
48750         * tests/test-sha1.c: New file, based on test-md5.c.
48751
48752         * modules/crypto/sha1-tests: New file.
48753
48754 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48755
48756         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
48757
48758 2008-01-31  Jim Meyering  <meyering@redhat.com>
48759
48760         Prefer "sizeof v" over the equivalent "4".
48761         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
48762         * lib/md5.c (set_uint32): Likewise.
48763         * lib/sha1.c (set_uint32): Likewise.
48764
48765 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48766
48767         * lib/sha1.c (set_uint32): Mark function as static.
48768
48769 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48770
48771         md2: clarify comments to say that alignment is not required.
48772         * lib/md2.h: Remove warning about alignment in comment.
48773         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
48774         never been required.
48775
48776 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48777
48778         md4: adapt alignment constraint fix from sha1.
48779         * lib/md4.c (set_uint32): New function, from sha1.c
48780         (md4_read_ctx): Use it.
48781         (md4_finish_ctx): Doc fix.
48782         * lib/md4.h: Doc fix.
48783
48784 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48785
48786         md5: adapt alignment constraint fix from sha1.
48787         * lib/md5.c (set_uint32): New function, from sha1.c
48788         (md5_read_ctx): Use it.
48789         (md5_finish_ctx): Doc fix.
48790         * lib/md5.h: Doc fix.
48791
48792 2008-01-30  Peter Palfrader  <weasel@debian.org>
48793
48794         sha1: remove the result buffer alignment constraint
48795         * lib/sha1.c (set_uint32): New function.
48796         (sha1_read_ctx): Rewrite to remove the result buffer alignment
48797         constraint.
48798         (sha1_finish_ctx): Remove comment warning about alignment constraint.
48799         * lib/sha1.h: Likewise.
48800
48801 2008-01-30  Andreas Schwab  <schwab@suse.de>
48802             Bruno Haible  <bruno@clisp.org>
48803
48804         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
48805         correct definition of LDBL_MIN_EXP.
48806
48807 2008-01-30  Karl Berry  <karl@gnu.org>
48808
48809         * config/srclist-update: try to preserve x bit on updates.
48810         * config/srclistvars.sh: update for karl.
48811
48812 2008-01-29  Jim Meyering  <meyering@redhat.com>
48813
48814         vasnprintf.c: Avoid warning about unused label
48815         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
48816         "overflow" label definition and associated code with the
48817         same cpp condition that guards the sole use of that label.
48818
48819 2008-01-26  Bruno Haible  <bruno@clisp.org>
48820
48821         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
48822         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
48823         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
48824         * lib/isnanl-nolibm.h (isnanl): Likewise.
48825         Reported by Paul Eggert <eggert@cs.ucla.edu>.
48826
48827 2008-01-26  Bruno Haible  <bruno@clisp.org>
48828
48829         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
48830         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
48831
48832 2008-01-26  Bruno Haible  <bruno@clisp.org>
48833
48834         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
48835         GCC >= 4.0 built-in.
48836         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
48837
48838 2008-01-26  Bruno Haible  <bruno@clisp.org>
48839
48840         Rename isnan, applicable to 'double' only, to isnand.
48841         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
48842         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
48843         (configure.ac): Update.
48844         (Include): Replace "isnan.h" with "isnand.h".
48845         * m4/isnand.m4: Renamed from m4/isnan.m4.
48846         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
48847         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
48848         instead of isnan.c.
48849         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
48850         instead of HAVE_ISNAN_IN_LIBC.
48851         (isnand): Renamed from isnan.
48852         * lib/isnand.c: New file.
48853         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
48854         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
48855         (Makefile.am): Update.
48856         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
48857         Include isnand.h instead of isnan.h.
48858         (main): Test isnand instead of isnan.
48859         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
48860         isnan-nolibm.
48861         * modules/frexp (Depends-on): Likewise.
48862         * modules/frexp-tests (Depends-on): Likewise.
48863         * modules/frexp-nolibm (Depends-on): Likewise.
48864         * modules/frexp-nolibm-tests (Depends-on): Likewise.
48865         * modules/isfinite (Depends-on): Likewise.
48866         * modules/round-tests (Depends-on): Likewise.
48867         * modules/signbit (Depends-on): Likewise.
48868         * modules/signbit-tests (Depends-on): Likewise.
48869         * modules/snprintf-posix (Depends-on): Likewise.
48870         * modules/sprintf-posix (Depends-on): Likewise.
48871         * modules/trunc-tests (Depends-on): Likewise.
48872         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48873         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48874         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48875         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48876         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48877         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48878         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48879         * modules/vasnprintf-posix (Depends-on): Likewise.
48880         * modules/vasprintf-posix (Depends-on): Likewise.
48881         * modules/vfprintf-posix (Depends-on): Likewise.
48882         * modules/vsnprintf-posix (Depends-on): Likewise.
48883         * modules/vsprintf-posix (Depends-on): Likewise.
48884         * lib/frexp.c: Include isnand.h instead of isnan.h.
48885         (ISNAN): Set to isnand instead of isnan.
48886         * lib/isfinite.c: Include isnand.h instead of isnan.h.
48887         (gl_isfinited): Use isnand instead of isnan.
48888         * lib/signbitd.c: Include isnand.h instead of isnan.h.
48889         (gl_signbitd): Use isnand instead of isnan.
48890         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
48891         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
48892         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
48893         (main): Use isnand instead of isnan.
48894         * tests/test-round1.c: Include isnand.h.
48895         (main): Use isnand instead of isnan.
48896         * tests/test-round2.c: Include isnand.h instead of isnan.h.
48897         (ISNAN): Set to isnand instead of isnan.
48898         * tests/test-trunc1.c: Include isnand.h.
48899         (main): Use isnand instead of isnan.
48900         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
48901         (equal): Use isnand instead of isnan.
48902         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
48903         isnand-nolibm.
48904         * NEWS: Mention the change.
48905
48906 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
48907             Bruno Haible  <bruno@clisp.org>
48908
48909         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
48910         the GCC builtins for signbits are present and set
48911         REPLACE_SIGNBIT_USING_GCC if so.
48912         * lib/math.in.h (signbit): Define using GCC builtins if
48913         REPLACE_SIGNBIT_USING_GCC is set.
48914         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
48915         REPLACE_SIGNBIT_USING_GCC.
48916         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
48917
48918 2008-01-25  Jim Meyering  <meyering@redhat.com>
48919
48920         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
48921         * lib/poll.c: Include <config.h>, not "config.h".
48922         * tests/test-getaddrinfo.c: Likewise.
48923
48924 2008-01-25  Simon Josefsson  <simon@josefsson.org>
48925
48926         * modules/sockets-tests: New file.
48927
48928 2008-01-24  Simon Josefsson  <simon@josefsson.org>
48929
48930         * modules/sockets: New module, can be used to call WSA_Startup and
48931         WSA_Cleanup when needed.
48932
48933         * lib/sockets.h, lib/sockets.c: New files.
48934
48935         * m4/sockets.m4: New file.
48936
48937         * tests/test-sockets.c: New file.
48938
48939 2008-01-19  Bruno Haible  <bruno@clisp.org>
48940
48941         * doc/posix-headers: Renamed from doc/headers.
48942         * doc/posix-functions: Renamed from doc/functions.
48943         * doc/gnulib.texi: Update.
48944
48945 2008-01-19  Bruno Haible  <bruno@clisp.org>
48946
48947         * doc/glibc-functions/strcasestr.texi: Include contents of
48948         doc/functions/strcasestr.texi, fixing the list of platforms.
48949         * doc/functions/strcasestr.texi: Remove file.
48950
48951 2008-01-19  Bruno Haible  <bruno@clisp.org>
48952
48953         * doc/glibc-functions/memmem.texi: Include contents of
48954         doc/functions/memmem.texi.
48955         * doc/functions/memmem.texi: Remove file.
48956
48957 2008-01-18  Bruno Haible  <bruno@clisp.org>
48958
48959         * doc/glibc-functions/*.texi: New files.
48960         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
48961         to use the new files.
48962
48963 2008-01-17  Bruno Haible  <bruno@clisp.org>
48964
48965         * tests/test-gethostname.c (main): Fix printf statement.
48966
48967 2008-01-17  Simon Josefsson  <simon@josefsson.org>
48968
48969         * modules/gethostname-tests: New file.
48970
48971         * tests/test-gethostname.c: New file.
48972
48973 2008-01-17  Simon Josefsson  <simon@josefsson.org>
48974
48975         * lib/gethostname.c: Include string.h unconditionally, strncpy is
48976         used by the UNAME case.  Reported by Bruno Haible
48977         <bruno@clisp.org>.
48978
48979 2008-01-17  Eric Blake  <ebb9@byu.net>
48980
48981         Convert c-strcasestr to be more efficient.
48982         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
48983         (Depends-on): Add c-strcase, remove malloca, strnlen.
48984         * tests/test-c-strcasestr.c (main): Enhance test.
48985         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
48986
48987 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
48988
48989         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
48990         Use it in creating po/Makevars.
48991
48992 2008-01-15  Simon Josefsson  <simon@josefsson.org>
48993
48994         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
48995         Applications that requires it should initialize libgcrypt
48996         manually.
48997
48998 2008-01-16  Simon Josefsson  <simon@josefsson.org>
48999
49000         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
49001
49002 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
49003
49004         Fix problem with getdate on mingw32 reported by Simon Josefsson
49005         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
49006         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
49007         tzname", when deciding whether to declare tzname.
49008         * lib/strftime.c (tzname): Likewise.
49009
49010 2008-01-15  Bruno Haible  <bruno@clisp.org>
49011
49012         Work around a MacOS X 10.5 bug in frexpl().
49013         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
49014         * doc/functions/frexpl.texi: Document the bug.
49015         Reported by Elias Pipping <pipping@gentoo.org>.
49016
49017 2008-01-14  Eric Blake  <ebb9@byu.net>
49018
49019         Touch up previous patch.
49020         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
49021         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
49022
49023         Convert strcasestr module to use Two-Way algorithm.
49024         * modules/strcasestr-simple: New module, based on the old
49025         strcasestr, but with Two-Way rather than KMP.
49026         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
49027         * lib/string.in.h (rpl_strcasestr): Declare.
49028         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
49029         performance.
49030         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
49031         * modules/string (Makefile.am): Support strcasestr.
49032         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
49033         * modules/strcasestr-tests (Depends-on): Check for alarm.
49034         * tests/test-strcasestr.c: Augment test.
49035         * lib/str-two-way.h: Clean up stray macro.
49036         * NEWS: Document new module.
49037         * MODULES.html.sh (string handling): Likewise.
49038         * doc/functions/strcasestr.texi: New file.
49039         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
49040         here, since it is not a POSIX function.
49041
49042 2008-01-14  Colin Watson  <cjwatson@debian.org>
49043             Bruno Haible  <bruno@clisp.org>
49044
49045         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
49046         works fine; if not, set REPLACE_STRSIGNAL.
49047         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
49048         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49049         REPLACE_STRSIGNAL.
49050         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
49051         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
49052         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
49053
49054 2008-01-14  Bruno Haible  <bruno@clisp.org>
49055
49056         * modules/strsignal (Include): Change to <string.h>.
49057
49058 2008-01-14  Colin Watson  <cjwatson@debian.org>
49059
49060         * modules/argp (Notice): Add a notice recommending to change
49061         XGETTEXT_OPTIONS.
49062         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
49063
49064 2008-01-13  Colin Watson  <cjwatson@debian.org>
49065
49066         * modules/strsignal-tests: New file.
49067         * tests/test-strsignal.c: New file.
49068
49069         * lib/strsignal.c: New file, from glibc with modifications.
49070         * lib/siglist.h: New file, from glibc with modifications.
49071         * lib/string.in.h (strsignal): New declaration.
49072         * m4/strsignal.m4: New file.
49073         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49074         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
49075         * modules/strsignal: New file.
49076         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
49077         HAVE_DECL_STRSIGNAL.
49078
49079 2008-01-13  Bruno Haible  <bruno@clisp.org>
49080
49081         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
49082         locale encoding is not ASCII. Needed for OpenBSD 4.0.
49083         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
49084         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
49085
49086 2008-01-13  Bruno Haible  <bruno@clisp.org>
49087
49088         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
49089         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
49090         * lib/argp.h (__attribute__): Likewise.
49091         * lib/c-stack.c (__attribute__): Likewise.
49092         * lib/error.h (__attribute__): Likewise.
49093         * lib/fts.c (__attribute__): Likewise.
49094         * lib/openat.h (__attribute__): Likewise.
49095         * lib/stdio.in.h (__attribute__): Likewise.
49096         * lib/string.in.h (__attribute__): Likewise.
49097         * lib/utimens.c (__attribute__): Likewise.
49098         * lib/vasnprintf.h (__attribute__): Likewise.
49099         * lib/xalloc.h (__attribute__): Likewise.
49100         * lib/xprintf.h (__attribute__): Likewise.
49101         * lib/xstrtol.h (__attribute__): Likewise.
49102         * lib/xvasprintf.h (__attribute__): Likewise.
49103
49104 2008-01-12  Bruno Haible  <bruno@clisp.org>
49105
49106         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
49107         * doc/glibc-headers/a.out.texi: New file.
49108         * doc/glibc-headers/aliases.texi: New file.
49109         * doc/glibc-headers/alloca.texi: New file.
49110         * doc/glibc-headers/ar.texi: New file.
49111         * doc/glibc-headers/argp.texi: New file.
49112         * doc/glibc-headers/argz.texi: New file.
49113         * doc/glibc-headers/byteswap.texi: New file.
49114         * doc/glibc-headers/crypt.texi: New file.
49115         * doc/glibc-headers/endian.texi: New file.
49116         * doc/glibc-headers/envz.texi: New file.
49117         * doc/glibc-headers/err.texi: New file.
49118         * doc/glibc-headers/error.texi: New file.
49119         * doc/glibc-headers/execinfo.texi: New file.
49120         * doc/glibc-headers/fpu_control.texi: New file.
49121         * doc/glibc-headers/fstab.texi: New file.
49122         * doc/glibc-headers/fts.texi: New file.
49123         * doc/glibc-headers/getopt.texi: New file.
49124         * doc/glibc-headers/ieee754.texi: New file.
49125         * doc/glibc-headers/ifaddrs.texi: New file.
49126         * doc/glibc-headers/libintl.texi: New file.
49127         * doc/glibc-headers/mcheck.texi: New file.
49128         * doc/glibc-headers/mntent.texi: New file.
49129         * doc/glibc-headers/obstack.texi: New file.
49130         * doc/glibc-headers/paths.texi: New file.
49131         * doc/glibc-headers/printf.texi: New file.
49132         * doc/glibc-headers/pty.texi: New file.
49133         * doc/glibc-headers/resolv.texi: New file.
49134         * doc/glibc-headers/shadow.texi: New file.
49135         * doc/glibc-headers/sysexits.texi: New file.
49136         * doc/glibc-headers/ttyent.texi: New file.
49137
49138 2008-01-12  Jim Meyering  <meyering@redhat.com>
49139
49140         announce-gen: emit Gnulib's git-based version string.
49141         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
49142         New option --gnulib-version=V, where V is expected to be
49143         the output of running git describe in the gnulib directory.
49144         (get_tool_versions): Request feedback on xdelta.  I suspect it's
49145         not useful, and plan to stop publishing an xdelta file with each
49146         coreutils release.
49147
49148         * build-aux/announce-gen: Also check for lzma-compressed files.
49149
49150 2008-01-11  Bruno Haible  <bruno@clisp.org>
49151
49152         * tests/test-memmem.c (main): Increase maximum allowed time.
49153         * tests/test-strstr.c (main): Likewise.
49154
49155 2008-01-11  Bruno Haible  <bruno@clisp.org>
49156
49157         * doc/functions/memmem.texi: Add more precisions about platforms.
49158         * doc/functions/strstr.texi: Likewise.
49159
49160 2008-01-10  Eric Blake  <ebb9@byu.net>
49161
49162         * m4/strstr.m4: Delete cruft from copy-n-paste.
49163         Reported by Bruno Haible.
49164
49165 2008-01-10  Bruno Haible  <bruno@clisp.org>
49166
49167         Make c-strstr rely on strstr.
49168         * lib/c-strstr.c: Don't include str-kmp.h.
49169         (c_strstr): Define in terms of strstr.
49170         * modules/c-strstr (Files): Remove lib/str-kmp.h.
49171         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
49172
49173 2008-01-10  Bruno Haible  <bruno@clisp.org>
49174
49175         * doc/gnulib.texi (String Functions in C Locale): New section.
49176         * doc/c-ctype.texi: New file.
49177         * doc/c-strcase.texi: New file.
49178         * doc/c-strcaseeq.texi: New file.
49179         * doc/c-strcasestr.texi: New file.
49180         * doc/c-strstr.texi: New file.
49181         * doc/c-strtod.texi: New file.
49182         * doc/c-strtold.texi: New file.
49183
49184 2008-01-10  Eric Blake  <ebb9@byu.net>
49185
49186         * lib/relocatable.h: Fix a comment.
49187
49188 2008-01-10  Eric Blake  <ebb9@byu.net>
49189
49190         Share two-way algorithm.
49191         * lib/str-two-way.h: New file, merged from...
49192         * lib/memmem.c: ...here...
49193         * lib/strstr.c: ...and here.
49194         * modules/memmem (Files): Use it.
49195         * modules/strstr (Files): Likewise.
49196
49197         Avoid quadratic strstr implementations.
49198         * lib/strstr.c: New file.
49199         * m4/strstr.m4: Likewise.
49200         * modules/strstr: Likewise.
49201         * modules/strstr-tests: Likewise.
49202         * tests/test-strstr.c: Likewise.
49203         * lib/string.in.h (rpl_strstr): Declare.
49204         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
49205         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
49206         * modules/string (Makefile.am): Likewise.
49207         * MODULES.html.sh (string handling): Mention new module.
49208         * doc/functions/strstr.texi (strstr): Document the bug.
49209
49210 2008-01-10  Bruno Haible  <bruno@clisp.org>
49211
49212         * lib/relocatable.h (relocate): State whether result is freshly
49213         allocated or not.
49214         * lib/relocatable.c (relocate): Return a freshly allocated string
49215         instead of a pointer to a privately held string.
49216         Reported by Sylvain Beucler <beuc@gnu.org>.
49217
49218 2008-01-10  Colin Watson  <cjwatson@debian.org>
49219
49220         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
49221         s/S_ISNLK/S_ISLNK/.
49222
49223 2008-01-09  Bruno Haible  <bruno@clisp.org>
49224
49225         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
49226         and other files.
49227         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
49228         if it's only a guess.
49229         * modules/memmem: Simplify by depending on memmem-simple.
49230
49231 2008-01-09  Bruno Haible  <bruno@clisp.org>
49232
49233         Work around OpenBSD 4.0 tdelete() bug.
49234         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
49235         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
49236         macros and don't redefine the enum values.
49237         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
49238         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
49239         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
49240
49241 2008-01-09  Bruno Haible  <bruno@clisp.org>
49242
49243         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
49244         (main): Don't perform the tests if setlocale did not install a UTF-8
49245         locale. Needed on OpenBSD 4.0.
49246         * modules/wcwidth-tests (Depends-on): Add localcharset.
49247
49248 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
49249
49250         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
49251         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
49252         * NEWS: announce this.
49253         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
49254
49255 2008-01-09  Simon Josefsson  <simon@josefsson.org>
49256         and Eric Blake  <ebb9@byu.net>
49257
49258         Add memmem-simple module.
49259         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
49260         (gl_FUNC_MEMMEM): Separate performance from presence checks.
49261         * modules/memmem-simple: New file.
49262         * modules/memmem (Description): Tweak.
49263         * MODULES.html.sh (string handling): Mention new module.
49264         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
49265         addressed by memmem-simple.
49266         * NEWS: Document the difference.
49267
49268 2008-01-09  Eric Blake  <ebb9@byu.net>
49269
49270         Give gcc some memmem optimization hints.
49271         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
49272         (strcasestr): Declare as pure.
49273         * modules/memmem (Maintainer): Claim my implementation.
49274
49275 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49276
49277         Support AIX 6.1 and higher.
49278         * build-aux/config.libpath: Likewise.
49279         * build-aux/config.rpath: Likewise.
49280
49281 2008-01-08  Jim Meyering  <meyering@redhat.com>
49282             Bruno Haible  <bruno@clisp.org>
49283
49284         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
49285         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
49286         Reported by Peter Fales in
49287         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
49288
49289 2008-01-08  Bruno Haible  <bruno@clisp.org>
49290
49291         * modules/unictype/category-of (Depends-on): Add
49292         unictype/category-none.
49293         * modules/unictype/category-and-tests (Depends-on): Add
49294         unictype/category-{L,N,Lu,Nd}.
49295         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
49296         * modules/unictype/category-or-tests (Depends-on): Add
49297         unictype/category-{L,N}.
49298         * modules/unictype/category-name-tests (Depends-on): Add
49299         unictype/category-{Z,Nl}.
49300         Reported by Simon Josefsson.
49301
49302 2008-01-08  Bruno Haible  <bruno@clisp.org>
49303
49304         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
49305         convention better.
49306         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
49307         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
49308         Reported by Peter Miller <millerp@canb.auug.org.au>.
49309
49310 2008-01-08  Eric Blake  <ebb9@byu.net>
49311
49312         Rewrite memmem to guarantee linear complexity without malloc.
49313         * lib/memmem.c (memmem): Use Two-Way rather than
49314         Knuth-Morris-Pratt, to allow O(1) space usage.
49315         (critical_factorization, two_way_short_needle)
49316         (two_way_long_needle): New functions.
49317         (knuth_morris_pratt): Delete.
49318         * modules/memmem (Depends-on): No longer need malloca or stdbool.
49319         Add stdint.
49320         * tests/test-memmem.c (main): Add tests for periodic needle and
49321         sublinear performance.
49322         * doc/functions/memmem.texi (memmem): Document other deficiencies
49323         in cygwin and older glibc.
49324
49325 2008-01-08  Bruno Haible  <bruno@clisp.org>
49326
49327         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
49328         augmentation.
49329
49330 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
49331
49332         Add a configure time option: --disable-acl.
49333         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
49334         AC_ARG_ENABLE(acl).
49335
49336 2008-01-06  Simon Josefsson  <simon@josefsson.org>
49337
49338         * tests/test-localename.c: Don't include obsolete "setenv.h".
49339
49340         * modules/localename-tests (Depends-on): Need unsetenv.
49341
49342 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49343
49344         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
49345
49346 2008-01-06  Colin Watson  <cjwatson@debian.org>
49347
49348         * users.txt: Add man-db.
49349
49350 2008-01-07  Bruno Haible  <bruno@clisp.org>
49351
49352         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
49353         previous section name.
49354
49355 2008-01-07  Bruno Haible  <bruno@clisp.org>
49356
49357         * lib/progname.c (set_program_name): Don't strip off a leading
49358         "lt-" prefix outside a .libs directory.
49359         Suggested by Paul Eggert.
49360
49361 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
49362             Bruno Haible  <bruno@clisp.org>
49363
49364         Improve memory cleanup in 'relocatable' module.
49365         * lib/relocatable.h (compute_curr_prefix): Change return type to
49366         'char *'.
49367         * lib/relocatable.c (compute_curr_prefix): Change return type to
49368         'char *'. Free curr_installdir after use.
49369         (relocate): Free curr_prefix_better after use.
49370         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
49371
49372 2008-01-01  Bruno Haible  <bruno@clisp.org>
49373
49374         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
49375         failure on older glibc systems.
49376         Reported by Peter Fales <psfales@alcatel-lucent.com>.
49377
49378 2008-01-05  Eric Blake  <ebb9@byu.net>
49379
49380         Avoid quadratic system memmem.
49381         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
49382         Reported by Ralf Wildenhues.
49383
49384         Fix memmem test for mingw.
49385         * modules/memmem-tests (configure.ac): Check for alarm.
49386         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
49387         it.
49388         * doc/functions/memmem.texi: New file.
49389         * doc/gnulib.texi (Function Substitutes): Add memmem.
49390         Reported by Bruno Haible.
49391
49392 2008-01-04  Bruno Haible  <bruno@clisp.org>
49393
49394         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
49395         Require gl_HEADER_STRINGS_H_DEFAULTS, not
49396         gl_HEADER_STRING_H_DEFAULTS.
49397
49398 2008-01-04  Eric Blake  <ebb9@byu.net>
49399
49400         Shorten duration of memmem test.
49401         * tests/test-memmem.c (main): Use alarm to declare failure if test
49402         is taking too long.
49403         Reported by Ralf Wildenhues.
49404
49405 2007-12-21  Simon Josefsson  <simon@josefsson.org>
49406
49407         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
49408         string, needed by strerror.
49409
49410 2008-01-03  Colin Watson  <cjwatson@debian.org>
49411             Bruno Haible  <bruno@clisp.org>
49412
49413         * doc/gnulib-tool.texi (Localization): New section.
49414
49415 2008-01-02  Bruno Haible  <bruno@clisp.org>
49416
49417         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
49418         variables to 'unsigned char *' type.
49419         Reported by Paul Eggert.
49420
49421 2008-01-02  Jim Meyering  <jim@meyering.net>
49422
49423         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
49424
49425 2007-12-31  Jim Meyering  <jim@meyering.net>
49426
49427         Avoid use of private FTS type name.
49428         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
49429
49430 2007-12-30  Karl Berry  <karl@gnu.org>
49431
49432         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
49433         work around defect in Texinfo and/or the standalone Info browser.
49434
49435 2007-12-30  Bruno Haible  <bruno@clisp.org>
49436
49437         Unify 5 copies of the KMP code.
49438         * lib/str-kmp.h: New file.
49439         * lib/c-strcasestr.c: Include str-kmp.h.
49440         (knuth_morris_pratt): Remove function.
49441         (c_strcasestr): Update.
49442         * lib/c-strstr.c: Include str-kmp.h.
49443         (knuth_morris_pratt): Remove function.
49444         (c_strcasestr): Update.
49445         * lib/mbscasestr.c: Include str-kmp.h.
49446         (knuth_morris_pratt_unibyte): Remove function.
49447         * lib/mbsstr.c: Include str-kmp.h.
49448         (knuth_morris_pratt_unibyte): Remove function.
49449         * lib/strcasestr.c: Include str-kmp.h.
49450         (knuth_morris_pratt): Remove function.
49451         (strcasestr): Update.
49452         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
49453         * modules/c-strstr (Files): Likewise.
49454         * modules/mbscasestr (Files): Likewise.
49455         * modules/mbsstr (Files): Likewise.
49456         * modules/strcasestr (Files): Likewise.
49457         Suggested by Paul Eggert.
49458
49459 2007-12-30  Bruno Haible  <bruno@clisp.org>
49460
49461         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
49462         defined.
49463
49464 2007-12-30  Bruno Haible  <bruno@clisp.org>
49465
49466         * lib/xmalloca.h: Include xalloc.h.
49467         (xnmalloca): New macro.
49468
49469 2007-12-30  Bruno Haible  <bruno@clisp.org>
49470
49471         * lib/malloca.h (nmalloca): New macro.
49472         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
49473         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
49474         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
49475         knuth_morris_pratt_multibyte): Likewise.
49476         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
49477         knuth_morris_pratt_multibyte): Likewise.
49478         * lib/memmem.c (knuth_morris_pratt): Likewise.
49479         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
49480
49481 2007-12-25  Bruno Haible  <bruno@clisp.org>
49482
49483         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
49484         * lib/glob.c: Don't include openat.h.
49485         (link_exists2_p): Add back the code that deals with the
49486         !GLOB_ALTDIRFUNC case.
49487         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
49488         let it do the filename concatenation.
49489         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
49490         * modules/glob (Depends-on): Remove openat.
49491
49492 2007-12-31  Bruno Haible  <bruno@clisp.org>
49493
49494         * modules/dirfd (License): Change to LGPLv2+.
49495         Approved by Jim Meyering.
49496
49497 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
49498
49499         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
49500         when multiplying M by sizeof (size_t).
49501
49502 2007-12-10  Martin Lambers  <marlam@marlam.de>
49503
49504         Override getpagesize on mingw.
49505         * lib/getpagesize.c: New file.
49506         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
49507         * modules/getpagesize (Files): Add lib/getpagesize.c.
49508         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
49509         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
49510         REPLACE_GETPAGESIZE.
49511         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
49512
49513 2007-12-25  Bruno Haible  <bruno@clisp.org>
49514
49515         * modules/localcharset (Notice): New field.
49516         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
49517         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
49518
49519 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
49520             Bruno Haible  <bruno@clisp.org>
49521
49522         Avoid using the syntax symbol() in formatted documentation.
49523         * MODULES.html.sh (func_module): When replacing symbol() with a
49524         hyperlink, remove the parentheses. Show an error if some remain.
49525         Recognize and render the '...' syntax.
49526         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
49527         Rework. Add paragraph about GCC's inlining.
49528         * doc/alloca.texi: Likewise.
49529         * doc/error.texi: Remove parentheses from symbol reference.
49530         * doc/gnulib-intro.texi: Likewise.
49531         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
49532         * modules/fnmatch (Description): Reword to say "the ... function".
49533         * modules/full-read (Description): Likewise.
49534         * modules/full-write (Description): Likewise.
49535         * modules/safe-read (Description): Likewise.
49536         * modules/safe-write (Description): Likewise.
49537         * modules/strchrnul (Description): Likewise.
49538         * modules/trim (Description): Likewise.
49539         * modules/error (Description): Remove parentheses from symbol
49540         references.
49541         * modules/verror (Description): Likewise.
49542         Reported by Karl Berry.
49543
49544 2007-12-25  Bruno Haible  <bruno@clisp.org>
49545
49546         Fixup after 2007-10-16 commit.
49547         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
49548
49549 2007-12-24  Bruno Haible  <bruno@clisp.org>
49550
49551         Make --enable-relocatable work with DESTDIR.
49552         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
49553         to compute installdir from destprog.
49554         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
49555         also set the RELOC_DESTDIR variable.
49556         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49557
49558 2007-12-24  Bruno Haible  <bruno@clisp.org>
49559
49560         Fix link error due to xalloc_die().
49561         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
49562         of xreadlink.
49563         * lib/relocwrapper.c: Update comments.
49564         * build-aux/install-reloc: Remove xreadlink.c from file list.
49565         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
49566         xreadlink.c.
49567         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49568
49569 2007-12-24  Bruno Haible  <bruno@clisp.org>
49570
49571         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
49572         * lib/setenv.h: Remove file.
49573         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
49574         lib/setenv.h.
49575         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
49576         (Depends-on): Add stdlib.
49577         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
49578         gl_FUNC_UNSETENV.
49579         (Include): Replace setenv.h with <stdlib.h>.
49580         * modules/unsetenv: New file.
49581         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
49582         * lib/unsetenv.c: Include <stdlib.h> first.
49583         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
49584         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
49585         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
49586         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
49587         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
49588         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
49589         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
49590         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
49591         * doc/functions/unsetenv.texi: Update.
49592         * modules/xsetenv (Depends-on): Add unsetenv.
49593         * modules/getdate (Depends-on): Likewise.
49594         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
49595         * lib/xsetenv.c: Don't include setenv.h.
49596         * lib/getdate.y: Likewise.
49597         * lib/relocwrapper.c: Likewise.
49598         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
49599         (Depends-on): Add stdlib.
49600         * NEWS: Mention the changes.
49601         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
49602
49603 2007-12-23  Bruno Haible  <bruno@clisp.org>
49604
49605         * lib/memmem.c (memmem): Use lowercase variable names. Tab
49606         indentation.
49607
49608 2007-12-23  Bruno Haible  <bruno@clisp.org>
49609
49610         * lib/c-strcasestr.c: Add more comments.
49611         * lib/c-strstr.c: Likewise.
49612         * lib/mbscasestr.c: Likewise.
49613         * lib/mbsstr.c: Likewise.
49614         * lib/strcasestr.c: Likewise.
49615         * lib/memmem.c: Likewise.
49616
49617 2007-12-23  Bruno Haible  <bruno@clisp.org>
49618
49619         * tests/test-memmem.c: Include <string.h> first.
49620
49621 2007-12-22  Bruno Haible  <bruno@clisp.org>
49622
49623         * gnulib-tool (func_create_testdir): Change $auxdir while generating
49624         the contents of $testsbase.
49625         Reported by Ralf Wildenhues.
49626
49627 2007-12-22  Bruno Haible  <bruno@clisp.org>
49628
49629         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
49630         two variables local_ldadd_before, local_ldadd_last.
49631
49632 2007-12-20  Eric Blake  <ebb9@byu.net>
49633
49634         Work around circular library issue when cross-compiling.
49635         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
49636         that progname.o does not need to pull in rpl_memcmp.
49637
49638 2007-12-19  Eric Blake  <ebb9@byu.net>
49639
49640         Fix memmem to avoid O(n^2) worst-case complexity.
49641         * lib/memmem.c (knuth_morris_pratt): New function.
49642         (memmem): Use it if first few naive iterations fail.
49643         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
49644         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
49645         * modules/memchr (License): Likewise.
49646         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
49647         malloca.
49648         * tests/test-memmem.c: Rewrite, borrowing ideas from
49649         test-mbsstr1.c; the old version wouldn't even compile!
49650         * modules/memmem-tests: New file.
49651         * lib/string.in.h (rpl_memmem): Add declaration.
49652         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
49653         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
49654         REPLACE_MEMMEM.
49655
49656 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
49657
49658         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
49659         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
49660         before any system include files, and undef after them all.  This
49661         should fix a problem on VMS reported by John E. Malmberg in
49662         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
49663
49664 2007-12-17  Eric Blake  <ebb9@byu.net>
49665
49666         Revert addition of verify, for BSD/OS.
49667         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
49668         can't handle large files, for the sake of obsolete platforms.
49669         * modules/fseeko (Depends-on): Remove verify.
49670         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
49671         * doc/functions/ftello.texi (ftello): Likewise.
49672         * doc/functions/fgetpos.texi (fgetpos): Likewise.
49673         Reported by Larry Jones.
49674
49675 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
49676
49677         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
49678         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
49679
49680 2007-12-17  Jim Meyering  <meyering@redhat.com>
49681
49682         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
49683         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
49684         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
49685         * modules/getcwd (Depends-on): Add openat.
49686         Reported by Petr Salinger.
49687
49688 2007-12-17  Bruno Haible  <bruno@clisp.org>
49689
49690         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
49691         avoid a segmentation fault of the configure test on x86_64 systems.
49692
49693 2007-12-15  Jim Meyering  <meyering@redhat.com>
49694
49695         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
49696
49697 2007-12-13  Eric Blake  <ebb9@byu.net>
49698
49699         Another fseek test.
49700         * tests/test-fseek.c (main): Also test ungetc handling.
49701         * tests/test-fseeko.c (main): Likewise.
49702         * modules/fseeko (Depends-on): Add verify.
49703         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
49704         large.
49705         Reported by Larry Jones.
49706
49707         Fix fseeko on mingw.
49708         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
49709         seek.
49710
49711         Beef up fseek tests.
49712         * tests/test-fseek.c (main): Also test eof handling.
49713         * tests/test-fseeko.c (main): Likewise.
49714         Reported by Larry Jones.
49715
49716 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
49717
49718         Fix fseeko on BSD-based platforms.
49719         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
49720         successful seek.
49721
49722 2007-12-12  Eric Blake  <ebb9@byu.net>
49723
49724         Allow circular dependency of separate libtests.a
49725         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
49726         when use_libtests.
49727
49728 2007-12-11  Eric Blake  <ebb9@byu.net>
49729
49730         Fix bug with -0.0L in previous patch.
49731         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
49732         * tests/test-isnan.c (main): Also test on zeroes.
49733         * tests/test-isnanf.c (main): Likewise.
49734         * tests/test-isnanl.h (main): Likewise.
49735
49736         Detect pseudo-denormals on x86 even when cross-compiling.
49737         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
49738         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
49739         invalid bit patterns that happen to satisfy ==.
49740
49741         Avoid link failures with separate libtests.a.
49742         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
49743         last, to satisfy circular dependencies.
49744
49745 2007-12-11  Eric Blake  <ebb9@byu.net>
49746         and Bruno Haible  <bruno@clisp.org>
49747
49748         Fix OpenBSD 4.0 <float.h> handling of long double.
49749         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
49750         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
49751         * doc/headers/float.texi (float.h): Document OpenBSD bug.
49752
49753 2007-12-11  Jim Meyering  <meyering@redhat.com>
49754
49755         * users.txt: Add libvirt.
49756
49757         Support versions of autoconf prior to 2.59c.
49758         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
49759         if it is not already defined.
49760
49761 2007-12-09  Bruno Haible  <bruno@clisp.org>
49762
49763         Let 'gnulib-tool --import' collect sources needed for the tests in
49764         tests/ rather than in lib/.
49765         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
49766         argument. If true, add rules to generate libtests.a, and put libtests.a
49767         into $(LDADD). Consider source files in subdirectories and set
49768         uses_subdirs.
49769         (func_emit_initmacro_start, func_emit_initmacro_end,
49770         func_emit_initmacro_done): Pass all arguments explicitly.
49771         (func_import): Determine two module lists main_modules,
49772         testsrelated_modules. Determine use_libtests. Determine two variables
49773         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
49774         instead of just sed_transform_lib_file. Determine two variables
49775         main_files and testsrelated_files. Compute 'files' as the union of
49776         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
49777         func_add_or_update. In the generated gnulib-comp.m4, collect the
49778         object files for tests/ in different variables than those for lib/.
49779         Substitute LIBTESTS_LIBDEPS.
49780         (func_create_testdir): Combine the uses_subdirs results from
49781         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
49782
49783 2007-12-09  Bruno Haible  <bruno@clisp.org>
49784
49785         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
49786         the build-aux directory.
49787
49788 2007-12-09  Bruno Haible  <bruno@clisp.org>
49789
49790         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
49791         introduced on 2006-09-09.
49792
49793 2007-12-07  Jim Meyering  <meyering@redhat.com>
49794
49795         Let these macros work also with autoconf-2.59.
49796         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
49797         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
49798         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
49799
49800 2007-12-06  Jim Meyering  <meyering@redhat.com>
49801
49802         Avoid a configure-time syntax error in gl_FUNC_ACL.
49803         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
49804         function in each branch, before testing the cache variable.
49805
49806 2007-12-04  Eric Blake  <ebb9@byu.net>
49807
49808         Make scripts executable.
49809         * build-aux/config.guess: Add execute permissions.
49810         * build-aux/config.sub: Likewise.
49811         * build-aux/gendocs.sh: Likewise.
49812
49813         Fix frexp on mingw.
49814         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
49815         cross-compiling.
49816         * doc/functions/frexp.texi (frexp): Document the bug.
49817
49818         Make cygwin fseeko check more reliable.
49819         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
49820         version numbers, rather than unrelated feature check.
49821         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
49822         * doc/functions/ftello.texi (ftello): Likewise.
49823         Reported by Bruno Haible.
49824
49825         * m4/strerror.m4: Bump version number.
49826
49827 2007-12-03  Bruno Haible  <bruno@clisp.org>
49828
49829         * doc/functions/mprotect.texi: Mention the mingw problem.
49830
49831 2007-12-03  Eric Blake  <ebb9@byu.net>
49832
49833         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
49834         REPLACE_STRERROR is initialized before this macro.
49835
49836 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
49837
49838         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
49839         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
49840         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
49841         put -lsec in even for programs other than 'ls'.  This fixes a problem
49842         for gettext reported by Bruno Haible in
49843         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
49844         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
49845         Add support for Solaris 10.  This isn't efficient, but should get the
49846         job done for now.
49847
49848 2007-12-03  James Youngman  <jay@gnu.org>
49849
49850         * doc/regexprops-generic.texi: change "an close-group" to "a
49851         close-group" and "illegal" to "not allowed".
49852
49853 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49854
49855         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
49856         pr_byname.h. Needed for the rare case when the maintainer has done
49857         "make maintainer-clean" in the source directory and then attempts a
49858         build outside the source directory.
49859         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
49860         scripts_byname.h.
49861
49862 2007-12-02  Martin Lambers <marlam@marlam.de>
49863             Bruno Haible  <bruno@clisp.org>
49864
49865         * lib/getpagesize.h: Remove file.
49866         * lib/unistd.in.h: Include declaration of getpagesize here.
49867         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
49868         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
49869         HAVE_SYS_PARAM_H.
49870         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
49871         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49872         * modules/getpagesize (Files): Remove lib/getpagesize.h.
49873         (Depends-on): Add unistd.
49874         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49875         (Include): Use <unistd.h> instead of getpagesize.h.
49876         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
49877         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49878         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
49879         gl_GETPAGESIZE invocation, already handled by module dependency.
49880         * lib/pagealign_alloc.c: Don't include getpagesize.h.
49881
49882 2007-12-02  Bruno Haible  <bruno@clisp.org>
49883
49884         * modules/strings-tests: New file.
49885         * tests/test-strings.c: New file.
49886
49887         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
49888         * lib/strings.in.h: New file.
49889         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
49890         * m4/strings_h.m4: New file.
49891         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
49892         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
49893         * modules/strings: New file.
49894         * modules/string (Makefile.am): Update.
49895         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
49896         Reported by Karl Berry.
49897
49898 2007-12-01  Eric Blake  <ebb9@byu.net>
49899
49900         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
49901         accomodate fix in cygwin 1.5.25.
49902
49903 2007-12-01  Jim Meyering  <meyering@redhat.com>
49904
49905         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
49906         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
49907         that would inhibit utf8-optimization of a regexp containing line-
49908         or buffer-anchors, e.g., `^', `$'.
49909
49910 2007-11-30  Bruno Haible  <bruno@clisp.org>
49911
49912         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
49913         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
49914         glthread_recursive_lock_init.
49915         * lib/lock.c (glthread_recursive_lock_init)
49916         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
49917         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49918
49919 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
49920
49921         New function qset_acl, like set_acl but with syscall semantics.
49922         * lib/acl.h (qset_acl): New decl.
49923         * lib/acl.c (qset_acl): New function.
49924         (set_acl): Use new function.  Use more-consistent diagnostics.
49925
49926 2007-11-28  Jim Meyering  <meyering@redhat.com>
49927
49928         * modules/physmem (License): Change from GPL to LGPLv2+.
49929
49930 2007-11-26  Bruno Haible  <bruno@clisp.org>
49931
49932         * lib/vasnprintf.c (decode_long_double): Don't abort if the
49933         'long double' type has excess precision.
49934         Reported by Jim Meyering in
49935         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
49936
49937 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49938
49939         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
49940         Sync from <http://gnu.org/licenses>.
49941         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
49942         with license text from same location.
49943         * doc/maintain.texi, doc/standards.texi:  Sync from
49944         <http://savannah.gnu.org/projects/gnustandards>.
49945
49946 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
49947         and Jim Meyering  <meyering@redhat.com>
49948
49949         Adjust getdate' grammar to accept a slightly more regular language.
49950         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
49951         Before, the former was rejected.
49952         * lib/getdate.y (digits_to_date_time): New function, factored
49953         out of ...
49954         (number): ...here.  Just call digits_to_date_time.
49955         (hybrid): New non-terminal to handle an <unsigned number,
49956         signed relative offset> sequence consistently.
49957
49958 2007-11-18  Jim Meyering  <meyering@redhat.com>
49959
49960         Pull my changes from coreutils:
49961         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
49962         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
49963         use of $gnulib_tool_option_extras, so that it's separated from the
49964         preceding argument.
49965
49966         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
49967         * build-aux/bootstrap (cp_mark_as_generated): Create any required
49968         parent destination directories before copying a file into place.
49969
49970 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
49971
49972         bootstrap: work also with 4-argument variant of AC_INIT
49973         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
49974
49975 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
49976
49977         Port test-getaddrinfo to Solaris.
49978         Problem reported by Bruno Haible in
49979         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
49980         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
49981         explanation of setting 'hints'.
49982         Don't reject an implementation merely because it returns EAI_SERVICE.
49983         (EAI_SERVICE): Define to 0 if not defined.
49984
49985 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
49986
49987         The license of gnu-make and posix-shell is now "GPLed build tool".
49988         * modules/gnu-make (License): Likewise.
49989         * modules/posix-shell (License): Likewise.
49990
49991         New module posix-shell, for determining a POSIX shell
49992         or perhaps something that is close enough to a POSIX shell.
49993         * m4/posix-shell.m4: New file.
49994         * modules/posix-shell: New file.
49995
49996         * MODULES.html.sh: Mention new module.
49997
49998         New module gnu-make, for determining whether we're using GNU Make.
49999         * m4/gnu-make.m4: New file.
50000         * modules/gnu-make: New file.
50001         * MODULES.html.sh: Mention new module.
50002
50003 2007-11-14  Jim Meyering  <meyering@redhat.com>
50004
50005         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
50006         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
50007         use this macro to create a function _definition_.
50008         Remove useless "#undef ARGMATCH_DIE".
50009
50010 2007-11-14  Bruno Haible  <bruno@clisp.org>
50011
50012         * lib/config.charset: Update for OpenBSD 4.1.
50013         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
50014
50015 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
50016
50017         Document 64-bit #if problems in stdint.texi.
50018         * doc/headers/stdint.texi (stdint.h): Mention problems with
50019         64-bit-#if, and how to work around them.
50020
50021         Don't insist on 'long long int' support in the preprocessor.  It
50022         breaks too many things.  For example, PRIdMAX still uses a 'long
50023         long int' format with the latest Sun compiler, even though
50024         HAVE_LONG_LONG_INT isn't defined due to that compiler's
50025         preprocessor problem.  This causes the latest coreutils to dump
50026         core on Solaris 10 sparc with the Sun C compiler.
50027         Instead, fix the 2007-10-16 problem in a different way, by evaluating
50028         the troublesome expressions at configure-time, not at #if-time.
50029         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
50030         preprocessor.
50031         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
50032         compile-time C checks, done at 'configure'-time.
50033         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
50034         * modules/inttypes (Makefile): Substitute the new symbols that
50035         gl_INTTYPES_H now generates.
50036         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
50037
50038 2007-11-12  Bruno Haible  <bruno@clisp.org>
50039
50040         Tests for Unicode character classification functions.
50041
50042         * modules/unictype/bidicategory-byname-tests: New file.
50043         * modules/unictype/bidicategory-name-tests: New file.
50044         * modules/unictype/bidicategory-of-tests: New file.
50045         * modules/unictype/bidicategory-test-tests: New file.
50046         * modules/unictype/block-list-tests: New file.
50047         * modules/unictype/block-of-tests: New file.
50048         * modules/unictype/block-test-tests: New file.
50049         * modules/unictype/category-C-tests: New file.
50050         * modules/unictype/category-Cc-tests: New file.
50051         * modules/unictype/category-Cf-tests: New file.
50052         * modules/unictype/category-Cn-tests: New file.
50053         * modules/unictype/category-Co-tests: New file.
50054         * modules/unictype/category-Cs-tests: New file.
50055         * modules/unictype/category-L-tests: New file.
50056         * modules/unictype/category-Ll-tests: New file.
50057         * modules/unictype/category-Lm-tests: New file.
50058         * modules/unictype/category-Lo-tests: New file.
50059         * modules/unictype/category-Lt-tests: New file.
50060         * modules/unictype/category-Lu-tests: New file.
50061         * modules/unictype/category-M-tests: New file.
50062         * modules/unictype/category-Mc-tests: New file.
50063         * modules/unictype/category-Me-tests: New file.
50064         * modules/unictype/category-Mn-tests: New file.
50065         * modules/unictype/category-N-tests: New file.
50066         * modules/unictype/category-Nd-tests: New file.
50067         * modules/unictype/category-Nl-tests: New file.
50068         * modules/unictype/category-No-tests: New file.
50069         * modules/unictype/category-P-tests: New file.
50070         * modules/unictype/category-Pc-tests: New file.
50071         * modules/unictype/category-Pd-tests: New file.
50072         * modules/unictype/category-Pe-tests: New file.
50073         * modules/unictype/category-Pf-tests: New file.
50074         * modules/unictype/category-Pi-tests: New file.
50075         * modules/unictype/category-Po-tests: New file.
50076         * modules/unictype/category-Ps-tests: New file.
50077         * modules/unictype/category-S-tests: New file.
50078         * modules/unictype/category-Sc-tests: New file.
50079         * modules/unictype/category-Sk-tests: New file.
50080         * modules/unictype/category-Sm-tests: New file.
50081         * modules/unictype/category-So-tests: New file.
50082         * modules/unictype/category-Z-tests: New file.
50083         * modules/unictype/category-Zl-tests: New file.
50084         * modules/unictype/category-Zp-tests: New file.
50085         * modules/unictype/category-Zs-tests: New file.
50086         * modules/unictype/category-and-not-tests: New file.
50087         * modules/unictype/category-and-tests: New file.
50088         * modules/unictype/category-byname-tests: New file.
50089         * modules/unictype/category-name-tests: New file.
50090         * modules/unictype/category-none-tests: New file.
50091         * modules/unictype/category-of-tests: New file.
50092         * modules/unictype/category-or-tests: New file.
50093         * modules/unictype/category-test-withtable-tests: New file.
50094         * modules/unictype/combining-class-tests: New file.
50095         * modules/unictype/ctype-alnum-tests: New file.
50096         * modules/unictype/ctype-alpha-tests: New file.
50097         * modules/unictype/ctype-blank-tests: New file.
50098         * modules/unictype/ctype-cntrl-tests: New file.
50099         * modules/unictype/ctype-digit-tests: New file.
50100         * modules/unictype/ctype-graph-tests: New file.
50101         * modules/unictype/ctype-lower-tests: New file.
50102         * modules/unictype/ctype-print-tests: New file.
50103         * modules/unictype/ctype-punct-tests: New file.
50104         * modules/unictype/ctype-space-tests: New file.
50105         * modules/unictype/ctype-upper-tests: New file.
50106         * modules/unictype/ctype-xdigit-tests: New file.
50107         * modules/unictype/decimal-digit-tests: New file.
50108         * modules/unictype/digit-tests: New file.
50109         * modules/unictype/mirror-tests: New file.
50110         * modules/unictype/numeric-tests: New file.
50111         * modules/unictype/property-alphabetic-tests: New file.
50112         * modules/unictype/property-ascii-hex-digit-tests: New file.
50113         * modules/unictype/property-bidi-arabic-digit-tests: New file.
50114         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
50115         * modules/unictype/property-bidi-block-separator-tests: New file.
50116         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
50117         * modules/unictype/property-bidi-common-separator-tests: New file.
50118         * modules/unictype/property-bidi-control-tests: New file.
50119         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
50120         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
50121         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
50122         * modules/unictype/property-bidi-european-digit-tests: New file.
50123         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
50124         * modules/unictype/property-bidi-left-to-right-tests: New file.
50125         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
50126         * modules/unictype/property-bidi-other-neutral-tests: New file.
50127         * modules/unictype/property-bidi-pdf-tests: New file.
50128         * modules/unictype/property-bidi-segment-separator-tests: New file.
50129         * modules/unictype/property-bidi-whitespace-tests: New file.
50130         * modules/unictype/property-byname-tests: New file.
50131         * modules/unictype/property-combining-tests: New file.
50132         * modules/unictype/property-composite-tests: New file.
50133         * modules/unictype/property-currency-symbol-tests: New file.
50134         * modules/unictype/property-dash-tests: New file.
50135         * modules/unictype/property-decimal-digit-tests: New file.
50136         * modules/unictype/property-default-ignorable-code-point-tests: New file.
50137         * modules/unictype/property-deprecated-tests: New file.
50138         * modules/unictype/property-diacritic-tests: New file.
50139         * modules/unictype/property-extender-tests: New file.
50140         * modules/unictype/property-format-control-tests: New file.
50141         * modules/unictype/property-grapheme-base-tests: New file.
50142         * modules/unictype/property-grapheme-extend-tests: New file.
50143         * modules/unictype/property-grapheme-link-tests: New file.
50144         * modules/unictype/property-hex-digit-tests: New file.
50145         * modules/unictype/property-hyphen-tests: New file.
50146         * modules/unictype/property-id-continue-tests: New file.
50147         * modules/unictype/property-id-start-tests: New file.
50148         * modules/unictype/property-ideographic-tests: New file.
50149         * modules/unictype/property-ids-binary-operator-tests: New file.
50150         * modules/unictype/property-ids-trinary-operator-tests: New file.
50151         * modules/unictype/property-ignorable-control-tests: New file.
50152         * modules/unictype/property-iso-control-tests: New file.
50153         * modules/unictype/property-join-control-tests: New file.
50154         * modules/unictype/property-left-of-pair-tests: New file.
50155         * modules/unictype/property-line-separator-tests: New file.
50156         * modules/unictype/property-logical-order-exception-tests: New file.
50157         * modules/unictype/property-lowercase-tests: New file.
50158         * modules/unictype/property-math-tests: New file.
50159         * modules/unictype/property-non-break-tests: New file.
50160         * modules/unictype/property-not-a-character-tests: New file.
50161         * modules/unictype/property-numeric-tests: New file.
50162         * modules/unictype/property-other-alphabetic-tests: New file.
50163         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
50164         * modules/unictype/property-other-grapheme-extend-tests: New file.
50165         * modules/unictype/property-other-id-continue-tests: New file.
50166         * modules/unictype/property-other-id-start-tests: New file.
50167         * modules/unictype/property-other-lowercase-tests: New file.
50168         * modules/unictype/property-other-math-tests: New file.
50169         * modules/unictype/property-other-uppercase-tests: New file.
50170         * modules/unictype/property-paired-punctuation-tests: New file.
50171         * modules/unictype/property-paragraph-separator-tests: New file.
50172         * modules/unictype/property-pattern-syntax-tests: New file.
50173         * modules/unictype/property-pattern-white-space-tests: New file.
50174         * modules/unictype/property-private-use-tests: New file.
50175         * modules/unictype/property-punctuation-tests: New file.
50176         * modules/unictype/property-quotation-mark-tests: New file.
50177         * modules/unictype/property-radical-tests: New file.
50178         * modules/unictype/property-sentence-terminal-tests: New file.
50179         * modules/unictype/property-soft-dotted-tests: New file.
50180         * modules/unictype/property-space-tests: New file.
50181         * modules/unictype/property-terminal-punctuation-tests: New file.
50182         * modules/unictype/property-test-tests: New file.
50183         * modules/unictype/property-titlecase-tests: New file.
50184         * modules/unictype/property-unassigned-code-value-tests: New file.
50185         * modules/unictype/property-unified-ideograph-tests: New file.
50186         * modules/unictype/property-uppercase-tests: New file.
50187         * modules/unictype/property-variation-selector-tests: New file.
50188         * modules/unictype/property-white-space-tests: New file.
50189         * modules/unictype/property-xid-continue-tests: New file.
50190         * modules/unictype/property-xid-start-tests: New file.
50191         * modules/unictype/property-zero-width-tests: New file.
50192         * modules/unictype/scripts-tests: New file.
50193         * modules/unictype/syntax-c-ident-tests: New file.
50194         * modules/unictype/syntax-c-whitespace-tests: New file.
50195         * modules/unictype/syntax-java-ident-tests: New file.
50196         * modules/unictype/syntax-java-whitespace-tests: New file.
50197         * tests/unictype/test-bidi_byname.c: New file.
50198         * tests/unictype/test-bidi_name.c: New file.
50199         * tests/unictype/test-bidi_of.c: New file.
50200         * tests/unictype/test-bidi_test.c: New file.
50201         * tests/unictype/test-block_list.c: New file.
50202         * tests/unictype/test-block_of.c: New file.
50203         * tests/unictype/test-block_test.c: New file.
50204         * tests/unictype/test-categ_and.c: New file.
50205         * tests/unictype/test-categ_and_not.c: New file.
50206         * tests/unictype/test-categ_byname.c: New file.
50207         * tests/unictype/test-categ_name.c: New file.
50208         * tests/unictype/test-categ_none.c: New file.
50209         * tests/unictype/test-categ_of.c: New file.
50210         * tests/unictype/test-categ_or.c: New file.
50211         * tests/unictype/test-categ_test_withtable.c: New file.
50212         * tests/unictype/test-combining.c: New file.
50213         * tests/unictype/test-decdigit.c: New file.
50214         * tests/unictype/test-digit.c: New file.
50215         * tests/unictype/test-mirror.c: New file.
50216         * tests/unictype/test-numeric.c: New file.
50217         * tests/unictype/test-pr_byname.c: New file.
50218         * tests/unictype/test-pr_test.c: New file.
50219         * tests/unictype/test-predicate-part1.h: New file.
50220         * tests/unictype/test-predicate-part2.h: New file.
50221         * tests/unictype/test-scripts.c: New file.
50222         * tests/unictype/test-sy_c_ident.c: New file.
50223         * tests/unictype/test-sy_java_ident.c: New file.
50224
50225         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
50226         for Unicode 5.0.0.
50227         * tests/unictype/test-categ_Cc.c: Likewise.
50228         * tests/unictype/test-categ_Cf.c: Likewise.
50229         * tests/unictype/test-categ_Cn.c: Likewise.
50230         * tests/unictype/test-categ_Co.c: Likewise.
50231         * tests/unictype/test-categ_Cs.c: Likewise.
50232         * tests/unictype/test-categ_L.c: Likewise.
50233         * tests/unictype/test-categ_Ll.c: Likewise.
50234         * tests/unictype/test-categ_Lm.c: Likewise.
50235         * tests/unictype/test-categ_Lo.c: Likewise.
50236         * tests/unictype/test-categ_Lt.c: Likewise.
50237         * tests/unictype/test-categ_Lu.c: Likewise.
50238         * tests/unictype/test-categ_M.c: Likewise.
50239         * tests/unictype/test-categ_Mc.c: Likewise.
50240         * tests/unictype/test-categ_Me.c: Likewise.
50241         * tests/unictype/test-categ_Mn.c: Likewise.
50242         * tests/unictype/test-categ_N.c: Likewise.
50243         * tests/unictype/test-categ_Nd.c: Likewise.
50244         * tests/unictype/test-categ_Nl.c: Likewise.
50245         * tests/unictype/test-categ_No.c: Likewise.
50246         * tests/unictype/test-categ_P.c: Likewise.
50247         * tests/unictype/test-categ_Pc.c: Likewise.
50248         * tests/unictype/test-categ_Pd.c: Likewise.
50249         * tests/unictype/test-categ_Pe.c: Likewise.
50250         * tests/unictype/test-categ_Pf.c: Likewise.
50251         * tests/unictype/test-categ_Pi.c: Likewise.
50252         * tests/unictype/test-categ_Po.c: Likewise.
50253         * tests/unictype/test-categ_Ps.c: Likewise.
50254         * tests/unictype/test-categ_S.c: Likewise.
50255         * tests/unictype/test-categ_Sc.c: Likewise.
50256         * tests/unictype/test-categ_Sk.c: Likewise.
50257         * tests/unictype/test-categ_Sm.c: Likewise.
50258         * tests/unictype/test-categ_So.c: Likewise.
50259         * tests/unictype/test-categ_Z.c: Likewise.
50260         * tests/unictype/test-categ_Zl.c: Likewise.
50261         * tests/unictype/test-categ_Zp.c: Likewise.
50262         * tests/unictype/test-categ_Zs.c: Likewise.
50263         * tests/unictype/test-ctype_alnum.c: Likewise.
50264         * tests/unictype/test-ctype_alpha.c: Likewise.
50265         * tests/unictype/test-ctype_blank.c: Likewise.
50266         * tests/unictype/test-ctype_cntrl.c: Likewise.
50267         * tests/unictype/test-ctype_digit.c: Likewise.
50268         * tests/unictype/test-ctype_graph.c: Likewise.
50269         * tests/unictype/test-ctype_lower.c: Likewise.
50270         * tests/unictype/test-ctype_print.c: Likewise.
50271         * tests/unictype/test-ctype_punct.c: Likewise.
50272         * tests/unictype/test-ctype_space.c: Likewise.
50273         * tests/unictype/test-ctype_upper.c: Likewise.
50274         * tests/unictype/test-ctype_xdigit.c: Likewise.
50275         * tests/unictype/test-decdigit.h: Likewise.
50276         * tests/unictype/test-digit.h: Likewise.
50277         * tests/unictype/test-numeric.h: Likewise.
50278         * tests/unictype/test-pr_alphabetic.c: Likewise.
50279         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
50280         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
50281         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
50282         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
50283         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
50284         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
50285         * tests/unictype/test-pr_bidi_control.c: Likewise.
50286         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
50287         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
50288         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
50289         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
50290         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
50291         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
50292         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
50293         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
50294         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
50295         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
50296         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
50297         * tests/unictype/test-pr_combining.c: Likewise.
50298         * tests/unictype/test-pr_composite.c: Likewise.
50299         * tests/unictype/test-pr_currency_symbol.c: Likewise.
50300         * tests/unictype/test-pr_dash.c: Likewise.
50301         * tests/unictype/test-pr_decimal_digit.c: Likewise.
50302         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
50303         * tests/unictype/test-pr_deprecated.c: Likewise.
50304         * tests/unictype/test-pr_diacritic.c: Likewise.
50305         * tests/unictype/test-pr_extender.c: Likewise.
50306         * tests/unictype/test-pr_format_control.c: Likewise.
50307         * tests/unictype/test-pr_grapheme_base.c: Likewise.
50308         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
50309         * tests/unictype/test-pr_grapheme_link.c: Likewise.
50310         * tests/unictype/test-pr_hex_digit.c: Likewise.
50311         * tests/unictype/test-pr_hyphen.c: Likewise.
50312         * tests/unictype/test-pr_id_continue.c: Likewise.
50313         * tests/unictype/test-pr_id_start.c: Likewise.
50314         * tests/unictype/test-pr_ideographic.c: Likewise.
50315         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
50316         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
50317         * tests/unictype/test-pr_ignorable_control.c: Likewise.
50318         * tests/unictype/test-pr_iso_control.c: Likewise.
50319         * tests/unictype/test-pr_join_control.c: Likewise.
50320         * tests/unictype/test-pr_left_of_pair.c: Likewise.
50321         * tests/unictype/test-pr_line_separator.c: Likewise.
50322         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
50323         * tests/unictype/test-pr_lowercase.c: Likewise.
50324         * tests/unictype/test-pr_math.c: Likewise.
50325         * tests/unictype/test-pr_non_break.c: Likewise.
50326         * tests/unictype/test-pr_not_a_character.c: Likewise.
50327         * tests/unictype/test-pr_numeric.c: Likewise.
50328         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
50329         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
50330         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
50331         * tests/unictype/test-pr_other_id_continue.c: Likewise.
50332         * tests/unictype/test-pr_other_id_start.c: Likewise.
50333         * tests/unictype/test-pr_other_lowercase.c: Likewise.
50334         * tests/unictype/test-pr_other_math.c: Likewise.
50335         * tests/unictype/test-pr_other_uppercase.c: Likewise.
50336         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
50337         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
50338         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
50339         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
50340         * tests/unictype/test-pr_private_use.c: Likewise.
50341         * tests/unictype/test-pr_punctuation.c: Likewise.
50342         * tests/unictype/test-pr_quotation_mark.c: Likewise.
50343         * tests/unictype/test-pr_radical.c: Likewise.
50344         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
50345         * tests/unictype/test-pr_soft_dotted.c: Likewise.
50346         * tests/unictype/test-pr_space.c: Likewise.
50347         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
50348         * tests/unictype/test-pr_titlecase.c: Likewise.
50349         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
50350         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
50351         * tests/unictype/test-pr_uppercase.c: Likewise.
50352         * tests/unictype/test-pr_variation_selector.c: Likewise.
50353         * tests/unictype/test-pr_white_space.c: Likewise.
50354         * tests/unictype/test-pr_xid_continue.c: Likewise.
50355         * tests/unictype/test-pr_xid_start.c: Likewise.
50356         * tests/unictype/test-pr_zero_width.c: Likewise.
50357         * tests/unictype/test-sy_c_whitespace.c: Likewise.
50358         * tests/unictype/test-sy_java_whitespace.c: Likewise.
50359
50360 2007-11-12  Bruno Haible  <bruno@clisp.org>
50361
50362         Unicode character classification functions.
50363         * lib/unictype.h: New file.
50364         * modules/unictype/base: New file.
50365         * modules/unictype/category-L: New file.
50366         * modules/unictype/category-Lu: New file.
50367         * modules/unictype/category-Ll: New file.
50368         * modules/unictype/category-Lt: New file.
50369         * modules/unictype/category-Lm: New file.
50370         * modules/unictype/category-Lo: New file.
50371         * modules/unictype/category-M: New file.
50372         * modules/unictype/category-Mn: New file.
50373         * modules/unictype/category-Mc: New file.
50374         * modules/unictype/category-Me: New file.
50375         * modules/unictype/category-N: New file.
50376         * modules/unictype/category-Nd: New file.
50377         * modules/unictype/category-Nl: New file.
50378         * modules/unictype/category-No: New file.
50379         * modules/unictype/category-P: New file.
50380         * modules/unictype/category-Pc: New file.
50381         * modules/unictype/category-Pd: New file.
50382         * modules/unictype/category-Ps: New file.
50383         * modules/unictype/category-Pe: New file.
50384         * modules/unictype/category-Pi: New file.
50385         * modules/unictype/category-Pf: New file.
50386         * modules/unictype/category-Po: New file.
50387         * modules/unictype/category-S: New file.
50388         * modules/unictype/category-Sm: New file.
50389         * modules/unictype/category-Sc: New file.
50390         * modules/unictype/category-Sk: New file.
50391         * modules/unictype/category-So: New file.
50392         * modules/unictype/category-Z: New file.
50393         * modules/unictype/category-Zs: New file.
50394         * modules/unictype/category-Zl: New file.
50395         * modules/unictype/category-Zp: New file.
50396         * modules/unictype/category-C: New file.
50397         * modules/unictype/category-Cc: New file.
50398         * modules/unictype/category-Cf: New file.
50399         * modules/unictype/category-Cs: New file.
50400         * modules/unictype/category-Co: New file.
50401         * modules/unictype/category-Cn: New file.
50402         * modules/unictype/category-or: New file.
50403         * modules/unictype/category-of: New file.
50404         * modules/unictype/category-test: New file.
50405         * modules/unictype/category-test-withtable: New file.
50406         * modules/unictype/category-byname: New file.
50407         * modules/unictype/category-none: New file.
50408         * modules/unictype/category-and: New file.
50409         * modules/unictype/category-and-not: New file.
50410         * modules/unictype/category-name: New file.
50411         * modules/unictype/combining-class: New file.
50412         * modules/unictype/category-all: New file.
50413         * modules/unictype/bidicategory-all: New file.
50414         * modules/unictype/bidicategory-byname: New file.
50415         * modules/unictype/bidicategory-name: New file.
50416         * modules/unictype/bidicategory-of: New file.
50417         * modules/unictype/bidicategory-test: New file.
50418         * modules/unictype/decimal-digit: New file.
50419         * modules/unictype/digit: New file.
50420         * modules/unictype/numeric: New file.
50421         * modules/unictype/mirror: New file.
50422         * modules/unictype/property-white-space: New file.
50423         * modules/unictype/property-alphabetic: New file.
50424         * modules/unictype/property-other-alphabetic: New file.
50425         * modules/unictype/property-not-a-character: New file.
50426         * modules/unictype/property-default-ignorable-code-point: New file.
50427         * modules/unictype/property-other-default-ignorable-code-point: New
50428         file.
50429         * modules/unictype/property-deprecated: New file.
50430         * modules/unictype/property-logical-order-exception: New file.
50431         * modules/unictype/property-variation-selector: New file.
50432         * modules/unictype/property-private-use: New file.
50433         * modules/unictype/property-unassigned-code-value: New file.
50434         * modules/unictype/property-uppercase: New file.
50435         * modules/unictype/property-other-uppercase: New file.
50436         * modules/unictype/property-lowercase: New file.
50437         * modules/unictype/property-other-lowercase: New file.
50438         * modules/unictype/property-titlecase: New file.
50439         * modules/unictype/property-soft-dotted: New file.
50440         * modules/unictype/property-id-start: New file.
50441         * modules/unictype/property-other-id-start: New file.
50442         * modules/unictype/property-id-continue: New file.
50443         * modules/unictype/property-other-id-continue: New file.
50444         * modules/unictype/property-xid-start: New file.
50445         * modules/unictype/property-xid-continue: New file.
50446         * modules/unictype/property-pattern-white-space: New file.
50447         * modules/unictype/property-pattern-syntax: New file.
50448         * modules/unictype/property-join-control: New file.
50449         * modules/unictype/property-grapheme-base: New file.
50450         * modules/unictype/property-grapheme-extend: New file.
50451         * modules/unictype/property-other-grapheme-extend: New file.
50452         * modules/unictype/property-grapheme-link: New file.
50453         * modules/unictype/property-bidi-control: New file.
50454         * modules/unictype/property-bidi-left-to-right: New file.
50455         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
50456         * modules/unictype/property-bidi-arabic-right-to-left: New file.
50457         * modules/unictype/property-bidi-european-digit: New file.
50458         * modules/unictype/property-bidi-eur-num-separator: New file.
50459         * modules/unictype/property-bidi-eur-num-terminator: New file.
50460         * modules/unictype/property-bidi-arabic-digit: New file.
50461         * modules/unictype/property-bidi-common-separator: New file.
50462         * modules/unictype/property-bidi-block-separator: New file.
50463         * modules/unictype/property-bidi-segment-separator: New file.
50464         * modules/unictype/property-bidi-whitespace: New file.
50465         * modules/unictype/property-bidi-non-spacing-mark: New file.
50466         * modules/unictype/property-bidi-boundary-neutral: New file.
50467         * modules/unictype/property-bidi-pdf: New file.
50468         * modules/unictype/property-bidi-embedding-or-override: New file.
50469         * modules/unictype/property-bidi-other-neutral: New file.
50470         * modules/unictype/property-hex-digit: New file.
50471         * modules/unictype/property-ascii-hex-digit: New file.
50472         * modules/unictype/property-ideographic: New file.
50473         * modules/unictype/property-unified-ideograph: New file.
50474         * modules/unictype/property-radical: New file.
50475         * modules/unictype/property-ids-binary-operator: New file.
50476         * modules/unictype/property-ids-trinary-operator: New file.
50477         * modules/unictype/property-zero-width: New file.
50478         * modules/unictype/property-space: New file.
50479         * modules/unictype/property-non-break: New file.
50480         * modules/unictype/property-iso-control: New file.
50481         * modules/unictype/property-format-control: New file.
50482         * modules/unictype/property-dash: New file.
50483         * modules/unictype/property-hyphen: New file.
50484         * modules/unictype/property-punctuation: New file.
50485         * modules/unictype/property-line-separator: New file.
50486         * modules/unictype/property-paragraph-separator: New file.
50487         * modules/unictype/property-quotation-mark: New file.
50488         * modules/unictype/property-sentence-terminal: New file.
50489         * modules/unictype/property-terminal-punctuation: New file.
50490         * modules/unictype/property-currency-symbol: New file.
50491         * modules/unictype/property-math: New file.
50492         * modules/unictype/property-other-math: New file.
50493         * modules/unictype/property-paired-punctuation: New file.
50494         * modules/unictype/property-left-of-pair: New file.
50495         * modules/unictype/property-combining: New file.
50496         * modules/unictype/property-composite: New file.
50497         * modules/unictype/property-decimal-digit: New file.
50498         * modules/unictype/property-numeric: New file.
50499         * modules/unictype/property-diacritic: New file.
50500         * modules/unictype/property-extender: New file.
50501         * modules/unictype/property-ignorable-control: New file.
50502         * modules/unictype/property-test: New file.
50503         * modules/unictype/property-byname: New file.
50504         * modules/unictype/property-all: New file.
50505         * modules/unictype/scripts: New file.
50506         * modules/unictype/scripts-all: New file.
50507         * modules/unictype/block-of: New file.
50508         * modules/unictype/block-test: New file.
50509         * modules/unictype/block-list: New file.
50510         * modules/unictype/block-all: New file.
50511         * modules/unictype/syntax-c-whitespace: New file.
50512         * modules/unictype/syntax-java-whitespace: New file.
50513         * modules/unictype/syntax-c-ident: New file.
50514         * modules/unictype/syntax-java-ident: New file.
50515         * modules/unictype/ctype-alnum: New file.
50516         * modules/unictype/ctype-alpha: New file.
50517         * modules/unictype/ctype-cntrl: New file.
50518         * modules/unictype/ctype-digit: New file.
50519         * modules/unictype/ctype-graph: New file.
50520         * modules/unictype/ctype-lower: New file.
50521         * modules/unictype/ctype-print: New file.
50522         * modules/unictype/ctype-punct: New file.
50523         * modules/unictype/ctype-space: New file.
50524         * modules/unictype/ctype-upper: New file.
50525         * modules/unictype/ctype-xdigit: New file.
50526         * modules/unictype/ctype-blank: New file.
50527         * lib/unictype/bidi_byname.c: New file.
50528         * lib/unictype/bidi_name.c: New file.
50529         * lib/unictype/bidi_of.c: New file.
50530         * lib/unictype/bidi_test.c: New file.
50531         * lib/unictype/bitmap.h: New file.
50532         * lib/unictype/block_test.c: New file.
50533         * lib/unictype/blocks.c: New file.
50534         * lib/unictype/categ_C.c: New file.
50535         * lib/unictype/categ_Cc.c: New file.
50536         * lib/unictype/categ_Cf.c: New file.
50537         * lib/unictype/categ_Cn.c: New file.
50538         * lib/unictype/categ_Co.c: New file.
50539         * lib/unictype/categ_Cs.c: New file.
50540         * lib/unictype/categ_L.c: New file.
50541         * lib/unictype/categ_Ll.c: New file.
50542         * lib/unictype/categ_Lm.c: New file.
50543         * lib/unictype/categ_Lo.c: New file.
50544         * lib/unictype/categ_Lt.c: New file.
50545         * lib/unictype/categ_Lu.c: New file.
50546         * lib/unictype/categ_M.c: New file.
50547         * lib/unictype/categ_Mc.c: New file.
50548         * lib/unictype/categ_Me.c: New file.
50549         * lib/unictype/categ_Mn.c: New file.
50550         * lib/unictype/categ_N.c: New file.
50551         * lib/unictype/categ_Nd.c: New file.
50552         * lib/unictype/categ_Nl.c: New file.
50553         * lib/unictype/categ_No.c: New file.
50554         * lib/unictype/categ_P.c: New file.
50555         * lib/unictype/categ_Pc.c: New file.
50556         * lib/unictype/categ_Pd.c: New file.
50557         * lib/unictype/categ_Pe.c: New file.
50558         * lib/unictype/categ_Pf.c: New file.
50559         * lib/unictype/categ_Pi.c: New file.
50560         * lib/unictype/categ_Po.c: New file.
50561         * lib/unictype/categ_Ps.c: New file.
50562         * lib/unictype/categ_S.c: New file.
50563         * lib/unictype/categ_Sc.c: New file.
50564         * lib/unictype/categ_Sk.c: New file.
50565         * lib/unictype/categ_Sm.c: New file.
50566         * lib/unictype/categ_So.c: New file.
50567         * lib/unictype/categ_Z.c: New file.
50568         * lib/unictype/categ_Zl.c: New file.
50569         * lib/unictype/categ_Zp.c: New file.
50570         * lib/unictype/categ_Zs.c: New file.
50571         * lib/unictype/categ_and.c: New file.
50572         * lib/unictype/categ_and_not.c: New file.
50573         * lib/unictype/categ_byname.c: New file.
50574         * lib/unictype/categ_name.c: New file.
50575         * lib/unictype/categ_none.c: New file.
50576         * lib/unictype/categ_of.c: New file.
50577         * lib/unictype/categ_or.c: New file.
50578         * lib/unictype/categ_test.c: New file.
50579         * lib/unictype/combining.c: New file.
50580         * lib/unictype/ctype_alnum.c: New file.
50581         * lib/unictype/ctype_alpha.c: New file.
50582         * lib/unictype/ctype_blank.c: New file.
50583         * lib/unictype/ctype_cntrl.c: New file.
50584         * lib/unictype/ctype_digit.c: New file.
50585         * lib/unictype/ctype_graph.c: New file.
50586         * lib/unictype/ctype_lower.c: New file.
50587         * lib/unictype/ctype_print.c: New file.
50588         * lib/unictype/ctype_punct.c: New file.
50589         * lib/unictype/ctype_space.c: New file.
50590         * lib/unictype/ctype_upper.c: New file.
50591         * lib/unictype/ctype_xdigit.c: New file.
50592         * lib/unictype/decdigit.c: New file.
50593         * lib/unictype/digit.c: New file.
50594         * lib/unictype/identsyntaxmap.h: New file.
50595         * lib/unictype/mirror.c: New file.
50596         * lib/unictype/numeric.c: New file.
50597         * lib/unictype/pr_alphabetic.c: New file.
50598         * lib/unictype/pr_ascii_hex_digit.c: New file.
50599         * lib/unictype/pr_bidi_arabic_digit.c: New file.
50600         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
50601         * lib/unictype/pr_bidi_block_separator.c: New file.
50602         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
50603         * lib/unictype/pr_bidi_common_separator.c: New file.
50604         * lib/unictype/pr_bidi_control.c: New file.
50605         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
50606         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
50607         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
50608         * lib/unictype/pr_bidi_european_digit.c: New file.
50609         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
50610         * lib/unictype/pr_bidi_left_to_right.c: New file.
50611         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
50612         * lib/unictype/pr_bidi_other_neutral.c: New file.
50613         * lib/unictype/pr_bidi_pdf.c: New file.
50614         * lib/unictype/pr_bidi_segment_separator.c: New file.
50615         * lib/unictype/pr_bidi_whitespace.c: New file.
50616         * lib/unictype/pr_byname.c: New file.
50617         * lib/unictype/pr_byname.gperf: New file.
50618         * lib/unictype/pr_combining.c: New file.
50619         * lib/unictype/pr_composite.c: New file.
50620         * lib/unictype/pr_currency_symbol.c: New file.
50621         * lib/unictype/pr_dash.c: New file.
50622         * lib/unictype/pr_decimal_digit.c: New file.
50623         * lib/unictype/pr_default_ignorable_code_point.c: New file.
50624         * lib/unictype/pr_deprecated.c: New file.
50625         * lib/unictype/pr_diacritic.c: New file.
50626         * lib/unictype/pr_extender.c: New file.
50627         * lib/unictype/pr_format_control.c: New file.
50628         * lib/unictype/pr_grapheme_base.c: New file.
50629         * lib/unictype/pr_grapheme_extend.c: New file.
50630         * lib/unictype/pr_grapheme_link.c: New file.
50631         * lib/unictype/pr_hex_digit.c: New file.
50632         * lib/unictype/pr_hyphen.c: New file.
50633         * lib/unictype/pr_id_continue.c: New file.
50634         * lib/unictype/pr_id_start.c: New file.
50635         * lib/unictype/pr_ideographic.c: New file.
50636         * lib/unictype/pr_ids_binary_operator.c: New file.
50637         * lib/unictype/pr_ids_trinary_operator.c: New file.
50638         * lib/unictype/pr_ignorable_control.c: New file.
50639         * lib/unictype/pr_iso_control.c: New file.
50640         * lib/unictype/pr_join_control.c: New file.
50641         * lib/unictype/pr_left_of_pair.c: New file.
50642         * lib/unictype/pr_line_separator.c: New file.
50643         * lib/unictype/pr_logical_order_exception.c: New file.
50644         * lib/unictype/pr_lowercase.c: New file.
50645         * lib/unictype/pr_math.c: New file.
50646         * lib/unictype/pr_non_break.c: New file.
50647         * lib/unictype/pr_not_a_character.c: New file.
50648         * lib/unictype/pr_numeric.c: New file.
50649         * lib/unictype/pr_other_alphabetic.c: New file.
50650         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
50651         * lib/unictype/pr_other_grapheme_extend.c: New file.
50652         * lib/unictype/pr_other_id_continue.c: New file.
50653         * lib/unictype/pr_other_id_start.c: New file.
50654         * lib/unictype/pr_other_lowercase.c: New file.
50655         * lib/unictype/pr_other_math.c: New file.
50656         * lib/unictype/pr_other_uppercase.c: New file.
50657         * lib/unictype/pr_paired_punctuation.c: New file.
50658         * lib/unictype/pr_paragraph_separator.c: New file.
50659         * lib/unictype/pr_pattern_syntax.c: New file.
50660         * lib/unictype/pr_pattern_white_space.c: New file.
50661         * lib/unictype/pr_private_use.c: New file.
50662         * lib/unictype/pr_punctuation.c: New file.
50663         * lib/unictype/pr_quotation_mark.c: New file.
50664         * lib/unictype/pr_radical.c: New file.
50665         * lib/unictype/pr_sentence_terminal.c: New file.
50666         * lib/unictype/pr_soft_dotted.c: New file.
50667         * lib/unictype/pr_space.c: New file.
50668         * lib/unictype/pr_terminal_punctuation.c: New file.
50669         * lib/unictype/pr_test.c: New file.
50670         * lib/unictype/pr_titlecase.c: New file.
50671         * lib/unictype/pr_unassigned_code_value.c: New file.
50672         * lib/unictype/pr_unified_ideograph.c: New file.
50673         * lib/unictype/pr_uppercase.c: New file.
50674         * lib/unictype/pr_variation_selector.c: New file.
50675         * lib/unictype/pr_white_space.c: New file.
50676         * lib/unictype/pr_xid_continue.c: New file.
50677         * lib/unictype/pr_xid_start.c: New file.
50678         * lib/unictype/pr_zero_width.c: New file.
50679         * lib/unictype/scripts.c: New file.
50680         * lib/unictype/sy_c_ident.c: New file.
50681         * lib/unictype/sy_c_whitespace.c: New file.
50682         * lib/unictype/sy_java_ident.c: New file.
50683         * lib/unictype/sy_java_whitespace.c: New file.
50684
50685         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
50686         Unicode 5.0.0.
50687         * lib/unictype/blocks.h: Likewise.
50688         * lib/unictype/categ_C.h: Likewise.
50689         * lib/unictype/categ_Cc.h: Likewise.
50690         * lib/unictype/categ_Cf.h: Likewise.
50691         * lib/unictype/categ_Cn.h: Likewise.
50692         * lib/unictype/categ_Co.h: Likewise.
50693         * lib/unictype/categ_Cs.h: Likewise.
50694         * lib/unictype/categ_L.h: Likewise.
50695         * lib/unictype/categ_Ll.h: Likewise.
50696         * lib/unictype/categ_Lm.h: Likewise.
50697         * lib/unictype/categ_Lo.h: Likewise.
50698         * lib/unictype/categ_Lt.h: Likewise.
50699         * lib/unictype/categ_Lu.h: Likewise.
50700         * lib/unictype/categ_M.h: Likewise.
50701         * lib/unictype/categ_Mc.h: Likewise.
50702         * lib/unictype/categ_Me.h: Likewise.
50703         * lib/unictype/categ_Mn.h: Likewise.
50704         * lib/unictype/categ_N.h: Likewise.
50705         * lib/unictype/categ_Nd.h: Likewise.
50706         * lib/unictype/categ_Nl.h: Likewise.
50707         * lib/unictype/categ_No.h: Likewise.
50708         * lib/unictype/categ_P.h: Likewise.
50709         * lib/unictype/categ_Pc.h: Likewise.
50710         * lib/unictype/categ_Pd.h: Likewise.
50711         * lib/unictype/categ_Pe.h: Likewise.
50712         * lib/unictype/categ_Pf.h: Likewise.
50713         * lib/unictype/categ_Pi.h: Likewise.
50714         * lib/unictype/categ_Po.h: Likewise.
50715         * lib/unictype/categ_Ps.h: Likewise.
50716         * lib/unictype/categ_S.h: Likewise.
50717         * lib/unictype/categ_Sc.h: Likewise.
50718         * lib/unictype/categ_Sk.h: Likewise.
50719         * lib/unictype/categ_Sm.h: Likewise.
50720         * lib/unictype/categ_So.h: Likewise.
50721         * lib/unictype/categ_Z.h: Likewise.
50722         * lib/unictype/categ_Zl.h: Likewise.
50723         * lib/unictype/categ_Zp.h: Likewise.
50724         * lib/unictype/categ_Zs.h: Likewise.
50725         * lib/unictype/categ_of.h: Likewise.
50726         * lib/unictype/combining.h: Likewise.
50727         * lib/unictype/ctype_alnum.h: Likewise.
50728         * lib/unictype/ctype_alpha.h: Likewise.
50729         * lib/unictype/ctype_blank.h: Likewise.
50730         * lib/unictype/ctype_cntrl.h: Likewise.
50731         * lib/unictype/ctype_digit.h: Likewise.
50732         * lib/unictype/ctype_graph.h: Likewise.
50733         * lib/unictype/ctype_lower.h: Likewise.
50734         * lib/unictype/ctype_print.h: Likewise.
50735         * lib/unictype/ctype_punct.h: Likewise.
50736         * lib/unictype/ctype_space.h: Likewise.
50737         * lib/unictype/ctype_upper.h: Likewise.
50738         * lib/unictype/ctype_xdigit.h: Likewise.
50739         * lib/unictype/decdigit.h: Likewise.
50740         * lib/unictype/digit.h: Likewise.
50741         * lib/unictype/mirror.h: Likewise.
50742         * lib/unictype/numeric.h: Likewise.
50743         * lib/unictype/pr_alphabetic.h: Likewise.
50744         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
50745         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
50746         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
50747         * lib/unictype/pr_bidi_block_separator.h: Likewise.
50748         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
50749         * lib/unictype/pr_bidi_common_separator.h: Likewise.
50750         * lib/unictype/pr_bidi_control.h: Likewise.
50751         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
50752         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
50753         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
50754         * lib/unictype/pr_bidi_european_digit.h: Likewise.
50755         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
50756         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
50757         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
50758         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
50759         * lib/unictype/pr_bidi_pdf.h: Likewise.
50760         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
50761         * lib/unictype/pr_bidi_whitespace.h: Likewise.
50762         * lib/unictype/pr_combining.h: Likewise.
50763         * lib/unictype/pr_composite.h: Likewise.
50764         * lib/unictype/pr_currency_symbol.h: Likewise.
50765         * lib/unictype/pr_dash.h: Likewise.
50766         * lib/unictype/pr_decimal_digit.h: Likewise.
50767         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
50768         * lib/unictype/pr_deprecated.h: Likewise.
50769         * lib/unictype/pr_diacritic.h: Likewise.
50770         * lib/unictype/pr_extender.h: Likewise.
50771         * lib/unictype/pr_format_control.h: Likewise.
50772         * lib/unictype/pr_grapheme_base.h: Likewise.
50773         * lib/unictype/pr_grapheme_extend.h: Likewise.
50774         * lib/unictype/pr_grapheme_link.h: Likewise.
50775         * lib/unictype/pr_hex_digit.h: Likewise.
50776         * lib/unictype/pr_hyphen.h: Likewise.
50777         * lib/unictype/pr_id_continue.h: Likewise.
50778         * lib/unictype/pr_id_start.h: Likewise.
50779         * lib/unictype/pr_ideographic.h: Likewise.
50780         * lib/unictype/pr_ids_binary_operator.h: Likewise.
50781         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
50782         * lib/unictype/pr_ignorable_control.h: Likewise.
50783         * lib/unictype/pr_iso_control.h: Likewise.
50784         * lib/unictype/pr_join_control.h: Likewise.
50785         * lib/unictype/pr_left_of_pair.h: Likewise.
50786         * lib/unictype/pr_line_separator.h: Likewise.
50787         * lib/unictype/pr_logical_order_exception.h: Likewise.
50788         * lib/unictype/pr_lowercase.h: Likewise.
50789         * lib/unictype/pr_math.h: Likewise.
50790         * lib/unictype/pr_non_break.h: Likewise.
50791         * lib/unictype/pr_not_a_character.h: Likewise.
50792         * lib/unictype/pr_numeric.h: Likewise.
50793         * lib/unictype/pr_other_alphabetic.h: Likewise.
50794         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
50795         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
50796         * lib/unictype/pr_other_id_continue.h: Likewise.
50797         * lib/unictype/pr_other_id_start.h: Likewise.
50798         * lib/unictype/pr_other_lowercase.h: Likewise.
50799         * lib/unictype/pr_other_math.h: Likewise.
50800         * lib/unictype/pr_other_uppercase.h: Likewise.
50801         * lib/unictype/pr_paired_punctuation.h: Likewise.
50802         * lib/unictype/pr_paragraph_separator.h: Likewise.
50803         * lib/unictype/pr_pattern_syntax.h: Likewise.
50804         * lib/unictype/pr_pattern_white_space.h: Likewise.
50805         * lib/unictype/pr_private_use.h: Likewise.
50806         * lib/unictype/pr_punctuation.h: Likewise.
50807         * lib/unictype/pr_quotation_mark.h: Likewise.
50808         * lib/unictype/pr_radical.h: Likewise.
50809         * lib/unictype/pr_sentence_terminal.h: Likewise.
50810         * lib/unictype/pr_soft_dotted.h: Likewise.
50811         * lib/unictype/pr_space.h: Likewise.
50812         * lib/unictype/pr_terminal_punctuation.h: Likewise.
50813         * lib/unictype/pr_titlecase.h: Likewise.
50814         * lib/unictype/pr_unassigned_code_value.h: Likewise.
50815         * lib/unictype/pr_unified_ideograph.h: Likewise.
50816         * lib/unictype/pr_uppercase.h: Likewise.
50817         * lib/unictype/pr_variation_selector.h: Likewise.
50818         * lib/unictype/pr_white_space.h: Likewise.
50819         * lib/unictype/pr_xid_continue.h: Likewise.
50820         * lib/unictype/pr_xid_start.h: Likewise.
50821         * lib/unictype/pr_zero_width.h: Likewise.
50822         * lib/unictype/scripts.h: Likewise.
50823         * lib/unictype/scripts_byname.gperf: Likewise.
50824         * lib/unictype/sy_c_ident.h: Likewise.
50825         * lib/unictype/sy_c_whitespace.h: Likewise.
50826         * lib/unictype/sy_java_ident.h: Likewise.
50827         * lib/unictype/sy_java_whitespace.h: Likewise.
50828
50829         * lib/unictype/Makefile: New file.
50830         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
50831         glibc.
50832         * lib/unictype/3level.h: New file, copied from glibc.
50833         * lib/unictype/3levelbit.h: New file.
50834
50835 2007-11-11  Bruno Haible  <bruno@clisp.org>
50836
50837         * modules/gperf: New file.
50838         * modules/iconv_open (Depends-on): Add it.
50839         (Makefile.am): Remove the GPERF definition.
50840
50841 2007-11-11  Bruno Haible  <bruno@clisp.org>
50842
50843         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
50844         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
50845
50846 2007-11-11  Bruno Haible  <bruno@clisp.org>
50847
50848         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
50849         (usage): Remove function.
50850
50851 2007-11-11  Bruno Haible  <bruno@clisp.org>
50852
50853         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
50854         gl_FUNC_CEILF_LIBS.
50855         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
50856         gl_FUNC_CEIL_LIBS.
50857         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
50858         gl_FUNC_CEILL_LIBS.
50859         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
50860         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
50861         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
50862
50863 2007-11-11  Bruno Haible  <bruno@clisp.org>
50864
50865         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
50866         roundf were declared but do not exist on functions.
50867         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
50868         roundl were declared but do not exist on functions.
50869         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
50870         HAVE_FLOORL_AND_CEILL, respectively.
50871         Needed for Sun C on Solaris 10.
50872
50873 2007-11-11  Bruno Haible  <bruno@clisp.org>
50874
50875         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
50876         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
50877         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
50878         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
50879         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
50880         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
50881         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
50882         HAVE_DECL_ROUNDF.
50883         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
50884         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
50885         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
50886         of HAVE_DECL_ROUND*.
50887         * modules/math (Makefile.am): Update.
50888
50889 2007-11-10  Bruno Haible  <bruno@clisp.org>
50890
50891         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
50892         ptrdiff_t as m4/intl.m4.
50893
50894 2007-11-10  Jim Meyering  <meyering@redhat.com>
50895
50896         Avoid link failure for the argmatch test.
50897         * tests/test-argmatch.c (usage): Define function to avoid a link
50898         failure: argmatch_die requires a usage function.
50899
50900 2007-11-09  Bruno Haible  <bruno@clisp.org>
50901
50902         * doc/functions/snprintf.texi: Mention BeOS deficiency.
50903         * doc/functions/vsnprintf.texi: Likewise.
50904         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
50905         with a size argument < 2.
50906
50907 2007-11-09  Bruno Haible  <bruno@clisp.org>
50908
50909         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
50910         buffer. Fixes an inefficiency introduced on 2007-11-03.
50911
50912 2007-11-09  Bruno Haible  <bruno@clisp.org>
50913
50914         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
50915         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
50916
50917 2007-11-08  Jim Meyering  <meyering@redhat.com>
50918
50919         Change cache variable name prefix "jm_" to "gl_" everywhere.
50920         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
50921         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
50922         * m4/uptime.m4: s/gl_/jm_/
50923
50924 2007-11-07  Bruno Haible  <bruno@clisp.org>
50925
50926         Update to GNU gettext 0.17.
50927         * m4/intl.m4: Update to GNU gettext 0.17.
50928         * m4/po.m4: Likewise.
50929         * modules/gettext (Files): Remove m4/ulonglong.m4.
50930         (configure.ac): Require gettext infrastructure from version 0.17.
50931
50932 2007-11-06  Bruno Haible  <bruno@clisp.org>
50933
50934         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
50935         symbolic values are not defined in a public header.
50936         * lib/freadable.c (freadable) [QNX]: Likewise.
50937         * lib/freadahead.c (freadahead) [QNX]: Likewise.
50938         * lib/freading.c (freading) [QNX]: Likewise.
50939         * lib/fseterr.c (fseterr) [QNX]: Likewise.
50940         * lib/fwritable.c (fwritable) [QNX]: Likewise.
50941         * lib/fwriting.c (fwriting) [QNX]: Likewise.
50942         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
50943         Reported by Alain Magloire.
50944
50945         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
50946
50947 2007-11-05  Bruno Haible  <bruno@clisp.org>
50948
50949         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
50950         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
50951         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
50952         Reported by Eric Blake.
50953
50954 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50955             Bruno Haible  <bruno@clisp.org>
50956
50957         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
50958         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
50959         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
50960         (malloc): Undefine also before including <stdlib.h>.
50961         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
50962         Needed on OSF/1 4.0.
50963
50964 2007-11-05  Jim Meyering  <meyering@redhat.com>
50965
50966         git-version-gen: sync from coreutils.
50967         * build-aux/git-version-gen: Add comments.
50968         Change the first '-' to '.' in the snapshot version string,
50969         e.g., 6.9-377-08144 -> 6.9.377-08144
50970         Remove first parameter.
50971         Don't declare a version "-dirty" merely because a time
50972         stamp has changed.
50973
50974 2007-11-04  Bruno Haible  <bruno@clisp.org>
50975
50976         * lib/lock.h: Protect all macro definitions containing an 'if'
50977         statement through a "do { ... } while (0)".
50978         * lib/tls.h: Likewise.
50979
50980 2007-11-04  Bruno Haible  <bruno@clisp.org>
50981
50982         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
50983
50984 2007-11-04  Bruno Haible  <bruno@clisp.org>
50985
50986         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
50987         * modules/fprintf-posix (Depends-on): Add nocrash.
50988         * modules/snprintf-posix (Depends-on): Likewise.
50989         * modules/sprintf-posix (Depends-on): Likewise.
50990         * modules/vasnprintf-posix (Depends-on): Likewise.
50991         * modules/vasprintf-posix (Depends-on): Likewise.
50992         * modules/vfprintf-posix (Depends-on): Likewise.
50993         * modules/vsnprintf-posix (Depends-on): Likewise.
50994         * modules/vsprintf-posix (Depends-on): Likewise.
50995         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50996         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50997         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50998         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50999         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51000         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51001         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51002
51003 2007-11-04  Bruno Haible  <bruno@clisp.org>
51004
51005         * modules/nocrash: New file.
51006         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
51007         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
51008
51009 2007-11-04  Bruno Haible  <bruno@clisp.org>
51010
51011         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
51012         precision handling.
51013         * tests/test-vasprintf-posix.c (test_function): Likewise.
51014         * tests/test-snprintf-posix.h (test_function): Likewise.
51015         * tests/test-sprintf-posix.h (test_function): Likewise.
51016
51017         Fix *printf behaviour for large precisions on mingw and BeOS.
51018         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
51019         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
51020         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
51021         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51022         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51023         gl_PRINTF_PRECISION and test its result. Invoke
51024         gl_PREREQ_VASNPRINTF_PRECISION.
51025         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51026         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51027         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51028         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51029         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51030         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51031         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51032         * doc/functions/fprintf.texi: Update.
51033         * doc/functions/printf.texi: Update.
51034         * doc/functions/snprintf.texi: Update.
51035         * doc/functions/sprintf.texi: Update.
51036         * doc/functions/vfprintf.texi: Update.
51037         * doc/functions/vprintf.texi: Update.
51038         * doc/functions/vsnprintf.texi: Update.
51039         * doc/functions/vsprintf.texi: Update.
51040
51041 2007-11-04  Bruno Haible  <bruno@clisp.org>
51042
51043         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
51044
51045 2007-11-04  Bruno Haible  <bruno@clisp.org>
51046
51047         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
51048         Reported by Sylvain Beucler <beuc@gnu.org>.
51049
51050 2007-11-03  Bruno Haible  <bruno@clisp.org>
51051
51052         * tests/test-fprintf-posix2.sh: New file.
51053         * tests/test-fprintf-posix2.c: New file.
51054         * modules/fprintf-posix-tests (Files): Add them.
51055         (TESTS): Add test-fprintf-posix2.sh.
51056         (configure.ac): Check for getrlimit and setrlimit.
51057         (check_PROGRAMS): Add test-fprintf-posix2.
51058
51059         * tests/test-printf-posix2.sh: New file.
51060         * tests/test-printf-posix2.c: New file.
51061         * modules/printf-posix-tests (Files): Add them.
51062         (TESTS): Add test-printf-posix2.sh.
51063         (configure.ac): Check for getrlimit and setrlimit.
51064         (check_PROGRAMS): Add test-printf-posix2.
51065
51066         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
51067         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
51068         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
51069         (decode_double): New function, copied from decode_long_double.
51070         (scale10_round_decimal_decoded): New function, extracted from
51071         scale10_round_decimal_long_double.
51072         (scale10_round_decimal_long_double): Use it.
51073         (scale10_round_decimal_double): New function.
51074         (floorlog10): New function.
51075         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
51076         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
51077         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
51078         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
51079         gl_PRINTF_ENOMEM and test its result. Invoke
51080         gl_PREREQ_VASNPRINTF_ENOMEM.
51081         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
51082         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
51083         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
51084         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
51085         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
51086         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
51087         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
51088         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
51089         * modules/snprintf-posix (Depends-on): Likewise.
51090         * modules/sprintf-posix (Depends-on): Likewise.
51091         * modules/vasnprintf-posix (Depends-on): Likewise.
51092         * modules/vasprintf-posix (Depends-on): Likewise.
51093         * modules/vfprintf-posix (Depends-on): Likewise.
51094         * modules/vsnprintf-posix (Depends-on): Likewise.
51095         * modules/vsprintf-posix (Depends-on): Likewise.
51096         * doc/functions/fprintf.texi: Update.
51097         * doc/functions/printf.texi: Update.
51098         * doc/functions/snprintf.texi: Update.
51099         * doc/functions/sprintf.texi: Update.
51100         * doc/functions/vfprintf.texi: Update.
51101         * doc/functions/vprintf.texi: Update.
51102         * doc/functions/vsnprintf.texi: Update.
51103         * doc/functions/vsprintf.texi: Update.
51104
51105 2007-11-03  Bruno Haible  <bruno@clisp.org>
51106
51107         * modules/frexp-nolibm-tests: New file.
51108
51109         * modules/frexp-nolibm: New file.
51110         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
51111
51112 2007-11-03  Bruno Haible  <bruno@clisp.org>
51113
51114         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
51115         value is C99 compliant.
51116         Needed for OSF/1 5.1.
51117
51118 2007-11-03  Bruno Haible  <bruno@clisp.org>
51119
51120         Fix out-of-memory handling of vasnprintf.
51121         * lib/printf-parse.c: Include <errno.h>.
51122         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
51123         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
51124         is already set.
51125
51126 2007-11-02  Eric Blake  <ebb9@byu.net>
51127
51128         Fix tests on cygwin.
51129         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
51130
51131 2007-11-01  Bruno Haible  <bruno@clisp.org>
51132
51133         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
51134         warning.
51135         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
51136         needed for POSIX compatibility.
51137
51138 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
51139
51140         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
51141         for compatibility with GNU.
51142
51143 2007-11-01  Bruno Haible  <bruno@clisp.org>
51144
51145         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
51146         (putenv): Renamed from rpl_putenv. Change argument type from
51147         'const char *' to 'char *'.
51148         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
51149         of defining putenv in config.h, just set REPLACE_PUTENV.
51150         * modules/putenv (Depends-on): Add stdlib.
51151         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51152         (Include): Use <stdlib.h>.
51153         * lib/stdlib.in.h (putenv): New declaration.
51154         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
51155         REPLACE_PUTENV.
51156         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
51157         REPLACE_PUTENV.
51158         Needed for MacOS X 10.5.0.
51159         Reported by Peter O'Gorman <peter@pogma.com>.
51160
51161 2007-11-01  Jim Meyering  <meyering@redhat.com>
51162
51163         Treat an empty date string exactly like "0".
51164         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
51165         if the remaining date string (to be parsed) is empty, use "0".
51166         Reported by Mischa Molhoek and discussed in this thread:
51167         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
51168
51169 2007-10-31  Bruno Haible  <bruno@clisp.org>
51170
51171         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
51172         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
51173         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
51174         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
51175         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
51176         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
51177
51178 2007-10-31  Bruno Haible  <bruno@clisp.org>
51179
51180         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
51181         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
51182         (AC_TYPE_LONG_LONG_INT): Use it.
51183         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
51184         it as well.
51185         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
51186         to m4/longlong.m4.
51187         * modules/stdint (Files): Remove m4/ulonglong.m4.
51188         * modules/strtoull (Files): Use m4/longlong.m4 instead of
51189         m4/ulonglong.m4.
51190         * modules/strtoumax (Files): Likewise.
51191
51192 2007-10-30  Bruno Haible  <bruno@clisp.org>
51193
51194         * modules/xvasprintf-posix: New file.
51195         Suggested by Eric Blake.
51196
51197 2007-10-30  Bruno Haible  <bruno@clisp.org>
51198
51199         * modules/xprintf-posix-tests: New file.
51200         * tests/test-xprintf-posix.sh: New file.
51201         * tests/test-xprintf-posix.c: New file.
51202         * tests/test-xfprintf-posix.c: New file.
51203
51204         * modules/xprintf-posix: New file.
51205
51206 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51207
51208         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
51209         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
51210         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
51211
51212 2007-10-29  Bruno Haible  <bruno@clisp.org>
51213
51214         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
51215         contain the special marker '_cv_'.
51216         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
51217         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
51218         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
51219         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
51220         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
51221         Reported by Ralf Wildenhues.
51222
51223 2007-10-29  Bruno Haible  <bruno@clisp.org>
51224
51225         * gnulib-tool (func_import): When --lgpl is not specified, set
51226         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
51227         GPLv3.
51228         Reported by Simon Josefsson.
51229
51230 2007-10-28  Bruno Haible  <bruno@clisp.org>
51231
51232         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
51233         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
51234         HAVE_DECL_ISFINITE.
51235         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
51236         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
51237         HAVE_DECL_ISFINITE.
51238
51239 2007-10-28  Bruno Haible  <bruno@clisp.org>
51240
51241         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
51242         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
51243
51244 2007-10-28  Bruno Haible  <bruno@clisp.org>
51245
51246         Fix link errors with Sun C 5.0 on Solaris 10.
51247         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
51248         function is declared but not present in the compiler's libm.
51249         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
51250         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
51251         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
51252         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
51253         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
51254         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
51255         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
51256         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
51257         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
51258         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
51259         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
51260         HAVE_DECL_FLOORL.
51261
51262 2007-10-28  Bruno Haible  <bruno@clisp.org>
51263
51264         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
51265         gl_FUNC_FLOORL. Cache the result.
51266         (gl_FUNC_FLOORL): Use it.
51267         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
51268         gl_FUNC_CEILL. Cache the result.
51269         (gl_FUNC_CEILL): Use it.
51270
51271         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
51272         gl_FUNC_FLOOR. Cache the result.
51273         (gl_FUNC_FLOOR): Use it.
51274         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
51275         gl_FUNC_CEIL. Cache the result.
51276         (gl_FUNC_CEIL): Use it.
51277
51278         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
51279         gl_FUNC_FLOORF. Cache the result.
51280         (gl_FUNC_FLOORF): Use it.
51281         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
51282         gl_FUNC_CEILF. Cache the result.
51283         (gl_FUNC_CEILF): Use it.
51284
51285 2007-10-28  Bruno Haible  <bruno@clisp.org>
51286
51287         * gnulib-tool: Allow specifying the LGPL version number through
51288         --lgpl=2 or --lgpl=3.
51289         (func_usage): Document --lgpl with argument.
51290         Handle --lgpl=... arguments.
51291         (func_import): Recognize also gl_LGPL calls with an argument. When
51292         --lgpl=2 is used and the module's license is just LGPL, report an
51293         error. Set sed_transform_lib_file according to the lgpl variable. In
51294         the generated files, use --lgpl or gl_LGPL invocations with argument,
51295         if necessary.
51296         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
51297         an LGPv2+ license.
51298         * doc/gnulib-tool.texi (Modified imports): Update explanation of
51299         gl_LGPL macro.
51300
51301 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51302             Bruno Haible  <bruno@clisp.org>
51303
51304         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
51305         (u16_uctomb_aux): Likewise.
51306         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
51307         !HAVE_INLINE.
51308         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
51309
51310 2007-10-28  Bruno Haible  <bruno@clisp.org>
51311
51312         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
51313         Invoke AM_GETTEXT_OPTION if it exists.
51314         * modules/vasprintf: Likewise.
51315         * modules/verror: Likewise.
51316         * modules/xprintf: Likewise.
51317         * modules/xvasprintf: Likewise.
51318
51319 2007-10-27  Ben Pfaff  <blp@gnu.org>
51320
51321         * lib/math.in.h: Define isfinite macro and prototypes for
51322         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
51323         implementations.
51324         * m4/math_h.m4: New substitutions for isfinite module.
51325         * lib/isfinite.c: New file.
51326         * m4/isfinite.m4: New file.
51327         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
51328         * modules/isfinite: New file.
51329         * modules/isfinite-tests: New file.
51330         * tests/tests-isfinite.c: New file.
51331         * doc/functions/isfinite.texi: Mention isfinite module.
51332         * MODULES.html.sh: Mention new module.
51333
51334 2007-10-27  Ben Pfaff  <blp@gnu.org>
51335
51336         Ralf Wildenhues reported that Tru64 4.0D declares the round
51337         functions but does not have definitions.
51338         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
51339         cannot be found in any library, set the output variable to
51340         "missing" instead of "".
51341         * m4/round.m4: Also use our substitute if we cannot find round in
51342         any library, even if it is declared.
51343         * m4/roundf.m4: Likewise for roundf.
51344         * m4/roundl.m4: Likewise for roundl.
51345         * lib/math.in.h: Undefine roundf, round, roundl before defining
51346         their replacements, to allow for hypothetical systems where these
51347         may be defined as macros but not available in libraries.
51348
51349 2007-10-27  Bruno Haible  <bruno@clisp.org>
51350
51351         * doc/gnulib.texi: Invoke @firstparagraphindent.
51352         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
51353         changes in gnulib.
51354         (Source changes): New section.
51355
51356 2007-10-26  Bruno Haible  <bruno@clisp.org>
51357
51358         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
51359         borrowed from autoconf.
51360
51361 2007-10-26  Bruno Haible  <bruno@clisp.org>
51362
51363         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
51364         strerror returned the empty string. Needed on HP-UX 11.00.
51365
51366 2007-10-24  Micah Cowan  <micah@cowan.name>
51367
51368         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
51369         * build-aux/bootstrap: Remove support for now-unnecessary option,
51370         --cvs-user, and envvars CVS_USER, CVS_RSH.
51371
51372 2007-10-24  Jim Meyering  <meyering@redhat.com>
51373
51374         Avoid diagnostics from sha1sum when there is no cached checksum.
51375         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
51376         if the po.s1 file hasn't been created yet.
51377
51378         * build-aux/bootstrap: Sync from coreutils:
51379         2007-10-24  Jim Meyering  <meyering@redhat.com>
51380         Get gnulib from the git repository, not from an obsolete cvs one.
51381         * build-aux/bootstrap: Suggestion from Micah Cowan.
51382         2007-10-04  Jim Meyering  <jim@meyering.net>
51383         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
51384         (update_po_files): Work also when there are no .po files in po/.
51385
51386 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
51387
51388         * README: Append ".git" to git and cg examples.
51389         Problem reported by Benoit Sigoure.
51390
51391 2007-10-23  Micah Cowan  <micah@cowan.name>
51392
51393         * users.txt: Add wget.
51394
51395 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51396
51397         Fix linking of some unistdio tests on FreeBSD.
51398         * modules/unistdio/u16-vsnprintf-tests
51399         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
51400         * modules/unistdio/u16-vsprintf-tests
51401         (test_u16_vsnprintf1_LDADD): Likewise.
51402         * modules/unistdio/u32-vsnprintf-tests
51403         (test_u32_vsnprintf1_LDADD): Likewise.
51404         * modules/unistdio/u32-vsprintf-tests
51405         (test_u32_vsprintf1_LDADD): Likewise.
51406         * modules/unistdio/u8-vsnprintf-tests
51407         (test_u8_vsnprintf1_LDADD): Likewise.
51408         * modules/unistdio/u8-vsprintf-tests
51409         (test_u8_vsprintf1_LDADD): Likewise.
51410         * modules/unistdio/ulc-vsnprintf-tests
51411         (test_ulc_vsnprintf1_LDADD): Likewise.
51412         * modules/unistdio/ulc-vsprintf-tests
51413         (test_ulc_vsprintf1_LDADD): Likewise.
51414
51415         Fix linking of some uniconv tests on FreeBSD.
51416         * modules/uniconv/u16-conv-from-enc-tests
51417         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
51418         * modules/uniconv/u16-conv-to-enc-tests
51419         (test_u16_conv_to_enc_LDADD): Likewise.
51420         * modules/uniconv/u16-strconv-from-enc-tests
51421         (test_u16_strconv_from_enc_LDADD): Likewise.
51422         * modules/uniconv/u16-strconv-to-enc-tests
51423         (test_u16_strconv_to_enc_LDADD): Likewise.
51424         * modules/uniconv/u32-conv-from-enc-tests
51425         (test_u32_conv_from_enc_LDADD): Likewise.
51426         * modules/uniconv/u32-conv-to-enc-tests
51427         (test_u32_conv_to_enc_LDADD): Likewise.
51428         * modules/uniconv/u32-strconv-from-enc-tests
51429         (test_u32_strconv_from_enc_LDADD): Likewise.
51430         * modules/uniconv/u32-strconv-to-enc-tests
51431         (test_u32_strconv_to_enc_LDADD): Likewise.
51432         * modules/uniconv/u8-conv-from-enc-tests
51433         (test_u8_conv_from_enc_LDADD): Likewise.
51434         * modules/uniconv/u8-conv-to-enc-tests
51435         (test_u8_conv_to_enc_LDADD): Likewise.
51436         * modules/uniconv/u8-strconv-from-enc-tests
51437         (test_u8_strconv_from_enc_LDADD): Likewise.
51438         * modules/uniconv/u8-strconv-to-enc-tests
51439         (test_u8_strconv_to_enc_LDADD): Likewise.
51440
51441 2007-10-22  Bruno Haible  <bruno@clisp.org>
51442
51443         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
51444         size.
51445
51446 2007-10-22  Eric Blake  <ebb9@byu.net>
51447
51448         Tweak x*printf documentation.
51449         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
51450         variable name and comments.
51451         Suggested by Bruno Haible.
51452
51453 2007-10-22  Bruno Haible  <bruno@clisp.org>
51454
51455         * lib/acl.c (copy_acl): Fix file name in comment.
51456
51457 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
51458
51459         Fix Tru64 problem with stdbool.h.
51460         * lib/stdbool.in.h (false, true):
51461         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
51462         Don't declare as an enum in this situation; it runs afoul of Tru64.
51463         Problem reported by Steven M. Schweda in
51464         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
51465
51466 2007-10-22  Eric Blake  <ebb9@byu.net>
51467
51468         Also wrap vf?printf.
51469         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
51470         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
51471         (xvprintf, xvfprintf): New functions.
51472
51473 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51474
51475         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
51476         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
51477
51478         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
51479         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
51480
51481 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
51482
51483         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
51484         by Bruno Haible.
51485
51486 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51487
51488         * lib/getloadavg.c
51489         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
51490         Undef `sys' after including sys/table.h, for Tru64 4.0D.
51491
51492         * tests/test-i-ring.c: Work for C89.
51493
51494 2007-10-22  Bruno Haible  <bruno@clisp.org>
51495
51496         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
51497         -1u, in preprocessor expression, so that we don't test for the bug
51498         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
51499         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
51500
51501 2007-10-22  Eric Blake  <ebb9@byu.net>
51502
51503         * tests/test-yesno.sh: Silence stderr during test.
51504
51505 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51506
51507         * modules/crypto/gc-camellia: New file.
51508
51509         * m4/gc-camellia.m4: New file.
51510
51511         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
51512
51513         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
51514
51515 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51516
51517         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
51518         --help to stdout.  Reported by sms@antinode.org (Steven
51519         M. Schweda).
51520
51521 2007-10-22  Simon Josefsson  <simon@josefsson.org>
51522
51523         * users.txt: Fix link to libksba.
51524
51525 2007-10-21  Ben Pfaff  <blp@gnu.org>
51526
51527         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
51528         round.c roundf implementation that depends on floorf and ceilf to
51529         be tested unconditionally.
51530
51531 2007-10-21  Ben Pfaff  <blp@gnu.org>
51532
51533         * m4/check-libm-func.m4: Removed.
51534         * m4/check-math-lib.m4: New file.
51535         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
51536         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
51537         definition and lack of AC_LIBOBJ([roundf]).
51538         * m4/roundl.m4: Ditto, and similarly for roundl.
51539         * modules/round: Reference new m4 file.
51540         * modules/roundf: Ditto.
51541         * modules/roundl: Ditto.
51542         * tests/test-round2.c (main): Use ROUND instead of round.
51543         Bug report from Bruno Haible.
51544
51545 2007-10-21  Bruno Haible  <bruno@clisp.org>
51546
51547         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
51548         context.
51549
51550 2007-10-21  Bruno Haible  <bruno@clisp.org>
51551
51552         * tests/test-wcwidth.c (main): Allow negative result for some control
51553         characters.
51554
51555         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
51556         Needed on OSF/1 5.1.
51557
51558 2007-10-21  Bruno Haible  <bruno@clisp.org>
51559
51560         * tests/test-floorf1.c: Include isnanf.h.
51561         (main): Use isnanf() instead of isnan().
51562         * tests/test-ceilf1.c: Include isnanf.h.
51563         (main): Use isnanf() instead of isnan().
51564         * tests/test-truncf1.c: Include isnanf.h.
51565         (main): Use isnanf() instead of isnan().
51566         * tests/test-roundf1.c: Include isnanf.h.
51567         (main): Use isnanf() instead of isnan().
51568
51569 2007-10-21  Eric Blake  <ebb9@byu.net>
51570
51571         * users.txt: Update URL for m4.
51572
51573 2007-10-21  Bruno Haible  <bruno@clisp.org>
51574
51575         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
51576
51577 2007-10-21  Bruno Haible  <bruno@clisp.org>
51578
51579         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
51580         Git's management files if the CVS files are not present.
51581
51582 2007-10-20  Bruno Haible  <bruno@clisp.org>
51583
51584         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
51585         gcc-3.4.x.
51586
51587 2007-10-20  Ben Pfaff  <blp@gnu.org>
51588
51589         * lib/math.in.h: Declare round, roundf, roundl if we are providing
51590         implementations.
51591         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
51592         * lib/round.c: New file.
51593         * lib/roundf.c: New file.
51594         * lib/roundl.c: New file.
51595         * m4/round.m4: New file.
51596         * m4/roundf.m4: New file.
51597         * m4/roundl.m4: New file.
51598         * m4/check-libm-func-m4: New file.
51599         * modules/math: Replace round, roundf, roundl related @VARS@ in
51600         math.in.h.
51601         * modules/round: New file.
51602         * modules/round-tests: New file.
51603         * modules/roundf: New file.
51604         * modules/roundf-tests: New file.
51605         * modules/roundl: New file.
51606         * modules/roundl-tests: New file.
51607         * tests/test-round1.c: New file.
51608         * tests/test-round2.c: New file.
51609         * tests/test-roundf1.c: New file.
51610         * tests/test-roundf2.c: New file.
51611         * tests/test-roundl.c: New file.
51612         * doc/functions/round.texi: Mention round module.
51613         * doc/functions/roundf.texi: Mention roundf module.
51614         * doc/functions/roundl.texi: Mention roundl module.
51615         * MODULES.html.sh: Mention new modules.
51616         Thanks to Bruno Haible for suggestions.
51617
51618 2007-10-20  Jim Meyering  <meyering@redhat.com>
51619
51620         * lib/xprintf.c: Include <config.h> unconditionally.
51621
51622         Change xprintf's license to GPL.
51623         * modules/xprintf (License): s/LGPL/GPL/, since this module
51624         depends on modules (exit and exitfail) which are GPL.
51625         Suggestion from Bruno Haible.
51626
51627         xprintf fixes.
51628         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
51629         Use a clearer diagnostic.
51630         Patch from Bruno Haible.
51631
51632 2007-10-20  Bruno Haible  <bruno@clisp.org>
51633
51634         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
51635         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
51636         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51637
51638 2007-10-20  Bruno Haible  <bruno@clisp.org>
51639
51640         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
51641         precision in the comparison result > x - 1 or similar.
51642         * tests/test-ceilf2.c (correct_result_p): Likewise.
51643         * tests/test-truncf2.c (correct_result_p): Likewise.
51644         * tests/test-trunc2.c (correct_result_p): Likewise.
51645         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51646
51647 2007-10-20  Bruno Haible  <bruno@clisp.org>
51648
51649         * modules/ceil: New file.
51650         * m4/ceil.m4: New file.
51651         * doc/functions/ceil.texi: Mention the 'ceil' module.
51652
51653 2007-10-20  Bruno Haible  <bruno@clisp.org>
51654
51655         * modules/floor: New file.
51656         * m4/floor.m4: New file.
51657         * doc/functions/floor.texi: Mention the 'floor' module.
51658
51659 2007-10-20  Bruno Haible  <bruno@clisp.org>
51660
51661         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
51662         of %a.
51663         * modules/floorf-tests (Depends-on): Likewise.
51664         * modules/truncf-tests (Depends-on): Likewise.
51665         * modules/trunc-tests (Depends-on): Likewise.
51666         Reported by Ben Pfaff.
51667
51668 2007-10-19  Jim Meyering  <meyering@redhat.com>
51669
51670         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
51671         Don't bother testing specific errno values.  Just test ferror.
51672
51673         New module: xprintf
51674         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
51675
51676 2007-10-19  Bruno Haible  <bruno@clisp.org>
51677
51678         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
51679         syntax.
51680         * modules/javaexec (Makefile.am): Likewise.
51681         * modules/relocatable-prog (Makefile.am): Likewise.
51682         Suggested by Jim Meyering.
51683
51684 2007-10-18  Bruno Haible  <bruno@clisp.org>
51685
51686         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
51687         Reported by Jim Meyering.
51688
51689 2007-10-18  Eric Blake  <ebb9@byu.net>
51690
51691         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
51692
51693 2007-10-18  Bruno Haible  <bruno@clisp.org>
51694
51695         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
51696         the format string into writable memory. Needed in Fortify conditions.
51697
51698 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
51699             Bruno Haible  <bruno@clisp.org>
51700
51701         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
51702         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
51703         * modules/trim (Depends-on): Add mbchar.
51704         (configure.ac): Add gl_FUNC_MBRTOWC.
51705         (Makefile.am): Augment lib_SOURCES.
51706
51707 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
51708
51709         Modify glob.c to use fstatat and dirfd, to simplify it.
51710         Suggested by Eric Blake.
51711         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
51712         Don't include <stdbool.h>; not used.
51713         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
51714         (link_exists_p): Simplify implementation, since we can now assume
51715         dirfd and fstatat.
51716         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
51717
51718 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51719
51720         * gnulib-tool (func_get_dependencies): Fix sed script to
51721         match only tests.
51722
51723 2007-10-17  Bruno Haible  <bruno@clisp.org>
51724
51725         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
51726         allow locale names without encoding suffix.
51727         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
51728         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51729
51730 2007-10-16  Bruno Haible  <bruno@clisp.org>
51731
51732         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
51733         * lib/getgroups.c (getgroups): Likewise.
51734         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
51735
51736 2007-10-16  Bruno Haible  <bruno@clisp.org>
51737
51738         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
51739         * modules/malloc-posix (License): Likewise.
51740         * modules/realloc-posix (License): Likewise.
51741         * modules/calloc-posix (License): Likewise.
51742         * modules/intprops (License): Change from GPL to LGPL, with
51743         Paul Eggert's approval.
51744
51745 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51746
51747         Merge glibc changes into lib/glob.c.
51748
51749         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
51750         2007-10-15 04:59:03 UTC.  Here are the changes:
51751
51752         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
51753
51754         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
51755
51756         * lib/glob.c: Add some branch prediction throughout.
51757
51758         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
51759
51760         [BZ #5103]
51761         * lib/glob.c (glob): Recognize patterns starting \/.
51762
51763         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
51764
51765         [BZ #3996]
51766         * lib/glob.c (attribute_hidden): Define if not defined.
51767         (glob): Unescape dirname, filename or username when needed and not
51768         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
51769         is NULL.  Handle unescaped [ in pattern without closing ].
51770         Don't pass GLOB_CHECK down to recursive glob for directories.
51771         (__glob_pattern_type): New function.
51772         (__glob_pattern_p): Implement using __glob_pattern_type.
51773         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
51774         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
51775         Remove unreachable code.
51776
51777         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
51778
51779         * lib/glob.c (glob_in_dir): Add some comments and asserts to
51780         explain why there are no leaks.
51781
51782         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
51783
51784         [BZ #3253]
51785         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
51786         time, rather allocate increasingly bigger arrays of pointers, if
51787         possible with alloca, if too large with malloc.
51788
51789 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51790
51791         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
51792         Problem reported by H.Merijn Brand in
51793         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
51794         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
51795         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
51796
51797 2007-10-15  Bruno Haible  <bruno@clisp.org>
51798
51799         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
51800         with explicit rpl_ prefix.
51801         * lib/fopen.c (fopen): Likewise.
51802         * lib/freopen.c (freopen): Likewise.
51803         * lib/iconv.c (iconv): Likewise.
51804         * lib/iconv_close.c (iconv_close): Likewise.
51805
51806 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51807
51808         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
51809
51810 2007-10-15  Bruno Haible  <bruno@clisp.org>
51811
51812         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
51813         <stddef.h> instead of <stdlib.h> since we only need NULL.
51814         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51815
51816 2007-10-15  Bruno Haible  <bruno@clisp.org>
51817
51818         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
51819         Replace paragraph talking about LIBOBJS.
51820         Reported by Colin Watson <cjwatson@debian.org>.
51821
51822 2007-10-15  Bruno Haible  <bruno@clisp.org>
51823
51824         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
51825         <stdlib.h> before using NULL.
51826
51827 2007-10-15  Simon Josefsson  <simon@josefsson.org>
51828
51829         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
51830         Reported by Albert Chin <china@thewrittenword.com>.
51831
51832 2007-10-14  Bruno Haible  <bruno@clisp.org>
51833
51834         * modules/iconv_open-utf-tests: New file.
51835         * tests/test-iconv-utf.c: New file.
51836
51837         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
51838         * modules/iconv_open-utf: New file.
51839         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
51840         (iconv, iconv_close): New declarations.
51841         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
51842         be defined.
51843         (iconv_open): Add special handling of conversion between UTF-8 and
51844         UTF-{16,32}{BE,LE}.
51845         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
51846         * lib/iconv_close.c: New file.
51847         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
51848         gl_FUNC_ICONV_OPEN.
51849         (gl_FUNC_ICONV_OPEN): Use it.
51850         (gl_FUNC_ICONV_OPEN_UTF): New macro.
51851         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
51852         and REPLACE_ICONV_UTF.
51853         * modules/iconv_open (Depends-on): Add c-strcase.
51854         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
51855         ICONV_CONST.
51856         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
51857
51858 2007-10-13  Albert Chin  <china@thewrittenword.com>
51859             Bruno Haible  <bruno@clisp.org>
51860
51861         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
51862         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
51863
51864 2007-10-13  Bruno Haible  <bruno@clisp.org>
51865
51866         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
51867         defined, use the ISO C99 inline semantics.
51868         * lib/argp.h (ARGP_EI): Likewise.
51869
51870 2007-10-13  Bruno Haible  <bruno@clisp.org>
51871
51872         Handle 'inline' change in gcc 4.3.0.
51873         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
51874         argp_fmtstream_write, argp_fmtstream_set_lmargin,
51875         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
51876         argp_fmtstream_point): Disable 'extern' declaration if the function
51877         definition is going to be provided inline.
51878         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
51879         semantics, not the ISO C99 inline semantics.
51880         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
51881         'extern' declaration if the function definition is going to be provided
51882         inline.
51883         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
51884         the GNU C inline semantics, not the ISO C99 inline semantics. With
51885         GCC 4.2, avoid a warning.
51886
51887 2007-10-13  Bruno Haible  <bruno@clisp.org>
51888
51889         * lib/freading.h (freading): Enable the use of __freading for
51890         glibc >= 2.7.
51891         * lib/freading.c (freading): Likewise.
51892
51893 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
51894
51895         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
51896         "warning: C99 inline functions are not supported; using GNU89".
51897
51898 2007-10-12  Bruno Haible  <bruno@clisp.org>
51899
51900         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
51901         of 2.
51902         * tests/test-ceilf2.c: New file.
51903         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
51904
51905         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
51906         * modules/ceilf-tests: Update.
51907
51908 2007-10-12  Bruno Haible  <bruno@clisp.org>
51909
51910         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
51911         of 2.
51912         * tests/test-floorf2.c: New file.
51913         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
51914
51915         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
51916         * modules/floorf-tests: Update.
51917
51918 2007-10-12  Bruno Haible  <bruno@clisp.org>
51919
51920         * tests/test-trunc2.c: New file.
51921         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
51922
51923         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
51924         * modules/trunc-tests: Update.
51925
51926 2007-10-12  Bruno Haible  <bruno@clisp.org>
51927
51928         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
51929         of 2.
51930         * tests/test-truncf2.c: New file.
51931         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
51932
51933         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
51934         * modules/truncf-tests: Update.
51935
51936 2007-10-11  Eric Blake  <ebb9@byu.net>
51937
51938         Don't claim strerror is broken on Interix.
51939         * doc/functions/strerror.texi (strerror): Known broken systems are
51940         now Solaris 8, and not Interix.
51941         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
51942         Interix on cross-compile.
51943         Reported by Martin Koeppe in
51944         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
51945
51946 2007-10-11  Bruno Haible  <bruno@clisp.org>
51947
51948         * modules/i-ring-tests: New file.
51949         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
51950         instead of assert.
51951
51952 2007-10-11  Bruno Haible  <bruno@clisp.org>
51953
51954         * modules/filenamecat-tests: New file.
51955         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
51956         * lib/filenamecat.c: Remove test code.
51957
51958 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
51959
51960         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
51961
51962         * lib/strerror.c: Include <string.h> always, to test interface,
51963         and to remove the need for the dummy.
51964         Include intprops.h to compute width instead of doing it ourselves
51965         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
51966         (strerror): Define it to return NULL if there's no system strerror.
51967         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
51968         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
51969         ancient pre-strerror Unix systems well any more.  Saying "unknown
51970         system error" is enough.
51971         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
51972         simpler strerror.c implementation.
51973         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
51974         Simplify the tests to reflect the simpler strerror implementation.
51975         * modules/strerror (Depends-on): Add intprops.
51976
51977 2007-10-09  Eric Blake  <ebb9@byu.net>
51978
51979         Silence test-fpending.
51980         * modules/fpending-tests (Files): Add wrapper script.
51981         * tests/test-fpending.sh: New file.
51982
51983 2007-10-09  Bruno Haible  <bruno@clisp.org>
51984
51985         * MODULES.html.sh (func_module): Don't create a hyperlink for
51986         function names like 'printf_frexp'.
51987         (Misc): Add crc, memxor.
51988         (Characteristics of floating types): New section.
51989         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
51990         isnanf-nolibm, signbit, trunc, truncf, truncl.
51991         (Enhancements for ISO C 99 functions): New subsection Input/output.
51992         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
51993         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
51994         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
51995         (Compatibility checks for POSIX:2001 functions): Add clock-time.
51996         (Enhancements for POSIX:2001 functions): Add chdir-long.
51997         (File system functions): Add areadlink, chdir-safer, read-file.
51998         Remove cycle-check.
51999         (File system as inode set): New section.
52000         (Date and time): Add gethrxtime.
52001         (Multithreading): Add openmp.
52002         (Internationalization functions): Add localename.
52003         (Unicode string functions): Add unistr/u*-mbsnlen.
52004         (Support for maintaining and releasing projects): Add git-version-gen.
52005         (Lone files): Remove directories.
52006
52007 2007-10-08  Ben Pfaff  <blp@gnu.org>
52008
52009         * lib/xmalloca.h: Fix typo in comment.
52010
52011 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
52012
52013         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
52014         when avoiding problems with integer overflow.  Use a portable test
52015         instead.
52016
52017 2007-10-08  Simon Josefsson  <simon@josefsson.org>
52018
52019         * modules/dummy (License): Change to LGPLv2+.
52020         * modules/float (License): Likewise
52021         * modules/realloc (License): Likewise
52022         * modules/stdlib (License): Likewise
52023
52024 2007-10-07  Bruno Haible  <bruno@clisp.org>
52025
52026         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
52027         * floor.c (TWO_MANT_DIG): Likewise.
52028         * ceil.c (TWO_MANT_DIG): Likewise.
52029         Reported by Ben Pfaff.
52030
52031 2007-10-07  Bruno Haible  <bruno@clisp.org>
52032
52033         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
52034         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
52035         * lib/frexp.c (FUNC): Likewise.
52036         * lib/printf-frexp.h (printf_frexp): Likewise.
52037         * lib/printf-frexpl.h (printf_frexpl): Likewise.
52038         * lib/printf-frexp.c (FUNC): Likewise.
52039         Suggested by Jim Meyering.
52040
52041 2007-10-07  Jim Meyering  <meyering@redhat.com>
52042
52043         Make xnanosleep's integer overflow test more robust.
52044         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
52045         so that gcc-4.3.0 doesn't optimize away this test for overflow.
52046
52047 2007-10-07  Bruno Haible  <bruno@clisp.org>
52048
52049         * NEWS: Mention the license change.
52050
52051         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
52052         abbreviations in the modules files.
52053
52054         Change copyright notice from GPLv2+ to GPLv3+.
52055         * README: Change copyright notice.
52056         * MODULES.html.sh: Likewise.
52057         * build-aux/bootstrap.conf: Likewise.
52058         * build-aux/config.libpath: Likewise.
52059         * build-aux/csharpcomp.sh.in: Likewise.
52060         * build-aux/csharpexec.sh.in: Likewise.
52061         * build-aux/install-reloc: Likewise.
52062         * build-aux/javacomp.sh.in: Likewise.
52063         * build-aux/javaexec.sh.in: Likewise.
52064         * build-aux/ldd.sh.in: Likewise.
52065         * build-aux/reloc-ldflags: Likewise.
52066         * build-aux/relocatable.sh.in: Likewise.
52067         * build-aux/x-to-1.in: Likewise.
52068         * check-module: Likewise.
52069         * config/srclistvars.sh: Likewise.
52070         * gnulib-tool: Likewise.
52071         * lib/acl-internal.h: Likewise.
52072         * lib/acl.c: Likewise.
52073         * lib/acl.h: Likewise.
52074         * lib/acl_entries.c: Likewise.
52075         * lib/areadlink-with-size.c: Likewise.
52076         * lib/areadlink.c: Likewise.
52077         * lib/areadlink.h: Likewise.
52078         * lib/argmatch.c: Likewise.
52079         * lib/argmatch.h: Likewise.
52080         * lib/argp-ba.c: Likewise.
52081         * lib/argp-eexst.c: Likewise.
52082         * lib/argp-fmtstream.c: Likewise.
52083         * lib/argp-fmtstream.h: Likewise.
52084         * lib/argp-fs-xinl.c: Likewise.
52085         * lib/argp-help.c: Likewise.
52086         * lib/argp-namefrob.h: Likewise.
52087         * lib/argp-parse.c: Likewise.
52088         * lib/argp-pin.c: Likewise.
52089         * lib/argp-pv.c: Likewise.
52090         * lib/argp-pvh.c: Likewise.
52091         * lib/argp-xinl.c: Likewise.
52092         * lib/argp.h: Likewise.
52093         * lib/at-func.c: Likewise.
52094         * lib/atanl.c: Likewise.
52095         * lib/backupfile.c: Likewise.
52096         * lib/backupfile.h: Likewise.
52097         * lib/basename.c: Likewise.
52098         * lib/binary-io.h: Likewise.
52099         * lib/byteswap.in.h: Likewise.
52100         * lib/c-stack.c: Likewise.
52101         * lib/c-stack.h: Likewise.
52102         * lib/c-strcasestr.c: Likewise.
52103         * lib/c-strcasestr.h: Likewise.
52104         * lib/c-strstr.c: Likewise.
52105         * lib/c-strstr.h: Likewise.
52106         * lib/c-strtod.c: Likewise.
52107         * lib/calloc.c: Likewise.
52108         * lib/canon-host.c: Likewise.
52109         * lib/canon-host.h: Likewise.
52110         * lib/canonicalize-lgpl.c: Likewise.
52111         * lib/canonicalize.c: Likewise.
52112         * lib/canonicalize.h: Likewise.
52113         * lib/ceil.c: Likewise.
52114         * lib/ceilf.c: Likewise.
52115         * lib/ceill.c: Likewise.
52116         * lib/chdir-long.c: Likewise.
52117         * lib/chdir-long.h: Likewise.
52118         * lib/chdir-safer.c: Likewise.
52119         * lib/chdir-safer.h: Likewise.
52120         * lib/chown.c: Likewise.
52121         * lib/classpath.c: Likewise.
52122         * lib/classpath.h: Likewise.
52123         * lib/clean-temp.c: Likewise.
52124         * lib/clean-temp.h: Likewise.
52125         * lib/cloexec.c: Likewise.
52126         * lib/close-stream.c: Likewise.
52127         * lib/closein.c: Likewise.
52128         * lib/closein.h: Likewise.
52129         * lib/closeout.c: Likewise.
52130         * lib/closeout.h: Likewise.
52131         * lib/concat-filename.c: Likewise.
52132         * lib/copy-file.c: Likewise.
52133         * lib/copy-file.h: Likewise.
52134         * lib/count-one-bits.h: Likewise.
52135         * lib/crc.c: Likewise.
52136         * lib/crc.h: Likewise.
52137         * lib/creat-safer.c: Likewise.
52138         * lib/csharpcomp.c: Likewise.
52139         * lib/csharpcomp.h: Likewise.
52140         * lib/csharpexec.c: Likewise.
52141         * lib/csharpexec.h: Likewise.
52142         * lib/cycle-check.c: Likewise.
52143         * lib/cycle-check.h: Likewise.
52144         * lib/diacrit.c: Likewise.
52145         * lib/diacrit.h: Likewise.
52146         * lib/diffseq.h: Likewise.
52147         * lib/dirchownmod.c: Likewise.
52148         * lib/dirent.in.h: Likewise.
52149         * lib/dirfd.c: Likewise.
52150         * lib/dirfd.h: Likewise.
52151         * lib/dirname.c: Likewise.
52152         * lib/dirname.h: Likewise.
52153         * lib/dummy.c: Likewise.
52154         * lib/dup-safer.c: Likewise.
52155         * lib/dup2.c: Likewise.
52156         * lib/eealloc.h: Likewise.
52157         * lib/error.c: Likewise.
52158         * lib/error.h: Likewise.
52159         * lib/euidaccess.c: Likewise.
52160         * lib/exclude.c: Likewise.
52161         * lib/exclude.h: Likewise.
52162         * lib/execute.c: Likewise.
52163         * lib/execute.h: Likewise.
52164         * lib/exitfail.c: Likewise.
52165         * lib/exitfail.h: Likewise.
52166         * lib/expl.c: Likewise.
52167         * lib/fatal-signal.c: Likewise.
52168         * lib/fatal-signal.h: Likewise.
52169         * lib/fbufmode.c: Likewise.
52170         * lib/fbufmode.h: Likewise.
52171         * lib/fchdir.c: Likewise.
52172         * lib/fchmodat.c: Likewise.
52173         * lib/fchownat.c: Likewise.
52174         * lib/fcntl--.h: Likewise.
52175         * lib/fcntl-safer.h: Likewise.
52176         * lib/fcntl.in.h: Likewise.
52177         * lib/fd-safer.c: Likewise.
52178         * lib/fflush.c: Likewise.
52179         * lib/file-has-acl.c: Likewise.
52180         * lib/file-set.c: Likewise.
52181         * lib/file-type.c: Likewise.
52182         * lib/file-type.h: Likewise.
52183         * lib/fileblocks.c: Likewise.
52184         * lib/filemode.c: Likewise.
52185         * lib/filemode.h: Likewise.
52186         * lib/filename.h: Likewise.
52187         * lib/filenamecat.c: Likewise.
52188         * lib/filenamecat.h: Likewise.
52189         * lib/findprog.c: Likewise.
52190         * lib/findprog.h: Likewise.
52191         * lib/float.in.h: Likewise.
52192         * lib/floor.c: Likewise.
52193         * lib/floorf.c: Likewise.
52194         * lib/floorl.c: Likewise.
52195         * lib/fopen-safer.c: Likewise.
52196         * lib/fopen.c: Likewise.
52197         * lib/fpending.c: Likewise.
52198         * lib/fpending.h: Likewise.
52199         * lib/fprintf.c: Likewise.
52200         * lib/fprintftime.h: Likewise.
52201         * lib/fpucw.h: Likewise.
52202         * lib/fpurge.c: Likewise.
52203         * lib/fpurge.h: Likewise.
52204         * lib/freadable.c: Likewise.
52205         * lib/freadable.h: Likewise.
52206         * lib/freadahead.c: Likewise.
52207         * lib/freadahead.h: Likewise.
52208         * lib/freading.c: Likewise.
52209         * lib/freading.h: Likewise.
52210         * lib/free.c: Likewise.
52211         * lib/freopen.c: Likewise.
52212         * lib/frexp.c: Likewise.
52213         * lib/frexpl.c: Likewise.
52214         * lib/fseek.c: Likewise.
52215         * lib/fseterr.c: Likewise.
52216         * lib/fseterr.h: Likewise.
52217         * lib/fstatat.c: Likewise.
52218         * lib/fstrcmp.c: Likewise.
52219         * lib/fstrcmp.h: Likewise.
52220         * lib/fsusage.c: Likewise.
52221         * lib/fsusage.h: Likewise.
52222         * lib/ftell.c: Likewise.
52223         * lib/ftello.c: Likewise.
52224         * lib/fts-cycle.c: Likewise.
52225         * lib/fts.c: Likewise.
52226         * lib/fts_.h: Likewise.
52227         * lib/full-read.c: Likewise.
52228         * lib/full-read.h: Likewise.
52229         * lib/full-write.c: Likewise.
52230         * lib/full-write.h: Likewise.
52231         * lib/fwritable.c: Likewise.
52232         * lib/fwritable.h: Likewise.
52233         * lib/fwriteerror.c: Likewise.
52234         * lib/fwriteerror.h: Likewise.
52235         * lib/fwriting.c: Likewise.
52236         * lib/fwriting.h: Likewise.
52237         * lib/gcd.c: Likewise.
52238         * lib/gcd.h: Likewise.
52239         * lib/getcwd.c: Likewise.
52240         * lib/getdate.h: Likewise.
52241         * lib/getdate.y: Likewise.
52242         * lib/getdomainname.c: Likewise.
52243         * lib/getdomainname.h: Likewise.
52244         * lib/getgroups.c: Likewise.
52245         * lib/gethostname.c: Likewise.
52246         * lib/gethrxtime.c: Likewise.
52247         * lib/gethrxtime.h: Likewise.
52248         * lib/getloadavg.c: Likewise.
52249         * lib/getndelim2.c: Likewise.
52250         * lib/getndelim2.h: Likewise.
52251         * lib/getnline.c: Likewise.
52252         * lib/getnline.h: Likewise.
52253         * lib/getopt.c: Likewise.
52254         * lib/getopt.in.h: Likewise.
52255         * lib/getopt1.c: Likewise.
52256         * lib/getopt_int.h: Likewise.
52257         * lib/getpagesize.h: Likewise.
52258         * lib/getsubopt.c: Likewise.
52259         * lib/gettime.c: Likewise.
52260         * lib/getugroups.c: Likewise.
52261         * lib/getugroups.h: Likewise.
52262         * lib/getusershell.c: Likewise.
52263         * lib/gl_anyavltree_list1.h: Likewise.
52264         * lib/gl_anyavltree_list2.h: Likewise.
52265         * lib/gl_anyhash_list1.h: Likewise.
52266         * lib/gl_anyhash_list2.h: Likewise.
52267         * lib/gl_anylinked_list1.h: Likewise.
52268         * lib/gl_anylinked_list2.h: Likewise.
52269         * lib/gl_anyrbtree_list1.h: Likewise.
52270         * lib/gl_anyrbtree_list2.h: Likewise.
52271         * lib/gl_anytree_list1.h: Likewise.
52272         * lib/gl_anytree_list2.h: Likewise.
52273         * lib/gl_anytree_oset.h: Likewise.
52274         * lib/gl_anytreehash_list1.h: Likewise.
52275         * lib/gl_anytreehash_list2.h: Likewise.
52276         * lib/gl_array_list.c: Likewise.
52277         * lib/gl_array_list.h: Likewise.
52278         * lib/gl_array_oset.c: Likewise.
52279         * lib/gl_array_oset.h: Likewise.
52280         * lib/gl_avltree_list.c: Likewise.
52281         * lib/gl_avltree_list.h: Likewise.
52282         * lib/gl_avltree_oset.c: Likewise.
52283         * lib/gl_avltree_oset.h: Likewise.
52284         * lib/gl_avltreehash_list.c: Likewise.
52285         * lib/gl_avltreehash_list.h: Likewise.
52286         * lib/gl_carray_list.c: Likewise.
52287         * lib/gl_carray_list.h: Likewise.
52288         * lib/gl_linked_list.c: Likewise.
52289         * lib/gl_linked_list.h: Likewise.
52290         * lib/gl_linkedhash_list.c: Likewise.
52291         * lib/gl_linkedhash_list.h: Likewise.
52292         * lib/gl_list.c: Likewise.
52293         * lib/gl_list.h: Likewise.
52294         * lib/gl_oset.c: Likewise.
52295         * lib/gl_oset.h: Likewise.
52296         * lib/gl_rbtree_list.c: Likewise.
52297         * lib/gl_rbtree_list.h: Likewise.
52298         * lib/gl_rbtree_oset.c: Likewise.
52299         * lib/gl_rbtree_oset.h: Likewise.
52300         * lib/gl_rbtreehash_list.c: Likewise.
52301         * lib/gl_rbtreehash_list.h: Likewise.
52302         * lib/gl_sublist.c: Likewise.
52303         * lib/gl_sublist.h: Likewise.
52304         * lib/group-member.c: Likewise.
52305         * lib/group-member.h: Likewise.
52306         * lib/hard-locale.c: Likewise.
52307         * lib/hard-locale.h: Likewise.
52308         * lib/hash-pjw.c: Likewise.
52309         * lib/hash-pjw.h: Likewise.
52310         * lib/hash-triple.c: Likewise.
52311         * lib/hash.c: Likewise.
52312         * lib/hash.h: Likewise.
52313         * lib/human.c: Likewise.
52314         * lib/human.h: Likewise.
52315         * lib/i-ring.c: Likewise.
52316         * lib/i-ring.h: Likewise.
52317         * lib/idcache.c: Likewise.
52318         * lib/imaxabs.c: Likewise.
52319         * lib/imaxdiv.c: Likewise.
52320         * lib/inet_pton.c: Likewise.
52321         * lib/inet_pton.h: Likewise.
52322         * lib/intprops.h: Likewise.
52323         * lib/inttostr.c: Likewise.
52324         * lib/inttostr.h: Likewise.
52325         * lib/inttypes.in.h: Likewise.
52326         * lib/isapipe.c: Likewise.
52327         * lib/isdir.c: Likewise.
52328         * lib/isnan.c: Likewise.
52329         * lib/isnan.h: Likewise.
52330         * lib/isnanf.c: Likewise.
52331         * lib/isnanf.h: Likewise.
52332         * lib/isnanl-nolibm.h: Likewise.
52333         * lib/isnanl.c: Likewise.
52334         * lib/isnanl.h: Likewise.
52335         * lib/javacomp.c: Likewise.
52336         * lib/javacomp.h: Likewise.
52337         * lib/javaexec.c: Likewise.
52338         * lib/javaexec.h: Likewise.
52339         * lib/javaversion.c: Likewise.
52340         * lib/javaversion.h: Likewise.
52341         * lib/javaversion.java: Likewise.
52342         * lib/lbrkprop.h: Likewise.
52343         * lib/lchmod.h: Likewise.
52344         * lib/lchown.c: Likewise.
52345         * lib/ldexpl.c: Likewise.
52346         * lib/linebreak.c: Likewise.
52347         * lib/linebreak.h: Likewise.
52348         * lib/linebuffer.c: Likewise.
52349         * lib/linebuffer.h: Likewise.
52350         * lib/locale.in.h: Likewise.
52351         * lib/logl.c: Likewise.
52352         * lib/long-options.c: Likewise.
52353         * lib/long-options.h: Likewise.
52354         * lib/lstat.c: Likewise.
52355         * lib/lstat.h: Likewise.
52356         * lib/math.in.h: Likewise.
52357         * lib/mbchar.c: Likewise.
52358         * lib/mbchar.h: Likewise.
52359         * lib/mbfile.h: Likewise.
52360         * lib/mbiter.h: Likewise.
52361         * lib/mbscasecmp.c: Likewise.
52362         * lib/mbscasestr.c: Likewise.
52363         * lib/mbschr.c: Likewise.
52364         * lib/mbscspn.c: Likewise.
52365         * lib/mbslen.c: Likewise.
52366         * lib/mbsncasecmp.c: Likewise.
52367         * lib/mbsnlen.c: Likewise.
52368         * lib/mbspbrk.c: Likewise.
52369         * lib/mbspcasecmp.c: Likewise.
52370         * lib/mbsrchr.c: Likewise.
52371         * lib/mbssep.c: Likewise.
52372         * lib/mbsspn.c: Likewise.
52373         * lib/mbsstr.c: Likewise.
52374         * lib/mbstok_r.c: Likewise.
52375         * lib/mbswidth.c: Likewise.
52376         * lib/mbswidth.h: Likewise.
52377         * lib/mbuiter.h: Likewise.
52378         * lib/memcasecmp.c: Likewise.
52379         * lib/memcasecmp.h: Likewise.
52380         * lib/memchr.c: Likewise.
52381         * lib/memcmp.c: Likewise.
52382         * lib/memcoll.c: Likewise.
52383         * lib/memcoll.h: Likewise.
52384         * lib/memcpy.c: Likewise.
52385         * lib/memrchr.c: Likewise.
52386         * lib/mkancesdirs.c: Likewise.
52387         * lib/mkdir-p.c: Likewise.
52388         * lib/mkdir-p.h: Likewise.
52389         * lib/mkdir.c: Likewise.
52390         * lib/mkdirat.c: Likewise.
52391         * lib/mkdtemp.c: Likewise.
52392         * lib/mkstemp-safer.c: Likewise.
52393         * lib/mkstemp.c: Likewise.
52394         * lib/modechange.c: Likewise.
52395         * lib/modechange.h: Likewise.
52396         * lib/mountlist.c: Likewise.
52397         * lib/mountlist.h: Likewise.
52398         * lib/mpsort.c: Likewise.
52399         * lib/nanosleep.c: Likewise.
52400         * lib/obstack.c: Likewise.
52401         * lib/obstack.h: Likewise.
52402         * lib/open-safer.c: Likewise.
52403         * lib/open.c: Likewise.
52404         * lib/openat-die.c: Likewise.
52405         * lib/openat-priv.h: Likewise.
52406         * lib/openat-proc.c: Likewise.
52407         * lib/openat.c: Likewise.
52408         * lib/openat.h: Likewise.
52409         * lib/pagealign_alloc.c: Likewise.
52410         * lib/pagealign_alloc.h: Likewise.
52411         * lib/physmem.c: Likewise.
52412         * lib/physmem.h: Likewise.
52413         * lib/pipe-safer.c: Likewise.
52414         * lib/pipe.c: Likewise.
52415         * lib/pipe.h: Likewise.
52416         * lib/posixtm.c: Likewise.
52417         * lib/posixtm.h: Likewise.
52418         * lib/posixver.c: Likewise.
52419         * lib/printf-frexp.c: Likewise.
52420         * lib/printf-frexp.h: Likewise.
52421         * lib/printf-frexpl.c: Likewise.
52422         * lib/printf-frexpl.h: Likewise.
52423         * lib/printf.c: Likewise.
52424         * lib/progname.c: Likewise.
52425         * lib/progname.h: Likewise.
52426         * lib/progreloc.c: Likewise.
52427         * lib/putenv.c: Likewise.
52428         * lib/quote.c: Likewise.
52429         * lib/quote.h: Likewise.
52430         * lib/quotearg.c: Likewise.
52431         * lib/quotearg.h: Likewise.
52432         * lib/raise.c: Likewise.
52433         * lib/readline.c: Likewise.
52434         * lib/readline.h: Likewise.
52435         * lib/readlink.c: Likewise.
52436         * lib/readtokens.c: Likewise.
52437         * lib/readtokens.h: Likewise.
52438         * lib/readtokens0.c: Likewise.
52439         * lib/readtokens0.h: Likewise.
52440         * lib/readutmp.c: Likewise.
52441         * lib/readutmp.h: Likewise.
52442         * lib/realloc.c: Likewise.
52443         * lib/relocwrapper.c: Likewise.
52444         * lib/rename-dest-slash.c: Likewise.
52445         * lib/rename.c: Likewise.
52446         * lib/rmdir.c: Likewise.
52447         * lib/rpmatch.c: Likewise.
52448         * lib/safe-read.c: Likewise.
52449         * lib/safe-read.h: Likewise.
52450         * lib/safe-write.c: Likewise.
52451         * lib/safe-write.h: Likewise.
52452         * lib/same-inode.h: Likewise.
52453         * lib/same.c: Likewise.
52454         * lib/same.h: Likewise.
52455         * lib/save-cwd.c: Likewise.
52456         * lib/save-cwd.h: Likewise.
52457         * lib/savedir.c: Likewise.
52458         * lib/savedir.h: Likewise.
52459         * lib/savewd.c: Likewise.
52460         * lib/savewd.h: Likewise.
52461         * lib/search.in.h: Likewise.
52462         * lib/setenv.c: Likewise.
52463         * lib/setenv.h: Likewise.
52464         * lib/settime.c: Likewise.
52465         * lib/sh-quote.c: Likewise.
52466         * lib/sh-quote.h: Likewise.
52467         * lib/sig2str.c: Likewise.
52468         * lib/sig2str.h: Likewise.
52469         * lib/signal.in.h: Likewise.
52470         * lib/signbitd.c: Likewise.
52471         * lib/signbitf.c: Likewise.
52472         * lib/signbitl.c: Likewise.
52473         * lib/sigprocmask.c: Likewise.
52474         * lib/sincosl.c: Likewise.
52475         * lib/sleep.c: Likewise.
52476         * lib/sprintf.c: Likewise.
52477         * lib/sqrtl.c: Likewise.
52478         * lib/stat-time.h: Likewise.
52479         * lib/stdio--.h: Likewise.
52480         * lib/stdio-safer.h: Likewise.
52481         * lib/stdlib--.h: Likewise.
52482         * lib/stdlib-safer.h: Likewise.
52483         * lib/stdlib.in.h: Likewise.
52484         * lib/stpcpy.c: Likewise.
52485         * lib/stpncpy.c: Likewise.
52486         * lib/strchrnul.c: Likewise.
52487         * lib/strcspn.c: Likewise.
52488         * lib/strerror.c: Likewise.
52489         * lib/strftime.c: Likewise.
52490         * lib/strftime.h: Likewise.
52491         * lib/striconveh.c: Likewise.
52492         * lib/striconveh.h: Likewise.
52493         * lib/striconveha.c: Likewise.
52494         * lib/striconveha.h: Likewise.
52495         * lib/stripslash.c: Likewise.
52496         * lib/strnlen1.c: Likewise.
52497         * lib/strnlen1.h: Likewise.
52498         * lib/strtod.c: Likewise.
52499         * lib/strtoimax.c: Likewise.
52500         * lib/strtok_r.c: Likewise.
52501         * lib/strtol.c: Likewise.
52502         * lib/strtoll.c: Likewise.
52503         * lib/strtoul.c: Likewise.
52504         * lib/strtoull.c: Likewise.
52505         * lib/sysexits.in.h: Likewise.
52506         * lib/tempname.c: Likewise.
52507         * lib/tempname.h: Likewise.
52508         * lib/timespec.h: Likewise.
52509         * lib/tls.c: Likewise.
52510         * lib/tls.h: Likewise.
52511         * lib/tmpdir.c: Likewise.
52512         * lib/tmpdir.h: Likewise.
52513         * lib/tmpfile-safer.c: Likewise.
52514         * lib/tmpfile.c: Likewise.
52515         * lib/trigl.c: Likewise.
52516         * lib/trigl.h: Likewise.
52517         * lib/trim.c: Likewise.
52518         * lib/trim.h: Likewise.
52519         * lib/trunc.c: Likewise.
52520         * lib/truncf.c: Likewise.
52521         * lib/truncl.c: Likewise.
52522         * lib/tsearch.c: Likewise.
52523         * lib/unicodeio.c: Likewise.
52524         * lib/unicodeio.h: Likewise.
52525         * lib/unistd--.h: Likewise.
52526         * lib/unistd-safer.h: Likewise.
52527         * lib/unistdio/ulc-fprintf.c: Likewise.
52528         * lib/unistdio/ulc-vfprintf.c: Likewise.
52529         * lib/unlinkdir.c: Likewise.
52530         * lib/unlinkdir.h: Likewise.
52531         * lib/unlocked-io.h: Likewise.
52532         * lib/unsetenv.c: Likewise.
52533         * lib/userspec.c: Likewise.
52534         * lib/utime.c: Likewise.
52535         * lib/utimecmp.c: Likewise.
52536         * lib/utimecmp.h: Likewise.
52537         * lib/utimens.c: Likewise.
52538         * lib/verify.h: Likewise.
52539         * lib/verror.c: Likewise.
52540         * lib/verror.h: Likewise.
52541         * lib/version-etc-fsf.c: Likewise.
52542         * lib/version-etc.c: Likewise.
52543         * lib/version-etc.h: Likewise.
52544         * lib/vfprintf.c: Likewise.
52545         * lib/vprintf.c: Likewise.
52546         * lib/vsprintf.c: Likewise.
52547         * lib/w32spawn.h: Likewise.
52548         * lib/wait-process.c: Likewise.
52549         * lib/wait-process.h: Likewise.
52550         * lib/wcwidth.c: Likewise.
52551         * lib/write-any-file.c: Likewise.
52552         * lib/xalloc-die.c: Likewise.
52553         * lib/xalloc.h: Likewise.
52554         * lib/xasprintf.c: Likewise.
52555         * lib/xgetcwd.c: Likewise.
52556         * lib/xgetcwd.h: Likewise.
52557         * lib/xgetdomainname.c: Likewise.
52558         * lib/xgetdomainname.h: Likewise.
52559         * lib/xgethostname.c: Likewise.
52560         * lib/xmalloc.c: Likewise.
52561         * lib/xmalloca.c: Likewise.
52562         * lib/xmalloca.h: Likewise.
52563         * lib/xmemcoll.c: Likewise.
52564         * lib/xnanosleep.c: Likewise.
52565         * lib/xreadlink.c: Likewise.
52566         * lib/xreadlink.h: Likewise.
52567         * lib/xsetenv.c: Likewise.
52568         * lib/xsetenv.h: Likewise.
52569         * lib/xstriconv.c: Likewise.
52570         * lib/xstriconv.h: Likewise.
52571         * lib/xstrndup.c: Likewise.
52572         * lib/xstrndup.h: Likewise.
52573         * lib/xstrtod.c: Likewise.
52574         * lib/xstrtod.h: Likewise.
52575         * lib/xstrtol-error.c: Likewise.
52576         * lib/xstrtol.c: Likewise.
52577         * lib/xstrtol.h: Likewise.
52578         * lib/xtime.h: Likewise.
52579         * lib/xvasprintf.c: Likewise.
52580         * lib/xvasprintf.h: Likewise.
52581         * lib/yesno.c: Likewise.
52582         * lib/yesno.h: Likewise.
52583         * posix-modules: Likewise.
52584         * tests/test-alloca-opt.c: Likewise.
52585         * tests/test-arcfour.c: Likewise.
52586         * tests/test-arctwo.c: Likewise.
52587         * tests/test-argmatch.c: Likewise.
52588         * tests/test-argp-2.sh: Likewise.
52589         * tests/test-argp.c: Likewise.
52590         * tests/test-arpa_inet.c: Likewise.
52591         * tests/test-array_list.c: Likewise.
52592         * tests/test-array_oset.c: Likewise.
52593         * tests/test-atexit.c: Likewise.
52594         * tests/test-avltree_list.c: Likewise.
52595         * tests/test-avltree_oset.c: Likewise.
52596         * tests/test-avltreehash_list.c: Likewise.
52597         * tests/test-base64.c: Likewise.
52598         * tests/test-binary-io.c: Likewise.
52599         * tests/test-byteswap.c: Likewise.
52600         * tests/test-c-ctype.c: Likewise.
52601         * tests/test-c-strcasecmp.c: Likewise.
52602         * tests/test-c-strcasestr.c: Likewise.
52603         * tests/test-c-strncasecmp.c: Likewise.
52604         * tests/test-c-strstr.c: Likewise.
52605         * tests/test-canonicalize-lgpl.c: Likewise.
52606         * tests/test-canonicalize.c: Likewise.
52607         * tests/test-carray_list.c: Likewise.
52608         * tests/test-ceilf.c: Likewise.
52609         * tests/test-ceill.c: Likewise.
52610         * tests/test-count-one-bits.c: Likewise.
52611         * tests/test-crc.c: Likewise.
52612         * tests/test-dirname.c: Likewise.
52613         * tests/test-fbufmode.c: Likewise.
52614         * tests/test-fcntl.c: Likewise.
52615         * tests/test-fflush.c: Likewise.
52616         * tests/test-floorf.c: Likewise.
52617         * tests/test-floorl.c: Likewise.
52618         * tests/test-fopen.c: Likewise.
52619         * tests/test-fprintf-posix.c: Likewise.
52620         * tests/test-fprintf-posix.h: Likewise.
52621         * tests/test-fpurge.c: Likewise.
52622         * tests/test-freadable.c: Likewise.
52623         * tests/test-freadahead.c: Likewise.
52624         * tests/test-freading.c: Likewise.
52625         * tests/test-freopen.c: Likewise.
52626         * tests/test-frexp.c: Likewise.
52627         * tests/test-frexpl.c: Likewise.
52628         * tests/test-fseek.c: Likewise.
52629         * tests/test-fseeko.c: Likewise.
52630         * tests/test-fseterr.c: Likewise.
52631         * tests/test-fstrcmp.c: Likewise.
52632         * tests/test-ftell.c: Likewise.
52633         * tests/test-ftello.c: Likewise.
52634         * tests/test-fwritable.c: Likewise.
52635         * tests/test-fwriting.c: Likewise.
52636         * tests/test-getaddrinfo.c: Likewise.
52637         * tests/test-getpass.c: Likewise.
52638         * tests/test-gettimeofday.c: Likewise.
52639         * tests/test-hmac-md5.c: Likewise.
52640         * tests/test-hmac-sha1.c: Likewise.
52641         * tests/test-iconv.c: Likewise.
52642         * tests/test-iconvme.c: Likewise.
52643         * tests/test-inttypes.c: Likewise.
52644         * tests/test-isnan.c: Likewise.
52645         * tests/test-isnanf.c: Likewise.
52646         * tests/test-isnanl-nolibm.c: Likewise.
52647         * tests/test-isnanl.c: Likewise.
52648         * tests/test-isnanl.h: Likewise.
52649         * tests/test-ldexpl.c: Likewise.
52650         * tests/test-linked_list.c: Likewise.
52651         * tests/test-linkedhash_list.c: Likewise.
52652         * tests/test-locale.c: Likewise.
52653         * tests/test-localename.c: Likewise.
52654         * tests/test-lock.c: Likewise.
52655         * tests/test-lseek.c: Likewise.
52656         * tests/test-malloca.c: Likewise.
52657         * tests/test-math.c: Likewise.
52658         * tests/test-mbscasecmp.c: Likewise.
52659         * tests/test-mbscasestr1.c: Likewise.
52660         * tests/test-mbscasestr2.c: Likewise.
52661         * tests/test-mbscasestr3.c: Likewise.
52662         * tests/test-mbscasestr4.c: Likewise.
52663         * tests/test-mbschr.c: Likewise.
52664         * tests/test-mbscspn.c: Likewise.
52665         * tests/test-mbsncasecmp.c: Likewise.
52666         * tests/test-mbspbrk.c: Likewise.
52667         * tests/test-mbspcasecmp.c: Likewise.
52668         * tests/test-mbsrchr.c: Likewise.
52669         * tests/test-mbsspn.c: Likewise.
52670         * tests/test-mbsstr1.c: Likewise.
52671         * tests/test-mbsstr2.c: Likewise.
52672         * tests/test-mbsstr3.c: Likewise.
52673         * tests/test-md5.c: Likewise.
52674         * tests/test-memmem.c: Likewise.
52675         * tests/test-netinet_in.c: Likewise.
52676         * tests/test-open.c: Likewise.
52677         * tests/test-printf-frexp.c: Likewise.
52678         * tests/test-printf-frexpl.c: Likewise.
52679         * tests/test-printf-posix.c: Likewise.
52680         * tests/test-printf-posix.h: Likewise.
52681         * tests/test-rbtree_list.c: Likewise.
52682         * tests/test-rbtree_oset.c: Likewise.
52683         * tests/test-rbtreehash_list.c: Likewise.
52684         * tests/test-read-file.c: Likewise.
52685         * tests/test-rijndael.c: Likewise.
52686         * tests/test-search.c: Likewise.
52687         * tests/test-signbit.c: Likewise.
52688         * tests/test-sleep.c: Likewise.
52689         * tests/test-snprintf-posix.c: Likewise.
52690         * tests/test-snprintf-posix.h: Likewise.
52691         * tests/test-snprintf.c: Likewise.
52692         * tests/test-sprintf-posix.c: Likewise.
52693         * tests/test-sprintf-posix.h: Likewise.
52694         * tests/test-stat-time.c: Likewise.
52695         * tests/test-stdbool.c: Likewise.
52696         * tests/test-stdint.c: Likewise.
52697         * tests/test-stdio.c: Likewise.
52698         * tests/test-stdlib.c: Likewise.
52699         * tests/test-stpncpy.c: Likewise.
52700         * tests/test-strcasestr.c: Likewise.
52701         * tests/test-striconv.c: Likewise.
52702         * tests/test-striconveh.c: Likewise.
52703         * tests/test-striconveha.c: Likewise.
52704         * tests/test-string.c: Likewise.
52705         * tests/test-sys_select.c: Likewise.
52706         * tests/test-sys_socket.c: Likewise.
52707         * tests/test-sys_stat.c: Likewise.
52708         * tests/test-sys_time.c: Likewise.
52709         * tests/test-sysexits.c: Likewise.
52710         * tests/test-time.c: Likewise.
52711         * tests/test-tls.c: Likewise.
52712         * tests/test-trunc.c: Likewise.
52713         * tests/test-truncf.c: Likewise.
52714         * tests/test-truncl.c: Likewise.
52715         * tests/test-unistd.c: Likewise.
52716         * tests/test-vasnprintf-posix.c: Likewise.
52717         * tests/test-vasnprintf-posix2.c: Likewise.
52718         * tests/test-vasnprintf.c: Likewise.
52719         * tests/test-vasprintf-posix.c: Likewise.
52720         * tests/test-vasprintf.c: Likewise.
52721         * tests/test-verify.c: Likewise.
52722         * tests/test-vfprintf-posix.c: Likewise.
52723         * tests/test-vprintf-posix.c: Likewise.
52724         * tests/test-vsnprintf-posix.c: Likewise.
52725         * tests/test-vsnprintf.c: Likewise.
52726         * tests/test-vsprintf-posix.c: Likewise.
52727         * tests/test-wchar.c: Likewise.
52728         * tests/test-wctype.c: Likewise.
52729         * tests/test-wcwidth.c: Likewise.
52730         * tests/test-xstrtol.c: Likewise.
52731         * tests/test-xvasprintf.c: Likewise.
52732         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
52733         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
52734         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
52735         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
52736         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
52737         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
52738         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
52739         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
52740         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
52741         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
52742         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
52743         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
52744         * tests/uniname/test-uninames.c: Likewise.
52745         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
52746         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
52747         * tests/unistdio/test-u16-printf1.h: Likewise.
52748         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
52749         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
52750         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
52751         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
52752         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
52753         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
52754         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
52755         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
52756         * tests/unistdio/test-u32-printf1.h: Likewise.
52757         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
52758         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
52759         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
52760         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
52761         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
52762         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
52763         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
52764         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
52765         * tests/unistdio/test-u8-printf1.h: Likewise.
52766         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
52767         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
52768         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
52769         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
52770         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
52771         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
52772         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
52773         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
52774         * tests/unistdio/test-ulc-printf1.h: Likewise.
52775         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
52776         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
52777         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
52778         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
52779         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
52780         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
52781         * tests/uniwidth/test-u16-strwidth.c: Likewise.
52782         * tests/uniwidth/test-u16-width.c: Likewise.
52783         * tests/uniwidth/test-u32-strwidth.c: Likewise.
52784         * tests/uniwidth/test-u32-width.c: Likewise.
52785         * tests/uniwidth/test-u8-strwidth.c: Likewise.
52786         * tests/uniwidth/test-u8-width.c: Likewise.
52787         * tests/uniwidth/test-uc_width.c: Likewise.
52788         * config/srclist-update: Likewise.
52789         (fixlicense): Update to GPLv3+.
52790
52791         Change copyright notice from LGPLv2.1+ to LGPLv3+.
52792         * tests/test-tsearch.c: Change copyright notice.
52793
52794         Change copyright notice from LGPLv2.0+ to LGPLv3+.
52795         * lib/c-strcaseeq.h: Change copyright notice.
52796         * lib/streq.h: Likewise.
52797         * lib/uniconv.h: Likewise.
52798         * lib/uniconv/u-conv-from-enc.h: Likewise.
52799         * lib/uniconv/u-conv-to-enc.h: Likewise.
52800         * lib/uniconv/u-strconv-from-enc.h: Likewise.
52801         * lib/uniconv/u-strconv-to-enc.h: Likewise.
52802         * lib/uniconv/u16-conv-from-enc.c: Likewise.
52803         * lib/uniconv/u16-conv-to-enc.c: Likewise.
52804         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
52805         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
52806         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
52807         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
52808         * lib/uniconv/u32-conv-from-enc.c: Likewise.
52809         * lib/uniconv/u32-conv-to-enc.c: Likewise.
52810         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
52811         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
52812         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
52813         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
52814         * lib/uniconv/u8-conv-from-enc.c: Likewise.
52815         * lib/uniconv/u8-conv-to-enc.c: Likewise.
52816         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
52817         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
52818         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
52819         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
52820         * lib/uniname.h: Likewise.
52821         * lib/uniname/uniname.c: Likewise.
52822         * lib/unistdio.h: Likewise.
52823         * lib/unistdio/u-asnprintf.h: Likewise.
52824         * lib/unistdio/u-asprintf.h: Likewise.
52825         * lib/unistdio/u-printf-args.c: Likewise.
52826         * lib/unistdio/u-printf-args.h: Likewise.
52827         * lib/unistdio/u-printf-parse.h: Likewise.
52828         * lib/unistdio/u-snprintf.h: Likewise.
52829         * lib/unistdio/u-sprintf.h: Likewise.
52830         * lib/unistdio/u-vasprintf.h: Likewise.
52831         * lib/unistdio/u-vsnprintf.h: Likewise.
52832         * lib/unistdio/u-vsprintf.h: Likewise.
52833         * lib/unistdio/u16-asnprintf.c: Likewise.
52834         * lib/unistdio/u16-asprintf.c: Likewise.
52835         * lib/unistdio/u16-printf-parse.c: Likewise.
52836         * lib/unistdio/u16-snprintf.c: Likewise.
52837         * lib/unistdio/u16-sprintf.c: Likewise.
52838         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
52839         * lib/unistdio/u16-u16-asprintf.c: Likewise.
52840         * lib/unistdio/u16-u16-snprintf.c: Likewise.
52841         * lib/unistdio/u16-u16-sprintf.c: Likewise.
52842         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
52843         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
52844         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
52845         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
52846         * lib/unistdio/u16-vasnprintf.c: Likewise.
52847         * lib/unistdio/u16-vasprintf.c: Likewise.
52848         * lib/unistdio/u16-vsnprintf.c: Likewise.
52849         * lib/unistdio/u16-vsprintf.c: Likewise.
52850         * lib/unistdio/u32-asnprintf.c: Likewise.
52851         * lib/unistdio/u32-asprintf.c: Likewise.
52852         * lib/unistdio/u32-printf-parse.c: Likewise.
52853         * lib/unistdio/u32-snprintf.c: Likewise.
52854         * lib/unistdio/u32-sprintf.c: Likewise.
52855         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
52856         * lib/unistdio/u32-u32-asprintf.c: Likewise.
52857         * lib/unistdio/u32-u32-snprintf.c: Likewise.
52858         * lib/unistdio/u32-u32-sprintf.c: Likewise.
52859         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
52860         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
52861         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
52862         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
52863         * lib/unistdio/u32-vasnprintf.c: Likewise.
52864         * lib/unistdio/u32-vasprintf.c: Likewise.
52865         * lib/unistdio/u32-vsnprintf.c: Likewise.
52866         * lib/unistdio/u32-vsprintf.c: Likewise.
52867         * lib/unistdio/u8-asnprintf.c: Likewise.
52868         * lib/unistdio/u8-asprintf.c: Likewise.
52869         * lib/unistdio/u8-printf-parse.c: Likewise.
52870         * lib/unistdio/u8-snprintf.c: Likewise.
52871         * lib/unistdio/u8-sprintf.c: Likewise.
52872         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
52873         * lib/unistdio/u8-u8-asprintf.c: Likewise.
52874         * lib/unistdio/u8-u8-snprintf.c: Likewise.
52875         * lib/unistdio/u8-u8-sprintf.c: Likewise.
52876         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
52877         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
52878         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
52879         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
52880         * lib/unistdio/u8-vasnprintf.c: Likewise.
52881         * lib/unistdio/u8-vasprintf.c: Likewise.
52882         * lib/unistdio/u8-vsnprintf.c: Likewise.
52883         * lib/unistdio/u8-vsprintf.c: Likewise.
52884         * lib/unistdio/ulc-asnprintf.c: Likewise.
52885         * lib/unistdio/ulc-asprintf.c: Likewise.
52886         * lib/unistdio/ulc-printf-parse.c: Likewise.
52887         * lib/unistdio/ulc-snprintf.c: Likewise.
52888         * lib/unistdio/ulc-sprintf.c: Likewise.
52889         * lib/unistdio/ulc-vasnprintf.c: Likewise.
52890         * lib/unistdio/ulc-vasprintf.c: Likewise.
52891         * lib/unistdio/ulc-vsnprintf.c: Likewise.
52892         * lib/unistdio/ulc-vsprintf.c: Likewise.
52893         * lib/unistr.h: Likewise.
52894         * lib/unistr/u-cpy-alloc.h: Likewise.
52895         * lib/unistr/u-cpy.h: Likewise.
52896         * lib/unistr/u-endswith.h: Likewise.
52897         * lib/unistr/u-move.h: Likewise.
52898         * lib/unistr/u-set.h: Likewise.
52899         * lib/unistr/u-startswith.h: Likewise.
52900         * lib/unistr/u-stpcpy.h: Likewise.
52901         * lib/unistr/u-stpncpy.h: Likewise.
52902         * lib/unistr/u-strcat.h: Likewise.
52903         * lib/unistr/u-strcpy.h: Likewise.
52904         * lib/unistr/u-strcspn.h: Likewise.
52905         * lib/unistr/u-strdup.h: Likewise.
52906         * lib/unistr/u-strlen.h: Likewise.
52907         * lib/unistr/u-strncat.h: Likewise.
52908         * lib/unistr/u-strncpy.h: Likewise.
52909         * lib/unistr/u-strnlen.h: Likewise.
52910         * lib/unistr/u-strpbrk.h: Likewise.
52911         * lib/unistr/u-strspn.h: Likewise.
52912         * lib/unistr/u-strstr.h: Likewise.
52913         * lib/unistr/u-strtok.h: Likewise.
52914         * lib/unistr/u16-check.c: Likewise.
52915         * lib/unistr/u16-chr.c: Likewise.
52916         * lib/unistr/u16-cmp.c: Likewise.
52917         * lib/unistr/u16-cpy-alloc.c: Likewise.
52918         * lib/unistr/u16-cpy.c: Likewise.
52919         * lib/unistr/u16-endswith.c: Likewise.
52920         * lib/unistr/u16-mblen.c: Likewise.
52921         * lib/unistr/u16-mbsnlen.c: Likewise.
52922         * lib/unistr/u16-mbtouc-aux.c: Likewise.
52923         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
52924         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
52925         * lib/unistr/u16-mbtouc.c: Likewise.
52926         * lib/unistr/u16-mbtoucr.c: Likewise.
52927         * lib/unistr/u16-move.c: Likewise.
52928         * lib/unistr/u16-next.c: Likewise.
52929         * lib/unistr/u16-prev.c: Likewise.
52930         * lib/unistr/u16-set.c: Likewise.
52931         * lib/unistr/u16-startswith.c: Likewise.
52932         * lib/unistr/u16-stpcpy.c: Likewise.
52933         * lib/unistr/u16-stpncpy.c: Likewise.
52934         * lib/unistr/u16-strcat.c: Likewise.
52935         * lib/unistr/u16-strchr.c: Likewise.
52936         * lib/unistr/u16-strcmp.c: Likewise.
52937         * lib/unistr/u16-strcpy.c: Likewise.
52938         * lib/unistr/u16-strcspn.c: Likewise.
52939         * lib/unistr/u16-strdup.c: Likewise.
52940         * lib/unistr/u16-strlen.c: Likewise.
52941         * lib/unistr/u16-strmblen.c: Likewise.
52942         * lib/unistr/u16-strmbtouc.c: Likewise.
52943         * lib/unistr/u16-strncat.c: Likewise.
52944         * lib/unistr/u16-strncmp.c: Likewise.
52945         * lib/unistr/u16-strncpy.c: Likewise.
52946         * lib/unistr/u16-strnlen.c: Likewise.
52947         * lib/unistr/u16-strpbrk.c: Likewise.
52948         * lib/unistr/u16-strrchr.c: Likewise.
52949         * lib/unistr/u16-strspn.c: Likewise.
52950         * lib/unistr/u16-strstr.c: Likewise.
52951         * lib/unistr/u16-strtok.c: Likewise.
52952         * lib/unistr/u16-to-u32.c: Likewise.
52953         * lib/unistr/u16-to-u8.c: Likewise.
52954         * lib/unistr/u16-uctomb-aux.c: Likewise.
52955         * lib/unistr/u16-uctomb.c: Likewise.
52956         * lib/unistr/u32-check.c: Likewise.
52957         * lib/unistr/u32-chr.c: Likewise.
52958         * lib/unistr/u32-cmp.c: Likewise.
52959         * lib/unistr/u32-cpy-alloc.c: Likewise.
52960         * lib/unistr/u32-cpy.c: Likewise.
52961         * lib/unistr/u32-endswith.c: Likewise.
52962         * lib/unistr/u32-mblen.c: Likewise.
52963         * lib/unistr/u32-mbsnlen.c: Likewise.
52964         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
52965         * lib/unistr/u32-mbtouc.c: Likewise.
52966         * lib/unistr/u32-mbtoucr.c: Likewise.
52967         * lib/unistr/u32-move.c: Likewise.
52968         * lib/unistr/u32-next.c: Likewise.
52969         * lib/unistr/u32-prev.c: Likewise.
52970         * lib/unistr/u32-set.c: Likewise.
52971         * lib/unistr/u32-startswith.c: Likewise.
52972         * lib/unistr/u32-stpcpy.c: Likewise.
52973         * lib/unistr/u32-stpncpy.c: Likewise.
52974         * lib/unistr/u32-strcat.c: Likewise.
52975         * lib/unistr/u32-strchr.c: Likewise.
52976         * lib/unistr/u32-strcmp.c: Likewise.
52977         * lib/unistr/u32-strcpy.c: Likewise.
52978         * lib/unistr/u32-strcspn.c: Likewise.
52979         * lib/unistr/u32-strdup.c: Likewise.
52980         * lib/unistr/u32-strlen.c: Likewise.
52981         * lib/unistr/u32-strmblen.c: Likewise.
52982         * lib/unistr/u32-strmbtouc.c: Likewise.
52983         * lib/unistr/u32-strncat.c: Likewise.
52984         * lib/unistr/u32-strncmp.c: Likewise.
52985         * lib/unistr/u32-strncpy.c: Likewise.
52986         * lib/unistr/u32-strnlen.c: Likewise.
52987         * lib/unistr/u32-strpbrk.c: Likewise.
52988         * lib/unistr/u32-strrchr.c: Likewise.
52989         * lib/unistr/u32-strspn.c: Likewise.
52990         * lib/unistr/u32-strstr.c: Likewise.
52991         * lib/unistr/u32-strtok.c: Likewise.
52992         * lib/unistr/u32-to-u16.c: Likewise.
52993         * lib/unistr/u32-to-u8.c: Likewise.
52994         * lib/unistr/u32-uctomb.c: Likewise.
52995         * lib/unistr/u8-check.c: Likewise.
52996         * lib/unistr/u8-chr.c: Likewise.
52997         * lib/unistr/u8-cmp.c: Likewise.
52998         * lib/unistr/u8-cpy-alloc.c: Likewise.
52999         * lib/unistr/u8-cpy.c: Likewise.
53000         * lib/unistr/u8-endswith.c: Likewise.
53001         * lib/unistr/u8-mblen.c: Likewise.
53002         * lib/unistr/u8-mbsnlen.c: Likewise.
53003         * lib/unistr/u8-mbtouc-aux.c: Likewise.
53004         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
53005         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
53006         * lib/unistr/u8-mbtouc.c: Likewise.
53007         * lib/unistr/u8-mbtoucr.c: Likewise.
53008         * lib/unistr/u8-move.c: Likewise.
53009         * lib/unistr/u8-next.c: Likewise.
53010         * lib/unistr/u8-prev.c: Likewise.
53011         * lib/unistr/u8-set.c: Likewise.
53012         * lib/unistr/u8-startswith.c: Likewise.
53013         * lib/unistr/u8-stpcpy.c: Likewise.
53014         * lib/unistr/u8-stpncpy.c: Likewise.
53015         * lib/unistr/u8-strcat.c: Likewise.
53016         * lib/unistr/u8-strchr.c: Likewise.
53017         * lib/unistr/u8-strcmp.c: Likewise.
53018         * lib/unistr/u8-strcpy.c: Likewise.
53019         * lib/unistr/u8-strcspn.c: Likewise.
53020         * lib/unistr/u8-strdup.c: Likewise.
53021         * lib/unistr/u8-strlen.c: Likewise.
53022         * lib/unistr/u8-strmblen.c: Likewise.
53023         * lib/unistr/u8-strmbtouc.c: Likewise.
53024         * lib/unistr/u8-strncat.c: Likewise.
53025         * lib/unistr/u8-strncmp.c: Likewise.
53026         * lib/unistr/u8-strncpy.c: Likewise.
53027         * lib/unistr/u8-strnlen.c: Likewise.
53028         * lib/unistr/u8-strpbrk.c: Likewise.
53029         * lib/unistr/u8-strrchr.c: Likewise.
53030         * lib/unistr/u8-strspn.c: Likewise.
53031         * lib/unistr/u8-strstr.c: Likewise.
53032         * lib/unistr/u8-strtok.c: Likewise.
53033         * lib/unistr/u8-to-u16.c: Likewise.
53034         * lib/unistr/u8-to-u32.c: Likewise.
53035         * lib/unistr/u8-uctomb-aux.c: Likewise.
53036         * lib/unistr/u8-uctomb.c: Likewise.
53037         * lib/unitypes.h: Likewise.
53038         * lib/uniwidth.h: Likewise.
53039         * lib/uniwidth/cjk.h: Likewise.
53040         * lib/uniwidth/u16-strwidth.c: Likewise.
53041         * lib/uniwidth/u16-width.c: Likewise.
53042         * lib/uniwidth/u32-strwidth.c: Likewise.
53043         * lib/uniwidth/u32-width.c: Likewise.
53044         * lib/uniwidth/u8-strwidth.c: Likewise.
53045         * lib/uniwidth/u8-width.c: Likewise.
53046         * lib/uniwidth/width.c: Likewise.
53047
53048 2007-10-07  Bruno Haible  <bruno@clisp.org>
53049
53050         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
53051         The file is still under LGPL (see modules/inttypes).
53052
53053 2007-10-06  Bruno Haible  <bruno@clisp.org>
53054
53055         * modules/trunc (Dependencies): Add 'extensions'.
53056         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
53057         Reported by Ben Pfaff <blp@gnu.org>.
53058
53059 2007-10-06  Bruno Haible  <bruno@clisp.org>
53060
53061         * modules/freopen-tests: New file.
53062         * tests/test-freopen.c: New file.
53063
53064         * modules/fopen-tests: New file.
53065         * tests/test-fopen.c: New file.
53066
53067         * modules/fopen: New file.
53068         * lib/fopen.c: New file.
53069         * m4/fopen.m4: New file.
53070         * modules/freopen: New file.
53071         * lib/freopen.c: New file.
53072         * m4/freopen.m4: New file.
53073         * lib/stdio.in.h (fopen, freopen): New declarations.
53074         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
53075         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
53076         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
53077         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
53078         * doc/functions/fopen.texi: Mention the 'fopen' module.
53079         * doc/functions/freopen.texi: Mention the 'freopen' module.
53080
53081 2007-10-06  Bruno Haible  <bruno@clisp.org>
53082
53083         * modules/open-tests: New file.
53084         * tests/test-open.c: New file.
53085
53086         * modules/open: New file.
53087         * lib/open.c: New file.
53088         * m4/open.m4: New file.
53089         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
53090         lib/open.c does.
53091         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
53092         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
53093         macros.
53094         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
53095         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
53096         REPLACE_OPEN.
53097         * doc/functions/open.texi: Mention the 'open' module.
53098
53099 2007-10-04  Bruno Haible  <bruno@clisp.org>
53100
53101         * modules/ceill-tests: New file.
53102         * tests/test-ceill.c: New file.
53103
53104         * modules/ceill: New file.
53105         * lib/ceill.c: Replace entire file.
53106         * m4/ceill.m4: New file.
53107         * lib/math.in.h (ceill): Replace declaration.
53108         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
53109         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
53110         * doc/functions/ceill.texi: Mention the 'ceill' module.
53111         * modules/mathl (Files): Remove lib/ceill.c.
53112         (Depends-on): Add ceill.
53113
53114 2007-10-04  Bruno Haible  <bruno@clisp.org>
53115
53116         * modules/ceilf-tests: New file.
53117         * tests/test-ceilf.c: New file.
53118
53119         * modules/ceilf: New file.
53120         * lib/ceil.c: New file.
53121         * lib/ceilf.c: New file.
53122         * m4/ceilf.m4: New file.
53123         * lib/math.in.h (ceilf): New declaration.
53124         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
53125         HAVE_DECL_CEILF.
53126         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
53127         HAVE_DECL_CEILF.
53128         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
53129
53130 2007-10-04  Bruno Haible  <bruno@clisp.org>
53131
53132         * modules/floorl-tests: New file.
53133         * tests/test-floorl.c: New file.
53134
53135         * modules/floorl: New file.
53136         * lib/floorl.c: Replace entire file.
53137         * m4/floorl.m4: New file.
53138         * lib/math.in.h (floorl): Replace declaration.
53139         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
53140         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
53141         * doc/functions/floorl.texi: Mention the 'floorl' module.
53142         * modules/mathl (Files): Remove lib/floorl.c.
53143         (Depends-on): Add floorl.
53144
53145 2007-10-04  Bruno Haible  <bruno@clisp.org>
53146
53147         * modules/floorf-tests: New file.
53148         * tests/test-floorf.c: New file.
53149
53150         * modules/floorf: New file.
53151         * lib/floor.c: New file.
53152         * lib/floorf.c: New file.
53153         * m4/floorf.m4: New file.
53154         * lib/math.in.h (floorf): New declaration.
53155         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
53156         HAVE_DECL_FLOORF.
53157         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
53158         HAVE_DECL_FLOORF.
53159         * doc/functions/floorf.texi: Mention the 'floorf' module.
53160
53161 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
53162             Bruno Haible  <bruno@clisp.org>
53163
53164         Advertise for the Git server instead of the CVS server.
53165         * doc/gnulib-intro.texi (Steady Development): Mention the Git
53166         repository instead of the CVS one.
53167         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
53168         about all VCS systems generically.
53169         * doc/gnulib.texi (Introduction): Capitalize `Git'.
53170
53171 2007-10-04  Bruno Haible  <bruno@clisp.org>
53172
53173         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
53174         means.
53175         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
53176
53177 2007-10-04  Bruno Haible  <bruno@clisp.org>
53178
53179         * modules/truncl-tests: New file.
53180         * tests/test-truncl.c: New file.
53181
53182         * modules/truncl: New file.
53183         * lib/truncl.c: New file.
53184         * m4/truncl.m4: New file.
53185         * lib/math.in.h (truncl): New declaration.
53186         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
53187         HAVE_DECL_TRUNCL.
53188         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
53189         HAVE_DECL_TRUNCL.
53190         * doc/functions/truncl.texi: Mention the 'truncl' module.
53191
53192 2007-10-04  Bruno Haible  <bruno@clisp.org>
53193
53194         * modules/truncf-tests: New file.
53195         * tests/test-truncf.c: New file.
53196
53197         * modules/truncf: New file.
53198         * lib/trunc.c: Make paramerizable through USE_* macros.
53199         * lib/truncf.c: New file.
53200         * m4/truncf.m4: New file.
53201         * lib/math.in.h (truncf): New declaration.
53202         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
53203         HAVE_DECL_TRUNCF.
53204         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
53205         HAVE_DECL_TRUNCF.
53206         * doc/functions/truncf.texi: Mention the 'truncf' module.
53207
53208 2007-10-03  Bruno Haible  <bruno@clisp.org>
53209
53210         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
53211         augmentation also for tests modules.
53212         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
53213         * modules/atexit-tests (Makefile.am): Likewise.
53214         * modules/binary-io-tests (Makefile.am): Likewise.
53215         * modules/c-strcase-tests (Makefile.am): Likewise.
53216         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
53217         * modules/canonicalize-tests (Makefile.am): Likewise.
53218         * modules/closein-tests (Makefile.am): Likewise.
53219         * modules/fprintf-posix-tests (Makefile.am): Likewise.
53220         * modules/freadahead-tests (Makefile.am): Likewise.
53221         * modules/fseek-tests (Makefile.am): Likewise.
53222         * modules/fseeko-tests (Makefile.am): Likewise.
53223         * modules/ftell-tests (Makefile.am): Likewise.
53224         * modules/ftello-tests (Makefile.am): Likewise.
53225         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
53226         * modules/isnanl-tests (Makefile.am): Likewise.
53227         * modules/lseek-tests (Makefile.am): Likewise.
53228         * modules/mbscasecmp-tests (Makefile.am): Likewise.
53229         * modules/mbscasestr-tests (Makefile.am): Likewise.
53230         * modules/mbschr-tests (Makefile.am): Likewise.
53231         * modules/mbscspn-tests (Makefile.am): Likewise.
53232         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
53233         * modules/mbspbrk-tests (Makefile.am): Likewise.
53234         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
53235         * modules/mbsrchr-tests (Makefile.am): Likewise.
53236         * modules/mbsspn-tests (Makefile.am): Likewise.
53237         * modules/mbsstr-tests (Makefile.am): Likewise.
53238         * modules/printf-posix-tests (Makefile.am): Likewise.
53239         * modules/snprintf-posix-tests (Makefile.am): Likewise.
53240         * modules/sprintf-posix-tests (Makefile.am): Likewise.
53241         * modules/tsearch-tests (Makefile.am): Likewise.
53242         * modules/uniname/uniname-tests (Makefile.am): Likewise.
53243         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
53244         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
53245         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
53246         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
53247         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
53248         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
53249         * modules/vprintf-posix-tests (Makefile.am): Likewise.
53250         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
53251         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
53252         * modules/xstrtoimax-tests (Makefile.am): Likewise.
53253         * modules/xstrtol-tests (Makefile.am): Likewise.
53254         * modules/xstrtoumax-tests (Makefile.am): Likewise.
53255         * modules/yesno-tests (Makefile.am): Likewise.
53256
53257 2007-10-03  Bruno Haible  <bruno@clisp.org>
53258
53259         * modules/trunc-tests: New file.
53260         * tests/test-trunc.c: New file.
53261
53262         * modules/trunc: New file.
53263         * lib/trunc.c: New file.
53264         * m4/trunc.m4: New file.
53265         * lib/math.in.h (trunc): New declaration.
53266         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
53267         HAVE_DECL_TRUNC.
53268         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
53269         HAVE_DECL_TRUNC.
53270         * doc/functions/trunc.texi: Mention the 'trunc' module.
53271
53272 2007-10-03  Bruno Haible  <bruno@clisp.org>
53273
53274         * tests/test-fpending.c: New file, mostly copied
53275         from coreutils/lib/t-fpending.c.
53276         * modules/fpending-tests: New file.
53277
53278 2007-10-03  Bruno Haible  <bruno@clisp.org>
53279
53280         Port the stdio extensions to QNX (untested).
53281         * lib/fseterr.c (fseterr): Add support for QNX.
53282         * lib/fbufmode.c (fbufmode): Likewise.
53283         * lib/freadable.c (freadable): Likewise.
53284         * lib/fwritable.c (fwritable): Likewise.
53285         * lib/freading.c (freading): Likewise.
53286         * lib/fwriting.c (fwriting): Likewise.
53287         * lib/freadahead.c (freadahed): Likewise.
53288         * lib/fpurge.c (fpurge): Likewise.
53289         * lib/fseeko.c (rpl_fseeko): Likewise.
53290
53291 2007-10-03  Bruno Haible  <bruno@clisp.org>
53292             Jim Meyering  <jim@meyering.net>
53293             Eric Blake  <ebb9@byu.net>
53294
53295         * doc/relocatable.texi: Use @command instead of @program.
53296
53297 2007-10-02  Jim Meyering  <jim@meyering.net>
53298
53299         Perform one more "_.h" -> ".in.h" substitution.
53300         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
53301         instead of unistd_.h here, too.
53302
53303 2007-10-01  Bruno Haible  <bruno@clisp.org>
53304
53305         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
53306         Needed for the alloca-opt module.
53307
53308 2007-09-30  Bruno Haible  <bruno@clisp.org>
53309
53310         * lib/alloca.in.h: Renamed from lib/alloca_.h.
53311         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
53312         alloca_.h.
53313         * lib/argz.in.h: Renamed from lib/argz_.h.
53314         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
53315         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
53316         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
53317         byteswap_.h.
53318         * lib/dirent.in.h: Renamed from lib/dirent_.h.
53319         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
53320         dirent_.h.
53321         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
53322         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
53323         fcntl_.h.
53324         * lib/float.in.h: Renamed from lib/float_.h.
53325         * modules/float (Files, Makefile.am): Use float.in.h instead of
53326         float_.h.
53327         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
53328         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
53329         fnmatch_.h.
53330         * lib/getopt.in.h: Renamed from lib/getopt_.h.
53331         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
53332         getopt_.h.
53333         * lib/glob.in.h: Renamed from lib/glob_.h.
53334         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
53335         * lib/iconv.in.h: Renamed from lib/iconv_.h.
53336         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
53337         iconv_.h.
53338         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
53339         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
53340         inttypes_.h.
53341         * lib/locale.in.h: Renamed from lib/locale_.h.
53342         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
53343         locale_.h.
53344         * lib/math.in.h: Renamed from lib/math_.h.
53345         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
53346         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
53347         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
53348         of netinet_in_.h. Add dependency.
53349         * lib/poll.in.h: Renamed from lib/poll_.h.
53350         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
53351         * lib/search.in.h: Renamed from lib/search_.h.
53352         * modules/search (Files, Makefile.am): Use search.in.h instead of
53353         search_.h.
53354         * lib/signal.in.h: Renamed from lib/signal_.h.
53355         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
53356         _signal.h.
53357         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
53358         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
53359         stdbool_.h.
53360         * lib/stdint.in.h: Renamed from lib/stdint_.h.
53361         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
53362         stdint_.h.
53363         * lib/stdio.in.h: Renamed from lib/stdio_.h.
53364         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
53365         stdio_.h.
53366         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
53367         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
53368         stdlib_.h.
53369         * lib/string.in.h: Renamed from lib/string_.h.
53370         * modules/string (Files, Makefile.am): Use string.in.h instead of
53371         string_.h.
53372         * doc/gnulib-tool.texi (Initial import): Update.
53373         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
53374         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
53375         of sys_select_.h. Add dependency.
53376         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
53377         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
53378         of sys_socket_.h.
53379         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
53380         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
53381         sys_stat_.h.
53382         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
53383         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
53384         sys_time_.h.
53385         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
53386         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
53387         sysexits_.h.
53388         * lib/time.in.h: Renamed from lib/time_.h.
53389         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
53390         * lib/unistd.in.h: Renamed from lib/unistd_.h.
53391         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
53392         unistd_.h.
53393         * lib/wchar.in.h: Renamed from lib/wchar_.h.
53394         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
53395         wchar_.h.
53396         * lib/wctype.in.h: Renamed from lib/wctype_.h.
53397         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
53398         wctype_.h.
53399         * build-aux/bootstrap (slurp): Update.
53400         * lib/.cppi-disable: Update.
53401
53402 2007-09-30  Bruno Haible  <bruno@clisp.org>
53403
53404         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
53405         Needed on BeOS.
53406
53407 2007-09-30  Bruno Haible  <bruno@clisp.org>
53408
53409         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
53410
53411 2007-09-29  Bruno Haible  <bruno@clisp.org>
53412
53413         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
53414
53415 2007-09-29  Bruno Haible  <bruno@clisp.org>
53416
53417         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
53418         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
53419         * build-aux/install-reloc: Compile also areadlink.c.
53420         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
53421
53422 2007-09-29  Bruno Haible  <bruno@clisp.org>
53423
53424         * gnulib-tool (func_emit_initmacro_done): Indentation.
53425
53426 2007-09-29  Bruno Haible  <bruno@clisp.org>
53427
53428         * README: Add CVS checkout update instructions.
53429         Info from Bob Proulx <bob@proulx.com>.
53430
53431 2007-09-28  Eric Blake  <ebb9@byu.net>
53432
53433         Provide move-if-change.
53434         * build-aux/move-if-change: New file, based on best practice
53435         rather than any canonical upstream location.
53436
53437 2007-09-28  Jim Meyering  <jim@meyering.net>
53438
53439         Fix canonicalize loop-detection corner case.
53440         Do not attempt to stat the symlink values stored via seen_triple.
53441         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
53442         on linux-2.6.18, (but not 2.6.22).
53443         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
53444         triple_compare.  The former compares dev,ino,filename, while the latter
53445         would actually stat dirname(filename) when dev and ino were equal.
53446         * lib/hash-triple.c: Install <string.h>.
53447         (STREQ): Define.
53448         (triple_compare_ino_str): New function.
53449         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
53450
53451 2007-09-28  Eric Blake  <ebb9@byu.net>
53452
53453         Enforce that AC_REPLACE_FUNCS files exist.
53454         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
53455         override check for typos.
53456
53457         Fix test-closein on Solaris 10.
53458         * tests/test-closein.c (main): Don't assume stdin can be inherited
53459         closed on all systems.
53460         * tests/test-closein.sh: Likewise.
53461         Reported by Piotr Tarnowski.
53462
53463 2007-09-28  Jim Meyering  <jim@meyering.net>
53464
53465         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
53466
53467 2007-09-27  Jim Meyering  <jim@meyering.net>
53468
53469         canonicalize: Avoid a false-positive cycle failure.
53470         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
53471         Sort.  Remove cycle-check.
53472         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
53473         not cycle-check.h.
53474         (seen_triple): New function.
53475         (canonicalize_filename_mode): Use it instead of cycle-check.
53476         * tests/test-canonicalize.c: Add a test for this bug.
53477         * tests/test-canonicalize.sh: Set up and run the test.
53478
53479         New module, file-set, from coreutils.
53480         * modules/file-set: Define it.
53481         * lib/file-set.c, lib/file-set.h: Implement.
53482
53483         New module, hash-triple, from coreutils.
53484         * modules/hash-triple: Define it.
53485         * lib/hash-triple.c, lib/hash-triple.h: Implement.
53486
53487 2007-09-25  Eric Blake  <ebb9@byu.net>
53488
53489         Fix strerror on Interix.
53490         * lib/string_.h (strerror): Declare replacement.
53491         * doc/functions/strerror.texi (strerror): Document the Interix
53492         shortcoming.
53493         * modules/string (Makefile.am): Support new hooks.
53494         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
53495         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
53496         gl_FUNC_STRERROR_SEPARATE.
53497         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
53498         * lib/strerror.c (rpl_strerror): Provide replacement.
53499         * modules/strerror (Depends-on): Add string.
53500         (configure.ac): Detect use of module.
53501         * tests/test-strerror.c: New file.
53502         * modules/strerror-tests: New test module.
53503         * modules/argp (Depends-on): Add strerror.
53504         * modules/error (Depends-on): Likewise.
53505         Reported by Martin Koeppe.
53506
53507 2007-09-24  Bruno Haible  <bruno@clisp.org>
53508
53509         * README: Update git instructions.
53510
53511 2007-09-24  Eric Blake  <ebb9@byu.net>
53512
53513         Revert fpending breakage from 2007-09-08.
53514         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
53515         __fpending.c.
53516
53517 2007-09-24  Jim Meyering  <jim@meyering.net>
53518
53519         filenamecat.c: Add a test.
53520         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
53521         showing how the function works when DIR is the empty string.
53522
53523 2007-09-21  Simon Josefsson  <simon@josefsson.org>
53524
53525         * tests/test-canonicalize.sh: Turn on executable bit.
53526
53527 2007-09-19  Eric Blake  <ebb9@byu.net>
53528
53529         * README: Update CVS instructions.
53530
53531 2007-09-18  Bruno Haible  <bruno@clisp.org>
53532
53533         * modules/areadlink: New file.
53534         * lib/areadlink.h (areadlink): New declaration.
53535         * lib/areadlink.c: New file, based on lib/xreadlink.c.
53536
53537 2007-09-17  Jim Meyering  <jim@meyering.net>
53538
53539         * lib/savewd.c (ESTALE) [!defined]: Define.
53540         Reported to be required on Interix by Martin Koeppe.
53541
53542 2007-09-17  Bruno Haible  <bruno@clisp.org>
53543
53544         * gnulib-tool (func_version): Use $version.
53545
53546 2007-09-16  Bruno Haible  <bruno@clisp.org>
53547
53548         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
53549         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
53550         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
53551         Reported by Greg Schafer <gschafer@zip.com.au>.
53552
53553 2007-09-15  Bruno Haible  <bruno@clisp.org>
53554
53555         * gnulib-tool (sed): Try a little harder to make bash understand the
53556         alias.
53557         Reported by Bruce Korb <bruce.korb@gmail.com>.
53558
53559 2007-09-13  Eric Blake  <ebb9@byu.net>
53560
53561         * ChangeLog: Remove conflict markers.
53562
53563 2007-09-13  Simon Josefsson  <simon@josefsson.org>
53564
53565         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
53566         Reported by Bruno Haible <bruno@clisp.org>.
53567
53568 2007-09-12  Bruno Haible  <bruno@clisp.org>
53569
53570         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
53571         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
53572         is not defined.
53573
53574 2007-09-12  Eric Blake  <ebb9@byu.net>
53575
53576         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
53577         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
53578         Autoconf definition.
53579         * modules/euidaccess (Depends-on): Add extensions, for
53580         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
53581         * modules/fnmatch (Depends-on): Likewise.
53582         * modules/getaddrinfo (Depends-on): Likewise.
53583         * modules/getdelim (Depends-on): Likewise.
53584         * modules/getline (Depends-on): Likewise.
53585         * modules/getsubopt (Depends-on): Likewise.
53586         * modules/gettext (Depends-on): Likewise.
53587         * modules/group-member (Depends-on): Likewise.
53588         * modules/mbchar (Depends-on): Likewise.
53589         * modules/memmem (Depends-on): Likewise.
53590         * modules/mempcpy (Depends-on): Likewise.
53591         * modules/memrchr (Depends-on): Likewise.
53592         * modules/pagealign_alloc (Depends-on): Likewise.
53593         * modules/readutmp (Depends-on): Likewise.
53594         * modules/stpcpy (Depends-on): Likewise.
53595         * modules/stpncpy (Depends-on): Likewise.
53596         * modules/strchrnul (Depends-on): Likewise.
53597         * modules/strndup (Depends-on): Likewise.
53598         * modules/strsep (Depends-on): Likewise.
53599         * modules/strverscmp (Depends-on): Likewise.
53600         * modules/vasprintf (Depends-on): Likewise.
53601         * modules/wcwidth (Depends-on): Likewise.
53602         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
53603         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
53604         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
53605         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
53606         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
53607         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
53608         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
53609         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
53610         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
53611         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
53612         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
53613         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
53614         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
53615         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
53616         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
53617         * m4/readutmp.m4 (gl_READUTMP): Likewise.
53618         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
53619         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
53620         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
53621         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
53622         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
53623         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
53624         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
53625         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
53626         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
53627         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
53628         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
53629         so that lock.m4 can be used in gettext without extensions module.
53630
53631 2007-09-11  Bruno Haible  <bruno@clisp.org>
53632
53633         * m4/isc-posix.m4: Remove file.
53634         Suggested by Eric Blake.
53635
53636 2007-09-11  Eric Blake  <ebb9@byu.net>
53637
53638         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
53639
53640 2007-09-10  Bruno Haible  <bruno@clisp.org>
53641
53642         * posix-modules: Fix typo in error message.
53643         Reported by Matt <mkraai@beckman.com>.
53644
53645 2007-09-09  Bruno Haible  <bruno@clisp.org>
53646
53647         * doc/functions/getdelim.texi: Update list of platforms lacking the
53648         function.
53649         * doc/functions/getline.texi: Likewise.
53650
53651 2007-09-09  Jim Meyering  <jim@meyering.net>
53652
53653         * lib/hash.c (hash_initialize): Detect calloc failure.
53654         Reported by Bruno Haible.
53655
53656 2007-09-09  Bruno Haible  <bruno@clisp.org>
53657
53658         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
53659         malloc or realloc fails.
53660
53661 2007-09-09  Bruno Haible  <bruno@clisp.org>
53662
53663         * modules/getcwd (Depends-on): Add malloc-posix.
53664         * modules/glob (Depends-on): Likewise.
53665         * modules/putenv (Depends-on): Likewise.
53666         * modules/strdup (Depends-on): Likewise.
53667         * modules/getdelim (Depends-on): Add realloc-posix.
53668         * modules/read-file (Depends-on): Likewise.
53669
53670 2007-09-09  Bruno Haible  <bruno@clisp.org>
53671
53672         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
53673         (gl_FUNC_MALLOC_POSIX): Require it.
53674         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
53675         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
53676         * modules/realloc (Files): Add m4/malloc.m4.
53677         * modules/calloc (Files): Likewise.
53678
53679 2007-09-09  Bruno Haible  <bruno@clisp.org>
53680
53681         * modules/malloc-posix: New file.
53682         * modules/malloc (Depends-on): Add malloc-posix.
53683         * lib/malloc.c: Include errno.h.
53684         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
53685         and a POSIX-compatible malloc into a single function. Set ENOMEM
53686         when returning NULL.
53687         * m4/malloc.m4: New file.
53688         * doc/functions/malloc.texi: Mention the malloc-posix module.
53689         * lib/stdlib_.h (malloc): New declaration.
53690         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53691         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
53692         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
53693         and HAVE_MALLOC_POSIX.
53694
53695 2007-09-09  Bruno Haible  <bruno@clisp.org>
53696
53697         * modules/realloc-posix: New file.
53698         * modules/realloc (Depends-on): Add realloc-posix.
53699         * lib/realloc.c: Include errno.h.
53700         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
53701         and a POSIX-compatible realloc into a single function. Set ENOMEM
53702         when returning NULL.
53703         * m4/realloc.m4: New file.
53704         * doc/functions/realloc.texi: Mention the realloc-posix module.
53705         * lib/stdlib_.h (realloc): New declaration.
53706         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53707         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
53708         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
53709         and HAVE_REALLOC_POSIX.
53710
53711 2007-09-09  Bruno Haible  <bruno@clisp.org>
53712
53713         * modules/calloc-posix: New file.
53714         * modules/calloc (Depends-on): Add calloc-posix.
53715         * lib/calloc.c: Include errno.h.
53716         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
53717         and a POSIX-compatible calloc into a single function. Set ENOMEM
53718         when returning NULL.
53719         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
53720         * doc/functions/calloc.texi: Mention the calloc-posix module.
53721         * lib/stdlib_.h (calloc): New declaration.
53722         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53723         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
53724         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
53725         and HAVE_CALLOC_POSIX.
53726
53727 2007-09-09  Bruno Haible  <bruno@clisp.org>
53728
53729         Allow for modules to show an arbitrary notice.
53730         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
53731         * gnulib-tool: New option --extract-notice.
53732         (func_usage): Document it.
53733         (sed_extract_prog): Update.
53734         (func_get_notice): New function.
53735         (func_modules_notice): New function.
53736         (func_import, func_create_testdir): Invoke it.
53737         Suggested by Jim Meyering.
53738
53739 2007-09-09  Bruno Haible  <bruno@clisp.org>
53740
53741         * gnulib-tool: New options --verbose, --quiet.
53742         (func_usage): Document them.
53743         (verbose): New variable.
53744         (func_execute_command): New function.
53745         (func_import): Don't show the module list and the file list if
53746         $verbose < 0.
53747         (func_create_testdir): Likewise. Use func_execute_command.
53748         (func_create_megatestdir): Use func_execute_command.
53749
53750 2007-09-08  Bruno Haible  <bruno@clisp.org>
53751
53752         * gnulib-tool (func_import): Prefer rsync over wget when available,
53753         for fetching the PO files.
53754
53755 2007-09-08  Bruno Haible  <bruno@clisp.org>
53756
53757         * posix-modules: New file. Portions copied from gnulib-tool.
53758         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
53759
53760 2007-09-08  Jim Meyering  <jim@meyering.net>
53761
53762         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
53763         * lib/fpending.h: Rename from __fpending.h.
53764         * lib/fpending.c: Rename from __fpending.c.
53765         Include "fpending.h", not "__fpending.h".
53766         * lib/__fpending.h, lib/__fpending.c: Remove files.
53767         * modules/fpending (Files): Reflect new file names.
53768         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
53769
53770 2007-09-08  Bruno Haible  <bruno@clisp.org>
53771
53772         * m4/inttypes-h.m4: Remove stub file.
53773
53774 2007-09-07  Simon Josefsson  <simon@josefsson.org>
53775
53776         * doc/headers/stdint.texi: Discuss #include_next issue.
53777
53778 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53779
53780         * build-aux/bootstrap: Remove obsolete comment about wget --help.
53781
53782 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53783
53784         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
53785         in variable name.
53786
53787 2007-09-03  Jim Meyering  <jim@meyering.net>
53788
53789         New module: git-version-gen.
53790         * modules/git-version-gen: New file.
53791
53792         Import changes from coreutils for bootstrap script.
53793
53794         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
53795
53796         bootstrap: uses rsync to download the .po files
53797         * build-aux/bootstrap (po_download_command_format): New global.
53798         (download_po_files): Use rsync.
53799         (update_po_files): Don't remove .po files after download,
53800         so future rsync runs can take advantage of the copies.
53801
53802         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
53803
53804         Solve the unnecessary-.po-file-regeneration problem once and for all.
53805         * build-aux/bootstrap (download_po_files): New function, renamed from
53806         get_translations.  Now, downloads, but doesn't update LINGUAS.
53807         (update_po_files): New function.
53808
53809         bootstrap: Ignore more.
53810         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
53811         uniwidth to e.g., lib/.gitignore.
53812         (slurp): Handle the sys_stat_.h -> sys mapping, too.
53813
53814         * build-aux/bootstrap: New setting: vc_ignore.
53815         (insert_sorted_if_absent): Create $file if absent.
53816         Adapt to new, possibly empty, list: $vc_ignore.
53817
53818         bootstrap: generate more ignorable names
53819         * build-aux/bootstrap (slurp): When generating ignorable names,
53820         also map .sin to .sed, .gperf to .c, and .y to .c.
53821
53822 2007-09-03  Jim Meyering  <jim@meyering.net>
53823
53824         * build-aux/git-version-gen: New file, from coreutils.  For details, see
53825         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
53826
53827 2007-09-02  Bruno Haible  <bruno@clisp.org>
53828
53829         Fix mis-recognition of 'mcs' on QNX 6.
53830         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
53831         output contains the string "Mono".
53832         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
53833         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
53834
53835 2007-09-01  Bruno Haible  <bruno@clisp.org>
53836
53837         Fix collision between uniwidth/* and linebreak modules.
53838         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
53839         u32_width): Remove declarations.
53840         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
53841         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
53842         streq3, streq2, streq1, streq0): Remove functions.
53843         (STREQ): Remove macro.
53844         (is_cjk_encoding): Remove function.
53845         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
53846         (uc_width, u8_width, u16_width, u32_width): Remove functions.
53847         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
53848         * NEWS: Document the change.
53849
53850 2007-09-01  Bruno Haible  <bruno@clisp.org>
53851
53852         * lib/streq.h: Add double-inclusion guard.
53853
53854 2007-09-01  Karl Berry  <karl@gnu.org>
53855
53856         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
53857
53858 2007-08-28  Jim Meyering  <jim@meyering.net>
53859
53860         Rename mreadlink_with_size to areadlink_with_size.
53861         * NEWS: Document the change.
53862         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
53863         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
53864         * lib/mreadlink.h: Rename this to...
53865         * lib/areadlink.h: ...this.
53866         * modules/mreadlink-with-size: Rename this to...
53867         * modules/areadlink-with-size: ...this.
53868         * lib/canonicalize.c: Reflect the renaming.
53869         * modules/canonicalize: Likewise.
53870
53871 2007-08-26  Bruno Haible  <bruno@clisp.org>
53872
53873         * gnulib-tool (func_import): When deciding which files to remove,
53874         consider also dangling symbolic links.
53875         Reported by Eric Blake.
53876
53877 2007-08-26  Bruno Haible  <bruno@clisp.org>
53878
53879         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
53880
53881 2007-08-23  Simon Josefsson  <simon@josefsson.org>
53882
53883         * lib/readline.c: Don't include getline.h, the prototype is now
53884         found in stdio.h.
53885
53886 2007-08-23  Jim Meyering  <jim@meyering.net>
53887
53888         Getdelim touchup.
53889         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
53890         around the funlockfile call, since funlockfile never sets errno.
53891         Don't set errno upon failed realloc.
53892
53893 2007-08-22  Eric Blake  <ebb9@byu.net>
53894
53895         Getline touchups.
53896         * lib/getdelim.c (getdelim): Revert regression that required *n to
53897         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
53898         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
53899         getdelim, rather than whether implementation is missing.
53900         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
53901         * lib/stdio_.h (getline): Also declare if replacement is
53902         required.
53903         * doc/functions/getdelim.texi: New file.
53904         * doc/functions/getline.texi: Likewise.
53905         * doc/gnulib.texi (Function Substitutes): Add new files.
53906         Reported by Bruno Haible.
53907
53908 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
53909
53910         * users.txt: Add Guile.
53911
53912 2007-08-22  Eric Blake  <ebb9@byu.net>
53913
53914         * tests/test-getdelim.c (main): Use remove, not unlink.
53915         * tests/test-getline.c (main): Likewise.
53916
53917         Move getline and getdelim into stdio.h, per POSIX 200x.
53918         * modules/getline (Files): Remove getline.h.
53919         (Depends-on): Add stdio.
53920         (configure.ac): Add module indicator.
53921         * modules/getdelim (Files): Remove getdelim.h.
53922         (Depends-on): Add stdio.
53923         (configure.ac): Add module indicator.
53924         * modules/stdio (Makefile.am): Work with new indicators.
53925         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
53926         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
53927         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
53928         * lib/getdelim.h: Delete.
53929         * lib/getline.h: Delete.
53930         * lib/stdio_.h (getdelim, getline): Declare.
53931         * modules/getdelim-tests: New module.
53932         * modules/getline-tests: Likewise.
53933         * tests/test-getdelim.c: New file.
53934         * tests/test-getline.c: Likewise.
53935         * NEWS: Document the change.
53936         * lib/getline.c: Update choice of header.
53937         * lib/csharpcomp.c: Likewise.
53938         * lib/getpass.c: Likewise.
53939         * lib/javacomp.c: Likewise.
53940         * lib/javaversion.c: Likewise.
53941         * lib/yesno.c: Likewise.
53942         * lib/getdelim.c: Likewise.
53943         (getdelim): Set errno on failure, and avoid memory leak.
53944
53945 2007-08-19  Bruno Haible  <bruno@clisp.org>
53946
53947         * modules/closein (Depends-on): Add freadahead.
53948         * lib/closein.c: Include freadahead.h.
53949         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
53950         is zero.
53951
53952 2007-08-19  Bruno Haible  <bruno@clisp.org>
53953
53954         * modules/freadahead-tests: New file.
53955         * tests/test-freadahead.sh: New file.
53956         * tests/test-freadahead.c: New file.
53957
53958         * modules/freadahead: New file.
53959         * lib/freadahead.h: New file.
53960         * lib/freadahead.c: New file.
53961         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
53962         fbufmode, fpurge, freadable, fwritable.
53963
53964 2007-08-19  Eric Blake  <ebb9@byu.net>
53965
53966         Test yesno in combination with closein.
53967         * lib/yesno.c (yesno): Document use of stdin.
53968         * modules/yesno-tests (Files): New module.
53969         * tests/test-yesno.c (main): New file.
53970         * tests/test-yesno.sh: Likewise.
53971
53972 2007-08-19  Bruno Haible  <bruno@clisp.org>
53973
53974         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
53975         * lib/fseeko.c (rpl_fseeko): Likewise.
53976         * lib/fseterr.c (fseterr): Likewise.
53977
53978 2007-08-19  Bruno Haible  <bruno@clisp.org>
53979
53980         * tests/test-lseek.c (main): Disable a test for BeOS.
53981         * doc/functions/lseek.texi: Document the BeOS bug.
53982
53983 2007-08-19  Bruno Haible  <bruno@clisp.org>
53984             Eric Blake  <ebb9@byu.net>
53985
53986         * lib/lseek.c: Include <sys/stat.h>.
53987         (rpl_lseek): Add workaround code also for Unix platforms.
53988         Needed for BeOS.
53989         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
53990         * doc/functions/lseek.texi: Document BeOS definiency.
53991
53992 2007-08-18  Bruno Haible  <bruno@clisp.org>
53993
53994         * modules/fstrcmp-tests: New file.
53995         * tests/test-fstrcmp.c: New file.
53996
53997 2007-08-18  Bruno Haible  <bruno@clisp.org>
53998
53999         * modules/fstrcmp: New file, from GNU gettext with modifications.
54000         * lib/fstrcmp.h: New file, from GNU gettext.
54001         * lib/fstrcmp.c: New file, from GNU gettext.
54002         * MODULES.html.sh (String handling): Add fstrcmp.
54003
54004 2007-08-18  Bruno Haible  <bruno@clisp.org>
54005
54006         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
54007         'bool'.
54008         (diag, compareseq): Remove const from the ctxt argument.
54009         (USE_HEURISTIC): Undefine at the end.
54010
54011 2007-08-18  Jim Meyering  <jim@meyering.net>
54012
54013         New file: lib/idcache.h
54014         * NEWS: Mention the addition.
54015         * modules/idcache (Files): Add lib/idcache.h
54016         * lib/idcache.c: Include "idcache.h".
54017         Don't include <sys/types.h>.
54018         Add a FIXME comment.
54019         Move file-scoped "static" declarations to the top.
54020         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
54021
54022 2007-08-17  Bruno Haible  <bruno@clisp.org>
54023         and Paul Eggert  <eggert@cs.ucla.edu>
54024
54025         * MODULES.html.sh: Add diffseq.
54026         * modules/diffseq: New file.
54027         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
54028         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
54029
54030 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
54031
54032         Import changes from coreutils for bootstrap script.
54033
54034         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
54035
54036         * build-aux/bootstrap (slurp): Work even in environments where
54037         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
54038         current code does not slurp files whose names start with ".", and
54039         this looks like it might be a troublesome area.
54040
54041         2007-07-11  Jim Meyering  <jim@meyering.net>
54042
54043         If there's a GPL vN copyright comment, require that N == 3.
54044
54045         2007-07-08  Jim Meyering  <jim@meyering.net>
54046
54047         Run the coreutils-specific code only if tests/Makefile.am.in exists.
54048         * build-aux/bootstrap (mam_template): Move definition out of loop.
54049
54050         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
54051
54052         * build-aux/bootstrap (symlink_to_dir): Rename function from
54053         symlink_to_gnulib.  Add a directory parameter.  Update all
54054         callers.
54055         (cp_mark_as_generated): Also check for -- and link to -- files in
54056         gl/.
54057
54058         2007-07-08  Jim Meyering  <jim@meyering.net>
54059
54060         Adapt to deeper hierarchy in gnulib.
54061         * build-aux/bootstrap (symlink_to_dir): If the destination
54062         directory doesn't exist, create it. This is required at least for
54063         "lib/uniwidth/cjk.h".
54064
54065         2007-05-15  Jim Meyering  <jim@meyering.net>
54066
54067         * build-aux/bootstrap: Now that generated Makefile.am files
54068         are no longer under version control, they must be created at
54069         bootstrap time.
54070
54071 2007-08-14  Ben Pfaff  <blp@gnu.org>
54072
54073         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
54074
54075 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
54076
54077         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
54078         given the changes below.
54079         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
54080         even on hosts that have padding bits beyond the supported 64.
54081
54082 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
54083
54084         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
54085         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
54086         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
54087         depends on it.
54088         (xstrtol_error): Remove.
54089         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
54090         but with a different signature.
54091         (ATTRIBUTE_NORETURN, __attribute__): New macros.
54092         * lib/xstrtol-error.c: Include exitfail.h.
54093         (xstrtol_fatal): New function, with a different signature from the
54094         old xstrtol_error, so that the caller need not worry about passing
54095         in an exit status, or about storage management of the option argument.
54096         (xstrtol_error): Now a static function.  Redo signature to
54097         implement xstrtol_fatal.  Output the correct number of hyphens in
54098         front of the option so that the caller need not worry about
54099         storage management.
54100         (N_): New macro.
54101         (_): Remove; not used now.
54102         * modules/xstrtol: Depend on getopt.
54103         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
54104         of old STRTOL_FATAL_ERROR macro.
54105         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
54106         of test program.
54107         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
54108         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
54109
54110 2007-08-08  Eric Blake  <ebb9@byu.net>
54111
54112         * lib/xstrtol-error.c: Add missing include.
54113
54114         Move xstrtol messages into gnulib domain, when --pobase is used.
54115         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
54116         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
54117         * modules/xstrtol (Files): Distribute new file.
54118         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
54119         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
54120         * tests/test-xstrtol.c: ...into new file.
54121         * tests/test-xstrtoul.c: Also test xstrtoul.
54122         * tests/test-xstrtoimax.c: Also test xstrtoimax.
54123         * tests/test-xstrtoumax.c: Also test xstrtoumax.
54124         * tests/test-xstrtol.sh: Drive the tests.
54125         * tests/test-xstrtoimax.sh: Likewise.
54126         * tests/test-xstrtoumax.sh: Likewise.
54127         * modules/xstrtol-tests: New module.
54128         * modules/xstrtoimax-tests: Likewise.
54129         * modules/xstrtoumax-tests: Likewise.
54130
54131 2007-08-08  Jim Meyering  <jim@meyering.net>
54132
54133         New function: mfile_name_concat.
54134         * lib/filenamecat.c (mfile_name_concat): New function, just like
54135         file_name_concat, but return NULL upon failure rather than exiting
54136         with a diagnostic.
54137         * lib/filenamecat.h: Declare it.
54138
54139 2007-08-07  Bruno Haible  <bruno@clisp.org>
54140
54141         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
54142         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
54143         warning from gcc.
54144         Reported by Eric Blake.
54145
54146 2007-08-07  Simon Josefsson  <simon@josefsson.org>
54147
54148         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
54149         * modules/crypto/arcfour (License): Likewise.
54150         * modules/crypto/des-tests (License): Likewise.
54151         * modules/crypto/gc-arctwo-tests (License): Likewise.
54152         * modules/crypto/gc-des-tests (License): Likewise.
54153         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
54154         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
54155         * modules/crypto/gc-md2-tests (License): Likewise.
54156         * modules/crypto/gc-md4-tests (License): Likewise.
54157         * modules/crypto/gc-md5-tests (License): Likewise.
54158         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
54159         * modules/crypto/gc-rijndael-tests (License): Likewise.
54160         * modules/crypto/gc-sha1-tests (License): Likewise.
54161         * modules/crypto/gc-tests (License): Likewise.
54162         * modules/crypto/hmac-md5 (License): Likewise.
54163         * modules/crypto/hmac-sha1 (License): Likewise.
54164         * modules/crypto/md2-tests (License): Likewise.
54165         * modules/crypto/md4-tests (License): Likewise.
54166         * modules/crypto/md5 (License): Likewise.
54167         * modules/crypto/rijndael (License): Likewise.
54168         * modules/crypto/sha1 (License): Likewise.
54169         * modules/memxor (License): Likewise.
54170
54171 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
54172         and Bruno Haible  <bruno@clisp.org>
54173
54174         * NEWS: Describe interface changes to human, xstrtol.
54175         * lib/human.h: Include <xstrtol.h>.
54176         (human_options): Return enum strtol_error, not int.  Remove
54177         bool arg; take int * instead.
54178         * lib/human.c: Don't include "gettext.h".
54179         (_): Remove; no longer used.
54180         Don't include <xstrtol.h>, since human.h does it.
54181         (human_options): Adjust to abovementioned interface changes.
54182         Do not report error to stderr; that's now the caller's
54183         responsibility.
54184         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
54185         interface change.
54186         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
54187         Str, Argument_type_string.  All uses changed.  Put " argument"
54188         in diagnostics to make them clearer.  Change wording of suffix
54189         message for clarity.
54190         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
54191         Argument_type_string.
54192         (STRTOL_FATAL_WARN): Remove; no longer used.
54193         * modules/human (Depends-on): Remove gettext-h.
54194
54195 2007-08-06  Simon Josefsson  <simon@josefsson.org>
54196
54197         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
54198
54199 2007-07-31  Bruno Haible  <bruno@clisp.org>
54200
54201         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
54202         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
54203         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
54204
54205 2007-07-31  Bruno Haible  <bruno@clisp.org>
54206
54207         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
54208         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
54209
54210 2007-07-30  Bruno Haible  <bruno@clisp.org>
54211
54212         * modules/base64 (License): Use the synonymous term "LGPLv2+".
54213         * modules/c-ctype (License): Likewise.
54214         * modules/c-strcase (License): Likewise.
54215         * modules/check-version (License): Likewise.
54216         * modules/iconv (License): Likewise.
54217         * modules/iconv_open (License): Likewise.
54218         * modules/read-file (License): Likewise.
54219         * modules/striconv (License): Likewise.
54220         * modules/strverscmp (License): Likewise.
54221         * modules/vasprintf (License): Likewise.
54222         * modules/crypto/des (License): Likewise.
54223         * modules/crypto/gc (License): Likewise.
54224         * modules/crypto/gc-arcfour (License): Likewise.
54225         * modules/crypto/gc-arctwo (License): Likewise.
54226         * modules/crypto/gc-des (License): Likewise.
54227         * modules/crypto/gc-hmac-md5 (License): Likewise.
54228         * modules/crypto/gc-hmac-sha1 (License): Likewise.
54229         * modules/crypto/gc-md2 (License): Likewise.
54230         * modules/crypto/gc-md4 (License): Likewise.
54231         * modules/crypto/gc-md5 (License): Likewise.
54232         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
54233         * modules/crypto/gc-random (License): Likewise.
54234         * modules/crypto/gc-rijndael (License): Likewise.
54235         * modules/crypto/gc-sha1 (License): Likewise.
54236         * modules/crypto/md2 (License): Likewise.
54237         * modules/crypto/md4 (License): Likewise.
54238
54239 2007-07-30  Jim Meyering  <jim@meyering.net>
54240
54241         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
54242         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
54243         it has valid stat data.  This bug would cause du not to count the
54244         sizes of inaccessible directories.
54245         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
54246         in <http://bugzilla.redhat.com/250077>.
54247
54248 2007-07-25  Peter O'Gorman  <peter@pogma.com>
54249             Bruno Haible  <bruno@clisp.org>
54250
54251         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
54252         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
54253         #include_next, gives a diagnostic about it, but reports no error in
54254         the exit code.
54255         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
54256
54257 2007-07-24  Ben Pfaff  <blp@gnu.org>
54258
54259         Improve name: "count-one-bits" is better than "popcount".
54260         * MODULES.html.sh: Update name.
54261         * lib/popcount.h: Renamed lib/count-one-bits.h.
54262         (popcount): Renamed count_one_bits.
54263         (popcountl): Renamed count_one_bits_l.
54264         (popcountll): Renamed count_one_bits_ll.
54265         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
54266         * modules/popcount: Renamed module/count-one-bits.
54267         * modules/popcount-tests: Renamed module/count-one-bits-tests.
54268         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
54269
54270 2007-07-23  Ben Pfaff  <blp@gnu.org>
54271
54272         * lib/popcount.h (popcount32): Reduce size of constants, to allow
54273         better code generation, and add U to large constants to avoid
54274         warnings, in non-GCC case.
54275         Suggested by Bruno Haible.
54276
54277 2007-07-23  Ben Pfaff  <blp@gnu.org>
54278
54279         * lib/popcount.h: Use verify_true instead of if...abort.
54280         * modules/popcount: Depend on verify module.
54281         Suggested by Jim Meyering.
54282
54283 2007-07-23  Bruno Haible  <bruno@clisp.org>
54284
54285         * gnulib-tool (func_import): Create a .cvsignore file also when the
54286         directory is not yet in CVS but the toplevel directory is. When
54287         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
54288         Reported by Karl Berry.
54289
54290 2007-07-22  Ben Pfaff  <blp@gnu.org>
54291
54292         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
54293         case.
54294         Suggested by Eric Blake.
54295
54296 2007-07-22  Ben Pfaff  <blp@gnu.org>
54297
54298         New module: popcount.
54299         * MODULES.html.sh: Add popcount.
54300         * modules/popcount: New file.
54301         * modules/popcount-tests: New file.
54302         * tests/test-popcount.c: New file.
54303         * lib/popcount.h: New file.
54304         * m4/popcount.m4: New file.
54305
54306 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
54307
54308         * build-aux/announce-gen: Update to GPLv3.
54309
54310         * build-aux/config.guess: Update from config.
54311
54312 2007-07-21  Bruno Haible  <bruno@clisp.org>
54313
54314         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
54315         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
54316
54317 2007-07-20  Jim Meyering  <jim@meyering.net>
54318
54319         * check-module: Diagnose a self-dependency.
54320
54321 2007-07-19  Bruno Haible  <bruno@clisp.org>
54322
54323         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
54324         empty.
54325         Reported by Eric Blake.
54326
54327 2007-07-18  Bruno Haible  <bruno@clisp.org>
54328
54329         * gnulib-tool: New options --po-base, --po-domain.
54330         (func_usage): Document them.
54331         (pobase, po_domain): New variables.
54332         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
54333         DEFAULT_TEXT_DOMAIN.
54334         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
54335         (func_import): Consider pobase and po_domain. Create a po/ directory.
54336         (func_create_testdir): Set pobase and po_domain to empty.
54337         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
54338         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
54339
54340 2007-07-18  Bruno Haible  <bruno@clisp.org>
54341
54342         * gnulib-tool (func_get_automake_snippet): Synthesize also an
54343         EXTRA_DIST augmentation for files in build-aux/.
54344
54345 2007-07-16  Bruno Haible  <bruno@clisp.org>
54346
54347         * modules/lseek (License): Use the synonymous term "LGPLv2+".
54348         * modules/getdelim (License): Likewise.
54349
54350 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54351
54352         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
54353         * modules/d-type (License): Likewise.
54354         * modules/extensions (License): Likewise.
54355         * modules/fnmatch (License): Likewise.
54356         * modules/fseeko (License): Likewise.
54357         * modules/getaddrinfo (License): Likewise.
54358         * modules/getline (License): Likewise.
54359         * modules/getlogin_r (License): Likewise.
54360         * modules/getpass (License): Likewise.
54361         * modules/gettimeofday (License): Likewise.
54362         * modules/glob (License): Likewise.
54363         * modules/inet_ntop (License): Likewise.
54364         * modules/malloc (License): Likewise.
54365         * modules/malloca (License): Likewise.
54366         * modules/memmem (License): Likewise.
54367         * modules/mempcpy (License): Likewise.
54368         * modules/memset (License): Likewise.
54369         * modules/minmax (License): Likewise.
54370         * modules/mktime (License): Likewise.
54371         * modules/netinet_in (License): Likewise.
54372         * modules/pathmax (License): Likewise.
54373         * modules/poll (License): Likewise.
54374         * modules/regex (License): Likewise.
54375         * modules/snprintf (License): Likewise.
54376         * modules/stdbool (License): Likewise.
54377         * modules/stdint (License): Likewise.
54378         * modules/stdio (License): Likewise.
54379         * modules/strcase (License): Likewise.
54380         * modules/strcasestr (License): Likewise.
54381         * modules/strdup (License): Likewise.
54382         * modules/string (License): Likewise.
54383         * modules/strndup (License): Likewise.
54384         * modules/strnlen (License): Likewise.
54385         * modules/strpbrk (License): Likewise.
54386         * modules/strptime (License): Likewise.
54387         * modules/strsep (License): Likewise.
54388         * modules/sys_select (License): Likewise.
54389         * modules/sys_socket (License): Likewise.
54390         * modules/sys_stat (License): Likewise.
54391         * modules/sys_time (License): Likewise.
54392         * modules/time (License): Likewise.
54393         * modules/time_r (License): Likewise.
54394         * modules/timegm (License): Likewise.
54395         * modules/unistd (License): Likewise.
54396         * modules/vsnprintf (License): Likewise.
54397         * modules/wctype (License): Likewise.
54398
54399 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54400
54401         * modules/argz (License): LGPLv2+.
54402
54403 2007-07-15  Karl Berry  <karl@gnu.org>
54404
54405         * doc/gnulib.texi: revise node structure per new fdl.texi.
54406
54407 2007-07-14  Bruno Haible  <bruno@clisp.org>
54408
54409         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
54410         the output file.
54411         * lib/uniname/uninames.h: Regenerated.
54412
54413 2007-07-14  Karl Berry  <karl@gnu.org>
54414
54415         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
54416         omitting sectioning and index commands.
54417
54418 2007-07-13  Bruno Haible  <bruno@clisp.org>
54419
54420         New gnulib-tool option --more-symlinks.
54421         * gnulib-tool (func_usage): Document --more-symlinks.
54422         (do_copyrights): New variable.
54423         Recognize option --more-symlinks.
54424         (func_import): Don't add a copyright notice transform to
54425         sed_transform_lib_file if do_copyrights is empty.
54426
54427 2007-07-13  Bruno Haible  <bruno@clisp.org>
54428
54429         * lib/vasnprintf.c (decimal_point_char): Define also if
54430         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
54431         && !NEED_PRINTF_DIRECTIVE_A.
54432         Reported by Clemens Koller <clemens.koller@anagramm.de> via
54433         Gary V. Vaughan <gary@gnu.org>.
54434
54435 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
54436
54437         * lib/inttypes_.h: Undo previous change, since it was fixed
54438         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
54439
54440 2007-07-13  Bruno Haible  <bruno@clisp.org>
54441
54442         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
54443         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
54444
54445 2007-07-13  Jim Meyering  <jim@meyering.net>
54446
54447         df: Don't fail for Tru64's "file-on-file mount".
54448         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
54449         so we fall through and use statfs instead.  Details here:
54450         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
54451         Reported by Albert Chin.
54452
54453 2007-07-13  Bruno Haible  <bruno@clisp.org>
54454
54455         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
54456         * modules/configmake (License): Likewise.
54457         * modules/gettext (License): Likewise.
54458         * modules/gettext-h (License): Likewise.
54459         * modules/include_next (License): Likewise.
54460         * modules/link-warning (License): Likewise.
54461         * modules/localcharset (License): Likewise.
54462         * modules/localename (License): Likewise.
54463         * modules/lock (License): Likewise.
54464         * modules/relocatable-lib-lgpl (License): Likewise.
54465         * modules/size_max (License): Likewise.
54466         * modules/vasnprintf (License): Likewise.
54467         * modules/wchar (License): Likewise.
54468         * modules/xsize (License): Likewise.
54469
54470 2007-07-13  Bruno Haible  <bruno@clisp.org>
54471
54472         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
54473         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
54474
54475 2007-07-12  Bruno Haible  <bruno@clisp.org>
54476
54477         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
54478         in the modules files.
54479
54480 2007-07-11  Karl Berry  <karl@gnu.org>
54481
54482         * MODULES.html.sh (func_module): use
54483          sed -e '\|^'"${includefile}"'$|d'
54484          instead of /.../d, to avoid errors on $includefile's containing /.
54485
54486 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
54487
54488         * gnulib-tool (func_import): Avoid duplication of --avoid
54489         statements
54490         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
54491         names to `_' in variable names.
54492
54493 2007-07-10  Eric Blake  <ebb9@byu.net>
54494
54495         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
54496         * NEWS: Document this change.
54497
54498 2007-07-08  Bruno Haible  <bruno@clisp.org>
54499
54500         Update to Unicode 5.0.
54501         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
54502         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
54503         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
54504         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
54505         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
54506         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
54507         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
54508         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
54509         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
54510         U+10A3F, U+1D242..U+1D244.
54511         (nonspacing_table_ind): Update.
54512         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
54513         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
54514
54515 2007-07-08  Bruno Haible  <bruno@clisp.org>
54516
54517         Update to Unicode 5.0.
54518         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
54519         code transform. Extend the name index field of unicode_name_to_code and
54520         unicode_code_to_name from 16 to 24 bits.
54521         * lib/uniname/uniname.c (unicode_character_name,
54522         unicode_name_character): Add the range 0x12xxx to the code transform.
54523         * lib/uniname/uninames.h: Regenerated.
54524         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
54525
54526 2007-07-07  Bruno Haible  <bruno@clisp.org>
54527
54528         * modules/wcwidth-tests: New file.
54529         * tests/test-wcwidth.c: New file.
54530
54531         Work around MacOS X wcwidth() bug.
54532         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
54533         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
54534         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
54535         original wcwidth in non-UTF-8 locales.
54536         * modules/wcwidth (Depends-on): Add localcharset, streq,
54537         uniwidth/width.
54538         * doc/functions/wcwidth.texi: Update.
54539
54540 2007-07-07  Bruno Haible  <bruno@clisp.org>
54541
54542         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
54543         (wcwidth): New declaration.
54544         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
54545         macros.
54546         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
54547         here. Prepare for creating <wchar.h> unconditionally.
54548         * modules/wchar (Depends-on): Add link-warning.
54549         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
54550         REPLACE_WCWIDTH, and GL_LINK_WARNING.
54551         * lib/wcwidth.h: Remove file.
54552         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
54553         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
54554         * modules/wcwidth (Files): Remove lib/wcwidth.h.
54555         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
54556         (Include): Replace wcwidth.h with <wchar.h>.
54557         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
54558         * lib/mbchar.h: Don't include wcwidth.h.
54559         * lib/mbswidth.c: Likewise.
54560         * NEWS: Mention the change.
54561
54562 2007-07-07  Bruno Haible  <bruno@clisp.org>
54563
54564         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
54565         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
54566         definition with an external declaration.
54567         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
54568         defined as a function. Remove AC_C_INLINE requirement.
54569         * modules/wcwidth (Files): Add lib/wcwidth.c.
54570         (Makefile.am): Remove redundant statement.
54571
54572 2007-07-07  Bruno Haible  <bruno@clisp.org>
54573
54574         * MODULES.html.sh (Unicode string functions): Add the new modules.
54575
54576         * tests/uniwidth/test-u32-strwidth.c: New file.
54577         * modules/uniwidth/u32-strwidth-tests: New file.
54578
54579         * lib/uniwidth/u32-strwidth.c: New file.
54580         * modules/uniwidth/u32-strwidth: New file.
54581
54582         * tests/uniwidth/test-u16-strwidth.c: New file.
54583         * modules/uniwidth/u16-strwidth-tests: New file.
54584
54585         * lib/uniwidth/u16-strwidth.c: New file.
54586         * modules/uniwidth/u16-strwidth: New file.
54587
54588         * tests/uniwidth/test-u8-strwidth.c: New file.
54589         * modules/uniwidth/u8-strwidth-tests: New file.
54590
54591         * lib/uniwidth/u8-strwidth.c: New file.
54592         * modules/uniwidth/u8-strwidth: New file.
54593
54594         * tests/uniwidth/test-u32-width.c: New file.
54595         * modules/uniwidth/u32-width-tests: New file.
54596
54597         * lib/uniwidth/u32-width.c: New file.
54598         * modules/uniwidth/u32-width: New file.
54599
54600         * tests/uniwidth/test-u16-width.c: New file.
54601         * modules/uniwidth/u16-width-tests: New file.
54602
54603         * lib/uniwidth/u16-width.c: New file.
54604         * modules/uniwidth/u16-width: New file.
54605
54606         * tests/uniwidth/test-u8-width.c: New file.
54607         * modules/uniwidth/u8-width-tests: New file.
54608
54609         * lib/uniwidth/u8-width.c: New file.
54610         * modules/uniwidth/u8-width: New file.
54611
54612         * tests/uniwidth/test-uc_width.c: New file.
54613         * modules/uniwidth/width-tests: New file.
54614
54615         * lib/uniwidth/width.c: New file, from GNU libiconv.
54616         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
54617         * modules/uniwidth/width: New file.
54618
54619         * lib/uniwidth.h: New file, from GNU libiconv.
54620         * modules/uniwidth/base: New file.
54621
54622 2007-07-07  Bruno Haible  <bruno@clisp.org>
54623
54624         * lib/uniname.h: New file, from GNU gettext.
54625         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
54626         * lib/uniname/uninames.h: New file, from GNU gettext.
54627         * lib/uniname/uniname.c: New file, from GNU gettext.
54628         * tests/uniname/test-uninames.sh: New file.
54629         * tests/uniname/test-uninames.c: New file, from GNU gettext.
54630         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
54631         * modules/uniname/base: New file.
54632         * modules/uniname/uniname: New file.
54633         * modules/uniname/uniname-tests: New file.
54634         * MODULES.html.sh (Unicode string functions): Add the new modules.
54635
54636 2007-07-06  Bruno Haible  <bruno@clisp.org>
54637
54638         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
54639
54640 2007-07-06  Bruno Haible  <bruno@clisp.org>
54641
54642         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
54643         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
54644         includes <cygwin/sys_time.h> which includes <sys/select.h> which
54645         include <sys/time.h>.
54646         Reported by Eric Blake.
54647
54648 2007-07-06  Eric Blake  <ebb9@byu.net>
54649
54650         Fix testing canonicalize on cygwin.
54651         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
54652         Revert patch from 2007-06-19.
54653         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
54654         canonicalize module is also in use.
54655         * tests/test-canonicalize.c: New file.
54656         * tests/test-canonicalize.sh: Likewise.
54657         * modules/canonicalize-tests: Likewise.
54658
54659 2007-07-06  Jim Meyering  <jim@meyering.net>
54660
54661         * lib/getugroups.c (getugroups): Detect getgrent failure.
54662         Adjust comment to reflect reality: this function may return -1.
54663
54664 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
54665
54666         * build-aux/bootstrap (TP_URL,get_translations): Update to use
54667         the new TP address.
54668         (usage): Fix typo
54669         (gnulib_mk): New variable.
54670
54671 2007-07-05  Jim Meyering  <jim@meyering.net>
54672
54673         Don't let endgrent clobber errno, no matter how improbable.
54674         * lib/getugroups.c (getugroups): Save and restore errno around
54675         endgrent call.
54676
54677         Close the group DB even when failing with 2^31 or more members.
54678         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
54679
54680 2007-07-04  Jim Meyering  <jim@meyering.net>
54681
54682         * lib/getugroups.h: New file.
54683         * lib/getugroups.c: Include "getugroups.h".
54684         Remove uses of "register" keyword.
54685         Move local variable, "cp", down into scope where used.
54686         Give "username" parameter the "const" attribute.
54687         * modules/getugroups (Files): Add lib/getugroups.h
54688
54689 2007-07-04  Karl Berry  <karl@gnu.org>
54690
54691         * MODULES.html.sh (func_all_modules): Complete rename of
54692         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
54693
54694 2007-07-02  Bruno Haible  <bruno@clisp.org>
54695
54696         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
54697         mode, when inttypes.h comes from gnulib.
54698         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
54699
54700 2007-07-02  Simon Josefsson  <simon@josefsson.org>
54701
54702         * NEWS: Mention lgpl module name change.
54703
54704         * modules/lgpl-2.1: Renamed from lgpl.
54705
54706         * NEWS: Mention gpl module name change.
54707
54708         * modules/gpl-3.0: New file, based on gpl-2.0.
54709
54710         * modules/gpl-2.0: Renamed from gpl.
54711
54712         * modules/gpl: Fix filename, doc/gpl.texi is now found at
54713         doc/gpl-2.0.texi.
54714
54715 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
54716
54717         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
54718         #define __STDC_LIMIT_MACROS temporarily while including
54719         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
54720         Problem reported by Joel E. Denny in
54721         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
54722
54723 2007-07-01  Bruno Haible  <bruno@clisp.org>
54724
54725         * lib/unistdio.h: New file.
54726         * lib/unistdio/u-asnprintf.h: New file.
54727         * lib/unistdio/u-asprintf.h: New file.
54728         * lib/unistdio/u-printf-args.c: New file.
54729         * lib/unistdio/u-printf-args.h: New file.
54730         * lib/unistdio/u-printf-parse.h: New file.
54731         * lib/unistdio/u-snprintf.h: New file.
54732         * lib/unistdio/u-sprintf.h: New file.
54733         * lib/unistdio/u-vasprintf.h: New file.
54734         * lib/unistdio/u-vsnprintf.h: New file.
54735         * lib/unistdio/u-vsprintf.h: New file.
54736         * lib/unistdio/ulc-asnprintf.c: New file.
54737         * lib/unistdio/ulc-asprintf.c: New file.
54738         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
54739         * lib/unistdio/ulc-printf-parse.c: New file.
54740         * lib/unistdio/ulc-snprintf.c: New file.
54741         * lib/unistdio/ulc-sprintf.c: New file.
54742         * lib/unistdio/ulc-vasnprintf.c: New file.
54743         * lib/unistdio/ulc-vasprintf.c: New file.
54744         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
54745         * lib/unistdio/ulc-vsnprintf.c: New file.
54746         * lib/unistdio/ulc-vsprintf.c: New file.
54747         * lib/unistdio/u8-asnprintf.c: New file.
54748         * lib/unistdio/u8-asprintf.c: New file.
54749         * lib/unistdio/u8-printf-parse.c: New file.
54750         * lib/unistdio/u8-snprintf.c: New file.
54751         * lib/unistdio/u8-sprintf.c: New file.
54752         * lib/unistdio/u8-vasnprintf.c: New file.
54753         * lib/unistdio/u8-vasprintf.c: New file.
54754         * lib/unistdio/u8-vsnprintf.c: New file.
54755         * lib/unistdio/u8-vsprintf.c: New file.
54756         * lib/unistdio/u8-u8-asnprintf.c: New file.
54757         * lib/unistdio/u8-u8-asprintf.c: New file.
54758         * lib/unistdio/u8-u8-snprintf.c: New file.
54759         * lib/unistdio/u8-u8-sprintf.c: New file.
54760         * lib/unistdio/u8-u8-vasnprintf.c: New file.
54761         * lib/unistdio/u8-u8-vasprintf.c: New file.
54762         * lib/unistdio/u8-u8-vsnprintf.c: New file.
54763         * lib/unistdio/u8-u8-vsprintf.c: New file.
54764         * lib/unistdio/u16-asnprintf.c: New file.
54765         * lib/unistdio/u16-asprintf.c: New file.
54766         * lib/unistdio/u16-printf-parse.c: New file.
54767         * lib/unistdio/u16-snprintf.c: New file.
54768         * lib/unistdio/u16-sprintf.c: New file.
54769         * lib/unistdio/u16-vasnprintf.c: New file.
54770         * lib/unistdio/u16-vasprintf.c: New file.
54771         * lib/unistdio/u16-vsnprintf.c: New file.
54772         * lib/unistdio/u16-vsprintf.c: New file.
54773         * lib/unistdio/u16-u16-asnprintf.c: New file.
54774         * lib/unistdio/u16-u16-asprintf.c: New file.
54775         * lib/unistdio/u16-u16-snprintf.c: New file.
54776         * lib/unistdio/u16-u16-sprintf.c: New file.
54777         * lib/unistdio/u16-u16-vasnprintf.c: New file.
54778         * lib/unistdio/u16-u16-vasprintf.c: New file.
54779         * lib/unistdio/u16-u16-vsnprintf.c: New file.
54780         * lib/unistdio/u16-u16-vsprintf.c: New file.
54781         * lib/unistdio/u32-asnprintf.c: New file.
54782         * lib/unistdio/u32-asprintf.c: New file.
54783         * lib/unistdio/u32-printf-parse.c: New file.
54784         * lib/unistdio/u32-snprintf.c: New file.
54785         * lib/unistdio/u32-sprintf.c: New file.
54786         * lib/unistdio/u32-vasnprintf.c: New file.
54787         * lib/unistdio/u32-vasprintf.c: New file.
54788         * lib/unistdio/u32-vsnprintf.c: New file.
54789         * lib/unistdio/u32-vsprintf.c: New file.
54790         * lib/unistdio/u32-u32-asnprintf.c: New file.
54791         * lib/unistdio/u32-u32-asprintf.c: New file.
54792         * lib/unistdio/u32-u32-snprintf.c: New file.
54793         * lib/unistdio/u32-u32-sprintf.c: New file.
54794         * lib/unistdio/u32-u32-vasnprintf.c: New file.
54795         * lib/unistdio/u32-u32-vasprintf.c: New file.
54796         * lib/unistdio/u32-u32-vsnprintf.c: New file.
54797         * lib/unistdio/u32-u32-vsprintf.c: New file.
54798         * tests/unistdio/test-ulc-asnprintf1.c: New file.
54799         * tests/unistdio/test-ulc-asnprintf1.h: New file.
54800         * tests/unistdio/test-ulc-printf1.h: New file.
54801         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
54802         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
54803         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
54804         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
54805         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
54806         * tests/unistdio/test-ulc-vasprintf1.c: New file.
54807         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
54808         * tests/unistdio/test-ulc-vsprintf1.c: New file.
54809         * tests/unistdio/test-u8-asnprintf1.c: New file.
54810         * tests/unistdio/test-u8-asnprintf1.h: New file.
54811         * tests/unistdio/test-u8-printf1.h: New file.
54812         * tests/unistdio/test-u8-vasnprintf1.c: New file.
54813         * tests/unistdio/test-u8-vasnprintf2.c: New file.
54814         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
54815         * tests/unistdio/test-u8-vasnprintf3.c: New file.
54816         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
54817         * tests/unistdio/test-u8-vasprintf1.c: New file.
54818         * tests/unistdio/test-u8-vsnprintf1.c: New file.
54819         * tests/unistdio/test-u8-vsprintf1.c: New file.
54820         * tests/unistdio/test-u16-asnprintf1.c: New file.
54821         * tests/unistdio/test-u16-asnprintf1.h: New file.
54822         * tests/unistdio/test-u16-printf1.h: New file.
54823         * tests/unistdio/test-u16-vasnprintf1.c: New file.
54824         * tests/unistdio/test-u16-vasnprintf2.c: New file.
54825         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
54826         * tests/unistdio/test-u16-vasnprintf3.c: New file.
54827         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
54828         * tests/unistdio/test-u16-vasprintf1.c: New file.
54829         * tests/unistdio/test-u16-vsnprintf1.c: New file.
54830         * tests/unistdio/test-u16-vsprintf1.c: New file.
54831         * tests/unistdio/test-u32-asnprintf1.c: New file.
54832         * tests/unistdio/test-u32-asnprintf1.h: New file.
54833         * tests/unistdio/test-u32-printf1.h: New file.
54834         * tests/unistdio/test-u32-vasnprintf1.c: New file.
54835         * tests/unistdio/test-u32-vasnprintf2.c: New file.
54836         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
54837         * tests/unistdio/test-u32-vasnprintf3.c: New file.
54838         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
54839         * tests/unistdio/test-u32-vasprintf1.c: New file.
54840         * tests/unistdio/test-u32-vsnprintf1.c: New file.
54841         * tests/unistdio/test-u32-vsprintf1.c: New file.
54842         * modules/unistdio/base: New file.
54843         * modules/unistdio/u-printf-args: New file.
54844         * modules/unistdio/ulc-asnprintf: New file.
54845         * modules/unistdio/ulc-asprintf: New file.
54846         * modules/unistdio/ulc-fprintf: New file.
54847         * modules/unistdio/ulc-printf-parse: New file.
54848         * modules/unistdio/ulc-snprintf: New file.
54849         * modules/unistdio/ulc-sprintf: New file.
54850         * modules/unistdio/ulc-vasnprintf: New file.
54851         * modules/unistdio/ulc-vasprintf: New file.
54852         * modules/unistdio/ulc-vfprintf: New file.
54853         * modules/unistdio/ulc-vsnprintf: New file.
54854         * modules/unistdio/ulc-vsprintf: New file.
54855         * modules/unistdio/u8-asnprintf: New file.
54856         * modules/unistdio/u8-asprintf: New file.
54857         * modules/unistdio/u8-printf-parse: New file.
54858         * modules/unistdio/u8-snprintf: New file.
54859         * modules/unistdio/u8-sprintf: New file.
54860         * modules/unistdio/u8-vasnprintf: New file.
54861         * modules/unistdio/u8-vasprintf: New file.
54862         * modules/unistdio/u8-vsnprintf: New file.
54863         * modules/unistdio/u8-vsprintf: New file.
54864         * modules/unistdio/u8-u8-asnprintf: New file.
54865         * modules/unistdio/u8-u8-asprintf: New file.
54866         * modules/unistdio/u8-u8-snprintf: New file.
54867         * modules/unistdio/u8-u8-sprintf: New file.
54868         * modules/unistdio/u8-u8-vasnprintf: New file.
54869         * modules/unistdio/u8-u8-vasprintf: New file.
54870         * modules/unistdio/u8-u8-vsnprintf: New file.
54871         * modules/unistdio/u8-u8-vsprintf: New file.
54872         * modules/unistdio/u16-asnprintf: New file.
54873         * modules/unistdio/u16-asprintf: New file.
54874         * modules/unistdio/u16-printf-parse: New file.
54875         * modules/unistdio/u16-snprintf: New file.
54876         * modules/unistdio/u16-sprintf: New file.
54877         * modules/unistdio/u16-vasnprintf: New file.
54878         * modules/unistdio/u16-vasprintf: New file.
54879         * modules/unistdio/u16-vsnprintf: New file.
54880         * modules/unistdio/u16-vsprintf: New file.
54881         * modules/unistdio/u16-u16-asnprintf: New file.
54882         * modules/unistdio/u16-u16-asprintf: New file.
54883         * modules/unistdio/u16-u16-snprintf: New file.
54884         * modules/unistdio/u16-u16-sprintf: New file.
54885         * modules/unistdio/u16-u16-vasnprintf: New file.
54886         * modules/unistdio/u16-u16-vasprintf: New file.
54887         * modules/unistdio/u16-u16-vsnprintf: New file.
54888         * modules/unistdio/u16-u16-vsprintf: New file.
54889         * modules/unistdio/u32-asnprintf: New file.
54890         * modules/unistdio/u32-asprintf: New file.
54891         * modules/unistdio/u32-printf-parse: New file.
54892         * modules/unistdio/u32-snprintf: New file.
54893         * modules/unistdio/u32-sprintf: New file.
54894         * modules/unistdio/u32-vasnprintf: New file.
54895         * modules/unistdio/u32-vasprintf: New file.
54896         * modules/unistdio/u32-vsnprintf: New file.
54897         * modules/unistdio/u32-vsprintf: New file.
54898         * modules/unistdio/u32-u32-asnprintf: New file.
54899         * modules/unistdio/u32-u32-asprintf: New file.
54900         * modules/unistdio/u32-u32-snprintf: New file.
54901         * modules/unistdio/u32-u32-sprintf: New file.
54902         * modules/unistdio/u32-u32-vasnprintf: New file.
54903         * modules/unistdio/u32-u32-vasprintf: New file.
54904         * modules/unistdio/u32-u32-vsnprintf: New file.
54905         * modules/unistdio/u32-u32-vsprintf: New file.
54906         * modules/unistdio/ulc-asnprintf-tests: New file.
54907         * modules/unistdio/ulc-vasnprintf-tests: New file.
54908         * modules/unistdio/ulc-vasprintf-tests: New file.
54909         * modules/unistdio/ulc-vsnprintf-tests: New file.
54910         * modules/unistdio/ulc-vsprintf-tests: New file.
54911         * modules/unistdio/u8-asnprintf-tests: New file.
54912         * modules/unistdio/u8-vasnprintf-tests: New file.
54913         * modules/unistdio/u8-vasprintf-tests: New file.
54914         * modules/unistdio/u8-vsnprintf-tests: New file.
54915         * modules/unistdio/u8-vsprintf-tests: New file.
54916         * modules/unistdio/u16-asnprintf-tests: New file.
54917         * modules/unistdio/u16-vasnprintf-tests: New file.
54918         * modules/unistdio/u16-vasprintf-tests: New file.
54919         * modules/unistdio/u16-vsnprintf-tests: New file.
54920         * modules/unistdio/u16-vsprintf-tests: New file.
54921         * modules/unistdio/u32-asnprintf-tests: New file.
54922         * modules/unistdio/u32-vasnprintf-tests: New file.
54923         * modules/unistdio/u32-vasprintf-tests: New file.
54924         * modules/unistdio/u32-vsnprintf-tests: New file.
54925         * modules/unistdio/u32-vsprintf-tests: New file.
54926         * MODULES.html.sh (Unicode string functions): Add the new modules.
54927
54928 2007-07-01  Bruno Haible  <bruno@clisp.org>
54929
54930         * lib/sprintf.c (sprintf): Limit the available length estimation,
54931         to avoid address wraparound.
54932         * lib/vsprintf.c (vsprintf): Likewise.
54933         * modules/sprintf-posix (Dependencies): Add stdint.
54934         * modules/vsprintf-posix (Dependencies): Likewise.
54935
54936 2007-07-01  Bruno Haible  <bruno@clisp.org>
54937
54938         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
54939         Windows PATH as well. Conservative double-quoting. Comments.
54940
54941 2007-07-01  Bruno Haible  <bruno@clisp.org>
54942             Eric Blake  <ebb9@byu.net>
54943             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54944
54945         * gnulib-tool (self_abspathname): Fix algorithm to cope with
54946         empty components in $PATH, denoting '.'.
54947
54948 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54949
54950         * gnulib-tool: Fix indentation.
54951         (func_create_megatestdir): Likewise.
54952         Report by Bruno Haible.
54953
54954 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54955
54956         Sync from Automake.
54957         * build-aux/gnupload: Fix shell portability issues with for loops.
54958         Report by Karl Berry.
54959
54960 2007-06-29  Simon Josefsson  <simon@josefsson.org>
54961
54962         * build-aux/maint.mk (POURL): Use translationproject.org.
54963
54964 2007-06-27  Simon Josefsson  <simon@josefsson.org>
54965             Bruno Haible  <bruno@clisp.org>
54966
54967         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
54968         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
54969         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
54970         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
54971         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
54972
54973 2007-06-27  Bruno Haible  <bruno@clisp.org>
54974
54975         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
54976         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
54977
54978 2007-06-26  Karl Berry  <karl@gnu.org>
54979
54980         * MODULES.html.sh: remove xreadlink-with-size.
54981
54982 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
54983
54984         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
54985         method that I hope also handles the double-include problem noted
54986         by Bruno Haible in
54987         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
54988
54989 2007-06-23  Bruno Haible  <bruno@clisp.org>
54990
54991         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54992         Don't let the 'mostlyclean' target fail if the last subdirectory could
54993         not be removed.
54994         Reported by Karl Berry.
54995
54996 2007-06-23  Bruno Haible  <bruno@clisp.org>
54997
54998         * gnulib-tool (echo): Add a speedier workaround for ksh.
54999         * tests/test-echo.sh: Likewise.
55000
55001 2007-06-23  Bruno Haible  <bruno@clisp.org>
55002
55003         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
55004         * tests/test-echo.sh: Likewise.
55005
55006 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55007
55008         * gnulib-tool (IFS): Initialize early, so we don't set it to
55009         empty later.
55010         (self_abspathname): Rewrite algorithm to set it, reindent.
55011         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
55012         (func_create_megatestdir): Merge some sed scripts.
55013
55014 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
55015
55016         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
55017         exposed by Sun Studio 11 cc on Solaris 8.
55018
55019 2007-06-22  Bruno Haible  <bruno@clisp.org>
55020
55021         * gnulib-tool (echo): Ensure the echo primitive does not interpret
55022         backslashes.
55023         * tests/test-echo.sh: New file.
55024
55025 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55026
55027         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
55028         simplify `sed_replace_build_aux' scripts, they are portable but
55029         echoing them with `echo' is not.
55030         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
55031
55032 2007-06-21  Karl Berry  <karl@gnu.org>
55033
55034         * config/srclist.txt: guess we can't handle the licenses via
55035         srclist at the moment.
55036
55037 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
55038
55039         * MODULES.html.sh: Add include_next.
55040         * modules/include_next: New file.
55041
55042 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
55043
55044         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
55045         INCLUDE_NEXT.
55046         (gl_CHECK_NEXT_HEADERS): New macro.
55047         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
55048         the obsolescent gl_ABSOLUTE_HEADER.
55049         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
55050         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
55051         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
55052         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
55053         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
55054         * m4/math_h.m4 (gl_MATH_H): Likewise.
55055         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
55056         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
55057         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
55058         * m4/stdint.m4 (gl_STDINT_H): Likewise.
55059         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
55060         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
55061         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
55062         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55063         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
55064         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
55065         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
55066         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
55067         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
55068         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
55069         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
55070         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
55071         * m4/inttypes.m4 (gl_INTTYPES_H): Define
55072         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
55073         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
55074         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
55075         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
55076         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
55077         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
55078         * lib/float_.h: Likewise.
55079         * lib/inttypes_.h: Likewise.
55080         * lib/math_.h: Likewise.
55081         * lib/search_.h: Likewise.
55082         * lib/signal_.h: Likewise.
55083         * lib/stdint_.h: Likewise.
55084         * lib/stdio_.h: Likewise.
55085         * lib/stdlib_.h: Likewise.
55086         * lib/string_.h: Likewise.
55087         * lib/sys_stat_.h: Likewise.
55088         * lib/sys_time_.h: Likewise.
55089         * lib/time_.h: Likewise.
55090         * lib/unistd_.h: Likewise.
55091         * lib/wchar_.h: Likewise.
55092         * lib/wctype_.h: Likewise.
55093         * lib/dirent_.h: Likewise.
55094         * lib/iconv_.h: Likewise.
55095         * lib/locale_.h: Likewise.
55096         * lib/netinet_in_.h: Likewise.
55097         * lib/sys_select_.h: Likewise.
55098         * lib/sys_socket_.h: Likewise.
55099         * lib/sysexits_.h: Likewise.
55100         * modules/fcntl (Depends-on): Depend on include_next, not
55101         absolute_header.
55102         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
55103         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
55104         * modules/fchdir: Likewise.
55105         * modules/float: Likewise.
55106         * modules/iconv_open: Likewise.
55107         * modules/inttypes: Likewise.
55108         * modules/locale: Likewise.
55109         * modules/math: Likewise.
55110         * modules/netinet_in: Likewise.
55111         * modules/search: Likewise.
55112         * modules/signal: Likewise.
55113         * modules/stdint: Likewise.
55114         * modules/stdio: Likewise.
55115         * modules/stdlib: Likewise.
55116         * modules/string: Likewise.
55117         * modules/sys_select: Likewise.
55118         * modules/sys_socket: Likewise.
55119         * modules/sys_stat: Likewise.
55120         * modules/sys_time: Likewise.
55121         * modules/sysexits: Likewise.
55122         * modules/time: Likewise.
55123         * modules/unistd: Likewise.
55124         * modules/wchar: Likewise.
55125         * modules/wctype: Likewise.
55126         * modules/sys_stat: Change maintainer to "all".
55127         * modules/unistd: Likewise.
55128
55129 2007-06-20  Karl Berry  <karl@gnu.org>
55130
55131         * config/srclist.txt: track www changes in license files.
55132
55133 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
55134
55135         * build-aux/bootstrap: Remove stray dot.
55136         Make sure build_aux settings are honored when linking
55137         gnulib_extra_files.
55138
55139 2007-06-19  Eric Blake  <ebb9@byu.net>
55140
55141         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
55142         Allow compilation on cygwin.
55143
55144 2007-06-19  Jim Meyering  <jim@meyering.net>
55145
55146         xreadlink-with-size: Remove module.  No longer used.
55147         Ex-callers now use xreadlink or mreadlink-with-size.
55148         * modules/xreadlink-with-size: Remove module.
55149         * lib/xreadlink-with-size.c: Remove file.
55150         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
55151         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
55152         just before the function definition *is* accurate.
55153
55154         Eliminate one way canonicalize_filename_mode could exit.
55155         * lib/canonicalize.c (canonicalize_filename_mode):
55156         Use mreadlink_with_size, not xreadlink_with_size.
55157
55158 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
55159
55160         Detect porting problems to FreeBSD/arm, which has time_t wider than
55161         long int.  Original problem reported for GNU diff by Xin Li in
55162         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
55163         * modules/getdate (Depends-on): Add intprops, verify.
55164         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
55165         is an integer type no wider than long int.
55166
55167 2007-06-18  Jim Meyering  <jim@meyering.net>
55168
55169         New module: mreadlink-with-size.
55170         * MODULES.html.sh: Add mreadlink-with-size.
55171         * modules/mreadlink-with-size: New module
55172         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
55173         not xreadlink-with-size.
55174         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
55175
55176 2007-06-16  Bruno Haible  <bruno@clisp.org>
55177
55178         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
55179         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
55180         Reported by Gary V. Vaughan <gary@gnu.org>.
55181
55182 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
55183
55184         Revamp lchown so that it lives in unistd.h where it belongs.
55185         * lib/lchown.h: Remove.
55186         * lib/dirchownmod.c: Don't include lib/lchown.h.
55187         * lib/fchownat.c: Likewise.
55188         * lib/openat.c: Likewise.
55189         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
55190         does not follow symlinks.
55191         (EOPNOTSUPP): Define if not defined.
55192         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
55193         is defined to 0.
55194         (lchown): New decl.
55195         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
55196         Do not check for lchown decl.
55197         Set REPLACE_LCHOWN.
55198         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
55199         REPLACE_LCHOWN.
55200         * modules/chown: Make it clear it follows symlinks.
55201         * modules/lchown: Make it clear it doesn't follow symlinks.
55202         (Files): Remove lib/lchown.h
55203         (Depends-on): Add unistd.
55204         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
55205         (Include): Include <unistd.h>, not "lchown.h".
55206         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
55207         REPLACE_LCHOWN.
55208
55209 2007-06-15  Jim Meyering  <jim@meyering.net>
55210
55211         Change license (GPL to LGPL) of fsusage and dependents.
55212         * modules/fsusage (License): Change to LGPL.
55213         * modules/full-read (License): Likewise.
55214         * modules/full-write (License): Likewise.
55215         * modules/safe-read (License): Likewise.
55216         * modules/safe-write (License): Likewise.
55217
55218 2007-06-14  Ben Pfaff  <blp@gnu.org>
55219
55220         Missing part of allocsa -> malloca transition.
55221         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
55222         gl_MALLOCA.
55223
55224 2007-06-12  Bruno Haible  <bruno@clisp.org>
55225
55226         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
55227         to ia64, x86_64, i386.
55228         Reported by Eric Blake.
55229
55230 2007-06-12  Bruno Haible  <bruno@clisp.org>
55231
55232         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
55233         cross-compiling to x86_64.
55234
55235 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
55236
55237         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
55238         glitch reported by Ralf Wildenhues in
55239         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
55240
55241         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
55242         Vin Shelton.
55243
55244 2007-06-11  Bruno Haible  <bruno@clisp.org>
55245
55246         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
55247         replacement string.
55248         Reported by Eric Blake.
55249
55250 2007-06-10  Bruno Haible  <bruno@clisp.org>
55251
55252         Prepare vasnprintf code for use with Unicode strings.
55253         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
55254         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
55255         TYPE_U32_STRING.
55256         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
55257         a_u32_string variants.
55258         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
55259         * lib/printf-args.c: Don't include config.h and the specification
55260         header if PRINTF_FETCHARGS is already defined.
55261         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
55262         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
55263         TYPE_U16_STRING, TYPE_U32_STRING.
55264         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
55265         u16_directive, u16_directives, u32_directive, u32_directives): New
55266         types.
55267         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
55268         New declarations.
55269         * lib/printf-parse.c: Don't include config.h and the specification
55270         header if PRINTF_PARSE is already defined. Eliminate the set of
55271         parameters for WIDE_CHAR_VERSION; the user of this file must provide
55272         them now. Include c-ctype.h.
55273         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
55274         directive and CHAR_T_ONLY_ASCII.
55275         * lib/vasnprintf.c: Don't include config.h and the specification header
55276         if VASNPRINTF is already defined.
55277         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
55278         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
55279         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
55280         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
55281         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
55282         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
55283         code accordingly.
55284         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
55285         pad_ourselves also in this case, with the 'c' and 's' directives, and
55286         with a different notion of "width".
55287         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
55288
55289 2007-06-10  Bruno Haible  <bruno@clisp.org>
55290
55291         * modules/unistr/u32-mbsnlen: New file.
55292         * lib/unistr/u32-mbsnlen.c: New file.
55293
55294         * modules/unistr/u16-mbsnlen: New file.
55295         * lib/unistr/u16-mbsnlen.c: New file.
55296
55297         * modules/unistr/u8-mbsnlen: New file.
55298         * lib/unistr/u8-mbsnlen.c: New file.
55299
55300         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
55301         declarations.
55302
55303 2007-06-10  Bruno Haible  <bruno@clisp.org>
55304
55305         * lib/string_.h (mbsnlen): New declaration.
55306         * lib/mbsnlen.c: New file.
55307         * m4/mbsnlen.m4: New file.
55308         * modules/mbsnlen: New file.
55309         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
55310         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
55311         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
55312
55313 2007-06-10  Bruno Haible  <bruno@clisp.org>
55314
55315         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
55316
55317 2007-06-10  Bruno Haible  <bruno@clisp.org>
55318
55319         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
55320         * lib/mbuiter.h: Likewise.
55321
55322 2007-06-10  Bruno Haible  <bruno@clisp.org>
55323
55324         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
55325         declaration.
55326
55327 2007-06-10  Karl Berry  <karl@gnu.org>
55328
55329         * config/srclist.txt: remove gettext entries, Bruno prefers
55330         to update individually.
55331
55332 2007-06-10  Bruno Haible  <bruno@clisp.org>
55333
55334         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
55335         'maxlen'. Ensure only length + width bytes are allocated, not
55336         length + 1 + width.
55337
55338 2007-06-09  Bruno Haible  <bruno@clisp.org>
55339
55340         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
55341         (CHAR_T): Remove macro.
55342         (VASNPRINTF): Update.
55343
55344 2007-06-09  Bruno Haible  <bruno@clisp.org>
55345
55346         * MODULES.html.sh (Unicode string functions): Add the new modules.
55347
55348         * modules/uniconv/u32-conv-to-enc: New file.
55349         * lib/uniconv/u32-conv-to-enc.c: New file.
55350         * modules/uniconv/u32-conv-to-enc-tests: New file.
55351         * tests/uniconv/test-u32-conv-to-enc.c: New file.
55352
55353         * modules/uniconv/u16-conv-to-enc: New file.
55354         * lib/uniconv/u16-conv-to-enc.c: New file.
55355         * lib/uniconv/u-conv-to-enc.h: New file.
55356         * modules/uniconv/u16-conv-to-enc-tests: New file.
55357         * tests/uniconv/test-u16-conv-to-enc.c: New file.
55358
55359         * modules/uniconv/u8-conv-to-enc: New file.
55360         * lib/uniconv/u8-conv-to-enc.c: New file.
55361         * modules/uniconv/u8-conv-to-enc-tests: New file.
55362         * tests/uniconv/test-u8-conv-to-enc.c: New file.
55363
55364         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
55365         u32_conv_to_encoding): New declarations.
55366
55367 2007-06-09  Bruno Haible  <bruno@clisp.org>
55368
55369         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
55370
55371 2007-06-09  Bruno Haible  <bruno@clisp.org>
55372
55373         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
55374         * modules/malloca: Renamed from modules/allocsa, updated.
55375         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
55376         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
55377         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
55378         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
55379         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
55380         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
55381         * modules/xmalloca: Renamed from modules/xallocsa, updated.
55382         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
55383         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
55384         * modules/c-strcasestr (Depends-on): Update.
55385         * lib/c-strcasestr.c: Update.
55386         * modules/c-strstr (Depends-on): Update.
55387         * lib/c-strstr.c: Update.
55388         * modules/canonicalize-lgpl (Depends-on): Update.
55389         * lib/canonicalize-lgpl.c: Update.
55390         * modules/clean-temp (Depends-on): Update.
55391         * lib/clean-temp.c: Update.
55392         * modules/csharpcomp (Depends-on): Update.
55393         * lib/csharpcomp.c: Update.
55394         * modules/csharpexec (Depends-on): Update.
55395         * lib/csharpexec.c: Update.
55396         * modules/javacomp (Depends-on): Update.
55397         * lib/javacomp.c: Update.
55398         * modules/javaexec (Depends-on): Update.
55399         * lib/javaexec.c: Update.
55400         * modules/mbscasestr (Depends-on): Update.
55401         * lib/mbscasestr.c: Update.
55402         * modules/mbsstr (Depends-on): Update.
55403         * lib/mbsstr.c: Update.
55404         * modules/setenv (Depends-on): Update.
55405         * lib/setenv.c: Update.
55406         * modules/strcasestr (Depends-on): Update.
55407         * lib/strcasestr.c: Update.
55408         * modules/striconveha (Depends-on): Update.
55409         * lib/striconveha.c: Update.
55410         * modules/relocatable-prog-wrapper (Files): Update.
55411         * lib/relocwrapper.c: Update.
55412         * build-aux/install-reloc: Update.
55413         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
55414
55415 2007-06-08  Bruno Haible  <bruno@clisp.org>
55416
55417         Port to uClibc.
55418         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
55419         * lib/fpurge.c (fpurge): Likewise.
55420         * lib/freading.c (freading): Likewise.
55421         * lib/fseeko.c (rpl_fseeko): Likewise.
55422         * lib/fseterr.c (fseterr): Likewise.
55423         * lib/fwriting.c (fwriting): Likewise.
55424         * tests/test-fflush.c (main): Avoid a failure on uClibc.
55425
55426 2007-06-08  Bruno Haible  <bruno@clisp.org>
55427
55428         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
55429         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
55430         * modules/gettext (Files): Add m4/intlmacosx.m4.
55431
55432 2007-06-07  Bruno Haible  <bruno@clisp.org>
55433
55434         * modules/localename-tests: New file.
55435         * tests/test-localename.c: New file.
55436
55437         New module 'localename'.
55438         * lib/localename.h: New file.
55439         * lib/localename.c: New file, from GNU gettext.
55440         * m4/localename.m4: New file.
55441         * modules/localename: New file.
55442
55443 2007-06-07  Bruno Haible  <bruno@clisp.org>
55444
55445         Work around the lack of <wchar.h> on some builds of uClibc.
55446         * doc/headers/wchar.texi: Update.
55447         * lib/wchar_.h: Include <wchar.h> only if it exists.
55448         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
55449         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
55450         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
55451         doesn't exist.
55452         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
55453         * modules/mbfile (Depends-on): Add wchar.
55454         * modules/mbiter (Depends-on): Likewise.
55455         * modules/mbuiter (Depends-on): Likewise.
55456         Reported by Simon Josefsson.
55457
55458 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
55459
55460         Work around problem reported by Steven M. Schweda in
55461         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
55462         Tru64 5.1B with the Compaq compiler environment installed declares
55463         an 'isblank' function but does not define it in the C library.
55464         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
55465         * lib/regex_internal.h (isblank): Likewise.
55466         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
55467         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
55468
55469 2007-06-05  Bruno Haible  <bruno@clisp.org>
55470
55471         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
55472         ia64.
55473         * modules/printf-safe: New file.
55474         * modules/fprintf-posix (Depends-on): Add printf-safe.
55475         * modules/printf-posix (Depends-on): Likewise.
55476         * modules/snprintf-posix (Depends-on): Likewise.
55477         * modules/sprintf-posix (Depends-on): Likewise.
55478         * modules/vasnprintf-posix (Depends-on): Likewise.
55479         * modules/vasprintf-posix (Depends-on): Likewise.
55480         * modules/vfprintf-posix (Depends-on): Likewise.
55481         * modules/vprintf-posix (Depends-on): Likewise.
55482         * modules/vsnprintf-posix (Depends-on): Likewise.
55483         * modules/vsprintf-posix (Depends-on): Likewise.
55484         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
55485         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
55486         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
55487         "no" on i386, x86_64, ia64.
55488         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
55489         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55490         on i386, x86_64, ia64.
55491         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
55492         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55493         on i386, x86_64, ia64.
55494         * tests/test-vasnprintf-posix.c: Include float.h.
55495         (LDBL80_WORDS): New macro.
55496         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55497         on i386, x86_64, ia64.
55498         * tests/test-vasprintf-posix.c: Include float.h.
55499         (LDBL80_WORDS): New macro.
55500         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
55501         on i386, x86_64, ia64.
55502         * tests/test-snprintf-posix.c: Include float.h.
55503         * tests/test-sprintf-posix.c: Likewise.
55504         * tests/test-vsnprintf-posix.c: Likewise.
55505         * tests/test-vsprintf-posix.c: Likewise.
55506
55507 2007-06-05  Bruno Haible  <bruno@clisp.org>
55508
55509         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
55510         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
55511         non-IEEE numbers on i386, x86_64, ia64.
55512         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
55513         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
55514         * tests/test-isnanl.h: Include float.h.
55515         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
55516
55517 2007-06-05  Bruno Haible  <bruno@clisp.org>
55518
55519         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
55520         also the %a / %A. Handle the %a / %A code before this extra handling.
55521
55522 2007-06-05  Bruno Haible  <bruno@clisp.org>
55523
55524         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
55525         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
55526
55527 2007-06-05  Bruno Haible  <bruno@clisp.org>
55528
55529         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
55530         typo in variable name.
55531
55532 2007-06-05  Eric Blake  <ebb9@byu.net>
55533
55534         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
55535         Reported by Simon Josefsson.
55536
55537 2007-06-04  Bruno Haible  <bruno@clisp.org>
55538
55539         Avoid test failures on some PowerPC platforms.
55540         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
55541         Define differently for PowerPC.
55542         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
55543         Reported by Gary V. Vaughan <gary@gnu.org>.
55544
55545 2007-06-02  Bruno Haible  <bruno@clisp.org>
55546
55547         Fix test-stdint failure on FreeBSD/ia64.
55548         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
55549         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
55550         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
55551         * doc/headers/stdint.texi: Update.
55552
55553 2007-06-01  Bruno Haible  <bruno@clisp.org>
55554
55555         * tests/test-binary-io.c (main): Pass a third argument to open().
55556         Reported by Gary V. Vaughan <gary@gnu.org>.
55557
55558 2007-06-01  Bruno Haible  <bruno@clisp.org>
55559
55560         * doc/functions/frexpl.texi: Update for mingw.
55561
55562 2007-06-01  Bruno Haible  <bruno@clisp.org>
55563
55564         * tests/test-lseek.c (main): Disable test of errno for invalid third
55565         argument.
55566         * doc/functions/lseek.texi: Update.
55567         Reported by Gary V. Vaughan <gary@gnu.org>.
55568
55569 2007-05-28  Bruno Haible  <bruno@clisp.org>
55570
55571         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
55572
55573 2007-05-31  Eric Blake  <ebb9@byu.net>
55574
55575         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
55576         cross compiling.
55577
55578 2007-05-30  Eric Blake  <ebb9@byu.net>
55579         and Bruno Haible  <bruno@clisp.org>
55580
55581         Work around mingw test failures exposed by m4-1.4.9b.
55582         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
55583         * tests/test-unistd.c: Disable uid_t and git_t tests for the
55584         moment.
55585
55586 2007-05-30  Bruno Haible  <bruno@clisp.org>
55587
55588         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
55589         assuming that they are closed. Needed on HP-UX 11.
55590
55591 2007-05-29  Bruno Haible  <bruno@clisp.org>
55592
55593         Fix a problem with #include_next.
55594         * lib/dirent_.h: Split the double-inclusion guard.
55595         * lib/fcntl_.h: Likewise.
55596         * lib/float_.h: Likewise.
55597         * lib/iconv_.h: Likewise.
55598         * lib/inttypes_.h: Likewise.
55599         * lib/locale_.h: Likewise.
55600         * lib/math_.h: Likewise.
55601         * lib/netinet_in_.h: Likewise.
55602         * lib/search_.h: Likewise.
55603         * lib/signal_.h: Likewise.
55604         * lib/stdint_.h: Likewise.
55605         * lib/stdio_.h: Likewise.
55606         * lib/stdlib_.h: Likewise.
55607         * lib/string_.h: Likewise.
55608         * lib/sys_select_.h: Likewise.
55609         * lib/sys_socket_.h: Likewise.
55610         * lib/sys_stat_.h: Likewise.
55611         * lib/sys_time_.h: Likewise.
55612         * lib/sysexits_.h: Likewise.
55613         * lib/time_.h: Likewise.
55614         * lib/unistd_.h: Likewise.
55615         * lib/wchar_.h: Likewise.
55616         * lib/wctype_.h: Likewise.
55617
55618 2007-05-29  Bruno Haible  <bruno@clisp.org>
55619
55620         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
55621         for the moment.
55622
55623 2007-05-29  Bruno Haible  <bruno@clisp.org>
55624
55625         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
55626         invocation.
55627         Reported by Eric Blake.
55628
55629 2007-05-29  Bruno Haible  <bruno@clisp.org>
55630
55631         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
55632         compiling case.
55633
55634 2007-05-29  Eric Blake  <ebb9@byu.net>
55635             Bruno Haible  <bruno@clisp.org>
55636
55637         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
55638         cross compiles.
55639
55640 2007-05-28  Eric Blake  <ebb9@byu.net>
55641
55642         * modules/closein-tests (test_closein_LDADD): Support test on
55643         cygwin with libtool.
55644
55645 2007-05-28  Bruno Haible  <bruno@clisp.org>
55646
55647         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
55648         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
55649         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
55650         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
55651         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
55652         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
55653         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
55654         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
55655         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
55656
55657 2007-05-28  Eric Blake  <ebb9@byu.net>
55658
55659         Unconditionally include <config.h> in unit tests.
55660         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
55661         * tests/test-allocsa.c, tests/test-arcfour.c,
55662         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
55663         tests/test-array_list.c, tests/test-array_oset.c,
55664         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
55665         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
55666         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
55667         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
55668         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
55669         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
55670         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
55671         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
55672         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
55673         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
55674         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
55675         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
55676         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
55677         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
55678         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
55679         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
55680         test-md5.c, test-memmem.c, test-printf-posix.c,
55681         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
55682         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
55683         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
55684         test-strcasestr.c, test-striconv.c, test-striconveh.c,
55685         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
55686         test-vasnprintf-posix2.c, test-vasnprintf.c,
55687         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
55688         test-vfprintf-posix.c, test-vprintf-posix.c,
55689         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
55690         test-xvasprintf.c: Likewise.
55691
55692 2007-05-28  Bruno Haible  <bruno@clisp.org>
55693
55694         * gnulib-tool (func_import): Remember the --with-tests command-line
55695         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
55696         Reported by Eric Blake.
55697
55698 2007-05-28  Bruno Haible  <bruno@clisp.org>
55699
55700         * modules/ftell-tests: New file.
55701         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
55702         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
55703
55704         * lib/ftell.c: New file.
55705         * modules/ftell: New file.
55706         * m4/ftell.m4: New file.
55707         * doc/functions/ftell.texi: Update.
55708         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
55709         REPLACE_FTELL.
55710         * lib/stdio_.h (rpl_ftell): New declaration.
55711         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
55712         REPLACE_FTELL.
55713
55714 2007-05-28  Eric Blake  <ebb9@byu.net>
55715
55716         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
55717
55718 2007-05-28  Bruno Haible  <bruno@clisp.org>
55719
55720         * modules/fseek-tests: New file.
55721         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
55722         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
55723
55724         * lib/fseek.c: New file.
55725         * modules/fseek: New file.
55726         * m4/fseek.m4: New file.
55727         * doc/functions/fseek.texi: Update.
55728         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
55729         REPLACE_FSEEK.
55730         * lib/stdio_.h (rpl_fseek): New declaration.
55731         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
55732         REPLACE_FSEEK.
55733
55734 2007-05-28  Bruno Haible  <bruno@clisp.org>
55735
55736         * lib/stdio_.h (fflush): More comments.
55737
55738 2007-05-28  Bruno Haible  <bruno@clisp.org>
55739
55740         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
55741         runtime test.
55742
55743 2007-05-28  Eric Blake  <ebb9@byu.net>
55744
55745         Improve lseek module.
55746         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
55747         * lib/unistd_.h (lseek): Scale back link warning message.
55748         * tests/test-lseek.c: Beef up test.
55749         * tests/test-lseek.sh: Exercise more facets of lseek.
55750         Reported by Bruno Haible.
55751
55752 2007-05-28  Bruno Haible  <bruno@clisp.org>
55753
55754         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
55755         to define.
55756
55757 2007-05-27  Bruno Haible  <bruno@clisp.org>
55758
55759         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
55760
55761 2007-05-27  Bruno Haible  <bruno@clisp.org>
55762
55763         * modules/openmp: New file.
55764         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
55765         Noah Misch.
55766
55767 2007-05-26  Bruno Haible  <bruno@clisp.org>
55768
55769         * modules/chdir-long (Depends-on): Add fchdir.
55770         * modules/chdir-safer (Depends-on): Likewise.
55771         * modules/fts (Depends-on): Likewise.
55772         * modules/fts-lgpl (Depends-on): Likewise.
55773         * modules/openat (Depends-on): Likewise.
55774         * modules/savewd (Depends-on): Likewise.
55775
55776 2007-05-24  Eric Blake  <ebb9@byu.net>
55777
55778         Fix lseek on mingw.
55779         * modules/lseek: New module.
55780         * m4/lseek.m4: New file.
55781         * lib/lseek.c: New file.
55782         * modules/lseek-tests: New file.
55783         * tests/test-lseek.c: New file.
55784         * tests/test-lseek.sh: New file.
55785         * MODULES.html.sh: Document lseek module.
55786         * modules/fflush (Depends-on): Add lseek, fseeko.
55787         * modules/fseeko (Depends-on): Likewise.
55788         * modules/ftello (Depends-on): Likewise.
55789         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
55790         broken.
55791         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
55792         broken.
55793         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
55794         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
55795         * lib/ftello.c (rpl_ftello): Likewise.
55796         * tests/test-fseeko.c (main): Test this.
55797         * tests/test-fseeko.sh: Likewise.
55798         * tests/test-ftello.c (main): Likewise.
55799         * tests/test-ftello.sh: Likewise.
55800         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
55801         implies replacing fseek.
55802         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
55803         HAVE_FTELLO.
55804         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
55805         * modules/unistd (Makefile.am): Likewise.
55806         * lib/unistd_.h (lseek): Declare a replacement.
55807         * doc/functions/lseek.texi (lseek): Document this fix.
55808         * doc/functions/fseek.texi (fseek): Likewise.
55809         * doc/functions/ftell.texi (ftell): Likewise.
55810
55811 2007-05-24  Bruno Haible  <bruno@clisp.org>
55812
55813         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
55814         in the printed representation of a NaN.
55815         * tests/test-vasprintf-posix.c (test_function): Likewise.
55816         * tests/test-snprintf-posix.h (test_function): Likewise.
55817         * tests/test-sprintf-posix.h (test_function): Likewise.
55818         Reported by Eric Blake.
55819
55820 2007-05-23  Eric Blake  <ebb9@byu.net>
55821
55822         Fix fseeko/ftello on cygwin 1.5.24.
55823         * doc/functions/fseeko.texi (fseeko): Document the fix.
55824         * doc/functions/ftello.texi (ftello): Document the fix.
55825         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
55826         * doc/functions/stdout.text (stdout): New file.
55827         * doc/functions/stderr.text (stderr): New file.
55828         * doc/gnulib.texi (Function Substitutes): Use new files.
55829         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
55830         prior to 1.7.0.
55831         * tests/test-ftello.c (main): Likewise for ftello.
55832         * tests/test-fseeko.sh: New file.
55833         * tests/test-ftello.sh: New file.
55834         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
55835         with seekable stdin.
55836         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
55837         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
55838         (gl_REPLACE_FSEEKO): New macro.
55839         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
55840         * modules/fseeko (Files): Distribute fseeko.c.
55841         * modules/ftello (Files): Distribute ftello.c.
55842         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
55843         mode.
55844         * lib/ftello.c (rpl_ftello): New file.
55845         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
55846         fseeko, ftello.
55847         (gl_STDIN_LARGE_OFFSET): New macro.
55848         * modules/stdio (Makefile.am): Perform the replacement.
55849         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
55850
55851 2007-05-23  Bruno Haible  <bruno@clisp.org>
55852
55853         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
55854         GNULIB_POSIXCHECK is defined.
55855
55856 2007-05-21  Bruno Haible  <bruno@clisp.org>
55857
55858         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
55859         Check also the output for NaN arguments. When cross-compiling, guess
55860         no on IRIX.
55861         * lib/vasnprintf.c: Update comments.
55862         * tests/test-vasnprintf-posix.c (strisnan): New function.
55863         (test_function): Use it.
55864         * tests/test-vasprintf-posix.c (strisnan): New function.
55865         (test_function): Use it.
55866         * tests/test-snprintf-posix.h (strisnan): New function.
55867         (test_function): Use it.
55868         * tests/test-sprintf-posix.h (strisnan): New function.
55869         (test_function): Use it.
55870         Reported by Eric Blake.
55871
55872 2007-05-20  Bruno Haible  <bruno@clisp.org>
55873
55874         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
55875         numbers that fails on BeOS.
55876         * doc/functions/frexpl.texi: Update.
55877
55878 2007-05-20  Jim Meyering  <jim@meyering.net>
55879
55880         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
55881         forced upon us by glibc-2.6.
55882
55883 2007-05-20  Bruno Haible  <bruno@clisp.org>
55884
55885         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
55886         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
55887         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
55888         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
55889         NEED_PRINTF_INFINITE.
55890         (is_infinitel): New function.
55891         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
55892         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
55893         gl_PREREQ_VASNPRINTF_INFINITE.
55894         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
55895         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55896         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
55897         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
55898         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
55899         gl_PREREQ_VASNPRINTF_INFINITE.
55900         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55901         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55902         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55903         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55904         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55905         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55906         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55907         * doc/functions/fprintf.texi: Update.
55908         * doc/functions/printf.texi: Update.
55909         * doc/functions/snprintf.texi: Update.
55910         * doc/functions/sprintf.texi: Update.
55911         * doc/functions/vfprintf.texi: Update.
55912         * doc/functions/vprintf.texi: Update.
55913         * doc/functions/vsnprintf.texi: Update.
55914         * doc/functions/vsprintf.texi: Update.
55915
55916 2007-05-20  Bruno Haible  <bruno@clisp.org>
55917
55918         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
55919         was not found in libc.
55920         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
55921
55922 2007-05-20  Bruno Haible  <bruno@clisp.org>
55923
55924         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
55925         printed as "-nan" instead of "nan".
55926         * tests/test-vasprintf-posix.c (test_function): Likewise.
55927         * tests/test-snprintf-posix.h (test_function): Likewise.
55928         * tests/test-sprintf-posix.h (test_function): Likewise.
55929         Needed for HP-UX 11.
55930
55931 2007-05-20  Jim Meyering  <jim@meyering.net>
55932
55933         Fix buggy test for the fchownat-deref bug.
55934         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
55935         symlink required for the run-test.  Without it, this test would
55936         always declare that fchownat doesn't work, and client code would
55937         unnecessarily use the replacement function with fixed libc.
55938         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
55939         Reported by Greg Schafer.
55940
55941 2007-05-19  Bruno Haible  <bruno@clisp.org>
55942
55943         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
55944         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
55945         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
55946         Needed for IRIX 6.5 and Solaris 2.5.1.
55947
55948 2007-05-19  Bruno Haible  <bruno@clisp.org>
55949
55950         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
55951         (test_function): Skip tests involving -0.0 on platforms where
55952         -0.0 = 0.0.
55953         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
55954         (test_function): Skip tests involving -0.0 on platforms where
55955         -0.0 = 0.0.
55956         * tests/test-snprintf-posix.h (have_minus_zero): New function.
55957         (test_function): Skip tests involving -0.0 on platforms where
55958         -0.0 = 0.0.
55959         * tests/test-sprintf-posix.h (have_minus_zero): New function.
55960         (test_function): Skip tests involving -0.0 on platforms where
55961         -0.0 = 0.0.
55962         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
55963         tests.
55964         * tests/test-printf-posix.h (test_function): Likewise.
55965         * tests/test-printf-posix.output: Remove all -0.0 related results.
55966         Needed for IRIX 6.5.
55967
55968 2007-05-19  Bruno Haible  <bruno@clisp.org>
55969
55970         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
55971         printed as "nan0x7fffffff" instead of "nan".
55972         * tests/test-vasprintf-posix.c (test_function): Likewise.
55973         * tests/test-snprintf-posix.h (test_function): Likewise.
55974         * tests/test-sprintf-posix.h (test_function): Likewise.
55975         * tests/test-fprintf-posix.h (NaN): Remove macro.
55976         (test_function): Remove all NaN related tests.
55977         * tests/test-printf-posix.h (NaN): Remove macro.
55978         (test_function): Remove all NaN related tests.
55979         * tests/test-printf-posix.output: Remove all NaN related results.
55980         Needed for IRIX 6.5.
55981
55982 2007-05-19  Bruno Haible  <bruno@clisp.org>
55983
55984         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
55985         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
55986
55987 2007-05-19  Bruno Haible  <bruno@clisp.org>
55988
55989         * lib/float_.h: New file.
55990         * m4/float_h.m4: New file.
55991         * modules/float: New file.
55992         * modules/isnanl (Dependencies): Add float.
55993         * modules/isnanl-nolibm (Dependencies): Likewise.
55994         * modules/mathl (Dependencies): Likewise.
55995         * modules/printf-frexpl (Dependencies): Likewise.
55996         * modules/signbit (Dependencies): Likewise.
55997         * modules/vasnprintf (Dependencies): Likewise.
55998         * doc/headers/float.texi: Update.
55999
56000 2007-05-19  Jim Meyering  <jim@meyering.net>
56001
56002         * lib/utimens.c (gl_futimens): Rename from futimens,
56003         now that glibc-2.6 declares futimens.
56004         * lib/utimens.h: Likewise.
56005
56006 2007-05-19  Bruno Haible  <bruno@clisp.org>
56007
56008         Avoid test failures on mingw.
56009         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
56010         * tests/test-printf-posix.sh: Likewise.
56011         * tests/test-vfprintf-posix.sh: Likewise.
56012         * tests/test-vprintf-posix.sh: Likewise.
56013
56014 2007-05-19  Bruno Haible  <bruno@clisp.org>
56015
56016         Fix *printf result for NaN, Inf, -0.0 on mingw.
56017         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
56018         * lib/vasnprintf.c: Include math.h and isnan.h.
56019         (is_infinite_or_zero): New function.
56020         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
56021         values in the %f, %F, %e, %E, %g, %G directives.
56022         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
56023         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56024         gl_PRINTF_INFINITE and test its result. Invoke
56025         gl_PREREQ_VASNPRINTF_INFINITE.
56026         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56027         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56028         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56029         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56030         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56031         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56032         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56033         * doc/functions/fprintf.texi: Update.
56034         * doc/functions/printf.texi: Update.
56035         * doc/functions/snprintf.texi: Update.
56036         * doc/functions/sprintf.texi: Update.
56037         * doc/functions/vfprintf.texi: Update.
56038         * doc/functions/vprintf.texi: Update.
56039         * doc/functions/vsnprintf.texi: Update.
56040         * doc/functions/vsprintf.texi: Update.
56041
56042 2007-05-19  Bruno Haible  <bruno@clisp.org>
56043
56044         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
56045         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
56046         Instead of multiplying with 10^k, set extra_zeroes to k.
56047         (scale10_round_long_double): Remove function.
56048
56049 2007-05-18  Bruno Haible  <bruno@clisp.org>
56050
56051         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
56052         introduced on 2007-05-06.
56053
56054 2007-05-18  Bruno Haible  <bruno@clisp.org>
56055
56056         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
56057         %g directives.
56058         * tests/test-vasprintf-posix.c (test_function): Likewise.
56059         * tests/test-snprintf-posix.h (test_function): Likewise.
56060         * tests/test-sprintf-posix.h (test_function): Likewise.
56061
56062 2007-05-18  Bruno Haible  <bruno@clisp.org>
56063
56064         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
56065         (strmatch): New function.
56066         (test_function): Test the %f directive on numbers of various exponents.
56067         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
56068         (strmatch): New function.
56069         (test_function): Test the %f directive on numbers of various exponents.
56070         * tests/test-snprintf-posix.h (strmatch): New function.
56071         (test_function): Test the %f directive on numbers of various exponents.
56072         * tests/test-sprintf-posix.h (strmatch): New function.
56073         (test_function): Test the %f directive on numbers of various exponents.
56074         * tests/test-snprintf-posix.c (SIZEOF): New macro.
56075         * tests/test-sprintf-posix.c (SIZEOF): New macro.
56076         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
56077         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
56078
56079 2007-05-18  Bruno Haible  <bruno@clisp.org>
56080
56081         Add support for 'long double' number output.
56082         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
56083         * lib/vasnprintf.c: Include math.h and float+.h.
56084         (mp_limb_t): New type.
56085         (GMP_LIMB_BITS): New macro.
56086         (mp_twolimb_t): New type.
56087         (GMP_TWOLIMB_BITS): New macro.
56088         (mpn_t): New type.
56089         (multiply, divide, convert_to_decimal, decode_long_double,
56090         scale10_round_long_double, scale10_round_decimal_long_double,
56091         floorlog10l): New functions.
56092         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
56093         for the %f, %F, %e, %E, %g, %G directives.
56094         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
56095         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56096         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
56097         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
56098         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56099         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56100         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56101         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56102         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56103         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56104         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56105         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
56106         * modules/snprintf-posix (Depends-on): Likewise.
56107         * modules/sprintf-posix (Depends-on): Likewise.
56108         * modules/vasnprintf-posix (Depends-on): Likewise.
56109         * modules/vasprintf-posix (Depends-on): Likewise.
56110         * modules/vfprintf-posix (Depends-on): Likewise.
56111         * modules/vsnprintf-posix (Depends-on): Likewise.
56112         * modules/vsprintf-posix (Depends-on): Likewise.
56113         * modules/vasnprintf (Files): Add lib/float+.h.
56114         * doc/functions/fprintf.texi: Update.
56115         * doc/functions/printf.texi: Update.
56116         * doc/functions/snprintf.texi: Update.
56117         * doc/functions/sprintf.texi: Update.
56118         * doc/functions/vfprintf.texi: Update.
56119         * doc/functions/vprintf.texi: Update.
56120         * doc/functions/vsnprintf.texi: Update.
56121         * doc/functions/vsprintf.texi: Update.
56122
56123 2007-05-18  Bruno Haible  <bruno@clisp.org>
56124
56125         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
56126
56127 2007-05-18  Bruno Haible  <bruno@clisp.org>
56128
56129         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
56130         for printing 64-bit integers. Needed for mingw.
56131
56132 2007-05-18  Bruno Haible  <bruno@clisp.org>
56133
56134         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
56135         gl_FUNC_FREXPL_WORKS.
56136         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
56137
56138 2007-05-18  Bruno Haible  <bruno@clisp.org>
56139
56140         * modules/frexpl-nolibm-tests: New file.
56141
56142         * modules/frexpl-nolibm: New file.
56143         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
56144
56145 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
56146
56147         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
56148         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
56149         GCC 4.2, which otherwise issues a lot of warnings.
56150         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
56151         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
56152         Likewise.
56153         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
56154         * modules/iconv_open (iconv.h): Likewise.
56155         * modules/locale (locale.h): Likewise.
56156         * modules/netinet_in (netinet/in.h): Likewise.
56157         * modules/sys_select (sys_select.h): Likewise.
56158         * modules/sys_socket (sys/socket.h): Likewise.
56159         * modules/sys_stat (sys/stat.h): Likewise.
56160         * modules/sysexits (sysexits.h): Likewise.
56161         * modules/unistd (unistd.h): Likewise.
56162
56163 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56164
56165         * modules/closein-tests (Makefile.am): Distribute
56166         `test-closein.sh'.
56167
56168 2007-05-17  Bruno Haible  <bruno@clisp.org>
56169
56170         * tests/test-printf-posix.output: Renamed from
56171         tests/test-fprintf-posix.out.
56172         * modules/fprintf-posix-tests: Update.
56173         * modules/printf-posix-tests: Update.
56174         * modules/vfprintf-posix-tests: Update.
56175         * modules/vprintf-posix-tests: Update.
56176         * tests/test-fprintf-posix.sh: Update.
56177         * tests/test-printf-posix.sh: Update.
56178         * tests/test-vfprintf-posix.sh: Update.
56179         * tests/test-vprintf-posix.sh: Update.
56180         Reported by Ralf Wildenhues.
56181
56182 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
56183
56184         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
56185         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
56186         GCC 4.2, which otherwise issues a lot of warnings.
56187         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
56188         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
56189         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
56190         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
56191         it should no longer be needed.
56192         * lib/string_.h: Likewise.
56193         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
56194         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
56195         * modules/inttypes (inttypes.h): Likewise.
56196         * modules/math (math.h): Likewise.
56197         * modules/search (search.h): Likewise.
56198         * modules/signal (signal.h): Likewise.
56199         * modules/stdint (stdint.h): Likewise.
56200         * modules/stdio (stdio.h): Likewise.
56201         * modules/stdlib (stdlib.h): Likewise.
56202         * modules/string (string.h): Likewise.
56203         * modules/sys_time (sys/time.h): Likewise.
56204         * modules/time (time.h): Likewise.
56205         * modules/wchar (wchar.h): Likewise.
56206         * modules/wctype (wtype.h): Likewise.
56207
56208 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
56209
56210         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
56211
56212 2007-05-13  Bruno Haible  <bruno@clisp.org>
56213
56214         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
56215         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
56216         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
56217         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
56218         (gl_PREREQ_STRTOK_R): Don't require it here.
56219
56220 2007-05-13  Bruno Haible  <bruno@clisp.org>
56221
56222         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
56223         when used in C++ mode.
56224
56225 2007-05-12  Bruno Haible  <bruno@clisp.org>
56226
56227         * lib/linebuffer.h: Tweak doc.
56228         * lib/linebuffer.c: Likewise.
56229
56230 2007-05-12  James Youngman  <jay@gnu.org>
56231
56232         * lib/linebuffer.c (readlinebuffer_delim): New function,
56233         like readlinebuffer, but use a caller-specified delimiter.
56234         (readlinebuffer): Just call readlinebuffer_delim with '\n'
56235         as the delimiter.
56236         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
56237
56238 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
56239
56240         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
56241         * modules/openat (Files): Remove openat-die.c.
56242         (Depends-on): Add openat-die.
56243         * modules/openat-die: New module.
56244
56245 2007-05-06  Bruno Haible  <bruno@clisp.org>
56246
56247         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
56248         Update with info about Cygwin.
56249         * doc/functions/fprintf.texi: Update.
56250         * doc/functions/printf.texi: Update.
56251         * doc/functions/snprintf.texi: Update.
56252         * doc/functions/sprintf.texi: Update.
56253         * doc/functions/vfprintf.texi: Update.
56254         * doc/functions/vprintf.texi: Update.
56255         * doc/functions/vsnprintf.texi: Update.
56256         * doc/functions/vsprintf.texi: Update.
56257         Reported by Eric Blake.
56258
56259 2007-05-06  Bruno Haible  <bruno@clisp.org>
56260
56261         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
56262         padding ourselves for the floating-point directives.
56263         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
56264         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
56265         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56266         gl_PRINTF_FLAG_ZERO and test its result. Invoke
56267         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
56268         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56269         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
56270         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56271         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56272         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56273         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56274         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56275         * tests/test-snprintf-posix.h (test_function): Also check the width
56276         and some flags in the %f directive.
56277         * tests/test-sprintf-posix.h (test_function): Likewise.
56278         * tests/test-vasnprintf-posix.c (test_function): Likewise.
56279         * tests/test-vasprintf-posix.c (test_function): Likewise.
56280         * doc/functions/fprintf.texi: Update.
56281         * doc/functions/printf.texi: Update.
56282         * doc/functions/snprintf.texi: Update.
56283         * doc/functions/sprintf.texi: Update.
56284         * doc/functions/vfprintf.texi: Update.
56285         * doc/functions/vprintf.texi: Update.
56286         * doc/functions/vsnprintf.texi: Update.
56287         * doc/functions/vsprintf.texi: Update.
56288
56289 2007-05-06  Bruno Haible  <bruno@clisp.org>
56290
56291         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
56292         pass the ' flag character to sprintf or snprintf.
56293         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
56294         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
56295         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56296         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
56297         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
56298         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56299         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
56300         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56301         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56302         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56303         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56304         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56305         * tests/test-snprintf-posix.h (test_function): Also check the grouping
56306         flag.
56307         * tests/test-sprintf-posix.h (test_function): Likewise.
56308         * tests/test-vasnprintf-posix.c (test_function): Likewise.
56309         * tests/test-vasprintf-posix.c (test_function): Likewise.
56310         * doc/functions/fprintf.texi: Update.
56311         * doc/functions/printf.texi: Update.
56312         * doc/functions/snprintf.texi: Update.
56313         * doc/functions/sprintf.texi: Update.
56314         * doc/functions/vfprintf.texi: Update.
56315         * doc/functions/vprintf.texi: Update.
56316         * doc/functions/vsnprintf.texi: Update.
56317         * doc/functions/vsprintf.texi: Update.
56318
56319 2007-05-01  Bruno Haible  <bruno@clisp.org>
56320
56321         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
56322
56323 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
56324
56325         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
56326         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
56327
56328 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
56329
56330         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
56331         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
56332         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
56333
56334 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
56335
56336         * lib/argp-help.c (struct hol_entry): New member `ord'.
56337         (HOL_ENTRY_PTRCMP): Use ord for comparison
56338         (hol_sort): Initialize ord.
56339
56340 2007-05-01  Bruno Haible  <bruno@clisp.org>
56341
56342         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
56343         Reported by Eric Blake.
56344         * doc/gnulib.texi (Function Substitutes): Update.
56345
56346 2007-05-01  Bruno Haible  <bruno@clisp.org>
56347
56348         * doc/functions.texi: Remove file, now redundant through
56349         doc/functions/*.texi.
56350
56351 2007-05-01  Bruno Haible  <bruno@clisp.org>
56352
56353         * modules/argp (Depends-on): Add sleep.
56354
56355 2007-05-01  Bruno Haible  <bruno@clisp.org>
56356
56357         * modules/sleep-tests: New file.
56358         * tests/test-sleep.c: New file.
56359
56360         * modules/sleep: New file.
56361         * lib/sleep.c: New file.
56362         * m4/sleep.m4: New file.
56363         * lib/unistd_.h (sleep): New declaration.
56364         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
56365         HAVE_SLEEP.
56366         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
56367         * doc/functions/sleep.texi: Document the sleep module.
56368
56369 2007-05-01  Bruno Haible  <bruno@clisp.org>
56370
56371         * lib/sigprocmask.h: Remove file.
56372         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
56373         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
56374         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
56375         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
56376         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
56377         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
56378         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
56379         HAVE_SIGSET_T as a shell variable.
56380         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
56381         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
56382         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
56383         (Depends-on): Add signal. Remove verify.
56384         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
56385         (Include): Mention <signal.h> instead of sigprocmask.h.
56386         * NEWS: Mention the change.
56387         * lib/fatal-signal.c: Don't include sigprocmask.h.
56388
56389 2007-05-01  Bruno Haible  <bruno@clisp.org>
56390
56391         * modules/signal: New file.
56392         * lib/signal_.h: New file.
56393         * m4/signal_h.m4: New file.
56394
56395 2007-05-01  Bruno Haible  <bruno@clisp.org>
56396
56397         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
56398         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
56399         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
56400         HAVE_WCTYPE_CTMP_BUG into wctype.h.
56401
56402 2007-05-01  Bruno Haible  <bruno@clisp.org>
56403
56404         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
56405         configure time.
56406         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
56407         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
56408         * modules/sys_stat (Makefile.am): Substitute their values into
56409         sys/stat.h.
56410
56411 2007-05-01  Bruno Haible  <bruno@clisp.org>
56412
56413         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
56414         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
56415         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
56416
56417 2007-05-01  Bruno Haible  <bruno@clisp.org>
56418
56419         * doc/header/assert.texi: Undo last change: don't mention the gnulib
56420         'assert' module here.
56421
56422 2007-05-01  Bruno Haible  <bruno@clisp.org>
56423
56424         * doc/functions/*.texi: New files.
56425         * doc/functions/google-ranking.txt: New file.
56426         * doc/gnulib.texi (Function Substitutes): New chapter.
56427         (ctime, inet_ntoa): Remove sections.
56428         * doc/ctime.texi: Remove file.
56429         * doc/inet_ntoa.texi: Remove file.
56430         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
56431         dependencies.
56432         (%.info): New rule, specifying a --reference-limit.
56433
56434 2007-05-01  Bruno Haible  <bruno@clisp.org>
56435
56436         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
56437
56438 2007-05-01  Bruno Haible  <bruno@clisp.org>
56439
56440         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
56441         the portability of 'mkdir' to mingw systems.
56442
56443 2007-05-01  Bruno Haible  <bruno@clisp.org>
56444
56445         * doc/headers/google-ranking.txt: New file.
56446
56447 2007-04-30  Eric Blake  <ebb9@byu.net>
56448
56449         Prefer fseeko to fseek.
56450         * modules/getpass (Depends-on): Add fseeko.
56451         * lib/getpass.c (getpass): Use fseeko, not fseek.
56452
56453 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
56454
56455         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
56456         assumes the sorting is stable, while most qsort implementations
56457         are not.  Use argument addresses to ensure they never compare as
56458         equal.
56459
56460         * tests/test-argp-2.sh (usage-indent test): Fix output
56461         (func_compare): Restore diff options
56462         * tests/test-argp.c: Restore #include "progname.h"
56463
56464 2007-04-29  Bruno Haible  <bruno@clisp.org>
56465
56466         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
56467         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56468         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
56469         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56470         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
56471         (configure.ac): Define CHECK_SNPRINTF_POSIX.
56472         (TESTS, check_PROGRAMS): Add test-snprintf.
56473         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
56474         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
56475         (TESTS, check_PROGRAMS): Add test-vsnprintf.
56476         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
56477         assertions that fail on HP-UX, OSF/1, or IRIX.
56478         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
56479
56480 2007-04-29  Bruno Haible  <bruno@clisp.org>
56481
56482         * MODULES.html.sh (posix_functions): Remove 'contents'.
56483
56484 2007-04-29  Karl Berry  <karl@gnu.org>
56485
56486         * config/srclist.txt (gendocs_template_min): new entry.
56487
56488 2007-04-29  Bruno Haible  <bruno@clisp.org>
56489
56490         Work around fpurge bug on BSD systems.
56491         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
56492         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
56493         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
56494         fpurge to rpl_fpurge if the system already has this function.
56495         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
56496         the case where the system already has this function. Correct invariants
56497         on BSD systems.
56498         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
56499         BSD systems.
56500
56501 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
56502
56503         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
56504         proposed by Sven Verdoolaege.
56505
56506         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
56507         options.
56508         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
56509         (usage and help tests): Update
56510
56511 2007-04-29  Bruno Haible  <bruno@clisp.org>
56512
56513         * tests/test-fflush.c (main): Use a file of size 17, not 10.
56514         Print more information in case of failure. Disable a test on BeOS.
56515
56516 2007-04-29  Bruno Haible  <bruno@clisp.org>
56517
56518         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
56519         This helps debugging on systems on which no gdb is available.
56520
56521 2007-04-29  Bruno Haible  <bruno@clisp.org>
56522
56523         * lib/freading.h: Improve comments.
56524         * lib/fwriting.h: Likewise.
56525         * tests/test-freading.c (main): Don't check freading immediately after
56526         repositioning. Needed for glibc.
56527
56528 2007-04-29  Bruno Haible  <bruno@clisp.org>
56529
56530         * lib/freading.c (freading): Trivial simplification.
56531
56532 2007-04-28  Bruno Haible  <bruno@clisp.org>
56533
56534         * tests/test-fwriting.c (main): Also test the interaction between
56535         fflush and fwriting.
56536         * modules/fwriting-tests (Depends-on): Add fflush.
56537
56538         * tests/test-freading.c (main): Also test the interaction between
56539         fflush and freading.
56540         * modules/freading-tests (Depends-on): Add fflush.
56541
56542 2007-04-28  Bruno Haible  <bruno@clisp.org>
56543
56544         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
56545         fseeko and ftello.
56546         Suggested by Eric Blake.
56547
56548 2007-04-28  Jim Meyering  <jim@meyering.net>
56549
56550         Avoid false-negative in gl_STDINT_H's C99 conformance test.
56551         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
56552         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
56553
56554 2007-04-27  Eric Blake  <ebb9@byu.net>
56555
56556         * doc/headers/assert.texi (assert.h): Document assert module use.
56557
56558 2007-04-27  Bruno Haible  <bruno@clisp.org>
56559
56560         * doc/headers/*.texi: New files.
56561         * doc/gnulib.texi (Header File Substitutes): New chapter.
56562         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
56563         dependencies.
56564         (standards.info ,standards.html, standards.dvi): Update dependencies.
56565         (mostlyclean, clean): New targets.
56566
56567 2007-04-27  Bruno Haible  <bruno@clisp.org>
56568
56569         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
56570         * modules/sysexits (Files, Makefile.am): Update.
56571
56572         * lib/sys_socket_.h: Renamed from lib/socket_.h.
56573         * modules/sys_socket (Files, Makefile.am): Update.
56574
56575         * lib/sys_stat_.h: Renamed from lib/stat_.h.
56576         * modules/sys_stat (Files, Makefile.am): Update.
56577
56578 2007-04-27  Eric Blake  <ebb9@byu.net>
56579
56580         * lib/freading.h: Improve comments.
56581         * lib/fwriting.h: Likewise.
56582         * lib/fflush.c: Likewise.
56583
56584         Fix closein for mingw.
56585         * modules/closein-tests: Add tests for closein.
56586         * tests/test-closein.c: New file.
56587         * tests/test-closein.sh: Likewise.
56588         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
56589         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
56590
56591 2007-04-27  Bruno Haible  <bruno@clisp.org>
56592
56593         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
56594         version is < 6.
56595         * lib/math_.h [__DECC]: Likewise.
56596         * lib/stdio_.h [__DECC]: Likewise.
56597         * lib/stdlib_.h [__DECC]: Likewise.
56598         * lib/string_.h [__DECC]: Likewise.
56599         * lib/time_.h [__DECC]: Likewise.
56600         * lib/wchar_.h [__DECC]: Likewise.
56601         * lib/wctype_.h [__DECC]: Likewise.
56602
56603 2007-04-27  Bruno Haible  <bruno@clisp.org>
56604
56605         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
56606
56607 2007-04-27  Bruno Haible  <bruno@clisp.org>
56608
56609         * lib/fflush.c: Add comments.
56610         * modules/fpurge-tests (Depends-on): Add fflush.
56611         * modules/freadable-tests (Depends-on): Likewise.
56612         * modules/fwritable-tests (Depends-on): Likewise.
56613
56614 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
56615
56616         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
56617         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
56618         Report by Bruno Haible <bruno@clisp.org>.
56619
56620 2007-04-26  Eric Blake  <ebb9@byu.net>
56621
56622         Fix fflush on mingw.
56623         * modules/fflush (Depends-on): Add freading.
56624         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
56625         but unread data.
56626
56627 2007-04-26  Eric Blake  <ebb9@byu.net>
56628         and Bruno Haible  <bruno@clisp.org>
56629
56630         Implement freading and fwriting.
56631         * lib/freading.c: New file.
56632         * lib/freading.h: Likewise.
56633         * m4/freading.m4: Likewise.
56634         * modules/freading: Likewise.
56635         * modules/freading-tests: Likewise.
56636         * tests/test-freading.c: Likewise.
56637         * lib/fwriting.c: New file.
56638         * lib/fwriting.h: Likewise.
56639         * m4/fwriting.m4: Likewise.
56640         * modules/fwriting: Likewise.
56641         * modules/fwriting-tests: Likewise.
56642         * tests/test-fwriting.c: Likewise.
56643         * MODULES.html.sh (File stream based Input/Output): Mention them.
56644
56645 2007-04-26  Bruno Haible  <bruno@clisp.org>
56646
56647         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
56648         'long' when we assume it.
56649         Suggested by Eric Blake.
56650
56651 2007-04-26  Bruno Haible  <bruno@clisp.org>
56652
56653         Ensure fseeko, ftello are declared on glibc systems.
56654         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
56655         * modules/fseeko (configure.ac-early): Likewise.
56656         * modules/ftello (configure.ac-early): Likewise.
56657         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
56658         AC_FUNC_FSEEKO for this.
56659         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
56660         (gl_CHECK_FSEEKO): Remove macro.
56661
56662 2007-04-26  Bruno Haible  <bruno@clisp.org>
56663
56664         * tests/test-fflush.c (main): Also check the ftell result after
56665         fflush and fseek/fseeko.
56666         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
56667         file descriptor position cache in the stream.
56668         * lib/fseeko.c (rpl_fseeko): Likewise.
56669
56670 2007-04-26  Bruno Haible  <bruno@clisp.org>
56671
56672         * modules/fflush-tests (Depends-on): Add fseeko.
56673
56674 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
56675             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56676
56677         * lib/argz_.h: ensure error_t definition is obtained in same
56678         mechanism system argz.h would have.
56679         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
56680         argz facilities are known bad.  Err on the side of caution if
56681         cross-compiling.
56682
56683 2007-04-25  Eric Blake  <ebb9@byu.net>
56684
56685         * lib/fpurge.c (includes): Use stdlib.h for free.
56686         * tests/test-fflush.c (main): Also test fflush-fseeko.
56687
56688 2007-04-25  Bruno Haible  <bruno@clisp.org>
56689
56690         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
56691         * lib/fseeko.c: New file.
56692         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
56693         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
56694         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
56695         gl_FUNC_FSEEKO.
56696         (gl_FUNC_FSEEKO): Invoke it.
56697         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
56698         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
56699         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
56700
56701 2007-04-25  Bruno Haible  <bruno@clisp.org>
56702
56703         * modules/fflush (Depends-on): Add ftello.
56704
56705 2007-04-25  Bruno Haible  <bruno@clisp.org>
56706
56707         * modules/ftello-tests: New file.
56708         * tests/test-ftello.c: New file.
56709
56710         * modules/ftello: New file.
56711         * m4/ftello.m4: New file.
56712         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
56713         HAVE_FTELLO.
56714         * lib/stdio_.h (ftello): New declaration.
56715         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
56716         HAVE_FTELLO.
56717
56718 2007-04-25  Bruno Haible  <bruno@clisp.org>
56719
56720         * modules/fseeko-tests: New file.
56721         * tests/test-fseeko.c: New file.
56722
56723         * modules/fseeko: New file.
56724         * m4/fseeko.m4: New file.
56725         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
56726         HAVE_FSEEKO.
56727         * lib/stdio_.h (fseeko): New declaration.
56728         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
56729         HAVE_FSEEKO.
56730
56731 2007-04-25  Bruno Haible  <bruno@clisp.org>
56732
56733         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
56734
56735 2007-04-25  Bruno Haible  <bruno@clisp.org>
56736
56737         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
56738         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
56739         * tests/test-unistd.c: Likewise.
56740         * tests/test-fcntl.c: Likewise.
56741
56742 2007-04-23  Eric Blake  <ebb9@byu.net>
56743
56744         * lib/fflush.c: Fix missing include.
56745         Reported by Bruno Haible.
56746
56747 2007-04-23  Bruno Haible  <bruno@clisp.org>
56748
56749         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
56750         Reported by Eric Blake.
56751
56752 2007-04-23  Bruno Haible  <bruno@clisp.org>
56753
56754         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
56755
56756 2007-04-23  Bruno Haible  <bruno@clisp.org>
56757
56758         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
56759
56760 2007-04-23  Bruno Haible  <bruno@clisp.org>
56761
56762         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
56763         Needed on HP-UX 11.
56764
56765 2007-04-16  Eric Blake  <ebb9@byu.net>
56766
56767         Make fflush rely on fpurge.
56768         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
56769         open coding all variants.
56770         * modules/fflush (Depends-on): Add fpurge and unistd.
56771         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
56772         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
56773
56774         Fix --with-tests compilation on cygwin.
56775         * modules/argmatch-tests (Makefile.am): List gnulib library first
56776         in LDADD.
56777         * modules/argp-tests (Makefile.am): Likewise.
56778         * modules/array-list-tests (Makefile.am): Likewise.
56779         * modules/array-oset-tests (Makefile.am): Likewise.
56780         * modules/avltree-list-tests (Makefile.am): Likewise.
56781         * modules/avltree-oset-tests (Makefile.am): Likewise.
56782         * modules/avltreehash-list-tests (Makefile.am): Likewise.
56783         * modules/carray-list-tests (Makefile.am): Likewise.
56784         * modules/dirname-tests (Makefile.am): Likewise.
56785         * modules/frexp-tests (Makefile.am): Likewise.
56786         * modules/isnanl-tests (Makefile.am): Likewise.
56787         * modules/linked-list-tests (Makefile.am): Likewise.
56788         * modules/linkedhash-list-tests (Makefile.am): Likewise.
56789         * modules/lock-tests (Makefile.am): Likewise.
56790         * modules/rbtree-list-tests (Makefile.am): Likewise.
56791         * modules/rbtree-oset-tests (Makefile.am): Likewise.
56792         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
56793         * modules/tls-tests (Makefile.am): Likewise.
56794         * modules/tsearch-tests (Makefile.am): Likewise.
56795         * modules/xvasprintf-tests (Makefile.am): Likewise.
56796
56797         Fix fpurge for cygwin.
56798         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
56799         value.
56800         * modules/fpurge-tests (Depends-on): Clean up trash.
56801
56802 2007-04-16  Simon Josefsson  <simon@josefsson.org>
56803
56804         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
56805
56806         * m4/autobuild.m4: Re-indent.
56807
56808 2007-04-13  Bruno Haible  <bruno@clisp.org>
56809
56810         * modules/fpurge-tests: New file.
56811         * tests/test-fpurge.c: New file.
56812
56813         * modules/fpurge: New file.
56814         * lib/fpurge.h: New file.
56815         * lib/fpurge.c: New file.
56816         * m4/fpurge.m4: New file.
56817
56818 2007-04-13  Bruno Haible  <bruno@clisp.org>
56819
56820         * modules/fbufmode-tests: New file.
56821         * tests/test-fbufmode.c: New file.
56822
56823         * modules/fbufmode: New file.
56824         * lib/fbufmode.h: New file.
56825         * lib/fbufmode.c: New file.
56826         * m4/fbufmode.m4: New file.
56827
56828 2007-04-13  Bruno Haible  <bruno@clisp.org>
56829
56830         * modules/fwritable-tests: New file.
56831         * tests/test-fwritable.c: New file.
56832
56833         * modules/fwritable: New file.
56834         * lib/fwritable.h: New file.
56835         * lib/fwritable.c: New file.
56836         * m4/fwritable.m4: New file.
56837
56838 2007-04-13  Bruno Haible  <bruno@clisp.org>
56839
56840         * modules/freadable-tests: New file.
56841         * tests/test-freadable.c: New file.
56842
56843         * modules/freadable: New file.
56844         * lib/freadable.h: New file.
56845         * lib/freadable.c: New file.
56846         * m4/freadable.m4: New file.
56847
56848 2007-04-13  Bruno Haible  <bruno@clisp.org>
56849
56850         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
56851         MOSTLYCLEANFILES.
56852
56853 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
56854
56855         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
56856         gzip bootstrap.conf to avoid dragging in i18n machinery.
56857         (gnulib_tool_option): Use it.
56858
56859 2007-04-13  Bruno Haible  <bruno@clisp.org>
56860
56861         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
56862         %F directives.
56863         * tests/test-vasprintf-posix.c (test_function): Likewise.
56864         * tests/test-snprintf-posix.h (test_function): Likewise.
56865         * tests/test-sprintf-posix.h (test_function): Likewise.
56866         * tests/test-fprintf-posix.h (test_function): Likewise.
56867         * tests/test-printf-posix.h (test_function): Likewise.
56868         * tests/test-fprintf-posix.out: Likewise.
56869
56870 2007-04-13  Bruno Haible  <bruno@clisp.org>
56871
56872         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
56873         * modules/tls-tests (configure.ac): Likewise.
56874         Reported by Arto C. Nirkko <anirkko@insel.ch>.
56875
56876 2007-04-13  Bruno Haible  <bruno@clisp.org>
56877
56878         * lib/tls.c (glthread_tls_get): Fix return type.
56879         Patch by Arto C. Nirkko <anirkko@insel.ch>.
56880
56881 2007-04-12  Eric Blake  <ebb9@byu.net>
56882
56883         * modules/gettime (Depends-on): Remove gettime.
56884         Reported by Dmitry V. Levin.
56885
56886 2007-04-12  Bruno Haible  <bruno@clisp.org>
56887
56888         * modules/fflush (Include): Mention <stdio.h>.
56889         * modules/strtoimax (Include): Mention <inttypes.h>.
56890         * modules/strtoumax (Include): Likewise.
56891
56892 2007-04-12  Eric Blake  <ebb9@byu.net>
56893
56894         * .cvsignore: New file.
56895         * .gitignore: Likewise.
56896
56897 2007-04-12  Bruno Haible  <bruno@clisp.org>
56898
56899         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
56900         not before, since $(LDADD) often contains libgnu.a.
56901         * modules/striconv-tests (test_striconv_LDADD): Likewise.
56902         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
56903         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
56904         Needed on Cygwin.
56905
56906 2007-04-12  Eric Blake  <ebb9@byu.net>
56907
56908         Work around glibc's failure to flush stdin on fclose.
56909         * lib/closein.c (close_stdin): Flush stdin before closing.
56910
56911         Work around glibc's failure to reset seekable stdin on exit.
56912         * modules/closein: New module.
56913         * lib/closein.c: New file.
56914         * lib/closein.h: Likewise.
56915         * m4/closein.m4: Likewise.
56916         * MODULES.html.sh (File stream based Input/Output): Document it.
56917
56918 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56919
56920         * gnulib-tool: Rename generated 'autobuild' script to
56921         'do-autobuild' in --create-megatestdir output.
56922
56923         * doc/gnulib.texi (Build robot for gnulib): Fix.
56924
56925 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56926
56927         * modules/sysexits (Depends-on): Add absolute-header.
56928
56929 2007-04-12  Eric Blake  <ebb9@byu.net>
56930
56931         No need to preserve errno on success.
56932         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
56933         Reported by Bruno Haible.
56934
56935 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56936
56937         * MODULES.html.sh (Support for maintaining and releasing
56938         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
56939
56940 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56941
56942         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
56943
56944 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56945
56946         * modules/autobuild: New module.
56947
56948         * m4/autobuild.m4: New file.
56949
56950 2007-04-11  Bruno Haible  <bruno@clisp.org>
56951
56952         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
56953         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
56954         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
56955         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
56956         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56957         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56958         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56959         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56960         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56961         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56962         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
56963         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56964         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56965         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
56966         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56967         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56968         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
56969         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56970         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56971         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
56972         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56973         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56974         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
56975         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56976         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56977         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
56978         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56979         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56980         Reported by Eric Blake.
56981
56982 2007-04-11  Bruno Haible  <bruno@clisp.org>
56983
56984         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
56985
56986 2007-04-10  Bruno Haible  <bruno@clisp.org>
56987
56988         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
56989         for NaN and Infinity. Needed on FreeBSD 6.1.
56990         * tests/test-vasnprintf-posix.c (test_function): Undo last change
56991         regarding results for "%010a" of Infinity and NaN.
56992         * tests/test-vasprintf-posix.c (test_function): Likewise.
56993         * tests/test-snprintf-posix.h (test_function): Likewise.
56994         * tests/test-sprintf-posix.h (test_function): Likewise.
56995         * tests/test-fprintf-posix.h (test_function): Likewise.
56996         * tests/test-printf-posix.h (test_function): Likewise.
56997         * tests/test-fprintf-posix.out: Likewise.
56998
56999 2007-04-10  Bruno Haible  <bruno@clisp.org>
57000
57001         * modules/locale-tests: New file.
57002         * tests/test-locale.c: New file.
57003
57004         * modules/locale: New file.
57005         * lib/locale_.h: New file.
57006         * m4/locale_h.m4: New file.
57007
57008 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
57009             Bruno Haible  <bruno@clisp.org>
57010
57011         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
57012         be determined, test for availability of the copysignf, copysign,
57013         copysignl functions.
57014         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
57015         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
57016         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
57017
57018 2007-04-09  Eric Blake  <ebb9@byu.net>
57019
57020         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
57021         * modules/stdio (Makefile.am): Support fflush.
57022         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57023         * modules/fflush: New file.
57024         * lib/fflush.c: Likewise.
57025         * m4/fflush.m4: Likewise.
57026         * modules/fflush-tests: New test.
57027         * tests/test-fflush.c: Likewise.
57028         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
57029
57030 2007-04-06  Bruno Haible  <bruno@clisp.org>
57031
57032         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
57033         (VASNPRINTF): Use signbit for faster determination whether to print a
57034         minus sign.
57035         * modules/vasnprintf (Files): Remove lib/float+.h.
57036         * modules/fprintf-posix (Depends-on): Add signbit.
57037         * modules/snprintf-posix (Depends-on): Likewise.
57038         * modules/sprintf-posix (Depends-on): Likewise.
57039         * modules/vasnprintf-posix (Depends-on): Likewise.
57040         * modules/vasprintf-posix (Depends-on): Likewise.
57041         * modules/vfprintf-posix (Depends-on): Likewise.
57042         * modules/vsnprintf-posix (Depends-on): Likewise.
57043         * modules/vsprintf-posix (Depends-on): Likewise.
57044
57045 2007-04-06  Bruno Haible  <bruno@clisp.org>
57046
57047         * tests/test-frexp.c (main): Test also the sign bit of zero results.
57048         * tests/test-frexpl.c (main): Likewise.
57049         * tests/test-ldexpl.c (main): Likewise.
57050         * modules/frexp-tests (Depends-on): Add signbit.
57051         * modules/frexpl-tests (Depdends-on): Likewise.
57052         * modules/ldexpl-tests (Depdends-on): Likewise.
57053
57054 2007-04-06  Bruno Haible  <bruno@clisp.org>
57055
57056         * modules/signbit-tests: New file.
57057         * tests/test-signbit.c: New file.
57058
57059         * modules/signbit: New file.
57060         * lib/signbitf.c: New file.
57061         * lib/signbitd.c: New file.
57062         * lib/signbitl.c: New file.
57063         * m4/signbit.m4: New file.
57064         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
57065         (signbit): New macro.
57066         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
57067         REPLACE_SIGNBIT.
57068         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
57069         REPLACE_FREXPL into math.h.
57070
57071 2007-04-06  Bruno Haible  <bruno@clisp.org>
57072
57073         * modules/isnanf-nolibm-tests: New file.
57074         * tests/test-isnanf.c: New file.
57075
57076         * modules/isnanf-nolibm: New file.
57077         * lib/isnanf.h: New file.
57078         * lib/isnanf.c: New file.
57079         * lib/isnan.c: Consider the USE_FLOAT macro.
57080         * m4/isnanf.m4: New file.
57081
57082 2007-04-06  Bruno Haible  <bruno@clisp.org>
57083
57084         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
57085         (Link): New section.
57086
57087         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
57088
57089 2007-04-06  Bruno Haible  <bruno@clisp.org>
57090
57091         Assume the 'long double' type.
57092         * m4/longdouble.m4: Remove file.
57093         * config/srclist.txt: Don't mention longdouble.m4.
57094         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
57095         * lib/float+.h: Likewise.
57096         * lib/frexp.c: Likewise.
57097         * lib/printf-args.h: Likewise.
57098         * lib/printf-args.c: Likewise.
57099         * lib/printf-frexp.c: Likewise.
57100         * lib/printf-parse.c: Likewise.
57101         * lib/vasnprintf.c: Likewise.
57102         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
57103         * m4/intl.m4: Likewise.
57104         * m4/isnanl.m4: Likewise.
57105         * m4/printf.m4: Likewise.
57106         * m4/printf-frexpl.m4: Likewise.
57107         * m4/vasnprintf.m4: Likewise.
57108         * modules/allocsa (Files): Remove m4/longdouble.m4.
57109         * modules/gettext (Files): Likewise.
57110         * modules/relocatable-prog-wrapper (Files): Likewise.
57111         * modules/vasnprintf (Files): Likewise.
57112         * modules/isnanl (Files): Likewise.
57113         (Include): Simplify.
57114         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
57115         (Include): Simplify.
57116         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
57117         (Include): Simplify.
57118         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
57119         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57120         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
57121         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57122         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
57123         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57124         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
57125         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57126         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
57127         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57128         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
57129         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
57130         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
57131         * tests/test-isnanl.c: Likewise.
57132         * tests/test-snprintf-posix.h: Likewise.
57133         * tests/test-sprintf-posix.h: Likewise.
57134         * tests/test-vasnprintf-posix.c: Likewise.
57135         * tests/test-vasnprintf-posix2.c: Likewise.
57136         * tests/test-vasprintf-posix.c: Likewise.
57137
57138 2007-04-06  Bruno Haible  <bruno@clisp.org>
57139
57140         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
57141         * lib/math_.h [__DECC]: Include the overridden include file through
57142         #include_next, outside the double-inclusion guard.
57143         * lib/stdio_.h [__DECC]: Likewise.
57144         * lib/stdlib_.h [__DECC]: Likewise.
57145         * lib/string_.h [__DECC]: Likewise.
57146         * lib/time_.h [__DECC]: Likewise.
57147         * lib/wchar_.h [__DECC]: Likewise.
57148         * lib/wctype_.h [__DECC]: Likewise.
57149         * lib/inttypes_.h [__DECC]: Likewise.
57150         Reported by Albert Chin <china@thewrittenword.com> in
57151         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
57152
57153 2007-04-04  Eric Blake  <ebb9@byu.net>
57154
57155         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
57156         1.5.x.
57157
57158 2007-04-04  Bruno Haible  <bruno@clisp.org>
57159
57160         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
57161         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
57162
57163 2007-04-04  Bruno Haible  <bruno@clisp.org>
57164
57165         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
57166         results for "%010a" of Infinity and NaN.
57167         * tests/test-vasprintf-posix.c (test_function): Likewise.
57168         * tests/test-snprintf-posix.h (test_function): Likewise.
57169         * tests/test-sprintf-posix.h (test_function): Likewise.
57170         * tests/test-fprintf-posix.h (test_function): Remove these tests.
57171         * tests/test-printf-posix.h (test_function): Likewise.
57172         * tests/test-fprintf-posix.out: Update.
57173         Needed for FreeBSD 6.1.
57174
57175 2007-04-04  Bruno Haible  <bruno@clisp.org>
57176
57177         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
57178         directly used by the gnulib modules nor by gnulib-tool.
57179
57180 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
57181
57182         * DEPENDENCIES: Give overall description of version dependency
57183         desirability.  Use more-typical names for apps.
57184         Add shell, coreutils, diffutils, grep, tar, gzip.
57185
57186 2007-04-04  Simon Josefsson  <simon@josefsson.org>
57187
57188         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
57189
57190 2007-04-04  Karl Berry  <karl@gnu.org>
57191
57192         * MODULES.html.sh (func_module): missing '.
57193
57194 2007-04-03  Bruno Haible  <bruno@clisp.org>
57195
57196         * modules/argmatch-tests (Makefile.am): New variable
57197         test_argmatch_LDADD.
57198         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
57199         * modules/array-list-tests (Makefile.am): New variable
57200         test_array_list_LDADD.
57201         * modules/array-oset-tests (Makefile.am): New variable
57202         test_array_oset_LDADD.
57203         * modules/avltree-list-tests (Makefile.am): New variable
57204         test_avltree_list_LDADD.
57205         * modules/avltree-oset-tests (Makefile.am): New variable
57206         test_avltree_oset_LDADD.
57207         * modules/avltreehash-list-tests (Makefile.am): New variable
57208         test_avltreehash_list_LDADD.
57209         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
57210         test_canonicalize_lgpl_LDADD.
57211         * modules/carray-list-tests (Makefile.am): New variable
57212         test_carray_list_LDADD.
57213         * modules/dirname-tests (Makefile.am): New variable
57214         test_dirname_LDADD.
57215         * modules/linked-list-tests (Makefile.am): New variable
57216         test_linked_list_LDADD.
57217         * modules/linkedhash-list-tests (Makefile.am): New variable
57218         test_linkedhash_list_LDADD.
57219         * modules/rbtree-list-tests (Makefile.am): New variable
57220         test_rbtree_list_LDADD.
57221         * modules/rbtree-oset-tests (Makefile.am): New variable
57222         test_rbtree_oset_LDADD.
57223         * modules/rbtreehash-list-tests (Makefile.am): New variable
57224         test_rbtreehash_list_LDADD.
57225         * modules/xvasprintf-tests (Makefile.am): New variable
57226         test_xvasprintf_LDADD.
57227         Reported by Eric Blake.
57228
57229 2007-04-03  Eric Blake  <ebb9@byu.net>
57230
57231         * DEPENDENCIES: Weaken m4 requirements.
57232
57233 2007-04-03  Bruno Haible  <bruno@clisp.org>
57234
57235         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
57236         * modules/isnanl-tests (configure.ac): Likewise.
57237
57238 2007-04-03  Ben Pfaff  <blp@gnu.org>
57239
57240         * modules/iconv_open: Add $(srcdir)/ to source directory
57241         references in Makefile fragments that call gperf, to fix VPATH
57242         builds.
57243
57244 2007-04-03  Bruno Haible  <bruno@clisp.org>
57245
57246         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
57247         * lib/ldexpl.c: Undo last change.
57248
57249 2007-04-03  Bruno Haible  <bruno@clisp.org>
57250
57251         * modules/printf-frexpl (Depends-on): Undo last change.
57252         (Files): Add m4/ldexpl.m4.
57253
57254 2007-04-03  Bruno Haible  <bruno@clisp.org>
57255
57256         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
57257         * modules/isnanl (Link): New section.
57258
57259         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
57260         * modules/frexp (Link): New section.
57261
57262         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
57263         * modules/frexpl (Link): New section.
57264
57265         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
57266         * modules/ldexpl (Link): New section.
57267
57268 2007-04-03  Bruno Haible  <bruno@clisp.org>
57269
57270         * modules/TEMPLATE-EXTENDED: New file.
57271         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
57272
57273 2007-04-03  Bruno Haible  <bruno@clisp.org>
57274
57275         * DEPENDENCIES: New file.
57276         Suggested by Simon Josefsson.
57277
57278 2007-04-03  Bruno Haible  <bruno@clisp.org>
57279
57280         * doc/gnulib.texi: Escape @.
57281
57282 2007-04-03  James Youngman  <jay@gnu.org>
57283         and Paul Eggert  <eggert@cs.ucla.edu>
57284
57285         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
57286         birthtime on all systems that have birthtime, not just those which
57287         use st_birthtimensec rather than st_birthtim.  Putting zero in
57288         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
57289         that the birth time is not available for files on an NFS mount.
57290
57291 2007-04-03  Simon Josefsson  <simon@josefsson.org>
57292
57293         * modules/memxor: Move back from crypto/, suggested by Bruno.
57294         * modules/crypto/hmac-sha1: Fix memxor dependency.
57295
57296         * modules/crypto/gc: Moved from ../.
57297
57298 2007-04-02  Eric Blake  <ebb9@byu.net>
57299
57300         * lib/ldexpl.c (includes): Avoid libm.
57301
57302         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
57303
57304 2007-04-02  Bruno Haible  <bruno@clisp.org>
57305
57306         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
57307         on IRIX.
57308
57309 2007-04-02  Bruno Haible  <bruno@clisp.org>
57310
57311         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
57312         x86 or x86_64 platforms running MacOS X.
57313         Reported by Ryan Schmidt <@ryandesign.com>.
57314
57315 2007-04-02  Bruno Haible  <bruno@clisp.org>
57316
57317         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
57318         i386.
57319
57320 2007-04-01  Simon Josefsson  <simon@josefsson.org>
57321
57322         * modules/crypto/arcfour: Moved from ../.
57323         * modules/crypto/arcfour-tests: Moved from ../.
57324         * modules/crypto/arctwo: Moved from ../.
57325         * modules/crypto/arctwo-tests: Moved from ../.
57326         * modules/crypto/des: Moved from ../.
57327         * modules/crypto/des-tests: Moved from ../.
57328         * modules/crypto/gc-arcfour: Moved from ../.
57329         * modules/crypto/gc-arcfour-tests: Moved from ../.
57330         * modules/crypto/gc-arctwo: Moved from ../.
57331         * modules/crypto/gc-arctwo-tests: Moved from ../.
57332         * modules/crypto/gc-des: Moved from ../.
57333         * modules/crypto/gc-des-tests: Moved from ../.
57334         * modules/crypto/gc-hmac-md5: Moved from ../.
57335         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
57336         * modules/crypto/gc-hmac-sha1: Moved from ../.
57337         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
57338         * modules/crypto/gc-md2: Moved from ../.
57339         * modules/crypto/gc-md2-tests: Moved from ../.
57340         * modules/crypto/gc-md4: Moved from ../.
57341         * modules/crypto/gc-md4-tests: Moved from ../.
57342         * modules/crypto/gc-md5: Moved from ../.
57343         * modules/crypto/gc-md5-tests: Moved from ../.
57344         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
57345         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
57346         * modules/crypto/gc-random: Moved from ../.
57347         * modules/crypto/gc-rijndael: Moved from ../.
57348         * modules/crypto/gc-rijndael-tests: Moved from ../.
57349         * modules/crypto/gc-sha1: Moved from ../.
57350         * modules/crypto/gc-sha1-tests: Moved from ../.
57351         * modules/crypto/gc-tests: Moved from ../.
57352         * modules/crypto/hmac-md5: Moved from ../.
57353         * modules/crypto/hmac-md5-tests: Moved from ../.
57354         * modules/crypto/hmac-sha1: Moved from ../.
57355         * modules/crypto/hmac-sha1-tests: Moved from ../.
57356         * modules/crypto/md2: Moved from ../.
57357         * modules/crypto/md2-tests: Moved from ../.
57358         * modules/crypto/md4: Moved from ../.
57359         * modules/crypto/md4-tests: Moved from ../.
57360         * modules/crypto/md5: Moved from ../.
57361         * modules/crypto/md5-tests: Moved from ../.
57362         * modules/crypto/memxor: Moved from ../.
57363         * modules/crypto/rijndael: Moved from ../.
57364         * modules/crypto/rijndael-tests: Moved from ../.
57365         * modules/crypto/sha1: Moved from ../.
57366
57367 2007-03-30  James Youngman  <jay@gnu.org>
57368
57369         * tests/test-stat-time.c (prepare_test): use chmod() rather than
57370         rename() to change the ctime of a file (because ctime is unaffected
57371         by rename on jfs2 on AIX 5.1).
57372         (main): Start by doing cleanup, in case a previous run failed leaving
57373         test files behind.
57374
57375 2007-03-31  Bruno Haible  <bruno@clisp.org>
57376
57377         Support old proprietary implementations of iconv.
57378         * modules/iconv_open: New file.
57379         * lib/iconv_.h: New file.
57380         * m4/iconv_h.m4: New file.
57381         * lib/iconv_open.c: New file.
57382         * lib/iconv_open-aix.gperf: New file.
57383         * lib/iconv_open-hpux.gperf: New file.
57384         * lib/iconv_open-irix.gperf: New file.
57385         * lib/iconv_open-osf.gperf: New file.
57386         * m4/iconv_open.m4: New file.
57387         * modules/linebreak (Depends-on): Add iconv_open.
57388         * modules/striconv (Depends-on): Likewise.
57389         * modules/striconveh (Depends-on): Likewise.
57390         * modules/unicodeio (Depends-on): Likewise.
57391         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
57392         (iconv_t)(-1).
57393         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
57394         conversion if cd is (iconv_t)(-1).
57395         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
57396         is not possible.
57397
57398 2007-03-31  Bruno Haible  <bruno@clisp.org>
57399
57400         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
57401         work on Solaris either. Protect also second use of "autodetect_jp".
57402
57403 2007-03-31  Bruno Haible  <bruno@clisp.org>
57404
57405         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
57406         the function is not present.
57407
57408 2007-03-31  Bruno Haible  <bruno@clisp.org>
57409
57410         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
57411         the function is not present.
57412
57413 2007-03-31  Bruno Haible  <bruno@clisp.org>
57414
57415         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
57416         a bug in HP-UX iconv_open().
57417
57418 2007-03-31  Bruno Haible  <bruno@clisp.org>
57419
57420         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
57421         (Mathematics <math.h>): New section, add fpieee.
57422         (Input/output <stdio.h>): Add fseterr.
57423         (Mathematics <math.h>): New section, add printf-frexp.
57424         (Container data structures): Add sublist.
57425         (Core language properties): Add fpucw, inline.
57426         (Functions for greatest-width integer types <inttypes.h>): Add
57427         imaxabs, imaxdiv, inttypes.
57428         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
57429         isnanl-nolibm, ldexp.
57430         (Mathematics <math.h>): New section, add printf-frexpl.
57431         (Support for systems lacking POSIX:2001): Add fprintf-posix,
57432         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
57433         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
57434         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
57435         (Unicode string functions): Add unistr/u*-mbtoucr.
57436         (Java): Add javacomp-script, javaexec-script.
57437         (C#): Add csharpcomp-script, csharpexec-script.
57438         (Support for building libraries and executables): Add havelib,
57439         relocatable-*.
57440         (Support for maintaining and releasing projects): Renamed from
57441         'Support for maintaining and release projects'. Add announce-gen.
57442
57443 2007-03-31  Bruno Haible  <bruno@clisp.org>
57444
57445         * README: Talk primarily about git.
57446         (git and CVS): Renamed from CVS.
57447         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
57448         gnulib is available through git.
57449         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
57450
57451 2007-03-30  Bruno Haible  <bruno@clisp.org>
57452
57453         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
57454         * lib/poll_.h: Likewise.
57455         * lib/stat_.h: Likewise.
57456         * lib/sys_time_.h: Likewise.
57457         * lib/sysexit_.h: Likewise.
57458         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
57459         * lib/stdbool_.h: Likewise.
57460         * lib/byteswap_.h: Add double-inclusion guard.
57461
57462 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
57463
57464         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
57465
57466 2007-03-30  Karl Berry  <karl@gnu.org>
57467
57468         * config/srclist-update: double space after USA in the license
57469         substitution, since that's how it's usually (?) written.
57470
57471 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
57472
57473         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
57474         reported by Bruno Haible.
57475
57476 2007-03-29  Bruno Haible  <bruno@clisp.org>
57477
57478         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
57479         a bug in AIX iconv().
57480
57481 2007-03-29  Bruno Haible  <bruno@clisp.org>
57482
57483         * modules/ldexpl-tests: New file.
57484         * tests/test-ldexpl.c: New file.
57485
57486 2007-03-29  Bruno Haible  <bruno@clisp.org>
57487
57488         * lib/ldexpl.c: Include fpucw.h.
57489         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
57490         multiplication.
57491         * modules/ldexpl (Depends-on): Add fpucw.
57492
57493 2007-03-29  Bruno Haible  <bruno@clisp.org>
57494
57495         * modules/ldexpl: New file.
57496         * m4/ldexpl.m4: New file.
57497         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
57498         set.
57499         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
57500         REPLACE_LDEXPL.
57501         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
57502         REPLACE_LDEXPL.
57503         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
57504         gl_FUNC_LDEXPL_WORKS.
57505         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
57506         * modules/mathl (Files): Remove lib/ldexpl.c.
57507         (Depends-on): Add ldexpl.
57508
57509 2007-03-29  Bruno Haible  <bruno@clisp.org>
57510
57511         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
57512
57513 2007-03-29  Bruno Haible  <bruno@clisp.org>
57514
57515         * tests/test-striconveh.c (main): Don't assume that a direct conversion
57516         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
57517         and possibly also HP-UX.
57518         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
57519         work on AIX, IRIX, HP-UX, OSF/1.
57520         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
57521         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
57522         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
57523         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
57524         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
57525         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
57526
57527 2007-03-29  Bruno Haible  <bruno@clisp.org>
57528
57529         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
57530
57531 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
57532
57533         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
57534         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
57535
57536 2007-03-29  Eric Blake  <ebb9@byu.net>
57537
57538         * lib/acl-internal.h: Remove redundant include.
57539         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
57540         Cygwin when a file is locked.
57541
57542 2007-03-29  Bruno Haible  <bruno@clisp.org>
57543
57544         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
57545         file.
57546         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
57547
57548 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
57549
57550         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
57551         try to remove a parent directory if the child couldn't be removed
57552         (except for the first rmdir, which could fail because the child
57553         doesn't exist).  Problem reported by Jeff Blaine in
57554         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
57555
57556 2007-03-28  Bruno Haible  <bruno@clisp.org>
57557
57558         * lib/striconveh.c (utf8conv_carefully): New function.
57559         (mem_cd_iconveh_internal): Invoke it.
57560
57561 2007-03-28  Bruno Haible  <bruno@clisp.org>
57562
57563         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
57564         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
57565         input.
57566         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
57567         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
57568         unistr/u8-uctomb.
57569
57570 2007-03-28  Bruno Haible  <bruno@clisp.org>
57571
57572         * modules/unistr/u8-mbtoucr: New file.
57573         * lib/unistr/u8-mbtoucr.c: New file.
57574         * modules/unistr/u16-mbtoucr: New file.
57575         * lib/unistr/u16-mbtoucr.c: New file.
57576         * modules/unistr/u16-mbtoucr: New file.
57577         * lib/unistr/u16-mbtoucr.c: New file.
57578         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
57579
57580 2007-03-27  Simon Josefsson  <simon@josefsson.org>
57581             Bruno Haible  <bruno@clisp.org>
57582
57583         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
57584         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
57585         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
57586
57587         * m4/stdio_h.m4: Add stubs for vasprintf too.
57588
57589         * modules/stdio: Support vasprintf in sed command.
57590
57591         * modules/vasprintf: Depend on stdio for prototypes.  Remove
57592         vasprintf.h.  Add stdio module indicator.
57593
57594         * lib/stdio_.h: Declare asprintf and vasprintf, based on
57595         vasprintf.h.
57596
57597         * lib/vasprintf.h: File removed.
57598
57599         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
57600         * lib/vasprintf.c: Ditto.
57601         * lib/xvasprintf.c: Ditto.
57602         * tests/test-vasprintf-posix.c: Ditto.
57603         * tests/test-vasprintf.c: Ditto.
57604
57605 2007-03-27  Bruno Haible  <bruno@clisp.org>
57606
57607         Make vasnprintf multithread-safe.
57608         * lib/vasnprintf.c (decimal_point_char): New function.
57609         (VASNPRINTF): Use it.
57610         Suggested by Simon Josefsson.
57611
57612 2007-03-27  Eric Blake  <ebb9@byu.net>
57613
57614         Support sub-second birthtime on cygwin.
57615         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
57616         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
57617         (get_stat_birthtime): Also work with st_birthtim.
57618
57619 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
57620
57621         * lib/stat-time.h (USE_BIRTHTIME): Remove.
57622         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
57623         (get_stat_birthtime_ns): Do not try to use "spare" fields.
57624         (get_stat_birthtime_ns): Simplify compile-time tests.
57625         (get_stat_birthtime): Change the API to look like
57626         get_stat_mtime etc., except return a negative tv_nsec on error.
57627         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
57628         Don't check for "spare" fields.
57629         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
57630         or for struct stat.st_birthtime, as these tests aren't used.
57631         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
57632
57633 2007-03-27  Bruno Haible  <bruno@clisp.org>
57634
57635         * lib/stat-time.h: Include <sys/stat.h>.
57636
57637 2007-03-27  James Youngman  <jay@gnu.org>
57638
57639         * lib/stat-time.h (get_stat_birthtime): New function for
57640           retrieving st_birthtime as provided by UFS2 (hence *BSD).
57641         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
57642           and its variants.
57643         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
57644         * modules/stat-time-test: New file.
57645         * tests/test-stat-time.c: New test, devised by Bruno Haible.
57646
57647 2007-03-26  Bruno Haible  <bruno@clisp.org>
57648
57649         Better support of signalling NaNs.
57650         * lib/atanl.c: Include isnanl.h.
57651         (atanl): Perform test for NaN at the beginning of the function and
57652         through a call to isnanl.
57653         * lib/cosl.c: Include isnanl.h.
57654         (cosl): Perform test for NaN at the beginning of the function and
57655         through a call to isnanl.
57656         * lib/ldexpl.c: Include isnanl.h.
57657         (ldexpl): Perform test for NaN through a call to isnanl.
57658         * lib/logl.c: Include isnanl.h.
57659         (logl): Perform test for NaN at the beginning of the function and
57660         through a call to isnanl.
57661         * lib/sinl.c: Include isnanl.h.
57662         (sinl): Perform test for NaN at the beginning of the function and
57663         through a call to isnanl.
57664         * lib/sqrtl.c: Include isnanl.h.
57665         (sqrtl): Perform test for NaN at the beginning of the function and
57666         through a call to isnanl.
57667         * lib/tanl.c: Include isnanl.h.
57668         (tanl): Perform test for NaN at the beginning of the function and
57669         through a call to isnanl.
57670         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
57671         * modules/mathl (Depends-on): Add isnanl.
57672
57673 2007-03-26  Eric Blake  <ebb9@byu.net>
57674
57675         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
57676         regression in logic sense of previous patch.
57677
57678 2007-03-26  Bruno Haible  <bruno@clisp.org>
57679
57680         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
57681         unportable shell command "if ! ...".
57682         Reported by Ralf Wildenhues.
57683
57684 2007-03-25  Bruno Haible  <bruno@clisp.org>
57685
57686         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
57687         <sysexits.h> file, and only add EX_CONFIG.
57688         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
57689         absolute file name and whether it is sufficient. Substitute also
57690         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
57691         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
57692         ABSOLUTE_SYSEXITS_H into sysexits.h.
57693
57694 2007-03-25  Bruno Haible  <bruno@clisp.org>
57695
57696         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
57697         hints is NULL.
57698
57699 2007-03-25  Bruno Haible  <bruno@clisp.org>
57700
57701         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
57702         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
57703
57704 2007-03-25  Bruno Haible  <bruno@clisp.org>
57705
57706         * lib/vasnprintf.c: Include langinfo.h.
57707         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
57708         multithread-safe.
57709         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
57710         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
57711         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57712         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57713         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57714         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57715         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57716         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
57717         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57718         Reported by Simon Josefsson.
57719
57720 2007-03-25  Bruno Haible  <bruno@clisp.org>
57721
57722         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
57723         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
57724         * modules/vasnprintf (Depends-on): Add stdint.
57725
57726 2007-03-25  Bruno Haible  <bruno@clisp.org>
57727
57728         * modules/fpieee: New file.
57729         * m4/fpieee.m4: New file.
57730         * modules/isnan-nolibm (Depends-on): Add fpieee.
57731         * modules/isnanl-nolibm (Depends-on): Add fpieee.
57732         * modules/isnanl (Depends-on): Add fpieee.
57733
57734 2007-03-25  Bruno Haible  <bruno@clisp.org>
57735
57736         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
57737
57738 2007-03-25  Bruno Haible  <bruno@clisp.org>
57739
57740         Avoid test failures on IRIX 6.5.
57741         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
57742         (main): Use it.
57743         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
57744         macros.
57745         (main): Use them.
57746
57747 2007-03-25  Bruno Haible  <bruno@clisp.org>
57748
57749         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
57750         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
57751         exists but doesn't work.
57752         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
57753         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
57754         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
57755         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
57756         math.h.
57757
57758 2007-03-25  Bruno Haible  <bruno@clisp.org>
57759
57760         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
57761         returns inf. Needed on IRIX 6.5.
57762
57763 2007-03-25  Bruno Haible  <bruno@clisp.org>
57764
57765         * tests/test-frexpl.c: Include isnanl-nolibm.h.
57766         (main): Use isnanl instead of x != x idiom.
57767         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
57768
57769         * tests/test-frexp.c: Include isnan.h.
57770         (main): Use isnan instead of x != x idiom.
57771         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
57772
57773 2007-03-25  Bruno Haible  <bruno@clisp.org>
57774
57775         * tests/test-frexp.c (NaN): New function/macro.
57776         (main): Use it instead of 0.0 / 0.0.
57777         * tests/test-isnan.c (NaN): New function/macro.
57778         (main): Use it instead of 0.0 / 0.0.
57779         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
57780         (test_function): Use it instead of 0.0 / 0.0.
57781         * tests/test-vasprintf-posix.c (NaN): New function/macro.
57782         (test_function): Use it instead of 0.0 / 0.0.
57783         * tests/test-snprintf-posix.h (NaN): New function/macro.
57784         (test_function): Use it instead of 0.0 / 0.0.
57785         * tests/test-sprintf-posix.h (NaN): New function/macro.
57786         (test_function): Use it instead of 0.0 / 0.0.
57787         * tests/test-fprintf-posix.h (NaN): New function/macro.
57788         (test_function): Use it instead of 0.0 / 0.0.
57789         * tests/test-printf-posix.h (NaN): New function/macro.
57790         (test_function): Use it instead of 0.0 / 0.0.
57791
57792         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
57793
57794 2007-03-25  Bruno Haible  <bruno@clisp.org>
57795
57796         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
57797
57798 2007-03-25  Bruno Haible  <bruno@clisp.org>
57799
57800         * lib/regexec.c (merge_state_with_log): Make static.
57801
57802 2007-03-25  Bruno Haible  <bruno@clisp.org>
57803
57804         * lib/trigl.c (kernel_rem_pio2): Make static.
57805
57806 2007-03-25  Bruno Haible  <bruno@clisp.org>
57807
57808         * lib/sincosl.c (sincosl_table): Make static.
57809
57810 2007-03-25  Bruno Haible  <bruno@clisp.org>
57811
57812         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
57813         if the compiler does not support C99.
57814
57815 2007-03-25  Bruno Haible  <bruno@clisp.org>
57816
57817         * modules/time (Makefile.am): Ensure all rule action lines start with a
57818         tab.
57819
57820 2007-03-24  Bruno Haible  <bruno@clisp.org>
57821
57822         * modules/tsearch-tests: New file.
57823         * tests/test-tsearch.sh: New file.
57824         * tests/test-tsearch.c: New file, mostly copied from glibc.
57825
57826         * modules/search-tests: New file.
57827         * tests/test-search.c: New file.
57828
57829         * modules/search: New file.
57830         * lib/search_.h: New file, incorporating lib/tsearch.h.
57831         * m4/search_h.m4: New file.
57832         * lib/tsearch.h: Remove file.
57833         * lib/tsearch.c: Include search.h instead of tsearch.h.
57834         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
57835         HAVE_TSEARCH.
57836         * modules/tsearch (Files): Remove lib/tsearch.h.
57837         (Depends-on): Add search.
57838         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
57839         (Include): Change tsearch.h into search.h.
57840
57841 2007-03-24  Bruno Haible  <bruno@clisp.org>
57842
57843         * modules/fpucw: New file.
57844         * lib/fpucw.h: New file.
57845         * lib/frexp.c: Include fpucw.h.
57846         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57847         (FUNC): Use them.
57848         * lib/printf-frexp.c: Include fpucw.h.
57849         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57850         (FUNC): Use them.
57851         * lib/vasnprintf.c: Include fpucw.h.
57852         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
57853         'long double' calculations.
57854         * tests/test-frexpl.c: Include fpucw.h.
57855         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57856         * tests/test-printf-frexpl.c: Include fpucw.h.
57857         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57858         * modules/frexpl (Depends-on): Add fpucw.
57859         * modules/printf-frexpl (Depends-on): Likewise.
57860         * modules/fprintf-posix (Depends-on): Likewise.
57861         * modules/snprintf-posix (Depends-on): Likewise.
57862         * modules/sprintf-posix (Depends-on): Likewise.
57863         * modules/vasnprintf-posix (Depends-on): Likewise.
57864         * modules/vasprintf-posix (Depends-on): Likewise.
57865         * modules/vfprintf-posix (Depends-on): Likewise.
57866         * modules/vsnprintf-posix (Depends-on): Likewise.
57867         * modules/vsprintf-posix (Depends-on): Likewise.
57868         * modules/frexpl-tests (Depends-on): Likewise.
57869         * modules/printf-frexpl-tests (Depends-on): Likewise.
57870
57871 2007-03-24  Bruno Haible  <bruno@clisp.org>
57872
57873         * lib/float+.h: New file.
57874         * lib/isnan.c: Include float+.h.
57875         (SIZE): New macro.
57876         (FUNC): Compare only SIZE bytes of the value.
57877         * lib/vasnprintf.c: Include float+.h.
57878         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
57879         SIZEOF_LDBL or SIZEOF_DBL bytes.
57880         * modules/isnan-nolibm (Files): Add lib/float+.h.
57881         * modules/isnanl-nolibm (Files): Add lib/float+.h.
57882         * modules/isnanl (Files): Add lib/float+.h.
57883         * modules/vasnprintf (Files): Add lib/float+.h.
57884
57885 2007-03-24  Bruno Haible  <bruno@clisp.org>
57886
57887         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
57888         include isnanl-nolibm.h.
57889
57890 2007-03-24  Bruno Haible  <bruno@clisp.org>
57891
57892         * tests/test-read-file.c (main): Don't produce spurious output for
57893         expected situations. Make the test fail if it encountered unexpected
57894         results.
57895
57896 2007-03-24  Bruno Haible  <bruno@clisp.org>
57897
57898         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
57899         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
57900
57901 2007-03-24  Bruno Haible  <bruno@clisp.org>
57902
57903         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
57904
57905 2007-03-24  Bruno Haible  <bruno@clisp.org>
57906
57907         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
57908         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
57909
57910         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
57911         * modules/utf8-ucs4: Turn into a symbolic link to module
57912         unistr/u8-mbtouc.
57913
57914         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
57915         utf8-ucs4-unsafe.
57916         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
57917         unistr/u8-mbtouc-unsafe.
57918
57919         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
57920         * modules/utf16-ucs4: Turn into a symbolic link to module
57921         unistr/u16-mbtouc.
57922
57923         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
57924         utf16-ucs4-unsafe.
57925         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
57926         unistr/u16-mbtouc-unsafe.
57927
57928         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
57929         * modules/ucs4-utf8: Turn into a symbolic link to module
57930         unistr/u8-ubtomb.
57931
57932         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
57933         * modules/ucs4-utf16: Turn into a symbolic link to module
57934         unistr/u16-ubtomb.
57935
57936 2007-03-24  Bruno Haible  <bruno@clisp.org>
57937
57938         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
57939         Enable the function only if HAVE_INLINE.
57940         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
57941         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
57942         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
57943         Enable the function only if HAVE_INLINE.
57944         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
57945         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
57946         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
57947         Enable the function only if HAVE_INLINE.
57948         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
57949         Enable the function only if HAVE_INLINE.
57950         * modules/utf8-ucs4: Update.
57951         * modules/utf8-ucs4-unsafe: Update.
57952         * modules/utf16-ucs4: Update.
57953         * modules/utf16-ucs4-unsafe: Update.
57954         * modules/ucs4-utf8: Update.
57955         * modules/ucs4-utf16: Update.
57956
57957 2007-03-24  Bruno Haible  <bruno@clisp.org>
57958
57959         * lib/utf8-ucs4.h: Remove file.
57960         * lib/utf8-ucs4-unsafe.h: Remove file.
57961         * lib/utf16-ucs4.h: Remove file.
57962         * lib/utf16-ucs4-unsafe.h: Remove file.
57963         * lib/ucs4-utf8.h: Remove file.
57964         * lib/ucs4-utf16.h: Remove file.
57965         * lib/unistr.h: Include their previous contents.
57966         * m4/utf-ucs4.m4: Remove file.
57967         * m4/ucs4-utf.m4: Remove file.
57968         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
57969         (Depends-on): Add unistr/base.
57970         (configure.ac): Remove gl_UTF_UCS4.
57971         (Makefile.am): Update.
57972         (Include): Change to unistr.h.
57973         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
57974         (Depends-on): Add unistr/base.
57975         (configure.ac): Remove gl_UTF_UCS4.
57976         (Makefile.am): Update.
57977         (Include): Change to unistr.h.
57978         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
57979         (Depends-on): Add unistr/base.
57980         (configure.ac): Remove gl_UTF_UCS4.
57981         (Makefile.am): Update.
57982         (Include): Change to unistr.h.
57983         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
57984         (Depends-on): Add unistr/base.
57985         (configure.ac): Remove gl_UTF_UCS4.
57986         (Makefile.am): Update.
57987         (Include): Change to unistr.h.
57988         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
57989         (Depends-on): Add unistr/base.
57990         (configure.ac): Remove gl_UCS4_UTF.
57991         (Makefile.am): Update.
57992         (Include): Change to unistr.h.
57993         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
57994         (Depends-on): Add unistr/base.
57995         (configure.ac): Remove gl_UCS4_UTF.
57996         (Makefile.am): Update.
57997         (Include): Change to unistr.h.
57998         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
57999         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
58000         utf8-ucs4-unsafe.h.
58001         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
58002         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
58003         utf16-ucs4-unsafe.h.
58004         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
58005         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
58006         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
58007         * lib/unistr/u8-strchr.c: Likewise.
58008         * lib/unistr/u8-strrchr.c: Likewise.
58009         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
58010         * lib/unistr/u16-strchr.c: Likewise.
58011         * lib/unistr/u16-strrchr.c: Likewise.
58012         * lib/striconveh.c: Update.
58013         * lib/linebreak.c: Update.
58014
58015 2007-03-24  Bruno Haible  <bruno@clisp.org>
58016
58017         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
58018         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
58019
58020 2007-03-22  Bruno Haible  <bruno@clisp.org>
58021
58022         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
58023
58024 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
58025
58026         * MODULES.html.sh (File system functions): New module write-any-file.
58027         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
58028         * m4/write-any-file.m4: New files.
58029
58030 2007-03-23  Eric Blake  <ebb9@byu.net>
58031
58032         * gnulib-tool: Rearrange space-tab sequences, since some editors
58033         like to eat them.
58034
58035 2007-03-23  Eric Blake  <ebb9@byu.net>
58036
58037         * lib/version-etc.c (version_etc_va): Update license wording to
58038         be more concise.  Recommended by Richard Stallman.
58039
58040 2007-03-22  Bruno Haible  <bruno@clisp.org>
58041
58042         * lib/poll.c (MSG_PEEK): New fallback definition.
58043
58044 2007-03-22  Bruno Haible  <bruno@clisp.org>
58045
58046         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
58047         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
58048         (main): Update.
58049         Fixes a compilation error on BeOS.
58050
58051 2007-03-22  Bruno Haible  <bruno@clisp.org>
58052
58053         * modules/frexpl-tests: New file.
58054         * tests/test-frexpl.c: New file.
58055
58056         * modules/frexpl: New file.
58057         * m4/frexpl.m4: New file.
58058         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
58059         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
58060         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
58061         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
58062         (Depends-on): Add frexpl. Remove isnanl-nolibm.
58063         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
58064
58065 2007-03-22  Bruno Haible  <bruno@clisp.org>
58066
58067         * lib/frexpl.c: Share code with lib/frexp.c.
58068         * modules/mathl (Files): Add lib/frexp.c.
58069         (Depends-on): Add isnanl-nolibm.
58070
58071 2007-03-22  Bruno Haible  <bruno@clisp.org>
58072
58073         * modules/printf-frexp (Files): Add m4/frexp.m4.
58074         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
58075         only if the found frexp function actually works.
58076
58077 2007-03-22  Bruno Haible  <bruno@clisp.org>
58078
58079         * lib/frexp.c: Remove older implementation that uses divisions.
58080
58081 2007-03-21  Bruno Haible  <bruno@clisp.org>
58082
58083         * modules/frexp-tests: New file.
58084         * tests/test-frexp.c: New file.
58085
58086         * modules/frexp: New file.
58087         * lib/frexp.c: New file.
58088         * m4/frexp.m4: New file.
58089         * lib/math_.h (frexp): New declaration.
58090         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
58091         REPLACE_FREXP.
58092         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
58093
58094 2007-03-21  Bruno Haible  <bruno@clisp.org>
58095
58096         * modules/isnanl-tests: New file.
58097         * tests/test-isnanl.c: New file.
58098
58099         * modules/isnanl: New file.
58100         * lib/isnanl.h: New file.
58101         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
58102         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
58103         gl_FUNC_ISNANL_WORKS.
58104         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
58105         New macros.
58106
58107 2007-03-21  Bruno Haible  <bruno@clisp.org>
58108
58109         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
58110         lib/isnanl.h.
58111         (Include): Update.
58112         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
58113         * lib/vasnprintf.c: Update.
58114         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
58115         tests/test-isnanl.h, remove tests/test-isnanl.c.
58116         (Makefile.am): Update.
58117         * tests/test-isnanl-nolibm.c: New file.
58118         * tests/test-isnanl.h: New file.
58119         * tests/test-isnanl.c: Remove file.
58120
58121 2007-03-21  Jim Meyering  <jim@meyering.net>
58122
58123         When trying to open ".", treat ESTALE like EACCES.
58124         * lib/savewd.c (savewd_save): Resort to forking not just upon
58125         failure with EACCES, but also when errno is ESTALE.
58126
58127 2007-03-20  Bruno Haible  <bruno@clisp.org>
58128
58129         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
58130         Needed on AIX 5.1. Reported by Matthew Woehlke.
58131
58132 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58133
58134         Suggestions by Bruno Haible:
58135         * lib/acl-internal.h: Include "gettext.h" rather than rolling
58136         our own.
58137         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
58138         * modules/acl (Depends-on): Add gettext.
58139
58140 2007-03-19  Bruno Haible  <bruno@clisp.org>
58141
58142         * modules/iconvme: Remove file.
58143         * lib/iconvme.h: Remove file.
58144         * lib/iconvme.c: Remove file.
58145         * m4/iconvme.m4: Remove file.
58146
58147 2007-03-19  Bruno Haible  <bruno@clisp.org>
58148
58149         * doc/relocatable-maint.texi: Break long shell script line.
58150         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
58151
58152 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58153
58154         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
58155         handle file_has_acl.
58156         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
58157         * lib/acl.c: Move header inclusions and related macro defns into
58158         lib/acl-internal.h.
58159         (S_ISLNK): Remove defn, since that's now done for us.
58160         (file_has_acl): Move to lib/file-has-acl.c.
58161         Call acl_trivial if available.  This is the crucial part of the fix.
58162         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
58163         shared within the library.  Rewrite a bit, partly to make it compatible
58164         with the GNU coding style.
58165         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
58166         Remove unnecessary double-quotes.
58167         Don't test for acl_to_text; the build will catch that.
58168         Replace acl_entries if it doesn't exist and it is needed.
58169         Check for -lsec and acl_trivial (as used on Solaris 10).
58170         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
58171         lib/file-has-acl.c.
58172         (Depends-on): Add sys_stat, for S_ISLNK.
58173
58174 2007-03-19  Ben Pfaff  <blp@gnu.org>
58175
58176         * doc/gnulib.texi: Fix typos.
58177         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
58178
58179 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58180
58181         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
58182         If size is zero here, buf must be zero.
58183
58184 2007-03-19  Simon Josefsson  <simon@josefsson.org>
58185
58186         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
58187         <bruno@clisp.org>.
58188
58189 2007-03-18  Bruno Haible  <bruno@clisp.org>
58190
58191         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
58192         Suggested by Eric Blake.
58193
58194 2007-03-18  Ben Pfaff  <blp@gnu.org>
58195
58196         * doc/relocatable.texi: Recommend using as prefix a directory
58197         that does not exist and will never be created.  Based on
58198         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
58199         and others.
58200
58201 2007-03-17  Bruno Haible  <bruno@clisp.org>
58202
58203         * lib/fchownat.c: Include lchown.h.
58204
58205 2007-03-17  Bruno Haible  <bruno@clisp.org>
58206
58207         Fix endless loop when the given allocated size was > INT_MAX.
58208         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
58209         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
58210         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
58211         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
58212         * lib/sprintf.c (sprintf): Likewise.
58213
58214 2007-03-17  Bruno Haible  <bruno@clisp.org>
58215
58216         * tests/test-argp-2.sh (func_compare): Output a context diff.
58217
58218 2007-03-17  Bruno Haible  <bruno@clisp.org>
58219
58220         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
58221         locale's decimal-point character.
58222
58223 2007-03-17  Bruno Haible  <bruno@clisp.org>
58224
58225         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
58226         before comparing it. Needed because on some platforms (e.g. x86) a
58227         'long double' occupies less bytes than sizeof (long double).
58228
58229 2007-03-17  Bruno Haible  <bruno@clisp.org>
58230
58231         * tests/test-crc.c (main): Make printf statements 64-bit clean.
58232         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
58233         * tests/test-getaddrinfo.c (simple): Likewise.
58234         * tests/test-read-file.c (main): Likewise.
58235
58236 2007-03-17  Bruno Haible  <bruno@clisp.org>
58237
58238         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
58239
58240 2007-03-17  Bruno Haible  <bruno@clisp.org>
58241
58242         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
58243         unused variable.
58244
58245 2007-03-17  Bruno Haible  <bruno@clisp.org>
58246
58247         * tests/test-c-strcasecmp.c: Include c-strcase.h.
58248         * tests/test-c-strncasecmp.c: Likewise.
58249
58250 2007-03-17  Bruno Haible  <bruno@clisp.org>
58251
58252         * modules/stdlib (Depends-on): Add unistd.
58253         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
58254         Needed for MacOS X 10.3.
58255
58256 2007-03-17  Bruno Haible  <bruno@clisp.org>
58257
58258         * lib/unistr/u-strdup.h: Include <stdlib.h>.
58259
58260 2007-03-17  Bruno Haible  <bruno@clisp.org>
58261
58262         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
58263
58264 2007-03-17  Bruno Haible  <bruno@clisp.org>
58265
58266         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
58267         to reflect files copied from gnulib (with or without modifications).
58268         Suggested by Jim Meyering.
58269
58270 2007-03-17  Eric Blake  <ebb9@byu.net>
58271
58272         * NEWS: Document stdlib change from 2007-02-18.
58273
58274 2007-03-17  Jim Meyering  <jim@meyering.net>
58275
58276         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
58277         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
58278         someone uses a name containing shell meta-characters.
58279         Reported by Alfred M. Szmidt.
58280
58281         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
58282
58283 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
58284
58285         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
58286         and copy gettext configuration files only if configure.ac contains
58287         a use of AM_GNU_GETTEXT_VERSION.
58288
58289 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
58290
58291         * build-aux/bootstrap (gnulib_name): New variable.
58292         (gnulib_tool_options): Use it.
58293
58294 2007-03-13  Simon Josefsson  <simon@josefsson.org>
58295
58296         * tests/test-des.c: Use new namespace.
58297
58298 2007-03-15  Bruno Haible  <bruno@clisp.org>
58299
58300         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
58301         Reported by James Youngman <jay@gnu.org>.
58302
58303 2007-03-15  Bruno Haible  <bruno@clisp.org>
58304
58305         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
58306         declared prototype. Needed with cc on OSF/1 5.1.
58307
58308 2007-03-15  Bruno Haible  <bruno@clisp.org>
58309
58310         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
58311         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
58312         (struct gl_list_implementation): Add dispose_fn argument to the
58313         'create_empty', 'create' methods.
58314         (struct gl_list_impl_base): Add field 'dispose_fn'.
58315         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
58316         argument.
58317         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
58318         dispose_fn argument.
58319         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
58320         dispose_fn on the dropped values.
58321         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
58322         dispose_fn argument.
58323         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
58324         dropped values.
58325         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
58326         (gl_tree_remove_node): Call dispose_fn on the dropped value.
58327         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
58328         (gl_tree_remove_node): Call dispose_fn on the dropped value.
58329         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
58330         argument.
58331         (gl_tree_list_free): Call dispose_fn on the dropped values.
58332         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
58333         the dropped values.
58334         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
58335         Add dispose_fn argument.
58336         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
58337         Call dispose_fn on the dropped values.
58338         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
58339         Add dispose_fn argument.
58340         (gl_sublist_create): Initialize the 'dispose_fn' field.
58341         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
58342         * tests/test-array_list.c (main): Update.
58343         * tests/test-carray_list.c (main): Update.
58344         * tests/test-avltree_list.c (main): Update.
58345         * tests/test-rbtree_list.c (main): Update.
58346         * tests/test-avltreehash_list.c (main): Update.
58347         * tests/test-rbtreehash_list.c (main): Update.
58348         * tests/test-linked_list.c (main): Update.
58349         * tests/test-linkedhash_list.c (main): Update.
58350         * tests/test-array_oset.c (main): Update.
58351
58352 2007-03-15  Bruno Haible  <bruno@clisp.org>
58353
58354         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
58355         (gl_oset_create_empty): Add dispose_fn argument.
58356         (struct gl_oset_implementation): Add dispose_fn argument to
58357         'create_empty' method.
58358         (struct gl_oset_impl_base): Add dispose_fn field.
58359         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
58360         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
58361         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
58362         values.
58363         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
58364         (gl_tree_oset_free): Call dispose_fn on the dropped values.
58365         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
58366         dropped value.
58367         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
58368         dropped value.
58369         * tests/test-array_oset.c (main): Update.
58370         * tests/test-avltree_oset.c (main): Update.
58371         * tests/test-rbtree_oset.c (main): Update.
58372         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
58373
58374 2007-03-13  Bruno Haible  <bruno@clisp.org>
58375
58376         * tests/test-stdbool.c (i): Update after last patch.
58377
58378 2007-03-12  Bruno Haible  <bruno@clisp.org>
58379
58380         * lib/quotearg.c: Include <wctype.h> early, before the definition of
58381         the iswprint macro. Needed on Solaris 2.5.1.
58382
58383 2007-03-12  Bruno Haible  <bruno@clisp.org>
58384
58385         * tests/test-printf-frexp.c (main): Declare x as volatile.
58386
58387 2007-03-12  Simon Josefsson  <simon@josefsson.org>
58388
58389         * doc/gnulib.texi (Build robot for gnulib): New section.
58390
58391 2007-03-12  Jim Meyering  <jim@meyering.net>
58392
58393         * build-aux/bootstrap: New file.
58394         * build-aux/bootstrap.conf: New file, from coreutils.
58395
58396 2007-03-11  Bruno Haible  <bruno@clisp.org>
58397
58398         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
58399
58400 2007-03-12  Simon Josefsson  <simon@josefsson.org>
58401
58402         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
58403         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
58404         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
58405
58406 2007-03-11  Bruno Haible  <bruno@clisp.org>
58407
58408         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
58409         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
58410
58411 2007-03-11  Bruno Haible  <bruno@clisp.org>
58412
58413         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
58414         formula. Needed for SunPRO C 5.0.
58415
58416 2007-03-11  Bruno Haible  <bruno@clisp.org>
58417
58418         * modules/long-options (Depends-on): Add getopt.
58419
58420 2007-03-11  Bruno Haible  <bruno@clisp.org>
58421
58422         * modules/modechange (Depends-on): Add stdbool.
58423
58424 2007-03-11  Bruno Haible  <bruno@clisp.org>
58425
58426         * modules/i-ring (Depends-on): Add stdbool.
58427
58428 2007-03-11  Bruno Haible  <bruno@clisp.org>
58429
58430         * modules/gc-des (Depends-on): Add stdbool.
58431
58432 2007-03-11  Bruno Haible  <bruno@clisp.org>
58433
58434         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
58435
58436 2007-03-11  Bruno Haible  <bruno@clisp.org>
58437
58438         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
58439
58440 2007-03-11  Bruno Haible  <bruno@clisp.org>
58441
58442         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
58443
58444 2007-03-11  Bruno Haible  <bruno@clisp.org>
58445
58446         * lib/vasnprintf.c (sprintf): Undefine.
58447
58448 2007-03-11  Bruno Haible  <bruno@clisp.org>
58449
58450         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
58451         initializers in SunPRO C and Compaq C compilers.
58452
58453 2007-03-11  Bruno Haible  <bruno@clisp.org>
58454
58455         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
58456         decrementing code ANSI C compliant.
58457
58458 2007-03-11  Bruno Haible  <bruno@clisp.org>
58459
58460         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
58461         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
58462
58463 2007-03-11  Bruno Haible  <bruno@clisp.org>
58464
58465         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
58466         <stdbool.h> substitute doesn't pass.
58467
58468 2007-03-11  Bruno Haible  <bruno@clisp.org>
58469
58470         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
58471
58472 2007-03-11  Bruno Haible  <bruno@clisp.org>
58473
58474         * gnulib-tool (func_create_megatestdir): Create also an autobuild
58475         script, for submission to autobuild.josefsson.org.
58476
58477 2007-03-10  Bruno Haible  <bruno@clisp.org>
58478
58479         * modules/canonicalize-lgpl-tests: New file.
58480         * tests/test-canonicalize-lgpl.sh: New file.
58481         * tests/test-canonicalize-lgpl.c: New file.
58482
58483         * modules/c-strcase-tests: New file.
58484         * tests/test-c-strcase.sh: New file.
58485         * tests/test-c-strcasecmp.c: New file.
58486         * tests/test-c-strncasecmp.c: New file.
58487
58488         * modules/atexit-tests: New file.
58489         * tests/test-atexit.sh: New file.
58490         * tests/test-atexit.c: New file.
58491
58492 2007-03-10  Bruno Haible  <bruno@clisp.org>
58493
58494         * tests/test-binary-io.sh: Use temporary filenames that are not so
58495         likely to clash with those of other tests (in a parallel make).
58496         * tests/test-binary-io.c: Likewise.
58497
58498 2007-03-10  Bruno Haible  <bruno@clisp.org>
58499
58500         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
58501         fallback; use #error instead.
58502         Suggested by Simon Josefsson.
58503
58504 2007-03-10  Bruno Haible  <bruno@clisp.org>
58505
58506         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
58507         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
58508         first and the last.
58509
58510 2007-03-10  Bruno Haible  <bruno@clisp.org>
58511
58512         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
58513
58514 2007-03-10  Bruno Haible  <bruno@clisp.org>
58515
58516         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
58517         "make distcheck".
58518         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
58519         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
58520         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
58521
58522 2007-03-10  Bruno Haible  <bruno@clisp.org>
58523
58524         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
58525         variable.
58526         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
58527         variable.
58528
58529 2007-03-09  Eric Blake  <ebb9@byu.net>
58530         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
58531
58532         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
58533         types are not being provided by gnulib.
58534         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
58535         types are supported.
58536
58537 2007-03-10  Bruno Haible  <bruno@clisp.org>
58538
58539         * lib/stdio_.h (__attribute__): New macro.
58540         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
58541         vsprintf): Specify __attribute__ __format__ for GCC.
58542         Suggested by Eric Blake.
58543
58544 2007-03-09  Bruno Haible  <bruno@clisp.org>
58545
58546         * modules/printf-posix-tests: New file.
58547         * tests/test-printf-posix.sh: New file.
58548         * tests/test-printf-posix.c: New file.
58549
58550         * modules/printf-posix: New file.
58551         * lib/printf.c: New file.
58552         * m4/printf-posix-rpl.m4: New file.
58553         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
58554         REPLACE_PRINTF.
58555         * lib/stdio_.h (printf): New declaration.
58556         (format, __format__, ____printf____, ____scanf____, ____strftime____,
58557         ____strfmon____): New macros.
58558         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
58559         REPLACE_PRINTF.
58560
58561 2007-03-09  Bruno Haible  <bruno@clisp.org>
58562
58563         * tests/test-vasnprintf-posix2.sh: New file.
58564         * tests/test-vasnprintf-posix2.c: New file.
58565         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
58566         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
58567         (Makefile.am): Activate test-vasnprintf-posix2.sh.
58568
58569         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
58570         a locale dependent decimal point, rather than always '.'.
58571
58572 2007-03-09  Eric Blake  <ebb9@byu.net>
58573
58574         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
58575         spite of platforms like Tandem/NSK that define it to -1.
58576
58577 2007-03-08  Bruno Haible  <bruno@clisp.org>
58578
58579         * modules/vprintf-posix-tests: New file.
58580         * tests/test-vprintf-posix.sh: New file.
58581         * tests/test-vprintf-posix.c: New file.
58582         * tests/test-printf-posix.h: New file.
58583
58584         * modules/vprintf-posix: New file.
58585         * lib/vprintf.c: New file.
58586         * m4/vprintf-posix.m4: New file.
58587         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
58588         REPLACE_VPRINTF.
58589         * lib/stdio_.h (vprintf): New declaration.
58590         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
58591         REPLACE_VPRINTF.
58592
58593 2007-03-08  Bruno Haible  <bruno@clisp.org>
58594
58595         * modules/fprintf-posix-tests: New file.
58596         * tests/test-fprintf-posix.sh: New file.
58597         * tests/test-fprintf-posix.c: New file.
58598
58599         * modules/fprintf-posix: New file.
58600         * lib/fprintf.c: New file.
58601         * m4/fprintf-posix.m4: New file.
58602         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
58603         REPLACE_FPRINTF.
58604         * lib/stdio_.h (fprintf): New declaration.
58605         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
58606         REPLACE_FPRINTF.
58607
58608 2007-03-08  Bruno Haible  <bruno@clisp.org>
58609
58610         * modules/vfprintf-posix-tests: New file.
58611         * tests/test-vfprintf-posix.sh: New file.
58612         * tests/test-vfprintf-posix.c: New file.
58613         * tests/test-fprintf-posix.h: New file.
58614         * tests/test-fprintf-posix.out: New file.
58615
58616         * modules/vfprintf-posix: New file.
58617         * lib/vfprintf.c: New file.
58618         * m4/vfprintf-posix.m4: New file.
58619         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
58620         REPLACE_VFPRINTF.
58621         * lib/stdio_.h (vfprintf): New declaration.
58622         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
58623         REPLACE_VFPRINTF.
58624
58625 2007-03-08  Bruno Haible  <bruno@clisp.org>
58626
58627         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
58628
58629 2007-03-08  Bruno Haible  <bruno@clisp.org>
58630
58631         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
58632         instead of 'expr' invocations.
58633         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
58634         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
58635         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
58636         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58637         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
58638         Suggested by Paul Eggert.
58639
58640 2007-03-08  Bruno Haible  <bruno@clisp.org>
58641
58642         * modules/fseterr-tests: New file.
58643         * tests/test-fseterr.c: New file.
58644
58645         * modules/fseterr: New file.
58646         * lib/fseterr.h: New file.
58647         * lib/fseterr.c: New file.
58648
58649 2007-03-08  Bruno Haible  <bruno@clisp.org>
58650
58651         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
58652         * lib/getopt_.h: Likewise.
58653         * lib/mbswidth.h: Likewise.
58654         * lib/setenv.h: Likewise.
58655         * lib/vasnprintf.h: Likewise.
58656         * lib/vasprintf.h: Likewise.
58657         * lib/verror.h: Likewise.
58658         * lib/xsetenv.h: Likewise.
58659         * lib/xvasprintf.h: Likewise.
58660
58661 2007-03-08  Jim Meyering  <jim@meyering.net>
58662
58663         * users.txt: Add parted.
58664
58665         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
58666
58667 2007-03-07  Bruno Haible  <bruno@clisp.org>
58668
58669         * m4/printf.m4: Make the shell script snippets copy&pastable.
58670
58671 2007-03-02  Bruno Haible  <bruno@clisp.org>
58672
58673         * lib/netinet_in_.h: New file.
58674         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
58675         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
58676         * modules/netinet_in (Files): Add lib/netinet_in_.h.
58677         (Depends-on): Add absolute-header.
58678         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
58679         into netinet/in.h.
58680
58681 2007-03-03  Bruno Haible  <bruno@clisp.org>
58682
58683         * lib/sys_select_.h: New file.
58684         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
58685         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
58686         * modules/sys_select (Files): Add lib/sys_select_.h.
58687         (Depends-on): Add absolute-header.
58688         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
58689         into sys/select.h.
58690
58691 2007-03-02  Bruno Haible  <bruno@clisp.org>
58692
58693         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
58694         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
58695         values.
58696         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
58697         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
58698         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
58699         * modules/sys_socket (Depends-on): Add absolute-header.
58700         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
58701         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
58702         (Include): Remove requirement of inclusion of <sys/types.h>.
58703
58704 2007-03-02  Bruno Haible  <bruno@clisp.org>
58705
58706         * lib/byteswap_.h (bswap_32): Fix formula.
58707
58708 2007-03-06  Bruno Haible  <bruno@clisp.org>
58709
58710         * modules/sprintf-posix-tests: New file.
58711         * tests/test-sprintf-posix.c: New file.
58712
58713         * modules/sprintf-posix: New file.
58714         * lib/sprintf.c: New file.
58715         * m4/sprintf-posix.m4: New file.
58716         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
58717         REPLACE_SPRINTF.
58718         * lib/stdio_.h (sprintf): New declaration.
58719         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
58720         REPLACE_SPRINTF.
58721
58722 2007-03-06  Bruno Haible  <bruno@clisp.org>
58723
58724         * modules/vsprintf-posix-tests: New file.
58725         * tests/test-vsprintf-posix.c: New file.
58726         * tests/test-sprintf-posix.h: New file.
58727
58728         * modules/vsprintf-posix: New file.
58729         * lib/vsprintf.c: New file.
58730         * m4/vsprintf-posix.m4: New file.
58731         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
58732         REPLACE_VSPRINTF.
58733         * lib/stdio_.h (vsprintf): New declaration.
58734         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
58735         REPLACE_VSPRINTF.
58736
58737 2007-03-06  Bruno Haible  <bruno@clisp.org>
58738
58739         * modules/vsnprintf (Depend-on): Remove minmax.
58740
58741 2007-03-06  Bruno Haible  <bruno@clisp.org>
58742
58743         * modules/snprintf-posix-tests: New file.
58744         * tests/test-snprintf-posix.c: New file.
58745
58746         * modules/snprintf-posix: New file.
58747         * m4/snprintf-posix.m4: New file.
58748         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
58749         gl_FUNC_SNPRINTF.
58750         (gl_FUNC_SNPRINTF): Invoke it.
58751         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
58752         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
58753         is set.
58754         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
58755
58756 2007-03-06  Bruno Haible  <bruno@clisp.org>
58757
58758         * modules/vsnprintf-posix-tests: New file.
58759         * tests/test-vsnprintf-posix.c: New file.
58760         * tests/test-snprintf-posix.h: New file.
58761
58762         * modules/vsnprintf-posix: New file.
58763         * m4/vsnprintf-posix.m4: New file.
58764         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
58765         gl_FUNC_VSNPRINTF.
58766         (gl_FUNC_VSNPRINTF): Invoke it.
58767         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
58768         * lib/stdio_.h (vsnprintf): Define as a replacement if
58769         REPLACE_VSNPRINTF is set.
58770         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
58771
58772 2007-03-06  Bruno Haible  <bruno@clisp.org>
58773
58774         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
58775         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
58776
58777 2007-03-06  Bruno Haible  <bruno@clisp.org>
58778
58779         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
58780         (asinl): Declare also if HAVE_DECL_ASINL is set.
58781         (atanl): Declare also if HAVE_DECL_ATANL is set.
58782         (ceill): Declare also if HAVE_DECL_CEILL is set.
58783         (cosl): Declare also if HAVE_DECL_COSL is set.
58784         (expl): Declare also if HAVE_DECL_EXPL is set.
58785         (floorl): Declare also if HAVE_DECL_FLOORL is set.
58786         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
58787         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
58788         (logl): Declare also if HAVE_DECL_LOGL is set.
58789         (sinl): Declare also if HAVE_DECL_SINL is set.
58790         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
58791         (tanl): Declare also if HAVE_DECL_TANL is set.
58792         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
58793         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
58794         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
58795         declaration of frexpl, ldexpl.
58796         * modules/printf-frexpl (Depends-on): Add math.
58797         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
58798
58799 2007-03-05  Bruno Haible  <bruno@clisp.org>
58800
58801         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
58802         frexpl and ldexpl are declared.
58803         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
58804
58805 2007-03-05  Bruno Haible  <bruno@clisp.org>
58806
58807         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
58808         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
58809
58810 2007-03-05  Bruno Haible  <bruno@clisp.org>
58811
58812         * lib/stdio_.h: Include <stddef.h>.
58813
58814 2007-03-05  Bruno Haible  <bruno@clisp.org>
58815
58816         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
58817
58818 2007-03-05  Bruno Haible  <bruno@clisp.org>
58819
58820         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
58821         NetBSD 4, from Ralf Wildenhues.
58822
58823 2007-03-04  Bruno Haible  <bruno@clisp.org>
58824
58825         * lib/vasprintf.h: Update #if logic for the case when the functions
58826         exist but are overridden.
58827
58828 2007-03-04  Bruno Haible  <bruno@clisp.org>
58829
58830         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
58831         implementations: glibc-2.4 and MacOS X 10.3.
58832         * tests/test-vasnprintf-posix.c (test_function): Test also the case
58833         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
58834         * tests/test-vasprintf-posix.c (test_function): Likewise.
58835
58836 2007-03-04  Bruno Haible  <bruno@clisp.org>
58837
58838         * modules/vasprintf-posix-tests: New file.
58839         * tests/test-vasprintf-posix.c: New file.
58840
58841         * modules/vasprintf-posix: New file.
58842         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
58843         defined.
58844         * m4/vasprintf-posix.m4: New file.
58845         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
58846         gl_FUNC_VASPRINTF.
58847         (gl_FUNC_VASPRINTF): Invoke it.
58848         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
58849         here.
58850         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
58851
58852 2007-03-04  Bruno Haible  <bruno@clisp.org>
58853
58854         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
58855         REPLACE_GETTIMEOFDAY.
58856         * modules/sys_time (Makefile.am): Likewise.
58857         * m4/sys_time_h.m4: Likewise.
58858         * m4/gettimeofday.m4: Likewise.
58859
58860 2007-03-04  Bruno Haible  <bruno@clisp.org>
58861
58862         * modules/vasnprintf-posix-tests: New file.
58863         * tests/test-vasnprintf-posix.c: New file.
58864
58865         * modules/vasnprintf-posix: New file.
58866         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
58867         printf-frexpl.h.
58868         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
58869         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
58870         REPLACE_VASNPRINTF is defined.
58871         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
58872         gl_FUNC_VASNPRINTF.
58873         (gl_FUNC_VASNPRINTF): Invoke it.
58874         * m4/vasnprintf-posix.m4: New file.
58875         * m4/printf.m4: New file.
58876
58877 2007-03-04  Bruno Haible  <bruno@clisp.org>
58878
58879         Compile progreloc.c only if --enable-relocatable is specified.
58880         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
58881         if --enable-relocatable was specified.
58882         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
58883         lib_SOURCES.
58884
58885 2007-03-04  Jim Meyering  <jim@meyering.net>
58886
58887         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
58888         Use it consistently, rather than enumerating errno constants.
58889
58890 2007-03-04  Bruno Haible  <bruno@clisp.org>
58891
58892         * modules/xvasprintf-tests: New file.
58893         * tests/test-xvasprintf.c: New file.
58894
58895         * modules/vasprintf-tests: New file.
58896         * tests/test-vasprintf.c: New file.
58897
58898         * modules/vasnprintf-tests: New file.
58899         * tests/test-vasnprintf.c: New file.
58900
58901         * modules/vsnprintf-tests: New file.
58902         * tests/test-vsnprintf.c: New file.
58903
58904         * modules/snprintf-tests: New file.
58905         * tests/test-snprintf.c: New file.
58906
58907 2007-03-04  Bruno Haible  <bruno@clisp.org>
58908
58909         Compile relocatable.c only if --enable-relocatable is specified.
58910         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
58911         gl_RELOCATABLE_LIBRARY.
58912         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
58913         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
58914         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
58915         gl_RELOCATABLE_LIBRARY.
58916         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
58917         (Makefile.am): Remove lib_SOURCES.
58918         * modules/relocatable-lib-lgpl (configure.ac): Invoke
58919         gl_RELOCATABLE_LIBRARY.
58920         (Makefile.am): Remove lib_SOURCES.
58921         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
58922         always.
58923         * modules/relocatable-prog-wrapper (configure.ac): Invoke
58924         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
58925
58926 2007-03-04  Bruno Haible  <bruno@clisp.org>
58927
58928         * modules/argmatch-tests: New file.
58929         * tests/test-argmatch.c: New file.
58930
58931         * tests/test-allocsa.c (main): Halve the number of loop runs.
58932
58933         * modules/alloca-opt-tests: New file.
58934         * tests/test-alloca-opt.c: New file.
58935
58936 2007-03-04  Jim Meyering  <jim@meyering.net>
58937
58938         Work around difference between Linux ACLs and Solaris 10 ZFS.
58939         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
58940         for EINVAL.
58941
58942 2007-03-03  Bruno Haible  <bruno@clisp.org>
58943
58944         * modules/relocatable-prog (Depends-on): Add back progreloc's
58945         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
58946
58947 2007-03-03  Bruno Haible  <bruno@clisp.org>
58948
58949         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
58950         * modules/relocatable-lib: New file.
58951
58952 2007-03-03  Bruno Haible  <bruno@clisp.org>
58953
58954         * modules/relocatable-prog: Renamed from modules/relocatable.
58955         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
58956
58957 2007-03-03  Bruno Haible  <bruno@clisp.org>
58958
58959         * modules/relocatable-script (Files): Add doc/relocatable.texi,
58960         m4/relocatable-lib.m4.
58961         (Depends-on): Remove 'relocatable'.
58962         (configure.ac): Add gl_RELOCATABLE_NOP.
58963
58964 2007-03-03  Bruno Haible  <bruno@clisp.org>
58965
58966         * modules/relocatable-prog-wrapper: New file.
58967         * modules/relocatable (Depends-on): Add it. Remove all other
58968         dependencies except progname.
58969         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
58970
58971         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
58972         (gl_FUNC_STRERROR): Nop.
58973         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
58974
58975         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
58976         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
58977
58978         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
58979         (gl_FUNC_READLINK): Update.
58980
58981         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
58982
58983 2007-03-03  Bruno Haible  <bruno@clisp.org>
58984
58985         * lib/xreadlink.c: Include <unistd.h> unconditionally.
58986         * modules/xreadlink (Depends-on): Add unistd.
58987         * modules/xreadlink-with-size (Depends-on): Likewise.
58988
58989 2007-03-03  Bruno Haible  <bruno@clisp.org>
58990
58991         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
58992         extracted from gt_FUNC_SETENV.
58993         (gt_FUNC_SETENV): Remove macro.
58994         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
58995         remove gt_FUNC_SETENV.
58996
58997 2007-03-03  Bruno Haible  <bruno@clisp.org>
58998
58999         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
59000         ENABLE_RELOCATABLE here.
59001         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
59002
59003 2007-03-03  Bruno Haible  <bruno@clisp.org>
59004
59005         * modules/rbtreehash-list-tests (Depends-on): Add progname.
59006         * tests/test-rbtreehash_list.c: Include progname.h.
59007         (main): Call set_program_name.
59008
59009         * modules/rbtree-oset-tests (Depends-on): Add progname.
59010         * tests/test-rbtree_oset.c: Include progname.h.
59011         (main): Call set_program_name.
59012
59013         * modules/rbtree-list-tests (Depends-on): Add progname.
59014         * tests/test-rbtree_list.c: Include progname.h.
59015         (main): Call set_program_name.
59016
59017         * modules/linked-list-tests (Depends-on): Add progname.
59018         * tests/test-linked_list.c: Include progname.h.
59019         (main): Call set_program_name.
59020
59021 2007-03-03  Bruno Haible  <bruno@clisp.org>
59022
59023         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
59024         All uses of __restrict changed to _Restrict_.
59025         * lib/glob_.h (__restrict): Remove macro.
59026
59027 2007-03-02  Bruno Haible  <bruno@clisp.org>
59028
59029         * modules/gettext (configure.ac): Require gettext infrastructure
59030         from version 0.16.1.
59031
59032 2007-03-02  Bruno Haible  <bruno@clisp.org>
59033
59034         * modules/linkedhash-list-tests (Depends-on): Add progname.
59035         * tests/test-linkedhash_list.c: Include progname.h.
59036         (main): Call set_program_name.
59037
59038         * modules/carray-list-tests (Depends-on): Add progname.
59039         * tests/test-carray_list.c: Include progname.h.
59040         (main): Call set_program_name.
59041
59042         * modules/avltreehash-list-tests (Depends-on): Add progname.
59043         * tests/test-avltreehash_list.c: Include progname.h.
59044         (main): Call set_program_name.
59045
59046         * modules/avltree-oset-tests (Depends-on): Add progname.
59047         * tests/test-avltree_oset.c: Include progname.h.
59048         (main): Call set_program_name.
59049
59050         * modules/avltree-list-tests (Depends-on): Add progname.
59051         * tests/test-avltree_list.c: Include progname.h.
59052         (main): Call set_program_name.
59053
59054         * modules/array-oset-tests (Depends-on): Add progname.
59055         * tests/test-array_oset.c: Include progname.h.
59056         (main): Call set_program_name.
59057
59058         * modules/array-list-tests (Depends-on): Add progname.
59059         * tests/test-array_list.c: Include progname.h.
59060         (main): Call set_program_name.
59061
59062         * modules/argp-tests (Depends-on): Add progname.
59063         * tests/test-argp.c: Include argp.h first. Include progname.h.
59064         (main): Call set_program_name.
59065
59066 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
59067
59068         * doc/gnulib-tool.texi (Initial import): Reword description of
59069         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
59070         limited effect even if defined after the first system include.
59071
59072 2007-03-01  Bruno Haible  <bruno@clisp.org>
59073
59074         * build-aux/config.libpath: Update to libtool-1.5.22.
59075         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59076
59077 2007-03-01  Bruno Haible  <bruno@clisp.org>
59078
59079         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
59080         foo_CFLAGS.
59081         Reported by Ralf Wildenhues.
59082
59083 2007-03-01  Bruno Haible  <bruno@clisp.org>
59084
59085         * build-aux/install-reloc: Remove object files left over by some
59086         compilers.
59087         Reported by Ralf Wildenhues.
59088
59089 2007-03-01  Bruno Haible  <bruno@clisp.org>
59090
59091         * build-aux/install-reloc: Break long lines.
59092
59093 2007-03-01  Bruno Haible  <bruno@clisp.org>
59094
59095         * doc/relocatable.texi: Document that it may not work on OpenBSD.
59096         Reported by Ralf Wildenhues.
59097
59098 2007-03-01  Bruno Haible  <bruno@clisp.org>
59099
59100         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
59101         include ordering constraints.
59102
59103 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
59104
59105         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
59106         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
59107         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
59108         as another example.
59109         * lib/time_.h: Fix misspelling.
59110         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
59111         Require gl_HEADER_TIME_H_DEFAULTS.
59112         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
59113         * m4/time_r.m4 (gl_TIME_R): Likewise.
59114         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
59115
59116 2007-03-01  Bruno Haible  <bruno@clisp.org>
59117
59118         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
59119         * m4/utimens.m4 (gl_UTIMENS): Likewise.
59120
59121 2007-03-01  Jim Meyering  <jim@meyering.net>
59122
59123         * modules/xreadlink (Maintainer): Add my name.
59124         * modules/xreadlink-with-size (Depends-on): Alphabetize.
59125
59126 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
59127             Bruno Haible  <bruno@clisp.org>
59128
59129         * build-aux/install-reloc: Compile also c-ctype.c.
59130         * build-aux/relocatable.sh.in: New file.
59131         * doc/relocatable.texi: New file.
59132         * doc/relocatable-maint.texi: New file.
59133         * doc/gnulib.texi: Include relocatable-maint.texi.
59134         * lib/progreloc.c: Include unistd.h unconditionally.
59135         * lib/relocwrapper.c: Include unistd.h unconditionally.
59136         Include c-ctype.h.
59137         (add_dotbin): Use c_tolower.
59138         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
59139         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
59140         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
59141         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
59142         to m4/relocatable-lib.m4.
59143         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
59144         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
59145         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
59146         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
59147         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
59148         * modules/relocatable: New file.
59149         * modules/relocatable-lib: New file.
59150         * modules/relocatable-script: New file.
59151
59152 2007-02-28  Bruno Haible  <bruno@clisp.org>
59153
59154         Import --enable-relocatable infrastructure.
59155         * build-aux/config.libpath: New file, from GNU gettext.
59156         * build-aux/install-reloc: New file, from GNU gettext.
59157         * build-aux/reloc-ldflags: New file, from GNU gettext.
59158         * lib/relocatable.h: New file, from GNU gettext.
59159         * lib/relocatable.c: New file, from GNU gettext.
59160         * lib/relocwrapper.c: New file, from GNU gettext.
59161         * m4/relocatable.m4: New file, from GNU gettext.
59162
59163 2007-02-28  Bruno Haible  <bruno@clisp.org>
59164
59165         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
59166
59167         * modules/xreadlink: New file, from GNU gettext with modifications.
59168         * lib/xreadlink.c: New file, from GNU gettext.
59169         * lib/xreadlink.h: Add comments.
59170         (xreadlink): New declaration.
59171
59172         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
59173         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
59174         lib/xreadlink-with-size.c.
59175         (configure.ac): Remove gl_XREADLINK invocation.
59176         (Makefile.am): Augment lib_SOURCES.
59177         * m4/xreadlink.m4: Remove file.
59178         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
59179         (xreadlink_with_size): Renamed from xreadink.
59180         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
59181         * modules/canonicalize (Depends-on): Replace xreadlink with
59182         xreadlink-with-size.
59183         * lib/canonicalize.c (canonicalize_filename_mode): Update.
59184
59185 2007-02-25  Jim Meyering  <jim@meyering.net>
59186
59187         * build-aux/announce-gen: When complaining about excess arguments,
59188         list them.
59189
59190 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
59191
59192         * README: Document signed integer overflow situation more
59193         accurately.
59194
59195 2007-02-25  Bruno Haible  <bruno@clisp.org>
59196
59197         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
59198         'a' or 'A' conversion.
59199
59200 2007-02-25  Bruno Haible  <bruno@clisp.org>
59201
59202         * modules/filename: Renamed from modules/pathname.
59203         (Files): Replace lib/pathname.h with lib/filename.h. Replace
59204         lib/concatpath.c with lib/concat-filename.c.
59205         (Makefile.am): Update.
59206         (Include): Replace pathname.h with filename.h.
59207         * lib/filename.h: Renamed from lib/pathname.h.
59208         (concatenated_filename): Renamed from concatenated_pathname.
59209         * lib/concat-filename.c: Renamed from lib/concatpath.c.
59210         (concatenated_filename): Renamed from concatenated_pathname.
59211         * lib/findprog.c: Include filename.h instead of pathname.h.
59212         (find_in_path): Update.
59213         * lib/javacomp.c: Include filename.h instead of pathname.h.
59214         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
59215         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
59216         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
59217         is_oldgcj_14_13_usable, is_javac_usable): Update.
59218         * lib/javaexec.c: Include filename.h instead of pathname.h.
59219         (execute_java_class): Update.
59220         * modules/findprog: Update.
59221         * modules/javacomp: Update.
59222         * modules/javaexec: Update.
59223         * MODULES.html.sh (File system functions): Add 'filename', remove
59224         'pathname'.
59225
59226 2007-02-25  Bruno Haible  <bruno@clisp.org>
59227
59228         * modules/printf-frexpl-tests: New file.
59229         * tests/test-printf-frexpl.c: New file.
59230
59231         * modules/printf-frexpl: New file.
59232         * lib/printf-frexpl.h: New file.
59233         * lib/printf-frexpl.c: New file.
59234         * m4/printf-frexpl.m4: New file.
59235
59236 2007-02-25  Bruno Haible  <bruno@clisp.org>
59237
59238         * modules/printf-frexp-tests: New file.
59239         * tests/test-printf-frexp.c: New file.
59240
59241         * modules/printf-frexp: New file.
59242         * lib/printf-frexp.h: New file.
59243         * lib/printf-frexp.c: New file.
59244         * m4/printf-frexp.m4: New file.
59245
59246 2007-02-25  Bruno Haible  <bruno@clisp.org>
59247
59248         Assume automake >= 1.10 for the tests.
59249         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
59250         * modules/arctwo-tests: Likewise.
59251         * modules/argp-tests: Likewise.
59252         * modules/avltree-list-tests: Likewise.
59253         * modules/avltree-oset-tests: Likewise.
59254         * modules/avltreehash-list-tests: Likewise.
59255         * modules/carray-list-tests: Likewise.
59256         * modules/crc-tests: Likewise.
59257         * modules/des-tests: Likewise.
59258         * modules/gc-arcfour-tests: Likewise.
59259         * modules/gc-arctwo-tests: Likewise.
59260         * modules/gc-des-tests: Likewise.
59261         * modules/gc-hmac-md5-tests: Likewise.
59262         * modules/gc-hmac-sha1-tests: Likewise.
59263         * modules/gc-md2-tests: Likewise.
59264         * modules/gc-md4-tests: Likewise.
59265         * modules/gc-md5-tests: Likewise.
59266         * modules/gc-pbkdf2-sha1-tests: Likewise.
59267         * modules/gc-rijndael-tests: Likewise.
59268         * modules/gc-sha1-tests: Likewise.
59269         * modules/gc-tests: Likewise.
59270         * modules/getaddrinfo-tests: Likewise.
59271         * modules/hmac-md5-tests: Likewise.
59272         * modules/hmac-sha1-tests: Likewise.
59273         * modules/linked-list-tests: Likewise.
59274         * modules/linkedhash-list-tests: Likewise.
59275         * modules/lock-tests: Likewise.
59276         * modules/md2-tests: Likewise.
59277         * modules/md4-tests: Likewise.
59278         * modules/md5-tests: Likewise.
59279         * modules/rbtree-list-tests: Likewise.
59280         * modules/rbtree-oset-tests: Likewise.
59281         * modules/rbtreehash-list-tests: Likewise.
59282         * modules/read-file-tests: Likewise.
59283         * modules/rijndael-tests: Likewise.
59284         * modules/stdint-tests: Likewise.
59285         * modules/tls-tests: Likewise.
59286
59287 2007-02-24  Bruno Haible  <bruno@clisp.org>
59288
59289         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
59290         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
59291         function; instead check whether isnan with a double argument links.
59292         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
59293         function; instead check whether isnan with a 'long double' argument
59294         links.
59295         Reported by Eric Blake <ebb9@byu.net>.
59296
59297 2007-02-24  Bruno Haible  <bruno@clisp.org>
59298
59299         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
59300         defined.
59301         * lib/isnanl.c: Remove all code. Just include isnan.c.
59302         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
59303
59304 2007-02-25  Jim Meyering  <jim@meyering.net>
59305
59306         Avoid conflicting types for 'unsetenv' on FreeBSD.
59307         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
59308         conflicting with FreeBSD's (5.0 and 6.1) function declaration
59309         in stdlib.h.
59310
59311 2007-02-24  Bruno Haible  <bruno@clisp.org>
59312
59313         * modules/isnanl-nolibm-tests: New file.
59314         * tests/test-isnanl.c: New file.
59315
59316         * modules/isnanl-nolibm: New file.
59317         * lib/isnanl.h: New file.
59318         * lib/isnanl.c: New file.
59319         * m4/isnanl.m4: New file.
59320
59321 2007-02-24  Bruno Haible  <bruno@clisp.org>
59322
59323         * modules/isnan-nolibm-tests: New file.
59324         * tests/test-isnan.c: New file.
59325
59326         * modules/isnan-nolibm: New file.
59327         * lib/isnan.h: New file.
59328         * lib/isnan.c: New file.
59329         * m4/isnan.m4: New file.
59330
59331 2007-02-24  Bruno Haible  <bruno@clisp.org>
59332
59333         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
59334         assume that an exponent fits in 20 bits.
59335
59336 2007-02-24  Jim Meyering  <jim@meyering.net>
59337
59338         * m4/regex.m4: Update the description of the configure-time option,
59339         --without-included-regex, to state accurately what the defaults are,
59340         and perhaps to give people an idea why using this option is risky.
59341
59342 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
59343
59344         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
59345         loops on small arguments.  This attempts to avoid the problem
59346         Bruno Haible reported for AIX 4.3.2 in
59347         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
59348
59349 2007-02-23  Bruno Haible  <bruno@clisp.org>
59350
59351         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
59352         Needed for help2man.
59353
59354 2007-02-23  Karl Berry  <karl@gnu.org>
59355
59356         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
59357         exists, foo.h should be cvs-ignored, not committed.
59358
59359 2007-02-23  Eric Blake  <ebb9@byu.net>
59360
59361         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
59362         * lib/stat-time.h (includes): Likewise.
59363         * lib/utimecmp.c (includes): Likewise.
59364         * lib/utimens.h (includes): Likewise.
59365         * lib/getdate.y (includes): Also include "timespec.h" for use
59366         internal to the module.
59367         * modules/utimens (Depends-on): Revert yesterday's patch.
59368         * modules/nanosleep (Depends-on): Add missing dependency.
59369
59370 2007-02-22  Bruno Haible  <bruno@clisp.org>
59371
59372         * lib/glob.c: Don't include getlogin_r.h.
59373
59374 2007-02-22  Jim Meyering  <jim@meyering.net>
59375
59376         * modules/utimens (Depends-on): Add timespec, required for
59377         utimens.h's inclusion of timespec.h.
59378
59379 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
59380
59381         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
59382         long unreadable paths in GNU/Linux.  Problem reported by Andreas
59383         Schwab in
59384         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
59385         I'll try to think of a better way to fix the Solaris problem.
59386
59387         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
59388         like glibc; on Solaris 10, it fails with errno == EINVAL.
59389         POSIX says the behavior is unspecified if the first argument is NULL,
59390         so play it safe and never pass NULL to the system getcwd.
59391
59392 2007-02-21  Jim Meyering  <jim@meyering.net>
59393
59394         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
59395         of gettimeofday.  It would conflict with the one now always
59396         provided via sys_time_.h.  Reported by Matthew Woehlke, as
59397         an IRIX 6.5 build failure.
59398
59399 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
59400
59401         Minor fixups to port to Solaris 10 with Sun C 5.8.
59402         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
59403         * modules/getcwd (Depends-on): Add dirfd.
59404         * lib/putenv.c (putenv): #undef it.
59405         (rpl_putenv): New decl.
59406         (malloc, free): Include <stdlib.h> rather than prototyping separately.
59407
59408 2007-02-20  Bruno Haible  <bruno@clisp.org>
59409
59410         * modules/stdio-tests: New file.
59411         * tests/test-stdio.c: New file.
59412
59413         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
59414         (Depends-on): Add stdio.
59415         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
59416         (Include): Use <stdio.h> instead of vsnprintf.h.
59417         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
59418         HAVE_DECL_VSNPRINTF.
59419         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
59420
59421         * modules/snprintf (Files): Remove lib/snprintf.h.
59422         (Depends-on): Add stdio.
59423         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
59424         (Include): Use <stdio.h> instead of snprintf.h.
59425         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
59426         HAVE_DECL_SNPRINTF.
59427         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
59428         * lib/getaddrinfo.c: Likewise.
59429
59430         * modules/stdio: New file.
59431         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
59432         * lib/snprintf.h: Remove file.
59433         * lib/vsnprintf.h: Remove file.
59434         * lib/.cppi-disable: Remove snprintf.h.
59435         * m4/stdio_h.m4: New file.
59436         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
59437
59438 2007-02-20  Jim Meyering  <jim@meyering.net>
59439
59440         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
59441         used by e.g., mingw.  From Bruno Haible.
59442
59443 2007-02-19  Bruno Haible  <bruno@clisp.org>
59444
59445         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
59446         warnings.
59447         Reported by Ben Pfaff <blp@cs.stanford.edu>.
59448
59449 2007-02-19  Bruno Haible  <bruno@clisp.org>
59450
59451         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
59452         from mingw users.
59453
59454 2007-02-19  Bruno Haible  <bruno@clisp.org>
59455
59456         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
59457         warnings.
59458         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
59459
59460 2007-02-19  Jim Meyering  <jim@meyering.net>
59461
59462         Don't use FD after a successful "fdopendir (fd)".
59463         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
59464         Reset it by calling dirfd on the just-obtained DIR*.
59465
59466         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
59467         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
59468
59469 2007-02-18  Bruno Haible  <bruno@clisp.org>
59470
59471         * lib/readlink.c: Include <unistd.h>.
59472         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
59473         HAVE_READLINK.
59474         * modules/readlink (Depends-on): Add unistd.
59475         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59476         (Include): Add <unistd.h>.
59477
59478         * lib/getlogin_r.h: Remove file.
59479         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
59480         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
59481         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
59482         HAVE_DECL_GETLOGIN_R.
59483         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
59484         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59485         (Include): Use <unistd.h> instead of getlogin_r.h.
59486
59487         * lib/getcwd.h: Remove file.
59488         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
59489         * lib/xgetcwd.c: Likewise.
59490         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
59491         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
59492         * modules/getcwd (Files): Remove lib/getcwd.h.
59493         (Depends-on): Add unistd.
59494         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59495         (Include): Use <unistd.h> instad of getcwd.h.
59496
59497         * lib/ftruncate.c: Include <unistd.h> first.
59498         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
59499         Set HAVE_FTRUNCATE.
59500         * modules/ftruncate (Depends-on): Add unistd.
59501         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59502
59503         * lib/fchdir.c: Include <unistd.h> first.
59504         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
59505         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
59506         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
59507         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59508         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
59509
59510         * lib/dup2.c: Include <unistd.h> first.
59511         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
59512         HAVE_DUP2.
59513         * modules/dup2 (Depends-on): Add unistd.
59514         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59515
59516         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
59517         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
59518         REPLACE_CHOWN. Don't define chown as a macro here.
59519         * modules/chown (Depends-on): Add unistd.
59520         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
59521
59522         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
59523         Add definition for GL_LINK_WARNING.
59524         (chown, dup2): New declarations.
59525         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
59526         link warning.
59527         (ftruncate): New declaration.
59528         (getcwd): New declaration, taken from old getcwd.h.
59529         (getlogin_r): New declaration, taken from old getlogin_r.h.
59530         (readlink): New declaration.
59531         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
59532         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
59533         (gl_PREREQ_UNISTD): Remove macro.
59534         (gl_UNISTD_MODULE_INDICATOR): New macro.
59535         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
59536         many new variables. Don't set UNISTD_H.
59537         * modules/unistd (Description): Change.
59538         (Depends-on): Add link-warning.
59539         (configure.ac): Update.
59540         (Makefile.am): Create unistd.h always. Substitute many new variables
59541         into it.
59542
59543 2007-02-18  Bruno Haible  <bruno@clisp.org>
59544
59545         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
59546         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
59547         HAVE_GETSUBOPT.
59548         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
59549         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
59550         * lib/getsubopt.h: Remove file.
59551         * modules/getsubopt (Files): Remove lib/getsubopt.h.
59552         (Depends-on): Add stdlib.
59553         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59554         (Includes): Use <stdlib.h> instead of getsubopt.h.
59555         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
59556         Set HAVE_GETSUBOPT.
59557         * lib/getsubopt.c: Don't include getsubopt.h.
59558
59559 2007-02-18  Bruno Haible  <bruno@clisp.org>
59560
59561         * modules/fchdir (Depends-on): Add dup2.
59562
59563 2007-02-18  Bruno Haible  <bruno@clisp.org>
59564
59565         * lib/stdlib_.h: Handle glibc's special invocation convention
59566         specially.
59567
59568 2007-02-18  Bruno Haible  <bruno@clisp.org>
59569
59570         * modules/stdlib-tests: New file.
59571         * tests/test-stdlib.c: New file.
59572
59573         * modules/mkstemp (Files): Remove lib/mkstemp.h.
59574         (Depends-on): Add stdlib.
59575         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59576         (Includes): Use <stdlib.h> instead of mkstemp.h.
59577         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
59578         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
59579         * lib/mkstemp.c: Don't include mkstemp.h.
59580         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
59581         * lib/stdlib--.h: Don't include mkstemp.h.
59582
59583         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
59584         (Depends-on): Add stdlib.
59585         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
59586         (Includes): Use <stdlib.h> instead of mkdtemp.h.
59587         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
59588         HAVE_MKDTEMP.
59589         * lib/mkdtemp.c: Don't include mkdtemp.h.
59590         * lib/clean-temp.c: Don't include mkdtemp.h.
59591
59592         * modules/exit (Files): Remove lib/exit.h.
59593         (Depends-on): Add stdlib.
59594         (Makefile.am): Remove lib_SOURCES.
59595         (Include): Use <stdlib.h> instead of exit.h.
59596         * lib/argmatch.c: Don't include exit.h.
59597         * lib/execute.c: Likewise.
59598         * lib/pagealign_alloc.c: Likewise.
59599         * lib/pipe.c: Likewise.
59600         * lib/wait-process.c: Likewise.
59601         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
59602         * lib/exitfail.c: Likewise.
59603         * lib/savewd.c: Likewise.
59604         * lib/xsetenv.c: Likewise.
59605
59606         * modules/stdlib: New file.
59607         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
59608         and extra comments about mkstemp().
59609         * lib/exit.h: Remove file.
59610         * lib/mkdtemp.h: Remove file.
59611         * lib/mkstemp.h: Remove file.
59612         * m4/stdlib_h.m4: New file.
59613         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
59614
59615 2007-02-18  Bruno Haible  <bruno@clisp.org>
59616
59617         * modules/math-tests: New file.
59618         * tests/test-math.c: New file.
59619
59620         * modules/math: New file.
59621         * modules/mathl (Files): Remove lib/mathl.h.
59622         (Depends-on): Add math.
59623         (Makefile.am): Don't mention mathl.h.
59624         (Include): Use <math.h> instead of mathl.h.
59625         * lib/math_.h: New file.
59626         * lib/mathl.h: Remove file.
59627         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
59628         mathl.h.
59629         * lib/asinl.c: Likewise.
59630         * lib/atanl.c: Likewise.
59631         * lib/ceill.c: Likewise.
59632         * lib/cosl.c: Likewise.
59633         * lib/expl.c: Likewise.
59634         * lib/floorl.c: Likewise.
59635         * lib/frexpl.c: Likewise.
59636         * lib/ldexpl.c: Likewise.
59637         * lib/logl.c: Likewise.
59638         * lib/sincosl.c: Likewise.
59639         * lib/sinl.c: Likewise.
59640         * lib/sqrtl.c: Likewise.
59641         * lib/tanl.c: Likewise.
59642         * lib/trigl.c: Likewise.
59643         * m4/math_h.m4: New file.
59644         * MODULES.html.sh (Mathematics): Add math.
59645
59646 2007-02-17  Bruno Haible  <bruno@clisp.org>
59647
59648         * modules/wctype-tests: New file.
59649         * tests/test-wctype.c: New file.
59650
59651         * modules/wchar-tests: New file.
59652         * tests/test-wchar.c: New file.
59653
59654         * modules/unistd-tests: New file.
59655         * tests/test-unistd.c: New file.
59656
59657         * modules/time-tests: New file.
59658         * tests/test-time.c: New file.
59659
59660         * modules/sysexits-tests: New file.
59661         * tests/test-sysexits.c: New file.
59662
59663         * modules/sys_time-tests: New file.
59664         * tests/test-sys_time.c: New file.
59665
59666         * modules/sys_stat-tests: New file.
59667         * tests/test-sys_stat.c: New file.
59668
59669         * modules/sys_socket-tests: New file.
59670         * tests/test-sys_socket.c: New file.
59671
59672         * modules/sys_select-tests: New file.
59673         * tests/test-sys_select.c: New file.
59674
59675         * modules/string-tests: New file.
59676         * tests/test-string.c: New file.
59677
59678         * modules/stdbool-tests: New file.
59679         * tests/test-stdbool.c: New file.
59680
59681         * modules/netinet_in-tests: New file.
59682         * tests/test-netinet_in.c: New file.
59683
59684         * modules/inttypes-tests: New file.
59685         * tests/test-inttypes.c: New file.
59686
59687         * modules/fcntl-tests: New file.
59688         * tests/test-fcntl.c: New file.
59689
59690         * modules/byteswap-tests: New file.
59691         * tests/test-byteswap.c: New file.
59692
59693         * modules/arpa_inet-tests: New file.
59694         * tests/test-arpa_inet.c: New file.
59695
59696 2007-02-17  Bruno Haible  <bruno@clisp.org>
59697
59698         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
59699         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
59700         if the corresponding module is not enabled. Emit link warnings if
59701         the function is used nevertheless.
59702         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
59703         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
59704         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
59705         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
59706         * modules/inttypes (Depends-on): Add link-warning.
59707         (Makefile.am): Copy the contents of build-aux/link-warning.h into
59708         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
59709         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
59710         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
59711         * modules/imaxdiv (configure.ac): Likewise.
59712         * modules/strtoimax (configure.ac): Likewise.
59713         * modules/strtoumax (configure.ac): Likewise.
59714
59715 2007-02-17  Bruno Haible  <bruno@clisp.org>
59716
59717         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
59718         gl_STRING_MODULE_INDICATOR_DEFAULTS.
59719         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
59720         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
59721
59722 2007-02-17  Bruno Haible  <bruno@clisp.org>
59723
59724         * modules/link-warning: New file.
59725         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
59726         * lib/string_.h (GL_LINK_WARNING): Remove definition.
59727         * modules/string (Depends-on): Add link-warning.
59728         (Makefile.am): Copy the contents of build-aux/link-warning.h into
59729         string.h.
59730         * MODULES.html.sh (Support for building libraries and executables): Add
59731         link-warning.
59732
59733 2007-02-17  Bruno Haible  <bruno@clisp.org>
59734
59735         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
59736         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
59737         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
59738         long lines.
59739
59740 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
59741             Bruno Haible  <bruno@clisp.org>
59742
59743         * modules/tmpfile: New file.
59744         * lib/tmpfile.c: New file.
59745         * m4/tmpfile.m4: New file.
59746         * MODULES.html.sh (func_all_modules): New section "Input/output".
59747
59748 2007-02-15  Bruno Haible  <bruno@clisp.org>
59749
59750         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
59751         (supports_delete_on_close): New function.
59752         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
59753
59754 2007-02-14  Bruno Haible  <bruno@clisp.org>
59755
59756         * modules/mbspcasecmp-tests: New file.
59757         * tests/test-mbspcasecmp.sh: New file.
59758         * tests/test-mbspcasecmp.c: New file.
59759
59760         New module mbspcasecmp.
59761         * modules/mbspcasecmp: New file.
59762         * lib/mbspcasecmp.c: New file.
59763         * lib/string_.h (strncasecmp): Change warning message.
59764         (mbspcasecmp): New declaration.
59765         * m4/mbspcasecmp.m4: New file.
59766         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59767         GNULIB_MBSPCASECMP.
59768         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
59769         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
59770
59771 2007-02-14  Bruno Haible  <bruno@clisp.org>
59772
59773         * modules/mbsncasecmp-tests: New file.
59774         * tests/test-mbsncasecmp.sh: New file.
59775         * tests/test-mbsncasecmp.c: New file.
59776
59777         New module mbsncasecmp.
59778         * modules/mbsncasecmp: New file.
59779         * lib/mbsncasecmp.c: New file.
59780         * lib/string_.h (mbsncasecmp): New declaration.
59781         * m4/mbsncasecmp.m4: New file.
59782         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59783         GNULIB_MBSNCASECMP.
59784         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
59785         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
59786
59787 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
59788
59789         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
59790         Verify that it doesn't overlap with our flags.
59791         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
59792         do not have the desired effect in multibyte locales; instead, use
59793         mbscasecmp.
59794         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
59795         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
59796         we don't require GNU fnmatch ourselves (if our users require it, they
59797         should do so explicitly).
59798
59799         Fix regex code so it doesn't rely on strcasecmp.
59800         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
59801         Otherwise, include gnulib's langinfo.h.
59802         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
59803         undesirable behavior in non-C locales.  Instead, rely on localecharset.
59804         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
59805         * modules/regex (FILES): Remove m4/codeset.m4.
59806         (Depends-on): Add localcharset.  Remove strcase.
59807
59808 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59809
59810         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
59811         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
59812
59813 2007-02-13  Bruno Haible  <bruno@clisp.org>
59814
59815         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
59816         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59817
59818 2007-02-12  Bruno Haible  <bruno@clisp.org>
59819
59820         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
59821         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
59822         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
59823         time warning rather than a link error.
59824
59825 2007-02-12  Bruno Haible  <bruno@clisp.org>
59826
59827         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
59828         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59829         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59830
59831 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59832
59833         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
59834         args, not 2.
59835
59836 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59837
59838         New module 'time', so that apps can include <time.h> as per
59839         POSIX and GNU instead of separate include files like time_r.h
59840         and timegm.h.  This implementation tries out a simpler approach
59841         for replacing decls in standard include files (as compared to
59842         the string module), somewhat as an experiment.
59843
59844         * config/srclist.txt: Comment out mktime.c for now.
59845         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
59846         since it doesn't apply any more.  Use generic wording instead.
59847         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
59848         'time'.
59849         * lib/time_.h, m4/time_h.m4, modules/time: New files.
59850         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
59851         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
59852         Don't include <sys/types.h>; no longer needed since we assume C89.
59853         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
59854         * lib/strftime.c: Likewise.
59855         * lib/time_r.c: Likewise.
59856         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
59857         * lib/nanosleep.c: Include <time.h> first, to check interface.
59858         * lib/strptime.c: Likewise.
59859         * lib/time_r.c: Likewise.
59860         * lib/timegm.c: Likewise.
59861         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
59862         needed.
59863         * lib/timegm.c: Don't include timegm.h; no longer needed.
59864         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
59865         time.h now handles any problems in that area.
59866         (struct timespec, nanosleep): Remove; time.h now arranges for these.
59867         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
59868         that time.h defines struct timespec.
59869         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
59870         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
59871         handles that.
59872         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
59873         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
59874         needed.  Set REPLACE_LOCALTIME.
59875         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
59876         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
59877         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
59878         nanosleep; time_h.m4 now does that.  Don't require
59879         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
59880         module handles this now.
59881         * modules/getdate (Depends-on): Remove timespec.  Add time.
59882         * modules/nanosleep (Depends-on): Likewise.
59883         * modules/stat-time (Depends-on): Likewise.
59884         * modules/nanosleep (Include): Include time.h, not timespec.h.
59885         * modules/strptime (Files): Remove lib/strptime.h.
59886         (Depends-on): Add extensions, time.
59887         (Include): Include time.h, not strptime.h.
59888         * modules/time_r (Files): Remove lib/time_r.h.
59889         (Depends-on): Add time.
59890         (Include): Include time.h, not time_r.h.
59891         * modules/timegm: Likewise.
59892         * modules/timespec (Description): Now does timespec-related decls
59893         of our own, instead of struct timespec itself.
59894         (Depends-on): Add time; remove extensions.
59895         (Maintainer): Add self.
59896         * modules/utimecmp (Depends-on): Add time; remove timespec.
59897         * modules/utimens (Depends-on): Likewise.
59898         * modules/xnanosleep (Depends-on): Likewise.
59899
59900 2007-02-11  Bruno Haible  <bruno@clisp.org>
59901
59902         * lib/c-strstr.c: Include allocsa.h.
59903         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59904         * lib/c-strcasestr.c: Include allocsa.h.
59905         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59906         * lib/strcasestr.c: Include allocsa.h.
59907         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59908         * lib/mbsstr.c: Include allocsa.h.
59909         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
59910         allocsa/freesa instead of malloc/free.
59911         * lib/mbscasestr.c: Include allocsa.h.
59912         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
59913         allocsa/freesa instead of malloc/free.
59914         * modules/c-strstr (Depends-on): Add allocsa.
59915         * modules/c-strcasestr (Depends-on): Likewise.
59916         * modules/strcasestr (Depends-on): Likewise.
59917         * modules/mbsstr (Depends-on): Likewise.
59918         * modules/mbscasestr (Depends-on): Likewise.
59919
59920 2007-02-11  Bruno Haible  <bruno@clisp.org>
59921
59922         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
59923
59924         * modules/mbsspn-tests: New file.
59925         * tests/test-mbsspn.sh: New file.
59926         * tests/test-mbsspn.c: New file.
59927
59928 2007-02-11  Bruno Haible  <bruno@clisp.org>
59929
59930         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
59931
59932         * modules/mbspbrk-tests: New file.
59933         * tests/test-mbspbrk.sh: New file.
59934         * tests/test-mbspbrk.c: New file.
59935
59936 2007-02-11  Bruno Haible  <bruno@clisp.org>
59937
59938         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
59939         unneeded cast.
59940
59941         * modules/mbscspn-tests: New file.
59942         * tests/test-mbscspn.sh: New file.
59943         * tests/test-mbscspn.c: New file.
59944
59945 2007-02-11  Bruno Haible  <bruno@clisp.org>
59946
59947         * modules/mbscasecmp-tests: New file.
59948         * tests/test-mbscasecmp.sh: New file.
59949         * tests/test-mbscasecmp.c: New file.
59950
59951 2007-02-11  Bruno Haible  <bruno@clisp.org>
59952
59953         Ensure O(n) worst-case complexity of mbscasestr.
59954         * lib/mbscasestr.c: Include stdbool.h.
59955         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
59956         functions.
59957         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
59958         the bookkeeping indicates that it's worth it.
59959         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
59960
59961         * modules/mbscasestr-tests: New file.
59962         * tests/test-mbscasestr1.c: New file.
59963         * tests/test-mbscasestr2.sh: New file.
59964         * tests/test-mbscasestr2.c: New file.
59965         * tests/test-mbscasestr3.sh: New file.
59966         * tests/test-mbscasestr3.c: New file.
59967         * tests/test-mbscasestr4.sh: New file.
59968         * tests/test-mbscasestr4.c: New file.
59969         * m4/locale-tr.m4: New file.
59970
59971 2007-02-11  Bruno Haible  <bruno@clisp.org>
59972
59973         Ensure O(n) worst-case complexity of mbsstr.
59974         * lib/mbsstr.c: Include stdbool.h.
59975         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
59976         functions.
59977         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
59978         bookkeeping indicates that it's worth it.
59979         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
59980
59981         * modules/mbsstr-tests: New file.
59982         * tests/test-mbsstr1.c: New file.
59983         * tests/test-mbsstr2.sh: New file.
59984         * tests/test-mbsstr2.c: New file.
59985         * tests/test-mbsstr3.sh: New file.
59986         * tests/test-mbsstr3.c: New file.
59987         * m4/locale-fr.m4: New file.
59988
59989 2007-02-11  Bruno Haible  <bruno@clisp.org>
59990
59991         * lib/mbsrchr.c (mbsrchr): Fix bug.
59992
59993         * modules/mbsrchr-tests: New file.
59994         * tests/test-mbsrchr.sh: New file.
59995         * tests/test-mbsrchr.c: New file.
59996
59997 2007-02-11  Bruno Haible  <bruno@clisp.org>
59998
59999         * lib/mbschr.c (mbschr): Fix bug.
60000
60001         * modules/mbschr-tests: New file.
60002         * tests/test-mbschr.sh: New file.
60003         * tests/test-mbschr.c: New file.
60004         * m4/locale-zh.m4: New file.
60005
60006 2007-02-11  Bruno Haible  <bruno@clisp.org>
60007
60008         Support for copying multibyte string iterators.
60009         * lib/mbiter.h: Include <string.h>.
60010         (mbiter_multi_copy): New function.
60011         (mbi_copy): New macro.
60012         * lib/mbuiter.h: Include <string.h>.
60013         (mbuiter_multi_copy): New function.
60014         (mbui_copy): New macro.
60015
60016 2007-02-11  Bruno Haible  <bruno@clisp.org>
60017
60018         New module mbslen.
60019         * modules/mbslen: New file.
60020         * lib/mbslen.c: New file.
60021         * lib/string_.h (mbslen): New declaration.
60022         * m4/mbslen.m4: New file.
60023         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60024         GNULIB_MBSLEN.
60025         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
60026         * MODULES.html.sh (Internationalization functions): Add mbslen.
60027
60028 2007-02-11  Bruno Haible  <bruno@clisp.org>
60029
60030         Ensure O(n) worst-case complexity of strcasestr substitute.
60031         * lib/strcasestr.c: Include stdbool.h.
60032         (knuth_morris_pratt): New function.
60033         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
60034         bookkeeping indicates that it's worth it.
60035         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
60036
60037         * modules/strcasestr-tests: New file.
60038         * tests/test-strcasestr.c: New file.
60039
60040 2007-02-11  Bruno Haible  <bruno@clisp.org>
60041
60042         Ensure O(n) worst-case complexity of c_strcasestr.
60043         * lib/c-strcasestr.c: Include stdbool.h, string.h.
60044         (knuth_morris_pratt): New function.
60045         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
60046         the bookkeeping indicates that it's worth it.
60047         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
60048
60049         * modules/c-strcasestr-tests: New file.
60050         * tests/test-c-strcasestr.c: New file.
60051
60052 2007-02-11  Bruno Haible  <bruno@clisp.org>
60053
60054         Ensure O(n) worst-case complexity of c_strstr.
60055         * lib/c-strstr.c: Include stdbool.h, string.h.
60056         (knuth_morris_pratt): New function.
60057         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
60058         bookkeeping indicates that it's worth it.
60059         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
60060
60061         * lib/c-strstr.c: Complete rewrite for maintainability.
60062
60063         * modules/c-strstr-tests: New file.
60064         * tests/test-c-strstr.c: New file.
60065
60066 2007-02-11  Bruno Haible  <bruno@clisp.org>
60067
60068         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
60069         5.2.1 and earlier, whereby \055 was treated just like the range
60070         delimiter '-'.
60071         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
60072
60073 2007-02-08  Bruno Haible  <bruno@clisp.org>
60074
60075         * modules/regex (Depends-on): Add stdbool.
60076         Reported by Dalibor Topic <robilad@kaffe.org>.
60077
60078 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
60079
60080         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
60081         Prefer returning from main to exiting from it.
60082         Remove unnecessary parens after sizeof.
60083
60084 2007-02-05  Bruno Haible  <bruno@clisp.org>
60085
60086         New module mbssep.
60087         * modules/mbssep: New file.
60088         * lib/mbssep.c: New file.
60089         * lib/string_.h (strsep): Add a conditional link warning.
60090         (mbssep): New declaration.
60091         * m4/mbssep.m4: New file.
60092         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60093         GNULIB_MBSSEP.
60094         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
60095         * MODULES.html.sh (Internationalization functions): Add mbssep.
60096
60097 2007-02-05  Bruno Haible  <bruno@clisp.org>
60098
60099         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
60100         Optimize search in case of 1 delimiter.
60101
60102 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
60103
60104         * lib/acl.h: Include sys/types.h before sys/acl.h.
60105
60106 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
60107
60108         Merge upstream fix for glibc bugzilla #3957:
60109
60110         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
60111
60112         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
60113         bit for RE_HAT_LISTS_NOT_NEWLINE.
60114         (build_charclass_op): Remove bogus comment.
60115
60116 2007-02-05  Simon Josefsson  <simon@josefsson.org>
60117
60118         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
60119
60120 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
60121
60122         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
60123         * lib/memmem.c [!defined _LIBC]: Include config.h.
60124
60125 2007-02-04  Bruno Haible  <bruno@clisp.org>
60126
60127         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
60128         warning message.
60129
60130 2007-02-04  Bruno Haible  <bruno@clisp.org>
60131
60132         New module mbstok_r.
60133         * modules/mbstok_r: New file.
60134         * lib/mbstok_r.c: New file.
60135         * lib/string_.h (strtok_r): Change argument names to match the
60136         comments. Add a conditional link warning.
60137         (mbstok_r): New declaration.
60138         * m4/mbstok_r.m4: New file.
60139         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60140         GNULIB_MBSTOK_R.
60141         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
60142         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
60143
60144 2007-02-04  Bruno Haible  <bruno@clisp.org>
60145
60146         New module mbsspn.
60147         * modules/mbsspn: New file.
60148         * lib/mbsspn.c: New file.
60149         * lib/string_.h (strspn): Add a conditional link warning.
60150         (mbsspn): New declaration.
60151         * m4/mbsspn.m4: New file.
60152         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60153         GNULIB_MBSSPN.
60154         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
60155         * MODULES.html.sh (Internationalization functions): Add mbsspn.
60156
60157 2007-02-04  Bruno Haible  <bruno@clisp.org>
60158
60159         New module mbspbrk.
60160         * modules/mbspbrk: New file.
60161         * lib/mbspbrk.c: New file.
60162         * lib/string_.h (strpbrk): Add a conditional link warning.
60163         (mbspbrk): New declaration.
60164         * m4/mbspbrk.m4: New file.
60165         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60166         GNULIB_MBSPBRK.
60167         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
60168         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
60169
60170 2007-02-04  Bruno Haible  <bruno@clisp.org>
60171
60172         New module mbscspn.
60173         * modules/mbscspn: New file.
60174         * lib/mbscspn.c: New file.
60175         * lib/string_.h (strcspn): Add a conditional link warning.
60176         (mbscspn): New declaration.
60177         * m4/mbscspn.m4: New file.
60178         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60179         GNULIB_MBSCSPN.
60180         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
60181         * MODULES.html.sh (Internationalization functions): Add mbscspn.
60182
60183 2007-02-04  Bruno Haible  <bruno@clisp.org>
60184
60185         New module mbscasestr, reduced goal of strcasestr.
60186         * modules/mbscasestr: New file.
60187         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
60188         (mbscasestr): Renamed from strcasestr.
60189         * lib/strcasestr.c: Don't include mbuiter.h.
60190         (strcasestr): Remove support for multibyte locales.
60191         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
60192         Change the conditional link warning.
60193         (mbscasestr): New declaration.
60194         * m4/mbscasestr.m4: New file.
60195         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
60196         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
60197         REPLACE_STRCASESTR.
60198         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
60199         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60200         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
60201         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
60202         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
60203         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
60204         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
60205         (Depends-on): Remove mbuiter.
60206         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
60207
60208 2007-02-04  Bruno Haible  <bruno@clisp.org>
60209
60210         Simplify handling of strncasecmp.
60211         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
60212         the conditional link warning.
60213         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60214         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
60215         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
60216         * modules/strcase (configure.ac): Don't invoke
60217         gl_STRING_MODULE_INDICATOR.
60218         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
60219
60220 2007-02-04  Bruno Haible  <bruno@clisp.org>
60221
60222         New module mbscasecmp, reduced goal of strcasecmp.
60223         * modules/mbscasecmp: New file.
60224         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
60225         (mbscasecmp): Renamed from strcasecmp.
60226         * lib/strcasecmp.c: Don't include mbuiter.h.
60227         (strcasecmp): Remove support for multibyte locales.
60228         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
60229         Change the conditional link warning.
60230         (mbscasecmp): New declaration.
60231         * m4/mbscasecmp.m4: New file.
60232         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
60233         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
60234         REPLACE_STRCASECMP.
60235         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
60236         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60237         GNULIB_MBSCASECMP.
60238         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
60239         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
60240         * modules/strcase (Files): Remove m4/mbrtowc.m4.
60241         (Depends-on): Remove mbuiter.
60242         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
60243
60244 2007-02-04  Bruno Haible  <bruno@clisp.org>
60245
60246         New module mbsstr. Remove module strstr.
60247         * modules/mbsstr: New file.
60248         * modules/strstr: Remove file.
60249         * lib/mbsstr.c: Renamed from lib/strstr.c.
60250         (mbsstr): Renamed from strstr.
60251         * lib/string_.h (strstr): Remove declaration. Change the conditional
60252         link warning.
60253         (mbsstr): New declaration.
60254         * m4/mbsstr.m4: New file.
60255         * m4/strstr.m4: Remove file.
60256         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
60257         REPLACE_STRSTR.
60258         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
60259         Don't initialize GNULIB_STRSTR.
60260         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
60261         substitute GNULIB_STRSTR and REPLACE_STRSTR.
60262         * MODULES.html.sh (Internationalization functions): Add mbsstr.
60263         (Support for systems lacking ANSI C 89): Remove strstr.
60264
60265 2007-02-04  Bruno Haible  <bruno@clisp.org>
60266
60267         New module mbsrchr.
60268         * modules/mbsrchr: New file.
60269         * lib/mbsrchr.c: New file.
60270         * lib/string_.h (strrchr): Add a conditional link warning.
60271         (mbsrchr): New declaration.
60272         * m4/mbsrchr.m4: New file.
60273         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60274         GNULIB_MBSRCHR.
60275         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
60276         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
60277
60278 2007-02-04  Bruno Haible  <bruno@clisp.org>
60279
60280         New module mbschr.
60281         * modules/mbschr: New file.
60282         * lib/mbschr.c: New file.
60283         * lib/string_.h (strchr): Add a conditional link warning.
60284         (mbschr): New declaration.
60285         * m4/mbschr.m4: New file.
60286         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
60287         GNULIB_MBSCHR.
60288         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
60289         * MODULES.html.sh (Internationalization functions): Add mbschr.
60290
60291 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
60292
60293         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
60294
60295         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
60296
60297 2007-02-04  Bruno Haible  <bruno@clisp.org>
60298
60299         New module description section 'configure.ac-early'.
60300         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
60301         (func_get_autoconf_early_snippet): New function.
60302         (func_import, func_create_testdir): Use it. Remove special cases for
60303         modules 'extensions' and 'lock'.
60304         * modules/extensions (configure.ac-early): Require
60305         gl_USE_SYSTEM_EXTENSIONS.
60306         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
60307
60308 2007-02-04  Bruno Haible  <bruno@clisp.org>
60309
60310         Make use of gcj-4.3's -fsource and -ftarget option.
60311         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
60312         and if so try the options -fsource and -ftarget.
60313         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
60314         source_version, ftarget_option, target_version arguments.
60315         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
60316         (is_envjavac_oldgcj_14_14_usable): Renamed from
60317         is_envjavac_gcj_14_14_usable.
60318         (is_envjavac_oldgcj_14_13_usable): Renamed from
60319         is_envjavac_gcj_14_13_usable.
60320         (is_gcj_present): Update.
60321         (is_gcj_43, is_gcj43_usable): New functions.
60322         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
60323         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
60324         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
60325         try the options -fsource and -ftarget.
60326
60327 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
60328
60329         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
60330         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
60331         larger value.
60332
60333 2007-02-03  Jim Meyering  <jim@meyering.net>
60334
60335         Give tools a better chance to allocate space for very large buffers.
60336         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
60337
60338         Make pwd and readlink work also when run with an unreadable parent dir
60339         on systems with openat support.
60340         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
60341         provided getcwd function, even when we have openat support.
60342         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
60343
60344 2007-02-02  Bruno Haible  <bruno@clisp.org>
60345
60346         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
60347         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
60348         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
60349         portability problems if one of these functions is only used on specific
60350         platforms.
60351         Reported by Paul Eggert.
60352
60353 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
60354
60355         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
60356         is causing more trouble than it's curing.
60357         * lib/regex_internal.h (__mempcpy): Remove.
60358         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
60359         (and make the code a tad smaller to boot).
60360         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
60361
60362 2007-02-02  Jim Meyering  <jim@meyering.net>
60363
60364         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
60365         section, not in the Makefile.am: one.
60366
60367 2007-02-02  Eric Blake  <ebb9@byu.net>
60368
60369         * lib/strchrnul.c: Always include config.h first.
60370
60371         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
60372         gnulib strstr is not necessary here.
60373
60374 2007-02-02  Simon Josefsson  <simon@josefsson.org>
60375
60376         * m4/socklen.m4: Fix typo.
60377
60378 2007-02-02  Eric Blake  <ebb9@byu.net>
60379
60380         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
60381         * modules/netinet_in (Makefile.am): Likewise.
60382
60383 2007-02-01  Bruno Haible  <bruno@clisp.org>
60384
60385         * lib/string_.h (GL_LINK_WARNING): New macro.
60386         (strcasecmp, strstr, strcasestr): If provided by the system,
60387         conditionally define as a macro that leads to a warning instead of to
60388         an error.
60389         (strncasecmp): Conditionally define as a macro that leads to a warning.
60390
60391 2007-02-01  Karl Berry  <karl@gnu.org>
60392
60393         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
60394
60395 2007-02-01  Bruno Haible  <bruno@clisp.org>
60396
60397         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
60398         renamings.
60399
60400 2007-02-01  Eric Blake  <ebb9@byu.net>
60401
60402         * modules/regex (Depends-on): Revert dependence on mempcpy.
60403         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
60404         module's definition of mempcpy.
60405         Reported by Paul Eggert.
60406
60407 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
60408
60409         * lib/string_.h: If the gnulib module XYZ is not present, undefine
60410         the symbol XYZ before redefining it.  This fixes a problem with
60411         programs that don't use XYZ, when compiled on systems that define
60412         XYZ to something else.
60413
60414 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
60415
60416         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
60417         occurs when "mkdir -m foo" creates a setgid directory that is (1)
60418         writeable to group or other and (2) is intended to have a special
60419         mode bit that is set or cleared.  In such a case, the directory
60420         should be neither group- nor other-writeable until the special
60421         mode bits are right.
60422
60423 2007-01-31  Eric Blake  <ebb9@byu.net>
60424
60425         * modules/mountlist (Depends-on): Add strstr.
60426
60427         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
60428         bug.
60429         * modules/string (Makefile.am): Remove redundant replacement.
60430         * modules/regex (Depends-on): Add mempcpy.
60431
60432 2007-01-31  Bruno Haible  <bruno@clisp.org>
60433
60434         New module description field 'Link'.
60435         * gnulib-tool (func_usage): Document --extract-link-directive.
60436         (sed_extract_prog): Recognize 'Link' directive.
60437         (func_get_link_directive): New function.
60438         (func_import): Show summary of link directives.
60439         Handle --extract-link-directive option.
60440         * modules/acl (Link): New section.
60441         * modules/clock-time (Link): New section.
60442         * modules/euidaccess (Link): New section.
60443         * modules/gettext (Link): New section.
60444         * modules/iconv (Link): New section.
60445         * modules/lock (Link): New section.
60446         * modules/nanosleep (Link): New section.
60447         * modules/readline (Link): New section.
60448
60449 2007-01-27  Bruno Haible  <bruno@clisp.org>
60450
60451         Enforce the use of gnulib modules for unportable <string.h> functions.
60452         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
60453         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
60454         (gl_HEADER_STRING_H_BODY): Require it.
60455         * lib/string_.h: If the gnulib module XYZ is not present, redefine
60456         the symbol XYZ to one that gives a link error.
60457         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
60458         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
60459         * modules/mempcpy (configure.ac): Likewise.
60460         * modules/memrchr (configure.ac): Likewise.
60461         * modules/stpcpy (configure.ac): Likewise.
60462         * modules/stpncpy (configure.ac): Likewise.
60463         * modules/strcase (configure.ac): Likewise.
60464         * modules/strcasestr (configure.ac): Likewise.
60465         * modules/strchrnul (configure.ac): Likewise.
60466         * modules/strdup (configure.ac): Likewise.
60467         * modules/strndup (configure.ac): Likewise.
60468         * modules/strnlen (configure.ac): Likewise.
60469         * modules/strpbrk (configure.ac): Likewise.
60470         * modules/strsep (configure.ac): Likewise.
60471         * modules/strstr (configure.ac): Likewise.
60472         * modules/strtok_r (configure.ac): Likewise.
60473
60474 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
60475
60476         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
60477
60478 2007-01-30  Jim Meyering  <jim@meyering.net>
60479
60480         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
60481
60482 2007-01-29  Bruno Haible  <bruno@clisp.org>
60483
60484         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
60485         * lib/execute.c: Likewise.
60486         * lib/pipe.c: Likewise.
60487         * lib/printf-args.h: Likewise.
60488         * lib/printf-args.c: Likewise.
60489         * lib/printf-parse.c: Likewise.
60490         * lib/vasnprintf.c: Likewise.
60491
60492 2007-01-29  Eric Blake  <ebb9@byu.net>
60493
60494         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
60495         declaration.
60496
60497 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
60498
60499         * lib/strptime.h (strptime): Use 'restrict' for args where
60500         POSIX requires this.
60501         * lib/strptime.c (strptime): Likewise.
60502         Change license notice from LGPL to GPL, since gnulib-tool will
60503         change this as needed.
60504         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
60505         defined.
60506         Include "strptime.h" first, to check interface.
60507         Do not #undef _LIBC and _NL_CURRENT.
60508         Do not include <stdlib.h>; no longer needed.
60509         Include "time_r.h" and declare ptime_locale_status
60510         only if _LIBC is not defined.
60511         (__P): Remove unused macro.
60512         (match_string): Bring back glibc version, but use it only if _LIBC
60513         is defined.
60514         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
60515         Remove unnecessary assertion and abort() call.
60516         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
60517         * m4/strptime.m4: Fix serial number comment.
60518         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
60519         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
60520         (Depends-on): Add time_r.
60521
60522 2007-01-29  Bruno Haible  <bruno@clisp.org>
60523
60524         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
60525         strptime.
60526         * modules/strptime (Depends-on): Add stdbool.
60527         * lib/strptime.h: Include <time.h> always. Add comments.
60528
60529 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
60530
60531         * modules/strptime: New file.
60532         * lib/strptime.h: New file.
60533         * lib/strptime.c: New file.
60534         * m4/strptime.m4: New file.
60535
60536 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
60537
60538         * MODULES.html.sh: New module mpsort.
60539         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
60540
60541         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
60542         a circularity problem with HP-UX ia64 reported by Bob Proulx in
60543         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
60544         All uses changed.
60545         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
60546         All uses changed.
60547         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
60548         to _Restrict_.
60549         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
60550         the parameter matches the prototype.
60551
60552 2007-01-28  Jim Meyering  <jim@meyering.net>
60553
60554         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
60555         sys/time.h here, reverting that part of the previous patch:
60556         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
60557
60558 2007-01-28  Bruno Haible  <bruno@clisp.org>
60559
60560         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
60561         value of $(SYS_TIME_H).
60562         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
60563         remove it conditionally, too. [added by Jim Meyering]
60564         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
60565         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
60566         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
60567         GETTIMEOFDAY_REPLACEMENT to 1.
60568
60569 2007-01-28  Bruno Haible  <bruno@clisp.org>
60570
60571         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
60572         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
60573         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
60574         Set UNISTD_H instead of UNISTD_H2.
60575         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
60576
60577 2007-01-28  Bruno Haible  <bruno@clisp.org>
60578
60579         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
60580         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
60581
60582 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60583
60584         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
60585         (func_create_testdir): Ensure C locale for `grep' and `tr'
60586         character ranges.
60587         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
60588         ACLOCAL_AMFLAGS parsing state machine.
60589
60590 2007-01-27  Bruno Haible  <bruno@clisp.org>
60591
60592         * modules/unistr/base: Update.
60593
60594 2007-01-27  Bruno Haible  <bruno@clisp.org>
60595
60596         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
60597         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
60598         * modules/unistr/u32-mbtouc-unsafe: Renamed from
60599         modules/unistr/u32-mbtouc.
60600         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
60601         * lib/unistr.h: Update.
60602         * lib/linebreak.c: Update.
60603         * modules/unistr/u32-mbtouc: Renamed from
60604         modules/unistr/u32-mbtouc-safe.
60605         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
60606         * lib/unistr.h: Update.
60607         * lib/unistr/u32-to-u8.c: Update.
60608         * lib/unistr/u32-to-u16.c: Update.
60609
60610 2007-01-27  Bruno Haible  <bruno@clisp.org>
60611
60612         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
60613         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
60614         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
60615         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
60616         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
60617         * modules/unistr/u16-mbtouc-unsafe: Renamed from
60618         modules/unistr/u16-mbtouc.
60619         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
60620         * lib/unistr.h: Update.
60621         * lib/linebreak.c: Update.
60622         * modules/linebreak: Update.
60623         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
60624         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
60625         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
60626         * modules/unistr/u16-mbtouc: Renamed from
60627         modules/unistr/u16-mbtouc-safe.
60628         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
60629         * lib/unistr.h: Update.
60630         * lib/unistr/u16-to-u8.c: Update.
60631         * modules/unistr/u16-to-u8: Update.
60632         * lib/unistr/u16-to-u32.c: Update.
60633         * modules/unistr/u16-to-u32: Update.
60634
60635 2007-01-27  Bruno Haible  <bruno@clisp.org>
60636
60637         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
60638         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
60639         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
60640         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
60641         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
60642         * modules/unistr/u8-mbtouc-unsafe: Renamed from
60643         modules/unistr/u8-mbtouc.
60644         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
60645         * lib/unistr.h: Update.
60646         * lib/striconveh.c: Update.
60647         * modules/striconveh: Update.
60648         * lib/linebreak.c: Update.
60649         * modules/linebreak: Update.
60650         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
60651         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
60652         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
60653         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
60654         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
60655         * lib/unistr.h: Update.
60656         * lib/striconveh.c: Update.
60657         * modules/striconveh: Update.
60658         * lib/unistr/u8-to-u16.c: Update.
60659         * modules/unistr/u8-to-u16: Update.
60660         * lib/unistr/u8-to-u32.c: Update.
60661         * modules/unistr/u8-to-u32: Update.
60662
60663 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60664
60665         Sync from Libtool.
60666         * lib/argz.c: Do not include strings.h nor memory.h, include
60667         string.h unconditionally.  Patch by Simon Josefsson.
60668
60669 2007-01-27  Bruno Haible  <bruno@clisp.org>
60670
60671         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
60672         from gl_HEADER_STRING_H_BODY.
60673         (gl_HEADER_STRING_H_BODY): Require it.
60674         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
60675         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
60676         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
60677         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
60678         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
60679         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
60680         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
60681         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
60682         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
60683         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
60684         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
60685         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
60686         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
60687         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
60688         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
60689
60690 2007-01-27  Bruno Haible  <bruno@clisp.org>
60691
60692         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
60693         check_PROGRAMS into noinst_PROGRAMS.
60694         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
60695         check_PROGRAMS in this case.
60696         (func_import): Set for_test to false.
60697         (func_create_testdir): Set for_test to true.
60698
60699 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
60700             Bruno Haible  <bruno@clisp.org>
60701
60702         * modules/strcasestr (Files): Remove lib/strcasestr.h.
60703         (Depends-on): Add string.
60704         (Includes): Use <string.h> instead of strcasestr.h.
60705         * modules/string (Makefile.am): Also substitute the value of
60706         REPLACE_STRCASESTR.
60707         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
60708         assume strcasestr is declared in <string.h> not <strings.h>. Also
60709         set REPLACE_STRCASESTR.
60710         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
60711         REPLACE_STRCASESTR.
60712         * lib/strcasestr.h: Remove file.
60713         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
60714         * lib/string_.h (strcasestr): New declaration.
60715
60716 2007-01-27  Bruno Haible  <bruno@clisp.org>
60717
60718         * lib/string_.h: Use 'extern'.
60719
60720 2007-01-27  Jim Meyering  <jim@meyering.net>
60721
60722         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
60723         of set-but-not-used local, "q".
60724
60725         * lib/mempcpy.c: Include <config.h> before <string.h>.
60726         This fixes a compilation error on HP-UX, due to the system's
60727         "restrict"-using mempcpy prototype.
60728
60729 2007-01-26  Bruno Haible  <bruno@clisp.org>
60730
60731         Small optimization.
60732         * lib/javacomp.c: Include c-strstr.h.
60733          (is_envjavac_gcj): Use c_strstr instead of strstr.
60734         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
60735
60736 2007-01-26  Bruno Haible  <bruno@clisp.org>
60737
60738         * MODULES.html.sh (Unicode string functions): Add the new modules.
60739
60740         * modules/uniconv/u32-strconv-to-locale: New file.
60741         * lib/uniconv/u32-strconv-to-locale.c: New file.
60742
60743         * modules/uniconv/u16-strconv-to-locale: New file.
60744         * lib/uniconv/u16-strconv-to-locale.c: New file.
60745
60746         * modules/uniconv/u8-strconv-to-locale: New file.
60747         * lib/uniconv/u8-strconv-to-locale.c: New file.
60748
60749         * modules/uniconv/u32-strconv-from-locale: New file.
60750         * lib/uniconv/u32-strconv-from-locale.c: New file.
60751
60752         * modules/uniconv/u16-strconv-from-locale: New file.
60753         * lib/uniconv/u16-strconv-from-locale.c: New file.
60754
60755         * modules/uniconv/u8-strconv-from-locale: New file.
60756         * lib/uniconv/u8-strconv-from-locale.c: New file.
60757
60758         * modules/uniconv/u32-strconv-to-enc: New file.
60759         * lib/uniconv/u32-strconv-to-enc.c: New file.
60760         * modules/uniconv/u32-strconv-to-enc-tests: New file.
60761         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
60762
60763         * modules/uniconv/u16-strconv-to-enc: New file.
60764         * lib/uniconv/u16-strconv-to-enc.c: New file.
60765         * lib/uniconv/u-strconv-to-enc.h: New file.
60766         * modules/uniconv/u16-strconv-to-enc-tests: New file.
60767         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
60768
60769         * modules/uniconv/u8-strconv-to-enc: New file.
60770         * lib/uniconv/u8-strconv-to-enc.c: New file.
60771         * modules/uniconv/u8-strconv-to-enc-tests: New file.
60772         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
60773
60774         * modules/uniconv/u32-strconv-from-enc: New file.
60775         * lib/uniconv/u32-strconv-from-enc.c: New file.
60776         * modules/uniconv/u32-strconv-from-enc-tests: New file.
60777         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
60778
60779         * modules/uniconv/u16-strconv-from-enc: New file.
60780         * lib/uniconv/u16-strconv-from-enc.c: New file.
60781         * modules/uniconv/u16-strconv-from-enc-tests: New file.
60782         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
60783
60784         * modules/uniconv/u8-strconv-from-enc: New file.
60785         * lib/uniconv/u8-strconv-from-enc.c: New file.
60786         * lib/uniconv/u-strconv-from-enc.h: New file.
60787         * modules/uniconv/u8-strconv-from-enc-tests: New file.
60788         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
60789
60790         * modules/uniconv/u32-conv-from-enc: New file.
60791         * lib/uniconv/u32-conv-from-enc.c: New file.
60792         * modules/uniconv/u32-conv-from-enc-tests: New file.
60793         * tests/uniconv/test-u32-conv-from-enc.c: New file.
60794
60795         * modules/uniconv/u16-conv-from-enc: New file.
60796         * lib/uniconv/u16-conv-from-enc.c: New file.
60797         * lib/uniconv/u-conv-from-enc.h: New file.
60798         * modules/uniconv/u16-conv-from-enc-tests: New file.
60799         * tests/uniconv/test-u16-conv-from-enc.c: New file.
60800
60801         * modules/uniconv/u8-conv-from-enc: New file.
60802         * lib/uniconv/u8-conv-from-enc.c: New file.
60803         * modules/uniconv/u8-conv-from-enc-tests: New file.
60804         * tests/uniconv/test-u8-conv-from-enc.c: New file.
60805
60806         * modules/uniconv/base: New file.
60807         * lib/uniconv.h: New file.
60808
60809 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
60810
60811         * doc/gnulib-tool.texi (Initial import): Update to match current
60812         behavior with strdup module.
60813         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
60814         * lib/memmem.h: Remove; all uses removed.  This is now done
60815         by <string.h>.
60816         * lib/mempcpy.h: Likewise.
60817         * lib/memrchr.h: Likewise.
60818         * lib/stpcpy.h: Likewise.
60819         * lib/stpncpy.h: Likewise.
60820         * lib/strcase.h: Likewise.
60821         * lib/strchrnul.h: Likewise.
60822         * lib/strdup.h: Likewise.
60823         * lib/strndup.h: Likewise.
60824         * lib/strnlen.h: Likewise.
60825         * lib/strpbrk.h: Likewise.
60826         * lib/strsep.h: Likewise.
60827         * lib/strstr.h: Likewise.
60828         * lib/strtok_r.h: Likewise.
60829         * lib/string_.h: New file.
60830         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
60831         Rely on <string.h> instead.
60832         * lib/canon-host.c: Likewise.
60833         * lib/chdir-long.c: Likewise.
60834         * lib/concatpath.c: Likewise.
60835         * lib/exclude.c: Likewise.
60836         * lib/fchdir.c: Likewise.
60837         * lib/getaddrinfo.c: Likewise.
60838         * lib/getcwd.c: Likewise.
60839         * lib/getsubopt.c: Likewise.
60840         * lib/glob.c: Likewise.
60841         * lib/hard-locale.c: Likewise.
60842         * lib/iconvme.c: Likewise.
60843         * lib/javacomp.c: Likewise.
60844         * lib/mempcpy.c: Likewise.
60845         * lib/memrchr.c: Likewise.
60846         * lib/regex_internal.h: Likewise.
60847         * lib/stpncpy.c: Likewise.
60848         * lib/strcasecmp.c: Likewise.
60849         * lib/strchrnul.c: Likewise.
60850         * lib/strdup.c: Likewise.
60851         * lib/striconv.c: Likewise.
60852         * lib/striconveh.c: Likewise.
60853         * lib/striconveha.c: Likewise.
60854         * lib/strncasecmp.c: Likewise.
60855         * lib/strndup.c: Likewise.
60856         * lib/strnlen.c: Likewise.
60857         * lib/strsep.c: Likewise.
60858         * lib/strstr.c: Likewise.
60859         * lib/strtok_r.c: Likewise.
60860         * lib/userspec.c: Likewise.
60861         * lib/w32spawn.h: Likewise.
60862         * lib/xstrndup.c: Likewise.
60863         * lib/mountlist.c (strstr): Remove decl.
60864         * m4/string_h.m4: New file.
60865         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
60866         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
60867         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
60868         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
60869         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
60870         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
60871         Set REPLACE_STRCASECMP if necessary.
60872         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
60873         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
60874         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
60875         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
60876         HAVE_DECL_STRDUP if necessary.
60877         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
60878         since gl_FUNC_STRNDUP does that now.
60879         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
60880         Check for decl here...
60881         (gl_PREREQ_STRNLEN): ... not here.
60882         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
60883         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
60884         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
60885         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
60886         necessary.
60887         * modules/string: New file.
60888         * modules/memmem (Files): Remove special-purpose include file.
60889         (Depends-on): Add string.
60890         (Include): Include <string.h>, not the removed file.
60891         * modules/mempcpy: Likewise.
60892         * modules/memrchr: Likewise.
60893         * modules/stpcpy: Likewise.
60894         * modules/stpncpy: Likewise.
60895         * modules/strcase: Likewise.
60896         * modules/strchrnul: Likewise.
60897         * modules/strdup: Likewise.
60898         * modules/strndup: Likewise.
60899         * modules/strnlen: Likewise.
60900         * modules/strpbrk: Likewise.
60901         * modules/strsep: Likewise.
60902         * modules/strstr: Likewise.
60903         * modules/strtok_r: Likewise.
60904         * tests/test-dirname.c: Don't include "strdup.h", since
60905         <string.h> now suffices.
60906         * tests/test-memmem.c: Don't include "memmem.h", since
60907         <string.h> now suffices.
60908
60909 2007-01-25  Bruno Haible  <bruno@clisp.org>
60910
60911         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
60912         *resultp is 0.
60913
60914         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
60915         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
60916         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
60917         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
60918
60919         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
60920         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
60921         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
60922         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
60923         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
60924         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
60925
60926 2007-01-24  Bruno Haible  <bruno@clisp.org>
60927
60928         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
60929         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
60930         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
60931         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
60932         gl_FUNC_FTS_CORE.
60933         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
60934         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
60935         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60936         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
60937         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
60938         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
60939         gl_FUNC_FCHOWNAT.
60940         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
60941         gl_FUNC_STRFTIME.
60942         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
60943         Reported by Ralf Wildenhues.
60944
60945 2007-01-24  Bruno Haible  <bruno@clisp.org>
60946
60947         Drop AC_REQUIRE calls that are redundant with the module dependencies.
60948         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
60949         gl_GETADDRINFO.
60950         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
60951         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
60952         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
60953
60954 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
60955
60956         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
60957         Don't use 'exit'; just return from 'main'.
60958         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
60959
60960         * lib/fnmatch_.h: Readjust white space and comments to match
60961         glibc, to avoid spurious diffs.
60962
60963 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60964
60965         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
60966         2004-12-01 change by Jakub Jelinek, since this code won't compile
60967         if !LIBC.  Problem reported by Bob Proulx.
60968
60969 2007-01-23  Bruno Haible  <bruno@clisp.org>
60970
60971         * lib/striconveh.c: Include c-strcaseeq.h.
60972         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
60973         * modules/striconveh (Depends-on): Add c-strcaseeq.
60974
60975 2007-01-23  Bruno Haible  <bruno@clisp.org>
60976
60977         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
60978
60979         * modules/c-strcaseeq: New file.
60980         * lib/c-strcaseeq.h: New file.
60981
60982         * modules/streq: New file.
60983         * lib/streq.h: New file.
60984
60985 2007-01-23  Bruno Haible  <bruno@clisp.org>
60986
60987         * modules/striconveha-tests: New file.
60988         * tests/test-striconveha.c: New file.
60989
60990         * lib/striconveha.h: Include <stdbool.h>.
60991         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
60992         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
60993         (mem_iconveha_notranslit): Renamed from mem_iconveha.
60994         (mem_iconveha): New function.
60995         (str_iconveha_notranslit): Renamed from str_iconveha.
60996         (str_iconveha): New function.
60997         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
60998         c-strcase.
60999
61000 2007-01-23  Bruno Haible  <bruno@clisp.org>
61001
61002         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
61003         encodings without forgiving before trying any encoding with handler.
61004         (str_iconveha): Try all encodings without forgiving before trying any
61005         encoding with handler.
61006
61007 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
61008
61009         Import the following changes from libc.
61010
61011         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
61012
61013         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
61014
61015         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
61016
61017         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
61018         normal_bracket label.
61019
61020         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
61021
61022         [BZ #361]
61023         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
61024         to normal_bracket after fetching the next character.
61025
61026 2007-01-22  Bruno Haible  <bruno@clisp.org>
61027
61028         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
61029         argument.
61030         * lib/striconveh.c (iconv_carefully_1): New function.
61031         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
61032         argument.
61033         (str_cd_iconveh): Update.
61034         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
61035         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
61036         * tests/test-striconveh.c (MAGIC): New macro.
61037         (new_offsets): New function.
61038         (main): Test call with and without offsets.
61039
61040 2007-01-22  Bruno Haible  <bruno@clisp.org>
61041
61042         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
61043         * modules/sys_select (Makefile.am): Likewise.
61044         * modules/sys_socket (Makefile.am): Likewise.
61045         * modules/sys_time (Makefile.am): Likewise.
61046
61047 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
61048
61049         * modules/gettimeofday (License): Change from GPL to LGPL, since
61050         gettimeofday is a library function.
61051
61052 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61053
61054         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
61055
61056 2007-01-21  Bruno Haible  <bruno@clisp.org>
61057
61058         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
61059
61060 2007-01-21  Bruno Haible  <bruno@clisp.org>
61061
61062         * modules/striconveha: New file.
61063         * lib/striconveha.h: New file.
61064         * lib/striconveha.c: New file.
61065         * MODULES.html.sh (Internationalization functions): Add striconveha.
61066         * lib/striconv.c (str_iconv): Optimize the case of an empty input
61067         string.
61068         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
61069
61070 2007-01-21  Bruno Haible  <bruno@clisp.org>
61071
61072         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
61073         * lib/striconveh.c (str_iconveh): Likewise.
61074
61075 2007-01-21  Bruno Haible  <bruno@clisp.org>
61076
61077         * lib/striconveh.h (mem_iconveh): New declaration.
61078         * lib/striconveh.c (mem_iconveh): New function.
61079         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
61080
61081 2007-01-21  Bruno Haible  <bruno@clisp.org>
61082
61083         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
61084
61085         * lib/striconveh.h (mem_cd_iconveh): Change specification.
61086         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
61087         original result buffer.
61088         (str_cd_iconveh): Update.
61089         * tests/test-striconveh.c (main): Update.
61090
61091         * lib/striconv.h (mem_cd_iconv): Change specification.
61092         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
61093         result buffer.
61094         (str_cd_iconv): Update.
61095         * tests/test-striconv.c (main): Update.
61096
61097 2007-01-21  Bruno Haible  <bruno@clisp.org>
61098
61099         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
61100
61101 2007-01-20  Jim Meyering  <jim@meyering.net>
61102
61103         * lib/userspec.c (parse_with_separator): If a user or group string
61104         starts with "+", skip the corresponding name-to-ID look-up, since
61105         such a look-up must fail: user and group names may not include "+".
61106
61107 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
61108
61109         * lib/poll.c: Include sys/time.h and time.h unconditionally,
61110         since we now assume the sys_time module.
61111         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
61112         check for sys/time.h; no longer needed.
61113         * modules/poll (Depends-on): Depend on sys_time.
61114
61115 2007-01-18  Bruno Haible  <bruno@clisp.org>
61116
61117         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
61118         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
61119
61120         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
61121         gettimeofday.
61122
61123         * tests/test-gettimeofday.c: Include <time.h>.
61124         (dummy): Remove variable.
61125
61126         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
61127         gl_HEADER_SYS_TIME_H.
61128         (gl_HEADER_SYS_TIME_H): New macro.
61129
61130         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
61131         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61132         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
61133         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
61134         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61135         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
61136         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
61137         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61138         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
61139         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
61140         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61141
61142         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
61143         last change; it caused a compilation error when cross-compiling to
61144         Cygwin.
61145
61146 2007-01-18  Jim Meyering  <jim@meyering.net>
61147
61148         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
61149         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
61150         than the race-prone "test -d sys || mkdir sys".
61151         (configure.ac): Use AC_PROG_MKDIR_P.
61152         * modules/sys_select: Likewise.
61153         * modules/sys_socket: Likewise.
61154         * modules/sys_time: Likewise.
61155
61156 2007-01-18  Eric Blake  <ebb9@byu.net>
61157
61158         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
61159         replace gettimeofday.
61160         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
61161         name, to avoid infinite recursion.
61162
61163 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
61164
61165         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
61166         module sys_time.
61167         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
61168         assume timespec.h defines struct timeval.
61169         * lib/settime.c: Likewise.
61170         * lib/utimens.c: Likewise.
61171         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
61172         since we now assume the gettimeofday module.
61173         * lib/tempname.c (__gen_tempname): Likewise.
61174         * lib/gettimeofday.h: Remove.
61175         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
61176         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
61177         Include <time.h>, for 'time()'.
61178         (localtime_buffer_addr): Also use this workaround if
61179         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
61180         to simplify the uses.  All uses changed.
61181         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
61182         that #undef is inside {}, and 'const' follows type name consistently.
61183         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
61184         (gettimeofday): Do not use the maximum possible value for
61185         tv->tv_usec, since that might break usages other than ls.c.
61186         Instead, we'll leave ls.c alone.  This undoes today's patch
61187         by Bruno.  Add a compile-time warning for 1s-clock resolution;
61188         we've never observed the problem but might as well keep the
61189         canary.
61190         * lib/nanosleep.c: Include timespec.h first, for interface check.
61191         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
61192         now assume the sys_time module.
61193         * lib/tempname.c: Likewise.
61194         * lib/timespec.h: Likewise.
61195         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
61196         needed.
61197         * lib/strftime.c: Likewise.
61198         * lib/timespec.h: Likewise.
61199         * lib/posixtm.c: Include posixtm.h first, for interface check.
61200         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
61201         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
61202         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
61203         * lib/sys_time_.h: New file.
61204         * lib/timespec.h (struct timespec): Use long int, not long.
61205         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
61206         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
61207         Remove obsolescent call to AC_HEADER_TIME.
61208         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
61209         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
61210         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
61211         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
61212         Likewise.
61213         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
61214         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
61215         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
61216         into the sys_time module.  Check for gettimeofday just once.
61217         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
61218         for gettimeofday signature to just check the signature.  Merely
61219         compile it, since linking doesn't test signature.  Improve test for
61220         whether gettimeofday.o is actually needed.
61221         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
61222         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
61223         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
61224         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61225         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
61226         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
61227         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
61228         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
61229         than worrying about sys/time.h.
61230         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
61231         Don't bother worrying about TIME_WITH_SYS_TIME.
61232         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
61233         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
61234         * m4/sys_time_h.m4: New file.
61235         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
61236         Don't include sys/time.h.  Return from main rather than exiting.
61237         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
61238         all uses changed.
61239         * modules/gethrxtime (Depends-on): Add sys_time.
61240         * modules/gettime (Depends-on): Likewise.
61241         * modules/gettimeofday (Depends-on): Likewise.
61242         * modules/nanosleep (Depends-on): Likewise.
61243         * modules/settime (Depends-on): Likewise.
61244         * modules/tempname (Depends-on): Likewise.
61245         * modules/utimens (Depends-on): Likewise.
61246         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
61247         (Include): Change back to <sys/time.h>.
61248         (Maintainer): Add self.
61249         * modules/sys_time: New file.
61250         * modules/tempname (Depends-on): Add gettimeofday.
61251         * tests/test-gettimeofday.c: Include <sys/time.h>
61252         rather than gettimeofday.h.
61253
61254 2007-01-17  Bruno Haible  <bruno@clisp.org>
61255
61256         * gnulib-tool (func_get_license): Revert last patch. Instead, let
61257         the license default to GPL.
61258         (func_create_testdir): Don't complain if a module is LGPL and its
61259         tests module depends on GPLed modules.
61260
61261 2007-01-17  Bruno Haible  <bruno@clisp.org>
61262
61263         * lib/gettimeofday.c (gettimeofday): Add code for the case
61264         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
61265         maximum possible value for tv->tv_usec, rather than the minimum one.
61266
61267 2005-10-08  Martin Lambers  <marlam@marlam.de>
61268 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
61269 2007-01-16  Bruno Haible  <bruno@clisp.org>
61270
61271         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
61272         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
61273         gl_FUNC_GETTIMEOFDAY.
61274         (Include): Add gettimeofday.h.
61275         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
61276         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
61277         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
61278         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
61279         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
61280         * lib/gettimeofday.h: New file.
61281         * lib/gettimeofday.c: Include <sys/timeb.h>.
61282         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
61283         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
61284         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
61285         fall back on time().
61286
61287         * tests/test-gettimeofday.c: New file.
61288         * modules/gettimeofday-tests: New file.
61289
61290 2007-01-16  Eric Blake  <ebb9@byu.net>
61291
61292         * modules/fnmatch (Depends-on): Depend on wchar.
61293         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
61294         * m4/fnmatch.m4: Likewise.
61295         * modules/mbchar (Makefile.am): Assume <wchar.h>.
61296         * m4/mbchar.m4: Likewise.
61297         * modules/mbswidth (Depends-on): Depend on wchar.
61298         * lib/mbswidth.c: Assume <wchar.h>.
61299         * m4/mbswidth.m4: Likewise.
61300         * modules/quotearg (Depends-on): Depend on wchar.
61301         * lib/quotearg.c: Assume <wchar.h>.
61302         * m4/quotearg.m4: Likewise.
61303         * modules/regex (Depends-on): Depend on wchar.
61304         * lib/regex_internal.h: Assume <wchar.h>.
61305         * m4/regex.m4: Likewise.
61306         * modules/stdint (Depends-on): Depend on wchar.
61307         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
61308         * m4/stdint.m4: Likewise.
61309         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
61310         * modules/strftime (Depends-on): Depend on wchar.
61311         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
61312         * modules/strtol (Depends-on): Depend on wchar.
61313         * lib/strtol.c: Assume <wchar.h>.
61314         * modules/wcwidth (Depends-on): Depend on wchar.
61315         * lib/wcwidth.h: Assume <wchar.h>.
61316         * m4/wcwidth.m4: Likewise.
61317
61318 2007-01-16  Bruno Haible  <bruno@clisp.org>
61319
61320         * modules/csharpexec-script: New, created from...
61321         * modules/csharpexec: ... this.
61322
61323 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
61324
61325         * modules/javaexec-script: New, created from...
61326         * modules/javaexec: ... this.
61327
61328 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61329
61330         * modules/poll (Dependencies): Add sys_select.
61331
61332 2007-01-15  Jim Meyering  <jim@meyering.net>
61333
61334         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
61335         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
61336         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
61337         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
61338
61339 2007-01-15  Bruno Haible  <bruno@clisp.org>
61340
61341         * modules/striconveh: New file.
61342         * lib/striconveh.h: New file.
61343         * lib/striconveh.c: New file.
61344         * MODULES.html.sh (Internationalization functions): Add striconveh.
61345
61346         * modules/striconveh-tests: New file.
61347         * tests/test-striconveh.c: New file.
61348
61349 2007-01-15  Bruno Haible  <bruno@clisp.org>
61350
61351         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
61352         not from GNU libiconv or GNU libc.
61353
61354 2007-01-15  Bruno Haible  <bruno@clisp.org>
61355
61356         * doc/gnulib-intro.texi (Copyright): Explain the different license
61357         terms for module descriptions, autoconf macros, tests, documentation.
61358
61359 2007-01-14  Bruno Haible  <bruno@clisp.org>
61360
61361         * modules/striconv-tests: New file.
61362         * tests/test-striconv.c: New file.
61363
61364 2007-01-14  Bruno Haible  <bruno@clisp.org>
61365
61366         * modules/iconv-tests: New file.
61367         * tests/test-iconv.c: New file.
61368
61369 2007-01-14  Bruno Haible  <bruno@clisp.org>
61370
61371         * gnulib-tool (func_get_license): For test modules, use the license of
61372         the main module.
61373
61374 2007-01-14  Bruno Haible  <bruno@clisp.org>
61375
61376         * modules/iconv (Include): Clarify that <iconv.h> can only be included
61377         if iconv is found to exist.
61378
61379 2007-01-14  Bruno Haible  <bruno@clisp.org>
61380
61381         * modules/c-ctype-tests: New file.
61382         * tests/test-c-ctype.c: New file.
61383
61384 2007-01-14  Bruno Haible  <bruno@clisp.org>
61385
61386         * modules/binary-io-tests: New file.
61387         * tests/test-binary-io.sh: New file.
61388         * tests/test-binary-io.c: New file.
61389
61390 2007-01-14  Bruno Haible  <bruno@clisp.org>
61391
61392         * modules/array-oset-tests: New file.
61393         * tests/test-array_oset.c: New file.
61394
61395 2007-01-14  Bruno Haible  <bruno@clisp.org>
61396
61397         * modules/array-list-tests: New file.
61398         * tests/test-array_list.c: New file.
61399
61400 2007-01-14  Bruno Haible  <bruno@clisp.org>
61401
61402         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
61403         and make.
61404         Reported by Simon Josefsson in
61405         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
61406
61407 2007-01-14  Bruno Haible  <bruno@clisp.org>
61408
61409         * modules/allocsa-tests: New file.
61410         * tests/test-allocsa.c: New file.
61411
61412 2007-01-14  Bruno Haible  <bruno@clisp.org>
61413
61414         * modules/fchdir (Depends-on): Add absolute-header.
61415         * modules/unistd (Depends-on): Likewise.
61416
61417 2006-12-30  Bruno Haible  <bruno@clisp.org>
61418
61419         * modules/fchdir: New file.
61420         * modules/unistd (Files): Add lib/unistd_.h.
61421         (Makefile.am): Generate unistd.h from unistd_.h.
61422         * lib/fchdir.c: New file.
61423         * lib/dirent_.h: New file.
61424         * lib/unistd_.h: New file.
61425         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
61426         * m4/fchdir.m4: New file.
61427         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
61428         (gl_HEADER_UNISTD): Invoke it.
61429         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
61430         function.
61431         * lib/backupfile.c (opendir, closedir): Undefine.
61432         * lib/chown.c (open, close): Undefine.
61433         * lib/clean-temp.c (open, close): Undefine.
61434         * lib/copy-file.c (open, close): Undefine.
61435         * lib/execute.c (open, close): Undefine.
61436         * lib/fsusage.c (open, close): Undefine.
61437         * lib/gc-gnulib.c (open, close): Undefine.
61438         * lib/getcwd.c (opendir, closedir): Undefine.
61439         * lib/glob.c (opendir, closedir): Undefine.
61440         * lib/javacomp.c (open, close): Undefine.
61441         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
61442         * lib/openat-proc.c (open, close): Undefine.
61443         * lib/pagealign_alloc.c (open, close): Undefine.
61444         * lib/pipe.c (open, close): Undefine.
61445         * lib/progreloc.c (open, close): Undefine.
61446         * lib/savedir.c (opendir, closedir): Undefine.
61447         * lib/utime.c (open, close): Undefine.
61448         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
61449
61450 2007-01-10  Bruno Haible  <bruno@clisp.org>
61451
61452         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
61453
61454 2007-01-12  Eric Blake  <ebb9@byu.net>
61455
61456         Provide a robust <wchar.h>.  Further simplifications are now
61457         possible in other modules, but not included here.
61458         * modules/wchar: New module.
61459         * m4/wchar.m4: New file.
61460         * lib/wchar_.h: Likewise.
61461         * modules/mbchar (Depends-on): Depend on wchar, as the first use
61462         of the new module.
61463         * MODULES.html.sh (Extended multibyte and wide character utilities):
61464         New section.
61465
61466 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
61467
61468         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
61469         to a reasonable default for memory allocation.
61470         (xreadlink): Don't allocate a huge buffer, to work around a buggy
61471         file system that reports garbage st_size values for symlinks.
61472         Problem reported by Liyang Hu.
61473
61474 2007-01-11  Simon Josefsson  <simon@josefsson.org>
61475
61476         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
61477         Emacs .#* auto-save files).
61478
61479 2007-01-11  Bruno Haible  <bruno@clisp.org>
61480
61481         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
61482         directory.
61483
61484 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
61485
61486         Use @...@ consistently in lib/wctype_.h.
61487         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
61488         on it being set to 1 or 0.
61489         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
61490         go back to AC_SUBSTing it.
61491         * modules/wctype (Makefile.am): Undo previous change.
61492
61493 2007-01-10  Eric Blake  <ebb9@byu.net>
61494
61495         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
61496         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
61497         * modules/wctype (Makefile.am): Likewise.
61498         Reported by Chris McGuire.
61499
61500 2007-01-10  Jim Meyering  <jim@meyering.net>
61501
61502         fts.c: a small readability/maintainability improvement
61503         * lib/fts.c (fts_read): Make this code slightly more readable and
61504         maintainable by hoisting the "sp->fts_cur = p" assignments to
61505         immediately follow the statements that set P.  Derived from
61506         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
61507
61508 2007-01-10  Eric Blake  <ebb9@byu.net>
61509
61510         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
61511         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
61512         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61513         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
61514         Reported by Chris McGuire.
61515
61516 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61517
61518         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
61519         in sed script.
61520
61521 2007-01-09  Bruno Haible  <bruno@clisp.org>
61522
61523         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
61524         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
61525         variables.
61526         (func_module): Use them.
61527
61528 2007-01-09  Bruno Haible  <bruno@clisp.org>
61529
61530         * modules/unistr/base: New file.
61531         * lib/unistr.h: New file.
61532
61533         * modules/unistr/u8-to-u16: New file.
61534         * lib/unistr/u8-to-u16.c: New file.
61535
61536         * modules/unistr/u8-to-u32: New file.
61537         * lib/unistr/u8-to-u32.c: New file.
61538
61539         * modules/unistr/u16-to-u8: New file.
61540         * lib/unistr/u16-to-u8.c: New file.
61541
61542         * modules/unistr/u16-to-u32: New file.
61543         * lib/unistr/u16-to-u32.c: New file.
61544
61545         * modules/unistr/u32-to-u8: New file.
61546         * lib/unistr/u32-to-u8.c: New file.
61547
61548         * modules/unistr/u32-to-u16: New file.
61549         * lib/unistr/u32-to-u16.c: New file.
61550
61551         * modules/unistr/u8-check: New file.
61552         * modules/unistr/u16-check: New file.
61553         * modules/unistr/u32-check: New file.
61554         * lib/unistr/u8-check.c: New file.
61555         * lib/unistr/u16-check.c: New file.
61556         * lib/unistr/u32-check.c: New file.
61557
61558         * modules/unistr/u8-chr: New file.
61559         * modules/unistr/u16-chr: New file.
61560         * modules/unistr/u32-chr: New file.
61561         * lib/unistr/u8-chr.c: New file.
61562         * lib/unistr/u16-chr.c: New file.
61563         * lib/unistr/u32-chr.c: New file.
61564
61565         * modules/unistr/u8-cmp: New file.
61566         * modules/unistr/u16-cmp: New file.
61567         * modules/unistr/u32-cmp: New file.
61568         * lib/unistr/u8-cmp.c: New file.
61569         * lib/unistr/u16-cmp.c: New file.
61570         * lib/unistr/u32-cmp.c: New file.
61571
61572         * modules/unistr/u8-cpy: New file.
61573         * modules/unistr/u16-cpy: New file.
61574         * modules/unistr/u32-cpy: New file.
61575         * lib/unistr/u8-cpy.c: New file.
61576         * lib/unistr/u16-cpy.c: New file.
61577         * lib/unistr/u32-cpy.c: New file.
61578         * lib/unistr/u-cpy.h: New file.
61579
61580         * modules/unistr/u8-cpy-alloc: New file.
61581         * modules/unistr/u16-cpy-alloc: New file.
61582         * modules/unistr/u32-cpy-alloc: New file.
61583         * lib/unistr/u8-cpy-alloc.c: New file.
61584         * lib/unistr/u16-cpy-alloc.c: New file.
61585         * lib/unistr/u32-cpy-alloc.c: New file.
61586         * lib/unistr/u-cpy-alloc.h: New file.
61587
61588         * modules/unistr/u8-endswith: New file.
61589         * modules/unistr/u16-endswith: New file.
61590         * modules/unistr/u32-endswith: New file.
61591         * lib/unistr/u8-endswith.c: New file.
61592         * lib/unistr/u16-endswith.c: New file.
61593         * lib/unistr/u32-endswith.c: New file.
61594         * lib/unistr/u-endswith.h: New file.
61595
61596         * modules/unistr/u8-mblen: New file.
61597         * modules/unistr/u16-mblen: New file.
61598         * modules/unistr/u32-mblen: New file.
61599         * lib/unistr/u8-mblen.c: New file.
61600         * lib/unistr/u16-mblen.c: New file.
61601         * lib/unistr/u32-mblen.c: New file.
61602
61603         * modules/unistr/u8-mbtouc: New file.
61604         * modules/unistr/u16-mbtouc: New file.
61605         * modules/unistr/u32-mbtouc: New file.
61606         * lib/unistr/u8-mbtouc.c: New file.
61607         * lib/unistr/u16-mbtouc.c: New file.
61608         * lib/unistr/u32-mbtouc.c: New file.
61609
61610         * modules/unistr/u8-mbtouc-safe: New file.
61611         * modules/unistr/u16-mbtouc-safe: New file.
61612         * modules/unistr/u32-mbtouc-safe: New file.
61613         * lib/unistr/u8-mbtouc-safe.c: New file.
61614         * lib/unistr/u16-mbtouc-safe.c: New file.
61615         * lib/unistr/u32-mbtouc-safe.c: New file.
61616
61617         * modules/unistr/u8-move: New file.
61618         * modules/unistr/u16-move: New file.
61619         * modules/unistr/u32-move: New file.
61620         * lib/unistr/u8-move.c: New file.
61621         * lib/unistr/u16-move.c: New file.
61622         * lib/unistr/u32-move.c: New file.
61623         * lib/unistr/u-move.h: New file.
61624
61625         * modules/unistr/u8-next: New file.
61626         * modules/unistr/u16-next: New file.
61627         * modules/unistr/u32-next: New file.
61628         * lib/unistr/u8-next.c: New file.
61629         * lib/unistr/u16-next.c: New file.
61630         * lib/unistr/u32-next.c: New file.
61631
61632         * modules/unistr/u8-prev: New file.
61633         * modules/unistr/u16-prev: New file.
61634         * modules/unistr/u32-prev: New file.
61635         * lib/unistr/u8-prev.c: New file.
61636         * lib/unistr/u16-prev.c: New file.
61637         * lib/unistr/u32-prev.c: New file.
61638
61639         * modules/unistr/u8-set: New file.
61640         * modules/unistr/u16-set: New file.
61641         * modules/unistr/u32-set: New file.
61642         * lib/unistr/u8-set.c: New file.
61643         * lib/unistr/u16-set.c: New file.
61644         * lib/unistr/u32-set.c: New file.
61645         * lib/unistr/u-set.h: New file.
61646
61647         * modules/unistr/u8-startswith: New file.
61648         * modules/unistr/u16-startswith: New file.
61649         * modules/unistr/u32-startswith: New file.
61650         * lib/unistr/u8-startswith.c: New file.
61651         * lib/unistr/u16-startswith.c: New file.
61652         * lib/unistr/u32-startswith.c: New file.
61653         * lib/unistr/u-startswith.h: New file.
61654
61655         * modules/unistr/u8-stpcpy: New file.
61656         * modules/unistr/u16-stpcpy: New file.
61657         * modules/unistr/u32-stpcpy: New file.
61658         * lib/unistr/u8-stpcpy.c: New file.
61659         * lib/unistr/u16-stpcpy.c: New file.
61660         * lib/unistr/u32-stpcpy.c: New file.
61661         * lib/unistr/u-stpcpy.h: New file.
61662
61663         * modules/unistr/u8-stpncpy: New file.
61664         * modules/unistr/u16-stpncpy: New file.
61665         * modules/unistr/u32-stpncpy: New file.
61666         * lib/unistr/u8-stpncpy.c: New file.
61667         * lib/unistr/u16-stpncpy.c: New file.
61668         * lib/unistr/u32-stpncpy.c: New file.
61669         * lib/unistr/u-stpncpy.h: New file.
61670
61671         * modules/unistr/u8-strcat: New file.
61672         * modules/unistr/u16-strcat: New file.
61673         * modules/unistr/u32-strcat: New file.
61674         * lib/unistr/u8-strcat.c: New file.
61675         * lib/unistr/u16-strcat.c: New file.
61676         * lib/unistr/u32-strcat.c: New file.
61677         * lib/unistr/u-strcat.h: New file.
61678
61679         * modules/unistr/u8-strchr: New file.
61680         * modules/unistr/u16-strchr: New file.
61681         * modules/unistr/u32-strchr: New file.
61682         * lib/unistr/u8-strchr.c: New file.
61683         * lib/unistr/u16-strchr.c: New file.
61684         * lib/unistr/u32-strchr.c: New file.
61685
61686         * modules/unistr/u8-strcmp: New file.
61687         * modules/unistr/u16-strcmp: New file.
61688         * modules/unistr/u32-strcmp: New file.
61689         * lib/unistr/u8-strcmp.c: New file.
61690         * lib/unistr/u16-strcmp.c: New file.
61691         * lib/unistr/u32-strcmp.c: New file.
61692
61693         * modules/unistr/u8-strcpy: New file.
61694         * modules/unistr/u16-strcpy: New file.
61695         * modules/unistr/u32-strcpy: New file.
61696         * lib/unistr/u8-strcpy.c: New file.
61697         * lib/unistr/u16-strcpy.c: New file.
61698         * lib/unistr/u32-strcpy.c: New file.
61699         * lib/unistr/u-strcpy.h: New file.
61700
61701         * modules/unistr/u8-strcspn: New file.
61702         * modules/unistr/u16-strcspn: New file.
61703         * modules/unistr/u32-strcspn: New file.
61704         * lib/unistr/u8-strcspn.c: New file.
61705         * lib/unistr/u16-strcspn.c: New file.
61706         * lib/unistr/u32-strcspn.c: New file.
61707         * lib/unistr/u-strcspn.h: New file.
61708
61709         * modules/unistr/u8-strdup: New file.
61710         * modules/unistr/u16-strdup: New file.
61711         * modules/unistr/u32-strdup: New file.
61712         * lib/unistr/u8-strdup.c: New file.
61713         * lib/unistr/u16-strdup.c: New file.
61714         * lib/unistr/u32-strdup.c: New file.
61715         * lib/unistr/u-strdup.h: New file.
61716
61717         * modules/unistr/u8-strlen: New file.
61718         * modules/unistr/u16-strlen: New file.
61719         * modules/unistr/u32-strlen: New file.
61720         * lib/unistr/u8-strlen.c: New file.
61721         * lib/unistr/u16-strlen.c: New file.
61722         * lib/unistr/u32-strlen.c: New file.
61723         * lib/unistr/u-strlen.h: New file.
61724
61725         * modules/unistr/u8-strmblen: New file.
61726         * modules/unistr/u16-strmblen: New file.
61727         * modules/unistr/u32-strmblen: New file.
61728         * lib/unistr/u8-strmblen.c: New file.
61729         * lib/unistr/u16-strmblen.c: New file.
61730         * lib/unistr/u32-strmblen.c: New file.
61731
61732         * modules/unistr/u8-strmbtouc: New file.
61733         * modules/unistr/u16-strmbtouc: New file.
61734         * modules/unistr/u32-strmbtouc: New file.
61735         * lib/unistr/u8-strmbtouc.c: New file.
61736         * lib/unistr/u16-strmbtouc.c: New file.
61737         * lib/unistr/u32-strmbtouc.c: New file.
61738
61739         * modules/unistr/u8-strncat: New file.
61740         * modules/unistr/u16-strncat: New file.
61741         * modules/unistr/u32-strncat: New file.
61742         * lib/unistr/u8-strncat.c: New file.
61743         * lib/unistr/u16-strncat.c: New file.
61744         * lib/unistr/u32-strncat.c: New file.
61745         * lib/unistr/u-strncat.h: New file.
61746
61747         * modules/unistr/u8-strncmp: New file.
61748         * modules/unistr/u16-strncmp: New file.
61749         * modules/unistr/u32-strncmp: New file.
61750         * lib/unistr/u8-strncmp.c: New file.
61751         * lib/unistr/u16-strncmp.c: New file.
61752         * lib/unistr/u32-strncmp.c: New file.
61753
61754         * modules/unistr/u8-strncpy: New file.
61755         * modules/unistr/u16-strncpy: New file.
61756         * modules/unistr/u32-strncpy: New file.
61757         * lib/unistr/u8-strncpy.c: New file.
61758         * lib/unistr/u16-strncpy.c: New file.
61759         * lib/unistr/u32-strncpy.c: New file.
61760         * lib/unistr/u-strncpy.h: New file.
61761
61762         * modules/unistr/u8-strnlen: New file.
61763         * modules/unistr/u16-strnlen: New file.
61764         * modules/unistr/u32-strnlen: New file.
61765         * lib/unistr/u8-strnlen.c: New file.
61766         * lib/unistr/u16-strnlen.c: New file.
61767         * lib/unistr/u32-strnlen.c: New file.
61768         * lib/unistr/u-strnlen.h: New file.
61769
61770         * modules/unistr/u8-strpbrk: New file.
61771         * modules/unistr/u16-strpbrk: New file.
61772         * modules/unistr/u32-strpbrk: New file.
61773         * lib/unistr/u8-strpbrk.c: New file.
61774         * lib/unistr/u16-strpbrk.c: New file.
61775         * lib/unistr/u32-strpbrk.c: New file.
61776         * lib/unistr/u-strpbrk.h: New file.
61777
61778         * modules/unistr/u8-strrchr: New file.
61779         * modules/unistr/u16-strrchr: New file.
61780         * modules/unistr/u32-strrchr: New file.
61781         * lib/unistr/u8-strrchr.c: New file.
61782         * lib/unistr/u16-strrchr.c: New file.
61783         * lib/unistr/u32-strrchr.c: New file.
61784
61785         * modules/unistr/u8-strspn: New file.
61786         * modules/unistr/u16-strspn: New file.
61787         * modules/unistr/u32-strspn: New file.
61788         * lib/unistr/u8-strspn.c: New file.
61789         * lib/unistr/u16-strspn.c: New file.
61790         * lib/unistr/u32-strspn.c: New file.
61791         * lib/unistr/u-strspn.h: New file.
61792
61793         * modules/unistr/u8-strstr: New file.
61794         * modules/unistr/u16-strstr: New file.
61795         * modules/unistr/u32-strstr: New file.
61796         * lib/unistr/u8-strstr.c: New file.
61797         * lib/unistr/u16-strstr.c: New file.
61798         * lib/unistr/u32-strstr.c: New file.
61799         * lib/unistr/u-strstr.h: New file.
61800
61801         * modules/unistr/u8-strtok: New file.
61802         * modules/unistr/u16-strtok: New file.
61803         * modules/unistr/u32-strtok: New file.
61804         * lib/unistr/u8-strtok.c: New file.
61805         * lib/unistr/u16-strtok.c: New file.
61806         * lib/unistr/u32-strtok.c: New file.
61807         * lib/unistr/u-strtok.h: New file.
61808
61809         * modules/unistr/u8-uctomb: New file.
61810         * modules/unistr/u16-uctomb: New file.
61811         * modules/unistr/u32-uctomb: New file.
61812         * lib/unistr/u8-uctomb.c: New file.
61813         * lib/unistr/u16-uctomb.c: New file.
61814         * lib/unistr/u32-uctomb.c: New file.
61815
61816         * MODULES.html.sh (Unicode string functions): Add the new modules.
61817
61818 2007-01-08  Bruno Haible  <bruno@clisp.org>
61819
61820         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
61821         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
61822         subdirectories.
61823
61824 2007-01-08  Karl Berry  <karl@gnu.org>
61825
61826         * doc/error.texi: mention that main() fns must set program_name
61827         when progname is used.
61828
61829 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
61830
61831         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
61832         WCTYPE_H is empty, for the benefit of builds from non-distclean
61833         directories.  Problem reported by Eric Blake in
61834         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
61835
61836 2007-01-08  Bruno Haible  <bruno@clisp.org>
61837
61838         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
61839         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
61840         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
61841         PROVIDE_CANONICALIZE_FILENAME_MODE.
61842         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
61843
61844 2007-01-08  Bruno Haible  <bruno@clisp.org>
61845
61846         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
61847         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
61848         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
61849         * lib/fts.c: Likewise.
61850         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
61851
61852 2006-12-25  Bruno Haible  <bruno@clisp.org>
61853
61854         * modules/utf8-ucs4-safe: New file.
61855         * lib/utf8-ucs4-safe.h: New file.
61856         * lib/unistr/utf8-ucs4-safe.c: New file.
61857
61858         * modules/utf16-ucs4-safe: New file.
61859         * lib/utf16-ucs4-safe.h: New file.
61860         * lib/unistr/utf16-ucs4-safe.c: New file.
61861
61862         * MODULES.html.sh (Unicode string functions): Add the new modules.
61863
61864 2007-01-08  Bruno Haible  <bruno@clisp.org>
61865
61866         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
61867         (Depends-on): Add unitypes.
61868         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61869         (u8_mbtouc_aux): Move out to separate file.
61870         (u8_mbtouc): Use ucs4_t, uint8_t types.
61871         * lib/unistr/utf8-ucs4.c: New file.
61872
61873         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
61874         (Depends-on): Add unitypes.
61875         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61876         (u16_mbtouc_aux): Move out to separate file.
61877         (u16_mbtouc): Use ucs4_t, uint16_t types.
61878         * lib/unistr/utf16-ucs4.c: New file.
61879
61880         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
61881         (Depends-on): Add unitypes.
61882         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
61883         (u8_uctomb_aux): Move out to separate file.
61884         (u8_uctomb): Use ucs4_t, uint8_t types.
61885         * lib/unistr/ucs4-utf8.c: New file.
61886
61887         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
61888         (Depends-on): Add unitypes.
61889         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
61890         (u16_uctomb_aux): Move out to separate file.
61891         (u16_uctomb): Use ucs4_t, uint16_t types.
61892         * lib/unistr/ucs4-utf16.c: New file.
61893
61894 2006-12-25  Bruno Haible  <bruno@clisp.org>
61895
61896         * modules/unitypes: New file.
61897         * lib/unitypes.h: New file.
61898         * MODULES.html.sh (func_all_modules): New section "Unicode string
61899         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
61900         this section. Add unitypes.
61901
61902 2007-01-08  Bruno Haible  <bruno@clisp.org>
61903
61904         Avoid variable names that conflict with those from libtool.
61905         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
61906         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
61907         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
61908         library_names_spec to acl_library_names_spec, hardcode_* to
61909         acl_hardcode_*.
61910         Reported by Ralf Wildenhues.
61911
61912 2007-01-08  Bruno Haible  <bruno@clisp.org>
61913
61914         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
61915         definition.
61916         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
61917         definition.
61918         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
61919         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
61920         definition.
61921         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
61922         definition.
61923         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
61924         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
61925         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
61926         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
61927         definition.
61928         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
61929         definition.
61930         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
61931         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
61932         GC_USE_<algorithm>.
61933         * lib/gc-libgcrypt.c: Likewise.
61934         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
61935         * modules/gc-arctwo (configure.ac): Likewise.
61936         * modules/gc-des (configure.ac): Likewise.
61937         * modules/gc-hmac-md5 (configure.ac): Likewise.
61938         * modules/gc-hmac-sha1 (configure.ac): Likewise.
61939         * modules/gc-md2 (configure.ac): Likewise.
61940         * modules/gc-md4 (configure.ac): Likewise.
61941         * modules/gc-md5 (configure.ac): Likewise.
61942         * modules/gc-random (configure.ac): Likewise.
61943         * modules/gc-rijndael (configure.ac): Likewise.
61944         * modules/gc-sha1 (configure.ac): Likewise.
61945
61946 2007-01-08  Bruno Haible  <bruno@clisp.org>
61947
61948         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
61949         macro definition.
61950         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
61951         definition.
61952         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
61953         definition.
61954         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
61955         * modules/fcntl-safer (configure.ac): Likewise.
61956         * modules/fopen-safer (configure.ac): Likewise.
61957         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
61958         GNULIB_FWRITEERROR macro definition.
61959
61960 2007-01-08  Bruno Haible  <bruno@clisp.org>
61961
61962         * m4/gnulib-common.m4: New file.
61963         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
61964         (func_get_filelist): Add m4/gnulib-common.m4.
61965
61966 2007-01-08  Bruno Haible  <bruno@clisp.org>
61967
61968         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
61969         command.
61970
61971 2007-01-08  Jim Meyering  <jim@meyering.net>
61972
61973         Use a more robust test for a "can't happen" condition.
61974         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
61975         narrowed the st_size value.  Presuming the "can't happen" condition
61976         is true, that narrowing could conceivably convert an invalid st_size
61977         value into a valid one.  Instead, use a change based on Matthew
61978         Woehlke's original patch.
61979
61980         Slight readability improvement: use an assert-like macro
61981         in place of literal "abort ()" uses.
61982         * lib/fts.c (fts_assert): Define.
61983         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
61984         Use this macro instead of a bare 'abort'.
61985
61986 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
61987
61988         Don't worry about using IRIX 5.3's wctype.h broken definitions;
61989         simply work around them.
61990         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
61991         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
61992         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
61993         declaring.
61994         Don't bother to define as macros, since the standard doesn't require it.
61995         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
61996         longer worry about IRIX 5.3.
61997         (HAVE_WCTYPE_CTMP_BUG): Remove.
61998
61999 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
62000
62001         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
62002         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
62003         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
62004         Problems reported by Georg Schwarz for IRIX 5.3.
62005
62006         * gnulib-tool (autoconf_minversion): Take the maximum version number
62007         found, not the minimum.  Problem reported by James Youngman.
62008
62009 2007-01-03  Karl Berry  <karl@gnu.org>
62010
62011         * doc/error.texi: new file, explaining interaction with progname.
62012         * doc/gnulib.texi: include it.  Update copyright.
62013
62014 2007-01-03  Simon Josefsson  <simon@josefsson.org>
62015
62016         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
62017         AC_CANONICAL_HOST, to improve autobuild outputs.
62018
62019 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
62020             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
62021
62022         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
62023         sockets, server sockets, and other file descriptors.  Count errors
62024         to compute the return value.  Reorder the code a bit to be easier
62025         to follow.  Don't set event bits that were not requested (except
62026         POLLERR and POLLHUP).
62027
62028 2007-01-01  Bruno Haible  <bruno@clisp.org>
62029
62030         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
62031
62032 2007-01-03  Jim Meyering  <jim@meyering.net>
62033
62034         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
62035
62036 2007-01-02  Bruno Haible  <bruno@clisp.org>
62037
62038         * modules/settime (Include): Require timespec.h.
62039         * modules/nanosleep (Include): Likewise.
62040
62041 2007-01-01  Bruno Haible  <bruno@clisp.org>
62042
62043         * gnulib-tool (func_emit_copyright_notice): Bump year.
62044         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
62045
62046 2007-01-01  Bruno Haible  <bruno@clisp.org>
62047
62048         Improve support for OpenBSD.
62049         * build-aux/config.rpath (libname_spec): Export.
62050         (library_names_spec): New variable. Export.
62051         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
62052         library_names_spec from the config.rpath output. Locate shared library
62053         through the name pattern in library_names_spec.
62054
62055 2007-01-01  Eric Blake  <ebb9@byu.net>
62056
62057         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
62058
62059 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
62060
62061         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
62062         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
62063         assume the C locale, and avoid an "eval" that could cause trouble.
62064         Problem with SORT reported by Bob Proulx.
62065
62066         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
62067         Define.  Trivial patch from Henning Nielsen Lund, originally
62068         sent to bug-grep@gnu.org today.
62069
62070 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
62071
62072         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
62073         struct stat.  Problem reported by Henning Nielsen Lund.
62074         * lib/acl.c: Include acl.h first, to check interface.  Don't
62075         bother to include sys/types.h and sys/stat.h again.
62076
62077 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
62078
62079         Import the following change from libc; problem reported by
62080         Sven Verdoolaege.
62081
62082         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
62083
62084         [BZ #1373]
62085         * lib/argp.h: Remove __NTH for __argp_usage inline function.
62086
62087 2006-12-28  Jim Meyering  <jim@meyering.net>
62088
62089         * build-aux/announce-gen: Do not assume that the package
62090         builds any of tar.gz, tar.bz2, and .xdelta files.
62091         Suggestion from Simon Josefsson.
62092
62093 2006-12-28  Simon Josefsson  <simon@josefsson.org>
62094
62095         * modules/announce-gen: New file.
62096
62097 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
62098
62099         * lib/mbchar.h: Just include <wctype.h>; the wctype module
62100         handles its gotchas now.
62101         * lib/mbswidth.c: Likewise.
62102         * lib/wcwidth.h: Likewise.
62103         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
62104         and iswcntrl; the wctype module does this stuff now.
62105         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
62106         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
62107         * modules/mbchar (Depends-on): Add wctype.
62108         * modules/mbswidth (Depends-on): Likewise.
62109         * modules/wcwidth (Depends-on): Likewise.
62110
62111 2006-12-27  Eric Blake  <ebb9@byu.net>
62112
62113         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
62114         module uses more than what <wctype.h> is required to provide.
62115
62116 2006-12-26  Eric Blake  <ebb9@byu.net>
62117
62118         * gnulib-tool (sed_extract_prog): Avoid space-tab.
62119
62120 2006-12-26  Eric Blake  <ebb9@byu.net>
62121
62122         * modules/absolute-header: New module.
62123         * modules/fcntl (Depends-on): Depend on it.
62124         * modules/inttypes (Depends-on): Likewise.
62125         * modules/stdint (Depends-on): Likewise.
62126         * modules/sys_stat (Depends-on): Likewise.
62127         * modules/wctype (Depends-on): Likewise.
62128         * MODULES.html.sh (Support for building libraries and
62129         executables): Document it.
62130
62131 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
62132
62133         * gnulib-tool (SED): Remove, undoing previous change.
62134         The problem was that it broke coreutils on Solaris, because
62135         "sed --posix" leaked into a makefile.
62136         (sed): New alias, if 'alias' and GNU sed.
62137
62138 2006-12-24  Jim Meyering  <jim@meyering.net>
62139
62140         Work around an fchownat bug in glibc-2.4:
62141         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
62142         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
62143         in spite of the -P option.
62144         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
62145         New macros.
62146         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
62147         * modules/openat (Files): Add lib/fchownat.c.
62148         * lib/openat.c (fchownat): Don't define here.  Move to...
62149         * lib/fchownat.c: ...this new file.
62150
62151 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
62152
62153         Fix bug reported by Bruno Haible in
62154         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
62155         where quotearg.c didn't compile on Mac OS X 10.2 because it
62156         lacks <wchar.h> and wint_t.
62157         * lib/wctype_.h (__wctype_wint_t): New type.
62158         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
62159         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
62160         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
62161         Arg is now of type __wctype_wint_t, not wint_t.
62162         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
62163         substitute HAVE_WINT_T.
62164         * modules/wctype (Files): Add m4/wint_t.m4.
62165         (wctype.h): Substitute HAVE_WINT_T.
62166
62167 2006-12-23  Bruno Haible  <bruno@clisp.org>
62168
62169         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
62170
62171 2006-12-23  Bruno Haible  <bruno@clisp.org>
62172
62173         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
62174         S_ISLNK.
62175         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
62176         mingw.
62177
62178 2006-12-22  Bruno Haible  <bruno@clisp.org>
62179
62180         * lib/copy-file.c: Include acl.h.
62181         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
62182         Close the file descriptors only after being done with copy_acl.
62183         * modules/copy-file (Depends-on): Add acl.
62184
62185 2006-12-22  Bruno Haible  <bruno@clisp.org>
62186
62187         * gnulib-tool (SED): New variable.
62188         Use $SED instead of sed everywhere.
62189
62190 2006-12-22  Bruno Haible  <bruno@clisp.org>
62191
62192         * modules/no-c++: New file.
62193         * m4/no-c++.m4: New file.
62194         * MODULES.html.sh (Support for building libraries and executables):
62195         Add no-c++.
62196
62197 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
62198
62199         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
62200         Include <limits.h>, and use its INT_MAX to rewrite the
62201         j loop so that it does not overflow 'int'.  Problem reported by
62202         Ralf Wildenhues in
62203         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
62204         Play it safe by shifting left by 1 rather than multiplying by 2,
62205         as GCC is less likely to optimize this away when the value
62206         is signed (when it assumes overflow leads to undefined behavior).
62207         Also, don't assume time_t uses two's complement.
62208
62209 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
62210
62211         * MODULES.html.sh: New module wctype.
62212         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
62213         * lib/fnmatch.c: Don't bother to include <wchar.h> before
62214         <wctype.h>, since the new wctype module should fix this.
62215         * lib/quotearg.c: Include <wctype.h> unconditionally, since
62216         the wctype module should arrange for it.
62217         * lib/regex_internal.h: Likewise.
62218         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
62219         since the wctype module should handle this now.
62220         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
62221         * modules/fnmatch (Depends-on): Add wctype.
62222         * modules/quotearg (Depends-on): Likewise.
62223         * modules/regex (Depends-on): Likewise.
62224
62225 2006-12-19  Bruno Haible  <bruno@clisp.org>
62226
62227         * lib/strdup.h [C++]: Wrap definitions in extern "C".
62228         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
62229
62230 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62231
62232         * modules/savewd (Depends-on): Fix dependency on fcntl.
62233
62234 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62235
62236         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
62237         conforms to C99, rather than relying on the user's environment
62238         setting of STDINT_H.
62239
62240 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
62241         and Eric Blake  <ebb9@byu.net>
62242
62243         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
62244         This is more consistent with the other defines here.
62245         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
62246         Port to z/OS.  Problem reported by Paul Gilmartin.
62247         Change local vars to use gl_ prefix rather than ac_.
62248         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
62249         with other defines.
62250         * modules/double-slash-root: New module.
62251         * modules/dirname (Files): Remove m4/double-slash-root.m4.
62252         (Depends-on): Add double-slash-root.
62253         * MODULES.html.sh (File system functions): Mention new module.
62254
62255 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
62256
62257         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
62258         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
62259         This is for the benefit of gzip, which doesn't do i18n.
62260
62261 2006-12-12  Jim Meyering  <jim@meyering.net>
62262
62263         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
62264         Reported by Andreas Schwab <schwab@suse.de>.
62265
62266 2006-12-12  Bruno Haible  <bruno@clisp.org>
62267
62268         Merge these changes.
62269         2006-09-05  Bruno Haible  <bruno@clisp.org>
62270         * lib/iconvme.c (iconv_string): No need to save and restore errno when
62271         iconv_alloc succeeded.
62272         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
62273         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
62274         test for " && dest " at the end - dest is always != NULL there. Call
62275         iconv with 4xNULL arguments initially, to reset the state. Call iconv
62276         with 2xNULL arguments, also to flush the state storage. Handle the
62277         IRIX iconv behaviour. Realloc the final result, to throw away unused
62278         memory.
62279
62280 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
62281
62282         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
62283         and fchmodat unconditionally, since glibc 2.4 has them.
62284         Problem reported by Arkadiusz Miskiewicz.
62285
62286 2006-12-10  Bruno Haible  <bruno@clisp.org>
62287
62288         * gnulib-tool (func_import): Show the include files only for those
62289         modules that are copied and specified.
62290         Reported by Karl Berry.
62291
62292 2006-12-08  Jim Meyering  <jim@meyering.net>
62293
62294         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
62295         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
62296
62297         * build-aux/announce-gen: Add two new options, both optional:
62298         --bootstrap-tools=TOOL_LIST
62299               a comma-separated list of tools, e.g.,
62300               autoconf,automake,bison,gnulib
62301         --gnulib-snapshot-date=DATE
62302               if gnulib is in the bootstrap tool list,
62303               then report this as the snapshot date.
62304               If not specified, use the current date/time.
62305               If you specify a date here, be sure it's UTC.
62306
62307 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62308
62309         * tests/test-argp-2.sh: Fix test to match actual output.
62310         (func_compare): Fix sed script to be portable.
62311
62312 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
62313
62314         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
62315         workaround for this case.  It is not autoconfigured now; offhand
62316         it's hard to see how to autoconfigure it.
62317
62318 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
62319
62320         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
62321         a directory that is about to be chowned.  Such a directory's
62322         initial file permissions should permit the owner only and this
62323         should not be changed until after the chown, since the group and
62324         other bits would be incorrect if they granted permission before
62325         the chown.
62326
62327         Fix porting problem for iswctype reported by Georg Schwarz in:
62328         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
62329         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
62330         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
62331         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
62332         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
62333
62334 2006-12-03  Jim Meyering  <jim@meyering.net>
62335
62336         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
62337         p->fts_statp may not yet be defined.
62338         (fts_read): Instead, set it in the caller, once p->fts_statp is
62339         sure to be defined, and corresponds to a top-level directory.
62340         This bug made du -x fail.  Here's the coreutils test case:
62341         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
62342         Reported by Mike Frysinger.
62343
62344 2006-12-01  Jim Meyering  <jim@meyering.net>
62345
62346         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
62347         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
62348         Reported by Simon Josefsson.
62349
62350 2006-11-30  Jim Meyering  <jim@meyering.net>
62351
62352         * m4/warning.m4: Use the all-permissive copyright notice
62353         recommended by RMS (rather than LGPL).
62354         * m4/vararrays.m4: Likewise.
62355         * m4/flexmember.m4: Likewise.
62356
62357 2006-11-29  Bruno Haible  <bruno@clisp.org>
62358
62359         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62360         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
62361         using +=.
62362         Reported by Simon Josefsson <simon@josefsson.org>.
62363
62364 2006-11-28  James Youngman <jay@gnu.org>
62365
62366         * README: Advise users that they might find the bug-gnulib@gnu.org
62367         and autotools-announce@gnu.org mailing lists useful.
62368
62369 2006-11-28  Bruno Haible  <bruno@clisp.org>
62370
62371         * m4/ptrdiff_max.m4: Remove file.
62372
62373 2006-11-21  Bruno Haible  <bruno@clisp.org>
62374
62375         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
62376         _AC_COMPUTE_INT.
62377         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62378         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
62379         _AC_COMPUTE_INT.
62380         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62381         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
62382         _AC_COMPUTE_INT.
62383         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62384
62385 2006-11-28  Jim Meyering  <jim@meyering.net>
62386
62387         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
62388         warning from "gcc -Wshadow" about shadowing the builtin.
62389
62390 2006-11-27  Bruno Haible  <bruno@clisp.org>
62391
62392         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
62393         _AC_COMPUTE_INT.
62394         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
62395
62396 2006-11-27  Bruno Haible  <bruno@clisp.org>
62397             Paul Eggert  <eggert@cs.ucla.edu>
62398
62399         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
62400
62401 2006-11-26  Bruno Haible  <bruno@clisp.org>
62402
62403         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
62404         noinst_LTLIBRARIES.
62405
62406 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
62407             Bruno Haible  <bruno@clisp.org>
62408
62409         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
62410         if compiling with "gcc -ansi".
62411
62412 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
62413
62414         Fix some incompatibilities with gcc -ansi -pedantic.
62415         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
62416         if compiling pedantically with GCC, unless it's C99 or later.
62417         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
62418         it mishandles gcc -ansi -pedantic as well.
62419         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
62420         if gcc -pedantic.
62421         * lib/regexec.c (check_node_accept_bytes): Don't use auto
62422         initializers for struct if -pedantic, unless it's C99 or later.
62423
62424 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
62425
62426         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
62427         Don't close an fd more than once. Identical atimes indicate
62428         success, not failure.
62429
62430 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
62431
62432         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
62433
62434 2006-11-23  Jim Meyering  <jim@meyering.net>
62435
62436         * build-aux/announce-gen: New file.  From coreutils.
62437
62438 2006-11-22  Jim Meyering  <jim@meyering.net>
62439
62440         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
62441         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
62442         (fts_read): Use a temporary to narrow the overused st_size member
62443         before using it in a switch statement.  Reported by Matthew Woehlke.
62444
62445         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
62446         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
62447
62448 2006-11-20  Bruno Haible  <bruno@clisp.org>
62449
62450         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
62451         changequote instead of pairs of brackets.
62452         Reported by Andreas Schwab <schwab@suse.de>.
62453
62454 2006-11-21  Jim Meyering  <jim@meyering.net>
62455
62456         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
62457         so as to remain compatible with older compilers.
62458         Patch from Michael Deutschmann.
62459
62460 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
62461
62462         * MODULES.html.sh (File system functions): Add openat.
62463
62464         * lib/openat.h (rpl_fstatat): New macro, if
62465         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
62466         (fstatat): Define to rpl_fstatat under the same conditions,
62467         unless COMPILING_FSTATAT.
62468         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
62469         seems to have the bug.
62470         * lib/fstatat.c: New file.
62471         * modules/openat (Files): Add it.
62472
62473 2006-11-20  Bruno Haible  <bruno@clisp.org>
62474
62475         * Makefile: New file.
62476
62477 2006-11-20  Jim Meyering  <jim@meyering.net>
62478
62479         The beginnings of syntax-related checks for gnulib.
62480         * lib/Makefile: New file.
62481         * lib/t-idcache: New script.  Ensure that the two halves of
62482         idcache.c stay in sync.
62483
62484         * lib/idcache.c: Adjust comments in user- and group- portions to
62485         be more accurate, and to be consistent with one another.
62486
62487 2006-11-20  Jim Meyering  <jim@meyering.net>
62488
62489         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
62490         continue using the flexible array member (thus, this module performs
62491         half as many malloc calls), with the addition that...
62492         (getgroup, getuser): Consistently record a non-match via an empty
62493         "name" string, and map an empty string match to a NULL return value.
62494         * modules/idcache (Depends-on): Re-add flexmember.
62495
62496         * lib/idcache.c (getuser): Remove all uses of the register keyword.
62497         (getuidbyname, getgroup, getgidbyname): Likewise.
62498
62499         Use cleaner syntax: NULL rather than 0.
62500         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
62501
62502 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
62503
62504         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
62505         It mishandled the case where the group was missing.
62506         Problem reported by Greg Schafer.
62507         * modules/idcache: Likewise.
62508
62509 2006-11-18  Jim Meyering  <jim@meyering.net>
62510
62511         * check-module (%exempt_header): Add exception for some
62512         conditionally-included headers.
62513
62514         * modules/i-ring (Depends-on): Add verify.
62515         (License): Change to LGPL.
62516
62517 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62518
62519         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
62520         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
62521         and inttostr.h.  Use snprintf rather than uinttostr, so that
62522         LGPLed code doesn't depend on GPLed.
62523
62524 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
62525
62526         * modules/inline (License): Change from GPL to LGPL.
62527
62528 2006-11-17  Jim Meyering  <jim@meyering.net>
62529
62530         * modules/d-type (License): Switch to LGPL.
62531
62532 2006-11-15  Bruno Haible  <bruno@clisp.org>
62533
62534         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
62535
62536 2006-11-15  Eric Blake  <ebb9@byu.net>
62537
62538         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
62539         the module dependency.
62540
62541 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
62542             Bruno Haible  <bruno@clisp.org>
62543
62544         * gnulib-tool (func_create_testdir): Add license consistency check.
62545
62546 2006-11-15  Eric Blake  <ebb9@byu.net>
62547
62548         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
62549         random "(cached)" in configure output.
62550
62551 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62552
62553         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
62554         test for conforming inttypes.h is both announced and cached.
62555
62556         * MODULES.html.sh (seen_modules, seen_files): New variables.
62557         (func_module): Rewrite to use a few less gnulib-tool and sed
62558         invocations.  Avoid a couple of quadratic algorithms for ...
62559         (missed_modules, missed_files): ... these, with ...
62560         (func_append, func_tmpdir): ... these new functions, from
62561         gnulib-tool.  Analogously, install traps for cleanup.
62562
62563         * tests/test-gc.c (main): Remove unused variables.
62564         * tests/test-read-file.c: Include stdlib.h, for 'free'.
62565
62566 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
62567
62568         * modules/inttostr (License): Change to LGPL.
62569
62570 2006-11-14  Eric Blake  <ebb9@byu.net>
62571
62572         * modules/tempname (License): Change to LGPL.
62573
62574 2006-11-14  Eric Blake  <ebb9@byu.net>
62575
62576         * doc/functions.texi (Function Portability): *printf functions on
62577         Cygwin now understand all POSIX size specifiers.
62578
62579 2006-11-14  Bruno Haible  <bruno@clisp.org>
62580
62581         * modules/c-ctype (License): Change to LGPL.
62582
62583 2006-11-12  Bruno Haible  <bruno@clisp.org>
62584
62585         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
62586         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
62587         for GNOME libraries, for which the include files are installed in
62588         subdirectories of $prefix/include.
62589
62590 2006-11-12  Bruno Haible  <bruno@clisp.org>
62591
62592         * m4/lib-link.m4: Require at least autoconf-2.54.
62593         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
62594         name to underscores for the --with option.
62595
62596 2006-11-13  Bruno Haible  <bruno@clisp.org>
62597
62598         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
62599         the tests directory.
62600         Reported by Ralf Wildenhues.
62601
62602 2006-11-13  Bruno Haible  <bruno@clisp.org>
62603
62604         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
62605         (func_emit_initmacro_end): Undo the override here.
62606         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
62607         Works around the famous automake error in coreutils.
62608
62609 2006-11-13  Eric Blake  <ebb9@byu.net>
62610
62611         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
62612         element, not its node.
62613
62614 2006-11-12  Bruno Haible  <bruno@clisp.org>
62615
62616         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
62617         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
62618
62619 2006-11-12  Bruno Haible  <bruno@clisp.org>
62620
62621         * gnulib-tool: New option --local-symlink.
62622         (func_usage): Document it.
62623         (lsymbolic): New variable.
62624         (func_import, func_create_testdir): If --symlink was not specified,
62625         test whether --local-symlink was specified and the file comes from
62626         the local_gnulib_dir.
62627
62628 2006-11-12  Bruno Haible  <bruno@clisp.org>
62629
62630         * gnulib-tool (func_ln): New function.
62631         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
62632
62633 2006-11-12  Bruno Haible  <bruno@clisp.org>
62634
62635         Finish support for source files in subdirectories.
62636         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
62637         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
62638         AUTOMAKE_OPTIONS.
62639         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
62640
62641 2006-11-12  Bruno Haible  <bruno@clisp.org>
62642
62643         * gnulib-tool (func_get_automake_snippet): Synthesize also an
62644         EXTRA_lib_SOURCES augmentation.
62645         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
62646
62647 2006-11-12  Jim Meyering  <jim@meyering.net>
62648
62649         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
62650         file descriptors.  This also averts a failure on systems with
62651         native openat support when a traversed directory lacks "x" access.
62652         * lib/fts_.h: Include "i-ring.h"
62653         (struct FTS) [fts_fd_ring]: New member.
62654         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
62655         (FCHDIR): Add parentheses.
62656         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
62657         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
62658         When descending, rather than simply closing the previous
62659         fts_cwd_fd value, push that file descriptor onto the ring.
62660         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
62661         (fts_open): Initialize the new fd_ring member.
62662         (fts_close): Clear the ring.
62663         (fts_safe_changedir): When possible, use our new fd_ring to skip
62664         the diropen and fstat and dev/ino comparison that would normally
62665         accompany a virtual `chdir ("..")'.
62666
62667         * modules/fts (Depends-on): Add i-ring.
62668         * modules/i-ring: New module.
62669         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
62670         * m4/i-ring.m4: New file.
62671
62672 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62673
62674         * gnulib-tool (func_create_testdir): Fix replacement of
62675         `build-aux' in configure.ac.  Run autotools in gltests
62676         subdirectory.
62677         (func_create_testdir, func_create_megatestdir, test): There is
62678         no need for '--force' in most autotool invocations in a new
62679         tree.  Actually fail the whole test if any of the tools, or the
62680         configure or make stages fail.
62681
62682         Sync from Automake.
62683         * build-aux/gnupload: Revert last change.  Add pointer to upload
62684         instructions of the GNU Maintenance Instructions.
62685         Suggestion by Karl Berry.
62686
62687 2006-11-10  Jim Meyering  <jim@meyering.net>
62688
62689         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
62690
62691 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62692
62693         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
62694         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
62695         (bind_textdomain_codeset) [! ENABLE_NLS]:
62696         Evaluate all the arguments.  That way, callers get compatible behavior
62697         if the arguments have side effects.  Also, it avoids some GCC
62698         diagnostics in some cases; Joel E. Denny reported problems when Bison
62699         was configured with --enable-gcc-warnigs.
62700
62701 2006-11-10  Jim Meyering  <jim@meyering.net>
62702
62703         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
62704         relevant options in CFLAGS (like -O, -fno-inline) are taken into
62705         account.
62706
62707 2006-11-10  Jim Meyering  <jim@meyering.net>
62708
62709         * modules/inline: New file/module.
62710         * modules/xalloc (Files): Remove m4/inline.m4.
62711         (Depends-on): Add inline, instead.
62712         * modules/oset: Likewise.
62713         * modules/list: Likewise.
62714
62715 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62716
62717         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
62718         Problem reported by Matthew Woehlke.
62719
62720 2006-11-09  Bruno Haible  <bruno@clisp.org>
62721
62722         * lib/tempname.c (gen_tempname): Remove variant that invokes
62723         __gen_tempname.
62724         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
62725         __gen_tempname.
62726
62727 2006-11-08  Bruno Haible  <bruno@clisp.org>
62728
62729         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
62730         to 'yes' instead of 'cross-compiling'.
62731
62732 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
62733
62734         * lib/quotearg.h (quotearg_free): New decl.
62735         * lib/quotearg.c (quotearg_free): New function.
62736         (slot0, nslots, slotvec0, slotvec):
62737         Now file-scope so that quotearg_free can get at them.
62738
62739 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62740
62741         Sync from Automake.
62742         * build-aux/gnupload: Add missing 'gnu' to example URL.
62743         Report by Karl Berry.
62744
62745 2006-11-08  Bruno Haible  <bruno@clisp.org>
62746
62747         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
62748         Suggested by Paul Eggert.
62749
62750 2006-11-08  Jim Meyering  <jim@meyering.net>
62751
62752         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
62753         It's already included if !_LIBC.
62754         (fts_safe_changedir): Add a comment.
62755
62756 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62757
62758         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
62759         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
62760         Matthew Woehlke.
62761
62762         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
62763         definitions up, to avoid colliding with change below.
62764         (static_inline) [HAVE_INLINE]: New macro.
62765         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
62766         Provide extern decls when !HAVE_INLINE.  Do not define unless
62767         static_inline is defined, either by us or by xmalloc.c.  Use
62768         static_inline rather than static inline.
62769         (XCALLOC): Optimize sizeof(T) = 1 case.
62770         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
62771
62772 2006-11-07  Bruno Haible  <bruno@clisp.org>
62773
62774         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
62775         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
62776         AC_C_INLINE.
62777         * modules/xalloc (Files): Add m4/inline.m4.
62778
62779 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62780
62781         * README: Fix typo.
62782         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
62783         (Miscellanous Notes): ...from this.
62784
62785 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62786
62787         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
62788         Mention that offsetof should be used instead of sizeof.
62789         From Bruno Haible.
62790
62791 2006-11-07  Bruno Haible  <bruno@clisp.org>
62792
62793         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
62794
62795 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62796
62797         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62798         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
62799         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62800         (gl_tree_add_before, gl_tree_add_after):
62801         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
62802         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
62803         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62804         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
62805         (gl_linked_add_after, gl_linked_add_at): Likewise.
62806         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
62807         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62808         (gl_tree_add_before, gl_tree_add_after): Likewise.
62809         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
62810         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
62811         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
62812
62813 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62814
62815         * lib/gl_oset.h: Use C comment style, not C++ comment style.
62816
62817 2006-11-06  Bruno Haible  <bruno@clisp.org>
62818
62819         * m4/inline.m4: New file.
62820         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
62821         * modules/list (Files): Add m4/inline.m4.
62822         * modules/oset (Files): Likewise.
62823
62824 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62825
62826         * lib/idcache.c: Include <stddef.h>, for offsetof.
62827         (struct userid.name): Change from char * to a flexible array member.
62828         All uses changed.
62829         * modules/idcache (Depends-on): Add flexmember.
62830
62831         * MODULES.html.sh (Core language properties): New module flexmember.
62832         * modules/flexmember, m4/flexmember.m4: New files.
62833
62834         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
62835         inline functions that are identical with the old xnmalloc_inline,
62836         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
62837         that we can avoid some unnecessary integer multiplications and
62838         divisions in the common case where the element size is known at
62839         compile time.
62840         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
62841         needed.
62842         (xnboundedmalloc): Remove.
62843         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
62844         arguments, for consistency with rest of this header.
62845         (xcharalloc): Rewrite using XNMALLOC.
62846         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
62847         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
62848         versions have been moved to lib/xalloc.h and renamed to be the
62849         non-*_inline versions.
62850         (xmalloc, xrealloc): Implement without reference to the xnmalloc
62851         and xnrealloc functions, since those functions are now inline and
62852         now call us.
62853         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
62854         renaming described above.
62855         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
62856         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
62857         captures the dependency in AC_C_INLINE.
62858
62859         New module canonicalize-lgpl, proposed by Charles Wilson in
62860         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
62861         with a few small changes afterwards.
62862         * MODULES.html.sh (File system functions): New module
62863         canonicalize-lgpl.
62864         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
62865         and canonicalize_file_name.
62866         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
62867         * modules/canonicalize-lgpl: New files.
62868
62869 2006-11-05  Bruno Haible  <bruno@clisp.org>
62870
62871         * gnulib-tool (func_import, func_create_testdir): Create directories
62872         also for files in subdirectories of lib/.
62873
62874 2006-11-05  Bruno Haible  <bruno@clisp.org>
62875
62876         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
62877         ANSI C compliant.
62878
62879 2006-11-03  Bruno Haible  <bruno@clisp.org>
62880
62881         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62882         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
62883         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
62884         (xnboundedmalloc): New inline function.
62885         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
62886         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
62887         xmalloc.
62888         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
62889         xmalloc.
62890         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
62891         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
62892         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
62893         xmalloc.
62894         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
62895         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
62896         xmalloc.
62897         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
62898         gl_tree_add_after): Use XMALLOC instead of xmalloc.
62899         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
62900         xmalloc.
62901         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
62902         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
62903         gl_tree_add_after): Use XMALLOC instead of xmalloc.
62904         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
62905         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
62906         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
62907         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
62908
62909 2006-11-03  Bruno Haible  <bruno@clisp.org>
62910
62911         * lib/c-ctype.h [C++]: Define functions without name mangling.
62912         * lib/fwriteerror.h [C++]: Likewise.
62913         * lib/gcd.h [C++]: Likewise.
62914         * lib/linebreak.h [C++]: Likewise.
62915
62916 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
62917
62918         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
62919         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
62920         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
62921         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
62922         Check for functions and headers just once.
62923         Check for declaration of canonicalize_file_name.
62924         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
62925
62926 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62927
62928         * gnulib-tool (func_import): Fix typo in actioncmd.
62929
62930 2006-11-02  Bruno Haible  <bruno@clisp.org>
62931
62932         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
62933         newline sequence in the Makefile.am snippet as a space, like "make"
62934         does.
62935         Reported by Roger Persson <perrog@gmail.com>.
62936
62937 2006-11-01  Bruno Haible  <bruno@clisp.org>
62938
62939         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
62940         already declared in <string.h>.
62941         * lib/strcase.h (strncasecmp): Don't declare it if yes.
62942
62943 2006-11-01  Bruno Haible  <bruno@clisp.org>
62944
62945         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
62946         * lib/strcase.h: Include <string.h>.
62947         (strcasecmp): Define to rpl_strcasecmp here.
62948
62949 2006-11-01  Bruno Haible  <bruno@clisp.org>
62950
62951         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
62952
62953 2006-11-01  Eric Blake  <ebb9@byu.net>
62954
62955         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
62956
62957         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
62958
62959 2006-10-29  Bruno Haible  <bruno@clisp.org>
62960
62961         Make it compile in C++ mode.
62962         * lib/full-write.c (full_rw): Add a cast.
62963
62964 2006-11-01  Bruno Haible  <bruno@clisp.org>
62965
62966         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
62967         be POSIX compliant.
62968         Reported by Roger Persson <perrog@gmail.com>.
62969
62970 2006-11-01  Eric Blake  <ebb9@byu.net>
62971
62972         * lib/getopt_.h: Fix comments.
62973
62974 2006-10-31  Eric Blake  <ebb9@byu.net>
62975
62976         * modules/tmpdir (Depends-on): Add sys_stat.
62977         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
62978         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
62979         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
62980         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
62981         tempname.
62982
62983 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
62984
62985         Avoid some C++ diagnostics reported by Bruno Haible.
62986         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
62987         xmalloc.
62988         (quotearg_alloc): Use xcharalloc rather than xmalloc.
62989         (struct slotvec): Move to top level.
62990         (quotearg_n_options): Rewrite to avoid xmalloc.
62991         * lib/xalloc.h (xcharalloc): New function.
62992         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
62993         [defined __cplusplus]: Add function template that provides result
62994         type propagation.  This part of the change is from Bruno Haible.
62995
62996 2006-10-29  Bruno Haible  <bruno@clisp.org>
62997
62998         Make it compile in C++ mode.
62999         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
63000         * lib/strnlen1.c (strnlen1): Cast memchr result.
63001         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
63002         * lib/clean-temp.c (string_equals, string_hash): Add casts.
63003         (create_temp_dir): Rename local variable 'template'.
63004         (compile_csharp_using_sscli): Add cast.
63005         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
63006         * lib/findprog.c (find_in_path): Likewise.
63007         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
63008         * lib/wait-process.c (register_slave_subprocess): Likewise.
63009
63010 2006-10-22  Bruno Haible  <bruno@clisp.org>
63011
63012         * modules/tsearch: New file.
63013         * lib/tsearch.h: New file.
63014         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
63015         * m4/tsearch.m4: New file.
63016         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
63017
63018 2006-10-29  Eric Blake  <ebb9@byu.net>
63019
63020         * lib/arcfour.c: Assume config.h.
63021         * lib/arctwo.c: Likewise.
63022         * lib/base64.c: Likewise.
63023         * lib/check-version.c: Likewise.
63024         * lib/crc.c: Likewise.
63025         * lib/des.c: Likewise.
63026         * lib/gc-gnulib.c: Likewise.
63027         * lib/gc-libgcrypt.c: Likewise.
63028         * lib/gc-pbkdf2-sha1.c: Likewise.
63029         * lib/getaddrinfo.c: Likewise.
63030         * lib/getdelim.c: Likewise.
63031         * lib/getline.c: Likewise.
63032         * lib/hmac-md5.c: Likewise.
63033         * lib/hmac-sha1.c: Likewise.
63034         * lib/iconvme.c: Likewise.
63035         * lib/md2.c: Likewise.
63036         * lib/md4.c: Likewise.
63037         * lib/memxor.c: Likewise.
63038         * lib/read-file.c: Likewise.
63039         * lib/readline.c: Likewise.
63040         * lib/rijndael-alg-fst.c: Likewise.
63041         * lib/rijndael-api-fst.c: Likewise.
63042         * lib/xgetdomainname.c: Likewise.
63043
63044 2006-10-28  Eric Blake  <ebb9@byu.net>
63045
63046         * lib/xstrndup.c: Assume config.h.
63047
63048 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
63049
63050         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
63051         stat-macros.h is now for our own macros, whereas stat_h is for
63052         macros in the <sys/stat.h> name space.
63053         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
63054         (STAT_MACROS_H): Remove.
63055         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
63056         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
63057         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
63058         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
63059         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
63060         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
63061         Move these macros to ...
63062         * lib/stat_.h: here.  Don't include stat-macros.h.
63063         * lib/canonicalize.c: Don't include stat-macros.h.
63064         * lib/chown.c: Likewise.
63065         * lib/euidaccess.c: Likewise.
63066         * lib/file-type.c: Likewise.
63067         * lib/filemode.c: Likewise.
63068         * lib/glob.c: Likewise.
63069         * lib/isapipe.c: Likewise.
63070         * lib/lchown.c: Likewise.
63071         * lib/lstat.c: Likewise.
63072         * lib/mkdir-p.c: Likewise.
63073         * lib/rmdir.c: Likewise.
63074         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
63075         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
63076         unless mkdir isn't declared, to speed up 'configure'.
63077         Always create sys/stat.h, since it's unlikely any real sys/stat.h
63078         would define all the S_* symbols.
63079         * modules/canonicalize (Depends-on):
63080         Depend on sys_stat, not stat-macros.
63081         * modules/chown: Likewise.
63082         * modules/euidaccess: Likewise.
63083         * modules/filemode: Likewise.
63084         * modules/file-type: Likewise.
63085         * modules/glob: Likewise.
63086         * modules/isapipe: Likewise.
63087         * modules/lchown: Likewise.
63088         * modules/lstat: Likewise.
63089         * modules/mkancesdirs: Likewise.
63090         * modules/rmdir: Likewise.
63091         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
63092         * modules/modechange: Likewise.
63093         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
63094         (configure.ac): Remove gl_STAT_MACROS.
63095         * modules/sys_stat (Depends-on): Remove stat-macros.
63096
63097 2006-10-27  Bruno Haible  <bruno@clisp.org>
63098
63099         * m4/signed.m4: Remove file.
63100         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
63101         invocation.
63102         * modules/vasnprintf (Files): Remove m4/signed.m4.
63103
63104 2006-10-27  Bruno Haible  <bruno@clisp.org>
63105
63106         Update to GNU gettext 0.16.
63107         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
63108         m4/inttypes-h.m4, m4/signed.m4.
63109         * m4/gettext.m4: Update to GNU gettext 0.16.
63110         * m4/intl.m4: New file, from GNU gettext.
63111         * m4/intldir.m4: New file, from GNU gettext.
63112         * config/srclist.txt: Update
63113
63114 2006-10-27  Eric Blake  <ebb9@byu.net>
63115
63116         * MODULES.html.sh: Document tempname.
63117         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
63118         dependencies.
63119         (Files): Move lib/tempname.c...
63120         * modules/tempname: ...to this new module.
63121         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
63122         (gl_PREREQ_TEMPNAME): Move...
63123         * m4/tempname.m4: ...to this new file.
63124         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
63125         * modules/sys_stat (Depends-on): Add stat-macros.
63126         * lib/stat_.h (includes): Pick up stat macros.
63127         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
63128         if stat macros are broken.
63129         * lib/tempname.c (includes): No need to include "stat-macros.h".
63130         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
63131         (direxists, __path_search) [!_LIBC]: Don't compile these in
63132         gnulib; the tmpdir module covers that.
63133         * lib/tempname.h: New file.
63134
63135 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
63136
63137         * COPYING: Explain how gnulib-tool converts licence headers.
63138         Almost all wording by Eric Blake.
63139
63140 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
63141
63142         * lib/mbchar.h (is_basic_table): Make read-only.
63143         * lib/mbchar.c (is_basic_table): Likewise.
63144         Reported by John Darrington.
63145
63146 2006-10-25  Bruno Haible  <bruno@clisp.org>
63147
63148         * lib/progname.h (set_program_name): Undefine before defining.
63149
63150 2006-10-25  Bruno Haible  <bruno@clisp.org>
63151
63152         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
63153         false for non-gcc C++ compilers.
63154         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
63155
63156 2006-10-24  Bruno Haible  <bruno@clisp.org>
63157
63158         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
63159         iconv implementations like Irix iconv.
63160
63161 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63162
63163         * modules/vararrays: New file.
63164         * m4/vararrays.m4: New file, taken from diffutils.
63165         * MODULES.html.sh: New module vararrays.
63166
63167 2006-10-24  Karl Berry  <karl@gnu.org>
63168
63169         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
63170         Don't call GNU Unix.
63171
63172 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63173
63174         * users.txt: Add Libtool.
63175
63176         Sync from Libtool:
63177
63178         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63179
63180         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
63181         to gnulib's policy of including config.h unconditionally.
63182
63183 2006-10-24  Bruno Haible  <bruno@clisp.org>
63184
63185         * modules/wcwidth (Files): Add m4/wint_t.m4.
63186         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
63187         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
63188
63189 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63190
63191         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
63192         to pacify GCC with some -W flags enabled.  Problem reported by
63193         Bruno Haible.
63194
63195 2006-10-24  Jim Meyering  <jim@meyering.net>
63196
63197         * MODULES.html.sh: Remove uinttostr.  It's not a module.
63198         Reported by Karl Berry.
63199
63200 2006-10-23  Bruno Haible  <bruno@clisp.org>
63201
63202         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
63203
63204 2006-10-24  Bruno Haible  <bruno@clisp.org>
63205
63206         * lib/gl_list.h: Use C comment style, not C++ comment style.
63207
63208 2006-10-23  Eric Blake  <ebb9@byu.net>
63209
63210         * lib/getaddrinfo.c (includes): Add missing include.
63211
63212 2006-10-23  Bruno Haible  <bruno@clisp.org>
63213             Paul Eggert  <eggert@cs.ucla.edu>
63214
63215         Ability to rename obstack_free.
63216         * lib/obstack.h (__obstack_free): New macro. Declare instead of
63217         obstack_free.
63218         (obstack_free): Invoke the __obstack_free macro.
63219         * lib/obstack.c (obstack_free): Use __obstack_free macro.
63220
63221 2006-10-23  Bruno Haible  <bruno@clisp.org>
63222             Paul Eggert  <eggert@cs.ucla.edu>
63223
63224         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
63225         __argc, __argv from the declaration. (They are defined as macros on
63226         mingw.)
63227
63228 2006-10-22  Bruno Haible  <bruno@clisp.org>
63229
63230         * doc/gnulib-intro.texi: New file.
63231         * doc/gnulib.texi: Include it.
63232
63233 2006-10-21  Bruno Haible  <bruno@clisp.org>
63234
63235         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
63236         "Introduction", "Miscellanous Notes", "Particular Modules".
63237
63238 2006-10-21  Bruno Haible  <bruno@clisp.org>
63239
63240         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63241         Change mostlyclean-local rule to avoid sh syntax error from bash
63242         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
63243
63244 2006-10-23  Jim Meyering  <jim@meyering.net>
63245
63246         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
63247         in place of snprintf.
63248
63249         * modules/inttostr (Files): Add lib/uinttostr.c.
63250         * lib/uinttostr.c (inttostr): New file/function.
63251         * lib/inttostr.h (uinttostr): Declare.
63252         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
63253         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
63254         Add uinttostr.
63255         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
63256
63257 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
63258
63259         * lib/canonicalize.c (ELOOP): Define if not already defined.
63260         Problem reported by Bruno Haible in
63261         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
63262
63263 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
63264
63265         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
63266         Problem reported by Perry Smith and Ville Laurikari.
63267
63268         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
63269         uses.
63270
63271 2006-10-19  Bruno Haible  <bruno@clisp.org>
63272
63273         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
63274         for mingw.
63275
63276 2006-10-19  Bruno Haible  <bruno@clisp.org>
63277
63278         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
63279         Needed for mingw.
63280
63281 2006-10-19  Bruno Haible  <bruno@clisp.org>
63282
63283         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
63284
63285 2006-10-19  Bruno Haible  <bruno@clisp.org>
63286
63287         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
63288         it.
63289
63290 2006-10-19  Bruno Haible  <bruno@clisp.org>
63291
63292         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
63293         invocation.
63294
63295 2006-10-19  Bruno Haible  <bruno@clisp.org>
63296
63297         * gnulib-tool (func_create_testdir): Don't include ftruncate and
63298         mountlist by default.
63299
63300 2006-10-16  Bruno Haible  <bruno@clisp.org>
63301
63302         * lib/c-strstr.c: Include c-strstr.h.
63303
63304 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
63305
63306         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
63307         in a slash.
63308
63309 2006-10-18  Bruno Haible  <bruno@clisp.org>
63310
63311         * lib/lock.h [C++]: Wrap definitions in extern "C".
63312
63313 2006-10-18  Bruno Haible  <bruno@clisp.org>
63314
63315         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
63316         gl_LIBOBJS list.
63317
63318 2006-10-18  Bruno Haible  <bruno@clisp.org>
63319
63320         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
63321
63322 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
63323
63324         * lib/xstrtol.h: Include gettext.h.
63325         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
63326         Problem reported by Eric Blake.
63327         * modules/xstrtol (Depends-on): Add gettext-h.
63328
63329 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
63330
63331         * lib/strftime.c (advance): New macro.
63332         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
63333         incomplete type, so you can't add 0 to it.  Problem and patch
63334         reported by Eelco Dolstra for dietlibc.
63335
63336 2006-10-18  Jim Meyering  <jim@meyering.net>
63337
63338         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
63339         type for a local, and rename it: s/up/user_proc/.
63340
63341 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
63342
63343         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
63344         READ_UTMP_USER_PROCESS.
63345         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
63346
63347 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
63348
63349         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
63350         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
63351
63352 2006-10-17  Eric Blake  <ebb9@byu.net>
63353
63354         * lib/sigprocmask.c (sigprocmask): Fix typo.
63355
63356         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
63357
63358         * modules/clean-temp (Makefile.am): Don't add to make output...
63359         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
63360         config.h.
63361
63362 2006-10-17  Bruno Haible  <bruno@clisp.org>
63363
63364         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
63365         differently if DEFAULT_TEXT_DOMAIN is set.
63366
63367 2006-10-16  Bruno Haible  <bruno@clisp.org>
63368
63369         * lib/clean-temp.c: Include fwriteerror.h.
63370
63371 2006-10-16  Bruno Haible  <bruno@clisp.org>
63372
63373         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
63374
63375 2006-10-16  Bruno Haible  <bruno@clisp.org>
63376
63377         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
63378         * lib/sigprocmask.h: Include <sys/types.h>.
63379         (sigset_t): Use the system's definition if present.
63380
63381 2006-10-17  Eric Blake  <ebb9@byu.net>
63382
63383         * lib/xvasprintf.c (includes): Assume config.h.
63384         * lib/xasprintf.c (includes): Likewise.
63385
63386 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63387
63388         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
63389         at least as wide as intmax_t.
63390
63391 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
63392
63393         (Imported from Automake.)
63394         * build-aux/gnupload: Update to version 1.1 of directive file.
63395
63396 2006-10-16  Eric Blake  <ebb9@byu.net>
63397
63398         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
63399         match Automake 1.10a.
63400
63401 2006-10-14  Bruno Haible  <bruno@clisp.org>
63402
63403         * modules/sigprocmask: New file.
63404         * lib/sigprocmask.h: New file.
63405         * lib/sigprocmask.c: New file.
63406         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
63407         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
63408         request sigprocmask.o.
63409         (gl_PREREQ_SIGPROCMASK): New macro.
63410         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
63411         (Depends-on): Add sigprocmask.
63412         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
63413         gt_SIGNALBLOCKING. Test for 'raise' only once.
63414         * lib/fatal-signal.c: Include sigprocmask.h.
63415         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
63416         unblock_fatal_signals): Define always.
63417         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
63418         sigprocmask.
63419
63420 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
63421
63422         Sync from Automake.
63423         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
63424         which incorrectly sets the mode of an existing destination
63425         directory.  In some cases the unpatched install-sh could do the
63426         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
63427         system.  We hope this is rare in practice, but it's clearly worth
63428         fixing.  Problem reported by Alex Unleashed in
63429         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
63430         Also, don't bother to check for -m bugs unless we're using -m;
63431         suggested by Stepan Kasal.
63432
63433 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63434
63435         Sync from Automake.
63436         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
63437         `-c' flag, so they appear at the same position as in %FASTDEP%
63438         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
63439         which ignores unknown options only after the first non-option.
63440         Bug report against M4 by Nelson H. F. Beebe.
63441
63442 2006-10-13  Jim Meyering  <jim@meyering.net>
63443
63444         Fix a bug in yesterday's change.
63445         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
63446         p->fts_statp->st_dev would be used uninitialized.
63447         Ensures that we always call fts_stat on the very first entry.
63448         Miklos Szeredi reported that find -xdev stopped working.
63449
63450 2006-10-12  Bruno Haible  <bruno@clisp.org>
63451
63452         * gnulib-tool (func_get_automake_snippet): Append an automatically
63453         computed EXTRA_DIST augmentation.
63454         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
63455         * modules/alloca-opt (Makefile.am): Likewise.
63456         * modules/allocsa (Makefile.am): Likewise.
63457         * modules/arcfour (Makefile.am): Likewise.
63458         * modules/arctwo (Makefile.am): Likewise.
63459         * modules/argmatch (Makefile.am): Likewise.
63460         * modules/argz (Makefile.am): Likewise.
63461         * modules/atexit (Makefile.am): Likewise.
63462         * modules/backupfile (Makefile.am): Likewise.
63463         * modules/byteswap (Makefile.am): Likewise.
63464         * modules/c-strtod (Makefile.am): Likewise.
63465         * modules/c-strtold (Makefile.am): Likewise.
63466         * modules/calloc (Makefile.am): Likewise.
63467         * modules/canon-host (Makefile.am): Likewise.
63468         * modules/canonicalize (Makefile.am): Likewise.
63469         * modules/chdir-long (Makefile.am): Likewise.
63470         * modules/chdir-safer (Makefile.am): Likewise.
63471         * modules/check-version (Makefile.am): Likewise.
63472         * modules/chown (Makefile.am): Likewise.
63473         * modules/cloexec (Makefile.am): Likewise.
63474         * modules/close-stream (Makefile.am): Likewise.
63475         * modules/closeout (Makefile.am): Likewise.
63476         * modules/crc (Makefile.am): Likewise.
63477         * modules/csharpexec (Makefile.am): Likewise.
63478         * modules/cycle-check (Makefile.am): Likewise.
63479         * modules/des (Makefile.am): Likewise.
63480         * modules/dev-ino (Makefile.am): Likewise.
63481         * modules/dirfd (Makefile.am): Likewise.
63482         * modules/dirname (Makefile.am): Likewise.
63483         * modules/dup2 (Makefile.am): Likewise.
63484         * modules/eealloc (Makefile.am): Likewise.
63485         * modules/error (Makefile.am): Likewise.
63486         * modules/euidaccess (Makefile.am): Likewise.
63487         * modules/exclude (Makefile.am): Likewise.
63488         * modules/exitfail (Makefile.am): Likewise.
63489         * modules/fcntl-safer (Makefile.am): Likewise.
63490         * modules/fcntl (Makefile.am): Likewise.
63491         * modules/file-type (Makefile.am): Likewise.
63492         * modules/fileblocks (Makefile.am): Likewise.
63493         * modules/filemode (Makefile.am): Likewise.
63494         * modules/filenamecat (Makefile.am): Likewise.
63495         * modules/fnmatch (Makefile.am): Likewise.
63496         * modules/fopen-safer (Makefile.am): Likewise.
63497         * modules/fpending (Makefile.am): Likewise.
63498         * modules/fprintftime (Makefile.am): Likewise.
63499         * modules/free (Makefile.am): Likewise.
63500         * modules/fsusage (Makefile.am): Likewise.
63501         * modules/ftruncate (Makefile.am): Likewise.
63502         * modules/fts (Makefile.am): Likewise.
63503         * modules/gc-arcfour (Makefile.am): Likewise.
63504         * modules/gc-des (Makefile.am): Likewise.
63505         * modules/gc-hmac-md5 (Makefile.am): Likewise.
63506         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
63507         * modules/gc-md4 (Makefile.am): Likewise.
63508         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
63509         * modules/gc-sha1 (Makefile.am): Likewise.
63510         * modules/gc (Makefile.am): Likewise.
63511         * modules/getaddrinfo (Makefile.am): Likewise.
63512         * modules/getcwd (Makefile.am): Likewise.
63513         * modules/getdelim (Makefile.am): Likewise.
63514         * modules/getdomainname (Makefile.am): Likewise.
63515         * modules/getgroups (Makefile.am): Likewise.
63516         * modules/gethostname (Makefile.am): Likewise.
63517         * modules/gethrxtime (Makefile.am): Likewise.
63518         * modules/getline (Makefile.am): Likewise.
63519         * modules/getloadavg (Makefile.am): Likewise.
63520         * modules/getlogin_r (Makefile.am): Likewise.
63521         * modules/getndelim2 (Makefile.am): Likewise.
63522         * modules/getopt (Makefile.am): Likewise.
63523         * modules/getpagesize (Makefile.am): Likewise.
63524         * modules/getpass-gnu (Makefile.am): Likewise.
63525         * modules/getpass (Makefile.am): Likewise.
63526         * modules/getsubopt (Makefile.am): Likewise.
63527         * modules/gettime (Makefile.am): Likewise.
63528         * modules/gettimeofday (Makefile.am): Likewise.
63529         * modules/getugroups (Makefile.am): Likewise.
63530         * modules/getusershell (Makefile.am): Likewise.
63531         * modules/glob (Makefile.am): Likewise.
63532         * modules/group-member (Makefile.am): Likewise.
63533         * modules/hard-locale (Makefile.am): Likewise.
63534         * modules/hash (Makefile.am): Likewise.
63535         * modules/hmac-md5 (Makefile.am): Likewise.
63536         * modules/hmac-sha1 (Makefile.am): Likewise.
63537         * modules/human (Makefile.am): Likewise.
63538         * modules/idcache (Makefile.am): Likewise.
63539         * modules/imaxabs (Makefile.am): Likewise.
63540         * modules/imaxdiv (Makefile.am): Likewise.
63541         * modules/inet_ntop (Makefile.am): Likewise.
63542         * modules/inet_pton (Makefile.am): Likewise.
63543         * modules/intprops (Makefile.am): Likewise.
63544         * modules/inttostr (Makefile.am): Likewise.
63545         * modules/inttypes (Makefile.am): Likewise.
63546         * modules/isapipe (Makefile.am): Likewise.
63547         * modules/javaversion (Makefile.am): Likewise.
63548         * modules/lchmod (Makefile.am): Likewise.
63549         * modules/lchown (Makefile.am): Likewise.
63550         * modules/localcharset (Makefile.am): Likewise.
63551         * modules/long-options (Makefile.am): Likewise.
63552         * modules/lstat (Makefile.am): Likewise.
63553         * modules/malloc (Makefile.am): Likewise.
63554         * modules/mathl (Makefile.am): Likewise.
63555         * modules/mbchar (Makefile.am): Likewise.
63556         * modules/md2 (Makefile.am): Likewise.
63557         * modules/md4 (Makefile.am): Likewise.
63558         * modules/md5 (Makefile.am): Likewise.
63559         * modules/memcasecmp (Makefile.am): Likewise.
63560         * modules/memchr (Makefile.am): Likewise.
63561         * modules/memcmp (Makefile.am): Likewise.
63562         * modules/memcoll (Makefile.am): Likewise.
63563         * modules/memcpy (Makefile.am): Likewise.
63564         * modules/memmem (Makefile.am): Likewise.
63565         * modules/memmove (Makefile.am): Likewise.
63566         * modules/mempcpy (Makefile.am): Likewise.
63567         * modules/memrchr (Makefile.am): Likewise.
63568         * modules/memset (Makefile.am): Likewise.
63569         * modules/memxor (Makefile.am): Likewise.
63570         * modules/mkancesdirs (Makefile.am): Likewise.
63571         * modules/mkdir-p (Makefile.am): Likewise.
63572         * modules/mkdir (Makefile.am): Likewise.
63573         * modules/mkdtemp (Makefile.am): Likewise.
63574         * modules/mkstemp (Makefile.am): Likewise.
63575         * modules/mktime (Makefile.am): Likewise.
63576         * modules/modechange (Makefile.am): Likewise.
63577         * modules/mountlist (Makefile.am): Likewise.
63578         * modules/nanosleep (Makefile.am): Likewise.
63579         * modules/obstack (Makefile.am): Likewise.
63580         * modules/openat (Makefile.am): Likewise.
63581         * modules/pagealign_alloc (Makefile.am): Likewise.
63582         * modules/pathmax (Makefile.am): Likewise.
63583         * modules/physmem (Makefile.am): Likewise.
63584         * modules/poll (Makefile.am): Likewise.
63585         * modules/posixtm (Makefile.am): Likewise.
63586         * modules/posixver (Makefile.am): Likewise.
63587         * modules/putenv (Makefile.am): Likewise.
63588         * modules/quote (Makefile.am): Likewise.
63589         * modules/quotearg (Makefile.am): Likewise.
63590         * modules/raise (Makefile.am): Likewise.
63591         * modules/read-file (Makefile.am): Likewise.
63592         * modules/readline (Makefile.am): Likewise.
63593         * modules/readlink (Makefile.am): Likewise.
63594         * modules/readtokens (Makefile.am): Likewise.
63595         * modules/readutmp (Makefile.am): Likewise.
63596         * modules/realloc (Makefile.am): Likewise.
63597         * modules/regex (Makefile.am): Likewise.
63598         * modules/rename-dest-slash (Makefile.am): Likewise.
63599         * modules/rename (Makefile.am): Likewise.
63600         * modules/rijndael (Makefile.am): Likewise.
63601         * modules/rmdir (Makefile.am): Likewise.
63602         * modules/rpmatch (Makefile.am): Likewise.
63603         * modules/safe-read (Makefile.am): Likewise.
63604         * modules/safe-write (Makefile.am): Likewise.
63605         * modules/same-inode (Makefile.am): Likewise.
63606         * modules/same (Makefile.am): Likewise.
63607         * modules/save-cwd (Makefile.am): Likewise.
63608         * modules/savedir (Makefile.am): Likewise.
63609         * modules/setenv (Makefile.am): Likewise.
63610         * modules/settime (Makefile.am): Likewise.
63611         * modules/sha1 (Makefile.am): Likewise.
63612         * modules/sig2str (Makefile.am): Likewise.
63613         * modules/snprintf (Makefile.am): Likewise.
63614         * modules/stat-macros (Makefile.am): Likewise.
63615         * modules/stat-time (Makefile.am): Likewise.
63616         * modules/stdbool (Makefile.am): Likewise.
63617         * modules/stdint (Makefile.am): Likewise.
63618         * modules/stdlib-safer (Makefile.am): Likewise.
63619         * modules/stpcpy (Makefile.am): Likewise.
63620         * modules/stpncpy (Makefile.am): Likewise.
63621         * modules/strcase (Makefile.am): Likewise.
63622         * modules/strcasestr (Makefile.am): Likewise.
63623         * modules/strchrnul (Makefile.am): Likewise.
63624         * modules/strcspn (Makefile.am): Likewise.
63625         * modules/strdup (Makefile.am): Likewise.
63626         * modules/strerror (Makefile.am): Likewise.
63627         * modules/strftime (Makefile.am): Likewise.
63628         * modules/strndup (Makefile.am): Likewise.
63629         * modules/strnlen (Makefile.am): Likewise.
63630         * modules/strpbrk (Makefile.am): Likewise.
63631         * modules/strsep (Makefile.am): Likewise.
63632         * modules/strstr (Makefile.am): Likewise.
63633         * modules/strtod (Makefile.am): Likewise.
63634         * modules/strtoimax (Makefile.am): Likewise.
63635         * modules/strtok_r (Makefile.am): Likewise.
63636         * modules/strtol (Makefile.am): Likewise.
63637         * modules/strtoll (Makefile.am): Likewise.
63638         * modules/strtoul (Makefile.am): Likewise.
63639         * modules/strtoull (Makefile.am): Likewise.
63640         * modules/strtoumax (Makefile.am): Likewise.
63641         * modules/strverscmp (Makefile.am): Likewise.
63642         * modules/sys_socket (Makefile.am): Likewise.
63643         * modules/sys_stat (Makefile.am): Likewise.
63644         * modules/sysexits (Makefile.am): Likewise.
63645         * modules/time_r (Makefile.am): Likewise.
63646         * modules/timegm (Makefile.am): Likewise.
63647         * modules/timespec (Makefile.am): Likewise.
63648         * modules/tmpfile-safer (Makefile.am): Likewise.
63649         * modules/trim (Makefile.am): Likewise.
63650         * modules/unistd-safer (Makefile.am): Likewise.
63651         * modules/unlinkdir (Makefile.am): Likewise.
63652         * modules/unlocked-io (Makefile.am): Likewise.
63653         * modules/userspec (Makefile.am): Likewise.
63654         * modules/utime (Makefile.am): Likewise.
63655         * modules/utimecmp (Makefile.am): Likewise.
63656         * modules/utimens (Makefile.am): Likewise.
63657         * modules/vasnprintf (Makefile.am): Likewise.
63658         * modules/vasprintf (Makefile.am): Likewise.
63659         * modules/vsnprintf (Makefile.am): Likewise.
63660         * modules/xalloc (Makefile.am): Likewise.
63661         * modules/xgetcwd (Makefile.am): Likewise.
63662         * modules/xnanosleep (Makefile.am): Likewise.
63663         * modules/xreadlink (Makefile.am): Likewise.
63664         * modules/xstrtod (Makefile.am): Likewise.
63665         * modules/xstrtol (Makefile.am): Likewise.
63666         * modules/xstrtold (Makefile.am): Likewise.
63667         * modules/yesno (Makefile.am): Likewise.
63668         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
63669
63670 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63671
63672         * modules/error (Makefile.am): Distribute files through
63673         EXTRA_DIST, not lib_SOURCES.
63674
63675 2006-10-12  Eric Blake  <ebb9@byu.net>
63676
63677         * modules/error (Makefile.am): Distribute files in /lib.
63678         * modules/obstack (Makefile.am): Likewise.
63679
63680 2006-10-12  Bruno Haible  <bruno@clisp.org>
63681
63682         * modules/acl (Makefile.am): Distribute all files in lib/ through
63683         EXTRA_DIST.
63684         * modules/arcfour (Makefile.am): Likewise.
63685         * modules/arctwo (Makefile.am): Likewise.
63686         * modules/argmatch (Makefile.am): Likewise.
63687         * modules/argz (Makefile.am): Likewise.
63688         * modules/atexit (Makefile.am): Likewise.
63689         * modules/backupfile (Makefile.am): Likewise.
63690         * modules/c-strtod (Makefile.am): Likewise.
63691         * modules/c-strtold (Makefile.am): Likewise.
63692         * modules/calloc (Makefile.am): Likewise.
63693         * modules/canon-host (Makefile.am): Likewise.
63694         * modules/canonicalize (Makefile.am): Likewise.
63695         * modules/chdir-long (Makefile.am): Likewise.
63696         * modules/chdir-safer (Makefile.am): Likewise.
63697         * modules/check-version (Makefile.am): Likewise.
63698         * modules/chown (Makefile.am): Likewise.
63699         * modules/cloexec (Makefile.am): Likewise.
63700         * modules/close-stream (Makefile.am): Likewise.
63701         * modules/closeout (Makefile.am): Likewise.
63702         * modules/crc (Makefile.am): Likewise.
63703         * modules/cycle-check (Makefile.am): Likewise.
63704         * modules/des (Makefile.am): Likewise.
63705         * modules/dirfd (Makefile.am): Likewise.
63706         * modules/dirname (Makefile.am): Likewise.
63707         * modules/dup2 (Makefile.am): Likewise.
63708         * modules/euidaccess (Makefile.am): Likewise.
63709         * modules/exclude (Makefile.am): Likewise.
63710         * modules/exitfail (Makefile.am): Likewise.
63711         * modules/fcntl-safer (Makefile.am): Likewise.
63712         * modules/file-type (Makefile.am): Likewise.
63713         * modules/fileblocks (Makefile.am): Likewise.
63714         * modules/filemode (Makefile.am): Likewise.
63715         * modules/filenamecat (Makefile.am): Likewise.
63716         * modules/fnmatch (Makefile.am): Likewise.
63717         * modules/fopen-safer (Makefile.am): Likewise.
63718         * modules/fpending (Makefile.am): Likewise.
63719         * modules/fprintftime (Makefile.am): Likewise.
63720         * modules/free (Makefile.am): Likewise.
63721         * modules/fsusage (Makefile.am): Likewise.
63722         * modules/ftruncate (Makefile.am): Likewise.
63723         * modules/fts (Makefile.am): Likewise.
63724         * modules/gc (Makefile.am): Likewise.
63725         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
63726         * modules/getaddrinfo (Makefile.am): Likewise.
63727         * modules/getcwd (Makefile.am): Likewise.
63728         * modules/getdelim (Makefile.am): Likewise.
63729         * modules/getdomainname (Makefile.am): Likewise.
63730         * modules/getgroups (Makefile.am): Likewise.
63731         * modules/gethostname (Makefile.am): Likewise.
63732         * modules/gethrxtime (Makefile.am): Likewise.
63733         * modules/getline (Makefile.am): Likewise.
63734         * modules/getloadavg (Makefile.am): Likewise.
63735         * modules/getlogin_r (Makefile.am): Likewise.
63736         * modules/getopt (Makefile.am): Likewise.
63737         * modules/getpass (Makefile.am): Likewise.
63738         * modules/getpass-gnu (Makefile.am): Likewise.
63739         * modules/getsubopt (Makefile.am): Likewise.
63740         * modules/gettime (Makefile.am): Likewise.
63741         * modules/gettimeofday (Makefile.am): Likewise.
63742         * modules/getugroups (Makefile.am): Likewise.
63743         * modules/getusershell (Makefile.am): Likewise.
63744         * modules/glob (Makefile.am): Likewise.
63745         * modules/group-member (Makefile.am): Likewise.
63746         * modules/hard-locale (Makefile.am): Likewise.
63747         * modules/hash (Makefile.am): Likewise.
63748         * modules/hmac-md5 (Makefile.am): Likewise.
63749         * modules/hmac-sha1 (Makefile.am): Likewise.
63750         * modules/human (Makefile.am): Likewise.
63751         * modules/idcache (Makefile.am): Likewise.
63752         * modules/imaxabs (Makefile.am): Likewise.
63753         * modules/imaxdiv (Makefile.am): Likewise.
63754         * modules/inet_ntop (Makefile.am): Likewise.
63755         * modules/inet_pton (Makefile.am): Likewise.
63756         * modules/inttostr (Makefile.am): Likewise.
63757         * modules/isapipe (Makefile.am): Likewise.
63758         * modules/lchown (Makefile.am): Likewise.
63759         * modules/long-options (Makefile.am): Likewise.
63760         * modules/lstat (Makefile.am): Likewise.
63761         * modules/malloc (Makefile.am): Likewise.
63762         * modules/mathl (Makefile.am): Likewise.
63763         * modules/mbchar (Makefile.am): Likewise.
63764         * modules/md2 (Makefile.am): Likewise.
63765         * modules/md4 (Makefile.am): Likewise.
63766         * modules/md5 (Makefile.am): Likewise.
63767         * modules/memcasecmp (Makefile.am): Likewise.
63768         * modules/memchr (Makefile.am): Likewise.
63769         * modules/memcmp (Makefile.am): Likewise.
63770         * modules/memcoll (Makefile.am): Likewise.
63771         * modules/memcpy (Makefile.am): Likewise.
63772         * modules/memmem (Makefile.am): Likewise.
63773         * modules/memmove (Makefile.am): Likewise.
63774         * modules/mempcpy (Makefile.am): Likewise.
63775         * modules/memrchr (Makefile.am): Likewise.
63776         * modules/memset (Makefile.am): Likewise.
63777         * modules/memxor (Makefile.am): Likewise.
63778         * modules/mkancesdirs (Makefile.am): Likewise.
63779         * modules/mkdir (Makefile.am): Likewise.
63780         * modules/mkdir-p (Makefile.am): Likewise.
63781         * modules/mkdtemp (Makefile.am): Likewise.
63782         * modules/mkstemp (Makefile.am): Likewise.
63783         * modules/mktime (Makefile.am): Likewise.
63784         * modules/modechange (Makefile.am): Likewise.
63785         * modules/mountlist (Makefile.am): Likewise.
63786         * modules/nanosleep (Makefile.am): Likewise.
63787         * modules/openat (Makefile.am): Likewise.
63788         * modules/pagealign_alloc (Makefile.am): Likewise.
63789         * modules/physmem (Makefile.am): Likewise.
63790         * modules/poll (Makefile.am): Likewise.
63791         * modules/posixtm (Makefile.am): Likewise.
63792         * modules/posixver (Makefile.am): Likewise.
63793         * modules/putenv (Makefile.am): Likewise.
63794         * modules/quote (Makefile.am): Likewise.
63795         * modules/quotearg (Makefile.am): Likewise.
63796         * modules/raise (Makefile.am): Likewise.
63797         * modules/read-file (Makefile.am): Likewise.
63798         * modules/readline (Makefile.am): Likewise.
63799         * modules/readlink (Makefile.am): Likewise.
63800         * modules/readtokens (Makefile.am): Likewise.
63801         * modules/readutmp (Makefile.am): Likewise.
63802         * modules/realloc (Makefile.am): Likewise.
63803         * modules/regex (Makefile.am): Likewise.
63804         * modules/rename (Makefile.am): Likewise.
63805         * modules/rename-dest-slash (Makefile.am): Likewise.
63806         * modules/rijndael (Makefile.am): Likewise.
63807         * modules/rmdir (Makefile.am): Likewise.
63808         * modules/rpmatch (Makefile.am): Likewise.
63809         * modules/safe-read (Makefile.am): Likewise.
63810         * modules/safe-write (Makefile.am): Likewise.
63811         * modules/same (Makefile.am): Likewise.
63812         * modules/save-cwd (Makefile.am): Likewise.
63813         * modules/savedir (Makefile.am): Likewise.
63814         * modules/setenv (Makefile.am): Likewise.
63815         * modules/settime (Makefile.am): Likewise.
63816         * modules/sha1 (Makefile.am): Likewise.
63817         * modules/sig2str (Makefile.am): Likewise.
63818         * modules/snprintf (Makefile.am): Likewise.
63819         * modules/stdlib-safer (Makefile.am): Likewise.
63820         * modules/stpcpy (Makefile.am): Likewise.
63821         * modules/stpncpy (Makefile.am): Likewise.
63822         * modules/strcase (Makefile.am): Likewise.
63823         * modules/strcasestr (Makefile.am): Likewise.
63824         * modules/strchrnul (Makefile.am): Likewise.
63825         * modules/strcspn (Makefile.am): Likewise.
63826         * modules/strdup (Makefile.am): Likewise.
63827         * modules/strerror (Makefile.am): Likewise.
63828         * modules/strftime (Makefile.am): Likewise.
63829         * modules/strndup (Makefile.am): Likewise.
63830         * modules/strnlen (Makefile.am): Likewise.
63831         * modules/strpbrk (Makefile.am): Likewise.
63832         * modules/strsep (Makefile.am): Likewise.
63833         * modules/strstr (Makefile.am): Likewise.
63834         * modules/strtod (Makefile.am): Likewise.
63835         * modules/strtoimax (Makefile.am): Likewise.
63836         * modules/strtok_r (Makefile.am): Likewise.
63837         * modules/strtol (Makefile.am): Likewise.
63838         * modules/strtoll (Makefile.am): Likewise.
63839         * modules/strtoul (Makefile.am): Likewise.
63840         * modules/strtoull (Makefile.am): Likewise.
63841         * modules/strtoumax (Makefile.am): Likewise.
63842         * modules/strverscmp (Makefile.am): Likewise.
63843         * modules/time_r (Makefile.am): Likewise.
63844         * modules/timegm (Makefile.am): Likewise.
63845         * modules/tmpfile-safer (Makefile.am): Likewise.
63846         * modules/unistd-safer (Makefile.am): Likewise.
63847         * modules/unlinkdir (Makefile.am): Likewise.
63848         * modules/userspec (Makefile.am): Likewise.
63849         * modules/utime (Makefile.am): Likewise.
63850         * modules/utimecmp (Makefile.am): Likewise.
63851         * modules/utimens (Makefile.am): Likewise.
63852         * modules/vasnprintf (Makefile.am): Likewise.
63853         * modules/vasprintf (Makefile.am): Likewise.
63854         * modules/vsnprintf (Makefile.am): Likewise.
63855         * modules/xalloc (Makefile.am): Likewise.
63856         * modules/xgetcwd (Makefile.am): Likewise.
63857         * modules/xnanosleep (Makefile.am): Likewise.
63858         * modules/xreadlink (Makefile.am): Likewise.
63859         * modules/xstrtod (Makefile.am): Likewise.
63860         * modules/xstrtol (Makefile.am): Likewise.
63861         * modules/xstrtold (Makefile.am): Likewise.
63862         * modules/yesno (Makefile.am): Likewise.
63863
63864 2006-10-12  Jim Meyering  <jim@meyering.net>
63865
63866         * m4/getloadavg.m4: Revert the change below.
63867
63868         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
63869         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
63870         fail with a symlink, which is what coreutils' ./bootstrap now
63871         creates by default.
63872
63873 2006-10-12  Bruno Haible  <bruno@clisp.org>
63874
63875         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
63876         mingw.
63877         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
63878         MSVC and mingw explicitly.
63879
63880 2006-10-11  Simon Josefsson  <jas@extundo.com>
63881             Bruno Haible  <bruno@clisp.org>
63882
63883         Add support for multiple gnulib-tool invocations in the scope of a
63884         single configure.ac file.
63885         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
63886         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
63887         with the same contents as the _LIBADD variable.
63888         (func_emit_initmacro_start, func_emit_initmacro_end,
63889         func_emit_initmacro_done): New functions.
63890         (func_import, func_create_testdir): Invoke them. Allow the identifiers
63891         gl_LIBOBJS and gl_LTLIBOBJS.
63892
63893 2006-10-11  Bruno Haible  <bruno@clisp.org>
63894
63895         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
63896         (func_create_testdir): Don't create po/Makefile.am, don't invoke
63897         autoreconf. Instead, invoke autopoint explicitly but move back the
63898         *.m4 files from gnulib.
63899
63900 2006-10-11  Bruno Haible  <bruno@clisp.org>
63901
63902         * gnulib-tool (func_usage): Make module names after --create-testdir
63903         optional.
63904         (func_create_testdir): If no module was specified, use nearly all
63905         modules.
63906
63907 2006-10-12  Jim Meyering  <jim@meyering.net>
63908
63909         Big performance improvement for fts-based tools that use FTS_NOSTAT.
63910         Avoid spurious inode-mismatch problems on non-POSIX file systems.
63911         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
63912         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
63913         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
63914         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
63915         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
63916         (fts_set_stat_required): New function.
63917         (fts_open): Defer the calls to fts_stat, if possible or requested.
63918         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
63919         into fts_stat itself.
63920         (fts_read): Perform any required (deferred) fts_stat call.
63921         (fts_build): Likewise, for the directory we're about to open and read.
63922         In the readdir loop, carefully decide whether each entry will require
63923         an eventual call to fts_stat, using dirent.d_type info if available.
63924         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
63925         a command line argument into this function.  Update all callers.
63926         Map a return value of FTS_DOT to FTS_D for a command line argument.
63927         * modules/fts (Depends-on): Add d-type.  Alphabetize.
63928         Thanks to Miklos Szeredi for his tenacity and for the initial
63929         bug report about "find" failing on a FUSE-based file system.
63930
63931         * lib/fts.c (fts_open): Use consistent indentation.
63932
63933 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63934
63935         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
63936         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
63937         reported by Jim Meyering.  All uses of cache variables renamed
63938         to match Autoconf's.
63939         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
63940         the other one.
63941
63942         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
63943         Fix misspelling in diagnostic.
63944
63945 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63946
63947         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
63948         defined.  Problem reported by Matthew Woehlke.
63949
63950         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
63951         Add support for Tandem NonStop R series.
63952         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
63953         Use new macro.
63954
63955         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
63956         (has_trailing_slash): Omit size arg; all callers changed.
63957         Omit 'inline', since it doesn't help performance and we'd
63958         need to configure it.
63959         Don't count //, ///, etc. as having a trailing slash.
63960         As a side effect, this removes a C99ism reported by Matthew Woehlke.
63961         (rpl_rename_dest_slash): On failure, use rename's errno rather
63962         than (in some cases) an incorrect or junk errno.
63963         Simplify code by removing need to compute length; this does
63964         cause it to make two passes instead of one over the file name,
63965         but it's worth it.
63966
63967         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
63968         change, since Autoconf's version may no longer be appropriate now
63969         that we are using CVS Autoconf's version.  Add support for Tandem.
63970
63971 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63972             Bruno Haible  <bruno@clisp.org>
63973
63974         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
63975         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
63976         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
63977         gl_AC_TYPE_LONG_LONG.
63978
63979         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
63980         instead of HAVE_LONG_LONG.
63981         * lib/printf-args.c (printf_fetchargs): Likewise.
63982         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
63983         * lib/vasnprintf.c (VASNPRINTF): Likewise.
63984         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
63985         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
63986         gl_AC_TYPE_LONG_LONG.
63987
63988 2006-10-11  Bruno Haible  <bruno@clisp.org>
63989
63990         * m4/longlong.m4: Add comments.
63991         * m4/ulonglong.m4: Likewise.
63992
63993 2006-10-10  Bruno Haible  <bruno@clisp.org>
63994
63995         Make it possible to #define stpcpy, strdup to aliases.
63996         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
63997         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
63998
63999 2006-10-10  Bruno Haible  <bruno@clisp.org>
64000
64001         Make it possible to #define gcd to an alias.
64002         * lib/gcd.c: Include config.h.
64003
64004 2006-10-10  Bruno Haible  <bruno@clisp.org>
64005
64006         Make it possible to #define c_isascii to an alias.
64007         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
64008         defined. Undefine the macros before defining them, to avoid gcc
64009         warnings.
64010         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
64011         define NO_C_CTYPE_MACROS early.
64012
64013 2006-10-10  Bruno Haible  <bruno@clisp.org>
64014
64015         Make it possible to #define set_program_name to an alias.
64016         * lib/progname.c: Don't undefine set_program_name; instead, undefine
64017         ENABLE_RELOCATABLE early.
64018
64019 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
64020
64021         Port to Tandem NSK OSS, which has 64-bit signed int but at most
64022         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
64023         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
64024         More generally, don't assume that 64-bit signed int is available
64025         if unsigned int is, and vice versa.
64026         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
64027         unsigned symbols, not on their signed counterparts.
64028         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
64029         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
64030         (UINT64_C, UINTMAX_C):
64031         Likewise.
64032         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
64033         unsigned counterparts.
64034         (Have_long_long, Unsigned): New macros.
64035         (Int): Renamed from INT.
64036         (strtoimax): Use the new macros.
64037         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
64038         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
64039         * modules/inttypes (inttypes.h): Substitute
64040         HAVE_UNSIGNED_LONG_LONG_INT.
64041         * modules/stdint (stdint.h): Likewise.
64042         (Files): Add m4/ulonglong.m4.
64043
64044 2006-10-10  Bruno Haible  <bruno@clisp.org>
64045
64046         Fix a gcc -Wshadow warning.
64047         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
64048         to 'bucket'.
64049         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
64050         gl_linked_indexof_from_to): Likewise.
64051         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
64052         Likewise.
64053         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
64054         Likewise.
64055         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
64056         Reported by Eric Blake.
64057
64058 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
64059
64060         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
64061         for NetBSD.  Problem reported by Bruno Haible.
64062
64063 2006-10-09  Jim Meyering  <jim@meyering.net>
64064
64065         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
64066         Patch from Bruno Haible.
64067
64068 2006-10-09  Jim Meyering  <jim@meyering.net>
64069
64070         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
64071         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
64072         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
64073
64074 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64075
64076         Don't include <config.h> twice; this doesn't work in some cases,
64077         e.g., when config.h has "#define intmax_t long long int" and
64078         we include <config.h>, <inttypes.h>, <config.h> in that order.
64079         Problem reported by Matthew Woehlke in:
64080         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
64081         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
64082         * lib/fts-cycle.c: Don't include config.h.
64083         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
64084         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
64085         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
64086         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
64087         inttypes.h.
64088         * lib/xstrtoumax.c: Likewise.
64089         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
64090         __strtol and the like, so that this module is more like its siblings.
64091         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
64092         Remove; no longer needed now that we assume gnulib inttypes.h.
64093
64094 2006-10-08  Bruno Haible  <bruno@clisp.org>
64095
64096         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
64097         option.
64098
64099 2006-10-07  Jim Meyering  <jim@meyering.net>
64100
64101         * modules/inttypes (inttypes.h): Revert what seems to have been
64102         an inadvertent part of today's change: use "|", not "/" in the
64103         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
64104
64105 2006-10-07  Bruno Haible  <bruno@clisp.org>
64106
64107         * modules/sublist: New file.
64108
64109 2006-10-07  Bruno Haible  <bruno@clisp.org>
64110
64111         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
64112         * modules/argz (argz.h): Likewise.
64113         * modules/arpa_inet (arpa/inet.h): Likewise.
64114         * modules/byteswap (byteswap.h): Likewise.
64115         * modules/configmake (configmake.h): Likewise.
64116         * modules/fcntl (fcntl.h): Likewise.
64117         * modules/fnmatch (fnmatch.h): Likewise.
64118         * modules/getopt (getopt.h): Likewise.
64119         * modules/glob (glob.h): Likewise.
64120         * modules/inttypes (inttypes.h): Likewise.
64121         * modules/netinet_in (netinet/in.h): Likewise.
64122         * modules/poll (poll.h): Likewise.
64123         * modules/stdbool (stdbool.h): Likewise.
64124         * modules/stdint (stdint.h): Likewise.
64125         * modules/sys_select (sys/select.h): Likewise.
64126         * modules/sys_socket (sys/socket.h): Likewise.
64127         * modules/sys_stat (sys/stat.h): Likewise.
64128         * modules/sysexits (sysexits.h): Likewise.
64129         * modules/unistd (unistd.h): Likewise.
64130         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
64131         Add a "DO NOT EDIT" comment to the generated file.
64132         (func_import): Likewise for gnulib-comp.m4.
64133
64134 2006-10-07  Bruno Haible  <bruno@clisp.org>
64135
64136         * lib/gl_sublist.h: New file.
64137         * lib/gl_sublist.c: New file.
64138
64139 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
64140
64141         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
64142         name (relative to the original working directory) and the file
64143         name component (relative to the temporary working directory).  All
64144         callers changed.
64145         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
64146         * lib/mkdir-p.c (make_dir_parents): Likewise.
64147         * lib/mkdir-p.h (make_dir_parents): Likewise.
64148
64149 2006-10-06  Eric Blake  <ebb9@byu.net>
64150
64151         Define several macros for use by the clean-temp module.
64152         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
64153         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
64154         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
64155
64156         * lib/clean-temp.h (close_stream_temp): New declaration.
64157         * lib/clean-temp.c (includes): Pull in headers according to what
64158         other modules are in use.
64159         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
64160
64161 2006-10-06  Bruno Haible  <bruno@clisp.org>
64162
64163         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
64164         instead of fopen, fwriteerror.
64165
64166 2006-10-06  Bruno Haible  <bruno@clisp.org>
64167
64168         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
64169         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
64170         int.
64171         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
64172         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
64173         Return an error indicator.
64174         Suggested by Eric Blake.
64175
64176 2006-10-06  Bruno Haible  <bruno@clisp.org>
64177
64178         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
64179         Reported by Eric Blake.
64180
64181 2006-10-06  Bruno Haible  <bruno@clisp.org>
64182
64183         * modules/closeout (Description): Mention stderr too.
64184
64185 2006-10-06  Bruno Haible  <bruno@clisp.org>
64186         and Paul Eggert  <eggert@cs.ucla.edu>
64187
64188         * lib/closeout.c (close_stdout): Also close stderr.
64189         * lib/closeout.h: Update comment.
64190
64191 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
64192
64193         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
64194         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
64195         * lib/dirchownmod.c: Include lchown.h.
64196         * lib/lchown.c: Don't include files that lchown.h now includes.
64197         Don't declare chown, since lchown.h now does that.
64198         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
64199         (lchown): Define to rpl_chown if lchown is declared but
64200         does not exist.  Declare using a prototype if lchown is not
64201         declared.  Add a copyright notice.
64202         * lib/mkstemp.h: Include <unistd.h>.
64203         * lib/openat.c: Include lchown.h.
64204
64205         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
64206         we now test for that separately.
64207         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
64208         rather than O_NOFOLLOW, when testing whether it's possible to
64209         avoid a race condition reliably.
64210         * lib/savewd.c (savewd_chdir): Likewise.
64211
64212         Remove macros that are no longer needed now that stdint.h is
64213         reliable.
64214         * lib/fsusage.c (UINTMAX_MAX): Remove.
64215         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
64216         * lib/utimecmp.c (SIZE_MAX): Remove.
64217
64218         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
64219
64220         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
64221         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
64222         O_NOATIME works.
64223
64224 2006-10-05  Bruno Haible  <bruno@clisp.org>
64225
64226         * lib/gl_list.h (gl_sortedlist_search_from_to,
64227         gl_sortedlist_indexof_from_to): New declarations.
64228         (gl_list_implementation): New fields sortedlist_search_from_to,
64229         sortedlist_indexof_from_to.
64230         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
64231         inline functions.
64232         * lib/gl_list.c (gl_sortedlist_search_from_to,
64233         gl_sortedlist_indexof_from_to): New functions.
64234         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
64235         function.
64236         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
64237         (gl_array_sortedlist_search_from_to): New function.
64238         (gl_array_list_implementation): Update.
64239         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
64240         function.
64241         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
64242         (gl_carray_sortedlist_search_from_to): New function.
64243         (gl_carray_list_implementation): Update.
64244         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
64245         gl_linked_sortedlist_indexof_from_to): New functions.
64246         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
64247         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
64248         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
64249         gl_tree_sortedlist_indexof_from_to): New functions.
64250         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
64251         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
64252         Update.
64253         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
64254         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
64255         Update.
64256
64257 2006-10-05  Bruno Haible  <bruno@clisp.org>
64258
64259         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
64260         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
64261         (struct gl_list_implementation): Add fields search_from_to,
64262         indexof_from_to. Remove fields search, indexof.
64263         (gl_list_search): Use the search_from_to method.
64264         (gl_list_search_from, gl_list_search_from_to): New functions.
64265         (gl_list_indexof): Use the indexof_from_to method.
64266         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
64267         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
64268         (gl_list_search_from, gl_list_search_from_to): New functions.
64269         (gl_list_indexof): Use the indexof_from_to method.
64270         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
64271         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
64272         gl_array_indexof. Add start_index, end_index arguments.
64273         (gl_array_search_from_to): Renamed from gl_array_search. Add
64274         start_index, end_index arguments.
64275         (gl_array_remove, gl_array_list_implementation): Update.
64276         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
64277         gl_carray_indexof. Add start_index, end_index arguments.
64278         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
64279         start_index, end_index arguments.
64280         (gl_carray_remove, gl_carray_list_implementation): Update.
64281         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
64282         gl_linked_search. Add start_index, end_index arguments.
64283         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
64284         start_index, end_index arguments.
64285         (gl_linked_remove): Update.
64286         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
64287         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
64288         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
64289         field to 'size_t'.
64290         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
64291         gl_tree_search. Add start_index, end_index arguments.
64292         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
64293         start_index, end_index arguments.
64294         (gl_tree_remove): Update.
64295         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
64296         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
64297         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
64298         function.
64299         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
64300         gl_tree_search. Add start_index, end_index arguments.
64301         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
64302         start_index, end_index arguments.
64303         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
64304         Update.
64305         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
64306
64307 2006-10-05  Bruno Haible  <bruno@clisp.org>
64308
64309         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
64310
64311         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
64312         fwriteerror_temp): New declarations.
64313         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
64314         (descriptors): New variable.
64315         (cleanup): First, close the descriptors.
64316         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
64317         fclose_temp, fwriteerror_temp): New functions.
64318
64319 2006-10-04  Jim Meyering  <jim@meyering.net>
64320
64321         * lib/fts.c (fts_open): Tiny comment change.
64322
64323 2006-10-04  Bruno Haible  <bruno@clisp.org>
64324
64325         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
64326         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
64327         gl_LOCK_BODY.
64328         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
64329         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
64330         gl_LOCK_EARLY_BODY.
64331         (gl_LOCK): Require gl_LOCK_BODY.
64332
64333 2006-10-04  Bruno Haible  <bruno@clisp.org>
64334
64335         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
64336         (gl_oset_search_atleast): New declaration.
64337         (struct gl_oset_implementation): Add field 'search_atleast'.
64338         (gl_oset_search_atleast): New inline function.
64339         * lib/gl_oset.c (gl_oset_search_atleast): New function.
64340         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
64341         (gl_array_oset_implementation): Update.
64342         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
64343         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
64344         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
64345
64346 2006-10-04  Bruno Haible  <bruno@clisp.org>
64347
64348         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
64349
64350 2006-10-03  Bruno Haible  <bruno@clisp.org>
64351
64352         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
64353         from gl_avltreehash_list_implementation.
64354
64355 2006-10-03  Bruno Haible  <bruno@clisp.org>
64356
64357         * lib/gl_oset.c (gl_oset_add): Fix return type.
64358
64359 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
64360
64361         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
64362
64363 2006-10-02  Eric Blake  <ebb9@byu.net>
64364
64365         * modules/strnlen (Depends-on): Add extensions.
64366
64367 2006-10-02  Eric Blake  <ebb9@byu.net>
64368
64369         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
64370         definition in 2.60+.
64371
64372 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
64373
64374         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
64375         checks.
64376
64377 2006-10-02  Bruno Haible  <bruno@clisp.org>
64378
64379         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
64380         to the AUTOMAKE_OPTIONS.
64381         Reported by Jim Meyering.
64382
64383 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
64384
64385         Work around bug in Solaris 10 /proc file system:
64386         /proc/self/fd/NNN/.. isn't the parent directory of
64387         the directory whose file descriptor is NNN.  This needs to
64388         be worked around at run time, not compile time, since a
64389         program might be built on Solaris 8, where things work, and
64390         run on Solaris 10.
64391         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
64392         to use the following interface instead:
64393         (OPENAT_BUFFER_SIZE): New macro.
64394         (openat_proc_name): New function.
64395         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
64396         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
64397         Likewise.
64398         * lib/openat-proc.c: New file.
64399         * modules/openat (Files): Add lib/openat-proc.c.
64400         (Depends-on): Add same-inode, stdbool.
64401         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
64402
64403 2006-09-29  Bruno Haible  <bruno@clisp.org>
64404
64405         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
64406         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
64407         argument. Set stdout_closed before testing for ferror, not after.
64408         (fwriteerror, fwriteerror_no_ebadf): New functions.
64409
64410 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64411
64412         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
64413
64414 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
64415
64416         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
64417         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
64418
64419 2006-09-28  Jim Meyering  <jim@meyering.net>
64420
64421         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
64422         Include <unistd.h>.
64423
64424 2006-09-28  Bruno Haible  <bruno@clisp.org>
64425
64426         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
64427         * modules/linkedhash-list (Depends-on): Likewise.
64428         * modules/rbtreehash-list (Depends-on): Likewise.
64429
64430 2006-09-28  Bruno Haible  <bruno@clisp.org>
64431
64432         * lib/strndup.h: Simplify the redefinition of strndup.
64433         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
64434         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
64435
64436 2006-09-28  Bruno Haible  <bruno@clisp.org>
64437
64438         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
64439         * lib/gl_linkedhash_list.c: Likewise.
64440         * lib/gl_rbtreehash_list.c: Likewise.
64441
64442 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
64443
64444         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
64445         getaddrinfo.
64446
64447         * lib/__fpending.h: Don't include <stdio_ext.h> unless
64448         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
64449         it causes <stdio_ext.h> to cause a compile-time error.
64450         Problem reported by Nelson H. F. Beebe.
64451         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
64452         of HAVE_DECL___PENDING.
64453
64454         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
64455         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
64456         declaration.
64457
64458 2006-09-27  Jim Meyering  <jim@meyering.net>
64459
64460         This file could end up with a definition for a function
64461         named __strndup, rather than rpl_strndup on a system with
64462         incomplete weak_alias support.
64463         * lib/strndup.c (strndup): Rename from __strndup.
64464         Remove #defines that used to map __strndup to strndup.
64465         Don't use K&R prototypes.
64466         Remove LIBC-related code, since this file is not sync'd with glibc.
64467         * lib/strndup.h: Revamp, accordingly.
64468         * m4/strndup.m4: Modernize.
64469
64470 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
64471
64472         * modules/savewd (Depends-on): Add 'raise'.
64473         * lib/savewd.c: Include <signal.h>, for 'raise'.
64474
64475 2006-09-26  Jim Meyering  <jim@meyering.net>
64476
64477         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
64478         when we detect Darwin 8.7.0's acl_get_file bug.
64479         Rearrange to perform the new (below) run-test while $LIBS
64480         contains any acl-related library.  Set USE_ACL at the end.
64481         (gl_ACL_GET_FILE): New function.
64482
64483 2006-09-26  Eric Blake  <ebb9@byu.net>
64484
64485         * lib/verror.c: Include <config.h> unconditionally.
64486
64487 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
64488
64489         * modules/clock-time (Maintainer): Add self.
64490         * modules/getlogin_r (Depends-on): Add extensions.
64491
64492 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64493
64494         * modules/clock-time: New module.
64495         * modules/nanosleep (Depends-on): Add clock-time.
64496         * modules/gethrxtime (Depends-on): Likewise.
64497         * modules/gettime (Depends-on): Likewise.
64498         * modules/settime (Depends-on): Likewise.
64499
64500         * modules/fts-lgpl: Depend on openat.
64501         * modules/mkancesdirs: Depend on savewd.
64502         * modules/mkdir-p: Likewise.
64503
64504 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64505
64506         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
64507
64508         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
64509         `gl_have_arbitrary_file_name_length_limit' to
64510         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
64511         actually works between configure runs.
64512
64513 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64514             Bruno Haible  <bruno@clisp.org>
64515
64516         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
64517
64518 2006-09-25  Jim Meyering  <jim@meyering.net>
64519
64520         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
64521         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
64522
64523 2006-09-25  Eric Blake  <ebb9@byu.net>
64524
64525         * gnulib-tool (func_import, func_create_testdir): Fix typos in
64526         exec's in 2006-09-18 patch when shuffling fds.
64527
64528 2006-09-25  Bruno Haible  <bruno@clisp.org>
64529
64530         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
64531         Reported by Jim Meyering.
64532
64533 2006-09-24  Jim Meyering  <jim@meyering.net>
64534
64535         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
64536         compare a pointer against a literal "0".  That caused failures with
64537         at least HP-UX's hpcc.
64538
64539 2006-09-22  Simon Josefsson  <jas@extundo.com>
64540
64541         * modules/gc-sha1:
64542         * modules/gc-md4:
64543         * modules/gc-hmac-sha1:
64544         * modules/gc-hmac-md5:
64545         * modules/gc-des:
64546         * modules/gc-arcfour: Distribute more files.
64547
64548 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64549
64550         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
64551         (gl_linked_iterator_from_to): Initialize struct completely.
64552         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
64553         (gl_tree_iterator_from_to): Likewise
64554         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
64555         * lib/gl_array_list.c [lint] (gl_array_iterator)
64556         (gl_array_iterator_from_to): Likewise.
64557         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
64558         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
64559         (gl_carray_iterator_from_to): Likewise.
64560
64561         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
64562         * lib/md4.c (md4_process_block): Remove unused variable.
64563         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
64564         parentheses for clarity.
64565
64566 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64567
64568         * modules/bison-i18n (Depends-on): Add gettext.
64569
64570 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64571
64572         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
64573         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
64574         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
64575         also add missing comma that caused broken test.
64576         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
64577         stdlib.h, for `abort'.
64578         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
64579         variables.
64580         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
64581         include unistd.h if present, for `rmdir'.
64582         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
64583         variables.
64584         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
64585         in the process include standard headers for prototypes.
64586         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
64587         gets declared on GNU/Linux.
64588         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
64589         unistd.h, for `rmdir'.
64590         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
64591
64592         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
64593         always true.
64594         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
64595
64596         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
64597
64598 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64599
64600         * gnulib-tool (func_version): Create output all at once.  This
64601         may help avoid triggering unnecessary SIGPIPEs, and at any
64602         rate it doesn't hurt.
64603
64604 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64605             Bruno Haible  <bruno@clisp.org>
64606
64607         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
64608         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
64609         * m4/signed.m4 (bh_C_SIGNED): Likewise.
64610
64611         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
64612         (gl_FUNC_VASPRINTF): Invoke it.
64613
64614 2006-09-22  Bruno Haible  <bruno@clisp.org>
64615
64616         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
64617         getloadavg.c as first argument.
64618
64619 2006-09-22  Bruno Haible  <bruno@clisp.org>
64620
64621         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
64622         at the beginning of the gl_INIT macro.
64623         * modules/getloadavg (configure.ac): Pass $gl_source_base to
64624         gl_GETLOADAVG.
64625
64626 2006-09-22  Bruno Haible  <bruno@clisp.org>
64627
64628         * gnulib-tool (func_create_megatestdir): Don't include the config-h
64629         module.
64630         Suggested by Ralf Wildenhues.
64631
64632 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
64633
64634         Import this patch from libc:
64635
64636         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
64637
64638         * lib/regex_internal.c (re_string_reconstruct): Handle
64639         offset < pstr->valid_raw_len && pstr->offsets_needed case.
64640         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
64641         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
64642         re_string_context_at.
64643
64644         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
64645         now requires it.
64646         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
64647         gl_REGEX now does it for us.
64648         (gl_REGEX): Add test taken from
64649         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
64650
64651         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
64652         Check that large offsets work.  Modernize Autoconf usages.
64653         Prefer "yes" to mean a good thing rather than a bad.
64654         Don't put "#define mkstemp" in config.h, as this might interfere
64655         with standard system headers that "#define mkstemp mkstemp64".
64656
64657         * modules/mkstemp (Depends-on): Add extensions, so that
64658         mkstemp is visible on some platforms.
64659         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
64660         (Include): Change to "mkstemp.h" from <stdlib.h>.
64661         (Files): Add mkstemp.h.
64662
64663         * lib/mkstemp.h: New file, since some standard headers
64664         #define mkstemp.
64665         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
64666         Include "mkstemp.h".
64667         Make the _LIBC code resemble glibc original more,
64668         e.g., use K&R style.
64669         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
64670         (mkstemp): Remove, since mkstemp.h does this for us.
64671         * lib/stdlib--.h: Include mkstemp.h.
64672
64673         Import this patch from libc:
64674
64675         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
64676
64677         * lib/tempname.c (__gen_tempname): Change attempts_min
64678         into a macro.  Use preprocessor to decide how to initialize
64679         attempts [Coverity CID 67].
64680
64681 2006-09-20  Bruno Haible  <bruno@clisp.org>
64682
64683         * lib/mkdtemp.c: Import from libc.
64684         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
64685                 * sysdeps/posix/tempname.c (__gen_tempname): Change
64686                 attempts_min into a macro.  Use preprocessor to decide how to
64687                 initialize attempts [Coverity CID 67].
64688         2001-11-27  Paul Eggert  <eggert@twinsun.com>
64689                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
64690                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
64691
64692 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64693
64694         * gnulib-tool (func_exit): New function, to allow to pass the
64695         exit status portably through the trap.  Use everywhere.
64696         (--help, --version): Signal a write error.
64697         (trap): catch SIGPIPE, for write errors.
64698         Exit at the end of the trap, with the correct exit status.
64699
64700 2006-09-19  Karl Berry  <karl@gnu.org>
64701
64702         * doc/gnulib.texi: note about the license texinfo files.
64703
64704 2006-09-19  Eric Blake  <ebb9@byu.net>
64705
64706         * gnulib-tool: Avoid space-tab.
64707
64708 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
64709
64710         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
64711         that prevented coreutils 6.1 from building.  Problem reported
64712         by Petter Reinholdtsen.
64713
64714 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
64715
64716         * gnulib-tool (avoidlist): Fix typo that broke options like
64717         --avoid=lock that are used by coreutils bootstrap.
64718
64719 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
64720
64721         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
64722         more systematically.
64723
64724 2006-09-18  Jim Meyering  <jim@meyering.net>
64725
64726         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
64727
64728 2006-09-18  Bruno Haible  <bruno@clisp.org>
64729
64730         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
64731
64732 2006-09-18  Bruno Haible  <bruno@clisp.org>
64733
64734         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
64735         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
64736         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
64737         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
64738         * m4/gettext.m4: Require autoconf >= 2.52.
64739         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
64740         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
64741         of gl_cv_header_inttypes_h.
64742
64743 2006-09-18  Bruno Haible  <bruno@clisp.org>
64744
64745         * lib/javaversion.c: Include configmake.h.
64746
64747 2006-09-18  Bruno Haible  <bruno@clisp.org>
64748
64749         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
64750         avoid that the while loops be executed in a subshell.
64751
64752 2006-09-18  Bruno Haible  <bruno@clisp.org>
64753
64754         * MODULES.html.sh (func_module): Break long lines.
64755         Suggested by Bruce Korb <bkorb@gnu.org>.
64756
64757 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64758
64759         Speed up by a factor of 1.12.
64760         * gnulib-tool (nl): New variable.
64761         (func_import): Rewrite include directive extraction to only read each
64762         directive once.
64763
64764 2006-09-17  Bruno Haible  <bruno@clisp.org>
64765
64766         * modules/javaversion (Makefile.am): Remove DEFS setting.
64767         (Depends-on): Add configmake, for PKGDATADIR definition.
64768
64769 2006-09-17  Bruno Haible  <bruno@clisp.org>
64770
64771         * gnulib-tool (func_create_testdir): Rewrite all files at once.
64772
64773 2006-09-17  Bruno Haible  <bruno@clisp.org>
64774
64775         * gnulib-tool (func_append): New function, stolen from libtool.m4.
64776         (func_modules_transitive_closure, func_modules_add_dummy,
64777         func_modules_to_filelist, func_import, func_create_testdir,
64778         func_create_megatestdir, ...): Use it wherever possible.
64779         Suggested by Ralf Wildenhues.
64780
64781 2006-09-16  Karl Berry  <karl@gnu.org>
64782
64783         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
64784         to avoid sectioning errors.
64785         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
64786         [ifinfo]: blank line after @center-ed titles.
64787         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
64788         Spell FSF address consistently with others.
64789         (These changes approved by rms.)
64790
64791 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64792
64793         Speed up by a factor of 1.61.
64794         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
64795         already checked module names again.
64796
64797 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64798
64799         Speed up by a factor of 1.13.
64800         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
64801         for new_files, and the input to func_add_or_update.
64802
64803 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64804
64805         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
64806         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
64807
64808 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64809
64810         * modules/mkancesdirs (Depends-on): Add fcntl.
64811         * modules/savewd: New file.
64812         * MODULES.html.sh (File system functions): Add savewd.
64813
64814         * modules/configmake (Makefile.am): Add support for the
64815         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
64816
64817 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64818
64819         * m4/savewd.m4: New file.
64820
64821 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64822
64823         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
64824         (dirchownmod): New arg FD.  All callers changed.
64825         Use FD rather than opening the directory ourself, as opening is
64826         now the caller's responsibility.
64827         * lib/dirchownmod.h: Likewise.
64828         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
64829         hosts that require <sys/types.h> before <sys/stat.h>.  Include
64830         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
64831         (test_dir): Remove.
64832         (mkancesdirs): Return length of prefix of FILE that has already
64833         been made, or -2 if there is a child doing the work.  Redo
64834         algorithm so that it is O(N) rather than O(N**2).  Optimize away
64835         ".", and treat ".." specially since it might stray back into
64836         already-created areas.  Use a subprocess if necessary.  New arg
64837         WD; all users changed.  MAKE_DIR function should now return 1
64838         if it creates a directory that is not readable.  Return -2 if
64839         a child process is spun off.
64840         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
64841         Adjust signature to match code.
64842         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
64843         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
64844         all users changed.
64845         * lib/savewd.c, lib/savewd.h: New files.
64846
64847 2006-09-15  Jim Meyering  <jim@meyering.net>
64848
64849         * modules/rename-dest-slash: New module.
64850         * MODULES.html.sh (posix_compat): Add it here.
64851
64852         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
64853
64854 2006-09-15  Jim Meyering  <jim@meyering.net>
64855
64856         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
64857         file.
64858
64859         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
64860
64861 2006-09-15  Jim Meyering  <jim@meyering.net>
64862
64863         * lib/rename-dest-slash.c (has_trailing_slash): Use
64864         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
64865         (rpl_rename_dest_slash): Perform the cheaper trailing slash
64866         test before testing whether SRC is a directory.
64867         Suggestions from Bruno Haible.
64868
64869         Avoid a warning about an unused variable.
64870         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
64871         into the #ifdef block where it's used.
64872
64873         * lib/rename-dest-slash.c: New file.
64874
64875 2006-09-14  Bruno Haible  <bruno@clisp.org>
64876
64877         * lib/allocsa.c: Include <config.h> unconditionally.
64878         * lib/asnprintf.c: Likewise.
64879         * lib/asprintf.c: Likewise.
64880         * lib/c-strcasecmp.c: Likewise.
64881         * lib/c-strcasestr.c: Likewise.
64882         * lib/c-strncasecmp.c: Likewise.
64883         * lib/c-strstr.c: Likewise.
64884         * lib/classpath.c: Likewise.
64885         * lib/clean-temp.c: Likewise.
64886         * lib/concatpath.c: Likewise.
64887         * lib/copy-file.c: Likewise.
64888         * lib/csharpcomp.c: Likewise.
64889         * lib/csharpexec.c: Likewise.
64890         * lib/execute.c: Likewise.
64891         * lib/fatal-signal.c: Likewise.
64892         * lib/findprog.c: Likewise.
64893         * lib/fwriteerror.c: Likewise.
64894         * lib/gl_array_list.c: Likewise.
64895         * lib/gl_array_oset.c: Likewise.
64896         * lib/gl_avltree_list.c: Likewise.
64897         * lib/gl_avltree_oset.c: Likewise.
64898         * lib/gl_avltreehash_list.c: Likewise.
64899         * lib/gl_carray_list.c: Likewise.
64900         * lib/gl_linked_list.c: Likewise.
64901         * lib/gl_linkedhash_list.c: Likewise.
64902         * lib/gl_list.c: Likewise.
64903         * lib/gl_oset.c: Likewise.
64904         * lib/gl_rbtree_list.c: Likewise.
64905         * lib/gl_rbtree_oset.c: Likewise.
64906         * lib/gl_rbtreehash_list.c: Likewise.
64907         * lib/imaxabs.c: Likewise.
64908         * lib/imaxdiv.c: Likewise.
64909         * lib/javacomp.c: Likewise.
64910         * lib/javaexec.c: Likewise.
64911         * lib/javaversion.c: Likewise.
64912         * lib/linebreak.c: Likewise.
64913         * lib/localcharset.c: Likewise.
64914         * lib/lock.c: Likewise.
64915         * lib/mbchar.c: Likewise.
64916         * lib/mbswidth.c: Likewise.
64917         * lib/mkdtemp.c: Likewise.
64918         * lib/pipe.c: Likewise.
64919         * lib/printf-args.c: Likewise.
64920         * lib/printf-parse.c: Likewise.
64921         * lib/progname.c: Likewise.
64922         * lib/progreloc.c: Likewise.
64923         * lib/readlink.c: Likewise.
64924         * lib/sh-quote.c: Likewise.
64925         * lib/stpcpy.c: Likewise.
64926         * lib/stpncpy.c: Likewise.
64927         * lib/strcasecmp.c: Likewise.
64928         * lib/strcasestr.c: Likewise.
64929         * lib/strcspn.c: Likewise.
64930         * lib/striconv.c: Likewise.
64931         * lib/strncasecmp.c: Likewise.
64932         * lib/strnlen1.c: Likewise.
64933         * lib/strstr.c: Likewise.
64934         * lib/strtok_r.c: Likewise.
64935         * lib/tls.c: Likewise.
64936         * lib/tmpdir.c: Likewise.
64937         * lib/unicodeio.c: Likewise.
64938         * lib/unsetenv.c: Likewise.
64939         * lib/vasnprintf.c: Likewise.
64940         * lib/vasprintf.c: Likewise.
64941         * lib/wait-process.c: Likewise.
64942         * lib/xallocsa.c: Likewise.
64943         * lib/xsetenv.c: Likewise.
64944         * lib/xstriconv.c: Likewise.
64945
64946 2006-09-13  Simon Josefsson  <jas@extundo.com>
64947
64948         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
64949         that internally, suggested by Ralf Wildenhues
64950         <Ralf.Wildenhues@gmx.de>.
64951
64952 2006-09-13  Simon Josefsson  <jas@extundo.com>
64953
64954         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
64955         @LIBOBJS@.
64956         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64957
64958 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64959
64960         * lib/_fpending.c: Include <config.h> unconditionally, since we no
64961         longer worry about uses that don't define HAVE_CONFIG_H.
64962         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
64963         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
64964         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
64965         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
64966         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
64967         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
64968         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
64969         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
64970         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
64971         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
64972         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
64973         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
64974         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
64975         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
64976         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
64977         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
64978         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
64979         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
64980         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
64981         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
64982         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
64983         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
64984         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
64985         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
64986         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
64987         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
64988         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
64989         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
64990         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
64991         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
64992         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
64993         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
64994         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
64995         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
64996         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
64997         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
64998         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
64999         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
65000         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
65001         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
65002         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
65003         Likewise.
65004
65005 2006-09-13  Eric Blake  <ebb9@byu.net>
65006
65007         * lib/getopt.c: Fix typo in last commit.
65008
65009 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
65010
65011         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
65012         dgettext.
65013
65014 2006-09-12  Jim Meyering  <jim@meyering.net>
65015
65016         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
65017         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
65018         Reported by Nelson H. F. Beebe.
65019
65020 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65021
65022         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
65023         program_invocation_name and program_invocation_short_name are
65024         initialized.
65025         * lib/argp-namefrob.h: Move declarations of program_invocation_name
65026         and program_invocation_short_name to argp.h, so they are visible
65027         to user programs.
65028         * lib/argp.h: Likewise
65029
65030 2006-09-10  Bruno Haible  <bruno@clisp.org>
65031
65032         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
65033         m4/inttypes_h.m4, m4/uintmax_t.m4.
65034
65035 2006-09-10  Bruno Haible  <bruno@clisp.org>
65036
65037         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
65038         gl_AC_TYPE_UINTMAX_T.
65039
65040 2006-09-10  Bruno Haible  <bruno@clisp.org>
65041
65042         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
65043
65044 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
65045
65046         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
65047         convention.  Text proposed by Bruno Haible.
65048         (struct argp_option): Document the use of N_() wrappers.
65049
65050         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
65051         '\v', and translate the two parts separately, instead of feeding
65052         the whole string to gettext.  This allows to exclude
65053         '\v' from the strings visible to the translator by writing doc
65054         strings as N_("..") "\v" N_("..").
65055
65056 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
65057
65058         * config/srclist.txt: Undo latest change; the bug was fixed.
65059
65060 2006-09-09  Bruno Haible  <bruno@clisp.org>
65061
65062         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
65063         assignments if building a library without libtool.
65064         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
65065         in func_emit_lib_Makefile_am.
65066         (func_import): When building a static library libfoo.a, arrange to
65067         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
65068         (func_create_testdir): Likewise.
65069         * modules/gc (configure.ac, Makefile.am): If building statically,
65070         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
65071         * modules/iconvme (configure.ac, Makefile.am): Likewise.
65072         * modules/striconv (configure.ac, Makefile.am): Likewise.
65073         Based on a suggestion by Ralf Wildenhues.
65074
65075 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65076
65077         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
65078         Check for unistd.h too, since Autoconf doesn't assume POSIX.
65079         Also:
65080
65081         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65082         Add year_2050_test to catch glibc bug 2821
65083         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
65084
65085         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65086         Prefer #ifdef to #if.
65087
65088         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
65089         Return from 'main' instead of calling 'exit'.
65090
65091 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65092
65093         * lib/mktime.c (guess_time_tm): Fix bug where mktime
65094         returned the maximum time_t value rather than (time_t) -1.
65095         Problem originally reported by William Bardwell
65096         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
65097
65098         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
65099         Moved to here ...
65100         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
65101         ... from here.
65102
65103 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
65104
65105         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
65106         2821 is fixed.
65107
65108 2006-09-08  Jim Meyering  <jim@meyering.net>
65109
65110         Don't make generated files read-only.  That would bother too many
65111         people.  However, do retain the ability to work when targets are
65112         read-only: remove the destination and temporary files before writing
65113         them (when generated via sed or echo), or by using the -f option for
65114         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
65115         * modules/alloca-opt, modules/argz, modules/arpa_inet:
65116         * modules/byteswap, modules/configmake, modules/fcntl:
65117         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
65118         * modules/localcharset, modules/netinet_in, modules/poll:
65119         * modules/stdbool, modules/stdint, modules/sys_select:
65120         * modules/sys_socket, modules/sys_stat, modules/sysexits:
65121
65122 2006-09-08  Jim Meyering  <jim@meyering.net>
65123
65124         Avoid new build failure on FreeBSD 6.0.
65125         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
65126         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
65127         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
65128
65129 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65130
65131         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
65132
65133 2006-09-07  Jim Meyering  <jim@meyering.net>
65134
65135         Fix global typo in last change: use chmod u-w, not chmod u-x.
65136         Spotted by Paul Eggert and Bruce Korb.
65137         * modules/alloca-opt, modules/argz, modules/arpa_inet:
65138         * modules/byteswap, modules/configmake, modules/fcntl:
65139         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
65140         * modules/localcharset, modules/netinet_in, modules/poll:
65141         * modules/stdbool, modules/stdint, modules/sys_select:
65142         * modules/sys_socket, modules/sys_stat, modules/sysexits:
65143
65144 2006-09-06  Jim Meyering  <jim@meyering.net>
65145
65146         Make generated files be read-only.
65147         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
65148         Ensure that each generated file is now read-only.
65149         * modules/argz: Likewise.
65150         * modules/arpa_inet: Likewise.
65151         * modules/byteswap: Likewise.
65152         * modules/configmake: Likewise.
65153         * modules/fcntl: Likewise.
65154         * modules/fnmatch: Likewise.
65155         * modules/getopt: Likewise.
65156         * modules/glob: Likewise.
65157         * modules/inttypes: Likewise.
65158         * modules/netinet_in: Likewise.
65159         * modules/poll: Likewise.
65160         * modules/stdbool: Likewise.
65161         * modules/stdint: Likewise.
65162         * modules/sys_select: Likewise.
65163         * modules/sys_socket: Likewise.
65164         * modules/sys_stat: Likewise.
65165         * modules/sysexits: Likewise.
65166         * modules/localcharset: Same as above, but continue using temporary
65167         file named "t-$@" (why different?) rather than the "$@-t" used
65168         everywhere else.
65169
65170         * modules/sysexits (Makefile.am): Replace literal occurrences
65171         of "sysexit.h" more readable, and more consistent, "$@".
65172
65173 2006-09-06  Bruno Haible  <bruno@clisp.org>
65174
65175         * modules/striconv: New file.
65176         * modules/xstriconv: New file.
65177         * MODULES.html.sh (Internationalization functions): Add striconv,
65178         xstriconv.
65179
65180 2006-09-06  Bruno Haible  <bruno@clisp.org>
65181
65182         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
65183         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
65184         not using libtool correctly.
65185
65186 2006-09-06  Bruno Haible  <bruno@clisp.org>
65187
65188         * lib/striconv.h: New file.
65189         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
65190         iconvstring.c.
65191         * lib/xstriconv.h: New file.
65192         * lib/xstriconv.c: New file.
65193
65194 2006-09-06  Bruno Haible  <bruno@clisp.org>
65195
65196         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
65197         lib_..._LDFLAGS.
65198
65199 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65200
65201         * lib/argz_.h: Sync from Libtool.
65202
65203         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
65204                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
65205
65206         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
65207
65208 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
65209
65210         * modules/trim: New file.
65211
65212 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
65213
65214         * lib/trim.h: New file.
65215         * lib/trim.c: New file.
65216
65217 2006-09-05  Bruno Haible  <bruno@clisp.org>
65218
65219         * MODULES.html.sh (String handling): Add trim.
65220
65221 2006-09-04  Karl Berry  <karl@gnu.org>
65222
65223         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
65224         until next release.
65225
65226 2006-09-03  Bruno Haible  <bruno@clisp.org>
65227
65228         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
65229         correctly.
65230
65231 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65232
65233         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
65234         not gl_GETLOADAVG.  Omit unneeded semicolons.
65235         Problems reported by Ralf Wildenhues in
65236         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
65237         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
65238         at the end, which is the usual gnulib style.
65239
65240         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
65241         of doing all the work ourselves.
65242         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
65243         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
65244
65245 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65246
65247         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
65248         Problem reported by Ralf Wildenhues in
65249         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
65250
65251         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
65252         HAVE_STRUCT_STATFS_F_FSTYPENAME.
65253
65254 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65255
65256         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
65257         yesterday's patch by changing test -n to test -z.
65258
65259 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65260
65261         * modules/getloadavg (Files): Add m4/getloadavg.m4.
65262         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
65263         the former is now obsolescent.
65264
65265         * modules/chdir-long (Depends-on): Add fcntl.
65266
65267 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65268
65269         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
65270         obsolescent, and programs should use gnulib instead.
65271         * m4/getloadavg.m4: New file, with contents taken from Autoconf
65272         but with prefixes changed.
65273
65274 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
65275
65276         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
65277         or stdbool.h, because they might not exist while configuring.
65278
65279         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
65280         Don't include unistd.h or limits.h; not needed, since chdir-long.h
65281         does that for us.
65282         (O_DIRECTORY): Remove.
65283
65284 2006-08-31  Eric Blake  <ebb9@byu.net>
65285
65286         * gnulib-tool: Don't let emacs change spaces to TAB.
65287
65288 2006-08-31  Bruno Haible  <bruno@clisp.org>
65289
65290         * gnulib-tool: When calling func_import more than once, do it in a
65291         subshell.
65292         Reported by Eric Blake <ebb9@byu.net>.
65293
65294 2006-08-31  Bruno Haible  <bruno@clisp.org>
65295
65296         * gnulib-tool (nl): Remove variable.
65297         (sed_transform_lib_file): Use more robust test for config-h module.
65298         (func_import): Fix typo in 2006-08-25 patch.
65299
65300 2006-08-31  Bruno Haible  <bruno@clisp.org>
65301
65302         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
65303         specified, augment Makefile.am variables instead of assigning them.
65304
65305 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65306
65307         Work around a bug in both the Linux and SunOS 64-bit kernels:
65308         nanosleep mishandles sleeps for longer than 2**31 seconds.
65309         Problem reported by Frank v Waveren in
65310         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
65311         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
65312         Check for nanosleep bug.
65313         (LIB_NANOSLEEP): Append clock_gettime library if needed.
65314
65315 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65316
65317         Work around a bug in both the Linux and SunOS 64-bit kernels:
65318         nanosleep mishandles sleeps for longer than 2**31 seconds.
65319         Problem reported by Frank v Waveren in
65320         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
65321         * lib/nanosleep.c (BILLION): New constant.
65322         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
65323         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
65324         implementation.
65325
65326 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65327
65328         * modules/nanosleep (Depends-on): Add gettime.
65329
65330 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
65331         and Simon Josefsson  <jas@extundo.com>
65332         and Oskar Liljeblad  <oskar@osk.mine.nu>
65333
65334         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
65335         * gnulib-tool (func_import): New license type 'unmodifiable license
65336         text'.
65337         * modules/fdl: Use it.  Longer description.
65338         * module/gpl, module/lgpl: New files.
65339
65340 2006-08-30  Jim Meyering  <jim@meyering.net>
65341
65342         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
65343         shadowing the parameter.
65344
65345 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65346
65347         Sync from Libtool:
65348
65349         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65350
65351         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
65352         sharing with gnulib.  Report by Eric Blake.
65353
65354 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65355
65356         * modules/isapipe: New file.
65357         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
65358
65359 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65360
65361         * modules/configmake (Makefile.am): Add a comment, and omit
65362         the CONFIGMAKE_ prefix from generated macro names.  Suggested
65363         by Bruno Haible.
65364
65365 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65366
65367         * m4/isapipe.m4: New file.
65368
65369 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
65370
65371         * lib/isapipe.c, lib/isapipe.h: New files.
65372
65373 2006-08-29  Jim Meyering  <jim@meyering.net>
65374
65375         * modules/configmake (Makefile.am): Make configmake.h depend on
65376         Makefile.  Otherwise, a stale configmake.h could hang around.
65377
65378 2006-08-29  Eric Blake  <ebb9@byu.net>
65379
65380         * lib/error.c (error_at_line, print_errno_message): Match libc, after
65381         resolution of upstream bug 3044.
65382
65383 2006-08-29  Bruno Haible  <bruno@clisp.org>
65384
65385         * modules/localcharset (Depends-on): Add configmake.
65386         (Makefile.am): Remove setting of LIBDIR through DEFS.
65387
65388 2006-08-29  Bruno Haible  <bruno@clisp.org>
65389
65390         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
65391         defined.
65392
65393 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65394
65395         * modules/fcntl: New file.
65396         * modules/chdir-safer (Depends-on): Add fcntl.
65397         * modules/fts: Likewise.
65398         * modules/mkdir-p: Likewise.
65399
65400         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
65401         This undoes the most recent change, since we're now addressing the
65402         problem in a different way.
65403
65404         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
65405         into output, since the output might be called Makefile.am even
65406         if $makefile_name is something different.
65407         (func_import): Use $makefile_am rather than
65408         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
65409         empty.
65410
65411         * modules/inttypes (Files): Add m4/inttypes-h.m4.
65412
65413 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65414
65415         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
65416         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
65417         recent change to stdint.m4, since we're now addressing the problem in a
65418         different way.
65419
65420 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65421
65422         * m4/fcntl_h.m4: New file.
65423
65424 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
65425
65426         * lib/fcntl_.h: New file.
65427         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
65428         the fcntl module.
65429         * lib/dirchownmod.c: Likewise.
65430         * lib/fts.c: Likewise.
65431
65432         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
65433         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
65434         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
65435         just before including <inttypes.h>, to avoid circular inclusion.
65436
65437 2006-08-28  Jim Meyering  <jim@meyering.net>
65438
65439         * doc/visibility.texi: Actually read and correct the grammar of the
65440         sentence affected by yesterday's change.
65441
65442 2006-08-28  Eric Blake  <ebb9@byu.net>
65443
65444         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
65445         needs wrapper.
65446
65447 2006-08-28  Eric Blake  <ebb9@byu.net>
65448
65449         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
65450
65451 2006-08-28  Eric Blake  <ebb9@byu.net>
65452
65453         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
65454
65455 2006-08-28  Bruno Haible  <bruno@clisp.org>
65456
65457         * modules/c-strstr: New file, from GNU gettext.
65458         * MODULES.html.sh (String handling): Add c-strstr.
65459
65460 2006-08-28  Bruno Haible  <bruno@clisp.org>
65461
65462         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
65463         macros.
65464         Reported by Eric Blake.
65465
65466 2006-08-28  Bruno Haible  <bruno@clisp.org>
65467
65468         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
65469         (VASNPRINTF): Return a string of length > INT_MAX without failing.
65470         * lib/vasprintf.c: Include errno.h, limits.h.
65471         (EOVERFLOW): New fallback definition.
65472         (vasprintf): Test here whether the string length is > INT_MAX.
65473         * lib/vsnprintf.c: Include errno.h, limits.h.
65474         (EOVERFLOW): New fallback definition.
65475         (vsnprintf): Fix bug when generated string was too long for the buffer.
65476         Test here whether the string length is > INT_MAX.
65477
65478 2006-08-28  Bruno Haible  <bruno@clisp.org>
65479
65480         * lib/inttypes_.h (SCNX*): Remove definitions.
65481         Reported by Eric Blake.
65482
65483 2006-08-28  Bruno Haible  <bruno@clisp.org>
65484
65485         * lib/c-strstr.h: New file, from GNU gettext.
65486         * lib/c-strstr.c: New file, from GNU gettext.
65487
65488 2006-08-28  Bruno Haible  <bruno@clisp.org>
65489
65490         * gnulib-tool: Reorder some statements.
65491
65492 2006-08-28  Bruno Haible  <bruno@clisp.org>
65493
65494         * gnulib-tool: New option --makefile-name.
65495         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
65496         $makefile_name.
65497         (func_import): Write $makefile_name to the cache file, and read it from
65498         there unless explicitly specified. Use $makefile_name as file name
65499         instead of Makefile.am. Adjust the recommendations accordingly.
65500
65501 2006-08-28  Bruno Haible  <bruno@clisp.org>
65502
65503         * gnulib-tool (func_verify_module): Check against misapplying patch.
65504
65505 2006-08-28  Bruno Haible  <bruno@clisp.org>
65506
65507         * gnulib-tool (func_relativize, func_relconcat): New functions.
65508         Give an error if --local-dir is given with --update.
65509         Remove trailing slashes from $local_gnulib_dir.
65510         (func_import): Store the relativized $local_gnulib_dir in
65511         gnulib-cache.m4, and read it from there if not specified explicitly.
65512
65513 2006-08-28  Bruno Haible  <bruno@clisp.org>
65514
65515         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
65516         is the current directory. Respect also $local_gnulib_dir.
65517
65518 2006-08-28  Bruno Haible  <bruno@clisp.org>
65519             Simon Josefsson  <jas@extundo.com>
65520
65521         BeOS portability.
65522         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
65523
65524 2006-08-27  Jim Meyering  <jim@meyering.net>
65525
65526         * doc/visibility.texi: Remove duplicate word: "pointer".
65527
65528 2006-08-26  Bruno Haible  <bruno@clisp.org>
65529
65530         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
65531         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
65532         (Makefile.am): Create inttypes.h from inttypes_.h.
65533         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
65534
65535         * modules/imaxabs: New file.
65536
65537         * modules/imaxdiv: New file.
65538
65539 2006-08-26  Bruno Haible  <bruno@clisp.org>
65540
65541         * m4/inttypes.m4: New file.
65542         * m4/_inttypes_h.m4: Remove file.
65543         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
65544         PRI_MACROS_BROKEN.
65545         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
65546
65547         * m4/imaxabs.m4: New file.
65548
65549         * m4/imaxdiv.m4: New file.
65550
65551 2006-08-26  Bruno Haible  <bruno@clisp.org>
65552
65553         * lib/inttypes_.h: New file.
65554         * lib/inttypes.h: Remove file.
65555         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
65556
65557         * lib/imaxabs.c: New file.
65558
65559         * lib/imaxdiv.c: New file.
65560
65561 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65562
65563         New config-h module, so that "make" output needn't be cluttered
65564         by -DHAVE_CONFIG_H.
65565         * MODULES.html.sh (Support for building libraries and executables):
65566         Add config-h.
65567         * modules/config-h: New file.
65568         * gnulib-tool (nl, sed_transform_lib_file): New vars.
65569         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
65570         the config-h module is used.
65571
65572         New configmake module, so that "make" output needn't be cluttered
65573         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
65574         * MODULES.html.sh (Support for building libraries and executables):
65575         Add configmake.
65576         * modules/configmake: New file.
65577
65578 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
65579
65580         * m4/config-h.m4: New file.
65581
65582 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65583
65584         * config/srclist.txt: Add elisp-comp.
65585
65586 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
65587
65588         * MODULES.html.sh (Support for building libraries and executables):
65589         Add elisp-comp.
65590         * build-aux/elisp-comp: New file.
65591         * modules/elisp-comp: New file.
65592
65593 2006-08-24  Bruno Haible  <bruno@clisp.org>
65594
65595         * gnulib-tool (func_create_testdir): Use non-default values of
65596         sourcebase and m4base.
65597
65598 2006-08-24  Bruno Haible  <bruno@clisp.org>
65599
65600         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
65601         HTML structure.
65602
65603 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
65604
65605         * modules/openat (Depends-on): Add lchown.
65606
65607 2006-08-23  Bruno Haible  <bruno@clisp.org>
65608
65609         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
65610         of gl_LOCK_EARLY instead of gl_LOCK.
65611
65612 2006-08-23  Bruno Haible  <bruno@clisp.org>
65613
65614         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
65615         on OSF/1 to no.
65616         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
65617
65618 2006-08-23  Bruno Haible  <bruno@clisp.org>
65619
65620         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
65621         as unusable.
65622
65623         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
65624         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
65625         (gl_LOCK): New macro.
65626
65627 2006-08-22  Simon Josefsson  <jas@extundo.com>
65628
65629         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
65630         to md5 module.
65631
65632 2006-08-22  Simon Josefsson  <jas@extundo.com>
65633
65634         * MODULES.html.sh: Add "Support for maintaining and release
65635         projects".
65636
65637         * build-aux/gnupload: New file, from coreutils.
65638
65639 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65640
65641         Avoid the need for AC_LIBSOURCES in m4 macros.
65642         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
65643         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
65644         * modules/check-version (EXTRA_DIST): Add check-version.h.
65645         * modules/crc (EXTRA_DIST): Add crc.h.
65646         * modules/des (EXTRA_DIST): Add des.h.
65647         * modules/gc (EXTRA_DIST): Add gc.h.
65648         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
65649         * modules/getline (EXTRA_DIST): Add getline.h.
65650         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
65651         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
65652         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
65653         * modules/md2 (EXTRA_DIST): Add md2.h.
65654         * modules/md4 (EXTRA_DIST): Add md4.h.
65655         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
65656         * modules/read-file (EXTRA_DIST): Add read-file.h.
65657         * modules/readline (EXTRA_DIST): Add readline.h.
65658         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
65659         rijndael-api-fst.h.
65660
65661 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65662
65663         * m4/rijndael.m4 (gl_ARCFOUR):
65664         * m4/arctwo.m4 (gl_ARCTWO):
65665         * m4/check-version.m4 (gl_CHECK_VERSION):
65666         * m4/crc.m4 (gl_CRC):
65667         * m4/des.m4 (gl_DES):
65668         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
65669         * m4/gc.m4 (gl_GC):
65670         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
65671         * m4/getline.m4 (gl_FUNC_GETLINE):
65672         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
65673         * m4/hmac-md5.m4 (gl_HMAC_MD5):
65674         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
65675         * m4/md2.m4 (gl_MD2):
65676         * m4/md4.m4 (gl_MD4):
65677         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
65678         * m4/read-file.m4 (gl_FUNC_READ_FILE):
65679         * m4/readline.m4 (gl_FUNC_READLINE):
65680         * m4/rijndael.m4 (gl_RIJNDAEL):
65681         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
65682         to get the necessary .h files and whatnot.
65683
65684 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
65685
65686         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
65687         gnulib rather than the other way around.
65688         * config/srclistvars.sh (COREUTILS): Remove.
65689
65690 2006-08-22  Jim Meyering  <jim@meyering.net>
65691
65692         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
65693
65694         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
65695
65696 2006-08-22  Eric Blake  <ebb9@byu.net>
65697
65698         * modules/regexprops-generic: New file.
65699         * MODULES.html.sh (Support for building documentation): List it.
65700
65701 2006-08-22  Eric Blake  <ebb9@byu.net>
65702
65703         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
65704         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
65705         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
65706         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
65707
65708 2006-08-22  Bruno Haible  <bruno@clisp.org>
65709
65710         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
65711         and lib_LTLIBRARIES like the other lib_* variables.
65712
65713 2006-08-22  Bruno Haible  <bruno@clisp.org>
65714
65715         * build-aux/x-to-1.in: New file, from GNU gettext.
65716
65717 2006-08-22  Bruno Haible  <bruno@clisp.org>
65718
65719         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
65720         <utmpx.h> exists.
65721
65722 2006-08-22  Bruno Haible  <bruno@clisp.org>
65723
65724         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
65725         <utmpx.h> exists.
65726
65727 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65728
65729         BeOS portability.
65730         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
65731         exist.
65732         Problem reported by Bruno Haible.
65733
65734 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65735
65736         Avoid the need for AC_LIBSOURCES in m4 macros.
65737         * modules/acl (EXTRA_DIST): Add acl.h.
65738         * modules/argmatch (Files): Add m4/argmatch.m4.
65739         (configure.ac): Add gl_ARGMATCH.
65740         (EXTRA_DIST): Renamed from lib_SOURCES, for
65741         consistency with the other modules.  Remove argmatch.c.
65742         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
65743         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
65744         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
65745         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
65746         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
65747         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
65748         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
65749         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
65750         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
65751         * modules/closeout (EXTRA_DIST): Add closeout.h.
65752         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
65753         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
65754         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
65755         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
65756         dirname.h; remove basename.c and stripslash.c.
65757         * modules/exclude (EXTRA_DIST): Add exclude.h.
65758         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
65759         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
65760         * modules/file-type (EXTRA_DIST): Add file-type.h.
65761         * modules/filemode (EXTRA_DIST): Add filemode.h.
65762         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
65763         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65764         * modules/fpending (EXTRA_DIST): Add __fpending.h.
65765         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
65766         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
65767         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
65768         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
65769         * modules/getdate (EXTRA_DIST): Add getdate.c.
65770         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
65771         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
65772         * modules/getpass (EXTRA_DIST): Add getpass.h.
65773         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
65774         * modules/group-member (EXTRA_DIST): Add group-member.h.
65775         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
65776         * modules/hash (EXTRA_DIST): Add hash.h.
65777         * modules/human (EXTRA_DIST): Add human.h.
65778         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
65779         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
65780         * modules/lchown (EXTRA_DIST): Add lchown.h.
65781         * modules/long-options (EXTRA_DIST): Add long-options.h.
65782         * modules/lstat (EXTRA_DIST): Add lstat.h.
65783         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
65784         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
65785         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
65786         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
65787         * modules/memxor (EXTRA_DIST): Add memxor.h.
65788         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
65789         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
65790         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
65791         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
65792         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
65793         * modules/physmem (EXTRA_DIST): Add physmem.h.
65794         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
65795         * modules/posixver (EXTRA_DIST): Add posixver.h.
65796         * modules/quote (EXTRA_DIST): Add quote.h.
65797         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
65798         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
65799         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
65800         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
65801         regex_internal.h regexec.c.
65802         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
65803         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
65804         * modules/same (EXTRA_DIST): Add same.h.
65805         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
65806         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
65807         * modules/savedir (EXTRA_DIST): Add savedir.h.
65808         * modules/sha1 (EXTRA_DIST): Add sha1.h.
65809         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
65810         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
65811         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
65812         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
65813         * modules/strdup (EXTRA_DIST): Add strdup.h.
65814         * modules/strftime (EXTRA_DIST): Add strftime.h.
65815         * modules/strndup (EXTRA_DIST): Add strndup.h.
65816         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
65817         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
65818         * modules/time_r (EXTRA_DIST): Add time_r.h.
65819         * modules/timespec (EXTRA_DIST): Add timespec.h.
65820         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65821         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
65822         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
65823         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
65824         * modules/userspec (EXTRA_DIST): Add userspec.h.
65825         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
65826         * modules/utimens (EXTRA_DIST): Add utimens.h.
65827         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
65828         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
65829         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
65830         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
65831         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
65832         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
65833         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
65834         * modules/yesno (EXTRA_DIST): Add yesno.h.
65835
65836 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65837
65838         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
65839
65840         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
65841         * m4/dev-ino.m4, same-inode.m4: Remove.
65842
65843         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
65844         * m4/acl.m4 (AC_FUNC_ACL):
65845         * m4/backupfile.m4 (gl_BACKUPFILE):
65846         * m4/c-strtod.m4 (gl_C99_STRTOLD):
65847         * m4/canon-host.m4 (gl_CANON_HOST):
65848         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
65849         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
65850         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
65851         * m4/cloexec.m4 (gl_CLOEXEC):
65852         * m4/close-stream.m4 (gl_CLOSE_STREAM):
65853         * m4/closeout.m4 (gl_CLOSEOUT):
65854         * m4/dirfd.m4 (gl_FUNC_DIRFD):
65855         * m4/dirname.m4 (gl_DIRNAME):
65856         * m4/exclude.m4 (gl_EXCLUDE):
65857         * m4/exitfail.m4 (gl_EXITFAIL):
65858         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
65859         * m4/file-type.m4 (gl_FILE_TYPE):
65860         * m4/filemode.m4 (gl_FILEMODE):
65861         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
65862         * m4/fpending.m4 (gl_FUNC_FPENDING):
65863         * m4/fprintftime.m4 (gl_FPRINTFTIME):
65864         * m4/fts.m4 (gl_FUNC_FTS):
65865         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
65866         * m4/getdate.m4 (gl_GETDATE):
65867         * m4/gethrxtime.m4 (gl_GETHRXTIME):
65868         * m4/getpagesize.m4 (gl_GETPAGESIZE):
65869         * m4/getpass.m4 (gl_FUNC_GETPASS):
65870         * m4/gettime.m4 (gl_GETTIME):
65871         * m4/getugroups.m4 (gl_GETUGROUPS):
65872         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
65873         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
65874         * m4/hard-locale.m4 (gl_HARD_LOCALE):
65875         * m4/hash.m4 (gl_HASH):
65876         * m4/idcache.m4 (gl_IDCACHE):
65877         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
65878         * m4/lchown.m4 (gl_FUNC_LCHOWN):
65879         * m4/long-options.m4 (gl_LONG_OPTIONS):
65880         * m4/lstat.m4 (gl_FUNC_LSTAT):
65881         * m4/md5.m4 (gl_MD5):
65882         * m4/memcasecmp.m4 (gl_MEMCASECMP):
65883         * m4/memcoll.m4 (gl_MEMCOLL):
65884         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
65885         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
65886         * m4/memxor.m4 (gl_MEMXOR):
65887         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
65888         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
65889         * m4/modechange.m4 (gl_MODECHANGE):
65890         * m4/mountlist.m4 (gl_MOUNTLIST):
65891         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65892         * m4/openat.m4 (gl_FUNC_OPENAT):
65893         * m4/pathmax.m4 (gl_PATHMAX):
65894         * m4/physmem.m4 (gl_PHYSMEM):
65895         * m4/posixtm.m4 (gl_POSIXTM):
65896         * m4/posixver.m4 (gl_POSIXVER):
65897         * m4/quote.m4 (gl_QUOTE):
65898         * m4/quotearg.m4 (gl_QUOTEARG):
65899         * m4/readtokens.m4 (gl_READTOKENS):
65900         * m4/readutmp.m4 (gl_READUTMP):
65901         * m4/regex.m4 (gl_REGEX):
65902         * m4/safe-read.m4 (gl_SAFE_READ):
65903         * m4/safe-write.m4 (gl_SAFE_WRITE):
65904         * m4/same.m4 (gl_SAME):
65905         * m4/save-cwd.m4 (gl_SAVE_CWD):
65906         * m4/savedir.m4 (gl_SAVEDIR):
65907         * m4/settime.m4 (gl_SETTIME):
65908         * m4/sha1.m4 (gl_SHA1):
65909         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
65910         * m4/stat-macros.m4 (gl_STAT_MACROS):
65911         * m4/stat-time.m4 (gl_STAT_TIME):
65912         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
65913         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
65914         * m4/strdup.m4 (gl_FUNC_STRDUP):
65915         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
65916         * m4/strndup.m4 (gl_FUNC_STRNDUP):
65917         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
65918         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
65919         * m4/time_r.m4 (gl_TIME_R):
65920         * m4/timespec.m4 (gl_TIMESPEC):
65921         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
65922         * m4/unlinkdir.m4 (gl_UNLINKDIR):
65923         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
65924         * m4/userspec.m4 (gl_USERSPEC):
65925         * m4/utimecmp.m4 (gl_UTIMECMP):
65926         * m4/utimens.m4 (gl_UTIMENS):
65927         * m4/xalloc.m4 (gl_XALLOC):
65928         * m4/xgetcwd.m4 (gl_XGETCWD):
65929         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
65930         * m4/xreadlink.m4 (gl_XREADLINK):
65931         * m4/xstrtod.m4 (gl_XSTRTOD):
65932         * m4/yesno.m4 (gl_YESNO):
65933         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
65934         to get the necessary .h files and whatnot.
65935
65936 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
65937             Bruno Haible  <bruno@clisp.org>
65938
65939         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
65940         /bin/sh understanding of '!' conditional negation.
65941
65942 2006-08-21  Jim Meyering  <jim@meyering.net>
65943
65944         * modules/openat (Depends-on): Really alphabetize.
65945
65946         * modules/acl (Depends-on): Add error and quote.
65947
65948         * check-module (find_included_lib_files): Add at-func.c to the
65949         ok-to-include-more-than-once white list.
65950
65951         * modules/openat (Depends-on): Add lstat.  Alphabetize.
65952
65953 2006-08-21  Bruno Haible  <bruno@clisp.org>
65954
65955         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65956         Emit a pkgdata_DATA variable only if some snippets add contents to it.
65957         Reported by Martin Lambers <marlam@marlam.de>.
65958
65959 2006-08-21  Bruno Haible  <bruno@clisp.org>
65960
65961         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
65962         specify an installation location, don't emit a noinst_LIBRARIES or
65963         noinst_LTLIBRARIES assignment.
65964
65965 2006-08-21  Bruno Haible  <bruno@clisp.org>
65966
65967         BeOS portability.
65968         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
65969         BeOS has mbrtowc() but no <wctype.h>.
65970
65971 2006-08-21  Bruno Haible  <bruno@clisp.org>
65972
65973         BeOS portability.
65974         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
65975         exist.
65976
65977 2006-08-21  Bruno Haible  <bruno@clisp.org>
65978
65979         BeOS portability.
65980         * lib/mbchar.h: Include <wctype.h> only if it exists.
65981
65982 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65983
65984         Remove files that are no longer needed by their respective modules.
65985         * m4/obstack.m4: Remove.
65986         * m4/strerror_r.m4: Remove.
65987         * m4/uint32_t.m4: Remove.
65988         * m4/uintptr_t.m4: Remove.
65989         * m4/ullong_max.m4: Remove.
65990         * m4/xstrtoimax.m4: Remove.
65991         * m4/xstrtoumax.m4: Remove.
65992
65993         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
65994         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
65995         dependencies now capture this.
65996
65997         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
65998         Do not use AC_LIBSOURCES, since gnulib modules now do this.
65999         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
66000         * m4/human.m4 (gl_HUMAN): Likewise.
66001         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
66002         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
66003
66004         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
66005
66006         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
66007         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
66008         stdint.
66009         * m4/human.m4 (gl_HUMAN): Likewise.
66010         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
66011         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
66012         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
66013         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
66014         * m4/xstrtol (gl_XSTRTOL): Likewise.
66015
66016         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
66017         AC_TYPE_LONG_LONG_INT.
66018         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
66019         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
66020         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
66021         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
66022
66023         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
66024         on stdbool.
66025
66026         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
66027         (gl_PREREQ_XSTRTOUL): Remove.
66028
66029         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
66030
66031         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
66032         mode.
66033
66034 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66035
66036         Add and change modules to make it easier for coreutils to use
66037         gnulib-tool.
66038         * modules/backupfile (Files): Remove m4/d-ino.m4.
66039         (Depends-on): Add d-ino.
66040         * modules/cycle-check (Depends-on): Add stdint.
66041         (lib_SOURCES): Add cycle-check.h.
66042         * modules/d-ino: New module.
66043         * modules/d-type: New module.
66044         * modules/error (Files): Remove m4/strerror_r.m4.
66045         * modules/filemode (Files): Add m4/st_dm_mode.m4.
66046         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
66047         m4/inttypes_h.m4, m4/uintmax_t.m4.
66048         (Depends-on): Add stdint.
66049         (lib_SOURCES): Add fsusage.h.
66050         * modules/getcwd (Files): Remove d-ino.m4.
66051         (Depends-on): Add d-ino.
66052         * modules/getndelim2 (Depends-on): Add stdint.
66053         * modules/glob (Files): Remove m4/d-type.m4.
66054         (Depends-on): Add d-type.
66055         * modules/host-os: New module.
66056         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
66057         m4/inttypes_h.m4, m4/uintmax_t.m4.
66058         * Depends-on: Add stdint.
66059         (lib_SOURCES): Add human.h.
66060         * modules/inttostr (Files): Remove m4/intmax_t.m4,
66061         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
66062         m4/uintmax_t.m4, m4/ulonglong.m4.
66063         (Depends-on): Add stdint.
66064         (EXTRA_DIST): Add inttostr.h.
66065         * modules/lchmod: New module.
66066         * modules/link-follow: New module.
66067         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
66068         (Depends-on): Add lchmod.
66069         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
66070         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
66071         (Depends-on): Add stdint.
66072         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
66073         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
66074         (Depends-on): Add stdint.
66075         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
66076         * modules/perl: New module.
66077         * modules/regex (Depends-on): Add stdint.
66078         * modules/rmdir-errno: New module.
66079         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
66080         m4/intmax_t.m4.
66081         (Depends-on): Add stdint.
66082         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
66083         m4/uintmax_t.m4.
66084         (Depends-on): Add stdint.
66085         * modules/unlink-busy: New module.
66086         * modules/utimecmp (Depends-on): Add stdint.
66087         * modules/uptime: New module.
66088         * modules/winsz-ioctl: New module.
66089         * modules/winsz-termios: New module.
66090         * modules/xnanosleep (Depends-on): Add nanosleep.
66091         * modules/ullong_max: Remove.
66092         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
66093         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
66094         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
66095         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
66096         (Depends-on): Add inttypes.
66097         (lib_SOURCES): Add xstrtol.h.
66098         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
66099         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
66100         * MODULES.html.sh: Move 'assert' into the assert section.
66101         Move 'dummy' into the linking section.
66102         Remove ullong_max.
66103         Add section for compatibility checks for POSIX:2001 functions,
66104         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
66105         winsz-ioctl, and winsz-termios into it.
66106         Add lchmod.
66107         Add top-level Misc section and put host-os, perl, and uptime
66108         into it.
66109
66110 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
66111
66112         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
66113         now assume the stdint module.  Do not include inttypes.h.
66114         * lib/fsusage.h: Likewise.
66115         * lib/getndelim2.c: Likewise.
66116         * lib/human.h: Likewise.
66117         * lib/inttostr.h: Likewise.
66118         * lib/obstack.c: Likewise.
66119         * lib/regex_internal.h: Likewise.
66120         * lib/tempname.c: Likewise.
66121         * lib/utimecmp.c: Likewise.
66122         * lib/xstrtol.h: Likewise.
66123
66124         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
66125
66126         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
66127         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
66128         * lib/xtime.h: Likewise.
66129
66130 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66131
66132         * modules/openat (Files): Add lib/fchmodat.c.
66133         Fixes problem reported by Jay Youngman.
66134
66135 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
66136
66137         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
66138         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
66139
66140 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
66141             Bruno Haible  <bruno@clisp.org>
66142
66143         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
66144         and is a script that invokes bison. Tighten the code. Add comments.
66145
66146 2006-08-18  Jim Meyering  <jim@meyering.net>
66147
66148         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
66149         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
66150         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
66151         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
66152
66153 2006-08-18  Bruno Haible  <bruno@clisp.org>
66154
66155         * modules/bison-i18n: New file.
66156         * MODULES.html.sh (Internationalization functions): Add it.
66157
66158 2006-08-18  Bruno Haible  <bruno@clisp.org>
66159
66160         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
66161         sys/statvfs.h. When getmntinfo was found, check its declaration and
66162         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
66163
66164 2006-08-18  Bruno Haible  <bruno@clisp.org>
66165
66166         * m4/bison-i18n.m4: New file, from bison.
66167
66168 2006-08-18  Bruno Haible  <bruno@clisp.org>
66169
66170         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
66171         (ME_DUMMY): Treat "kernfs" as a dummy.
66172         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
66173
66174 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66175
66176         Update from coreutils.
66177
66178         2006-08-15  Jim Meyering  <jim@meyering.net>
66179
66180         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
66181
66182         2006-01-17  Jim Meyering  <jim@meyering.net>
66183
66184         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
66185
66186         2006-01-11  Jim Meyering  <jim@meyering.net>
66187
66188         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
66189         Check for the lchmod function.
66190
66191 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
66192
66193         Update from coreutils.
66194
66195         * lib/__fpending.h: Add copyright notice.
66196         * lib/fprintftime.h: Likewise.
66197         * lib/savedir.c: Use (C) in copyright notice.
66198         * lib/savedir.h: Likewise.
66199
66200         2006-08-15  Jim Meyering  <jim@meyering.net>
66201
66202         * lib/at-func.c: New file, with the logic of all emulated at-functions.
66203         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
66204         in support of the EXPECTED_ERRNO macro.
66205         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
66206         definitions.  Instead, define the appropriate symbols and include
66207         "at-func.c".
66208         * lib/mkdirat.c (mkdirat): Likewise.
66209         * lib/fchmodat.c (fchmodat): Likewise.
66210         (ENOSYS): Remove definition.
66211         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
66212         it.  Don't include "unistd--.h" -- it wasn't ever used.
66213
66214         2006-01-17  Jim Meyering  <jim@meyering.net>
66215
66216         Rewrite fts.c not to change the current working directory,
66217         by using openat, fstatat, fdopendir, etc..
66218
66219         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
66220         (HAVE_OPENAT_SUPPORT): Define.
66221         [_LIBC] (fchdir): Don't undef or define; no longer used.
66222         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
66223         Now, this `function' always succeeds, and consumes its file descriptor
66224         parameter -- so callers must not close such FDs.  Update callers.
66225         (diropen_fd, opendirat, cwd_advance_fd): New functions.
66226         (diropen): Add parameter, SP.  Adjust all callers.
66227         Implement using diropen_fd, rather than open.
66228         (fts_open): Initialize new member, fts_cwd_fd.
66229         Remove fts_rft-setting code.
66230         (fts_close): Close fts_cwd_fd, if necessary.
66231         (__opendir2): Define in terms of opendir or opendirat,
66232         depending on whether the FST_NOCHDIR flag is set.
66233         (fts_build): Since fts_safe_changedir consumes its FD, and since
66234         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
66235         and close the dup'd file descriptor upon failure.
66236         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
66237         (fts_safe_changedir): Tweak semantics to reflect that this function
66238         now calls cwd_advance_fd and hence consumes its FD argument.
66239         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
66240         [struct FTS] (fts_rft): Remove now-unused member.
66241         [struct FTS] (fts_cycle.state): Improve comment.
66242
66243         * lib/openat.c (openat_needs_fchdir): New function.
66244         * lib/openat.h (openat_needs_fchdir): Declare it.
66245
66246 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
66247
66248         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
66249         Problem and fix reported by Pádraig Brady in
66250         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
66251
66252 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66253
66254         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
66255
66256 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66257
66258         * lib/memcoll.c (memcoll): Optimize for the common case where the
66259         arguments are bytewise equal.
66260
66261 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66262
66263         * doc/regexprops-generic.texi: Add a copyright notice.
66264
66265 2006-08-15  Bruno Haible  <bruno@clisp.org>
66266
66267         * modules/tmpdir (License): Change to LGPL.
66268
66269 2006-08-15  Bruno Haible  <bruno@clisp.org>
66270
66271         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
66272         module.
66273
66274 2006-08-14  Simon Josefsson  <jas@extundo.com>
66275
66276         * config/srclist.txt: Add gnupload.
66277
66278 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66279
66280         Change copyright notice from LGPL 2 to GPL 2, since that's the
66281         standard form used in the gnulib repository.
66282         * tests/test-lock.c: Likewise.
66283         * tests/test-stdint.c: Likewise.
66284         * tests/test-tls.c: Likewise.
66285
66286         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
66287         prelude-manager.  User shorter URLs for GNU projects, without '?'.
66288         Add copyright notice.
66289
66290         * check-module: Add copyright notice.  Output a copyright
66291         notice if "--version" is specified.
66292         * modules/COPYING: New file.
66293         * tests/test-getaddrinfo.c: Add copyright notice.
66294         * tests/test-verify.c: Likewise.
66295
66296 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66297
66298         Change copyright notice from LGPL 2 to GPL 2, since that's the
66299         standard form used in the gnulib repository.
66300         * lib/lock.c: LGPL -> GPL.
66301         * lib/lock.h: Likewise.
66302         * lib/strnlen1.c: Likewise.
66303         * lib/strnlen1.h: Likewise.
66304         * lib/tls.c: Likewise.
66305         * lib/tls.h: Likewise.
66306         * lib/tmpdir.c: Likewise.
66307
66308         * lib/TODO: Remove; this belongs only in coreutils.
66309
66310 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66311
66312         Add copyright notices to long-enough files that lack them, since
66313         otherwise the files aren't clearly free.  Use the same notice that
66314         getdate.texi already uses.
66315         * doc/alloca-opt.texi: Add copyright notice.
66316         * doc/alloca.texi: Likewise.
66317         * doc/ctime.texi: Likewise.
66318         * doc/functions.texi: Likewise.
66319         * doc/gcd.texi: Likewise.
66320         * doc/gnulib-tool.texi: Likewise.
66321         * doc/inet_ntoa.texi: Likewise.
66322         * doc/visibility.texi: Likewise.
66323
66324         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
66325         * doc/quote.texi: Add copyright notice.
66326
66327         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
66328         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
66329         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
66330         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
66331         is now obsolete, and give a pointer to the Sun list.
66332         Add copyright notice.
66333
66334 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66335
66336         * config/srclistvars.sh: Add copyright notice.
66337
66338 2006-08-14  Eric Blake  <ebb9@byu.net>
66339
66340         Import the following change from libc:
66341
66342         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
66343
66344         Upstream bug 2997.
66345         * lib/misc/error.c: Add space between program name and message if file
66346         name is missing.
66347
66348 2006-08-12  Karl Berry  <karl@gnu.org>
66349
66350         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
66351         remove, these originate in gnulib now.
66352
66353 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66354
66355         * doc/Makefile (standards.info standards.html standards.dvi):
66356         Also depend on make-stds.texi.
66357
66358 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
66359
66360         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
66361         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
66362
66363         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
66364         in wchar_t.  Problem reported by Eric Blake.
66365
66366         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
66367         LEN is smaller than SIZE.  Suggested by Bruno Haible.
66368         Also, help the compiler to keep LEN in a register.
66369
66370 2006-08-11  Eric Blake  <ebb9@byu.net>
66371
66372         * users.txt: Sort.  Add tar.
66373
66374 2006-08-11  Bruno Haible  <bruno@clisp.org>
66375
66376         * users.txt: New file.
66377
66378 2006-08-11  Bruno Haible  <bruno@clisp.org>
66379
66380         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
66381         before <wchar.h>. Needed for OSF/1 and BSD/OS.
66382
66383 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66384
66385         * modules/snprintf (Depends-on): Remove minmax.
66386         (Maintainer): Add self and Bruno.
66387
66388 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66389
66390         * lib/.cppi-disable: Add snprintf.h, socket_.h.
66391         * lib/snprintf.c: Include <errno.h> and <limits.h>.
66392         (EOVERFLOW): Define if the system does not.
66393         Do not include "minmax.h"; it wasn't used.
66394         (snprintf): Don't assume size_t promotes to an unsigned type.
66395         Fix bug when generated string was too long for the buffer: the
66396         buffer's contents are supposed to be the initial prefix of the
66397         output.  Don't assume vasnprintf returns EOVERFLOW if the size
66398         exceeds INT_MAX; do the check ourselves.
66399
66400         Import the following changes from libc:
66401
66402         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
66403
66404         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
66405         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
66406         set wc to the byte which couldn't be converted.
66407         (re_string_reconstruct): Don't clear valid_raw_len before calling
66408         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
66409         tip_context using re_string_context_at.
66410
66411         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
66412
66413         * lib/posix/regex.h: g++ still cannot handled [restrict].
66414
66415         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
66416
66417         * lib/posix/regex.h: Remove special handling for VMS.
66418
66419 2006-08-10  Jim Meyering  <jim@meyering.net>
66420
66421         * modules/same-inode: New module.
66422         * modules/dev-ino: New module.
66423         * modules/cycle-check: Depend on these modules, rather than simply
66424         including their .h files.
66425         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
66426         required via m4/cycle-check.m4.
66427         * modules/same: Depend on new same-inode module, rather than
66428         including same-inode.h.
66429         * modules/chdir-safer: New file.
66430
66431         * modules/chown (Depends-on): Add stat-macros.
66432
66433 2006-08-10  Jim Meyering  <jim@meyering.net>
66434
66435         * m4/cycle-check.m4: New file.
66436         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
66437         * m4/dev-ino.m4, m4/same-inode.m4: New files.
66438
66439 2006-08-10  Eric Blake  <ebb9@byu.net>
66440
66441         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
66442         in from original proposal.
66443
66444 2006-08-10  Eric Blake  <ebb9@byu.net>
66445         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
66446
66447         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
66448         namespace.
66449
66450 2006-08-10  Bruno Haible  <bruno@clisp.org>
66451
66452         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
66453         as well.
66454
66455 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66456
66457         Sync from coreutils.
66458
66459         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
66460
66461         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
66462         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
66463
66464 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66465
66466         * modules/restrict: Remove; no longer needed now that we assume
66467         Autoconf 2.59 or later.
66468         * MODULES.html.sh: Remove 'restrict'.
66469         * modules/argp (Depends-on): Remove 'restrict'.
66470         * modules/base64 (Depends-on): Likewise.
66471         * modules/gc (Depends-on): Likewise.
66472         * modules/getaddrinfo (Depends-on): Likewise.
66473         * modules/glob (Depends-on): Likewise.
66474         * modules/inet_ntop (Depends-on): Likewise.
66475         * modules/inet_pton (Depends-on): Likewise.
66476         * modules/memxor (Depends-on): Likewise.
66477         * modules/regex (Depends-on): Likewise.
66478         * modules/strtok_r (Depends-on): Likewise.
66479         * modules/time_r (Depends-on): Likewise.
66480
66481 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
66482
66483         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
66484         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
66485         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66486         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
66487         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
66488         * m4/memxor.m4 (gl_MEMXOR): Likewise.
66489         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
66490         gl_C_RESTRICT replaced by AC_C_RESTRICT.
66491
66492         Merge from coreutils.
66493         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
66494         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
66495         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66496         * m4/time_r.m4 (gl_TIME_R): Likewise.
66497
66498 2006-08-09  Karl Berry  <karl@gnu.org>
66499
66500         * config/srclist.txt: no more gettext-tools, per Bruno.
66501
66502 2006-08-08  Eric Blake  <ebb9@byu.net>
66503
66504         * modules/verror: New module.
66505         * MODULES.html.sh: Document it.
66506
66507 2006-08-08  Eric Blake  <ebb9@byu.net>
66508
66509         * lib/verror.h, lib/verror.c: New files.
66510
66511 2006-08-08  Eric Blake  <ebb9@byu.net>
66512
66513         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
66514         verror_at_line output complies with GNU Coding Standards even when
66515         file is NULL.
66516
66517 2006-08-07  Bruno Haible  <bruno@clisp.org>
66518
66519         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
66520         versions of AIX.
66521         Reported by Ralf Wildenhues.
66522
66523 2006-08-07  Bruno Haible  <bruno@clisp.org>
66524
66525         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
66526         in an AC_DEFUN. Needed so that the autoconf snippets can use
66527         AC_REQUIRE.
66528
66529 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66530
66531         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66532         Initialize pkgdata_DATA.
66533         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
66534         overriding it.
66535
66536 2006-08-06  Eric Blake  <ebb9@byu.net>
66537
66538         * lib/error.h: Fold in some upstream changes from glibc.
66539         * lib/error.c: Likewise.
66540
66541 2006-08-04  Bruno Haible  <bruno@clisp.org>
66542
66543         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66544         Make the mostlyclean-local rule depend on mostlyclean-generic.
66545         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
66546
66547 2006-07-31  Bruno Haible  <bruno@clisp.org>
66548
66549         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
66550         <stdlib.h>, <string.h>.
66551
66552 2006-07-30  Bruno Haible  <bruno@clisp.org>
66553
66554         * modules/readlink (License): Change to LGPL.
66555
66556 2006-07-30  Bruno Haible  <bruno@clisp.org>
66557
66558         * modules/javaversion (Makefile.am): Distribute javaversion.java and
66559         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
66560         set PKGDATADIR to point to it.
66561
66562 2006-07-30  Bruno Haible  <bruno@clisp.org>
66563
66564         * modules/csharpexec (configure.ac): Comment out macro invocation.
66565         * modules/javaexec (configure.ac): Likewise.
66566         * modules/javacomp-script (configure.ac): Likewise.
66567
66568         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
66569
66570 2006-07-30  Bruno Haible  <bruno@clisp.org>
66571
66572         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
66573         linked-list.
66574
66575 2006-07-30  Bruno Haible  <bruno@clisp.org>
66576
66577         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
66578
66579 2006-07-30  Bruno Haible  <bruno@clisp.org>
66580
66581         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66582         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
66583         get removed.
66584
66585 2006-07-29  Bruno Haible  <bruno@clisp.org>
66586
66587         Make it possible for gnulib-tool to work with locally modified or
66588         augmented gnulib repositories.
66589         * gnulib-tool (func_usage): Document --local-dir option.
66590         (local_gnulib_dir): New variable.
66591         Handle --local-dir option.
66592         (func_lookup_file): New function.
66593         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
66594         (func_get_description, func_get_filelist, func_get_description,
66595         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
66596         func_get_automake_snippet, func_get_include_directive,
66597         func_get_license, func_get_maintainer): Use func_lookup_file.
66598         (func_import, func_create_testdir): Use func_lookup_file.
66599
66600 2006-07-29  Bruno Haible  <bruno@clisp.org>
66601
66602         * modules/setenv (Depends-on): Add unistd.
66603
66604 2006-07-29  Bruno Haible  <bruno@clisp.org>
66605
66606         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
66607
66608 2006-07-29  Bruno Haible  <bruno@clisp.org>
66609
66610         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
66611
66612 2006-07-29  Bruno Haible  <bruno@clisp.org>
66613
66614         * gnulib-tool (import, update): If there is no Makefile.am, look at
66615         aclocal.m4, instead of bailing out.
66616
66617 2006-07-29  Bruno Haible  <bruno@clisp.org>
66618
66619         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
66620         Categorize the options by when they are useful.
66621
66622 2006-07-29  Bruno Haible  <bruno@clisp.org>
66623
66624         * gnulib-tool (func_usage): Document option --no-libtool.
66625         Handle option --no-libtool.
66626         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
66627         for changed semantics of $libtool variable.
66628         (func_import): Likewise. If libtool is not used, show this through
66629         an option --no-libtool.
66630         (func_create_testdir): Update.
66631
66632 2006-07-29  Bruno Haible  <bruno@clisp.org>
66633
66634         * gnulib-tool (func_import): Extend error message about missing
66635         --doc-base.
66636
66637 2006-07-29  Bruno Haible  <bruno@clisp.org>
66638
66639         * gnulib-tool (func_import): Don't create the $docbase directory if
66640         there is no file to store there.
66641
66642 2006-07-29  Bruno Haible  <bruno@clisp.org>
66643
66644         * gnulib-tool (autoconf_minversion): If a --dir option is given and
66645         relevant, look for configure.ac there, not in the current directory.
66646         Also use a simple search for AC_PREREQ, not "autoconf --trace".
66647
66648 2006-07-29  Bruno Haible  <bruno@clisp.org>
66649
66650         * gnulib-tool (SORT): New variable.
66651         (func_usage): Undocument --assume-autoconf option.
66652         Remove --assume-autoconf option handling.
66653         (autoconf_minversion): Determine from the contents of configure.ac.
66654         (func_import): Remove autoconf_minversion handling.
66655         Suggested by Eric Blake.
66656
66657 2006-07-29  Bruno Haible  <bruno@clisp.org>
66658
66659         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
66660
66661 2006-07-29  Bruno Haible  <bruno@clisp.org>
66662
66663         * config/srclist.txt (*setenv.[ch]): Remove rules.
66664
66665 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66666
66667         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
66668
66669 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66670
66671         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
66672         arpa/inet.h.
66673
66674 2006-07-28  Simon Josefsson  <jas@extundo.com>
66675
66676         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
66677         * modules/inet_pton (Depends-on): Likewise.
66678
66679 2006-07-28  Simon Josefsson  <jas@extundo.com>
66680
66681         * m4/netinet_in_h.m4: New file.
66682
66683 2006-07-28  Simon Josefsson  <jas@extundo.com>
66684
66685         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
66686         #include's.
66687
66688 2006-07-28  Simon Josefsson  <jas@extundo.com>
66689
66690         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
66691         #include's.
66692
66693 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
66694
66695         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
66696         setgid on directories only if they set these bits.
66697         * lib/modechange.h: Remove obsolete comment about masks.
66698
66699 2006-07-28  Eric Blake  <ebb9@byu.net>
66700
66701         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
66702         macro expansion.
66703
66704 2006-07-28  Bruno Haible  <bruno@clisp.org>
66705
66706         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
66707
66708 2006-07-28  Bruno Haible  <bruno@clisp.org>
66709
66710         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
66711
66712 2006-07-28  Bruno Haible  <bruno@clisp.org>
66713
66714         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
66715         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
66716         Define fallbacks.
66717         Avoids link error on FreeBSD 4.x.
66718         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66719
66720         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
66721         encoding.
66722         * lib/mbswidth.c (iswcntrl): Likewise.
66723
66724 2006-07-27  Bruno Haible  <bruno@clisp.org>
66725
66726         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
66727         test.
66728
66729 2006-07-27  Bruno Haible  <bruno@clisp.org>
66730
66731         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
66732         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
66733         defined.
66734
66735 2006-07-26  Eric Blake  <ebb9@byu.net>
66736
66737         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
66738
66739 2006-07-26  Eric Blake  <ebb9@byu.net>
66740
66741         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
66742         like mingw that lack mkstemp.
66743         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
66744         avoid compilation warning on mingw.
66745
66746 2006-07-26  Bruno Haible  <bruno@clisp.org>
66747
66748         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
66749         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
66750         INT_FAST*_MIN, INTPTR_MIN.
66751
66752 2006-07-25  Bruno Haible  <bruno@clisp.org>
66753
66754         * modules/version-etc (Depends-on): Add stdarg.
66755
66756 2006-07-25  Bruno Haible  <bruno@clisp.org>
66757
66758         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
66759         complex commands.
66760
66761 2006-07-25  Bruno Haible  <bruno@clisp.org>
66762
66763         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
66764         defined in <stdarg.h> or config.h.
66765
66766 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66767
66768         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
66769         (gl_STDIO_SAFER): Remove.
66770
66771 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66772
66773         * MODULES.html.sh (File stream based Input/Output):
66774         Add fopen-safer, tmpfile-safer; remove stdio-safer.
66775         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
66776         * modules/fopen-safer, modules/tmpfile-safer: New files.
66777         * modules/stdio-safer: Remove.
66778
66779 2006-07-24  Bruno Haible  <bruno@clisp.org>
66780
66781         * modules/tmpdir: New file.
66782         * MODULES.html.sh (File system functions): Add it.
66783
66784 2006-07-24  Bruno Haible  <bruno@clisp.org>
66785
66786         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
66787         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
66788
66789 2006-07-24  Bruno Haible  <bruno@clisp.org>
66790
66791         * modules/clean-temp: New file.
66792
66793 2006-07-24  Bruno Haible  <bruno@clisp.org>
66794
66795         * m4/tmpdir.m4: New file, from GNU gettext.
66796
66797 2006-07-24  Bruno Haible  <bruno@clisp.org>
66798
66799         * lib/tmpdir.h: New file, from GNU gettext.
66800         * lib/tmpdir.c: New file, from GNU gettext.
66801
66802 2006-07-24  Bruno Haible  <bruno@clisp.org>
66803
66804         * lib/clean-temp.h: New file, from GNU gettext.
66805         * lib/clean-temp.c: New file, from GNU gettext.
66806
66807 2006-07-23  Eric Blake  <ebb9@byu.net>
66808
66809         * modules/stdio-safer (Files): Add tmpfile-safer.c.
66810         (Depends-on): Add binary-io.
66811
66812 2006-07-23  Eric Blake  <ebb9@byu.net>
66813
66814         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
66815
66816 2006-07-23  Eric Blake  <ebb9@byu.net>
66817
66818         * lib/tmpfile-safer.c: New file.
66819         * lib/stdio-safer.h (fopen_safer): Add prototype.
66820         * lib/stdio--.h (tmpfile): Make safer.
66821
66822 2006-07-23  Bruno Haible  <bruno@clisp.org>
66823
66824         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
66825         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
66826         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
66827         gl_linked_remove_at): Use it.
66828
66829 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66830         and Simon Josefsson <jas@extundo.com>
66831
66832         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
66833
66834         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
66835
66836 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66837
66838         * modules/close-stream: New file.
66839         * modules/closeout (Description): Make it clear that it exits
66840         with a diagnostic on error.
66841         (Depends-on): Add close-stream.  Remove fpending, stdbool.
66842         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
66843
66844 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66845
66846         * m4/close-stream.m4: New file.
66847
66848 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66849
66850         * lib/close-stream.c, lib/close-stream.h: New files.
66851
66852 2006-07-22  Bruno Haible  <bruno@clisp.org>
66853
66854         Merge from GNU gettext 0.15.
66855
66856         2006-05-01  Bruno Haible  <bruno@clisp.org>
66857
66858                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
66859
66860         2006-07-22  Bruno Haible  <bruno@clisp.org>
66861
66862                 * modules/javaversion: New file.
66863                 * MODULES.html.sh (Java): Add javaversion.
66864
66865         2006-03-12  Bruno Haible  <bruno@clisp.org>
66866
66867                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
66868
66869         2005-12-04  Bruno Haible  <bruno@clisp.org>
66870
66871                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
66872                 (untested).
66873
66874         2006-06-21  Bruno Haible  <bruno@clisp.org>
66875
66876                 Avoid warnings from recent versions of mcs.
66877                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
66878                 -o, -L, -r any more. Use options documented since mcs-1.0
66879                 instead. Similarly for -g.
66880
66881         2005-12-04  Bruno Haible  <bruno@clisp.org>
66882
66883                 * build-aux/csharpcomp.sh.in: Suffix for resources is
66884                 .resources, not .resource.
66885
66886         2005-07-09  Bruno Haible  <bruno@clisp.org>
66887
66888                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
66889                 add a .dll suffix.
66890                 Reported by Mark Junker <mjscod@gmx.de>.
66891
66892         2006-07-22  Bruno Haible  <bruno@clisp.org>
66893
66894                 * modules/gettext: Upgrade to gettext-0.15.
66895                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
66896                 m4/visibility.m4.
66897                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
66898
66899 2006-07-22  Bruno Haible  <bruno@clisp.org>
66900
66901         Merge from GNU gettext 0.15.
66902
66903         2006-03-25  Bruno Haible  <bruno@clisp.org>
66904
66905                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
66906
66907         2006-07-21  Bruno Haible  <bruno@clisp.org>
66908
66909                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
66910                 "1.1".
66911
66912         2006-05-09  Bruno Haible  <bruno@clisp.org>
66913
66914                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
66915                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
66916                 for the conftestver execution.
66917
66918         2006-05-01  Bruno Haible  <bruno@clisp.org>
66919
66920                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
66921                 optional target-version argument. Verify that the compiler
66922                 groks source of the specified source-version, or add -source
66923                 option as necessary. Verify that the compiler produces
66924                 bytecode in the specified target-version, or add -target and
66925                 -source options as necessary. Make the result of the test
66926                 available as variable CONF_JAVAC. Also log error output in
66927                 config.log.
66928
66929         2006-03-11  Bruno Haible  <bruno@clisp.org>
66930
66931                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
66932
66933         2006-05-09  Bruno Haible  <bruno@clisp.org>
66934
66935                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
66936                 CLASSPATH_SEPARATOR to a semicolon.
66937
66938         2006-03-12  Bruno Haible  <bruno@clisp.org>
66939
66940                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
66941                 available as variable CONF_JAVA, for subsequent autoconf
66942                 tests. Also log error output in config.log.
66943
66944         2006-07-19  Bruno Haible  <bruno@clisp.org>
66945
66946                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
66947                 that getline works on glibc2 systems. Needed to avoid trouble
66948                 in relocatable.c.
66949                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
66950
66951         2005-12-04  Bruno Haible  <bruno@clisp.org>
66952
66953                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
66954                 launcher (untested).
66955
66956         2005-12-04  Bruno Haible  <bruno@clisp.org>
66957
66958                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
66959
66960         2006-07-22  Bruno Haible  <bruno@clisp.org>
66961
66962                 * gettext.m4: Update from GNU gettext-0.15.
66963                 * nls.m4: Likewise.
66964                 * po.m4: Likewise.
66965                 * inttypes-pri.m4: Likewise.
66966                 * inttypes-h.m4: Renamed from inttypes.m4.
66967                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
66968
66969 2006-07-22  Bruno Haible  <bruno@clisp.org>
66970
66971         Merge from GNU gettext 0.15.
66972
66973         2005-07-05  Bruno Haible  <bruno@clisp.org>
66974
66975                 * printf-args.c (printf_fetchargs): Work around broken
66976                 definition of wint_t on mingw.
66977
66978         2005-02-12  Bruno Haible  <bruno@clisp.org>
66979
66980                 * xallocsa.h: Add extern "C" for C++.
66981
66982         2006-05-17  Bruno Haible  <bruno@clisp.org>
66983
66984                 Cygwin portability.
66985                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
66986
66987         2006-04-30  Bruno Haible  <bruno@clisp.org>
66988
66989                 * progreloc.c: Include <mach-o/dyld.h> if available.
66990                 (find_executable): Use _NSGetExecutablePath when possible.
66991
66992         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66993
66994                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
66995                 function.
66996
66997         2005-12-29  Bruno Haible  <bruno@clisp.org>
66998
66999                 * progreloc.c (set_program_name_and_installdir): Fix
67000                 compilation error.
67001
67002         2005-12-04  Bruno Haible  <bruno@clisp.org>
67003
67004                 Cygwin portability.
67005                 * progreloc.c: Include <windows.h> also on Cygwin.
67006                 (find_executable): Add support for Cygwin.
67007                 (set_program_name_and_installdir): Handle also platforms with
67008                 nonempty EXEEXT.
67009
67010         2006-07-11  Bruno Haible  <bruno@clisp.org>
67011
67012                 * javacomp.c: Fix a comment.
67013                 Reported by Jim Meyering.
67014
67015         2006-04-30  Bruno Haible  <bruno@clisp.org>
67016
67017                 * javacomp.h (compile_java_class): Add source_version,
67018                 target_version arguments.
67019                 * javacomp.c: Rewritten to choose only a compiler that
67020                 respects the specified source_version and target_version.
67021
67022         2006-06-27  Bruno Haible  <bruno@clisp.org>
67023
67024                 Assume correct S_ISDIR macro.
67025                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
67026
67027         2006-07-22  Bruno Haible  <bruno@clisp.org>
67028
67029                 * javaversion.h: New file, from GNU gettext.
67030                 * javaversion.c: New file, from GNU gettext.
67031                 * javaversion.java: New file, from GNU gettext.
67032                 * javaversion.class: New file, from GNU gettext.
67033
67034         2006-05-17  Bruno Haible  <bruno@clisp.org>
67035
67036                 Cygwin portability.
67037                 * javaexec.c (execute_java_class): Test for jview program
67038                 also on Cygwin.
67039
67040         2006-04-09  Bruno Haible  <bruno@clisp.org>
67041
67042                 * fatal-signal.c: Don't include string.h.
67043                 (at_fatal_signal): Use a copying loop instead of memcpy.
67044
67045         2005-12-04  Bruno Haible  <bruno@clisp.org>
67046
67047                 * csharpexec.c: Add support for 'clix' launcher (untested).
67048                 (execute_csharp_using_sscli): New function.
67049                 (execute_csharp_program): Call it.
67050
67051         2006-06-21  Bruno Haible  <bruno@clisp.org>
67052
67053                 Avoid warnings from recent versions of mcs.
67054                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
67055                 -o, -L, -r any more. Use options documented since mcs-1.0
67056                 instead. Similarly for -g.
67057
67058         2005-07-09  Bruno Haible  <bruno@clisp.org>
67059
67060                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
67061                 add a .dll suffix.
67062                 Reported by Mark Junker <mjscod@gmx.de>.
67063
67064         2006-06-17  Bruno Haible  <bruno@clisp.org>
67065
67066                 * config.charset: Update for NetBSD 3.0.
67067
67068         2006-05-17  Bruno Haible  <bruno@clisp.org>
67069
67070                 Cygwin portability.
67071                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
67072
67073         2006-05-16  Bruno Haible  <bruno@clisp.org>
67074
67075                 * localcharset.c [CYGWIN]: Include <windows.h>.
67076                 (get_charset_aliases): For Cygwin, return the same CPxxx
67077                 aliases list as under WIN32.
67078                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
67079                 the environment variables. Fall back to GetACP().
67080
67081         2006-04-05  Bruno Haible  <bruno@clisp.org>
67082
67083                 * config.charset: Update Juan Manuel Guerrero's address.
67084
67085         2005-02-12  Bruno Haible  <bruno@clisp.org>
67086
67087                 * allocsa.h: Add extern "C" for C++.
67088
67089         2005-02-10  Bruno Haible  <bruno@clisp.org>
67090
67091                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
67092                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
67093
67094         2006-07-22  Bruno Haible  <bruno@clisp.org>
67095
67096                 * gettext.h: Update to GNU gettext-0.15.
67097
67098 2006-07-22  Bruno Haible  <bruno@clisp.org>
67099
67100         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
67101         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
67102         lib-prefix.m4, longdouble.m4, ssize_t.m4.
67103
67104 2006-07-21  Eric Blake  <ebb9@byu.net>
67105
67106         * modules/stdlib-safer: New file.
67107         * MODULES.html.sh (File stream based Input/Output): Add
67108         stdlib-safer.
67109
67110 2006-07-21  Eric Blake  <ebb9@byu.net>
67111
67112         * lib/stdlib-safer.h: New file from coreutils, required by
67113         stdlib--.h.
67114
67115 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
67116
67117         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
67118
67119 2006-07-20  Bruno Haible  <bruno@clisp.org>
67120
67121         * gnulib-tool: Recognize new option --assume-autoconf.
67122         (autoconf_minversion): New variable.
67123         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
67124
67125 2006-07-20  Bruno Haible  <bruno@clisp.org>
67126
67127         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
67128
67129 2006-07-19  Derek R. Price  <derek@ximbiot.com>
67130
67131         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
67132         Reindent and repaginate.
67133
67134 2006-07-19  Derek Price  <derek@ximbiot.com>
67135
67136         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
67137         Correct grammar.
67138
67139 2006-07-17  Bruno Haible  <bruno@clisp.org>
67140
67141         * modules/list: New file.
67142         * modules/array-list: New file.
67143         * modules/carray-list, modules/carray-list-tests: New files.
67144         * modules/linked-list, modules/linked-list-tests: New files.
67145         * modules/avltree-list, modules/avltree-list-tests: New files.
67146         * modules/rbtree-list, modules/rbtree-list-tests: New files.
67147         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
67148         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
67149         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
67150         * modules/oset: New file.
67151         * modules/array-oset: New file.
67152         * modules/avltree-oset, modules/avltree-oset-tests: New files.
67153         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
67154         * tests/test-carray_list.c: New file.
67155         * tests/test-linked_list.c: New file.
67156         * tests/test-avltree_list.c: New file.
67157         * tests/test-rbtree_list.c: New file.
67158         * tests/test-linkedhash_list.c: New file.
67159         * tests/test-avltreehash_list.c: New file.
67160         * tests/test-rbtreehash_list.c: New file.
67161         * tests/test-avltree_oset.c: New file.
67162         * tests/test-rbtree_oset.c: New file.
67163         * MODULES.html.sh (Container data structures): New section.
67164
67165 2006-07-17  Bruno Haible  <bruno@clisp.org>
67166
67167         * m4/gl_list.m4: New file.
67168
67169 2006-07-17  Bruno Haible  <bruno@clisp.org>
67170
67171         * lib/gl_list.h: New file.
67172         * lib/gl_list.c: New file.
67173         * lib/gl_array_list.h: New file.
67174         * lib/gl_array_list.c: New file.
67175         * lib/gl_carray_list.h: New file.
67176         * lib/gl_carray_list.c: New file.
67177         * lib/gl_linked_list.h: New file.
67178         * lib/gl_linked_list.c: New file.
67179         * lib/gl_anylinked_list1.h: New file.
67180         * lib/gl_anylinked_list2.h: New file.
67181         * lib/gl_avltree_list.h: New file.
67182         * lib/gl_avltree_list.c: New file.
67183         * lib/gl_anyavltree_list1.h: New file.
67184         * lib/gl_anyavltree_list2.h: New file.
67185         * lib/gl_rbtree_list.h: New file.
67186         * lib/gl_rbtree_list.c: New file.
67187         * lib/gl_anyrbtree_list1.h: New file.
67188         * lib/gl_anyrbtree_list2.h: New file.
67189         * lib/gl_anytree_list1.h: New file.
67190         * lib/gl_anytree_list2.h: New file.
67191         * lib/gl_linkedhash_list.h: New file.
67192         * lib/gl_linkedhash_list.c: New file.
67193         * lib/gl_anyhash_list1.h: New file.
67194         * lib/gl_anyhash_list2.h: New file.
67195         * lib/gl_avltreehash_list.h: New file.
67196         * lib/gl_avltreehash_list.c: New file.
67197         * lib/gl_rbtreehash_list.h: New file.
67198         * lib/gl_rbtreehash_list.c: New file.
67199         * lib/gl_anytreehash_list1.h: New file.
67200         * lib/gl_anytreehash_list2.h: New file.
67201
67202         * lib/gl_oset.h: New file.
67203         * lib/gl_oset.c: New file.
67204         * lib/gl_array_oset.h: New file.
67205         * lib/gl_array_oset.c: New file.
67206         * lib/gl_avltree_oset.h: New file.
67207         * lib/gl_avltree_oset.c: New file.
67208         * lib/gl_rbtree_oset.h: New file.
67209         * lib/gl_rbtree_oset.c: New file.
67210         * lib/gl_anytree_oset.h: New file.
67211
67212 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67213
67214         * m4/mkancesdirs.m4: New file.
67215         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
67216         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
67217         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
67218         it.
67219
67220 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67221
67222         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
67223         * lib/mkancesdirs.h: New files.
67224         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
67225         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
67226         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
67227         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
67228         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
67229         callers changed.  Revamp internals significantly, by not
67230         attempting to create directories that are temporarily more
67231         permissive than the final results.  Do not attempt to use
67232         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
67233         This removes some race conditions, fixes some bugs, and simplifies
67234         things.  Use new dirchownmod function to do owner and mode changes.
67235         * lib/mkdir-p.h: Likewise.
67236         * lib/modechange.c (octal_to_mode): New function.
67237         (struct mode_change): New member mentioned.
67238         (make_node_op_equals): New arg mentioned.  All callers changed.
67239         (mode_compile): Keep track of which mode bits the user has explicitly
67240         mentioned.
67241         (mode_adjust): New arg DIR, so that we implement the X op correctly.
67242         New arg PMODE_BITS, to keep track of which mode bits the user
67243         mentioned; it treats S_ISUID and S_ISGID speciall.
67244         All callers changed.
67245         * lib/modechange.h: Likewise.
67246
67247 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
67248
67249         * MODULES.html.sh: Add mkancestors.
67250         * modules/mkancesdirs: New module.
67251         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
67252         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
67253         The chdir-safer and afs files are now orphans; I'll remove them
67254         unless someone speaks up.
67255         Add lib/dirchownmod.c, lib/dirchownmod.h.
67256         (Depends-on): Remove alloca, chown, save-cwd, dirname.
67257         Add lchown, mkancesdirs.
67258         (Maintainer): Add self.
67259
67260 2006-07-15  Karl Berry  <karl@gnu.org>
67261
67262         * gnulib-tool: help message wording/arrangement.
67263
67264 2006-07-14  Simon Josefsson  <jas@extundo.com>
67265
67266         * doc/gnulib.texi (Libtool and Windows): New section.
67267
67268 2006-07-12  Simon Josefsson  <jas@extundo.com>
67269
67270         * modules/gendocs (License): Fix license, approved by Karl.
67271
67272 2006-07-12  Eric Blake  <ebb9@byu.net>
67273
67274         * MODULES.html.sh: Add gendocs.
67275
67276 2006-07-11  Eric Blake  <ebb9@byu.net>
67277
67278         * modules/fdl: New module, to install doc/fdl.texi.
67279         * MODULES.html.sh: Add new section for documentation modules.
67280         * gnulib-tool: Avoid space-tab.
67281         (--doc-base): New option, to manage files from doc.
67282
67283 2006-07-11  Eric Blake  <ebb9@byu.net>
67284
67285         * m4/absolute-header.m4: Fix comments to match recent change.
67286
67287 2006-07-11  Eric Blake  <ebb9@byu.net>
67288
67289         * gnulib-tool: List --doc-base before --tests-base.
67290
67291 2006-07-11  Derek R. Price  <derek@ximbiot.com>
67292
67293         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
67294
67295 2006-07-11  Bruno Haible  <bruno@clisp.org>
67296
67297         * README: Mention where to put documentation.
67298
67299 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67300
67301         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
67302
67303 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
67304
67305         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
67306         to stdint.m4.
67307
67308 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
67309
67310         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
67311         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
67312         "no/such/file/stdint.h" when there is no such file, so that
67313         the resulting C code can be parsed by dodgy compilers.
67314         Problems reported by Bob Proulx.
67315
67316 2006-07-10  Derek R. Price  <derek@ximbiot.com>
67317
67318         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
67319         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
67320         macros into the GNU _D_EXACT_NAMLEN.
67321         * lib/savedir.c:  Likewise.
67322         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
67323
67324 2006-07-10  Derek R. Price  <derek@ximbiot.com>
67325         and Paul Eggert  <eggert@cs.ucla.edu>
67326
67327         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
67328         * m4/savedir.m4:
67329         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
67330         macros into the GNU _D_EXACT_NAMLEN.
67331
67332 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67333
67334         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
67335         around the absolute name, to work around a problem with the HP-UX
67336         11.23 native C compiler, reported by Bob Proulx.
67337
67338 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67339
67340         * doc/maintain.texi, make-stds.texi: Sync from
67341         <http://savannah.gnu.org/projects/gnustandards>.
67342
67343 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
67344
67345         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
67346
67347 2006-07-09  Jim Meyering  <jim@meyering.net>
67348
67349         * m4/glob.m4: Remove a doubled word in a comment.
67350
67351 2006-07-09  Jim Meyering  <jim@meyering.net>
67352
67353         * lib/argp-pv.c: Remove a doubled word in a comment.
67354         * lib/check-version.c (check_version): Likewise.
67355         * lib/javacomp.c (compile_java_class): Likewise.
67356
67357 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
67358
67359         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
67360         for the benefit of people using Autoconf 2.60.  If you want to
67361         support older Autoconf versions you can copy m4/onceonly_2_57.m4
67362         (or m4/onceonly.m4, if pre-2.57) manually.
67363
67364 2006-07-08  Jim Meyering  <jim@meyering.net>
67365
67366         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
67367         comment.
67368         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
67369         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
67370         comment.
67371
67372 2006-07-08  Jim Meyering  <jim@meyering.net>
67373
67374         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
67375
67376 2006-07-07  Simon Josefsson  <jas@extundo.com>
67377
67378         * tests/test-crc.c: Change expected crc value, the test vector
67379         were probably computed using the old broken crc.c?
67380
67381 2006-07-06  Simon Josefsson  <jas@extundo.com>
67382
67383         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
67384         now the canonical place for the M4 file).
67385
67386         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
67387         from the sys_socket dependency now.
67388
67389         * modules/inet_pton (Files): Ditto.
67390
67391         * modules/inet_ntop (Files): Ditto.
67392
67393 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
67394
67395         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
67396         not gl_PREREQ_GETUSERSHELL.
67397
67398 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67399
67400         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
67401         with only one argument, for Autoconf 2.60.
67402         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
67403         expand to nothing, so add a shell command to avoid syntax error.
67404         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
67405
67406 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67407
67408         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
67409
67410 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67411
67412         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
67413         no longer needed.  Check for isblank decl.
67414         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
67415         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
67416         of existence.
67417
67418 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67419
67420         * lib/getloadavg.c: Use __VMS, not VMS.
67421         * lib/getopt.c: Likewise.
67422         * lib/getpagesize.h: Likewise.
67423         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
67424         and probably does not work.
67425
67426 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
67427
67428         * lib/.cppi-disable: Add wcwidth.
67429         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
67430         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
67431         (ISGRAPH): Remove.  All uses changed to isgraph.
67432         (FOLD) [!defined _LIBC]: Remove special case.
67433         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
67434         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
67435         HAVE_ISBLANK.
67436         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
67437         case.
67438
67439 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
67440
67441         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
67442         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
67443         brackets.  Other minor changes to suppress some compiler
67444         warnings.
67445
67446 2006-07-06  Derek R. Price  <derek@ximbiot.com>
67447         and Paul Eggert  <eggert@cs.ucla.edu>
67448
67449         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
67450         of invoking obsolescent AC_HEADER_DIRENT macro.
67451         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
67452         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
67453         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
67454         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
67455         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
67456         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
67457         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
67458         * m4/readdir.m4: Remove; no longer needed.
67459
67460 2006-07-06  Derek R. Price  <derek@ximbiot.com>
67461         and Paul Eggert  <eggert@cs.ucla.edu>
67462
67463         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
67464         Don't worry about this obsolete case any more.
67465         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
67466         directories.
67467         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
67468         worry about this obsolete case any more.
67469         * lib/fts.c: Likewise.
67470         * lib/getcwd.c: Likewise.
67471         * lib/glob.h: Likewise.
67472         * lib/savedir.c: Likewise.
67473
67474 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67475
67476         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
67477         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
67478         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
67479         needed.
67480         All uses removed.
67481         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67482         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
67483         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
67484         needed.
67485         * m4/getdate.m4 (gl_GETDATE): Likewise.
67486         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
67487         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
67488         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
67489         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67490         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
67491         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67492         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
67493         needed.
67494
67495 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
67496
67497         * lib/memcasecmp.c: Include <limits.h>.
67498         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
67499         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
67500         Don't assume isdigit succeeds only on '0' through '9'.
67501
67502 2006-07-05  Eric Blake  <ebb9@byu.net>
67503
67504         * modules/getaddrinfo (Depends-on): Add snprintf.
67505
67506 2006-07-05  Eric Blake  <ebb9@byu.net>
67507
67508         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
67509         to avoid 'header present but could not be compiled' on cygwin.
67510
67511 2006-07-05  Eric Blake  <ebb9@byu.net>
67512
67513         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
67514         missing from netdb.h.
67515         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
67516
67517 2006-07-05  Derek R. Price  <derek@ximbiot.com>
67518
67519         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
67520         no longer needed.
67521         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
67522         * m4/getdate.m4 (gl_GETDATE): Likewise.
67523         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
67524         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
67525         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
67526         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
67527         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
67528
67529 2006-07-05  Derek R. Price  <derek@ximbiot.com>
67530
67531         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
67532         All uses of is_space replaced by isspace.
67533         * lib/exit.h: Don't talk about STDC_HEADERS.
67534         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
67535         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
67536         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
67537         replaced by isprint etc.
67538         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
67539         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
67540         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
67541         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
67542         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
67543         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
67544
67545 2006-07-05  Bruno Haible  <bruno@clisp.org>
67546
67547         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
67548         the function exists, before testing against AIX.
67549         Reported by Martin Lambers <marlam@marlam.de>.
67550
67551 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
67552
67553         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
67554         From Mark D. Baushke.
67555
67556 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
67557
67558         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
67559         to the absolute name, not just one, to bypass Sun C 5.8's
67560         "warning: #include of /usr/include/... may be non-portable".
67561
67562 2006-07-04  Eric Blake  <ebb9@byu.net>
67563
67564         * modules/dirname-tests: New test module.
67565         * tests/test-dirname.c: New file, replacing dirname.c
67566         TEST_DIRNAME section that was recently deleted.
67567
67568 2006-07-04  Bruno Haible  <bruno@clisp.org>
67569
67570         Assume ANSI C header files and <ctype.h> functions.
67571         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
67572         (mbsnwidth): Use isprint, iscntrl instead.
67573
67574 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67575
67576         Merge from coreutils.
67577         * MODULES.html.sh: Add xstrtold.
67578         * modules/xstrtold: New file.
67579         * modules/cycle-check (Files): Add lib/same-inode.h.
67580         * modules/dirname (Files): Add m4/double-slash-root.m4.
67581         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
67582         * modules/mkdir-p (Files): Add lib/same-inode.h.
67583         * modules/same (Files): Add lib/same-inode.h.
67584
67585 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67586
67587         * m4/absolute-header.m4: Renamed from full-header-path.m4.
67588         This is to keep the terminology clean; POSIX talks about
67589         "absolute pathnames", not "full pathnames", but the GNU
67590         Coding Standards say to use "path" for something else;
67591         so use "absolute" to keep both sides happy.
67592         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
67593         Set gl_absolute_header, not gl_full_header_path.
67594         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
67595         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
67596         All uses changed.
67597
67598         Merge from coreutils.
67599
67600         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
67601
67602         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
67603         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
67604         want to require the building of c-strtod.o.
67605         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
67606         needs -lm directly.
67607         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
67608
67609         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
67610
67611         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
67612         --as-needed option if available.  Problem reported by Albert Chin in
67613         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
67614         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
67615         cc merely issues a bunch of annoying warnings for --as-needed
67616         (this problem was reported by Bob Proulx).  Also, try linking with
67617         -lm to detect a bug in binutils 2.16 (this problem was reported
67618         by Ralf Wildenhues).
67619
67620         2006-06-18  Jim Meyering  <jim@meyering.net>
67621
67622         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
67623         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
67624         macro.
67625         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
67626         also check for glibc-2.4's abort-inducing bug.
67627
67628         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
67629         Low-probability clean-up should be to use rmdir to get rid of
67630         the just-created directory, not unlink.
67631
67632         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
67633         configure fail, and request a bug report to inform us about it.
67634         Add a comment that, barring reports to the contrary, in 2007 we'll
67635         assume ftruncate is universally available.
67636
67637         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
67638
67639         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
67640
67641         2006-03-12  Jim Meyering  <jim@meyering.net>
67642
67643         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
67644         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
67645         * m4/same.m4 (gl_SAME): Likewise.
67646         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
67647
67648         2006-03-11  Eric Blake  <ebb9@byu.net>
67649
67650         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
67651         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
67652         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
67653         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
67654
67655 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
67656
67657         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
67658         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
67659         reported by Mark D. Baushke, one in
67660         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
67661
67662         Merge from coreutils.
67663
67664         * lib/.cppi-disable: Add stdint_.h.
67665         * lib/.cvsignore: Add stdint.h.
67666
67667         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
67668
67669         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
67670         both double and long double versions.
67671         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
67672         * lib/xstrtold.c: New file.
67673         * lib/xstrtod.h (xstrtold): New decl.
67674
67675         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
67676
67677         * lib/filemode.c (setst): Remove.
67678         (strmode): Rewrite to avoid setst.  This makes the code shorter,
67679         (arguably) clearer, and the generated code is a bit smaller on my
67680         Debian GNU/Linux stable x86 host.
67681
67682         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
67683
67684         * lib/filemode.c: Include "filemode.h" first, to test the interface.
67685         Assume that filemode.h includes sys/types.h and sys/stat.h.
67686         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
67687         (ftypelet): Reorder to put common cases first, for efficiency.
67688         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
67689         to do 'M'.
67690         (strmode): Renamed from mode_string, and now stores 12 bytes instead
67691         of 10, for compatibility with FreeBSD.  All callers changed.
67692         (filemodestring): Now stores 12 bytes instead of 10, and sets file
67693         types that can't be deduced solely from st_mode.  First arg is now a
67694         const pointer.
67695         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
67696         (strmode): Renamed from mode_string.
67697         (filemodestring): New decl.
67698         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
67699         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
67700         needed.
67701         (S_ISPORT, S_ISWHT): New macros, if not already defined.
67702
67703         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
67704
67705         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
67706         fsusage.h now does that.  Include fsusage.h first, to test interface.
67707         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
67708         at most one method (the old code could have generated decls that
67709         didn't conform to C89, not that this was ever exercised).
67710         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
67711
67712         2006-03-19  Jim Meyering  <jim@meyering.net>
67713
67714         Work even in a chroot where d_ino values for entries in "/"
67715         don't match the stat.st_ino values for the same names.
67716         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
67717         number, iterate through all entries again, using lstat instead.
67718         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
67719         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
67720
67721         * lib/getcwd.c (__getcwd): Clarify a comment.
67722         Use memcpy in place of a call to strcpy.
67723
67724         2006-03-12  Jim Meyering  <jim@meyering.net>
67725
67726         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
67727         matches that of the current directory (which we're about to chdir ".."
67728         out of), then save the dev-ino of the parent, instead.
67729
67730         * lib/same-inode.h (SAME_INODE): New file/macro.
67731         * lib/chdir-safer.c (SAME_INODE): Remove definition.
67732         Include "same-inode.h", instead.
67733         * lib/same.c: Likewise.
67734         * lib/cycle-check.h: Include "same-inode.h".
67735         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
67736         * lib/cycle-check.c (SAME_INODE): Remove definition.
67737         * lib/root-dev-ino.h: Include "same-inode.h".
67738
67739         2006-03-11  Eric Blake  <ebb9@byu.net>
67740
67741         * lib/same.c (same_name): s/base_name/last_component/
67742         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
67743         * lib/filenamecat.c (file_name_concat): Likewise.
67744
67745         2006-03-11  Eric Blake  <ebb9@byu.net>,
67746                     Paul Eggert  <eggert@cs.ucla.edu>
67747
67748         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
67749         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
67750         drive prefix.
67751         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
67752         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
67753         (last_component): New method.
67754         * lib/dirname.c (dir_len): Determine when drive letters need a
67755         subsequent slash.  Preserve // when it is special.
67756         (dir_name): Don't append dot when drive letter is absolute.
67757         [TEST_DIRNAME]: Move into a full-blown gnulib test.
67758         * lib/basename.c (base_name): New semantics - malloc the result.
67759         Preserve // when it is special.  Preserve relative files that look
67760         like drive letters.
67761         (base_len): Preserve // when it is special.
67762         (last_component): New method, similar to old base_name semantics.
67763         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
67764         base_name.  Strip redundant slashes from ///.
67765
67766 2006-07-03  Jim Meyering  <jim@meyering.net>
67767
67768         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
67769         macro is used before the first cycle_check call.
67770
67771 2006-07-03  Eric Blake  <ebb9@byu.net>
67772
67773         * modules/dirname (Depends-on): Add xstrndup.
67774
67775 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67776
67777         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
67778         test cases, so that config.log is a bit easier to follow.
67779
67780 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67781
67782         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
67783         both are 64 bits, since this seems to be the tradition, and this
67784         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
67785         we ever run into a host that prefers long long to long in this
67786         case, we'll need another configure-time test.  Problem reported by
67787         Jim Meyering.
67788
67789 2006-07-02  Eric Blake  <ebb9@byu.net>
67790
67791         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
67792
67793 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67794
67795         * modules/inttypes (Depends-on): No longer depends on stdint.
67796         * modules/stdint (Description): Say more about assumptions.
67797         Say that the fast types might differ.  Say macros are used.
67798         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
67799         (Makefile.am): Revise list of substituted symbols to match
67800         new stdint.m4.
67801         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
67802         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
67803         * tests/test-stdint.c (verify_same_types)
67804         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
67805         the code conforms to C99/C89.
67806         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
67807         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
67808
67809 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67810
67811         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
67812         but fix a bug, by requiring at least 64 bits.
67813         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
67814         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
67815         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
67816         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
67817
67818         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
67819         changes.  Make 2.59 a prerequisite.  Check and substitute for
67820         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
67821         inttypes.h.  Do not use special include files; just use the
67822         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
67823         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
67824         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
67825         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
67826         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
67827         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
67828         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
67829         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
67830         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
67831         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
67832         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
67833         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
67834         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
67835         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
67836         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
67837         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
67838         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
67839         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
67840         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
67841         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
67842         WINT_MAX.  Check for C99 conformance more strictly, by detecting
67843         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
67844         not check for things that C99 does not require, e.g., int8_t.  If
67845         a test isn't needed unless <stdint.h> isn't working, and is
67846         unlikely to be needed for any other reason, then don't do it
67847         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
67848         size_t, since we assume C89 freestanding at least.  Do not check
67849         for sig_atomic_t, wchar_t, or wint_t, since the code now does
67850         the right thing even if the types are not defined.  Instead use:
67851         (gl_STDINT_TYPE_PROPERTIES): New macro.
67852         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
67853         testing whether <sys/types.h> clashes, as Autoconf does this for
67854         us now.  All uses removed.
67855         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
67856         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
67857         (gl_CHECK_TYPE_SAME):
67858         Remove; no longer needed.
67859         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
67860         exists, since we'll return 0 anyway in that case.
67861         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
67862
67863 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67864
67865         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
67866         possible collision with system files.
67867         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
67868         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
67869         WCHAR_MIN and WCHAR_MAX in this case.
67870         (<stddef.h>): Do not include; no longer needed.
67871         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
67872         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
67873         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
67874         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
67875         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
67876         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
67877         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
67878         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
67879         !defined(__c99))]: Include in this case too, since it's harmless
67880         now.
67881         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
67882         dangerous to do so.
67883         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
67884         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
67885         (_STDINT_MIN, _STDINT_MAX): New macros.
67886         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
67887         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
67888         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
67889         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
67890         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
67891         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
67892         macros, not typedefs; this simplifies things quite a bit.
67893         Use long int for all types narrower than int64_t.
67894         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
67895         Define in terms of long long int or int64_t or long int,
67896         not int64_t or int32_t.  This saves some compile-time testing.
67897         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
67898         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
67899         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
67900         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
67901         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
67902         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
67903         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
67904         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
67905         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
67906         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
67907         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
67908         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
67909         undef any previous version and define our own version, for
67910         simplicity and consistency with the new macros for types.
67911         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
67912         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
67913         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
67914         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
67915         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
67916         @WINT_T_SUFFIX@ to keep things simple here.
67917         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
67918         Simplify by assuming typical 8/16/32/64 host, since we're
67919         already doing that elsewhere anyway.
67920         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
67921         and assume long long int is 64 bits if available.  This
67922         speeds up 'configure'.
67923
67924 2006-07-01  Eric Blake  <ebb9@byu.net>
67925
67926         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
67927         Reported by Andreas Buening.
67928
67929 2006-07-01  Eric Blake  <ebb9@byu.net>
67930
67931         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
67932
67933 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
67934
67935         * lib/getaddrinfo.c: fixed typo
67936
67937 2006-06-29  Jim Meyering  <jim@meyering.net>
67938
67939         * modules/strftime (Maintainer): Add my name, since with the
67940         FPRINTFTIME changes strftime.c has forked from glibc.
67941
67942 2006-06-29  Eric Blake  <ebb9@byu.net>
67943
67944         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
67945
67946 2006-06-29  Eric Blake  <ebb9@byu.net>
67947
67948         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
67949
67950 2006-06-29  Eric Blake  <ebb9@byu.net>
67951
67952         * lib/stat_.h: New file.
67953
67954 2006-06-29  Eric Blake  <ebb9@byu.net>
67955
67956         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
67957         unused static function.
67958
67959 2006-06-29  Eric Blake  <ebb9@byu.net>
67960
67961         * doc/functions.texi (Function Portability): Document missing lstat
67962         on mingw.
67963
67964 2006-06-29  Eric Blake  <ebb9@byu.net>
67965
67966         * MODULES.html.sh: Add sys_stat.
67967         * modules/sys_stat: New module.
67968         * modules/mkstemp (Depends-on): Add sys_stat.
67969
67970 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67971
67972         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
67973
67974 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67975
67976         * m4/c-bs-a.m4: Removed.
67977
67978 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67979
67980         * lib/strftime.c: Assume strftime() exists.
67981
67982 2006-06-29  Derek Price  <derek@ximbiot.com>
67983
67984         * modules/c-bs-a: Removed - \a is C89.
67985         * MODULES.html.sh: Remove c-bs-a.
67986
67987 2006-06-29  Bruno Haible  <bruno@clisp.org>
67988
67989         * modules/wcwidth (License): Change to LGPL.
67990
67991 2006-06-28  Simon Josefsson  <jas@extundo.com>
67992
67993         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
67994         on _WIN32.
67995
67996         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
67997         getnameinfo.
67998
67999 2006-06-28  Simon Josefsson  <jas@extundo.com>
68000
68001         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
68002
68003 2006-06-28  Simon Josefsson  <jas@extundo.com>
68004
68005         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
68006         functions there.  It will succeed on Windows XP, but on Windows
68007         2000 and (presumably) earlier, it will fail, and use the internal
68008         re-implementation.
68009         (use_win32_p): New function.
68010         (getaddrinfo): Use strtoul on servname, to support numeric ports.
68011         Support AI_NUMERICSERV to disable getservbyname.
68012         (getnameinfo): New function, only supports
68013         NI_NUMERICHOST|NI_NUMERICSERV for now.
68014
68015         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
68016         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
68017         getnameinfo.
68018
68019 2006-06-28  Eric Blake  <ebb9@byu.net>
68020
68021         * modules/wcwidth: New file.
68022         * modules/mbchar (Depends-on): Add wcwidth.
68023         * modules/mbswidth (Depends-on): Add wcwidth.
68024         * MODULES.html.sh: Add wcwidth.
68025
68026 2006-06-28  Eric Blake  <ebb9@byu.net>
68027
68028         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
68029         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
68030
68031 2006-06-28  Eric Blake  <ebb9@byu.net>
68032
68033         * lib/xvasprintf.h: Fix comments.
68034
68035 2006-06-28  Eric Blake  <ebb9@byu.net>
68036
68037         * lib/mbchar.h (wcwidth): Include wcwidth.h.
68038         * lib/mbswidth.c (wcwidth): Move from here...
68039         * lib/wcwidth.h: ...to this new file.
68040
68041 2006-06-28  Derek R. Price  <derek@ximbiot.com>
68042
68043         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
68044
68045         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
68046         it's obsolete.
68047         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
68048
68049 2006-06-28  Derek R. Price  <derek@ximbiot.com>
68050
68051         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
68052         Autoconf 2.60 says this stuff was obsolete.
68053
68054 2006-06-28  Bruno Haible  <bruno@clisp.org>
68055
68056         * modules/wcwidth (Files): Add m4/wchar_t.m4.
68057
68058 2006-06-28  Bruno Haible  <bruno@clisp.org>
68059
68060         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
68061         gt_TYPE_WCHAR_T.
68062
68063 2006-06-28  Bruno Haible  <bruno@clisp.org>
68064
68065         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
68066         declaration for wcwidth.
68067         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
68068
68069 2006-06-28  Bruno Haible  <bruno@clisp.org>
68070
68071         * lib/mkdtemp.c [MINGW]: Include <io.h>.
68072         (mkdir): Define using _mkdir.
68073
68074 2006-06-28  Bruno Haible  <bruno@clisp.org>
68075
68076         * lib/getaddrinfo.h: Fix POSIX URL.
68077         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
68078         _WIN32.
68079         (use_win32_p): Make static.
68080         (getaddrinfo): Reject service name if it is empty or does not consist
68081         solely of decimal digits, or if its value is > 65535.
68082         (getnameinfo): Remove useless casts.
68083
68084 2006-06-27  Simon Josefsson  <jas@extundo.com>
68085
68086         * modules/sys_select: New file, suggested by Bruno Haible, Paul
68087         Eggert and Martin Lambers.
68088
68089 2006-06-27  Simon Josefsson  <jas@extundo.com>
68090
68091         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
68092         Eggert and Martin Lambers.
68093
68094 2006-06-27  Bruno Haible  <bruno@clisp.org>
68095
68096         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
68097         result to 0, not to empty.
68098         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
68099
68100 2006-06-27  Bruno Haible  <bruno@clisp.org>
68101
68102         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
68103
68104 2006-06-26  Simon Josefsson  <jas@extundo.com>
68105
68106         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
68107         present.
68108
68109 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
68110
68111         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
68112         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
68113         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
68114
68115 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
68116
68117         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
68118
68119 2006-06-26  Bruno Haible  <bruno@clisp.org>
68120
68121         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
68122
68123 2006-06-26  Bruno Haible  <bruno@clisp.org>
68124
68125         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
68126
68127 2006-06-26  Bruno Haible  <bruno@clisp.org>
68128
68129         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
68130         SGI C compiler in pre-C99 mode.
68131         Suggested by Mark D. Baushke and Larry Jones.
68132
68133 2006-06-26  Bruno Haible  <bruno@clisp.org>
68134
68135         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
68136         WCHAR_MAX.
68137         Reported by Mark D. Baushke and Larry Jones.
68138
68139 2006-06-26  Bruno Haible  <bruno@clisp.org>
68140
68141         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
68142         in pre-C99 mode.
68143         Suggested by Mark D. Baushke and Larry Jones.
68144
68145 2006-06-23  Simon Josefsson  <jas@extundo.com>
68146             Bruno Haible  <bruno@clisp.org>
68147
68148         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
68149         Emit mostlyclean-local rule.
68150         (func_emit_tests_Makefile_am): Likewise.
68151         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
68152
68153 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
68154
68155         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
68156
68157 2006-06-23  Bruno Haible  <bruno@clisp.org>
68158
68159         * tests/test-stdint.c: Update to match ISO C 99 Technical
68160         Corrigendum 1.
68161
68162 2006-06-23  Bruno Haible  <bruno@clisp.org>
68163
68164         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
68165
68166 2006-06-23  Bruno Haible  <bruno@clisp.org>
68167
68168         * lib/stdint_.h: Treat IRIX like OpenBSD.
68169
68170 2006-06-23  Bruno Haible  <bruno@clisp.org>
68171
68172         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
68173         ISO C 99 Technical Corrigendum 1.
68174
68175 2006-06-22  Simon Josefsson  <jas@extundo.com>
68176
68177         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
68178         MinGW.
68179
68180 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
68181
68182         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
68183         needed.  Some compiler complained about some of them.  Problem reported
68184         by Larry Jones in
68185         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
68186
68187 2006-06-21  Simon Josefsson  <jas@extundo.com>
68188
68189         * tests/test-getaddrinfo.c: New file.
68190
68191         * modules/getaddrinfo-tests: New file.
68192
68193         * MODULES.html.sh: Add inet_pton.
68194
68195         * modules/inet_pton: New file.
68196
68197 2006-06-21  Simon Josefsson  <jas@extundo.com>
68198
68199         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
68200         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
68201         of using the (limited) gnulib implementation on Windows XP.
68202
68203         * m4/inet_pton.m4: New file.
68204
68205 2006-06-21  Simon Josefsson  <jas@extundo.com>
68206
68207         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
68208         variable.
68209
68210         * lib/socket_.h: Don't define WINVER.
68211
68212         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
68213         slightly modified to work in gnulib.
68214
68215 2006-06-21  Simon Josefsson  <jas@extundo.com>
68216
68217         * doc/gnulib.texi (Windows sockets): Add.
68218
68219 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
68220
68221         * lib/read-file.c (fread_file): Start with buffer allocation of
68222         0 bytes rather than 1 byte; this simplifies the code.
68223         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
68224         code to free buffer and save/restore errno.
68225         (internal_read_file): Remove unused local.
68226
68227 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
68228
68229         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
68230         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
68231         Problem reported by Denis Excoffier in
68232         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
68233
68234 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68235
68236         * modules/sys_socket, modules/socklen: Include sys/types since
68237         FreeBSD 4.x's sys/socket.h needs it.
68238
68239 2006-06-19  Simon Josefsson  <jas@extundo.com>
68240
68241         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
68242
68243 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
68244
68245         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
68246
68247 2006-06-19  Bruno Haible  <bruno@clisp.org>
68248
68249         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
68250         and FULL_PATH_INTTYPES_H in angle brackets.
68251         Reported by Mark D. Baushke <mdb@gnu.org>.
68252
68253 2006-06-17  Eric Blake  <ebb9@byu.net>
68254
68255         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
68256         errno.
68257
68258 2006-06-17  Bruno Haible  <bruno@clisp.org>
68259
68260         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
68261         <sys/inttypes.h>.
68262
68263 2006-06-17  Bruno Haible  <bruno@clisp.org>
68264
68265         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
68266         whether errno is declared. Assume <errno.h> declares errno.
68267
68268 2006-06-17  Bruno Haible  <bruno@clisp.org>
68269
68270         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
68271
68272 2006-06-17  Bruno Haible  <bruno@clisp.org>
68273
68274         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
68275         problem on Solaris 2.5.1.
68276
68277 2006-06-16  Eric Blake  <ebb9@byu.net>
68278
68279         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
68280         * lib/unicodeio.c [!defined errno]: Likewise.
68281         * lib/strtol.c [!defined errno]: Likewise.
68282         * lib/strtod.c [!defined errno]: Likewise.
68283
68284 2006-06-15  Eric Blake  <ebb9@byu.net>
68285
68286         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
68287
68288 2006-06-15  Eric Blake  <ebb9@byu.net>
68289
68290         * config/srclist.txt (ssize_t.m4): Lose sync.
68291
68292 2006-06-15  Bruno Haible  <bruno@clisp.org>
68293
68294         * modules/stdint (Files): Include m4/full-header-path.m4,
68295         m4/size_max.m4, m4/wchar_t.m4.
68296         (Makefile.am): Many more substitutions.
68297         * modules/stdint-tests: New file.
68298         * tests/test-stdint.c: New file.
68299
68300 2006-06-15  Bruno Haible  <bruno@clisp.org>
68301
68302         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
68303         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
68304         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
68305         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
68306         gl_CHECK_TYPE_SAME): New macros.
68307
68308 2006-06-15  Bruno Haible  <bruno@clisp.org>
68309
68310         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
68311
68312 2006-06-15  Bruno Haible  <bruno@clisp.org>
68313
68314         * lib/stdint_.h: Rewritten to be fully auto-configured.
68315         Fixes bug on HP-UX/IA64.
68316
68317 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
68318
68319         * lib/getdate.y (__attribute__): Don't define if already defined.
68320         Problem reported by Larry Jones.
68321         * lib/utimens.c (__attribute__): Likewise.
68322
68323 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
68324
68325         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
68326         reported by Andreas Schwab.
68327
68328 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68329             Bruno Haible  <bruno@clisp.org>
68330
68331         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
68332         check for the declaration of strnlen and a run test that exposes the
68333         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
68334         rpl_strndup.
68335
68336 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68337             Bruno Haible  <bruno@clisp.org>
68338
68339         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
68340
68341 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68342
68343         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
68344         compile test, for Tru64 4.0D.
68345
68346 2006-05-28  Karl Berry  <karl@gnu.org>
68347
68348         * config/srclist.txt (printf-args.c): lose sync.
68349
68350 2006-05-26  Martin Lambers  <marlam@marlam.de>
68351
68352         * lib/getpass.c: Updates the test for the native W32 API, and adds
68353         missing includes, thus fixing compilation warnings.
68354
68355 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
68356
68357         * lib/exclude.c (exclude_fnmatch): New function.
68358         (excluded_file_name): Call exclude_fnmatch.
68359         * lib/exclude.h (excluded_file_name): New prototype
68360
68361 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
68362
68363         * lib/tempname.c (small_open, large_open): New macros.
68364         (__open, __open64) [!_LIBC]: Remove.
68365         (__gen_tempname): Use small_open and large_open instead of __open
68366         and __open64.  This fixes a portability bug on HP-UX 11.11i
68367         reported by Simon Wing-Tang in
68368         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
68369
68370 2006-05-24  Bruno Haible  <bruno@clisp.org>
68371
68372         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
68373         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
68374         Reported by Thorsten Maerz <torte@netztorte.de> via
68375         Aaron Stone <aaron@serendipity.cx>.
68376
68377 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
68378
68379         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
68380         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
68381         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
68382         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
68383         not really conditional on the cache.
68384         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
68385
68386 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
68387
68388         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
68389         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
68390         (my_usleep): Don't mishandle maximum value.
68391
68392 2006-05-19  Jim Meyering  <jim@meyering.net>
68393
68394         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
68395
68396 2006-05-17  Bruno Haible  <bruno@clisp.org>
68397
68398         Cygwin portability.
68399         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
68400
68401 2006-05-17  Bruno Haible  <bruno@clisp.org>
68402
68403         * lib/stdint_.h: Fix recognition of Cygwin.
68404
68405 2006-05-15  Bruno Haible  <bruno@clisp.org>
68406
68407         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
68408         on libtool patch by Ralf Wildenhues.
68409
68410 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
68411
68412         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
68413         test for C99 conformance; (bool) 0.5 is an integer constant
68414         expression, but (bool) -0.5 is not.  Problem reported by Fedor
68415         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
68416
68417 2006-05-11  Simon Josefsson  <jas@extundo.com>
68418
68419         * m4/xvasprintf.m4: Fix obvious typo.
68420
68421 2006-05-11  Jim Meyering  <jim@meyering.net>
68422
68423         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
68424         James Lemley.
68425
68426 2006-05-10  Simon Josefsson  <jas@extundo.com>
68427
68428         * lib/md4.c: Typo fix, update copyright years.
68429         (K1, K2): Don't use L because it turn computations into 64-bit on
68430         64-bit platforms.
68431
68432 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
68433
68434         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
68435         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
68436         unwanted sign propagation, e.g., on hosts with 64-bit int.
68437         There still are some problems with reeelly weird theoretical hosts
68438         (e.g., 33-bit int) but it's not worth worrying about now.
68439         * lib/sha1.c (rol): Likewise.
68440         (K1, K2, K3, K4): Remove unnecessary L suffix.
68441
68442 2006-05-10  Bruno Haible  <bruno@clisp.org>
68443
68444         * lib/des.c: Cast to avoid warnings.
68445
68446 2006-05-09  Bruno Haible  <bruno@clisp.org>
68447
68448         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
68449         (Depends-on): Depend also on xsize, stdarg.
68450         (configure.ac): Add gl_XVASPRINTF.
68451
68452 2006-05-09  Bruno Haible  <bruno@clisp.org>
68453
68454         * m4/xvasprintf.m4: New file.
68455
68456 2006-05-09  Bruno Haible  <bruno@clisp.org>
68457
68458         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
68459         (EOVERFLOW): Define fallback value.
68460         (xstrcat): New function.
68461         (xvasprintf): Recognize the special case of a string concatenation.
68462
68463 2006-05-08  Eric Blake  <ebb9@byu.net>
68464
68465         * gnulib-tool (func_version): Base copyright year on CVS date.
68466         (func_emit_copyright_notice): New function.
68467         (func_emit_lib_Makefile_am): Use it.
68468         (func_emit_tests_Makefile_am): Likewise.
68469         (func_import): Likewise.
68470
68471 2006-05-08  Bruno Haible  <bruno@clisp.org>
68472
68473         * modules/stdarg: New file.
68474         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
68475
68476 2006-05-08  Bruno Haible  <bruno@clisp.org>
68477
68478         * m4/stdarg.m4: New file, from GNU gettext.
68479
68480 2006-05-08  Bruno Haible  <bruno@clisp.org>
68481
68482         * config/srclist.txt (build-aux/config.rpath): different from latest
68483         release.
68484
68485 2006-05-08  Bruno Haible  <bruno@clisp.org>
68486
68487         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
68488
68489 2006-05-05  Jim Meyering  <jim@meyering.net>
68490
68491         * m4/warning.m4: New file, derived from bison's file by the same name.
68492
68493 2006-05-03  Bruno Haible  <bruno@clisp.org>
68494
68495         * lib/stdint_.h: Shorter URL.
68496         * lib/inttypes.h: Likewise.
68497
68498 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68499
68500         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
68501
68502 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68503
68504         * lib/verify.h: Document the internals better.  Most of this change
68505         was written by Bruno Haible.
68506
68507 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68508
68509         * doc/verify.texi: New file, partly based on a proposal by
68510         Bruno Haible.
68511
68512 2006-05-02  Bruno Haible  <bruno@clisp.org>
68513
68514         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
68515         test from here...
68516         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
68517
68518 2006-04-29  Bruno Haible  <bruno@clisp.org>
68519
68520         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
68521         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
68522
68523 2006-04-29  Bruno Haible  <bruno@clisp.org>
68524
68525         * gnulib-tool: Make --update option actually work.
68526
68527 2006-04-29  Bruno Haible  <bruno@clisp.org>
68528
68529         * doc/gcd.texi: New file.
68530         * doc/gnulib.texi: Include it.
68531
68532 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
68533
68534         * lib/getdate.y (get_date): When adding relative date, start with the
68535         initial time, not with the result of the first mktime call.
68536
68537 2006-04-25  Bruno Haible  <bruno@clisp.org>
68538
68539         * gnulib-tool (func_import): Output the include directives in three
68540         blocks, sorted separately.
68541         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68542
68543 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
68544
68545         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
68546         to define main with arguments, for C++.  Reported by Eric Blake.
68547         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
68548         Prefer 'int main ()' to 'int main (void)', for C++.
68549         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
68550         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
68551         for 'main', for C99 and C++.
68552
68553 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
68554
68555         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
68556         Don't assume that exit status -1 is valid.
68557         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68558         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
68559         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
68560         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
68561         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
68562         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
68563         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
68564         functions can be used without declaring them, or that you can
68565         exit with status -1.
68566         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
68567
68568 2006-04-24  Karl Berry  <karl@gnu.org>
68569
68570         * config/srclist.txt (longdouble.m4): sync lost.
68571
68572 2006-04-24  Eric Blake  <ebb9@byu.net>
68573
68574         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
68575
68576 2006-04-24  Bruno Haible  <bruno@clisp.org>
68577
68578         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
68579         poll() implementation in AIX.
68580         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68581
68582 2006-04-24  Bruno Haible  <bruno@clisp.org>
68583
68584         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
68585         assigned exactly once.
68586
68587 2006-04-23  Claudio Fontana  <claudio@gnu.org>
68588             Bruno Haible  <bruno@clisp.org>
68589
68590         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
68591         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
68592         for AM_CPPFLAGS.
68593
68594 2006-04-23  Bruno Haible  <bruno@clisp.org>
68595
68596         * modules/copy-file: Depend on unistd.
68597         * modules/execute: Likewise.
68598         * modules/fatal-signal: Likewise.
68599         * modules/findprog: Likewise.
68600         * modules/mkdtemp : Likewise.
68601         * modules/pipe: Likewise.
68602         * modules/wait-process: Likewise.
68603
68604 2006-04-23  Bruno Haible  <bruno@clisp.org>
68605
68606         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
68607         condition was already detected.
68608         Reported by Ben Pfaff <blp@cs.stanford.edu>.
68609
68610 2006-04-23  Bruno Haible  <bruno@clisp.org>
68611
68612         * lib/copy-file.c: Include <unistd.h> unconditionally.
68613         * lib/execute.c: Likewise.
68614         * lib/fatal-signal.c: Likewise.
68615         * lib/findprog.c: Likewise.
68616         * lib/mkdtemp.c: Likewise.
68617         * lib/pipe.h: Likewise.
68618         * lib/pipe.c: Likewise.
68619         * lib/wait-process.h: Likewise.
68620
68621 2006-04-23  Bruno Haible  <bruno@clisp.org>
68622
68623         * gnulib-tool (func_usage): Fix --import description. Document
68624         --update.
68625         (func_import): Create temporary file in a temporary directory, if
68626         --dry-run is specified. Silence errors from 'grep' when there are no
68627         m4 files in $m4dir.
68628         (func_create_testdir): Silence errors from 'grep' when there are no
68629         m4 files in $m4dir.
68630         Reported by Karl Berry <karl@freefriends.org>.
68631
68632 2006-04-20  Bruno Haible  <bruno@clisp.org>
68633
68634         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
68635         one argument, so that the code will be portable to Autoconf 2.60.
68636         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
68637         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
68638         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
68639
68640 2006-04-19  Derek Price  <derek@ximbiot.com>
68641             Eric Blake  <ebb9@byu.net>
68642
68643         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
68644         rather than "/full/path.h".  Update comment to match.  Shorten &
68645         generalize m4_translit call via AS_TR_CPP.
68646
68647 2006-04-19  Derek Price  <derek@ximbiot.com>
68648             Eric Blake  <ebb9@byu.net>
68649
68650         * lib/inttypes.h: Correct grammar in comment.
68651
68652 2006-04-18  Derek Price  <derek@ximbiot.com>
68653             Paul Eggert  <eggert@cs.ucla.edu>
68654
68655         * modules/inttypes: New file.
68656         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
68657
68658 2006-04-18  Derek Price  <derek@ximbiot.com>
68659             Paul Eggert  <eggert@cs.ucla.edu>
68660
68661         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
68662         New files.
68663
68664 2006-04-18  Derek Price  <derek@ximbiot.com>
68665             Paul Eggert  <eggert@cs.ucla.edu>
68666
68667         * lib/inttypes.h: New file.
68668         * lib/strtoimax.c: Assume <inttypes.h>.
68669
68670 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
68671
68672         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
68673         isn't mounted.  Problem reported by Kir Kolyshkin.
68674
68675 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68676
68677         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
68678         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
68679         Derek R. Price.
68680         * lib/regex.h (RE_DUP_MAX): Update comment to match current
68681         implementation.
68682
68683 2006-04-12  Eric Blake  <ebb9@byu.net>
68684
68685         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
68686         is now done automatically by the corresponding Autoconf macro.
68687
68688 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
68689
68690         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
68691         time_r.h.
68692
68693 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68694
68695         Merge regex changes from libc, removing some of our
68696         POSIX-conformance changes that were rejected and redoing them in a
68697         less-intrusive way.
68698
68699         * lib/regcomp.c (re_compile_internal, init_dfa):
68700         Length arg is now size_t, not Idx.  All uses changed.
68701         (peek_token): Forward decl now says internal_function.
68702         (__re_error_msgid, __re_error_msgid_idx):
68703         Now static rather than extern with attribute_hidden.
68704         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
68705         For some reason libc prefers K&R style defns for external functions.
68706         (regerror) [!defined _LIBC]: Likewise.
68707         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
68708         (seek_collating_symbol_entry, lookup_collation_sequence_value):
68709         (build_range_exp, build_collating_symbol):
68710         Use K&R-style defn.
68711         (re_compile_fastmap): Use '\0' to memset, not 0.
68712         (utf8_sb_map): Make the calculations more obvious.
68713         (init_dfa, parse_bracket_exp, build_charclass_op):
68714         Call calloc and cast result, as glibc does.
68715         (init_word_char, fetch_token, peek_token, peek_token_bracket):
68716         (build_range_exp, build_collating_symbol):
68717         Now internal functions.
68718
68719         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
68720
68721         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
68722         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
68723         Don't depend on VMS; depend on __VMS instead, for POSIX
68724         namespace cleanness.
68725         (regoff_t): Define to ssize_t, not long int.
68726
68727         Remove the REG_ macros named below.  Instead, make the old names
68728         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
68729         __USE_GNU_REGEX.
68730         (REG_BACKSLASH_ESCAPE_IN_LISTS):
68731         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
68732         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
68733         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
68734         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
68735         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
68736         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
68737         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
68738         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
68739         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
68740         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
68741         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
68742         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
68743         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
68744         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
68745         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
68746         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
68747         (REG_NREGS):
68748         Remove.  All uses replaced by the old RE_* names.
68749         (RE_BACKSLASH_ESCAPE_IN_LISTS):
68750         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
68751         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
68752         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
68753         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
68754         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
68755         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
68756         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
68757         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
68758         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
68759         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
68760         Don't bother having these macros be independent of each others'
68761         values, since they no longer exist in the POSIX name space.
68762
68763         Rename the following member names back to their old names,
68764         unless !__USE_GNU_REGEX.  All uses changed back.
68765         (buffer): Renamed from re_buffer.
68766         (allocated): Renamed from re_allocated.
68767         (used): Renamed from re_used.
68768         (syntax): Renamed from re_syntax.
68769         (fastmap): Renamed from re_fastmap.
68770         (translate): Renamed from re_translate.
68771         (can_be_null): Renamed from re_can_be_null.
68772         (regs_allocated): Renamed from re_regs_allocated.
68773         (fastmap_accurate): Renamed from re_fastmap_accurate.
68774         (no_sub): Renamed from re_no_sub.
68775         (not_bol): Renamed from re_not_bol.
68776         (not_eol): Renamed from re_not_eol.
68777         (newline_anchor): Renamed from re_newline_anchor.
68778         (num_regs): Renamed from rm_num_regs.
68779         (start): Renamed from rm_start.
68780         (end): Renamed from rm_end.
68781
68782         (free_state): Move up a bit.
68783
68784         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
68785         #define to be empty.
68786         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
68787         when that is what is intended.
68788         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
68789         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
68790         (MAX): New macro.
68791         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
68792         All uses changed back to re_malloc, etc.  It's now the caller's
68793         responsibility to check for overflow; all callers changed.
68794         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
68795         (re_x2nrealloc): Remove.
68796         (free_state): Remove decl.
68797
68798         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
68799         (re_set_registers, re_exec):
68800         Use K&R-style defn.
68801
68802         2006-01-31  Roland McGrath  <roland@redhat.com>
68803
68804         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
68805         Reported by Mike Frysinger <vapier@gentoo.org>.
68806
68807         2006-01-15  Andreas Jaeger  <aj@suse.de>
68808
68809         [BZ #1950]
68810         * lib/regex_internal.c (re_string_reconstruct): Adjust for
68811         build_wcs_upper_buffer change.
68812         (build_wcs_upper_buffer): Change return type.
68813
68814         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
68815
68816         * lib/regex_internal.h: Include <stdint.h> if available.
68817
68818         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
68819
68820         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
68821
68822         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
68823
68824         * lib/regcomp.c: Adjust for changed secondary hash function.
68825
68826         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
68827
68828         * lib/regex.h: Pretty printing.
68829         Clean up namespace a bit.
68830
68831         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
68832
68833         * lib/regexec.c (update_cur_sifted_state, check_arrival,
68834         check_arrival_add_next_nodes): Avoid using uninitialized variable.
68835
68836         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68837                     Ulrich Drepper  <drepper@redhat.com>
68838
68839         [BZ #1302]
68840         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
68841         changed.
68842         (bitset_word_t): Renamed from bitset_word.  All uses changed.
68843
68844         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
68845
68846         [BZ #281]
68847         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
68848         * lib/regcomp.c: Remove unnecessary uses of
68849         unsigned RE_TRANSLATE_TYPE.
68850         * lib/regex_internal.h: Likewise.
68851         * lib/regex_internal.c: Likewise.
68852         * lib/regexec.c: Likewise.
68853         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
68854
68855         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
68856
68857         * lib/regexec.c (find_recover_state): Remove unnecessary
68858         initialization.
68859         (transit_state_bkref): Make DFA a const pointer.
68860         (get_subexp): Likewise.
68861         (check_arrival): Likewise.
68862         (update_cur_sifted_state): Likewise.
68863         (re_search_internal): Likewise.
68864         (prune_impossible_nodes): Likewise.
68865         (acquire_init_state_context): Likewise.
68866         (proceed_next_node): Likewise.
68867         (set_regs): Likewise.
68868         (free_fail_stack_return): Likewise.
68869         (check_arrival_expand_ecl): Mark DFA parameter as const.
68870         (check_arrival_expand_ecl_sub): Likewise.
68871         (check_subexp_limits): Likewise.
68872         (sub_epsilon_src_nodes):  Likewise.
68873         (add_epsilon_src_nodes):  Likewise.
68874         (merge_state_array): Likewise.
68875         (update_regs): Likewise.
68876         (build_trtable): Likewise.
68877         (sift_states_backward): Mark MCTX parameter as const.
68878         (build_sifted_states): Likewise.
68879         (update_cur_sifted_state): Likewise.
68880         (sift_states_mkref): Likewise.
68881         (check_arrival_expand_ecl): Mark eclosure as const.
68882         (check_dst_limits_calc_pos_1): Likewise.
68883         * lib/regex_internal.h (re_match_context_t): Make dfa a const
68884         pointer.
68885
68886         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
68887
68888         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
68889         (transit_state_sb): Likewise.
68890         (transit_state_mb): Likewise.
68891         (sift_states_iter_mb): Likewise.
68892         (check_arrival_add_next_nodes): Likewise.
68893         (check_node_accept_bytes): Change first parameter to pointer-to-const.
68894         [_LIBC] (re_search_2_stub): Use mempcpy.
68895
68896         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
68897         mbrtowc for very simple UTF-8 case.
68898
68899         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
68900         a pointer-to-const.
68901         (re_acquire_state_context): Likewise.
68902         * lib/regex_internal.h: Adjust prototypes.
68903
68904         * lib/regex.c: Prevent using C++ compilers.
68905
68906         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
68907         (re_acquire_state_context): Likewise.
68908
68909 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68910
68911         * modules/regex (Depends-on): Add ssize_t.
68912
68913 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68914
68915         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
68916         translation table.
68917
68918 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68919
68920         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
68921
68922 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
68923             Bruno Haible  <bruno@clisp.org>
68924
68925         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
68926         <sys/types.h> and <inttypes.h>.
68927
68928 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68929
68930         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
68931         `__error_t_defined', so argp.h will not typedef the former.
68932
68933 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
68934
68935         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
68936         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
68937         glibc names.  Even if glibc is changed to conform to POSIX, the
68938         traditional names will be available anyway, since regex depends on
68939         the extensions module.  Also, fix a longstanding typo in the
68940         implementation of Spencer ERE test #75 from grep 2.3.  Problems
68941         reported by Emanuele Giaquinta.  Also, change sense of cached
68942         variable, so that the message makes sense.
68943
68944 2006-03-24  Simon Josefsson  <jas@extundo.com>
68945
68946         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
68947         including some doc fixes.
68948         (base64_encode_alloc): Fix +1 bug on allocation failures.
68949
68950 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68951
68952         * lib/base64.c (base64_encode): Do not read past end of array with
68953         unsanitized input on systems with CHAR_BIT > 8.
68954
68955 2006-03-24  Eric Blake  <ebb9@byu.net>
68956
68957         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
68958
68959 2006-03-22  Karl Berry  <karl@gnu.org>
68960
68961         * config/srclist.txt (*setenv.[ch]): get from coreutils.
68962         * config/srclistvars.sh (COREUTILS): new var.
68963
68964 2006-03-17  Jim Meyering  <jim@meyering.net>
68965
68966         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
68967         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
68968
68969 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
68970
68971         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
68972         no longer needs it.  Instead, check that regoff_t is as least
68973         as wide as ptrdiff_t.
68974
68975         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
68976         so that our regex.h stays compatible with the installed regex.
68977         This is helpful for installers who configure --without-included-regex.
68978         Problem reported by Emanuele Giaquinta.
68979
68980 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
68981
68982         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
68983         Typedef to long int, not to off_, as POSIX will likely change
68984         in that direction.
68985
68986 2006-03-15  Eric Blake  <ebb9@byu.net>
68987
68988         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
68989
68990 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
68991
68992         * lib/argp-help.c (validate_uparams): Fix typo
68993         * lib/argp-parse.c (argp_default_options): Consistently begin help
68994         messages with a lowercase letter.
68995
68996 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
68997
68998         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
68999         overrun buffers and shouldn't be used (much as gets shouldn't be
69000         used).
69001         * lib/time_r.c (asctime_r, ctime_r): Likewise.
69002
69003 2006-03-08  Simon Josefsson  <jas@extundo.com>
69004
69005         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
69006         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69007
69008 2006-03-08  Simon Josefsson  <jas@extundo.com>
69009
69010         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
69011         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69012
69013 2006-03-08  Simon Josefsson  <jas@extundo.com>
69014
69015         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
69016         signal that configure disabled the device.
69017
69018 2006-03-08  Simon Josefsson  <jas@extundo.com>
69019
69020         * build-aux/maint.mk: Fix refresh-po, to handle no translated
69021         languages.
69022
69023 2006-03-07  Simon Josefsson  <jas@extundo.com>
69024
69025         * modules/getopt (Depends-on): Add unistd.
69026
69027         * modules/unistd: New file.
69028
69029 2006-03-07  Simon Josefsson  <jas@extundo.com>
69030
69031         * modules/gc-random: New file.
69032
69033 2006-03-07  Simon Josefsson  <jas@extundo.com>
69034
69035         * m4/unistd_h.m4: New file.
69036
69037 2006-03-07  Simon Josefsson  <jas@extundo.com>
69038
69039         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
69040         test to be side-effect free by storing the result in the cache
69041         variable gl_cv_lib_readline, and moving the assignment of
69042         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
69043         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69044
69045 2006-03-07  Simon Josefsson  <jas@extundo.com>
69046
69047         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
69048         error on missing devices (the functions will return an error).
69049
69050         * m4/gc.m4: Move random stuff to gc-random.m4
69051
69052 2006-03-07  Simon Josefsson  <jas@extundo.com>
69053
69054         * lib/unistd_.h: New file.
69055
69056 2006-03-07  Simon Josefsson  <jas@extundo.com>
69057
69058         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
69059
69060 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69061
69062         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
69063         Problem reported by Juan Manuel Guerrero.
69064
69065 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69066
69067         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
69068         the unistd module.
69069         * lib/getlogin_r.c: Likewise.
69070         * lib/getlogin_r.h: Likewise.
69071         * lib/glob.c: Likewise.
69072         * lib/pagealign_alloc.c: Likewise.
69073         * lib/unistd_.h: Remove; no longer needed.
69074
69075 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
69076
69077         * MODULES.html.sh (Support for systems lacking POSIX:2001):
69078         Add unistd.
69079         * modules/c-stack (Depends-on): Add unistd.
69080         * modules/getlogin_r: Likewise.
69081         * modules/glob: Likewise.
69082         * modules/pagealign_alloc: Likewise.
69083         * modules/unistd (Files): Remove lib/unistd_.h.
69084         (EXTRA_DIST): Remove.
69085         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
69086         need unistd_.h.
69087         (MOSTLYCLEANFILES): Remove unistd.h-t.
69088
69089 2006-03-03  Simon Josefsson  <jas@extundo.com>
69090
69091         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
69092
69093 2006-03-03  Simon Josefsson  <jas@extundo.com>
69094
69095         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
69096         libidn and bison.
69097
69098 2006-03-03  Simon Josefsson  <jas@extundo.com>
69099
69100         * build-aux/maint.mk: Add indent target.
69101
69102 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
69103
69104         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
69105         our replacement poll.h in any case, to avoid a differing
69106         declaration from a system header.  Seen on AIX.
69107
69108 2006-03-01  Simon Josefsson  <jas@extundo.com>
69109
69110         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
69111         <kasal@ucw.cz>.
69112
69113 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69114
69115         * modules/gettime (Depends-on): Add extensions module.
69116         * modules/nanosleep (Depends-on): Likewise.
69117         * modules/settime (Depends-on): Likewise.
69118
69119 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69120
69121         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
69122         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
69123         pedantically.
69124         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
69125         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
69126
69127         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
69128         not "==".  Reported by Ralf Wildenhues.
69129
69130 2006-03-01  Karl Berry  <karl@gnu.org>
69131
69132         * doc/Copyright/request-*: new files, synced from gnuorg.
69133
69134 2006-03-01  Karl Berry  <karl@gnu.org>
69135
69136         * config/srclist.txt (Copyright/*): new entries.
69137
69138 2006-02-28  Simon Josefsson  <jas@extundo.com>
69139
69140         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
69141
69142 2006-02-27  Simon Josefsson  <jas@extundo.com>
69143
69144         * lib/base64.h: Indent #define's.  From Jim Meyering
69145         <jim@meyering.net>.
69146
69147 2006-02-27  Jim Meyering  <jim@meyering.net>
69148
69149         Revert the change of 2006-02-24, so these files can continue
69150         to be sync'd from gettext.
69151         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
69152         of `config.h'.
69153
69154 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
69155
69156         * modules/intprops: New file.
69157         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
69158         Add intprops.
69159         * modules/getloadavg (Files): Remove lib/intprops.h.
69160         (Depends-on): Add intprops.
69161         * modules/human: Likewise.
69162         * modules/inttostr: Likewise.
69163         * modules/openat: Likewise.
69164         * modules/sig2str: Likewise.
69165         * modules/userspec: Likewise.
69166         * modules/utimecmp: Likewise.
69167         * modules/xnanosleep: Likewise.
69168         * modules/xstrtol: Likewise.
69169
69170 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
69171
69172         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
69173         * modules/lock-tests (TESTS): Use $(EXEEXT).
69174         * modules/tls-tests: Likewise.
69175         * modules/argp-tests: Likewise.
69176         (check_PROGRAMS): New var, replacing...
69177         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
69178
69179 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69180
69181         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
69182         `config.h'.
69183
69184 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
69185
69186         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
69187
69188 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69189
69190         Sync from coreutils.
69191         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
69192         gl_CHDIR_SAFER.
69193
69194 2006-02-22  Jim Meyering  <jim@meyering.net>
69195
69196         Sync from coreutils.
69197         * m4/chdir-safer.m4: New file.
69198
69199 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
69200
69201         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
69202         AT_FDCWD exceeds INT_MAX.
69203         * lib/openat.h (AT_FDCWD): Likewise.
69204
69205 2006-02-17  Eric Blake  <address@hidden>
69206
69207         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
69208
69209 2006-02-16  Simon Josefsson  <jas@extundo.com>
69210
69211         * modules/getaddrinfo (Depends-on): Add sys_socket.
69212
69213 2006-02-15  Simon Josefsson  <jas@extundo.com>
69214
69215         * build-aux/maint.mk: Add dsyntax-check rule.
69216
69217 2006-02-15  Eric Blake  <ebb9@byu.net>
69218
69219         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
69220         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
69221         'present but cannot compile' warnings on cygwin.
69222         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
69223         use ws2tcpip.h if sys/socket.h works.
69224         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
69225         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
69226
69227 2006-02-14  Simon Josefsson  <jas@extundo.com>
69228
69229         * modules/maintainer-makefile (Files): Rename.
69230
69231         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
69232         and (the local) Makefile.cfg to maint-cfg.mk.
69233
69234         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
69235         to the latter.
69236
69237         * modules/maintainer-makefile: New module.
69238
69239         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
69240         severaly stripped to make it possible to build it up from scratch
69241         with reliable tests.
69242
69243         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
69244         fixes to permit overriding the default actions when configure and
69245         makefile are not available.
69246
69247 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
69248
69249         Sync from coreutils.
69250         * modules/lstat (Depends-on): Don't depend on xalloc.
69251         (License): Change from GPL to LGPL, since this is now simply a
69252         replacement for a libc function.
69253
69254 2006-02-14  Jim Meyering  <jim@meyering.net>
69255
69256         Sync from coreutils.
69257
69258         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
69259         failure on deficient systems, and simplify gnulib lgpl dependencies.
69260         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
69261         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
69262
69263         * lib/xalloc-die.c: Remove unused definition of N_.
69264
69265 2006-02-14  Jim Meyering  <jim@meyering.net>
69266
69267         Sync from coreutils.
69268         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
69269         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
69270         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
69271         double-quote uses of that variable, to accommodate the rare case in
69272         which getmntent is available in none of the libraries checked.  This
69273         happens at least on FreeBSD 5.0.
69274
69275 2006-02-13  Simon Josefsson  <jas@extundo.com>
69276
69277         * gnulib-tool (Usage): Fix --import, from
69278         karl@freefriends.org (Karl Berry).
69279
69280 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
69281
69282         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
69283
69284 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
69285
69286         * lib/argp-namefrob.h: Restore changes accidentally lost during the
69287         "autoupdate" on 2005-12-12.
69288
69289 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
69290
69291         * modules/closeout (Depends-on): Remove atexit.
69292
69293 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
69294
69295         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
69296         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
69297
69298 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
69299
69300         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
69301         __EXTENSIONS__ if this causes compilation to fail.  Problem
69302         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
69303         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
69304
69305 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
69306
69307         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
69308         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
69309         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
69310         All uses changed.
69311
69312 2006-01-26  Simon Josefsson  <jas@extundo.com>
69313
69314         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
69315         prototype is visible on mingw32.
69316
69317         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
69318         for mingw32.
69319
69320         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
69321         mingw32).
69322
69323 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
69324
69325         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
69326         attempt to open for write; this always fails, at least on POSIX
69327         hosts.  This reinstates the 2006-01-09 change, which was
69328         inadvertently removed.
69329
69330 2006-01-26  Bruno Haible  <bruno@clisp.org>
69331
69332         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
69333         Reported by Paul Eggert.
69334
69335 2006-01-26  Bruno Haible  <bruno@clisp.org>
69336             Paul Eggert  <eggert@cs.ucla.edu>
69337
69338         * lib/stdbool_.h (_Bool)
69339         [(! (defined __cplusplus || defined __BEOS__)
69340           && !defined __GNUC__
69341           && !(defined __HP_cc || defined __xlc__
69342                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
69343                || defined __sgi))]:
69344         #define to signed char in these cases too; this simplifies
69345         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
69346         etc., separately) and makes it more conservative.
69347
69348 2006-01-25  Simon Josefsson  <jas@extundo.com>
69349
69350         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
69351         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
69352         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
69353
69354 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
69355
69356         * lib/argp-namefrob.h: Bugfix. Remove stray #
69357
69358 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
69359
69360         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
69361         so that we test the test.
69362         Check for yet another HP-UX cc bug involving *bool |= bool.
69363
69364 2006-01-25  Karl Berry  <karl@gnu.org>
69365
69366         * config/srclist.txt (vasnprintf.c): sync lost.
69367
69368 2006-01-25  Jim Meyering  <jim@meyering.net>
69369
69370         Sync from the stable (b5) branch of coreutils:
69371
69372         * lib/fts.c (fts_children): Don't let close() clobber errno from
69373         failed fchdir().
69374
69375         * lib/fts.c (fts_stat): When following a symlink-to-directory,
69376         don't necessarily interpret stat-fails+lstat-succeeds as indicating
69377         a dangling symlink.  That can also happen at least for ELOOP.
69378         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
69379         FYI, this bug predates the inclusion of fts.c in coreutils.
69380
69381         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
69382         in their own block, so pre-c99 compilers don't object.
69383
69384         Avoid the double-free (first in fts_read, second in fts_close) that
69385         would occur when an `active' directory is made inaccessible (e.g.,
69386         via chmod a-x) during a traversal.
69387         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
69388         before returning.  Reproduce this failure by
69389         mkdir -p a/b; cd a; chmod a-x . b
69390         Reported by Stavros Passas.
69391
69392 2006-01-25  Jim Meyering  <jim@meyering.net>
69393
69394         * lib/fileblocks.c: Remove more useless parentheses.
69395         * lib/readutmp.h: Likewise.
69396
69397 2006-01-25  Bruno Haible  <bruno@clisp.org>
69398
69399         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
69400         warnings.
69401         Reported by Paul Eggert.
69402
69403 2006-01-25  Bruno Haible  <bruno@clisp.org>
69404
69405         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
69406         rid of a trap command. For Solaris sh.
69407         Reported by Mark D. Baushke <mdb@gnu.org>.
69408
69409 2006-01-24  Simon Josefsson  <jas@extundo.com>
69410
69411         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
69412         Bruno.
69413
69414 2006-01-24  Karl Berry  <karl@gnu.org>
69415
69416         * config/srclist.txt (argp-namefrob.h): sync lost.
69417
69418 2006-01-24  Jim Meyering  <jim@meyering.net>
69419
69420         * modules/openat (Files): Add lib/intprops.h.
69421         From Mark D. Baushke.
69422
69423 2006-01-24  Jim Meyering  <jim@meyering.net>
69424
69425         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
69426         Reported by Mark D. Baushke.
69427
69428 2006-01-24  Jim Meyering  <jim@meyering.net>
69429
69430         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
69431
69432 2006-01-24  Bruno Haible  <bruno@clisp.org>
69433
69434         * modules/strnlen (Maintainer): Change from glibc to all.
69435
69436 2006-01-24  Bruno Haible  <bruno@clisp.org>
69437
69438         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
69439         Patch by Paul Eggert.
69440
69441 2006-01-24  Bruno Haible  <bruno@clisp.org>
69442
69443         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
69444         already has it.
69445         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
69446         2005-11-26.
69447
69448         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
69449         'signed char' to avoid problems with the built-in _Bool type.
69450         Reported by Paul Eggert on 2005-11-26.
69451
69452 2006-01-24  Bruno Haible  <bruno@clisp.org>
69453
69454         * gnulib-tool (func_import): Avoid constructing complicated sed
69455         expressions inside backquote.
69456         Report and solution by Mark D. Baushke <mdb@gnu.org>.
69457
69458 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
69459
69460         These changes imported from libc.
69461         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
69462         test and two separate function calls.
69463         * lib/strndup.c (__strndup): Add libc_hidden_def.
69464
69465 2006-01-23  Simon Josefsson  <jas@extundo.com>
69466
69467         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
69468         Remove the test_*_SOURCES variable: automake infers it by default.
69469         * modules/tls-tests: Likewise.
69470
69471 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69472
69473         Work around porting bugs reported by Dieter in
69474         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
69475         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
69476         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
69477         Include "getopt.h" first, to check interface.
69478         (getenv): Declare only if defined HAVE_DECL_GETENV &&
69479         !HAVE_DECL_GETENV.
69480         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
69481         (__strndup): Revert to K&R-style function dfns, the glibc style.
69482         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
69483         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
69484         Include strnlen.h first, to get prototype properly.
69485         (strnlen): Renamed from __strnlen.
69486         Remove weak alias.
69487
69488 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69489
69490         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
69491
69492 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
69493
69494         * config/srclist.txt: Adjust to reflect glibc reorganization.
69495         This affects only comments.
69496
69497 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
69498
69499          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
69500          Reported by Bruce Korb <bkorb@gnu.org>.
69501
69502 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
69503
69504         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
69505         to pacify gcc -Wswitch-default.
69506
69507 2006-01-22  Bruno Haible  <bruno@clisp.org>
69508
69509         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
69510         temporary buffer for sprintf, take into account the precision also
69511         for 'd', 'i', 'u', 'o', 'x', 'X'.
69512
69513 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
69514
69515         * modules/argp-tests: New module
69516         * tests/test-argp.c: New file
69517         * tests/test-argp-2.sh: New file
69518
69519 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
69520
69521         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
69522         (__argp_base_name): Removed
69523         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
69524         typo.
69525         (__argp_base_name): Provide macro definition or extern declaration
69526         depending on the configuration
69527
69528 2006-01-20  Simon Josefsson  <jas@extundo.com>
69529
69530         * modules/inet_ntop (Depends-on): Depend on sys_socket.
69531
69532 2006-01-20  Simon Josefsson  <jas@extundo.com>
69533
69534         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
69535
69536 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
69537
69538         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
69539         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
69540         Suggested by Bruno Haible.
69541
69542 2006-01-20  Karl Berry  <karl@gnu.org>
69543
69544         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
69545         until changes propagate, I guess.
69546
69547 2006-01-19  Simon Josefsson  <jas@extundo.com>
69548
69549         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
69550
69551 2006-01-19  Simon Josefsson  <jas@extundo.com>
69552
69553         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
69554
69555 2006-01-19  Simon Josefsson  <jas@extundo.com>
69556
69557         * gnulib-tool: Set check_PROGRAMS.
69558
69559         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
69560         modules/des-tests, modules/gc-arcfour-tests,
69561         modules/gc-arctwo-tests, modules/gc-des-tests,
69562         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
69563         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
69564         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
69565         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
69566         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
69567         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
69568         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
69569         test_*_SOURCES.
69570
69571 2006-01-18  Simon Josefsson  <jas@extundo.com>
69572
69573         * modules/socklen (Depends-on): Depend on sys_socket.
69574
69575 2006-01-18  Simon Josefsson  <jas@extundo.com>
69576
69577         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
69578         modules/des-tests, modules/gc-arcfour-tests,
69579         modules/gc-arctwo-tests, modules/gc-des-tests,
69580         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
69581         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
69582         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
69583         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
69584         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
69585         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
69586         $(EXEEXT) to automake TESTS variable, for mingw32.
69587
69588 2006-01-17  Simon Josefsson  <jas@extundo.com>
69589
69590         * modules/socklen (Include): Need sys/socket.h.
69591
69592 2006-01-17  Bruno Haible  <bruno@clisp.org>
69593
69594         * modules/ssize_t (Include): Add <sys/types.h>.
69595
69596 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
69597
69598         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
69599         it's not portable and it doesn't work with cross-compiles.
69600         Problem reported by Bruno Haible.  Fix missing-$ typo in
69601         'test "gl_cv_ignore_unused_libraries" ...' that prevented
69602         -zignore from being used with Sun's C compiler.
69603
69604 2006-01-12  Simon Josefsson  <jas@extundo.com>
69605
69606         * lib/base64.c: Fix warning, reported by Bruno Haible
69607         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
69608
69609 2006-01-12  Bruno Haible  <bruno@clisp.org>
69610
69611         * modules/ldd: New file.
69612         * build-aux/ldd.sh.in: New file.
69613         * MODULES.html.sh (Support for building libraries and executables): Add
69614         ldd.
69615
69616 2006-01-12  Bruno Haible  <bruno@clisp.org>
69617
69618         * m4/ldd.m4: New file.
69619
69620 2006-01-12  Bruno Haible  <bruno@clisp.org>
69621
69622         * gnulib-tool (func_import, func_create_testdir): Don't go into an
69623         endless loop while replacing $auxdir with build-aux.
69624
69625 2006-01-11  Simon Josefsson  <jas@extundo.com>
69626
69627         * lib/stdint_.h (SIZE_MAX): Add missing (.
69628
69629 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
69630
69631         Sync from coreutils.
69632         * lib/md5.c: Fix commentary typos.
69633         (alignof, UNALIGNED_P): No need for a GCC-specific version.
69634         * lib/md5.h (__attribute__): Remove; unused.
69635         * lib/sha1.c: Fix commentary to match md5 better.
69636         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
69637         so that we don't need to worry about alignment.  All uses changed.
69638         This merges the 2005-10-28 md5 change into sha1.
69639
69640 2006-01-11  Jim Meyering  <jim@meyering.net>
69641
69642         Sync from coreutils.
69643         * lib/md5.c (OP): Fix spacing.
69644
69645 2006-01-11  Bruno Haible  <bruno@clisp.org>
69646
69647         Ensure automatic ordering between gl_LOCK and gl_ARGP.
69648         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
69649         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
69650
69651 2006-01-11  Bruno Haible  <bruno@clisp.org>
69652
69653         Ensure automatic ordering between gl_LOCK and gl_ARGP.
69654         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
69655         the "early" section as well.
69656
69657 2006-01-11  Bruno Haible  <bruno@clisp.org>
69658
69659         Avoid "ar: no archive members specified" error on MacOS X.
69660         * gnulib-tool (func_modules_add_dummy): New function.
69661         (func_import, func_create_testdir): Invoke it.
69662
69663 2006-01-11  Bruno Haible  <bruno@clisp.org>
69664
69665         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
69666         with $auxdir in AC_CONFIG_FILES statements.
69667
69668 2006-01-11  Bruno Haible  <bruno@clisp.org>
69669
69670         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69671         Initialize also noinst_HEADERS to empty.
69672
69673 2006-01-11  Bruno Haible  <bruno@clisp.org>
69674
69675         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
69676         variables.
69677         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
69678         autoreconf.
69679
69680 2006-01-11  Bruno Haible  <bruno@clisp.org>
69681
69682         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
69683         overridable by the user.
69684         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69685
69686 2006-01-10  Simon Josefsson  <jas@extundo.com>
69687
69688         * modules/sys_socket: New file.
69689
69690 2006-01-10  Simon Josefsson  <jas@extundo.com>
69691
69692         * m4/sys_socket_h.m4: New file.
69693
69694 2006-01-10  Simon Josefsson  <jas@extundo.com>
69695
69696         * lib/socket_.h: New file.
69697
69698 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69699
69700         * modules/readutmp (Maintainer): Add myself.
69701
69702 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69703
69704         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
69705         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
69706         People who are still concerned with buggy memcmp implementations
69707         can invoke gl_FUNC_MEMCMP themselves.
69708
69709 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69710
69711         * lib/regex_internal.h (BITSET_WORD_BITS):
69712         Work around a bug in 64-bit PGC (before version 6.1-2), where the
69713         preprocessor mishandles large unsigned values as if they were signed.
69714         Problem reported by Claudio Fontana in
69715         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
69716
69717 2006-01-10  Jim Meyering  <jim@meyering.net>
69718
69719         Avoid the double-free (first in fts_read, second in fts_close) that
69720         would occur when an `active' directory is made inaccessible (e.g.,
69721         via chmod a-x) during a traversal.
69722         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
69723         before returning.  Reproduce this failure by
69724         mkdir -p a/b; cd a; chmod a-x . b
69725         Reported by Stavros Passas.
69726
69727         Sync from coreutils.
69728         * lib/sha1.c: Tweak grammar in a comment.
69729
69730 2006-01-10  Jim Meyering  <jim@meyering.net>
69731
69732         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
69733         Patch by Joerg Sonnenberger.
69734
69735 2006-01-10  Bruno Haible  <bruno@clisp.org>
69736
69737         * modules/readutmp: Depend on module free.
69738         * modules/strtok_r: Depend on module restrict.
69739
69740 2006-01-10  Bruno Haible  <bruno@clisp.org>
69741
69742         * modules/gettext (configure.ac): Add an invocation of
69743         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
69744
69745 2006-01-10  Bruno Haible  <bruno@clisp.org>
69746
69747         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
69748         Reported by Werner Lemberg <wl@gnu.org>.
69749
69750 2006-01-10  Bruno Haible  <bruno@clisp.org>
69751
69752         * lib/localcharset.c: Update from GNU gettext.
69753
69754 2006-01-10  Bruno Haible  <bruno@clisp.org>
69755
69756         * lib/argp.h (__const): Remove macro. Use const instead.
69757         * lib/argp-fmtstream.h (__const): Likewise.
69758         * lib/glob_.h (__const): Remove macro.
69759         * lib/glob-libc.h: Use const instead of __const.
69760
69761 2006-01-10  Bruno Haible  <bruno@clisp.org>
69762
69763         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
69764         variable.
69765         Needed to avoid an automake error regarding the 'gettext' module.
69766
69767 2006-01-09  Simon Josefsson  <jas@extundo.com>
69768
69769         * modules/inet_ntop (Depends-on): Add restrict.
69770
69771 2006-01-09  Simon Josefsson  <jas@extundo.com>
69772
69773         * modules/gc-rijndael-tests (License): Put under LGPL.
69774
69775         * modules/gc-des-tests (License): Likewise.
69776
69777         * modules/gc-arcfour-tests (License): Likewise.
69778
69779         * modules/gc-arctwo-tests (License): Likewise.
69780
69781         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
69782
69783         * modules/gc-hmac-sha1-tests (Files): Likewise.
69784
69785         * modules/gc-hmac-md5-tests (License): Likewise.
69786
69787         * modules/gc-sha1-tests (License): Likewise.
69788
69789         * modules/gc-md5-tests (License): Likewise.
69790
69791         * modules/gc-md4-tests (License): Likewise.
69792
69793         * modules/gc-md2-tests (License): Likewise.
69794
69795         * modules/gc-tests (License): Likewise.
69796
69797         * modules/des-tests (License): Likewise.
69798
69799         * modules/md4-tests (License): Likewise.
69800
69801         * modules/md2-tests (License): Likewise.
69802
69803 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69804
69805         Sync from coreutils:
69806
69807         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
69808         * modules/lib-ignore: New file.
69809         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
69810         chdir-safer.m4, lchmod.m4.
69811         * modules/openat: Add mkdirat.c, openat-priv.h.
69812
69813 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69814
69815         Sync from coreutils.
69816         * m4/lib-ignore.m4: New file.
69817         * m4/lchmod.m4: New file.
69818
69819 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69820
69821         Sync from coreutils.
69822         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
69823         for write access: POSIX says that must fail.
69824         * lib/fts.c (diropen): Likewise.
69825         * lib/save-cwd.c (save_cwd): Likewise.
69826         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
69827         well, for minor improvements on hosts that lack O_DIRECTORY.
69828         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
69829         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
69830         Fall back on chown if open failed with EACCES.
69831
69832         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
69833         Report an error at compile-time if only a 1-second nominal clock
69834         resolution is found.
69835
69836         * lib/lchmod.h: New file.
69837         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
69838         (make_dir_parents): Use lchown rather than chown, and
69839         lchmod rather than chmod.
69840
69841         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
69842         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
69843         "proc" reported by n0dalus.
69844
69845         * lib/mountlist.c: Include <limits.h>.
69846         (dev_from_mount_options)
69847         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
69848         New function.  It no longer assumes "dev=" has the System V meaning
69849         on Linux (since it doesn't).  It also parses "dev=" more carefully.
69850         (read_file_system_list)
69851         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
69852         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
69853         dev= in that case.
69854
69855         * lib/posixtm.h (PDS_PRE_2000): New macro.
69856         * lib/posixtm.c (year): Arg is now syntax_bits rather than
69857         allow_century.  All usages changed.  Reject dates outside the range
69858         1969-1999 if PDS_PRE_2000 is used.
69859
69860 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69861
69862         Sync from coreutils.
69863         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
69864         (Time of day items): Mention the possibility of leap seconds.
69865         Problem reported by Dr. David Alan Gilbert.
69866
69867 2006-01-09  Jim Meyering  <jim@meyering.net>
69868
69869         Sync from coreutils.
69870
69871         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
69872
69873         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
69874
69875         * lib/modechange.c (mode_compile): Reject an invalid mode string
69876         that starts with an octal digit.  From Andreas Gruenbacher.
69877
69878         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
69879         and dup to open_safer and dup_safer, respectively.
69880         (openat_permissive): Fix typo in comment.
69881
69882         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
69883         "gettext.h"; either no longer needed or are guaranteed by openat.h.
69884         (_): Remove; no longer needed.
69885         (openat): Renamed from rpl_openat; no need for rpl_openat
69886         since openat.h renames openat for us.
69887         Replace most of the body with a call to openat_permissive,
69888         to avoid duplicate code.
69889         Port to (probably hypothetical) environments were mode_t is
69890         wider than int.
69891         (openat_permissive): Require mode arg, so that we can check
69892         types better.  Put it just after flags.  Change cwd failure
69893         indicator from pointer-to-bool to pointer-to-errno-value.
69894         All callers changed.
69895         Invoke openat_save_fail and/or openat_restore_fail if
69896         cwd_errno is null, so that openat can call us.
69897         (openat_permissive, fdopendir, fstatat, unlinkat):
69898         Simplify errno handling to avoid some duplicate code,
69899         as it's OK to set errno on success.
69900         * lib/openat.h: Revamp code so that function macros depend on
69901         __OPENAT_PREFIX only, not also on AT_FDCWD.
69902         (openat_ro): Remove.  Caller changed to use openat_permissive.
69903         (openat_permissive): Now a macro, if not a function.
69904         (openat_restore_fail, openat_save_fail): Now always functions,
69905         since mkdirat needs them even if __OPENAT_PREFIX is defined.
69906
69907         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
69908         and openat.c.
69909         * lib/mkdirat.c: Include openat-priv.h.
69910         Remove definitions of macros defined therein.
69911         * lib/openat.c: Likewise.
69912
69913         * lib/mkdirat.c (mkdirat): New file and function.
69914         * lib/openat.h (mkdirat): Declare.
69915
69916         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
69917
69918         * lib/openat.h (openat_permissive): Declare.
69919         (openat_ro): Define.
69920
69921         * lib/openat.c (EXPECTED_ERRNO): New macro.
69922         (openat_permissive): New function -- used in remove.c rewrite.
69923         (all functions): Set errno just before returning, only if there
69924         was an actual failure.
69925         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
69926
69927         Emulate openat-family functions using Linux's procfs, if possible.
69928         Idea and some code based on Ulrich Drepper's glibc changes.
69929
69930         * lib/openat.c: (BUILD_PROC_NAME): New macro.
69931         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
69932         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
69933         before falling back on save_cwd and restore_cwd.
69934         (fdopendir, fstatat, unlinkat): Likewise.
69935
69936         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
69937         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
69938
69939         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
69940         as second argument to va_arg.  Otherwise, some versions of gcc
69941         warn that `if this code is reached, the program will abort'.
69942
69943 2006-01-09  Jim Meyering  <jim@meyering.net>
69944
69945         Sync from coreutils.
69946         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
69947         Require openat-priv.h.
69948
69949 2006-01-09  Bruno Haible  <bruno@clisp.org>
69950
69951         * modules/strnlen (Include): Use strnlen.h.
69952
69953 2006-01-09  Bruno Haible  <bruno@clisp.org>
69954
69955         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
69956
69957 2006-01-09  Bruno Haible  <bruno@clisp.org>
69958
69959         * lib/sysexit_.h (EX_OK): New macro.
69960         Suggested by Martin Lambers <marlam@marlam.de>.
69961
69962 2006-01-09  Bruno Haible  <bruno@clisp.org>
69963
69964         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
69965         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
69966
69967 2006-01-09  Bruno Haible  <bruno@clisp.org>
69968
69969         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
69970         numbers.
69971
69972 2006-01-09  Bruno Haible  <bruno@clisp.org>
69973
69974         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
69975         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
69976         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
69977         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
69978
69979 2006-01-09  Bruno Haible  <bruno@clisp.org>
69980
69981         * build-aux/javacomp.sh.in: New file, moved from lib/.
69982         * modules/javacomp-script (Files): Update.
69983         (configure.ac): Add AC_CONFIG_FILES invocation.
69984         (EXTRA_DIST): Remove variable.
69985
69986         * build-aux/javaexec.sh.in: New file, moved from lib/.
69987         * modules/javaexec (Files): Update.
69988         (configure.ac): Add AC_CONFIG_FILES invocation.
69989         (EXTRA_DIST): Remove javaexec.sh.in.
69990
69991         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
69992         * modules/csharpcomp-script (Files): Update.
69993         (configure.ac): Add AC_CONFIG_FILES invocation.
69994         (EXTRA_DIST): Remove variable.
69995
69996         * build-aux/csharpexec.sh.in: New file, moved from lib/.
69997         * modules/csharpexec (Files): Update.
69998         (configure.ac): Add AC_CONFIG_FILES invocation.
69999         (EXTRA_DIST): Remove csharpexec.sh.in.
70000
70001 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
70002
70003         Sync from coreutils.
70004
70005         Add POSIX ACL support
70006         * lib/acl.h (copy_acl, set_acl): Add declarations.
70007         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
70008         systems other than Linux.
70009         (chmod_or_fchmod): New function: use fchmod when possible,
70010         and chmod otherwise.
70011         (file_has_acl): Add a POSIX ACL implementation, with a
70012         Linux-specific subcase.
70013         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
70014         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
70015         acls are unsupported.
70016         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
70017         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
70018         are unsupported.
70019
70020 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
70021
70022         Sync from coreutils.
70023         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
70024
70025 2006-01-07  Bruno Haible  <bruno@clisp.org>
70026
70027         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
70028         gl_EARLY.
70029
70030 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70031
70032         * lib/strftime.c (tzname): Don't declare if it is already #defined.
70033         Problem reported for Mingw by Mark Junker.
70034
70035 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
70036
70037         * README: Gnulib normally doesn't generate a tarball.
70038
70039 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
70040
70041         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
70042         long int, not int, for nanosecond counts, so that people who are
70043         used to POSIX struct timespec won't be surprised.  Reported by Jim
70044         Meyering.
70045
70046 2005-12-28  Bruno Haible  <bruno@clisp.org>
70047
70048         * build-aux/config.rpath: Update from GNU gettext.
70049
70050 2005-12-16  Jim Meyering  <jim@meyering.net>
70051
70052         * modules/fprintftime: New module.
70053         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
70054
70055 2005-12-16  Jim Meyering  <jim@meyering.net>
70056
70057         * m4/fprintftime.m4: New file.
70058
70059 2005-12-16  Jim Meyering  <jim@meyering.net>
70060
70061         * lib/fprintftime.c, lib/fprintftime.h: New files.
70062
70063 2005-12-15  Simon Josefsson  <jas@extundo.com>
70064
70065         * modules/socklen (configure.ac): Fix M4 macro name, to align with
70066         new m4/socklen.m4.
70067
70068 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
70069
70070         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
70071         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
70072
70073 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
70074
70075         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
70076         * lib/argp-help.c (fill_in_uparams): Check if the constructed
70077         struct uparams is valid. Fall back to the default values if it is
70078         not.
70079
70080 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70081
70082         * modules/argp (Files): Add argp-pin.c
70083         (Depends-on): dirname
70084         (lib_SOURCES): Add argp-pin.c
70085
70086 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70087
70088         * m4/argp.m4:  Check if program_invocation_name and
70089         program_invocation_short_name are declared and define appropriate
70090         macros if they are not.
70091
70092 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70093
70094         * lib/argp-help.c (__argp_base_name): New function
70095         (__argp_short_program_name): Rewrite using __argp_base_name
70096         * lib/argp-namefrob.h: Define program_invocation_name and
70097         program_invocation_short_name if requested
70098         (__argp_base_name): Add prototype
70099         * lib/argp-parse.c (argp_def): Use gettext wrappers
70100         (argp_default_parser): Use __argp_base_name
70101         * lib/argp-pin.c: New file. Defines program_invocation_name and
70102         program_invocation_short_name on systems that lack them.
70103
70104 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
70105
70106         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
70107         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
70108         porting problem reported by Georg Schwarz in
70109         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
70110
70111 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
70112
70113         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
70114         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
70115         porting problem reported by Georg Schwarz in
70116         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
70117
70118 2005-12-05  Bruno Haible  <bruno@clisp.org>
70119
70120         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
70121         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
70122         Reported by Mark Junker <mjscod@gmx.de>.
70123
70124 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
70125
70126         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
70127         Use implementation from Albert Chin, with some
70128         comments/corrections by Stepan Kasal and myself.
70129
70130 2005-12-02  Bruno Haible  <bruno@clisp.org>
70131
70132         * gnulib-tool (func_import): Accept GPLed build tool modules when
70133         --lgpl is given.
70134         * modules/csharpcomp-script: New file.
70135         * modules/csharpcomp: Depend on it.
70136         * modules/javacomp-script: New file.
70137         * modules/javacomp: Depend on it.
70138         Suggested by Simon Josefsson.
70139
70140 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
70141
70142         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
70143         statement, to work around an HP-UX 10.20 compiler bug reported by
70144         Peter O'Gorman.
70145
70146 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
70147
70148         * modules/savedir (Depends-on): Add openat.
70149
70150 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
70151
70152         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
70153         (uintmax_t) [defined uintmax_t]: Do not declare.
70154         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
70155         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
70156         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
70157         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
70158         sake of portability to weird hosts that C allows (though we don't
70159         know of any practical examples).
70160
70161         * lib/savedir.h (fdsavedir): New decl.
70162         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
70163         contains most of the former guts of savedir.
70164         (savedir): Use savedirstream.
70165         Include "openat.h".
70166
70167 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
70168
70169         * modules/obstack (Files): Add m4/ulonglong.m4.
70170         Problem reported by Davide Angelocola.
70171
70172 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
70173
70174         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
70175         coreutils no longer futzes with rounding modes.
70176
70177 2005-11-14  Jim Meyering  <jim@meyering.net>
70178
70179         * lib/mkstemp-safer.c: Include <config.h>, required for possible
70180         replacement of mkstemp.
70181
70182 2005-11-10  Simon Josefsson  <jas@extundo.com>
70183
70184         * lib/readline.c: Remove EOL.
70185
70186 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70187
70188         * modules/gethrxtime (Depends-on): Add gettime.
70189
70190 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70191
70192         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
70193         or gettimeofday; no longer needed.
70194
70195 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
70196
70197         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
70198         time business.
70199         (gethrxtime) [! (HAVE_NANOUPTIME
70200         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
70201         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
70202         our own approximation.
70203
70204 2005-11-08  Eric Blake  <ebb9@byu.net>
70205
70206         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
70207
70208 2005-11-08  Eric Blake  <ebb9@byu.net>
70209
70210         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
70211
70212 2005-11-04  Bruno Haible  <bruno@clisp.org>
70213
70214         * gnulib-tool: Implement --update mode.
70215
70216 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70217
70218         Fix porting problem reported by Theodoros V. Kalamatianos.
70219         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
70220         Don't assume that futimes failing means we must fail.
70221
70222 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
70223
70224         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
70225         variables to suggest the intended function of the PATH_MAX check.
70226
70227 2005-10-30  Kean Johnston  <jkj@sco.com>
70228
70229         Trivial changes to support SCO systems.
70230         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
70231         as PATH_MAX.
70232         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
70233         where __ptr is null when no I/O is pending.
70234
70235 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
70236
70237         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
70238         leave errno alone.  Problem reported by Dmitry V. Levin.
70239
70240 2005-10-28  Simon Josefsson  <jas@extundo.com>
70241
70242         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
70243         Test more.
70244
70245         * tests/test-gc-md2.c, tests/test-md2.c: New files.
70246
70247         * modules/md2, modules/md2-tests: New files.
70248
70249 2005-10-28  Simon Josefsson  <jas@extundo.com>
70250
70251         * m4/inet_ntop.m4: More tests.
70252
70253         * m4/gc-md2.m4, md2.m4: New file.
70254
70255 2005-10-28  Simon Josefsson  <jas@extundo.com>
70256
70257         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
70258         "restrict" keywords, as per POSIX.  Protect the function
70259         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
70260         Don't use K&R prototypes.  Check the sprintf return values.
70261         Re-define EAFNOSUPPORT if not present.  Indent.
70262
70263         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
70264         suggested by Bruno Haible <bruno@clisp.org>.
70265
70266         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
70267
70268         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
70269
70270         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
70271         libgcrypt).
70272
70273         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
70274
70275         * lib/md2.h, lib/md2.c: New files.
70276
70277 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
70278
70279         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
70280         errno alone.  Problem reported by Frederic Jolliton.
70281
70282 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
70283
70284         * modules/verify (License): Change from GPL to LGPL.  This is a
70285         tiny module and there are apparently near-equivalents that are
70286         under the BSD license.
70287
70288 2005-10-24  Simon Josefsson  <jas@extundo.com>
70289
70290         * modules/sha1: Relicense to LGPL.
70291
70292 2005-10-24  Simon Josefsson  <jas@extundo.com>
70293
70294         * lib/md4.h: Shrink buffer size, now that we changed the type.
70295
70296 2005-10-23  Simon Josefsson  <jas@extundo.com>
70297
70298         * gnulib-tool (func_import): Fix --tests-base.
70299
70300 2005-10-22  Simon Josefsson  <jas@extundo.com>
70301
70302         * modules/arcfour (Depends-on): Need stdint.
70303
70304 2005-10-22  Simon Josefsson  <jas@extundo.com>
70305
70306         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
70307         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
70308
70309 2005-10-22  Simon Josefsson  <jas@extundo.com>
70310
70311         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
70312         suggested by Bruno Haible <bruno@clisp.org>.
70313
70314 2005-10-22  Simon Josefsson  <jas@extundo.com>
70315
70316         * lib/crc.h: Include stddef.h, for size_t.
70317
70318 2005-10-22  Simon Josefsson  <jas@extundo.com>
70319
70320         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
70321         arcfour_context struct (simplify test vector testing in GNU
70322         Shishi).
70323
70324 2005-10-21  Simon Josefsson  <jas@extundo.com>
70325
70326         * modules/des, modules/des-tests: New files.
70327
70328         * modules/gc-des, modules/gc-des-tests: New files.
70329
70330         * tests/test-des.c, tests/test-gc-des.c: New file.
70331
70332 2005-10-21  Simon Josefsson  <jas@extundo.com>
70333
70334         * modules/arctwo, modules/arctwo-tests: New files.
70335
70336         * tests/test-arctwo.c: New file.
70337
70338         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
70339
70340         * tests/test-gc-arctwo.c: New file.
70341
70342 2005-10-21  Simon Josefsson  <jas@extundo.com>
70343
70344         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
70345         Bruno Haible <bruno@clisp.org>.
70346
70347         * m4/gc-des.m4: New file.
70348
70349 2005-10-21  Simon Josefsson  <jas@extundo.com>
70350
70351         * m4/arctwo.m4: New file.
70352
70353         * m4/gc-arctwo.m4: New file.
70354
70355 2005-10-21  Simon Josefsson  <jas@extundo.com>
70356
70357         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
70358         block.
70359
70360 2005-10-21  Simon Josefsson  <jas@extundo.com>
70361
70362         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
70363         <bruno@clisp.org>.
70364
70365         * lib/hmac-sha1.c (hmac_sha1): Likewise.
70366
70367         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
70368         Bruno Haible <bruno@clisp.org>.
70369
70370         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
70371         <bruno@clisp.org>.
70372
70373 2005-10-21  Simon Josefsson  <jas@extundo.com>
70374
70375         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
70376
70377 2005-10-21  Simon Josefsson  <jas@extundo.com>
70378
70379         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
70380
70381 2005-10-21  Simon Josefsson  <jas@extundo.com>
70382
70383         * lib/des.h, lib/des.c: New files.
70384
70385         * lib/gc-gnulib.c: Support DES.c
70386
70387 2005-10-21  Simon Josefsson  <jas@extundo.com>
70388
70389         * lib/arctwo.h, lib/arctwo.c: New files.
70390
70391         * lib/gc-gnulib.c: Support ARCTWO.
70392
70393 2005-10-21  Simon Josefsson  <jas@extundo.com>
70394
70395         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
70396         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70397
70398 2005-10-21  Simon Josefsson  <jas@extundo.com>
70399
70400         * gnulib-tool (func_import, func_create_testdir): Define automake
70401         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
70402         Makefile.am snippet),
70403         suggested by Bruno Haible <bruno@clisp.org>.
70404
70405         * modules/gc (Makefile.am): Use it.
70406
70407 2005-10-21  Bruno Haible  <bruno@clisp.org>
70408
70409         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
70410         patch.
70411
70412 2005-10-19  Simon Josefsson  <jas@extundo.com>
70413
70414         * tests/test-gc-rijndael.c: New file.
70415
70416         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
70417
70418 2005-10-19  Simon Josefsson  <jas@extundo.com>
70419
70420         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
70421         interface too.
70422
70423 2005-10-19  Simon Josefsson  <jas@extundo.com>
70424
70425         * tests/test-gc-arcfour.c: New file.
70426
70427         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
70428
70429 2005-10-19  Simon Josefsson  <jas@extundo.com>
70430
70431         * modules/gc-md4, modules/gc-md4-tests: New file.
70432
70433         * tests/test-gc-md4.c: New file.
70434
70435 2005-10-19  Simon Josefsson  <jas@extundo.com>
70436
70437         * m4/gc-md4.m4: New file.
70438
70439 2005-10-19  Simon Josefsson  <jas@extundo.com>
70440
70441         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
70442         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
70443         <kasal@ucw.cz>.
70444
70445 2005-10-19  Simon Josefsson  <jas@extundo.com>
70446
70447         * m4/gc-arcfour.m4: New file.
70448
70449         * m4/gc-rijndael.m4: New file.
70450
70451 2005-10-19  Simon Josefsson  <jas@extundo.com>
70452
70453         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
70454
70455 2005-10-19  Simon Josefsson  <jas@extundo.com>
70456
70457         * lib/gc-gnulib.c: Support ARCFOUR.
70458
70459 2005-10-19  Simon Josefsson  <jas@extundo.com>
70460
70461         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
70462         support.
70463
70464         * lib/gc.h: Add ECB enum type.
70465
70466         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
70467
70468 2005-10-18  Simon Josefsson  <jas@extundo.com>
70469
70470         * tests/test-md5.c: New file.
70471
70472         * modules/md5-tests: New file.
70473
70474 2005-10-18  Simon Josefsson  <jas@extundo.com>
70475
70476         * tests/test-md4.c: New file.
70477
70478         * modules/md4, modules/md4-tests: New files.
70479
70480 2005-10-18  Simon Josefsson  <jas@extundo.com>
70481
70482         * m4/md4.m4: New file.
70483
70484 2005-10-18  Simon Josefsson  <jas@extundo.com>
70485
70486         * lib/md4.h, lib/md4.c: New files, based on md5.?.
70487
70488 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
70489
70490         * gnulib-tool (func_create_testdir): Omit the second check whether
70491         BUILT_SOURCES in nonempty.
70492
70493 2005-10-17  Simon Josefsson  <jas@extundo.com>
70494
70495         * tests/test-rijndael.c: New file.
70496
70497 2005-10-17  Simon Josefsson  <jas@extundo.com>
70498
70499         * modules/sha1: Depend on stdint instead of md5.
70500
70501         * modules/md5: Depend on stdint, remove uint32_t.
70502
70503 2005-10-17  Simon Josefsson  <jas@extundo.com>
70504
70505         * modules/gc-sha1-tests: New file.
70506
70507         * tests/test-gc-sha1.c: New file.
70508
70509 2005-10-17  Simon Josefsson  <jas@extundo.com>
70510
70511         * m4/md5.m4: Remove call to uint32_t.m4.
70512
70513 2005-10-17  Simon Josefsson  <jas@extundo.com>
70514
70515         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
70516
70517         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
70518         md5.h.
70519
70520         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
70521
70522         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
70523
70524 2005-10-17  Simon Josefsson  <jas@extundo.com>
70525
70526         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
70527
70528 2005-10-17  Simon Josefsson  <jas@extundo.com>
70529
70530         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
70531
70532 2005-10-17  Simon Josefsson  <jas@extundo.com>
70533
70534         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
70535
70536         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
70537
70538 2005-10-17  Bruno Haible  <bruno@clisp.org>
70539
70540         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
70541         that it can also be used in a test.
70542
70543 2005-10-16  Bruno Haible  <bruno@clisp.org>
70544
70545         * gnulib-tool (func_emit_tests_Makefile_am): Also define
70546         TESTS_ENVIRONMENT, so that individual tests can augment it.
70547
70548         * gnulib-tool (func_create_testdir): Use an intermediate target for
70549         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
70550         macros, like $(ALLOCA_H), which cannot be passed through the command
70551         line.
70552
70553 2005-10-15  Simon Josefsson  <jas@extundo.com>
70554
70555         * modules/rijndael-tests: New file.
70556
70557         * modules/rijndael: New file.
70558
70559 2005-10-15  Simon Josefsson  <jas@extundo.com>
70560
70561         * m4/rijndael.m4: New file.
70562
70563 2005-10-15  Simon Josefsson  <jas@extundo.com>
70564
70565         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
70566
70567         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
70568
70569 2005-10-14  Simon Josefsson  <jas@extundo.com>
70570
70571         * tests/test-arcfour.c: New file.
70572
70573         * modules/arcfour, modules/arcfour-tests: New files.
70574
70575 2005-10-14  Simon Josefsson  <jas@extundo.com>
70576
70577         * m4/arcfour.m4: New file.
70578
70579 2005-10-14  Simon Josefsson  <jas@extundo.com>
70580
70581         * lib/arcfour.h, lib/arcfour.c: New files.
70582
70583 2005-10-14  Roland McGrath  <roland@redhat.com>
70584
70585         Import from libc.  [BZ #1331]
70586         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
70587         macro argument.
70588         Reported by Matej Vela <vela@debian.org>.
70589
70590 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70591
70592         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
70593         include <wchar.h>; no longer needed.
70594
70595 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
70596
70597         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
70598
70599 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
70600         and  Ulrich Drepper  <drepper@redhat.com>
70601
70602         Import from libc.
70603         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
70604         instead of inline stream orientation test and two separate
70605         function calls.  Pay no attention to USE_IN_LIBIO.
70606
70607 2005-10-13  Simon Josefsson  <jas@extundo.com>
70608
70609         * modules/gc-hmac-md5-tests: New file.
70610
70611         * tests/test-gc-hmac-sha1.c: New file.
70612
70613         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
70614
70615         * modules/gc-hmac-md5-tests: New file.
70616
70617         * tests/test-gc-md5.c: New file.
70618
70619         * modules/gc-md5-tests: New file.
70620
70621 2005-10-13  Simon Josefsson  <jas@extundo.com>
70622
70623         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
70624         Move memory allocation outside of loop.
70625
70626 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
70627
70628         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
70629         intermediate directory is in a read-only file system.  Problem
70630         reported by Eric Blake.
70631
70632 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
70633
70634         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
70635
70636 2005-10-12  Simon Josefsson  <jas@extundo.com>
70637
70638         * tests/test-hmac-sha1.c: New file.
70639
70640         * modules/hmac-sha1-tests: New file.
70641
70642         * modules/hmac-sha1: New file.
70643
70644 2005-10-12  Simon Josefsson  <jas@extundo.com>
70645
70646         * modules/gc-sha1: New file.
70647
70648 2005-10-12  Simon Josefsson  <jas@extundo.com>
70649
70650         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
70651
70652         * tests/test-gc-pbkdf2-sha1.c: New file.
70653
70654 2005-10-12  Simon Josefsson  <jas@extundo.com>
70655
70656         * modules/gc-md5, modules/gc-hmac-md5: New files.
70657
70658         * modules/gc (Files): Remove md5, memxor and hmac files.
70659
70660 2005-10-12  Simon Josefsson  <jas@extundo.com>
70661
70662         * m4/gc-pbkdf2-sha1.m4: New file.
70663
70664         * m4/gc-hmac-sha1.m4: New file.
70665
70666         * m4/gc-sha1: New file.
70667
70668         * m4/hmac-sha1.m4: New file.
70669
70670 2005-10-12  Simon Josefsson  <jas@extundo.com>
70671
70672         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
70673
70674         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
70675
70676 2005-10-12  Simon Josefsson  <jas@extundo.com>
70677
70678         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
70679         suggested by Bruno Haible <bruno@clisp.org>.
70680
70681 2005-10-12  Simon Josefsson  <jas@extundo.com>
70682
70683         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
70684
70685 2005-10-12  Simon Josefsson  <jas@extundo.com>
70686
70687         * lib/gc-pbkdf2-sha1.c: New file.
70688
70689         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
70690
70691 2005-10-12  Simon Josefsson  <jas@extundo.com>
70692
70693         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
70694
70695         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
70696
70697 2005-10-12  Simon Josefsson  <jas@extundo.com>
70698
70699         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
70700         GC_USE_HMAC_MD5, respectively.
70701
70702         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
70703         (gc_md5): Fix typo.
70704
70705         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
70706
70707         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
70708
70709         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
70710
70711 2005-10-12  Bruno Haible  <bruno@clisp.org>
70712
70713         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
70714         Reported by Stepan Kasal <kasal@ucw.cz>.
70715
70716 2005-10-11  Simon Josefsson  <jas@extundo.com>
70717
70718         * tests/test-crc.c: New file.
70719
70720         * modules/crc, modules/crc-tests: New files.
70721
70722 2005-10-11  Simon Josefsson  <jas@extundo.com>
70723
70724         * m4/crc.m4: New file.
70725
70726 2005-10-11  Simon Josefsson  <jas@extundo.com>
70727
70728         * lib/gc.h: Add gc_hash and gc_hash_buffer.
70729
70730         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
70731
70732         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
70733
70734 2005-10-11  Simon Josefsson  <jas@extundo.com>
70735
70736         * lib/crc.h, lib/crc.c: New files.
70737
70738         * lib/gc.h (gc_hash_buffer): Add doc.
70739
70740 2005-10-11  Bruno Haible  <bruno@clisp.org>
70741
70742         * modules/c-strcasestr: New file.
70743         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
70744
70745 2005-10-11  Bruno Haible  <bruno@clisp.org>
70746
70747         * modules/c-strcase: New file.
70748         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
70749
70750 2005-10-11  Bruno Haible  <bruno@clisp.org>
70751
70752         * lib/strcasecmp.c: Include limits.h.
70753         (strcasecmp): Avoid integer overflow on exotic platforms.
70754         * lib/strncasecmp.c: Include limits.h.
70755         (strncasecmp): Avoid integer overflow on exotic platforms.
70756         Reported by Paul Eggert.
70757
70758 2005-10-11  Bruno Haible  <bruno@clisp.org>
70759
70760         * lib/c-strcasestr.h: New file, from GNU gettext.
70761         * lib/c-strcasestr.c: New file, from GNU gettext.
70762
70763 2005-10-11  Bruno Haible  <bruno@clisp.org>
70764
70765         * lib/c-strcase.h: New file, from GNU gettext.
70766         * lib/c-strcasecmp.c: New file, from GNU gettext.
70767         * lib/c-strncasecmp.c: New file, from GNU gettext.
70768
70769 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70770
70771         * modules/mempcpy (License): GPL -> LGPL.
70772         * modules/strchrnul (License): Likewise.
70773         * modules/sysexits (License): Likewise.
70774
70775 2005-10-08  Simon Josefsson  <jas@extundo.com>
70776
70777         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
70778
70779 2005-10-07  Simon Josefsson  <jas@extundo.com>
70780
70781         * m4/memxor.m4: Remove gl_C_RESTRICT call.
70782
70783 2005-10-06  Simon Josefsson  <jas@extundo.com>
70784
70785         * tests/test-hmac-md5.c: New file.
70786
70787         * modules/hmac-md5-tests: New file.
70788
70789         * modules/hmac-md5: New file.
70790
70791 2005-10-06  Simon Josefsson  <jas@extundo.com>
70792
70793         * m4/hmac-md5.m4: New file.
70794
70795         * m4/memxor.m4: Require gl_C_RESTRICT.
70796
70797 2005-10-06  Simon Josefsson  <jas@extundo.com>
70798
70799         * lib/memxor.c (memxor): Avoid casts and warnings.
70800
70801 2005-10-06  Simon Josefsson  <jas@extundo.com>
70802
70803         * lib/hmac-md5.c: New file.
70804
70805         * lib/hmac.h: New file.
70806
70807 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70808
70809         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
70810         promotes to int, not unsigned int, to catch the AIX 5.3
70811         compiler bug.
70812
70813 2005-10-05  Simon Josefsson  <jas@extundo.com>
70814
70815         * modules/memxor: New file.
70816
70817         * modules/iconv (Files): Move config.rpath to havelib, it is used
70818         there.
70819
70820         * modules/havelib (Files): Add config.rpath.
70821
70822 2005-10-05  Simon Josefsson  <jas@extundo.com>
70823
70824         * m4/memxor.m4: New file.
70825
70826 2005-10-05  Simon Josefsson  <jas@extundo.com>
70827
70828         * lib/memxor.c (memxor): Fix compiler error.
70829
70830         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
70831         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
70832
70833         * lib/memxor.h, lib/memxor.c: New files.
70834
70835         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
70836         we assume all systems have it, suggested by Jim Meyering
70837         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
70838         any systems lack sys/socket.h; mingw32 is known to lack it, but we
70839         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
70840         same reasons.
70841
70842 2005-10-05  Simon Josefsson  <jas@extundo.com>
70843
70844         * config/srclist.txt: Add glibc bug 1423 for md5.h.
70845
70846 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
70847
70848         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
70849         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
70850         needed, since the source code now assumes these .h files.
70851
70852 2005-10-05  Derek Price  <derek@ximbiot.com>
70853
70854         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
70855
70856 2005-10-05  Bruno Haible  <bruno@clisp.org>
70857
70858         * modules/stdint (License): Change to LGPL.
70859
70860 2005-10-04  Simon Josefsson  <jas@extundo.com>
70861
70862         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
70863         D. Baushke" <mdb@gnu.org>.
70864
70865 2005-10-04  Bruno Haible  <bruno@clisp.org>
70866
70867         * lib/verify.h (verify_true): Provide alternative definition for C++.
70868
70869 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
70870
70871         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
70872         (SSIZE_MAX): New macro, if not already defined.
70873         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
70874         than 2 GiB.
70875
70876 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70877
70878         Sync from coreutils.
70879         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
70880         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
70881         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
70882         ULLONG_MAX doesn't work with 2.7.2.1.
70883
70884 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70885
70886         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
70887         From Ben Pfaff.
70888
70889         * modules/exclude (Depends-on): Depend on verify.
70890         * modules/strtoimax (Depends-on): Likewise.
70891         * modules/utimecmp (Depends-on): Likewise.
70892
70893 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70894
70895         * lib/exclude.c: Include verify.h.
70896         (verify): Remove.  All callers changed to use verify.h's version.
70897         * lib/strtoimax.c: Likewise.
70898         * lib/utimecmp.c: Likewis.e
70899
70900         Sync from coreutils.
70901         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
70902         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
70903         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
70904         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
70905         bother returning ENOSYS if settimeofday or stime fails; just let
70906         them return whatever errno they want to return.
70907         * lib/utimens.c: Include unistd.h, for dup2.
70908         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
70909         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
70910
70911 2005-10-02  Jim Meyering  <jim@meyering.net>
70912
70913         Sync from coreutils.
70914         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
70915         from glibc-2.2.5 that fails for read-only files.
70916
70917 2005-10-02  Jim Meyering  <jim@meyering.net>
70918
70919         Sync from coreutils.
70920         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
70921         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
70922         `#if HAVE_CONFIG_H'.
70923         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
70924         Remove AT_FDCWD test.
70925         Do not consume the fd unless successful.
70926         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
70927         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
70928         block, so that we don't even try to compile it if settimeofday is
70929         available.  This works around a compilation failure on OSF1 V5.1,
70930         due to stime requiring a `long int*' while tv_sec is `int'.
70931
70932 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
70933
70934         Sync from coreutils.
70935         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
70936         against `yes', rather than just testing for nonempty.
70937
70938 2005-10-01  Simon Josefsson  <jas@extundo.com>
70939
70940         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
70941         and Darwin.
70942
70943         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
70944         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
70945         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
70946         freeaddrinfo and gai_strerror are declared by the POSIX headers.
70947         Check if struct addrinfo is declared.
70948
70949 2005-10-01  Simon Josefsson  <jas@extundo.com>
70950
70951         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
70952         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
70953         AI_* and EAI_* definitions.  Protect function declarations.
70954
70955 2005-10-01  Jim Meyering  <jim@meyering.net>
70956
70957         Sync from coreutils.
70958
70959         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
70960         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
70961         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
70962         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
70963         in the inet and nsl libraries.  Required on Solaris 5.7.
70964
70965 2005-10-01  Jim Meyering  <jim@meyering.net>
70966
70967         Sync from coreutils.
70968         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
70969         in the inet and nsl libraries.  Required on Solaris 5.7.
70970
70971 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
70972
70973         * lib/getdelim.c (getdelim): Remove unused variables.
70974
70975 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
70976
70977         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
70978         so that the code works even with ancient cpp.  Portability problem
70979         with GCC 2.7.2.1 reported by Thomas M.Ott.
70980
70981 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
70982
70983         * modules/regex (Depends-on): Add strcase.
70984
70985         * modules/gethostname (Licence): Change from GPL to LGPL, since
70986         gethostname.c is a trivial implementation of a standard library
70987         function.
70988         * modules/poll (License): Change from GPL to LGPL, since it's
70989         derived from LGPL code.
70990
70991 2005-09-27  Jim Meyering  <jim@meyering.net>
70992
70993         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
70994         HAVE_CONFIG_H.
70995
70996         * lib/intprops.h (signed_type_or_expr__): Define.
70997         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
70998         for unsigned types.
70999
71000 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
71001
71002         * lib/verify.h (verify_expr): Remove, replacing with:
71003         (verify_true): New macro that returns true instead of void.
71004         (verify_type__): Remove.
71005         (verify): Use verify_true rather than verify_type__.
71006
71007 2005-09-26  Bruno Haible  <bruno@clisp.org>
71008
71009         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
71010         is necessary.
71011         (lib_SOURCES): Remove mbchar.c.
71012         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
71013         (Files): Add m4/mbrtowc.m4.
71014         * modules/mbiter: Likewise.
71015         * modules/mbuiter: Likewise.
71016
71017 2005-09-26  Bruno Haible  <bruno@clisp.org>
71018
71019         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
71020         compile mbchar.c if they are not both present.
71021         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
71022         * m4/mbiter.m4 (gl_MBITER): Likewise.
71023         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
71024         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
71025         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
71026
71027 2005-09-25  Jim Meyering  <jim@meyering.net>
71028
71029         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
71030         also uses socklen_t.
71031
71032 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
71033
71034         * lib/utimens.c (ENOSYS): Define if not already defined.
71035         (futimens): Support having a null PATH if the file descriptor
71036         is nonnegative.
71037
71038         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
71039         Remove.
71040         (__attribute): Define to empty unless GCC 3.1 or later.
71041         This works around a core dump on OpenBSD 3.4, which has GCC
71042         2.95.3, which dumps core when given __attribute__(()).  It also
71043         simplifies other tests, since we really don't want to bother with
71044         worrying about which ancient version of GCC supported what.
71045         Original problem reported by Yoann Vandoorselaere, with part of
71046         the fix suggested by Derek Price.
71047
71048 2005-09-24  Jim Meyering  <jim@meyering.net>
71049
71050         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
71051         so we can once again use a positive bitfield width of 1 -- now we
71052         don't have to explain why we were using a bitfield width of 2.
71053
71054 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
71055
71056         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
71057         and similarly for the other external symbols.  Problem reported
71058         by James Gallager.
71059
71060         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
71061         bug reported by Jim Meyering.
71062
71063         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
71064         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
71065         not needed, since socklen is a prerequisite module.
71066
71067 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
71068
71069         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
71070         Problem reported by Eric Blake.
71071         (getaddrinfo): Initialize se so that it's not garbage.
71072         Redo internal storage allocation so that it doesn't make unportable
71073         assumptions about alignment.
71074         Fix a memory leak.
71075
71076         * lib/utimens.c (futimens): Use futimesat if available.
71077         Prefer it to futimes since it doesn't have the futimes bug.
71078
71079         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
71080         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
71081         Instead, declare a function that returns a pointer to an array,
71082         and use verify_type__ to declare the size of the array.
71083         Problem and germ of a solution reported by Bruno Haible.
71084         (verify_type__): Use 2, not 1, for bitfield size, to avoid
71085         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
71086
71087 2005-09-23  Jim Meyering  <jim@meyering.net>
71088
71089         Sync from coreutils.
71090         Correct build failure (socklen_t not defined) on at least
71091         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
71092         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
71093
71094 2005-09-23  Jim Meyering  <jim@meyering.net>
71095
71096         * modules/getaddrinfo (Depends-on): Add socklen.
71097
71098 2005-09-23  Bruno Haible  <bruno@clisp.org>
71099
71100         * tests/test-verify.c: New file.
71101
71102 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71103
71104         Sync from coreutils.
71105
71106         * modules/argmatch (Depends-on): Add verify.
71107         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
71108         unistd-safer.
71109         * modules/save-cwd (Depends-on): Likewise.
71110
71111         * modules/openat (Files): Add lib/openat-die.c.
71112         (Depends-on): Remove error, exitfail.
71113         Add dirname.
71114
71115         * modules/verify: New file.
71116         * MODULES.html.sh (Diagnostics <assert.h>): New section,
71117         with "verify" module.
71118
71119 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71120
71121         Sync from coreutils.
71122
71123         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
71124         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
71125         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
71126         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
71127         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
71128         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
71129         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
71130         Don't bother checking for string.h, stdlib.h, unistd.h.
71131         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
71132         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
71133         module's job.
71134         * m4/jm-macros.m4 (gl_MACROS): Likewise.
71135         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
71136
71137         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
71138         (gl_GETDATE): Use it.
71139
71140         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
71141
71142 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71143
71144         Sync from coreutils.
71145
71146         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
71147         stat-time.h.
71148         * lib/argmatch.h: Include verify.h
71149         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
71150         (ARGMATCH_ASSERT): Remove; unused.
71151         * lib/canonicalize.c: Assume STDC_HEADERS.
71152         * lib/exclude.c: Include "strcase.h".
71153         * lib/regex_internal.h [!defined _LIBC]: Likewise.
71154         * lib/getusershell.c: Include stdio--.h rather than stdio.h
71155         and stdio-safer.h.
71156         (getusershell): Call fopen, not fopen_safer.
71157         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
71158         Do not include unistd-safer.h.
71159         (save_cwd): Don't call fd_safer; no longer needed
71160         now that we include fcntl--.h.
71161
71162         * lib/getdate.y (relative_time): New type.
71163         (RELATIVE_TIME_0): New constant.
71164         (parser_control): Use relative_time instead of doing it ourselves.
71165         (%union): Add new relative_time rel member.
71166         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
71167         Now typeless.
71168         (relunit, relunit_snumber): Now of type rel.
71169         (zone, rel, relunit, get_date): Adjust to above changes.
71170
71171         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
71172         Do not include unistd-safer.h.
71173         (getloadavg): Don't call fd_safer; no longer needed
71174         now that we include fcntl--.h.
71175
71176         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
71177         (make_dir_parents): Treat ENOSYS like EEXIST.
71178
71179         Improve quality of diagnostics on restore_cwd failure.
71180         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
71181         (make_dir_parents): Last arg is now int * (for errno), not bool *.
71182         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
71183         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
71184         each time through the loop.  Do not diagnose restore_cwd failure;
71185         that is the caller's job (and perhaps the caller does not care).
71186
71187         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
71188         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
71189         If the file already exists but is not a directory, don't bother
71190         to try to make its parents.
71191         Close potential file descriptor leak if we can't chdir("/") (!).
71192         Don't always return true if chdir($PWD) fails; return true only
71193         if the requested action was done successfully (except for the
71194         chdir($PWD)).
71195         Don't log final directory unless we actually made it.
71196         Refactor to avoid duplicate code to fix up permissions.
71197         Don't attempt to fix up parent permissions if chdir($PWD) fails.
71198
71199         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
71200         to make it a bit faster and (I hope) clearer.
71201         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
71202         Fix bug in formats like %2N.
71203
71204         * lib/verify.h: New file.
71205
71206 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
71207
71208         Sync from coreutils.
71209         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
71210
71211 2005-09-22  Jim Meyering  <jim@meyering.net>
71212
71213         Sync from coreutils.
71214
71215         * m4/lstat.m4 (gl_FUNC_LSTAT):
71216         Use AC_LIBSOURCES to require lstat.c and lstat.h.
71217         Remove obsolete comment.
71218         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
71219         * m4/xstrtod.m4: Likewise.
71220
71221         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
71222
71223 2005-09-22  Jim Meyering  <jim@meyering.net>
71224
71225         Sync from coreutils.
71226
71227         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
71228
71229         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
71230         the .tm_year member, since otherwise gcc-4.0 would now warn about
71231         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
71232
71233         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
71234         order to avoid an unsuppressible warning from gcc on 64-bit systems.
71235
71236         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
71237         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
71238         when run in a time zone for which daylight savings time is in effect
71239         for the starting date.
71240
71241         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
71242         stop us from restricting permissions of just-created absolute-named
71243         directories.
71244         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
71245         to restore initial working directory.
71246         * lib/mkdir-p.c (make_dir_parents): New parameter:
71247         different_working_dir, to tell caller if/when we change the working
71248         directory and are unable to return to the initial one.
71249         * lib/mkdir-p.h (make_dir_parents): Update prototype.
71250         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
71251         `return false'.  This fixes a bug introduced on 2004-07-30.
71252
71253         * lib/openat.c (fdopendir): Be sure to close the supplied
71254         file descriptor before returning.  This makes our replacement
71255         implementation a little closer to Solaris's, where fdopendir
71256         ties the file descriptor to the returned DIR* pointer.
71257         * lib/openat.c (unlinkat): New function.
71258         * lib/openat.h (unlinkat): Add prototype.
71259         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
71260         (openat_restore_fail): Rename from openat_restore_die.
71261         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
71262
71263         Provide an alternative to exiting immediately upon save_cwd or
71264         restore_cwd failure.  Now, an application can arrange e.g.,
71265         to perform a longjump in that case.
71266         * lib/openat.c: Include dirname.h.
71267         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
71268         (rpl_openat, fdopendir, fstatat): Call openat_save_die
71269         and openat_restore_die rather than calling error directly.
71270         Don't include "error.h" or "exitfail.h"; they're no longer needed.
71271
71272         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
71273         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
71274         define.
71275
71276         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
71277         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
71278                             int utc, int nanoseconds);
71279         Background:
71280         date should not have to allocate a megabyte of virtual memory to
71281         handle a format argument like +%1048575T.  When implemented with
71282         strftime, it must allocate such a buffer, use strftime to fill it
71283         in, print it, then free it.
71284         With fprintftime, it simply prints everything and exits.
71285         With no need for memory allocation, that's one fewer way to fail.
71286         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
71287         optional field width, not before, so we accept %9:z, not %:9z.
71288         (my_strftime): Be sure to use L_('x') for literals.
71289
71290         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
71291         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
71292         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
71293         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
71294         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
71295         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
71296         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
71297         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
71298         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
71299         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
71300         * lib/xgethostname.c, lib/xreadlink.c:
71301         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
71302
71303         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
71304         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
71305         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
71306         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
71307         and don't include <sys/file.h>).
71308
71309 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
71310
71311         Sync from coreutils.
71312
71313         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
71314         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
71315         [!LDAV_DONE]: Avoid unused variable warning.
71316
71317 2005-09-21  Bruno Haible  <bruno@clisp.org>
71318
71319         * lib/unicodeio.h (unicode_to_mb): New declaration.
71320
71321 2005-09-20  Derek Price  <derek@ximbiot.com>
71322
71323         * lib/getaddrinfo.c: Don't include <netdb.h> included from
71324         getaddrinfo.h.
71325
71326 2005-09-20  Bruno Haible  <bruno@clisp.org>
71327
71328         * gnulib-tool: Remove trailing slashes from the values specified for
71329         --source-base, --m4-base, --tests-base, --aux-dir.
71330         Suggested by Simon Josefsson <jas@extundo.com>.
71331
71332 2005-09-20  Bruno Haible  <bruno@clisp.org>
71333
71334         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
71335         func_modules_to_filelist, func_import, func_create_testdir): Make all
71336         sorting results locale-independent, so that gnulib-cache.m4 doesn't
71337         change when gnulib-tool is invoked in a different locale.
71338
71339 2005-09-19  Simon Josefsson  <jas@extundo.com>
71340
71341         * m4/socklen.m4: Fix typo.
71342
71343 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71344
71345         Use a consistent style for including <config.h>.
71346         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
71347         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
71348         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
71349         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
71350         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
71351         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
71352         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
71353         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
71354         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
71355         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
71356         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
71357         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
71358         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
71359         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
71360         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
71361         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
71362         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
71363         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
71364         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
71365         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
71366         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
71367         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
71368         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
71369         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
71370         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
71371         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
71372         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
71373         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
71374         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
71375         lib/xstrtoumax.c, lib/yesno.c:
71376         Standardize inclusion of config.h.
71377         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
71378         lib/inttostr.h:  Removed inclusion of config.h from header files.
71379         * lib/inttostr.c:  Adjusted in-tree users.
71380         * lib/timespec.h: Remove superfluous warning to include config.h.
71381         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
71382         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
71383         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
71384         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
71385         config.h with HAVE_CONFIG_H.
71386
71387 2005-09-19  Jim Meyering  <jim@meyering.net>
71388
71389         * modules/pathmax (License): Change to LGPL.
71390
71391 2005-09-19  Derek Price  <derek@ximbiot.com>
71392
71393         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
71394
71395 2005-09-19  Bruno Haible  <bruno@clisp.org>
71396
71397         * gnulib-tool (import): Provide default for --tests-base.
71398
71399 2005-09-19  Bruno Haible  <bruno@clisp.org>
71400
71401         * doc/quote.texi: New file, extracted from gnulib.texi.
71402         * doc/ctime.texi: New file, extracted from gnulib.texi.
71403         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
71404         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
71405         * doc/gnulib.texi: Include them.
71406
71407 2005-09-18  Bruno Haible  <bruno@clisp.org>
71408
71409         Portability fix.
71410         * gnulib-tool (func_readlink): New function.
71411         (func_ln_if_changed): Use it.
71412
71413 2005-09-18  Bruno Haible  <bruno@clisp.org>
71414
71415         * gnulib-tool: Support --with-tests also with --import.
71416         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
71417         (func_import): Use variables $testsbase and $inctests. Emit a
71418         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
71419         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
71420         SUBDIRS += $testsdir.
71421         (func_create_testdir): Update.
71422
71423 2005-09-18  Bruno Haible  <bruno@clisp.org>
71424
71425         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
71426         instead of $dry_run.
71427         (func_cp_if_changed, func_mv_if_changed): Remove functions.
71428         (func_ln_if_changed): Don't handle dry-run here.
71429         (func_import): In dry-run mode, detect more precisely which actions
71430         would be performed, and don't use "...ing" verbs.
71431
71432 2005-09-18  Bruno Haible  <bruno@clisp.org>
71433
71434         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
71435         (func_import): Use join on two temporary files instead of three nested
71436         loops, in order to determine which files are new or old.
71437
71438 2005-09-18  Bruno Haible  <bruno@clisp.org>
71439
71440         * gnulib-tool (func_import): Comment out code that spits out the
71441         new files with --dry-run.
71442
71443 2005-09-18  Bruno Haible  <bruno@clisp.org>
71444
71445         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
71446
71447 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71448
71449         * lib/stat-time.h: New file.
71450         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
71451         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
71452         in a different way.
71453         (timespec_cmp): New function.
71454         * lib/utimecmp.c: Include stat-time.h.
71455         (SYSCALL_RESOLUTION): Depend on whether various struct stat
71456         members exist, not on the obsolescent ST_MTIM_NSEC.
71457         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
71458
71459 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71460
71461         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
71462
71463 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
71464
71465         * MODULES.html.sh (File system functions): Add stat-time.
71466         * modules/stat-time: New file.
71467         * modules/timespec (Files): Remove m4/st_mtim.m4; this
71468         is now done in a different way, by the stat-time module.
71469         * modules/utimecmp (Depends-on): Add stat-time.
71470
71471 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
71472
71473         * m4/st_mtim.m4: Remove.  Superseded by...
71474         * m4/stat-time.m4: New file.
71475         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
71476         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
71477
71478 2005-09-15  Derek Price  <derek@ximbiot.com>
71479
71480         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
71481
71482 2005-09-15  Derek Price  <derek@ximbiot.com>
71483
71484         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
71485         * lib/regex_internal.c: Ditto, using this...
71486         (__GNUC_PREREQ): ...new macro.
71487         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
71488         using...
71489         (__GNUC_PREREQ): ...this new macro.
71490
71491         * lib/strstr.h: Include string.h. Define strstr as a macro here.
71492
71493 2005-09-15  Derek Price  <derek@ximbiot.com>
71494             Paul Eggert  <eggert@cs.ucla.edu>
71495
71496         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
71497         changes, consolidating in...
71498         * lib/regex_internal.h: ...this file.
71499
71500 2005-09-13  Jim Meyering  <jim@meyering.net>
71501
71502         * lib/canon-host.c: Filter through gnu indent and reword comments
71503         slightly.
71504         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
71505
71506 2005-09-13  Derek Price  <derek@ximbiot.com>
71507
71508         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
71509         failure.
71510         Reported by Jim Meyering  <jim@meyering.net>.
71511
71512 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
71513
71514         * lib/base64.c: Typo.
71515         (base64_encode): Put b64str in initialized data section.
71516
71517 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
71518
71519         Merge glibc and coreutils changes into gnulib, plus a few
71520         extra fixes.
71521         * lib/md5.c: Use #error rather than a string.
71522         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
71523         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
71524         (__attribute__): Define to empty for non recent-GCC.
71525         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
71526         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
71527         Renamed from their non-__ counterparts, with new macros replacing
71528         them if not _LIBC.  Add __THROW attribute.
71529         (rol): Remove.
71530         (struct md5_ctx): Align buffer if using GCC.
71531         * lib/sha1.h (struct sha1_ctx): Likewise.
71532         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
71533         The old name was backwards.
71534         (NOTSWAP): Remove; not used.
71535         (rol): New macro, moved here from md5.h.
71536         (sha1_process_block): Remove a FIXME that doesn't make sense.
71537
71538 2005-09-12  Derek Price  <derek@ximbiot.com>
71539
71540         Return usable errors from canon-host.
71541         * lib/canon-host.h: New file.
71542         * lib/canon-host.c (canon_host): Wrap...
71543         (canon_host_r): ...this new function, which now relies exclusively on
71544         getaddrinfo.
71545         (ch_strerror): New function.
71546         (last_cherror): New global.
71547         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
71548         interface.
71549         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
71550         void *.
71551         (freeaddrinfo): Free ai->ai_canonname when set.
71552
71553 2005-09-12  Derek Price  <derek@ximbiot.com>
71554
71555         Make canon-host require getaddrinfo.
71556         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
71557         AC_LIBSOURCE canon-host.h.  Call...
71558         (gl_PREREQ_CANON_HOST): ...this new function, which requires
71559         gl_GETADDRINFO.
71560         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
71561
71562 2005-09-12  Derek Price  <derek@ximbiot.com>
71563
71564         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
71565         LGPL.
71566         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
71567
71568 2005-09-12  Derek Price  <derek@ximbiot.com>
71569
71570         * lib/gai_strerror.c: Include config.h when available.  Include
71571         getaddrinfo.h before other headers to test interface.
71572         Reported by Larry Jones <lawrence.jones@ugs.com>.
71573
71574 2005-09-12  Derek Price  <derek@ximbiot.com>
71575             Paul Eggert  <eggert@cs.ucla.edu>
71576
71577         * modules/glob (Files): Add glob-libc.h.
71578
71579 2005-09-12  Derek Price  <derek@ximbiot.com>
71580             Paul Eggert  <eggert@cs.ucla.edu>
71581
71582         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
71583         glob_.h, glob-libc.h.
71584         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
71585
71586 2005-09-12  Derek Price  <derek@ximbiot.com>
71587             Paul Eggert  <eggert@cs.ucla.edu>
71588
71589         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
71590         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
71591         protecting things that should be done only in gnulib contexts.
71592         * lib/glob_.h: New file, containing only the glob things needed for
71593         gnulib.
71594         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
71595         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
71596         (glob, globfree, glob_pattern_p): Now defined simply in terms of
71597         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
71598         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
71599         and to respect the namespace rules better.
71600
71601 2005-09-08  Simon Josefsson  <jas@extundo.com>
71602
71603         * modules/socklen: New file.
71604
71605 2005-09-08  Simon Josefsson  <jas@extundo.com>
71606
71607         * m4/socklen.m4: New file.
71608
71609 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71610
71611         * modules/utimens (Files): Add m4/utimbuf.m4, since
71612         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
71613         Reported by Sergey Poznyakoff.
71614
71615 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71616
71617         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
71618         definitions, since that's the preferred style in glibc.
71619         Fix a minor spacing issue, and update copyright notice to match
71620         glibc's.
71621
71622 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
71623
71624         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
71625
71626 2005-09-06  Simon Josefsson  <jas@extundo.com>
71627
71628         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
71629         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
71630
71631 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71632
71633         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
71634         warning.
71635
71636 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
71637
71638         * config/srclist.txt: Add glibc bug 1302.
71639
71640 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
71641
71642         Change bitset word type from unsigned int to unsigned long int,
71643         as this has better performance on typical 64-bit hosts.
71644         Port bitset code to hosts with unusual word sizes.
71645         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
71646         (build_collating_symbol):
71647         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
71648         argument is a bitset.  This is merely a style issue, but it makes
71649         it clearer that an entire array is expected.
71650         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
71651         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
71652         Port to the case where bitset_word is not the same as unsigned int.
71653         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
71654         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
71655         Likewise.
71656         * lib/regexec.c (check_dst_limits_calc_pos_1,
71657         check_subexp_matching_top):
71658         (build_trtable, group_nodes_into_DFAstates):
71659         Likewise.
71660         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
71661         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
71662         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
71663         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
71664         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
71665         * lib/regcomp.c (optimize_subexps, lower_subexp):
71666         Work even if bitset_word has holes in its bitwise representation.
71667         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
71668         * lib/regexec.c (check_dst_limits_calc_pos_1,
71669         check_subexp_matching_top):
71670         Likewise.
71671         * lib/regex_internal.c (re_string_reconstruct):
71672         Don't assume UCHAR_MAX == 255.
71673         * lib/regex_internal.h (bitset_set_all): Likewise.
71674         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
71675         All uses changed.
71676         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
71677         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
71678         All uses changed.
71679         (BITSET_WORD_MAX): New macro.
71680         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
71681         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
71682         (bitset_empty, bitset_copy):
71683         Prefer sizeof (bitset) to multiplying it out ourselves.
71684         (bitset_not_merge): Remove; unused.
71685         (bitset_contain): Return bool, not unsigned int with one bit on.
71686         All callers changed.
71687         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
71688         alignment than re_node_set; do this by defining a new internal
71689         type struct dests_alloc and using it to allocate memory.
71690
71691 2005-09-05  Bruno Haible  <bruno@clisp.org>
71692
71693         * gnulib-tool (func_import): Fix comparison in handling of symbolic
71694         links.
71695
71696 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
71697
71698         * modules/size_max (Makefile.am): Add size_max.h
71699
71700 2005-09-04  Derek Price  <derek@ximbiot.com>
71701
71702         * gnulib-tool (func_import): Fix reversed $symbolic logic.
71703
71704 2005-09-03  Simon Josefsson  <jas@extundo.com>
71705
71706         * gnulib-tool: Fix typo.
71707
71708 2005-09-03  Simon Josefsson  <jas@extundo.com>
71709
71710         * config/srclist.txt: Add glibc bug 1293.
71711
71712 2005-09-03  Derek Price  <derek@ximbiot.com>
71713
71714         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
71715         From Larry Jones <lawrence.jones@ugs.com>.
71716
71717 2005-09-02  Simon Josefsson  <jas@extundo.com>
71718
71719         * modules/socklen: New file.
71720
71721 2005-09-02  Simon Josefsson  <jas@extundo.com>
71722
71723         * modules/havelib: New module.
71724
71725         * modules/gettext, modules/iconv, modules/lock, modules/readline:
71726         Use havelib.
71727
71728 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
71729
71730         Check for arithmetic overflow when calculating sizes, to prevent
71731         some buffer-overflow issues.  These patches are conservative, in the
71732         sense that when I couldn't determine whether an overflow was possible,
71733         I inserted a run-time check.
71734         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
71735         macros.
71736         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
71737         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
71738         (re_xnrealloc, re_x2nrealloc): New inline functions.
71739         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
71740         parse_bracket_exp):
71741         (build_equiv_class, build_charclass): Check for arithmetic overflow
71742         in size expression calculations.
71743         * lib/regex_internal.c (re_string_realloc_buffers):
71744         (build_wcs_upper_buffer, re_node_set_add_intersect):
71745         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
71746         (re_dfa_add_node, register_state): Likewise.
71747         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
71748         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
71749         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
71750         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
71751
71752 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
71753
71754         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
71755         m4/ulonglong.m4.  Problem reported by Martin Lambers.
71756
71757 2005-09-02  Bruno Haible  <bruno@clisp.org>
71758
71759         Support for lib vs. lib64 distinction on biarch platforms.
71760         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
71761         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
71762         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
71763
71764 2005-09-02  Bruno Haible  <bruno@clisp.org>
71765
71766         * gnulib-tool (import): In the other first-use case, provide defaults
71767         as well.
71768
71769 2005-09-02  Bruno Haible  <bruno@clisp.org>
71770
71771         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
71772         patches not yet found in the latest gettext release.
71773
71774 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71775
71776         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
71777         to avoid a collision with bits/local_lim.h in glibc.
71778         All uses changed.  Problem reported by Dmitry V. Levin in
71779         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
71780
71781         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
71782         bugs in int versus size_t comparisons.
71783         (re_string_context_at): Fix bug where the code assumed that
71784         Idx is signed.
71785
71786         Use bool where appropriate.
71787         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
71788         All callers changed.
71789         (calc_eclosure_iter): Likewise, for ROOT arg.
71790         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
71791         (build_charclass_op): Likewise, for NON_MATCH arg.
71792         * lib/regex_internal.c (re_string_allocate, re_string_construct):
71793         (re_string_construct_common): Likewise, for ICASE arg.
71794         * lib/regexec.c (re_search_2_stub, re_search_stub):
71795         Likewise, for RET_LEN arg.
71796         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
71797         (set_regs): Likewise, for FL_BACKTRACK arg.
71798         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
71799         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
71800         (calc_eclosure_iter, parse_bracket_exp):
71801         Use bool for internal variables that are booleans.
71802         * lib/regexec.c (re_search_internal, check_matching,
71803         proceed_next_node):
71804         (set_regs, build_sifted_states, sift_states_bkref):
71805         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
71806         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
71807         (find_collation_sequence_value):
71808         Likewise.
71809         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
71810         (re_node_set_compare):
71811         Return bool, not int. All callers changed.
71812         * lib/regexec.c (check_halt_node_context, check_dst_limits):
71813         (build_trtable, check_node_accept): Likewise.
71814         * lib/regex_internal.h: Include stdbool.h.
71815
71816         Fix bugs uncovered when converting to bool.
71817         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
71818         failure instead of charging ahead blindly.
71819         * lib/regex_internal.c (register_state): Likewise.
71820         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
71821         for freeing internal storage.
71822         (group_nodes_into_DFA_states): Use unsigned int, not int, for
71823         bitset pieces used as boolean, to avoid undefined behavior
71824         on hosts that do int overflow checking.
71825
71826 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71827
71828         * config/srclist.txt: Add glibc bugs 1285-1287.
71829
71830 2005-09-01  Jim Meyering  <jim@meyering.net>
71831
71832         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
71833         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
71834         Require gl_STAT_MACROS, too.
71835
71836 2005-09-01  Bruno Haible  <bruno@clisp.org>
71837
71838         * gnulib-tool (import): In the first-use case, provide defaults.
71839
71840 2005-09-01  Bruno Haible  <bruno@clisp.org>
71841
71842         * gnulib-tool (func_import): Remove the .tmp files.
71843
71844 2005-09-01  Bruno Haible  <bruno@clisp.org>
71845
71846         * gnulib-tool (func_import): Fix handling of symbolic links.
71847
71848 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71849
71850         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
71851         old glibc regex code mishandles strings longer than 2**31 bytes.
71852         This patch fixes this when the regex code is used in gnulib
71853         (i.e., outside glibc).
71854
71855         This patch should not affect the use of the regex code inside
71856         glibc.  No doubt this problem also needs to be handled for glibc
71857         as well, but the result will be an incompatible change to the
71858         glibc ABI, and the old ABI will have to be supported too.  That
71859         can be the the subject for another patch.
71860
71861         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
71862         governing whether the rest of this patch is active.  By default,
71863         the macro is disabled and the patch has no effect.
71864         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
71865         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
71866         (struct re_pattern_buffer, re_search, re_search_2, re_match):
71867         (re_match_2, re_set_registers): Use the new types.
71868         * lib/regex_internal.h (Idx, re_hashval_t): New types.
71869         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
71870         New macros.
71871         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
71872         (re_string_context_at, bin_tree_t, re_dfastate_t):
71873         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
71874         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
71875         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
71876         (re_string_char_size_at, re_string_wchar_at):
71877         (re_string_elem_size_at):
71878         Use the new types and macros to port to 64-bit hosts.
71879         Use unsigned types for internal values, so that the code
71880         mostly works even for arrays larger than SSIZE_MAX.
71881         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
71882         (search_duplicated_node, calc_eclosure_iter, fetch_number):
71883         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
71884         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
71885         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
71886         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
71887         (calc_inveclosure, parse_dup_op, build_range_exp):
71888         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
71889         (fetch_number, create_token_tree, mark_opt_subexp):
71890         Likewise.
71891         * lib/regex_internal.c (re_string_construct_common,
71892         create_ci_newstate):
71893         (create_cd_newstate, re_string_allocate, re_string_construct):
71894         (re_string_realloc_buffers, build_wcs_upper_buffer):
71895         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
71896         (re_string_reconstruct, re_string_peek_byte_case):
71897         (re_string_fetch_byte_case, re_string_context_at):
71898         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
71899         (re_node_set_init_copy, re_node_set_add_intersect):
71900         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71901         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71902         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
71903         (re_acquire_state, re_acquire_state_context, register_state):
71904         Likewise.
71905         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
71906         search_cur_bkref_entry):
71907         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
71908         (re_search_internal, re_search_2_stub, re_search_stub)
71909         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
71910         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
71911         (update_cur_sifted_state, check_dst_limits):
71912         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
71913         (check_subexp_limits, sift_states_bkref, merge_state_array):
71914         (check_subexp_matching_top, get_subexp, get_subexp_sub):
71915         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
71916         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
71917         (expand_bkref_cache, check_node_accept_bytes):
71918         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
71919         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
71920         (acquire_init_state_context, check_halt_node_context):
71921         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
71922         (sift_states_backward, clean_state_log_if_needed):
71923         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
71924         (find_recover_state, transit_state_sb, transit_state_mb):
71925         (transit_state_bkref, build_trtable, match_ctx_clean):
71926         Likewise.
71927         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
71928         to work around an assumption that REG_MISSING is negative.
71929
71930         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
71931         (seek_collating_symbol_entry) [defined _LIBC]:
71932         (lookup_collation_sequence_value) [defined _LIBC]:
71933         (build_range_exp, build_collating_symbol) [defined _LIBC]:
71934         Use prototypes rather than old-style function definitions.
71935         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
71936         (transit_state_sb) [0]:
71937         (find_collation_sequence_value) [defined _LIBC]: Likewise.
71938
71939         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
71940         rm_eo.
71941
71942         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
71943         (optimize_subexps, lower_subexp):
71944         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
71945         since the signed shift might overflow.  Use 1u<<31 instead.
71946         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
71947         Likewise.
71948         * lib/regexec.c (check_dst_limits_calc_pos_1,
71949         check_subexp_matching_top): Likewise.
71950
71951         * lib/regcomp.c (optimize_subexps, lower_subexp):
71952         Use CHAR_BIT rather than 8, for clarity.
71953         * lib/regexec.c (check_dst_limits_calc_pos_1):
71954         (check_subexp_matching_top): Likewise.
71955         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
71956         have to worry about portability issues when shifting it left.
71957         Remove no-longer-needed test for table_size > 0.
71958         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
71959         in a word, as the resulting behavior is undefined.
71960         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
71961         in one case, a <= should have been an <, and in another case the
71962         whole test was missing.
71963         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
71964         the standard name CHAR_BIT.
71965         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
71966         this is not true on one's complement and signed-magnitude hosts.
71967
71968         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
71969         next_last_offset.
71970         (struct re_dfa_t): Remove unused member states_alloc.
71971         * lib/regcomp.c (init_dfa): Don't initialize unused members.
71972
71973 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71974
71975         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
71976         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
71977         and large-file glibc and in 32-bit large-file Solaris.
71978
71979 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71980
71981         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
71982         lengths fit in regoff_t; this isn't true if regoff_t is the same
71983         width as size_t.
71984         * lib/regex.c (re_search_internal): 5th arg is LAST_START
71985         (= START + RANGE) instead of RANGE.  This avoids overflow
71986         problems when regoff_t is the same width as size_t.
71987         All callers changed.
71988         (re_search_2_stub): Check for overflow when adding the
71989         sizes of the two strings.
71990         (re_search_stub): Check for overflow when adding START
71991         to RANGE; if it occurs, substitute the extreme value.
71992
71993 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71994
71995         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
71996
71997 2005-08-31  Jim Meyering  <jim@meyering.net>
71998
71999         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
72000         a pointer-to-const.
72001         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
72002         (register_state): Likewise.
72003         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
72004         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
72005         (group_nodes_into_DFAstates): Likewise.
72006
72007 2005-08-31  Jim Meyering  <jim@meyering.net>
72008
72009         * check-module: Add a FIXME comment.
72010
72011 2005-08-31  Eric Blake  <ebb9@byu.net>
72012
72013         * modules/unistd-safer (Files): Add unistd--.h.
72014         * modules/stdio-safer (Files): Add stdio--.h.
72015
72016 2005-08-31  Derek Price  <derek@ximbiot.com>
72017
72018         * lib/getdelim.c (getdelim): Return EOF on EOF.
72019         Reported by Larry Jones <lawrence.jones@ugs.com>.
72020
72021 2005-08-31  Bruno Haible  <bruno@clisp.org>
72022
72023         Avoid unnecessary diffs in the generated lib/Makefile.am.
72024         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
72025         the generated files.
72026         (func_import): Don't set cmd.
72027
72028 2005-08-31  Bruno Haible  <bruno@clisp.org>
72029
72030         * lib/strstr.c: Include <stddef.h>, for NULL.
72031         * lib/strcasestr.c: Likewise.
72032         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72033
72034 2005-08-31  Bruno Haible  <bruno@clisp.org>
72035
72036         * gnulib-tool: New option --macro-prefix.
72037         (func_import): Use macro_prefix.
72038         (import): Handle option --macro-prefix.
72039
72040 2005-08-31  Bruno Haible  <bruno@clisp.org>
72041
72042         * gnulib-tool (import): Rename most ac_* variables to cached_*.
72043         Also use new variables cached_lgpl, cached_libtool.
72044
72045 2005-08-31  Bruno Haible  <bruno@clisp.org>
72046
72047         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
72048         always instantiating them.
72049
72050 2005-08-31  Bruno Haible  <bruno@clisp.org>
72051
72052         * gnulib-tool (func_import): Read the previous cached settings
72053         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
72054         earlier added by gnulib but are now dropped. Warn when a gnulib file
72055         overwrites a non-gnulib file.
72056
72057 2005-08-31  Bruno Haible  <bruno@clisp.org>
72058
72059         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
72060         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
72061         projects that don't keep autogenerated files in CVS. Put into
72062         actioncmd only the specified modules, not the transitive closure.
72063
72064 2005-08-31  Bruno Haible  <bruno@clisp.org>
72065
72066         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
72067         Create directories that shall be filled.
72068         (import): Don't look for gl_* macros in configure.ac. Recurse across
72069         all directories containing a gnulib-cache.m4 files, if meaningful.
72070
72071 2005-08-31  Bruno Haible  <bruno@clisp.org>
72072
72073         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
72074         (import): Set seen_libtool when we see gl_LIBTOOL.
72075
72076 2005-08-31  Bruno Haible  <bruno@clisp.org>
72077
72078         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
72079         declaration macro definitions from generated gnulib.m4.
72080
72081 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
72082
72083         * lib/iconvme.h: Add prototype for iconv_alloc.
72084
72085 2005-08-29  Simon Josefsson  <jas@extundo.com>
72086
72087         * lib/iconvme.c: Fix errno.
72088
72089 2005-08-29  Bruno Haible  <bruno@clisp.org>
72090
72091         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
72092         that it works when the directory contains spaces.
72093
72094 2005-08-29  Bruno Haible  <bruno@clisp.org>
72095
72096         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
72097
72098 2005-08-29  Bruno Haible  <bruno@clisp.org>
72099
72100         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
72101         Emit more advice.
72102
72103 2005-08-29  Bruno Haible  <bruno@clisp.org>
72104         and Stepan Kasal  <kasal@ucw.cz>
72105
72106         * check-module: If more parameters are given, check each of them
72107         separately; add more exceptions, as noted by Jim Meyering.
72108         (check_module): New procedure.
72109         (%exempt_header): Now contains all exceptions.
72110
72111 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
72112
72113         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
72114
72115 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
72116
72117         * lib/iconvme.c: Split iconv_string into iconv_alloc.
72118
72119 2005-08-28  Bruno Haible  <bruno@clisp.org>
72120
72121         * m4/gnulib-tool.m4: New file.
72122
72123 2005-08-27  Jim Meyering  <jim@meyering.net>
72124
72125         * modules/unistd-safer (Files): Add pipe-safer.c.
72126         * modules/fcntl-safer (Files): Add creat-safer.c.
72127
72128 2005-08-27  Jim Meyering  <jim@meyering.net>
72129
72130         * m4/stdlib-safer.m4: New file.  From coreutils.
72131         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
72132         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
72133         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
72134         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
72135         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
72136
72137 2005-08-27  Jim Meyering  <jim@meyering.net>
72138
72139         * lib/fopen-safer.c: Merge minor changes from coreutils.
72140         * lib/dup-safer.c: Likewise.
72141         * lib/fd-safer.c: Likewise.
72142
72143         Merge from coreutils.
72144         * lib/stdio--.h: New file.
72145         * lib/stdlib--.h: New file.
72146         * lib/mkstemp-safer.c: New file.
72147
72148         GNU tar needs these.
72149         * lib/pipe-safer.c: New file.
72150         * lib/creat-safer.c: New file.
72151         * lib/fcntl--.h (creat): Define to creat_safer.
72152         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
72153         * lib/unistd--.h (pipe): Define to pipe_safer.
72154         * lib/unistd-safer.h: Declare pipe_safer.
72155
72156 2005-08-26  Simon Josefsson  <jas@extundo.com>
72157
72158         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
72159         Haible <bruno@clisp.org>.
72160
72161 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
72162
72163         * lib/regex_internal.h: Remove all references to
72164         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
72165         or better.
72166         (bitset_not, bitset_merge, bitset_not_merge):
72167         (bitset_mask, re_string_allocate, re_string_construct):
72168         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
72169         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
72170         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
72171         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
72172         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72173         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72174         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
72175         (re_acquire_state_context):
72176         Remove unnecessary forward decls.
72177         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
72178         Put __attribute at function definition,
72179         now that the function decl has been removed.
72180         * lib/regex_internal.c (re_string_peek_byte_case):
72181         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
72182         Likewise.
72183
72184 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
72185
72186         * m4/regex.m4: Add AC_PREREQ(2.50).
72187         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
72188
72189 2005-08-25  Simon Josefsson  <jas@extundo.com>
72190
72191         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
72192         __fsetlocking.
72193
72194 2005-08-25  Simon Josefsson  <jas@extundo.com>
72195
72196         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
72197         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
72198         GLIBC specific code.
72199
72200 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72201
72202         Make regex safe for g++.  This fixes one real bug (an "err"
72203         that should have been "*err").  g++ problem reported by
72204         Sam Steingold.
72205         * lib/regex_internal.h (re_calloc): New macro, consistent with
72206         re_malloc etc.  All callers of calloc changed to use re_calloc.
72207         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
72208         not int.  All callers changed.
72209         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
72210         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
72211         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
72212         (find_recover_state): Change "err" to "*err"; this fixes what
72213         appears to be a real bug.
72214         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
72215         versus int.
72216
72217 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72218
72219         * modules/regex (Depends-on): Add malloc, since the code
72220         assumes that !malloc(0) means failure.
72221
72222 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72223
72224         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
72225
72226         alloca modernization/simplification for regex.
72227         * lib/regex.c: Remove portability cruft for alloca.  This no longer
72228         needs to be at the start of the file, and can be moved into
72229         regex_internal.h and simplified.
72230         * lib/regex_internal.h: Include <alloca.h>.
72231         (__libc_use_alloca) [!defined _LIBC]: New macro.
72232         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
72233         now works outside glibc.
72234
72235 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
72236
72237         * config/srclist.txt: Add glibc bugs 1241, 1245.
72238
72239 2005-08-25  Jim Meyering  <jim@meyering.net>
72240
72241         * lib/open-safer.c: Include <config.h>.
72242         Otherwise, we'd lose LARGEFILE support in any file using
72243         e.g. "fcntl--.h"
72244
72245 2005-08-25  Bruno Haible  <bruno@clisp.org>
72246
72247         * m4/minmax.m4: Require autoconf 2.52.
72248         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
72249         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
72250         alternatives of translit over the alphabet.
72251         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
72252
72253 2005-08-24  Simon Josefsson  <jas@extundo.com>
72254
72255         * tests/test-getpass.c: New file.
72256
72257 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72258
72259         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
72260         for GNU regex features.
72261
72262 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72263
72264         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
72265         * lib/regex.h (regerror): Likewise.
72266
72267         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
72268         requires this.  (The code never needed it.)
72269
72270         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
72271         All uses of recently-renamed identifiers changed to use the new,
72272         POSIX-compliant names.  The code will build and run just fine
72273         without these changes, but it's better to eat our own dog food
72274         and use the standard-conforming names.
72275
72276         * lib/regex.h: Fix a multitude of POSIX name space violations.
72277         These changes have an effect only for programs that define
72278         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
72279         do not change anything for programs compiled in the normal way.
72280         Also, there is no effect on the ABI.
72281
72282         (_REGEX_SOURCE): New macro.
72283         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
72284         defined and _GNU_SOURCE is not; this fixes a name space violation.
72285
72286         Rename the following macros to obey POSIX requirements.
72287         The old names are still visible as macros if _REGEX_SOURCE is defined.
72288         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
72289         RE_BACKSLASH_ESCAPE_IN_LISTS.
72290         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
72291         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
72292         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
72293         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
72294         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
72295         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
72296         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
72297         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
72298         (REG_INTERVALS): renamed from RE_INTERVALS.
72299         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
72300         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
72301         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
72302         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
72303         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
72304         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
72305         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
72306         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
72307         RE_UNMATCHED_RIGHT_PAREN_ORD.
72308         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
72309         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
72310         (REG_DEBUG): renamed from RE_DEBUG.
72311         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
72312         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
72313         unusual, since we can't clash with the POSIX REG_ICASE.
72314         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
72315         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
72316         (REG_NO_SUB): renamed from RE_NO_SUB.
72317         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
72318         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
72319         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
72320         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
72321         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
72322         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
72323         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
72324         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
72325         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
72326         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
72327         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
72328         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
72329         RE_SYNTAX_POSIX_MINIMAL_BASIC.
72330         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
72331         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
72332         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
72333         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
72334         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
72335         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
72336         (REG_FIXED): Renamed from REGS_FIXED.
72337         (REG_NREGS): Renamed from RE_NREGS.
72338
72339         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
72340         of other REG_* macros, since POSIX says the user is allowed to
72341         #undef these macros selectively.
72342
72343         (reg_errcode_t): Update comment stating what other tables need
72344         to be consistent.
72345
72346         Rename the following enum values to obey POSIX requirements.
72347         The old names are still visible as macros.
72348         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
72349         is not defined, since GNU is supposed to be a superset of POSIX as
72350         much as possible, and since we want reg_errcode_t to be a signed
72351         type for implementation consistency.
72352         (_REG_NOERROR): Renamed from REG_NOERROR.
72353         (_REG_NOMATCH): Renamed from REG_NOMATCH.
72354         (_REG_BADPAT): Renamed from REG_BADPAT.
72355         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
72356         (_REG_ECTYPE): Renamed from REG_ECTYPE.
72357         (_REG_EESCAPE): Renamed from REG_EESCAPE.
72358         (_REG_ESUBREG): Renamed from REG_ESUBREG.
72359         (_REG_EBRACK): Renamed from REG_EBRACK.
72360         (_REG_EPAREN): Renamed from REG_EPAREN.
72361         (_REG_EBRACE): Renamed from REG_EBRACE.
72362         (_REG_BADBR): Renamed from REG_BADBR.
72363         (_REG_ERANGE): Renamed from REG_ERANGE.
72364         (_REG_ESPACE): Renamed from REG_ESPACE.
72365         (_REG_BADRPT): Renamed from REG_BADRPT.
72366         (_REG_EEND): Renamed from REG_EEND.
72367         (_REG_ESIZE): Renamed from REG_ESIZE.
72368         (_REG_ERPAREN): Renamed from REG_ERPAREN.
72369         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
72370         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
72371         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
72372         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
72373
72374         (_REG_RE_NAME, _REG_RM_NAME): New macros.
72375         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
72376         changed.  But support the old name if the new one is not defined
72377         and if _REGEX_SOURCE.
72378
72379         Change the following member names in struct re_pattern_buffer.
72380         The old names are still supported if !_REGEX_SOURCE.
72381         The new names are always supported, regardless of _REGEX_SOURCE.
72382         (re_buffer): Renamed from buffer.
72383         (re_allocated): Renamed from allocated.
72384         (re_used): Renamed from used.
72385         (re_syntax): Renamed from syntax.
72386         (re_fastmap): Renamed from fastmap.
72387         (re_translate): Renamed from translate.
72388         (re_can_be_null): Renamed from can_be_null.
72389         (re_regs_allocated): Renamed from regs_allocated.
72390         (re_fastmap_accurate): Renamed from fastmap_accurate.
72391         (re_no_sub): Renamed from no_sub.
72392         (re_not_bol): Renamed from not_bol.
72393         (re_not_eol): Renamed from not_eol.
72394         (re_newline_anchor): Renamed from newline_anchor.
72395
72396         Change the following member names in struct re_registers.
72397         The old names are still supported if !_REGEX_SOURCE.
72398         The new names are always supported, regardless of _REGEX_SOURCE.
72399         (rm_num_regs): Renamed from num_regs.
72400         (rm_start): Renamed from start.
72401         (rm_end): Renamed from end.
72402
72403         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
72404         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
72405         Prepend __ to parameter names.
72406
72407         Undo yesterday's changes.
72408
72409 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
72410
72411         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
72412         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
72413         lib/regex.c.
72414
72415 2005-08-24  Jim Meyering  <jim@meyering.net>
72416
72417         Sync from coreutils.
72418         * m4/fcntl-safer.m4: New file.
72419
72420         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
72421         and object files for this module.
72422
72423 2005-08-24  Jim Meyering  <jim@meyering.net>
72424
72425         Sync from coreutils.
72426         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
72427
72428 2005-08-24  Jim Meyering  <jim@meyering.net>
72429
72430         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
72431         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
72432
72433 2005-08-24  Jim Meyering  <jim@meyering.net>
72434
72435         * modules/fcntl-safer: New module.
72436         * modules/fts (Depends-on): Add fcntl-safer.
72437         * MODULES.html.sh (File descriptor based Input/Output):
72438         Add fcntl-safer.
72439
72440 2005-08-24  Bruno Haible  <bruno@clisp.org>
72441
72442         Support for unit test modules.
72443         * modules/README: Mention tests modules.
72444         * modules/TEMPLATE-TESTS: New file.
72445         * gnulib-tool: New options --extract-tests-module, --with-tests and
72446         --tests-base (unused for the moment).
72447         (testsbase, inctests): New variables.
72448         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
72449         (func_verify_module): Exclude TEMPLATE-TESTS.
72450         (func_verify_nontests_module, func_verify_tests_module): New functions.
72451         (func_get_dependencies): Add implicit dependency for tests modules.
72452         (func_get_tests_module): New function.
72453         (func_modules_transitive_closure): When --with-tests was specified,
72454         include the unit tests as well, unless explicitly avoided.
72455         (func_emit_lib_Makefile_am): Ignore the tests modules here.
72456         (func_emit_tests_Makefile_am): New function.
72457         (func_create_testdir): When --with-tests was specified, emit a
72458         tests/ directory.
72459         * MODULES.html.sh (Future developments): Update.
72460
72461 2005-08-24  Bruno Haible  <bruno@clisp.org>
72462
72463         * modules/tls-tests: New file.
72464         * tests/test-tls.c: New file, from GNU gettext.
72465
72466 2005-08-24  Bruno Haible  <bruno@clisp.org>
72467
72468         * modules/lock-tests: New file.
72469         * tests/test-lock.c: New file, from GNU gettext.
72470
72471 2005-08-24  Bruno Haible  <bruno@clisp.org>
72472
72473         * lib/lock.h: Add multiple inclusion guard.
72474         * lib/tls.h: Add multiple inclusion guard.
72475
72476 2005-08-24  Bruno Haible  <bruno@clisp.org>
72477
72478         * gnulib-tool: Add support for the --aux-dir option to
72479         --create-testdir, --create-megatestdir, --test, --megatest.
72480         (func_create_testdir, func_create_megatestdir): Optionally emit a
72481         AC_CONFIG_AUX_DIR directive.
72482         (create-testdir, create-megatestdir, test, megatest): Provide a
72483         default value for $auxdir.
72484
72485 2005-08-24  Bruno Haible  <bruno@clisp.org>
72486
72487         * gnulib-tool (import): Use compound statement instead of subshell
72488         where possible.
72489
72490 2005-08-24  Bruno Haible  <bruno@clisp.org>
72491
72492         * gnulib-tool (import): Change --aux-dir default to "build-aux".
72493
72494 2005-08-24  Bruno Haible  <bruno@clisp.org>
72495
72496         * gnulib-tool (func_version): Update.
72497
72498 2005-08-24  Bruno Haible  <bruno@clisp.org>
72499
72500         * gnulib-tool (func_import, func_create_testdir,
72501         func_create_megatestdir): Quote all autoconf macro arguments.
72502
72503 2005-08-24  Bruno Haible  <bruno@clisp.org>
72504
72505         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
72506         option --force, because --force causes the aclocal.m4 of each
72507         subdirectory to be newer than the corresponding config.h.in.
72508
72509 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72510
72511         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
72512         All contents moved to gl_REGEX.
72513         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
72514         assume that it does.
72515
72516 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72517
72518         * lib/regex.h (REG_NOSYS)
72519         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
72520         Define, since POSIX requires it as of 2001.
72521         (_REG_ENOSYS)
72522         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
72523         New private symbol, used to keep the enum signed in all cases.
72524         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
72525         Youngman in
72526         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
72527
72528         * lib/regex_internal.c (re_string_skip_chars, register_state):
72529         (calc_state_hash):
72530         Remove forward decls; no longer needed now that we use prototypes.
72531         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
72532         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
72533         (clean_state_log_if_needed): Likewise.
72534
72535 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
72536
72537         * config/srclist.txt: Add glibc bugs 1231-1233.
72538
72539 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72540
72541         Fix problems reported by Sam Steingold in
72542         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
72543         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
72544         assumed that reg_errcode_t is a signed type, which is not
72545         necessarily true if _XOPEN_SOURCE is not defined.
72546         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
72547         since some compilers warn about it otherwise.
72548
72549 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72550
72551         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
72552         (init_word_char, create_initial_state, duplicate_node_closure):
72553         (fetch_token, peek_token_bracket, build_range_exp):
72554         (build_collating_symbol): Remove forward decls; no longer needed
72555         now that we use prototypes.
72556
72557         * lib/regcomp.c:
72558         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
72559         (re_compile_fastmap_iter, regcomp, regerror, regfree):
72560         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
72561         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
72562         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
72563         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
72564         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
72565         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
72566         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
72567         (build_range_exp, build_collating_symbol, parse_bracket_exp):
72568         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
72569         (build_charclass, build_charclass_op, fetch_number, create_tree):
72570         (create_token_tree, mark_opt_subexp, duplicate_tree):
72571         Use prototypes rather than old-style definitions.
72572
72573         * lib/regex_internal.c:
72574         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
72575         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
72576         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
72577         (re_string_reconstruct, re_string_peek_byte_case):
72578         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
72579         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
72580         (re_node_set_init_copy, re_node_set_add_intersect):
72581         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
72582         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
72583         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
72584         (re_acquire_state, re_acquire_state_context, register_state):
72585         (create_ci_newstate, create_cd_newstate, free_state):
72586         Likewise.
72587         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
72588         re_search_2):
72589         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
72590         (re_search_internal, prune_impossible_nodes):
72591         (acquire_init_state_context, check_matching, static):
72592         (check_halt_node_context, check_halt_state_context, proceed_next_node):
72593         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
72594         (update_regs, sift_states_backward, build_sifted_states):
72595         (clean_state_log_if_needed, merge_state_array):
72596         (update_cur_sifted_state, add_epsilon_src_nodes):
72597         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
72598         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
72599         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
72600         (find_recover_state, check_subexp_matching_top, transit_state_mb):
72601         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
72602         (check_arrival, check_arrival_add_next_nodes):
72603         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
72604         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
72605         (check_node_accept_bytes, check_node_accept, extend_buffers):
72606         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
72607         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
72608         (sift_ctx_init):
72609         Likewise.
72610
72611         * lib/regex_internal.h:
72612         (re_string_allocate, re_string_construct, re_string_reconstruct):
72613         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
72614         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
72615         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
72616         (re_string_context_at, re_string_peek_byte_case):
72617         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
72618         is defined, since we now use prototypes always.
72619
72620         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
72621         C89 or better.  All uses removed.
72622
72623 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
72624
72625         * config/srclist.txt: Add glibc bugs 1220-1227.
72626
72627 2005-08-20  Jim Meyering  <jim@meyering.net>
72628
72629         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
72630         of unused local, dfa.
72631
72632 2005-08-20  Bruno Haible  <bruno@clisp.org>
72633
72634         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
72635
72636 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72637
72638         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
72639         (re_node_set_insert_last, re_dfa_add_node):
72640         Rename local variables to avoid GCC shadowing warnings.
72641
72642 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72643
72644         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
72645         [defined lint]: Suppress bogus uninitialized-variable warnings.
72646
72647         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
72648         and let the caller return REG_ESPACE if out of space.  This
72649         removes an uninitialied-variable warning with GCC 4.0.1, and also
72650         avoids taking the address of a local variable.  All callers
72651         changed.
72652
72653 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
72654
72655         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
72656         $LIBCSRC/posix/regexec.c.
72657         Add glibc bug 1217 for regcomp.c.
72658
72659 2005-08-19  Jim Meyering  <jim@meyering.net>
72660
72661         * lib/regexec.c (proceed_next_node): Redo local variables to
72662         avoid GCC shadowing warnings.
72663
72664 2005-08-18  Bruno Haible  <bruno@clisp.org>
72665
72666         * lib/strstr.c (strstr): Fix return value in multibyte case.
72667         * lib/strcasestr.c (strcasestr): Likewise.
72668
72669 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
72670
72671         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
72672
72673 2005-08-17  Jim Meyering  <jim@meyering.net>
72674
72675         Make the %s format (seconds since the epoch) work for a negative
72676         number and when used with a zero-padded field width, e.g. %015s.
72677
72678         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
72679         label so that it precedes the code to set `digits'.  Otherwise,
72680         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
72681         print `00-22'.  Now, it prints `-0022', as it should.
72682
72683 2005-08-17  Bruno Haible  <bruno@clisp.org>
72684
72685         * modules/strstr (Files): Add m4/mbrtowc.m4.
72686         (Depends-on): Add mbuiter.
72687
72688 2005-08-17  Bruno Haible  <bruno@clisp.org>
72689
72690         * modules/strcasestr: New file.
72691         * MODULES.html.sh (String handling, based on ANSI C 89): Add
72692         strcasestr.
72693
72694 2005-08-17  Bruno Haible  <bruno@clisp.org>
72695
72696         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
72697
72698 2005-08-17  Bruno Haible  <bruno@clisp.org>
72699
72700         * modules/mbuiter: New file.
72701         * MODULES.html.sh (Extended multibyte and wide character utilities):
72702         Add mbuiter.
72703
72704 2005-08-17  Bruno Haible  <bruno@clisp.org>
72705
72706         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
72707         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
72708
72709 2005-08-17  Bruno Haible  <bruno@clisp.org>
72710
72711         * m4/strcasestr.m4: New file.
72712
72713 2005-08-17  Bruno Haible  <bruno@clisp.org>
72714
72715         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
72716         * lib/strstr.c: Completely rewritten, with multibyte locale support.
72717
72718 2005-08-17  Bruno Haible  <bruno@clisp.org>
72719
72720         * lib/strcasestr.h: New file.
72721         * lib/strcasestr.c: New file.
72722
72723 2005-08-17  Bruno Haible  <bruno@clisp.org>
72724
72725         * lib/strcasecmp.c: Use mbuiter.h.
72726
72727 2005-08-17  Bruno Haible  <bruno@clisp.org>
72728
72729         * lib/mbuiter.h: New file.
72730
72731 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
72732
72733         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
72734         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
72735         and gl_GETOPT are both invoked via different paths (as happens
72736         with GNU tar CVS because it uses both argp and getopt), the former
72737         wins.
72738
72739 2005-08-16  Bruno Haible  <bruno@clisp.org>
72740
72741         * modules/tls: New file.
72742         * MODULES.html.sh (Multithreading): Add tls.
72743
72744 2005-08-16  Bruno Haible  <bruno@clisp.org>
72745
72746         * modules/strnlen1: New file.
72747         * MODULES.html.sh (String handling): Add strnlen1.
72748
72749 2005-08-16  Bruno Haible  <bruno@clisp.org>
72750
72751         * modules/strcase (Files): Add m4/mbrtowc.m4.
72752         (Depends-on): Add strnlen1, mbchar.
72753
72754 2005-08-16  Bruno Haible  <bruno@clisp.org>
72755
72756         * modules/mbiter: New file.
72757         * MODULES.html.sh (Extended multibyte and wide character utilities):
72758         Add mbiter.
72759
72760 2005-08-16  Bruno Haible  <bruno@clisp.org>
72761
72762         * modules/mbfile: New file.
72763         * MODULES.html.sh (Extended multibyte and wide character utilities):
72764         Add mbfile.
72765
72766 2005-08-16  Bruno Haible  <bruno@clisp.org>
72767
72768         * modules/mbchar: New file.
72769         * MODULES.html.sh (Extended multibyte and wide character utilities):
72770         New section.
72771
72772 2005-08-16  Bruno Haible  <bruno@clisp.org>
72773
72774         * m4/tls.m4: New file, from GNU gettext.
72775
72776 2005-08-16  Bruno Haible  <bruno@clisp.org>
72777
72778         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
72779         always.
72780         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
72781
72782 2005-08-16  Bruno Haible  <bruno@clisp.org>
72783
72784         * m4/mbiter.m4: New file.
72785
72786 2005-08-16  Bruno Haible  <bruno@clisp.org>
72787
72788         * m4/mbfile.m4: New file.
72789
72790 2005-08-16  Bruno Haible  <bruno@clisp.org>
72791
72792         * m4/mbchar.m4: New file.
72793
72794 2005-08-16  Bruno Haible  <bruno@clisp.org>
72795
72796         * lib/tls.h: New file, from GNU gettext.
72797         * lib/tls.c: New file, from GNU gettext.
72798
72799 2005-08-16  Bruno Haible  <bruno@clisp.org>
72800
72801         * lib/strnlen1.h: New file.
72802         * lib/strnlen1.c: New file.
72803
72804 2005-08-16  Bruno Haible  <bruno@clisp.org>
72805
72806         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
72807         (mbi_init): Update.
72808         (mbi_avail, mbi_advance): Let the iteration end before the terminating
72809         NUL byte, not after it.
72810
72811 2005-08-16  Bruno Haible  <bruno@clisp.org>
72812
72813         * lib/strcase.h (strcasecmp): Add note in comments.
72814         * lib/strncasecmp.c: Use code from strcasecmp.c.
72815         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
72816         (strcasecmp): Work correctly in multibyte locales.
72817
72818 2005-08-16  Bruno Haible  <bruno@clisp.org>
72819
72820         * lib/mbiter.h: New file.
72821
72822 2005-08-16  Bruno Haible  <bruno@clisp.org>
72823
72824         * lib/mbfile.h: New file.
72825
72826 2005-08-16  Bruno Haible  <bruno@clisp.org>
72827
72828         * lib/mbchar.h: New file.
72829         * lib/mbchar.c: New file.
72830
72831 2005-08-16  Bruno Haible  <bruno@clisp.org>
72832
72833         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
72834         the valid ones. Makes the comparison operations transitive:
72835         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
72836         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
72837
72838 2005-08-15  Simon Josefsson  <jas@extundo.com>
72839
72840         * modules/ssize_t (License): Change to 'unlimited'.
72841
72842         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
72843
72844 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72845
72846         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
72847         Add comments for each pending glibc patch.
72848
72849 2005-08-15  Bruno Haible  <bruno@clisp.org>
72850
72851         * lib/regex.h (__restrict_arr): Don't define to __restrict if
72852         __cplusplus is defined.
72853
72854 2005-08-14  Jim Meyering  <jim@meyering.net>
72855
72856         Sync from coreutils.
72857
72858         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
72859         Use the hash-table-based cycle-detection code not just when
72860         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
72861         Reported by James Youngman in
72862         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
72863         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
72864         FTS_TIGHT_CYCLE_CHECK.
72865         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
72866         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
72867         once again.
72868         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
72869         * lib/fts.c (fd_safer): Remove decl.
72870         Include fcntl--.h rather than unistd-safer.h
72871         (fts_safe_changedir): Don't call fd_safer; no longer needed
72872         now that we include fcntl--.h.
72873
72874 2005-08-12  Simon Josefsson  <jas@extundo.com>
72875
72876         * modules/getndelim2: Use ssize_t module.
72877         * modules/getnline: Likewise.
72878         * modules/safe-read: Likewise.
72879         * modules/xreadlink: Likewise.
72880
72881         * modules/ssize_t: New file.
72882
72883 2005-08-12  Simon Josefsson  <jas@extundo.com>
72884
72885         * m4/readline.m4: Look for termcap, curses or ncurses if required.
72886
72887 2005-08-12  Simon Josefsson  <jas@extundo.com>
72888
72889         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72890         ssize_t.
72891
72892 2005-08-12  Simon Josefsson  <jas@extundo.com>
72893
72894         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
72895         readline, getdelim and check_version.
72896         (Support for systems lacking ISO C 99: Sizes of integer types):
72897         Add size_max.
72898
72899 2005-08-12  Bruno Haible  <bruno@clisp.org>
72900
72901         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
72902
72903 2005-08-11  Simon Josefsson  <jas@extundo.com>
72904
72905         * modules/readline: New file.
72906
72907         * modules/strnlen (Files): Add strnlen.h.
72908
72909 2005-08-11  Simon Josefsson  <jas@extundo.com>
72910
72911         * m4/readline.m4: New file.
72912
72913 2005-08-11  Simon Josefsson  <jas@extundo.com>
72914
72915         * lib/readline.h, readline.c: New file.
72916
72917 2005-08-11  Simon Josefsson  <jas@extundo.com>
72918
72919         * doc/gnulib.texi (Initial import, Finishing touches): Mention
72920         gl_AVOID.
72921
72922 2005-08-11  Bruno Haible  <bruno@clisp.org>
72923
72924         * lib/strnlen.h (strnlen): Change parameter name to match comment.
72925
72926 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
72927
72928         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
72929
72930 2005-08-10  Simon Josefsson  <jas@extundo.com>
72931
72932         * tests/test-iconvme.c: New file.
72933
72934 2005-08-10  Simon Josefsson  <jas@extundo.com>
72935
72936         * m4/strnlen.m4: New file.
72937
72938         * m4/strndup.m4: Don't check for strnlen declaration, done in
72939         strnlen.m4.
72940
72941 2005-08-10  Simon Josefsson  <jas@extundo.com>
72942
72943         * lib/strndup.c: Use strnlen.h.
72944
72945         * lib/strnlen.h: New file.
72946
72947 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72948
72949         * README: Typos.
72950
72951 2005-08-02  Simon Josefsson  <jas@extundo.com>
72952
72953         * modules/readline: New file.
72954
72955 2005-08-02  Simon Josefsson  <jas@extundo.com>
72956
72957         * modules/getdelim: New file.
72958
72959         * modules/getline: Rewrite, don't use getndelim2.
72960
72961 2005-08-02  Simon Josefsson  <jas@extundo.com>
72962
72963         * m4/getline.m4: Separate out getdelim stuff into separate module.
72964
72965         * m4/getdelim.m4: New file.
72966
72967 2005-08-02  Simon Josefsson  <jas@extundo.com>
72968
72969         * lib/getline.h, getline.c: Rewrite.
72970
72971         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
72972
72973 2005-07-31  Bruno Haible  <bruno@clisp.org>
72974
72975         * lib/lock.h (gl_lock_initializer): New macro.
72976         (gl_lock_define_initialized): Use it.
72977         (gl_rwlock_initializer): New macro.
72978         (gl_rwlock_define_initialized): Use it.
72979         (gl_recursive_lock_initializer): New macro.
72980         (gl_recursive_lock_define_initialized): Use it.
72981
72982 2005-07-30  Karl Berry  <karl@gnu.org>
72983
72984         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
72985         Report from Ben Pfaff, regarding getopt.
72986
72987 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
72988
72989         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
72990         normal way.
72991         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
72992         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
72993         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
72994         (gl_GETOPT): Use the new macros.  Most of the implementation
72995         is moved to the new macros.  This is for programs like Emacs
72996         that don't want all the functionality of gl_GETOPT.
72997
72998 2005-07-26  Bruno Haible  <bruno@clisp.org>
72999
73000         * m4/lock.m4: Update from GNU gettext.
73001
73002 2005-07-26  Bruno Haible  <bruno@clisp.org>
73003
73004         * lib/lock.h: Update from GNU gettext.
73005         * lib/lock.c: Update from GNU gettext.
73006
73007 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
73008
73009         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
73010         obsolescent AC_TRY_RUN.  Include the default includes files, for
73011         'exit'.
73012
73013 2005-07-24  Bruno Haible  <bruno@clisp.org>
73014
73015         * modules/visibility: New file.
73016         * MODULES.html.sh (Misc): Add visibility.
73017
73018 2005-07-24  Bruno Haible  <bruno@clisp.org>
73019
73020         * m4/visibility.m4: New file.
73021
73022 2005-07-24  Bruno Haible  <bruno@clisp.org>
73023
73024         * doc/visibility.texi: New file.
73025
73026 2005-07-22  Bruno Haible  <bruno@clisp.org>
73027
73028         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
73029         $(ALLOCA_H), redundant through BUILT_SOURCES.
73030         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
73031         redundant through BUILT_SOURCES.
73032         * modules/byteswap (Makefile.am): Remove explicit dependency on
73033         $(BYTESWAP_H), redundant through BUILT_SOURCES.
73034         * modules/fnmatch (Makefile.am): Remove explicit dependency on
73035         $(FNMATCH_H), redundant through BUILT_SOURCES.
73036         * modules/getopt (Makefile.am): Remove explicit dependency on
73037         $(GETOPT_H), redundant through BUILT_SOURCES.
73038         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
73039         redundant through BUILT_SOURCES.
73040         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
73041         redundant through BUILT_SOURCES.
73042         * modules/stdbool (Makefile.am): Remove explicit dependency on
73043         $(STDBOOL_H), redundant through BUILT_SOURCES.
73044         * modules/stdint (Makefile.am): Remove explicit dependency on
73045         $(STDINT_H), redundant through BUILT_SOURCES.
73046         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
73047         Remove explicit dependency on $(SYSEXITS_H).
73048         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
73049
73050 2005-07-18  Simon Josefsson  <jas@extundo.com>
73051
73052         * lib/check-version.c (check_version): Accept identical versions too.
73053
73054 2005-07-18  Bruno Haible  <bruno@clisp.org>
73055
73056         * modules/lock: New file.
73057         * MODULES.html.sh (Multithreading): New section.
73058
73059 2005-07-18  Bruno Haible  <bruno@clisp.org>
73060
73061         * m4/lock.m4: New file, from GNU gettext.
73062
73063 2005-07-18  Bruno Haible  <bruno@clisp.org>
73064
73065         * lib/lock.h: New file, from GNU gettext.
73066         * lib/lock.c: New file, from GNU gettext.
73067
73068 2005-07-18  Bruno Haible  <bruno@clisp.org>
73069
73070         * lib/lock.h (gl_once_t): New type.
73071         (gl_once_define, gl_once): New macros.
73072         * lib/lock.c (fresh_once): New variable.
73073         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
73074         functions.
73075
73076 2005-07-16  Simon Josefsson  <jas@extundo.com>
73077
73078         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
73079         workaround, suggested by Bruno.
73080
73081 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
73082
73083         * modules/xalloc (Depends-on): Add xalloc-die.
73084         * modules/xvasprintf (Depends-on): Add xalloc-die.
73085
73086 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
73087
73088         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
73089         with a minor change.
73090
73091 2005-07-15  Bruno Haible  <bruno@clisp.org>
73092
73093         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
73094         When using lib/poll.c, define poll as rpl_poll.
73095
73096 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
73097
73098         * modules/argp (Depends-on): Remove unlocked-io.
73099
73100 2005-07-14  Derek Price  <derek@ximbiot.com>
73101
73102         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
73103         for glob symlink bug.
73104
73105 2005-07-14  Bruno Haible  <bruno@clisp.org>
73106
73107         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
73108         Instead, test for *_unlocked function declarations directly.
73109
73110 2005-07-11  Simon Josefsson  <jas@extundo.com>
73111
73112         * modules/size_max: New file.
73113
73114         * modules/xsize: Depend on size_max module for size_max.m4.
73115
73116 2005-07-11  Simon Josefsson  <jas@extundo.com>
73117
73118         * lib/size_max.h: New file.
73119
73120 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
73121
73122         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
73123         copyright symbol and the year.
73124         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
73125         (version_etc_va): Use parameterized copyright notice.
73126         Reword to conform to the current GNU coding standards.
73127
73128 2005-07-11  Karl Berry  <karl@gnu.org>
73129
73130         * doc/gnulib.texi (Quoting): new node.
73131         (Initial import): more info, from Patrice.
73132
73133 2005-07-11  Bruno Haible  <bruno@clisp.org>
73134
73135         * gnulib-tool (func_usage): Document option --avoid.
73136         (Command line options): Handle --avoid.
73137         (func_acceptable): New function.
73138         (func_modules_transitive_closure): Use it.
73139
73140 2005-07-11  Bruno Haible  <bruno@clisp.org>
73141
73142         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
73143         Reported by Jim Meyering.
73144
73145 2005-07-10  Bruno Haible  <bruno@clisp.org>
73146
73147         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
73148         Needed when size_t is smaller than 'unsigned int'.
73149         Reported by Paul Eggert.
73150
73151 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73152
73153         * modules/argp (Depends-on): Add unlocked-io
73154
73155 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
73156
73157         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
73158         block of defines.
73159
73160 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
73161
73162         * config/srclist.txt: Comment out regcomp.c, since we have a porting
73163         fix now.
73164
73165 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
73166         and Paul Eggert  <eggert@cs.ucla.edu>
73167
73168         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
73169         in wint_t, not wchar_t.  Remove now-unnecessary cast.
73170
73171 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73172
73173         * modules/regex (Files): Add lib/regex_internal.c,
73174         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
73175         (Depends-on): Add extensions.
73176         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
73177
73178 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73179
73180         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
73181         pathconf.
73182         * m4/same.m4 (gl_SAME): Likewise.
73183         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
73184
73185         * m4/regex.m4: Adjust to new libc regex implementation.
73186         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
73187         all the .c and .h parts of (the new) regex.
73188         Quote the m4 stuff better.
73189         Check for RE_ICASE bug of old gnulib.
73190         Check for REG_STARTEND of recent libc.
73191         Rename local variables from jm_* to gl_*.
73192         Quote operand of "test -f".
73193         Say "recent enough" version of libc, not "version 2".
73194         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
73195         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
73196         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
73197         Remove check for btowc, isascii.
73198         Require AM_LANGINFO_CODESET.
73199
73200 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73201
73202         * lib/regex.c, regex.h: Sync from libc.
73203         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
73204         * lib/regexec.c:
73205         New files, synced from libc, except that regex_internal.h
73206         currently has a small porting fix.
73207
73208 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
73209
73210         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
73211         regex_internal.c, regexec.c.
73212         Add regex_internal.h too, but as a comment, since the libc version
73213         is currently broken in gnulib mode.
73214
73215 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
73216
73217         Support programs like Emacs that use gnulib but not gettext.
73218         * MODULES.html.sh (Internationalization functions): Add gettext-h.
73219         * modules/gettext-h: New file.
73220         * modules/gettext (Files): Remove lib/gettext.h.
73221         (Depends-on): Add gettext-h.
73222         (Makefile.am): Remove lib_SOURCES.
73223         * modules/argmatch, modules/c-stack, modules/closeout:
73224         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
73225         * modules/execute, modules/file-type, modules/getaddrinfo:
73226         * modules/getopt, modules/human, modules/javacomp:
73227         * modules/javaexec, modules/mkdir-p, modules/obstack:
73228         * modules/openat, modules/pagealign_alloc, modules/pipe:
73229         * modules/quotearg, modules/regex, modules/rpmatch:
73230         * modules/unicodeio, modules/userspec, modules/version-etc:
73231         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
73232         * modules/xsetenv:
73233         Depend on gettext-h, not gettext.
73234
73235 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
73236
73237         * gnulib-tool (func_import): Add support for 'public domain' license.
73238         * modules/alloca, modules/atexit, modules/memmove:
73239         Now public domain, not GPL.
73240         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
73241         * modules/realloc, modules/strerror, modules/strtod:
73242         Now LGPL, not GPL.
73243
73244 2005-07-05  Bruno Haible  <bruno@clisp.org>
73245
73246         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
73247         autoconf CVS. Needed for mingw.
73248
73249 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73250
73251         Remove the dependency of the strftime module on the tzset module.
73252         * modules/strftime (Depends-on): Remove dependency on tzset.
73253
73254 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73255
73256         Remove the dependency of the strftime module on the tzset module.
73257         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
73258         gl_FUNC_TZSET_CLOBBER.
73259
73260 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73261
73262         Remove the dependency of the strftime module on the tzset module.
73263         * lib/strftime.c (my_strftime)
73264         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
73265         Copy the input structure, to work around some of the bug with
73266         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
73267         Solaris releases, you should also use the tzset module, but we won't
73268         require it as a dependency any more since we don't want LGPLed code
73269         to depend on GPLed code.
73270
73271 2005-07-02  Jim Meyering  <jim@meyering.net>
73272
73273         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
73274         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
73275         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
73276         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
73277
73278 2005-07-02  Jim Meyering  <jim@meyering.net>
73279
73280         * lib/backupfile.c (backup_args): Change a `0' to NULL.
73281
73282 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73283
73284         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
73285         declares only 'struct timespec;' (!).
73286
73287 2005-07-01  Jim Meyering  <jim@meyering.net>
73288
73289         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
73290         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
73291         * lib/save-cwd.c, tempname.c:
73292         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
73293         and don't include <sys/file.h>).
73294
73295 2005-06-29  Jim Meyering  <jim@meyering.net>
73296
73297         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
73298         type name.  Use the variable name instead.
73299         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
73300         Likewise.
73301
73302 2005-06-28  Simon Josefsson  <jas@extundo.com>
73303
73304         * modules/check-version (Files): Add check-version.m4.
73305
73306 2005-06-28  Simon Josefsson  <jas@extundo.com>
73307
73308         * m4/check-version.m4: New file, suggested by Jim Meyering
73309         <jim@meyering.net>.
73310
73311 2005-06-28  Simon Josefsson  <jas@extundo.com>
73312
73313         * lib/check-version.h, lib/check-version.c: New files.
73314
73315 2005-06-28  Simon Josefsson  <jas@extundo.com>
73316
73317         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
73318         collision with global variable.  Better indentation.  Don't
73319         increment buffer pointer beyond buffer end.  Based on comments
73320         from Paul Eggert <eggert@cs.ucla.edu>.
73321
73322         * lib/base64.h: Indent.
73323
73324 2005-06-28  Simon Josefsson  <jas@extundo.com>
73325
73326         * doc/gnulib.texi (Library version handling): New section.
73327
73328 2005-06-28  Jim Meyering  <jim@meyering.net>
73329
73330         * check-module (find_included_lib_files): Hard-code another
73331         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
73332         but modules/fts-lgpl (correctly) does not list those files.
73333
73334         * modules/canonicalize (Files): Add lib/pathmax.h.
73335
73336 2005-06-25  Simon Josefsson  <jas@extundo.com>
73337
73338         * modules/check-version: New file.
73339
73340 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
73341
73342         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
73343         initializer of struct addrinfo, as an indication that we don't
73344         care how many members the structure has.
73345
73346 2005-06-24  Derek Price  <derek@ximbiot.com>
73347         and Bruno Haible  <bruno@clisp.org>
73348
73349         Remove stat module & update lstat.
73350         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
73351         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
73352         * m4/stat.m4: Remove this file.
73353
73354 2005-06-24  Derek Price  <derek@ximbiot.com>
73355         and Bruno Haible  <bruno@clisp.org>
73356
73357         Remove stat module & update lstat.
73358         * lib/stat.c: Remove this file...
73359         (slash_aware_lstat): ...moving this content and its support...
73360         * lib/lstat.c (rpl_lstat): ...into here.
73361         * lib/lstat.h: New file.
73362
73363 2005-06-24  Derek Price  <derek@ximbiot.com>
73364         and Bruno Haible  <bruno@clisp.org>
73365
73366         Remove stat module & update lstat.
73367         * config/srclist.txt (libc sources): Remove stat.
73368
73369 2005-06-24  Derek Price  <derek@ximbiot.com>
73370         and Bruno Haible  <bruno@clisp.org>
73371
73372         Remove stat module & update lstat.
73373         * MODULES.html.sh (stat): Remove.
73374         * MODULES.html: Regenerated.
73375         * modules/lstat (Description): Correct function name.
73376         (Files): Add "lstat.h".
73377         (Depends-on): Remove stat, add xalloc, stat-macros.
73378         * modules/stat: Remove this file.
73379         (Include): Add "lstat.h", remove <sys/stat.h>.
73380
73381 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
73382
73383         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
73384         (ranged_convert): Don't save conversion in a temporary struct.
73385         This causes a warning with GCC 4.0.0, and anyway in the typical
73386         case it's not worth the extra 100 bytes or so of code.
73387         (ranged_convert, __mktime_internal): When calling a function via a
73388         pointer P, use P () rather than (*P) (), as we now assume C89 or
73389         better.
73390
73391 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73392
73393         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
73394         "who -r" failed to give output.  Problem reported by Tim Waugh.
73395
73396         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
73397         (xcalloc): Use it to avoid needless tests.
73398         Problem reported by Jim Meyering.
73399
73400 2005-06-20  Derek Price  <derek@ximbiot.com>
73401
73402         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
73403         unnecessary for Autoconfs > 2.59c.
73404
73405 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73406
73407         * lib/argp.h (__option_is_short): Check upper limit of
73408         __key. Isprint() requires its argument to have the value
73409         of an unsigned char or EOF.
73410
73411 2005-06-16  Jim Meyering  <jim@meyering.net>
73412
73413         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
73414         when either N or S is zero.
73415
73416 2005-06-16  Derek Price  <derek@ximbiot.com>
73417
73418         * m4/bison.m4: Declare YACC & YFLAGS precious.
73419
73420 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
73421
73422         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
73423         multibyte string or pattern, fall back on unibyte matching.
73424         Problem reported by James Youngman.
73425
73426 2005-06-08  Bruno Haible  <bruno@clisp.org>
73427
73428         * modules/csharpcomp: New file.
73429         * MODULES.html.sh (C#): Add csharpcomp.
73430
73431 2005-06-08  Bruno Haible  <bruno@clisp.org>
73432
73433         * m4/csharpcomp.m4: New file, from GNU gettext.
73434
73435 2005-06-08  Bruno Haible  <bruno@clisp.org>
73436
73437         * lib/csharpcomp.h: New file, from GNU gettext.
73438         * lib/csharpcomp.c: New file, from GNU gettext.
73439         * lib/csharpcomp.sh.in: New file, from GNU gettext.
73440
73441 2005-06-08  Bruno Haible  <bruno@clisp.org>
73442
73443         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
73444         warning on mingw.
73445
73446 2005-06-07  Derek Price  <derek@ximbiot.com>
73447
73448         Sync from CVS.
73449         * lib/glob_.h: Indent nested #ifdef.
73450
73451 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73452
73453         Sync from coreutils.
73454         Use "file name" when talking about file names, instead of "filename"
73455         or "path", as per the GNU coding standards.
73456         * lib/mkdir-p.c: Renamed from makepath.c.
73457         (make_dir_parents): Renamed from make_path.  All callers changed.
73458         * lib/mkdir-p.h: Likewise.  All includers changed.
73459         * lib/filenamecat.c: Renamed from path-concat.c.
73460         (file_name_concat): Renamed from path_concat.  All callers changed.
73461         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
73462         * lib/filenamecat.h: Likewise.  All includers changed.
73463         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
73464         in comments or local variable names.
73465         * lib/basename.c: Likewise.
73466         * lib/canonicalize.c, canonicalize.h: Likewise.
73467         * lib/dirname.c, dirname.h: Likewise.
73468         * lib/euidaccess.c: Likewise.
73469         * lib/exclude.c: Likewise
73470         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
73471         * lib/fsusage.c, fsuage.h: Likewise.
73472         * lib/fts.c, fts_.h: Likewise.
73473         * lib/getcwd.c: Likewise.
73474         * lib/getloadavg.c: Likewise.
73475         * lib/mkstemp.c: Likewise.
73476         * lib/mountlist.c, mountlist.h: Likewise.
73477         * lib/openat.c, openat.h: Likewise.
73478         * lib/readlink-stub.c: Likewise.
73479         * lib/readutmp.c, readutmp.h: Likewise.
73480         * lib/rename.c: Likewise.
73481         * lib/rmdir.c: Likewise.
73482         * lib/same.c: Likewise.
73483         * lib/savedir.c: Likewise.
73484         * lib/stripslash.c: Likewise.
73485         * lib/tempname.c: Likewise.
73486         * lib/xreadlink.c: Likewise.
73487         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
73488         All uses changed.
73489         * lib/exclude.h: Likewise.
73490
73491         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
73492         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73493         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
73494         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73495         * lib/pathmax.h: Include <limits.h> unconditionally, since other
73496         files have been getting away with it for years (MORE/BSD 4.3
73497         is extinct now).
73498         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
73499         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
73500
73501         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
73502         Define to 256, not 255, as per modern POSIX.
73503
73504 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73505
73506         Sync from coreutils.
73507         Use "file name" when talking about file names, instead of "filename"
73508         or "path", as per the GNU coding standards.
73509         * MODULES.html.sh: mkdir-p renamed from makepath.
73510         filenamecat renamed from path-concat.
73511         * modules/filenamecat: Renamed from modules/path-concat.
73512         (Files): filenamecat.h and filenamecat.c renamed from
73513         path-concat.h and path-concat.c.
73514         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
73515         (Include): filenamecat.h, not path-concat.h.
73516         * modules/mkdir-p: Renamed from modules/makepath.
73517         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
73518         makepath.c.
73519         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
73520         (Include): mkdir-p.h, not makepath.h.
73521
73522 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
73523
73524         Sync from coreutils.
73525         * m4/mkdir-p.m4: Renamed from makepath.m4.
73526         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
73527         Rename files from makepath.c to mkdir-p.c, and from
73528         makepath.h to mkdir-p.h.
73529         * m4/filenamecat.m4: Renamed from path-concat.m4.
73530         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
73531         Rename files from path-concat.c to filenamecat.c,
73532         and from path-concat.h to filenamecat.h.
73533         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
73534         "file name" in local variables or comments.
73535         * m4/rename.m4: Likewise.
73536
73537 2005-06-01  Bruno Haible  <bruno@clisp.org>
73538
73539         * modules/csharpexec: New file.
73540         * MODULES.html.sh (C#): New section.
73541
73542 2005-06-01  Bruno Haible  <bruno@clisp.org>
73543
73544         * m4/csharp.m4: New file, from GNU gettext.
73545         * m4/csharpexec.m4: New file, from GNU gettext.
73546
73547 2005-06-01  Bruno Haible  <bruno@clisp.org>
73548
73549         * lib/csharpexec.h: New file, from GNU gettext.
73550         * lib/csharpexec.c: New file, from GNU gettext.
73551         * lib/csharpexec.sh.in: New file, from GNU gettext.
73552
73553 2005-05-31  Derek Price  <derek@ximbiot.com>
73554             Paul Eggert  <eggert@cs.ucla.edu>
73555
73556         Sync from cvs.
73557         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
73558
73559 2005-05-31  Derek Price  <derek@ximbiot.com>
73560             Paul Eggert  <eggert@cs.ucla.edu>
73561
73562         Sync from cvs.
73563         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
73564
73565 2005-05-29  Derek Price  <derek@ximbiot.com>
73566
73567         * config/srclist.txt (glob_.h, glob.c): Add these files.
73568
73569 2005-05-29  Derek Price  <derek@ximbiot.com>
73570
73571         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
73572         * modules/glob: New file.
73573         * modules/getlogin_r: Add link to POSIX spec in description.
73574
73575 2005-05-29  Derek Price  <derek@ximbiot.com>
73576             Paul Eggert  <eggert@cs.ucla.edu>
73577
73578         * m4/glob.m4: New file.
73579
73580 2005-05-29  Derek Price  <derek@ximbiot.com>
73581             Paul Eggert  <eggert@cs.ucla.edu>
73582
73583         * lib/glob_.h, lib/glob.c: New files.
73584
73585 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73586
73587         * modules/fts (Files): Remove m4/inttypes-pri.m4.
73588         * modules/fts-lgpl (Depends-on): Remove gettext.
73589
73590 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73591
73592         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
73593         and don't require gt_INTTYPES_PRI.
73594
73595 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
73596
73597         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
73598
73599         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
73600         the configuration hassle isn't worth it.
73601         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
73602         (LONGEST_MODIFIER, PRIuMAX): Remove.
73603
73604 2005-05-27  Bruno Haible  <bruno@clisp.org>
73605
73606         * lib/getlogin_r.h: Remove second include of <stddef.h>.
73607
73608 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
73609
73610         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
73611         _POSIX_PTHREAD_SEMANTICS for Solaris.
73612
73613 2005-05-25  Derek Price  <derek@ximbiot.com>
73614
73615         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
73616
73617 2005-05-25  Derek Price  <derek@ximbiot.com>
73618             Paul Eggert  <eggert@cs.ucla.edu>
73619
73620         * modules/getlogin_r, m4/getlogin_r.m4: New files.
73621         * lib/getlogin_r.c, getlogin_r.h: New files.
73622
73623 2005-05-25  Bruno Haible  <bruno@clisp.org>
73624             Derek Price  <derek@ximbiot.com>
73625
73626         * lib/getlogin_r.h: Simplify API documentation.
73627
73628 2005-05-23  Derek Price  <derek@ximbiot.com>
73629
73630         * modules/minmax (Files): Add m4/minmax.m4.
73631         (configure.ac): Add gl_MINMAX.
73632
73633 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
73634
73635         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
73636         so that unistd-safer.h (GPL'ed code) need not be included.
73637
73638 2005-05-22  Bruno Haible  <bruno@clisp.org>
73639
73640         * m4/minmax.m4: New file.
73641         Based on a patch by Derek Price <derek@ximbiot.com>.
73642
73643 2005-05-22  Bruno Haible  <bruno@clisp.org>
73644
73645         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
73646         (INT64_MIN): Fix definition.
73647         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
73648
73649         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
73650         NEED_SIGNED_INT_TYPES.
73651
73652         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
73653         HAVE_SYSTEM_INTTYPES.
73654
73655 2005-05-22  Bruno Haible  <bruno@clisp.org>
73656
73657         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
73658         Also include <sys/param.h> if it defines MIN, MAX.
73659         Based on a patch by Derek Price <derek@ximbiot.com>.
73660
73661 2005-05-21  Jim Meyering  <jim@meyering.net>
73662
73663         * modules/fts (Files): Add m4/inttypes-pri.m4.
73664         (Depends-on): Add lstat and remove gettext.  Alphabetize.
73665
73666 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73667
73668         New fts module.
73669         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
73670         (setup_dir, free_dir): New functions.
73671         (enter_dir, leave_dir): Define trivial
73672         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
73673         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
73674         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
73675         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
73676         Move to fts-cycle.c.
73677         (fts_open): Use setup_dir.
73678         (fts_close): Use free_dir.
73679         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
73680         This adds a label and some gotos, but the alternatives were messier.
73681         Check for memory allocation failure when entering a dir.
73682         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
73683         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
73684         (FTS): New member fts_cycle, that is a union that contains the
73685         old active_dir_ht and cycle_state.  All uses changed to mention
73686         fts_cycle.ht and fts_cycle.state.
73687         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
73688         fts.c, with the following changes:
73689         (setup_dir, free_dir): New functions.
73690         (enter_dir): Now returns bool.  Return true if successful, false
73691         if memory exhausted.  All callers changed.
73692         Do not bother partly cleaning up on
73693         memory allocation failure; that is free_dir's job.
73694         However, free ad if hash_insert fails, to avoid memory leak.
73695         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
73696         fts->fts_options to see which union member to use.
73697
73698 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73699
73700         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
73701         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
73702
73703 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
73704
73705         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
73706
73707 2005-05-20  Jim Meyering  <jim@meyering.net>
73708
73709         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
73710         Now a macro, to pacify GCC.
73711
73712 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
73713
73714         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
73715         of -1.
73716
73717 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
73718
73719         * lib/chown.c (rpl_chown): Return -1 on failure.
73720
73721 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
73722
73723         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
73724         Don't check for stddef.h.
73725         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
73726         don't use its results.
73727         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
73728         since we include them unconditionally.  Don't require
73729         AM_STDBOOL_H, since stdbool is a prerequisite.
73730         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
73731         since we assume C89 or better.
73732         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
73733         as we don't use their results.
73734         Don't check for fchdir, memmove, memset, strrchr, as we use
73735         them unconditionally.
73736         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
73737         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
73738
73739 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
73740
73741         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
73742         Include <stddef.h> unconditionally, since we assume C89 now.
73743         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
73744         * lib/fts.c: Include fts_.h first, to check interface.
73745         Do not include intprops.h; no longer needed.
73746         Include cycle-check.h and hash.h, since fts_.h no longer does.
73747         Remove unnecessary casts of closedir to void.
73748         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
73749         decide whether to decrement nlinks.
73750         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
73751         (FTS): Use struct hash_table * instead of Hash_table, so that
73752         we no longer need to include hash.h here.
73753
73754 2005-05-18  Jim Meyering  <jim@meyering.net>
73755
73756         * modules/dirfd (License): Change to LGPL.  Most of the code
73757         is already in the public domain.
73758
73759 2005-05-18  Jim Meyering  <jim@meyering.net>
73760
73761         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
73762         Reported by Yoann Vandoorselaere.
73763
73764 2005-05-17  Jim Meyering  <jim@meyering.net>
73765
73766         * m4/fts.m4: New file, from coreutils.
73767
73768 2005-05-17  Jim Meyering  <jim@meyering.net>
73769
73770         * lib/fts.c, lib/fts_.h: New files, from coreutils.
73771
73772 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73773
73774         Sync from coreutils.
73775         * m4/unlinkdir.m4: New file.
73776
73777 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73778
73779         Sync from coreutils.
73780         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
73781         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
73782         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
73783         White space changes only.
73784         * lib/makepath.c (make_path): Port to hosts where leading "//" is
73785         special.
73786         * lib/yesno.c: Include getline.h, not ctype.h.
73787         (yesno): Don't remove leading white space; POSIX doesn't allow it.
73788         Use getline to remove arbitrary restriction on response length.
73789
73790 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73791
73792         * config/srclist-update: Spell out "Street" in FSF postal
73793         mail address; this is the style the FSF seems to prefer.
73794
73795         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
73796         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
73797         this updates FSF postal mail address.
73798
73799         Sync from coreutils.
73800         * modules/unlinkdir: New file.
73801         * modules/yesno (Depends-on): Add getline.
73802         * MODULES.html.sh (File system functions): Add unlinkdir.
73803
73804 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73805
73806         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
73807         lib/strsep.h:
73808         Change the initial comment to refer to GPL, not LGPL.
73809         gnulib-tool will change it to LGPL as needed.
73810
73811         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
73812         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
73813         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
73814         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
73815         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
73816         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
73817         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
73818         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
73819         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
73820         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
73821         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
73822         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
73823         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
73824         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
73825         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
73826         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
73827         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
73828         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
73829         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
73830         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
73831         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
73832         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
73833         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
73834         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
73835         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
73836         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
73837         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
73838         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
73839         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
73840         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
73841         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
73842         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
73843         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
73844         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
73845         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
73846         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
73847         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
73848         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
73849         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
73850         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
73851         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
73852         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
73853         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
73854         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
73855         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
73856         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
73857         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
73858         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
73859         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
73860         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
73861         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
73862         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
73863         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
73864         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
73865         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
73866         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
73867         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
73868         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
73869         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
73870         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
73871         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
73872         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
73873         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
73874         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
73875         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
73876         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
73877         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
73878         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
73879         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
73880         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
73881         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
73882         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
73883         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
73884         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
73885         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
73886         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
73887         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
73888         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
73889         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
73890         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
73891         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
73892         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
73893         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
73894         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
73895         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
73896         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
73897         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
73898         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
73899         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
73900         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
73901         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
73902         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
73903         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
73904         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
73905         lib/yesno.c, lib/yesno.h:
73906         Update FSF postal mail address.
73907
73908 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73909
73910         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
73911         tests/test-memmem.c, tests/test-stpncpy.c:
73912         Update FSF postal mail address.
73913
73914 2005-05-13  Bruno Haible  <bruno@clisp.org>
73915
73916         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
73917         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
73918         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
73919         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
73920         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
73921         Add support for 64-bit integers in the MSVC compiler.
73922
73923 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73924
73925         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
73926
73927 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
73928
73929         * gnulib-tool (func_import): Sort and uniquify recommended includes.
73930
73931 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
73932
73933         * doc/getdate.texi (General date syntax): Don't say that date
73934         date --iso-8601=ns generates acceptable dates; it doesn't yet.
73935         Problem reported by Nic Ferrier.
73936
73937 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73938
73939         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
73940         specified in ai_socktype. Fix invalid ai_protocol
73941         check. ai_protocol is usually set to 0 or depending on
73942         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
73943         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
73944         ai_socktype / ai_protocol in the returned addrinfo structure.
73945
73946 2005-05-10  Simon Josefsson  <jas@extundo.com>
73947
73948         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
73949         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73950
73951 2005-05-10  Karl Berry  <karl@gnu.org>
73952
73953         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
73954         (from http://www.gnu.org/licenses).
73955         * doc/COPYING.LIB: also rename to COPYING.LESSER.
73956         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
73957         fdl.texi suffices.
73958
73959 2005-05-10  Karl Berry  <karl@gnu.org>
73960
73961         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
73962         (COPYING.DOC): remove.
73963
73964         * config/srclist-update: new FSF address.
73965
73966 2005-05-10  Derek Price  <derek@ximbiot.com>
73967
73968         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
73969         possible.
73970
73971 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73972             Bruno Haible  <bruno@clisp.org>
73973
73974         * modules/inet_ntop: New file.
73975         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73976         inet_ntop.
73977
73978 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73979             Bruno Haible  <bruno@clisp.org>
73980
73981         * m4/inet_ntop.m4: New file.
73982
73983 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73984             Bruno Haible  <bruno@clisp.org>
73985
73986         * lib/inet_ntop.h: New file.
73987         * lib/inet_ntop.c: New file, from glibc with modifications.
73988
73989 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
73990
73991         * modules/time_r (License): Change to LGPL.
73992         * modules/extensions (License): Change to LGPL.  Actually,
73993         the license is more permissive than that, but currently gnulib-tool
73994         doesn't know how to handle more-permissive licenses.
73995
73996         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
73997         Problem reported by Dave Love.
73998
73999 2005-05-08  Jim Meyering  <jim@meyering.net>
74000
74001         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
74002         blank.
74003
74004 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
74005
74006         * modules/argmatch (Depends-on): Add stdbool.
74007         * modules/backupfile (Depends-on): Likewise.
74008         * modules/chdir-long (Depends-on): Likewise.
74009         * modules/closeout (Depends-on): Likewise.
74010         * modules/cycle-check (Depends-on): Likewise.
74011         * modules/dirname (Depends-on): Likewise.
74012         * modules/fnmatch (Depends-on): Likewise.
74013         * modules/fsusage (Depends-on): Likewise.
74014         * modules/fwriteerror (Depends-on): Likewise.
74015         * modules/getcwd (Depends-on): Likewise.
74016         * modules/getloadavg (Depends-on): Likewise.
74017         * modules/hard-locale (Depends-on): Likewise.
74018         * modules/makepath (Depends-on): Likewise.
74019         * modules/mountlist (Depends-on): Likewise.
74020         * modules/nanosleep (Depends-on): Likewise.
74021         * modules/posixtm (Depends-on): Likewise.
74022         * modules/quotearg (Depends-on): Likewise.
74023         * modules/readtokens (Depends-on): Likewise.
74024         * modules/readtokens0 (Depends-on): Likewise.
74025         * modules/readutmp (Depends-on): Likewise.
74026         * modules/save-cwd (Depends-on): Likewise.
74027         * modules/strftime (Depends-on): Likewise.
74028         * modules/userspec (Depends-on): Likewise.
74029         * modules/utimecmp (Depends-on): Likewise.
74030         * modules/xgetcwd (Depends-on): Likewise.
74031         * modules/xnanosleep (Depends-on): Likewise.
74032         * modules/xstrtod (Depends-on): Likewise.
74033         * modules/yesno (Depends-on): Likewise.
74034
74035 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
74036
74037         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
74038         needless checks.
74039
74040 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74041
74042         Merge from coreutils.  Among other things,
74043         add bulletproofing for cases where stdin, stdout, or stderr are closed.
74044         * lib/fd-safer.c: New file.
74045         * lib/fcntl-safer.h, open-safer.c: Remove.
74046         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
74047         * lib/dup-safer.c: Include unistd-safer.h first.
74048         Don't include errno.h.
74049         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
74050         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
74051         * lib/file-type.c: Rely on file-type.h change.
74052         * lib/getloadavg.c: Include unistd-safer.h.
74053         (getloadavg): Use safer open.
74054         * lib/getusershell.c: Include "stdio-safer.h".
74055         (getusershell): Use safer fopen.
74056         * lib/long-options.c (long_options): Use NULL rather than 0.
74057         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
74058         'free'.
74059         * lib/modechange.c: Likewise.
74060         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
74061         (MODE_DONE): New constant.
74062         (struct mode_change): Remove 'next' member.
74063         (make_node_op_equals): New function; like the old one of the
74064         same name, except it allocates an array.
74065         (mode_compile, mode_create_from_ref): Use it.
74066         (mode_compile): Allocate result as an array, not a linked list.
74067         Parse octal string ourself, so that we catch mistakes like "+0".
74068         (mode_adjust): Arg is an array, not a linked list.
74069         * lib/modechange.c: Include stat-macros.h, xalloc.h.
74070         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
74071         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
74072         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
74073         Remove.  This is now stat-macros.h's job.
74074         (talloc): Remove.  All callers replaced by xalloc, so that
74075         our invokers don't have to worry about reporting memory failures.
74076         (make_node_op_equals): Remove.
74077         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
74078         New constants.
74079         (struct mode_change): Moved here from modechange.h.
74080         (mode_append_entry): Remove.
74081         (mode_compile): Remove MASKED_OPS arg, since it encouraged
74082         apps to have incorrect behavior.  Use simpler algorithm for head
74083         and tail.  Don't futz with umask; that's now the job of mode_adjust.
74084         Detect more invalid usages rather than having somewhat-random behavior.
74085         Don't insert an "a=" action, as that leads to incorrect behavior.
74086         (mode_compile, mode_create_from_ref): Return NULL on error instead
74087         of an enum, since now there's only one way to have an error.  All
74088         callers changed.
74089         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
74090         at the correct time.  Simplify calculation of "+u" and its ilk.
74091         Don't mishandle "+X".
74092         (mode_free): Remove "register" and localize decls.
74093         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
74094         (struct mode_change): Move to modechange.c; callers don't
74095         need to see this stuff.
74096         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
74097         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
74098         (mode_change, mode_adjust): Reflect the new signatures noted above.
74099         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
74100         that might redefine system include files.
74101         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
74102         (my_usleep): Use NULL rather than (void *) 0.
74103         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
74104         Use siginterrupt to specify that system calls should be interrupted.
74105         (rpl_nanosleep): Move initialization of suspended closer to call of
74106         my_usleep.
74107         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
74108         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
74109         (desirable_utmp_entry): New function.
74110         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
74111         using x2nrealloc, to simplify logic.
74112         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
74113         size calculation.  Do not assume utmp file is a regular file.
74114         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
74115         (READ_UTMP_CHECK_PIDS): New constant.
74116         * lib/save-cwd.c: Include unistd-safer.h.
74117         (save_cwd): Use fd_safer.
74118         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
74119         [!_LIBC] Include "stat-macros.h" instead.
74120         * lib/unistd-safer.h (fd_safer): New decl.
74121
74122 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74123
74124         * modules/getloadavg (Depends-on): Add unistd-safer.
74125         * modules/getusershell (Depends-on): Add stdio-safer.
74126         * modules/lstat (Depends-on): Remove xalloc.
74127         * modules/mkstemp (Depends-on): Add stat-macros.
74128         * modules/modechange (Depends-on): Remove xstrtol.
74129         Add stat-macros, xalloc.
74130         * modules/save-cwd (Depends-on): Add unistd-safer.
74131         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
74132         * modules/unistd-safer (Files): Add lib/fd-safer.c
74133         (Makefile.am): Remove lib_SOURCES.
74134
74135         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
74136         Remove fcntl-safer; unistd-safer supersedes it.
74137
74138 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74139
74140         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
74141         AC_HEADER_STAT.
74142         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
74143         (gl_PREREQ_CHOWN): Remove.
74144         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
74145         it.  Don't require AC_HEADER_STAT.
74146         (gl_PREREQ_LSTAT): Remove.
74147         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
74148         Don't require AC_HEADER_STAT.
74149         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
74150         (gl_PREREQ_RMDIR): Remove.
74151         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
74152         mention stat-macros.h or AC_HEADER_STAT, since we'll make
74153         the stat-macros module a prerequisite.
74154         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
74155         * m4/filemode.m4 (gl_FILEMODE): Likewise.
74156         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
74157         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
74158         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
74159         variable names.
74160         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
74161         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
74162         variable prefixes.
74163         * m4/fcntl-safer.m4: Remove.
74164         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
74165         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
74166         Invoke gl_PREREQ_FD_SAFER.
74167         (gl_PREREQ_FD_SAFER): New macro.
74168         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
74169         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
74170         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
74171         Remove duplicate call to AC_LIBOBJ(readutmp).
74172         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
74173
74174         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
74175         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
74176
74177 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
74178
74179         * MODULES.html.sh (Misc): Add byteswap.
74180
74181 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74182
74183         * modules/getcwd (Depends-on): Add extensions.
74184         * modules/openat (Depends-on): Likewise.
74185
74186 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74187
74188         * modules/byteswap: New file.
74189
74190 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74191
74192         * m4/byteswap.m4: New file.
74193
74194 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
74195
74196         * lib/byteswap_.h: New file.
74197
74198 2005-04-25  Karl Berry  <karl@gnu.org>
74199
74200         * m4/gettext.m4: Update from GNU gettext 0.14.4.
74201
74202 2005-04-25  Albert Chin  <china@thewrittenword.com>
74203
74204         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
74205         Toolkit C bug.
74206
74207 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
74208
74209         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
74210         (func_ln_if_changed): Remove forcibly for no error message
74211         in case file does not exist.
74212
74213 2005-04-19  Simon Josefsson  <jas@extundo.com>
74214
74215         * gnulib-tool (Options): Make --symlink mean --symbolic.
74216
74217 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
74218
74219         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
74220
74221 2005-04-16  Simon Josefsson  <jas@extundo.com>
74222
74223         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
74224
74225 2005-04-15  Simon Josefsson  <jas@extundo.com>
74226
74227         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
74228
74229 2005-04-15  Simon Josefsson  <jas@extundo.com>
74230
74231         * gnulib-tool: Rename --symlink to --symbolic.
74232
74233 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
74234
74235         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
74236         symbolic links to files instead of copying/moving.  Add --aux-dir,
74237         specifying directory relative --dir where auxiliary build tools
74238         are placed.
74239
74240 2005-04-14  Bruno Haible  <bruno@clisp.org>
74241
74242         * modules/allocsa (License): Change to LGPL.
74243         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
74244
74245 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
74246
74247         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
74248         that "UTC +1 second" continues to work.  Problem reported
74249         by Dmitry V. Levin.
74250         (relunit_snumber): New rule.
74251         (relunit): Use it.
74252
74253 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
74254
74255         * lib/getdate.y (universal_time_zone_table): New constant.
74256         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
74257         universal_time_zone_table.
74258         (lookup_zone): Prefer universal_time_zone_table to
74259         local_time_zone_table, so that "GMT" time stamps are allowed in
74260         London during the summer.  Problem reported by Ian Abbott.
74261
74262 2005-04-12  Jim Meyering  <jim@meyering.net>
74263
74264         * lib/human.c (humblock): Set *options even when returning due to
74265         xstrtoumax conversion failure.  Thanks to a used-uninitialized
74266         warning from gcc-4.
74267
74268 2005-04-09  Jim Meyering  <jim@meyering.net>
74269
74270         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
74271         -Wuninitialized: initialize tm0.tm_year.
74272
74273 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
74274
74275         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
74276         count, since there's no maximum.  All uses changed.
74277         Add member dsts_seen.
74278         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
74279         not being INT_MAX.
74280         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
74281         Use pc_rels_seen to decide whther a date is absolute.
74282
74283         * lib/getdate.y (number): Don't overwrite year.
74284         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
74285         check.
74286
74287 2005-04-02  Simon Josefsson  <jas@extundo.com>
74288
74289         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
74290         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
74291
74292 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
74293
74294         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
74295         where no absolute path name can be longer than PATH_MAX.
74296
74297 2005-03-27  Jim Meyering  <jim@meyering.net>
74298
74299         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
74300
74301 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
74302
74303         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
74304         "one's complement" -> "ones' complement" in comment, as per Knuth.
74305         "value of type" -> "type or expression" in comment.
74306         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
74307
74308 2005-03-26  Jim Meyering  <jim@meyering.net>
74309
74310         Comment nits.
74311         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
74312         Correct typos: s/or/of/.
74313
74314 2005-03-26  Jim Meyering  <jim@meyering.net>
74315
74316         * modules/check-include-files: Move to ../ and rename to...
74317         * check-module: ...this.
74318
74319 2005-03-25  Jim Meyering  <jim@meyering.net>
74320
74321         * modules/xvasprintf (Files): Add xalloc.h.
74322
74323 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
74324
74325         * modules/gettext (Files): config/config.rpath ->
74326         build-aux/config.rpath
74327         * modules/iconv (Files): Likewise.
74328         Problem reported by Oskar Liljeblad.
74329
74330 2005-03-23  Jim Meyering  <jim@meyering.net>
74331
74332         * modules/check-include-files: New script to check for
74333         missing dependencies, multiple includes, etc.
74334
74335         * modules/c-strtold (Depends-on): Add xalloc.
74336         * modules/c-strtod (Depends-on): Add xalloc.
74337         * modules/hash (Depends-on): Add xalloc.
74338         (Files): Remove lib/xalloc.h.
74339
74340         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
74341         * modules/userspec (Files): Add lib/inttostr.h.
74342
74343 2005-03-23  Jim Meyering  <jim@meyering.net>
74344
74345         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
74346
74347 2005-03-22  Jim Meyering  <jim@meyering.net>
74348
74349         * modules/stat-macros: New module.
74350         * modules/canonicalize, modules/euidaccess, modules/file-type,
74351         * modules/filemode, modules/lchown, modules/makepath,
74352         * modules/rmdir, modules/stat: Depend on new stat-macros module
74353         rather than listing lib/stat-macros.h manually.
74354         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
74355
74356 2005-03-22  Jim Meyering  <jim@meyering.net>
74357
74358         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
74359
74360 2005-03-22  Bruno Haible  <bruno@clisp.org>
74361
74362         * config/srclist.txt: Replace target directory 'config' with
74363         'build-aux'.
74364         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
74365         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
74366         ../build-aux/.
74367
74368 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
74369
74370         * modules/chdir-long (Depends-on): Add mempcpy.
74371
74372         * modules/acl, modules/backupfile, modules/c-strtod,
74373         modules/c-strtold, modules/canon-host, modules/canonicalize,
74374         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
74375         modules/exclude, modules/exitfail, modules/file-type,
74376         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
74377         modules/getdate, modules/getline, modules/getpagesize,
74378         modules/getpass, modules/getugroups, modules/group-member,
74379         modules/hard-locale, modules/hash, modules/human, modules/idcache,
74380         modules/inttostr, modules/long-options, modules/makepath,
74381         modules/md5, modules/memcasecmp, modules/memcoll,
74382         modules/modechange, modules/mountlist, modules/path-concat,
74383         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
74384         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
74385         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
74386         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
74387         modules/strftime, modules/strndup, modules/strverscmp,
74388         modules/timespec, modules/unlocked-io, modules/userspec,
74389         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
74390         modules/yesno:
74391         Remove lib_SOURCES line from Makefile.am section, as this is now
74392         done automatically by the corresponding Autoconf macro.
74393
74394 2005-03-21  Jim Meyering  <jim@meyering.net>
74395
74396         Changes imported from coreutils.
74397
74398         * lib/cycle-check.c: Don't include xalloc.h.
74399
74400         * lib/path-concat.c: Don't include assert.h.
74401         (path_concat): Remove assertion that would have triggered
74402         for ABASE starting with more than one slash.
74403         Reported by Andreas Schwab.
74404
74405         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
74406         properly when ABASE is an absolute file name.
74407         Correct the description of this function.
74408         Include <assert.h>.
74409         Add an assertion and a test driver.
74410         This fixes a bug introduced on 2004-07-02.
74411         Andreas Schwab reported the resulting failure of cp --parents:
74412         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
74413
74414 2005-03-21  Jim Meyering  <jim@meyering.net>
74415
74416         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
74417         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
74418
74419 2005-03-21  Jim Meyering  <jim@meyering.net>
74420         and  Paul Eggert  <eggert@cs.ucla.edu>
74421
74422         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
74423         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
74424         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
74425         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
74426         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
74427         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
74428         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
74429         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
74430         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
74431         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
74432         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
74433         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
74434         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
74435         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
74436         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
74437         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
74438         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
74439         for these modules.
74440
74441 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
74442
74443         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
74444         (which shouldn't happen), generate nothing instead of returning 0
74445         immediately, so that nstrftime (NULL, ...) doesn't return 0.
74446
74447 2005-03-16  Bruno Haible  <bruno@clisp.org>
74448
74449         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
74450         HAVE_LONGLONG_64BIT.
74451
74452 2005-03-16  Bruno Haible  <bruno@clisp.org>
74453
74454         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
74455         HAVE_LONGLONG_64BIT.
74456
74457 2005-03-16  Bruno Haible  <bruno@clisp.org>
74458
74459         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
74460         HAVE_LONGLONG_64BIT.
74461
74462 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
74463
74464         * lib/strftime.c (my_strftime): Prepend space to format so that we can
74465         reliably distinguish strftime failure from empty output on POSIX
74466         hosts.
74467
74468 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
74469
74470         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
74471         (iconv_string): Don't guess a size-zero buffer, as that might cause
74472         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
74473         result would be 'too large', where 'too large' is (heuristically)
74474         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
74475         overflow concerns.  This will prevent some unwanted malloc failures
74476         when the inputs are very large.
74477
74478 2005-03-15  Karl Berry  <karl@gnu.org>
74479
74480         * config/srclist.txt (config.rpath): from gettext.
74481         * config/config.rpath: update.
74482
74483 2005-03-15  Bruno Haible  <bruno@clisp.org>
74484
74485         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
74486         to 'negate'.
74487
74488         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
74489         variable.
74490
74491         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
74492         results.
74493
74494 2005-03-14  Simon Josefsson  <jas@extundo.com>
74495
74496         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
74497         <fx@gnu.org>.
74498
74499 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
74500
74501         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
74502         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
74503         intprops.h.
74504         * lib/strtol.c: Likewise.
74505
74506 2005-03-14  Jim Meyering  <jim@meyering.net>
74507
74508         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
74509         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
74510         to be nonzero so that we (and caller) can detect the difference
74511         between a valid zero-length expansion and an error return, even
74512         when the underlying strftime fails before writing anything into
74513         that location.
74514
74515 2005-03-14  Bruno Haible  <bruno@clisp.org>
74516
74517         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
74518         Update from GNU gettext 0.14.3.
74519
74520 2005-03-10  Jim Meyering  <jim@meyering.net>
74521
74522         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
74523
74524 2005-03-10  Jim Meyering  <jim@meyering.net>
74525
74526         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
74527         so that this module works on systems without fchdir.
74528
74529 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
74530
74531         Factor int-properties macros into a single file, except for
74532         glibc-related files.
74533         * lib/intprops.h: New file.
74534         * lib/getloadavg.c: Include it instead of limits.h.
74535         (INT_STRLEN_BOUND): Remove.
74536         * lib/human.c: Include intprops.h.
74537         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
74538         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
74539         302/1000.
74540         * lib/inttostr.h: Include intprops.h instead of limits.h.
74541         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
74542         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
74543         for consistency with intprops.h.
74544         (time_t_is_integer, twos_complement_arithmetic): Use them.
74545         * lib/sig2str.h: Include <signal.h>, intprops.h.
74546         (INT_STRLEN_BOUND): Remove.
74547         * lib/strftime.c (TYPE_SIGNED): Remove.
74548         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
74549         * lib/strtol.c: Adjust comments to match intprops.h.
74550         * lib/userspec.c: Include intprops.h.
74551         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
74552         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
74553         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
74554         instead of rolling our own expressions.
74555         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
74556
74557         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
74558         instead of int.
74559         (my_strftime): Do not mishandle years close to INT_MAX, by doing
74560         the right thing even if adding 1900 would overflow.  Similarly
74561         for tm_mon + 1 and tm_yday + 1.
74562         Make %Y always equivalent to %C%y, and similarly for %G and %g.
74563         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
74564         (DO_SIGNED_NUMBER): New macro.
74565         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
74566
74567 2005-03-07  Bruno Haible  <bruno@clisp.org>
74568
74569         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
74570
74571 2005-03-07  Bruno Haible  <bruno@clisp.org>
74572
74573         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
74574
74575 2005-03-04  Derek R. Price  <derek@ximbiot.com>
74576
74577         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
74578         (func_import): Only replace files via --import when they have actually
74579         changed.
74580
74581 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74582
74583         * m4/mmap-anon.m4: New file.
74584         * m4/pagealign_alloc.m4: New file.
74585
74586 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74587             Bruno Haible  <bruno@clisp.org>
74588
74589         * modules/pagealign_alloc: New file.
74590         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
74591
74592 2005-03-03  Derek R. Price  <derek@ximbiot.com>
74593             Bruno Haible  <bruno@clisp.org>
74594
74595         * lib/pagealign_alloc.h: New file.
74596         * lib/pagealign_alloc.c: New file.
74597
74598 2005-03-03  Bruno Haible  <bruno@clisp.org>
74599
74600         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
74601         Use an all-permissive copyright notice, recommended by RMS.
74602
74603 2005-03-02  Bruno Haible  <bruno@clisp.org>
74604
74605         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
74606         of AIX, the replacement has to be done only after <string.h> is
74607         included, therefore not in config.h. stpncpy.h does the replacement,
74608         and stpncpy.c uses it.
74609
74610 2005-03-02  Bruno Haible  <bruno@clisp.org>
74611
74612         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
74613         stpncpy.c uses it.
74614
74615 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74616
74617         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
74618         The workaround isn't strictly needed for POSIX conformance, and
74619         it's too much of a pain to configure and maintain.  We'll ask
74620         people to fix their kernels instead.
74621         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
74622         (NANOSLEEP_BUG_WORKAROUND): Remove.
74623         (xnanosleep): Remove the workaround.
74624
74625 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74626
74627         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
74628         Reported by Derek Price.
74629         (Include): Add "timespec.h".
74630
74631         * modules/xnanosleep (Depends-on): Remove gethrxtime.
74632
74633 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74634
74635         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
74636         to detect nanosleep bug.
74637
74638 2005-03-01  Bruno Haible  <bruno@clisp.org>
74639
74640         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
74641
74642 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
74643
74644         * modules/gethrxtime: New file.
74645         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
74646         (Depends-on): Add gethrxtime.
74647         (configure.ac): Add gl_XNANOSLEEP.
74648         (Makefile.am): Remove lib_SOURCES line.
74649
74650 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
74651
74652         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
74653         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
74654
74655 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
74656
74657         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
74658         * lib/timespec.h (gettime): Return void, since it always
74659         succeeds now.  All uses changed.
74660         * lib/gettime.c (gettime): Likewise.
74661         [HAVE_NANOTIME]: Prefer nanotime.
74662         Assume gettimeofday succeeds, as POSIX requires.
74663         Assime time () succeeds, since other code already does.
74664         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
74665         (timespec_subtract): Remove.
74666         (NANOSLEEP_BUG_WORKAROUND): New constant.
74667         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
74668         things considerably.  Use it only on GNU/Linux hosts, since the
74669         workaround shouldn't be needed elsewhere.
74670
74671 2005-02-24  Bruno Haible  <bruno@clisp.org>
74672
74673         * modules/gettext (Files): Add m4/glibc2.m4.
74674
74675 2005-02-24  Bruno Haible  <bruno@clisp.org>
74676
74677         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
74678         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
74679         * m4/progtest.m4:
74680         Update from GNU gettext 0.14.2.
74681         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
74682
74683 2005-02-24  Bruno Haible  <bruno@clisp.org>
74684
74685         * lib/localcharset.c: Update from GNU gettext 0.14.2.
74686         * lib/config.charset: Update from GNU gettext 0.14.2.
74687
74688 2005-02-24  Bruno Haible  <bruno@clisp.org>
74689
74690         * lib/gettext.h: Update from GNU gettext 0.14.2.
74691
74692 2005-02-23  Simon Josefsson  <jas@extundo.com>
74693
74694         * m4/iconvme.m4: New file.
74695
74696 2005-02-23  Jim Meyering  <jim@meyering.net>
74697
74698         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
74699         change.
74700         Thanks to Bruno Haible for catching it.
74701
74702 2005-02-22  Simon Josefsson  <jas@extundo.com>
74703
74704         * modules/iconvme: New file.
74705
74706         * MODULES.html.sh: Add iconvme.
74707
74708 2005-02-22  Simon Josefsson  <jas@extundo.com>
74709
74710         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
74711
74712 2005-02-22  Simon Josefsson  <jas@extundo.com>
74713
74714         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
74715
74716 2005-02-22  Jim Meyering  <jim@meyering.net>
74717
74718         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
74719         s/ifndef/ifdef/.
74720
74721 2005-02-20  Neil Conway  <neilc@samurai.com>
74722
74723         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
74724         returned by OSX/Darwin if the specified buffer is not large
74725         enough for the hostname.
74726
74727 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74728
74729         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
74730         pass it to _help, otherwise the latter coredumps trying to
74731         dereference state.root_argp.
74732
74733 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74734
74735         * modules/chdir-long (Depends-on): Add memrchr.
74736         * modules/memrchr (Files): Add lib/memrchr.h.
74737         (Include): "memrchr.h".
74738
74739 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74740
74741         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
74742
74743 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74744
74745         * lib/memrchr.h: New file.
74746         * lib/chdir-long.c: Include it.
74747         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
74748         Don't bother including stddef.h.
74749
74750 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
74751
74752         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
74753         inclusion.
74754         Include <sys/types.h>, for dev_t.
74755         (ME_DUMMY, ME_REMOTE): Move from here....
74756         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
74757         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
74758         Dmitry V. Levin.
74759         Include mountlist.h first, to test the interface.
74760
74761 2005-01-29  Bruno Haible  <bruno@clisp.org>
74762
74763         * lib/progname.c (program_name): Initialize.
74764         Needed when linking statically on MacOS X.
74765
74766 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74767
74768         Sync from coreutils.
74769         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
74770         (Depends-on): Add c-strtod.
74771         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
74772
74773 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74774
74775         Sync from coreutils.
74776         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
74777
74778         Remove files that are specific to coreutils.
74779         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
74780
74781 2005-01-28  Bruno Haible  <bruno@clisp.org>
74782
74783         * modules/javacomp: New file.
74784         * MODULES.html.sh (Java): Add javacomp.
74785
74786 2005-01-28  Bruno Haible  <bruno@clisp.org>
74787
74788         * m4/javacomp.m4: New file, from GNU gettext.
74789
74790 2005-01-28  Bruno Haible  <bruno@clisp.org>
74791
74792         * lib/javacomp.sh.in: New file, from GNU gettext.
74793         * lib/javacomp.h: New file, from GNU gettext.
74794         * lib/javacomp.c: New file, from GNU gettext.
74795
74796 2005-01-26  Simon Josefsson  <jas@extundo.com>
74797
74798         * lib/gai_strerror.c: Use GPL in header.
74799
74800 2005-01-26  Bruno Haible  <bruno@clisp.org>
74801
74802         * modules/javaexec: New file.
74803         * MODULES.html.sh (Java): Add javaexec.
74804
74805 2005-01-26  Bruno Haible  <bruno@clisp.org>
74806
74807         * m4/javaexec.m4: New file, from GNU gettext.
74808
74809 2005-01-26  Bruno Haible  <bruno@clisp.org>
74810
74811         * lib/javaexec.sh.in: New file, from GNU gettext.
74812         * lib/javaexec.h: New file, from GNU gettext.
74813         * lib/javaexec.c: New file, from GNU gettext.
74814
74815 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74816
74817         * modules/lchown (Depends-on): Remove lchown.h
74818
74819 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74820
74821         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
74822         must be defined if the header file was not found, in order
74823         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
74824
74825 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74826
74827         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
74828         initializers for struct pentry_state.
74829         (__argp_error): Check return value of __asprintf
74830         (__argp_failure): Translate error message
74831
74832         * lib/argp-parse.c: Removed braces around the expansion of N_()
74833
74834 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74835
74836         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
74837         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
74838         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
74839         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
74840         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
74841         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
74842         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
74843         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
74844         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
74845         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
74846         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
74847         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
74848         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
74849         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
74850         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
74851         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
74852         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
74853         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
74854         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
74855         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
74856         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
74857         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
74858         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
74859         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
74860         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
74861         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
74862         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
74863         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
74864         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
74865         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
74866         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
74867         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
74868         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
74869         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
74870         xstrtol.m4, xstrtoumax.m4, yesno.m4:
74871         Use an all-permissive copyright notice, recommended by RMS.
74872
74873 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
74874
74875         * modules/chdir-long (Depends-on): Remove mempcpy.
74876
74877 2005-01-21  Jim Meyering  <jim@meyering.net>
74878
74879         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
74880         same value as for Solaris 9.
74881
74882         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
74883         component length.  This included changing the parameter to be
74884         of type `char *' rather than `char const *'.
74885         * lib/chdir-long.h (chdir_long): Update prototype.
74886
74887         * lib/openat.c (fdopendir, fstatat): New functions.
74888         * lib/openat.h: Include headers required for use of DIR and struct
74889         stat.
74890         [AT_SYMLINK_NOFOLLOW]: Define.
74891         (fdopendir, fstatat): Add prototypes.
74892
74893 2005-01-21  Bruno Haible  <bruno@clisp.org>
74894
74895         * modules/classpath: New file.
74896         * MODULES.html.sh (Java): Add classpath.
74897
74898 2005-01-21  Bruno Haible  <bruno@clisp.org>
74899
74900         * lib/classpath.h: New file, from GNU gettext.
74901         * lib/classpath.c: New file, from GNU gettext.
74902
74903 2005-01-20  Simon Josefsson  <jas@extundo.com>
74904
74905         * modules/version-etc-fsf: New file.
74906
74907 2005-01-20  Simon Josefsson  <jas@extundo.com>
74908
74909         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
74910         * lib/version-etc.c: Remove version_etc_copyright.
74911         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
74912         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
74913
74914 2005-01-20  Simon Josefsson  <jas@extundo.com>
74915
74916         * lib/base64.h (isbase64): Add.
74917
74918         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
74919         using a unsigned prototype, don't inline.
74920         (base64_decode): Use it.
74921
74922 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74923
74924         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
74925         it.
74926
74927 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74928
74929         * lib/save-cwd.c (save_cwd): Remove code to support the case
74930         where fchdir is missing or flaky.
74931
74932 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74933
74934         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
74935
74936 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
74937
74938         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
74939         AC_LIBSOURCES now does this.
74940         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
74941         with new ullong_max module.
74942
74943 2005-01-19  Bruno Haible  <bruno@clisp.org>
74944
74945         * modules/sh-quote: New file.
74946         * MODULES.html.sh (Executing programs): Add sh-quote.
74947
74948 2005-01-19  Bruno Haible  <bruno@clisp.org>
74949
74950         * lib/sh-quote.h: New file, from GNU gettext.
74951         * lib/sh-quote.c: New file, from GNU gettext.
74952
74953 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74954
74955         Merge from coreutils.
74956         * m4/ullong_max.m4: New file.
74957         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
74958         (gl_MACROS): Assume localeconv exists.
74959
74960 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74961
74962         Merge changes from coreutils, as described below in several
74963         changelogs dated today.
74964
74965         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
74966         (O_DIRECTORY): Remove; not needed here, since "." must be
74967         a directory.  All uses removed.
74968         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
74969         universal on Suns, and we also need to test for IRIX.
74970         Revamp code to use 'if' rather than '#if'.
74971         Avoid unnecessary comparison of cwd->desc to 0.
74972
74973         * lib/utimens.c (futimens): Robustify the previous patch, by checking
74974         for known valid error numbers rather than observed invalid ones.
74975
74976 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74977
74978         * modules/ullong_max: New file.
74979
74980         * modules/chdir-long, modules/openat: New files.
74981         * modules/save-cwd (Depends-on): Depend on chdir-long.
74982         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
74983
74984 2005-01-18  Jim Meyering  <jim@meyering.net>
74985
74986         Merge from coreutils.
74987         * m4/chdir-long.m4, m4/openat.m4: New files.
74988         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
74989         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
74990         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
74991         is sane and DOES follow symlinks.  Besides, testing 20 different
74992         systems found no broken chown implementations.
74993         Prompted by a change in rsync's copy of this macro.
74994         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
74995
74996         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
74997
74998         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
74999         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
75000         NULL-means-set-to-current-time semantics.
75001         Remove temporary file immediately, rather than waiting
75002         for configure's at-exit trap code to do it.
75003
75004 2005-01-18  Jim Meyering  <jim@meyering.net>
75005
75006         * lib/version-etc.c (version_etc_copyright): Update copyright date.
75007
75008         * lib/utimens.c (futimens): Account for the fact that futimes
75009         can also fail with errno == ENOSYS or errno == ENOENT.
75010         Patch from Dmitry V. Levin.
75011
75012         Change the name of the robust chdir function from chdir to chdir_long.
75013         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
75014         (restore_cwd): Use chdir_long, not chdir.
75015         * lib/chdir-long.c: Renamed from chdir.c.
75016         * lib/chdir-long.h: Renamed from chdir.h.
75017         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
75018         Hurd.
75019
75020 2005-01-18  Bruno Haible  <bruno@clisp.org>
75021
75022         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
75023         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
75024         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
75025         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
75026         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
75027         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
75028         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
75029         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
75030         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
75031         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
75032         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
75033         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
75034         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
75035         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
75036         Use an all-permissive copyright notice, recommended by RMS.
75037
75038 2005-01-18  Bob Proulx  <bob@proulx.com>
75039
75040         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
75041         simplify offsetof() macro construct to avoid compile failure with
75042         native HP-UX 11.0 ANSI C compiler.
75043
75044 2005-01-17  Bruno Haible  <bruno@clisp.org>
75045
75046         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
75047         redundant because stpncpy.m4 takes care of it.
75048
75049 2005-01-17  Bruno Haible  <bruno@clisp.org>
75050
75051         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
75052
75053 2005-01-17  Bruno Haible  <bruno@clisp.org>
75054
75055         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
75056         used.
75057
75058 2005-01-17  Bruno Haible  <bruno@clisp.org>
75059
75060         * lib/fwriteerror.h (fwriteerror): Change specification to include
75061         fclose.
75062         * lib/fwriteerror.c: Include <stdbool.h>.
75063         (fwriteerror): At the end, close the file stream. Record whether
75064         stdout was already closed.
75065
75066 2005-01-17  Bruno Haible  <bruno@clisp.org>
75067
75068         * lib/execute.c (environ): Declare if needed.
75069         * lib/pipe.c (environ): Likewise.
75070         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
75071
75072 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75073
75074         * modules/argp: Depend on vsnprintf
75075
75076 2005-01-10  Jim Meyering  <jim@meyering.net>
75077
75078         * modules/closeout (Depends-on): Add atexit.
75079
75080 2005-01-06  Bruno Haible  <bruno@clisp.org>
75081
75082         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
75083
75084 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75085
75086         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
75087         definitions to be after all include files, to avoid collisions.
75088         Problem reported by Bob Proulx.
75089
75090 2005-01-04  Jim Meyering  <jim@meyering.net>
75091
75092         Changes imported from coreutils.
75093         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
75094         as the mkstemp template, use a temporary directory and an
75095         8.3-friendly template to avoid trouble on systems like DJGPP.
75096         Reported by Juan M. Guerrero via Stepan Kasal.
75097         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
75098         close. Remove the temporary directory right away, rather than waiting
75099         for configure's at-exit trap code to do it.
75100         Suggestion from Stepan Kasal.
75101
75102 2005-01-01  Simon Josefsson  <jas@extundo.com>
75103
75104         * gnulib-tool: Print #include directives when --import'ing.
75105
75106 2004-12-28  Simon Josefsson  <jas@extundo.com>
75107
75108         * tests/test-base64.c: Include required header files.  Remove
75109         unused variables.
75110
75111 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
75112
75113         * modules/error (Depends-on): Remove gettext.
75114
75115 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
75116
75117         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
75118         not needed.  This removes a dependency on the gettext module.
75119         [defined _LIBC]: Do not include <libintl.h>; not needed.
75120
75121 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
75122
75123         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
75124         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
75125
75126 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
75127
75128         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
75129         HAVE_DECL_STRTOLD.
75130
75131 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75132
75133         * modules/getdate (Depends-on): Remove alloca-opt.
75134
75135 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75136
75137         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
75138
75139 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
75140
75141         * lib/argp-parse.c: Include <stddef.h>.
75142         (alignof, alignto): New macros.
75143         (parser_init): Don't assume that void * is aligned sufficiently
75144         for struct option.
75145
75146         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
75147         need to extend the stack.
75148         (YYINITDEPTH): New macro, so that the initial stack isn't overly
75149         large.
75150
75151 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75152
75153         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
75154
75155 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
75156
75157         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
75158         (2004-10-24) change.  Apparently this was a false alarm.
75159
75160         * modules/getdate: Depend on alloca-opt, not alloca.
75161
75162 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
75163
75164         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
75165         Remove now-obsolete comment about AIX.
75166         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
75167         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
75168         (YYMAXDEPTH): New macro.
75169
75170 2004-12-18  Simon Josefsson  <jas@extundo.com>
75171
75172         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
75173
75174 2004-12-18  Bruno Haible  <bruno@clisp.org>
75175
75176         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
75177
75178 2004-12-18  Bruno Haible  <bruno@clisp.org>
75179
75180         * lib/fatal-signal.c (fatal_signals): Make non-const.
75181         (init_fatal_signals): New function.
75182         (uninstall_handlers, install_handlers): Ignore signals that were set to
75183         SIG_IGN.
75184         (at_fatal_signal): Call init_fatal_signals.
75185         (init_fatal_signal_set): Likewise. Ignore signals that were set to
75186         SIG_IGN.
75187         Reported by Paul Eggert.
75188
75189 2004-12-18  Bruno Haible  <bruno@clisp.org>
75190
75191         * doc/alloca.texi: New file.
75192         * doc/alloca-opt.texi: New file.
75193
75194 2004-12-17  Jim Meyering  <jim@meyering.net>
75195
75196         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
75197         Otherwise, install-sh could exit with improper exit status when
75198         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
75199
75200 2004-12-16  Simon Josefsson  <jas@extundo.com>
75201
75202         * tests/test-base64.c: Add license.
75203
75204 2004-12-15  Stepan Kasal  <address@hidden>
75205
75206         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
75207
75208 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
75209
75210         * modules/getcwd (Files): Add m4/d-ino.m4.
75211         Suggested by Mark D. Baushke.
75212
75213 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
75214
75215         * lib/getdate.y (textint): New member "negative".
75216         (time_zone_hhmm): New function.
75217         Expect 14 shift-reduce conflicts, not 13.
75218         (o_colon_minutes): New rule.
75219         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
75220         (yylex): Set the "negative" member of signed numbers.
75221
75222 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
75223
75224         * doc/getdate.texi (Time of day items, Time zone items):
75225         Describe new formats +00:00, UTC+00:00.
75226
75227 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
75228
75229         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
75230         spurious "-l"s.  Problem reported by Stepan Kasal.
75231
75232 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
75233
75234         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
75235         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
75236
75237 2004-12-04  Simon Josefsson  <jas@extundo.com>
75238
75239         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
75240         Vandoorselaere <yoann@prelude-ids.org>.
75241
75242 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75243
75244         Changes imported from coreutils.
75245         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
75246         exist.
75247         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
75248
75249 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75250
75251         Changes imported from coreutils.
75252         * lib/hard-locale.c: Assume <locale.h> exists.
75253         Include "strdup.h".
75254         (GLIBC_VERSION): New macro.
75255         (hard_locale): Assume setlocale exists.
75256         Rewrite to avoid #ifdef.
75257         Use strdup rather than malloc + strcpy.
75258         * lib/human.c: Assume <locale.h> exists.
75259         (human_readable): Assume localeconv exists.
75260
75261 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
75262
75263         * modules/hard-locale (Depends-on): Add strdup.
75264
75265 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
75266
75267         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
75268         convert T2, not T.  (Imported from libc.)
75269
75270 2004-11-30  Simon Josefsson  <jas@extundo.com>
75271
75272         * modules/restrict (License): Change to LGPL.
75273
75274 2004-11-30  Simon Josefsson  <jas@extundo.com>
75275
75276         * m4/restrict.m4: Add copyright and copying conditions.
75277
75278 2004-11-30  Simon Josefsson  <jas@extundo.com>
75279
75280         * m4/base64.m4: New file.
75281
75282 2004-11-30  Simon Josefsson  <jas@extundo.com>
75283
75284         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
75285         base64.
75286
75287         * tests/test-base64.c: New file.
75288
75289         * modules/base64: New file.
75290
75291 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
75292
75293         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
75294         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
75295
75296         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
75297
75298 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
75299
75300         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
75301         (__getcwd.c): Don't restore errno; glibc doesn't.
75302         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
75303         first, falling back to our code only if its results look suspicious.
75304         Ensure that the resulting buffer is only as large as necessary.
75305
75306         * lib/readutmp.c: Include readutmp.h first.
75307         Include <errno.h>, since readutmp.h no longer does that.
75308         * lib/readutmp.h: Don't include <errno.h>,
75309         <sys/param.h>, <time.h>; not needed to establish interface.
75310         (errno): Remove decl.
75311         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
75312         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
75313         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
75314
75315 2004-11-28  Simon Josefsson  <jas@extundo.com>
75316
75317         * lib/base64.h, base64.c: New file.
75318
75319 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
75320
75321         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
75322
75323 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
75324
75325         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
75326         (Depends-on): Remove pathmax, same.  Add mempcpy.
75327         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
75328         (Makefile.am): Append getcwd.h to lib_SOURCES.
75329         (Include): Add getcwd.h.
75330         (Maintainer): Change from Jim Meyering to "all, glibc",
75331         since getdate now uses intended-for-glibc code.
75332         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
75333         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
75334
75335 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
75336
75337         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
75338         HP's ANSI C compiler.
75339         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
75340         Declaring int functions causes warnings on some modern systems and
75341         shouldn't be needed to compile on ancient ones.
75342         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
75343         defined.
75344
75345         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
75346         with the following changes.
75347         (__set_errno): Parenthesize properly.
75348         Include <stdbool.h>.
75349         (MIN, MAX, MATCHING_INO): New macros.
75350         (__getcwd): Define with prototype, not K&R form.
75351         Use heuristics to allocate default buffer on stack if possible.
75352         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
75353         behavior, and to avoid the PATH_MAX limit when computing
75354         ../../../../...
75355         Use MATCHING_INO to compare inode number to file.
75356         Check for arithmetic overflow in size calculations.
75357         Fix bug in reallocation of dot array that caused getcwd to fail
75358         on directories nested deeper than 75.
75359         Be more careful about saving errno on error.
75360         Do not use realloc; use only free+malloc, as this is a bit
75361         more flexible and avoids a needless copy operation.
75362         Do not inspect st_dev and st_ino for symbolic links; POSIX
75363         doesn't specify the latter.
75364         Check for closedir errors.
75365         Avoid needless casts.
75366         Use "#ifdef weak_alias" around weak_alias, to be like other
75367         glibc code.
75368         The following changes to getcwd.c have effect only when used in
75369         gnulib; they have no effect inside glibc proper.
75370         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
75371         as alloca isn't used.
75372         (alloca, __alloca): Likewise.
75373         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
75374         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
75375         unconditionally, as gnulib assumes C89 or better.
75376         Do not include <sys/param.h>.
75377         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
75378         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
75379         better.
75380         (NULL) [!defined NULL]: Remove; we assume C89 or better.
75381         Include <dirent.h> in a way that is compatible with modern Autoconf.
75382         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
75383         New macros, if not already defined.
75384         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
75385         Use "_LIBC", not "defined _LIBC", for consistency.
75386         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
75387         a mempcpy module.
75388         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
75389         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
75390         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
75391         credit only to Jim Meyering and adjust the copyright dates.
75392         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
75393         <stdlib.h>, <unistd.h>, "pathmax.h".
75394         Instead, include "xgetcwd.h" (first) and "getcwd.h".
75395         (INITIAL_BUFFER_SIZE): Remove.
75396         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
75397
75398 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
75399
75400         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
75401         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
75402         Use the _ONCE methods, for efficiency.
75403         Check for fcntl.h.  In test program, include <errno.h>
75404         and <fcntl.h> if available.  Remove old K&R cruft from
75405         test program.  Check for common errors in GNU/Linux,
75406         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
75407         don't do AC_LIBOBJ, as that's getcwd.m4's job.
75408         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
75409         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
75410         name accordingly.
75411         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
75412         accommodate new getcwd.c.
75413         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
75414         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
75415         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
75416         that's all we need now.
75417
75418 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75419
75420         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
75421         argp-parse.c depends on getopt internals, that means we should
75422         always use our getopt, to be on the safe side.
75423         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
75424         order not to spoil the result of an eventual previous invocation
75425         of gl_GETOPT_SUBSTITUTE.
75426
75427 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75428
75429         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
75430         redefinition warnings. To avoid them, include the defines
75431         in `#if !defined __need_getopt ... #endif'. The only place
75432         where __getopt_argv_const is used is in definitions
75433         of getopt_long and getopt_long_only below, which are as well
75434         protected by `#ifndef __need_getopt'.
75435         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
75436         __need_getopt after including <stdio.h> and <unistd.h> These
75437         headers might have defined it.
75438
75439 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
75440
75441         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
75442
75443 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
75444
75445         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
75446         (futimens): New function, which uses futimes if available.
75447         (futimens, utimens): Support timespec==NULL, with same semantics
75448         as utime and utimens.
75449         * lib/utimens.h (futimens): New decl.
75450
75451 2004-11-23  Jim Meyering  <jim@meyering.net>
75452
75453         * lib/getopt_.h: Remove trailing blanks.
75454
75455 2004-11-23  Jim Meyering  <jim@meyering.net>
75456
75457         * lib/__fpending.c: Add comment.
75458
75459 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
75460
75461         * modules/canonicalize (Depends-on): Add xreadlink.
75462         Problem reported by James Youngman.
75463
75464 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
75465
75466         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
75467         New macros.
75468         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
75469         optopt): Use them instead of invoking ## directly; otherwise, the
75470         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
75471
75472 2004-11-19  Bruno Haible  <bruno@clisp.org>
75473
75474         * lib/strtok_r.c: Move comments from here...
75475         * lib/strtok_r.h: ... to here.
75476
75477 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75478
75479         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
75480         implementations that mishandle size_t overflow.
75481
75482 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
75483
75484         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
75485         might fail.  Problem reported by Yoann Vandoorselaere.
75486         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
75487         implementations that mishandle size_t overflow.
75488
75489 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75490
75491         * modules/canon-host (Depends-on): Add strdup.
75492
75493 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75494
75495         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
75496
75497 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75498
75499         * lib/canon-host.c: Include "strdup.h".
75500         (canon_host): Use getaddrinfo if available, so that IPv6 works.
75501         Use strdup instead of malloc/strcpy to duplicate strings.
75502
75503         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
75504         (human_space_before_unit): New constant.
75505         * lib/human.c (human_readable): Support it.
75506
75507         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
75508         (xgetcwd): Set errno correctly when failing.
75509         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
75510         the failure is actually due to a PATH_MAX problem.
75511
75512         Further getopt changes to make it more likely that glibc will
75513         buy the changes back.
75514         * lib/getopt.c (POSIXLY_CORRECT): New constant.
75515         (getopt): Use it, so to preserve glibc semantic
75516         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
75517         when compiling for libc.
75518         * lib/getopt_.h (__getopt_argv_const): Bring it back.
75519         (getopt_long, getopt_long_only): Use it.
75520
75521         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
75522         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
75523         (getopt): Argv is now char * const *, as per standard.
75524         (_getopt_internal_r, _getopt_internal): Argv is now char **,
75525         not char *__getopt_argv_const *.
75526         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
75527         _getopt_long_only_r): Likewise.
75528         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
75529         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
75530         _getopt_long_r, _getopt_long_only_r): Likewise.
75531         * lib/getopt_.h (__getopt_argv_const): Remove.
75532         (getopt): Argv is now char * const *, as per standard.
75533
75534         * lib/getdate.y (tORDINAL): New token.
75535         (day, relunit): Allow it for relative times.
75536         (relative_time_table): Use tORDINAL for ordinals.
75537
75538 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
75539
75540         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
75541         Document that "second" isn't allowed as an ordinal number.
75542
75543 2004-11-16  Jim Meyering  <jim@meyering.net>
75544
75545         * modules/closeout (Depends-on): Add fpending.
75546
75547 2004-11-15  Jim Meyering  <jim@meyering.net>
75548
75549         * lib/closeout.c: Include "__fpending.h" once again.
75550         Include <stdbool.h>.
75551         (close_stdout): Don't fail just because stdout was closed initially,
75552         since some programs don't write to stdout in the normal course of
75553         operation (other than --version and --help), and we don't want this
75554         function to make e.g. `touch file >&-' fail.
75555         But do fail if it was closed and someone has tried to write to it.
75556         E.g., `printf foo >&-' must fail.
75557
75558 2004-11-13  Jim Meyering  <jim@meyering.net>
75559
75560         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
75561
75562 2004-11-12  Simon Josefsson  <jas@extundo.com>
75563
75564         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
75565         small doc fix is still pending.
75566
75567 2004-11-11  Simon Josefsson  <jas@extundo.com>
75568
75569         * modules/strtok_r: New file.
75570
75571         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75572         strtok_r.
75573
75574 2004-11-11  Simon Josefsson  <jas@extundo.com>
75575
75576         * m4/strtok_r.m4: New file.
75577
75578         * m4/getopt.m4: Replace opterr.
75579
75580 2004-11-11  Simon Josefsson  <jas@extundo.com>
75581
75582         * lib/strtok_r.h, strtok_r.c: New file.
75583
75584 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
75585
75586         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
75587         of replacing opterr, getopt, etc.  This should handle the
75588         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
75589
75590 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
75591
75592         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
75593         we can stop lying to compilers about the constness of argv when we
75594         are compiled outside glibc.
75595         (getopt, getopt_long, getopt_long_only): Use it.
75596         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
75597         _getopt_internal, getopt): Likewise.
75598         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
75599         _getopt_long_only_r): Likewise.
75600         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
75601         _getopt_long_r, _getopt_long_only_r): Likewise.
75602
75603         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
75604         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
75605         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
75606         the other external symbols.
75607         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
75608         declaration, since the above renaming now works around collisions.
75609
75610 2004-11-11  Jim Meyering  <jim@meyering.net>
75611
75612         * lib/linebreak.c: Remove trailing blanks.
75613         * lib/alloca_.h: Likewise.
75614         * lib/acosl.c: Likewise.
75615         * lib/euidaccess.c: Likewise.
75616         * lib/allocsa.h: Likewise.
75617
75618 2004-11-10  Simon Josefsson  <jas@extundo.com>
75619
75620         * m4/getaddrinfo.m4: New file.
75621
75622 2004-11-10  Simon Josefsson  <jas@extundo.com>
75623
75624         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
75625
75626 2004-11-10  Simon Josefsson  <jas@extundo.com>
75627
75628         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75629         getaddrinfo.
75630
75631         * modules/getaddrinfo: New file.
75632
75633 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75634
75635         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
75636
75637 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75638
75639         * lib/mktime.c (SHR): New macro, which is a portable
75640         substitute for >> that should work even on Crays.
75641         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
75642         Problem reported by Mark D. Baushke in
75643         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
75644         * lib/getdate.y (SHR): Likewise.
75645         (tm_diff): Use it.
75646         * lib/strftime.c (SHR): Likewise.
75647         (tm_diff): Use it.
75648         * lib/quotearg.c (struct quoting_options): Use unsigned int for
75649         quote_these_too, so that right shifts are well defined.  All uses
75650         changed.
75651
75652 2004-11-10  Jim Meyering  <jim@meyering.net>
75653
75654         Ensure that no close failure goes unreported.
75655         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
75656         return early when it seems there's nothing to flush.
75657         Don't include __fpending.h.
75658
75659 2004-11-10  Jim Meyering  <jim@meyering.net>
75660
75661         * modules/closeout (Depends-on): Remove fpending.
75662
75663 2004-11-10  Jim Meyering  <jim@meyering.net>
75664
75665         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
75666
75667 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75668
75669         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
75670         gl_FUNC_STRFTIME.
75671         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
75672         and AC_REQUIRE when possible, to avoid duplicate checks.
75673         Check for <wchar.h>.
75674
75675 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
75676
75677         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
75678
75679 2004-11-09  Bruno Haible  <bruno@clisp.org>
75680
75681         * m4/sockpfaf.m4: New file.
75682
75683 2004-11-05  Bruno Haible  <bruno@clisp.org>
75684
75685         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
75686         Reported by Mark D. Baushke <mdb@cvshome.org>.
75687
75688 2004-11-04  Bruno Haible  <bruno@clisp.org>
75689
75690         2004-09-11  Bruno Haible  <bruno@clisp.org>
75691                 * allocsa.valgrind: New file.
75692         2004-02-06  Bruno Haible  <bruno@clisp.org>
75693                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
75694                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
75695                 Reported by Christopher Seip <chris.seip@hp.com>.
75696
75697 2004-11-04  Bruno Haible  <bruno@clisp.org>
75698
75699         * modules/allocsa (Files): Add lib/allocsa.valgrind.
75700         (Makefile.am): Distribute it.
75701
75702 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
75703
75704         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
75705         with errno == ERANGE if the buffer is too small.
75706         Problem reported by Mark D. Baushke.
75707
75708 2004-11-03  Albert Chin  <china@thewrittenword.com>
75709             Paul Eggert  <eggert@cs.ucla.edu>
75710
75711         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
75712         equivalent, substitute $ac_type for equivalent type rather than
75713         blindly using uint32_t *always* which won't work if uint32_t is not
75714         available.  Define _UINT32_T to work around typedef of uint32_t if
75715         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
75716         2.5.1.
75717
75718 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75719
75720         * m4/jm-macros.m4: Sync from coreutils.
75721         (gl_MACROS): Check for mbrlen, for pathchk.
75722         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
75723
75724 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75725
75726         * lib/xreadlink.c (MAXSIZE): New macro.
75727         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
75728         size does not exceed MAXSIZE.  Avoid cast.
75729         As suggested by Mark D. Baushke in
75730         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
75731         if readlink fails with buffer size just under MAXSIZE, try again
75732         with MAXSIZE.
75733
75734 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75735
75736         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
75737
75738 2004-11-02  Derek R. Price  <derek@ximbiot.com>
75739         and  Paul Eggert  <eggert@cs.ucla.edu>
75740
75741         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
75742         (get_date): Overparenthesize to avoid GCC warning.
75743
75744 2004-11-02  Bruno Haible  <bruno@clisp.org>
75745
75746         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
75747         returns void.
75748
75749 2004-11-02  Bruno Haible  <bruno@clisp.org>
75750
75751         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
75752         function returns void.
75753
75754 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
75755
75756         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
75757         fflush_unlocked, flockfile, funlockfile, funlockfile,
75758         fputs_unlocked, putc_unlocked.
75759
75760 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
75761
75762         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75763         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
75764         already declared.
75765
75766 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75767
75768         * modules/getdate (Files): Add doc/getdate.texi.
75769         (Depends-on): Add setenv, xalloc.
75770
75771 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75772
75773         * lib/getdate.y: Add support for TZ="foo" within a date string.
75774         Fix some bugs near time_t boundaries.  Reject dates with
75775         out-of-range components, e.g., "Sept 31".
75776         Include <stdlib.h>, "setenv.h", "xalloc.h".
75777         (ISDIGIT_LOCALE): Remove; unused.
75778         Note that the TZ and time functions used here are not reentrant.
75779         (mktime_ok, get_tz): New functions.
75780         (TZBUFSIZE): New constant.
75781         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
75782         This requires that we sometimes generate our own TZ="XXX..." setting.
75783
75784 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75785
75786         * doc/getdate.texi: New file, from coreutils with modifications for
75787         the new TZ parsing.
75788
75789 2004-10-27  Derek R. Price  <derek@ximbiot.com>
75790
75791         * lib/mktime.c (not_equal_tm): Remove redundant check.
75792
75793 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75794
75795         * modules/regex (lib_SOURCES): Add regex.c.
75796         Reported by James Youngman in
75797         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
75798
75799 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75800
75801         * lib/getdate.y: Use Bison 1.875 features, and some minor
75802         code cleanups.  This change does not affect semantics.
75803         Don't include <stdlib.h>; no longer needed.
75804         Don't include unlocked-io.h; only the "#if TEST" code uses
75805         stdio, and performance isn't crucial there.
75806         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
75807         Bison 1.875 features as described below.
75808         All uses of "PC." replaced by "pc->".
75809         (YYSTYPE): Add a forward declaration.
75810         (yylex, yyerror): Use full prototypes in forward decls.
75811         Use "%pure-parser" rather than obsolescent "%pure_parser".
75812         Use %parse-param and %lex-param instead of obsolescent
75813         YYPARSE_PARAM and YYLEX_PARAM.
75814         (meridian_table, month_and_day_table, time_units_table,
75815         relative_time_table, time_zone_table, military_table,
75816         lookup_zone, lookup_word, get_date):
75817         Use NULL instead of 0 where appropriate.
75818         (to_hour): Avoid abort (), to avoid a dependency on
75819         stdlib.h.
75820         (yyerror, yylex): Now accepts parser_control * arg.
75821         (main) [TEST]: Use '\0' rather than 0 for char.
75822
75823 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75824
75825         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
75826
75827 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75828
75829         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
75830         It's now the caller's responsibility to handle the case where
75831         !HAVE_GETPAGESIZE && !defined getpagesize.
75832
75833         * lib/mktime.c (leapyear): Arg is long int, not int.
75834
75835 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
75836
75837         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
75838
75839 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
75840
75841         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
75842         missing.  Problem reported by James Youngman.
75843
75844 2004-10-16  Simon Josefsson  <jas@extundo.com>
75845
75846         * gnulib-tool: Fix comments.  Fix parse problem.
75847         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
75848
75849 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
75850
75851         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
75852         implementation of getopt_long.  Problem reported by Alexander Taler in:
75853         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
75854
75855 2004-10-15  Bruno Haible  <bruno@clisp.org>
75856
75857         * gnulib-tool: Untabify. Initialize supplied_libname.
75858         (func_usage): More homogenous output.
75859         (func_modules_transitive_closure, func_modules_to_filelist,
75860         func_emit_lib_Makefile_am): New functions.
75861         (func_import): New function, extracted from big case statement. Use
75862         func_get_license, func_modules_transitive_closure,
75863         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
75864         opt_lgpl. Don't use test -a, as it's not portable.
75865         (func_create_testdir): Use func_modules_transitive_closure,
75866         func_modules_to_filelist, func_emit_lib_Makefile_am.
75867
75868 2004-10-15  Bruno Haible  <bruno@clisp.org>
75869
75870         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
75871
75872 2004-10-15  Bruno Haible  <bruno@clisp.org>
75873
75874         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
75875         the portions belonging to each module.
75876         Suggested by Derek Robert Price <derek@ximbiot.com>.
75877
75878 2004-10-12  Simon Josefsson  <jas@extundo.com>
75879
75880         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75881         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
75882         to real functions.
75883
75884 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75885
75886         * modules/vsnprintf: New file.
75887
75888 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75889
75890         * m4/vsnprintf.m4: New file.
75891
75892 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75893
75894         * lib/vsnprintf.h: New file.
75895         * lib/vsnprintf.c: New file.
75896
75897 2004-10-11  Bruno Haible  <bruno@clisp.org>
75898
75899         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
75900         vsnprintf.
75901
75902 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75903
75904         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
75905
75906 2004-10-07  Bruno Haible  <bruno@clisp.org>
75907
75908         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
75909         fits into the provided buffer.
75910
75911 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75912
75913         * lib/diacrit.c, diacrit.h: Add GPL notice.
75914
75915         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
75916         notice.
75917         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
75918         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
75919         This avoids a potential constant-folding bug.
75920
75921 2004-10-05  Bruno Haible  <bruno@clisp.org>
75922
75923         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
75924         for the declaration of strsep.
75925
75926 2004-10-05  Bruno Haible  <bruno@clisp.org>
75927
75928         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
75929
75930 2004-10-04  Simon Josefsson  <jas@extundo.com>
75931
75932         * modules/memmem: New file.
75933         * tests/test-memmem.c: New file.
75934         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
75935
75936 2004-10-04  Simon Josefsson  <jas@extundo.com>
75937
75938         * m4/memmem.m4: New file.
75939
75940 2004-10-04  Simon Josefsson  <jas@extundo.com>
75941
75942         * lib/memmem.h: New file.
75943         * lib/memmem.c: New file, taken from glibc.
75944
75945 2004-10-04  Simon Josefsson  <jas@extundo.com>
75946
75947         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
75948         '#ifdef USE_UNLOCKED_IO'.
75949
75950 2004-10-04  Simon Josefsson  <jas@extundo.com>
75951
75952         * config/srclist.txt: Add memmem from glibc.
75953
75954 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75955
75956         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
75957
75958         * modules/argmatch, modules/argp, modules/closeout, modules/error,
75959         modules/exclude, modules/getdate, modules/getline,
75960         modules/getndelim2, modules/getpass, modules/getpass-gnu,
75961         modules/getusershell, modules/linebuffer, modules/md5,
75962         modules/mountlist, modules/posixtm, modules/readtokens,
75963         modules/readutmp, modules/regex, modules/sha1,
75964         modules/version-etc, modules/yesno:
75965         Remove dependency on unlocked-io.
75966
75967 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75968
75969         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
75970
75971         * m4/unlocked-io.m4: Add copyright notice.
75972         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
75973
75974 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75975
75976         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
75977         * lib/xmalloc.c (xmemdup): Likewise.
75978         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
75979         XFREE): Remove these long-obsolescent macros.
75980         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
75981         * lib/xstrdup.c: Remove.
75982
75983         * lib/regex.c (re_comp): Cast gettext return value to char *,
75984         Problem reported by Martin Neitzel via Mark D. Baushke.
75985
75986 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75987
75988         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
75989         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
75990         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
75991         regex.c, sha1.c, version-etc.c, yesno.c:
75992         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
75993         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
75994         the includer's responsibility.
75995
75996         Sync from coreutils.
75997
75998         * lib/modechange.c (mode_compile): Don't decrement a pointer that
75999         points to the start of a string, as the C Standard says the
76000         resulting behavior is undefined.
76001
76002         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
76003         simple -> simple_backups, numbered_existing ->
76004         numbered_existing_backups, numbered -> numbered_backups
76005         to avoid shadowing problems.  All uses changed.
76006         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
76007         * lib/backupfile.c (check_extension, numbered_backup):
76008         Rename locals to avoid shadowing 'basename'.
76009         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
76010         once.
76011
76012         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
76013         * lib/.cvsignore: Add getopt.h.
76014
76015 2004-10-04  Bruno Haible  <bruno@clisp.org>
76016
76017         * modules/README: New file.
76018         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
76019         not a module.
76020
76021 2004-10-02  Jim Meyering  <jim@meyering.net>
76022
76023         * lib/dirfd.h, getpagesize.h: Add copyright notice.
76024
76025 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76026
76027         * modules/strsep: New file.
76028
76029 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76030
76031         * m4/strsep.m4: New file.
76032
76033 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
76034
76035         * lib/strsep.h: New file.
76036         * lib/strsep.c: New file.
76037
76038 2004-10-01  Simon Josefsson  <jas@extundo.com>
76039
76040         * lib/snprintf.c (snprintf): Handle size==0.
76041
76042 2004-10-01  Simon Josefsson  <jas@extundo.com>
76043             Bruno Haible  <bruno@clisp.org>
76044
76045         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
76046         (snprintf): Declare 'args'.
76047
76048 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
76049
76050         * lib/snprintf.c: Remove comments as to why each header is needed.
76051
76052 2004-10-01  Bruno Haible  <bruno@clisp.org>
76053
76054         * MODULES.html.sh: Add strsep.
76055
76056 2004-09-30  Simon Josefsson  <jas@extundo.com>
76057
76058         * modules/snprintf: New file.
76059
76060 2004-09-30  Simon Josefsson  <jas@extundo.com>
76061
76062         * m4/snprintf.m4: New file.
76063
76064 2004-09-30  Simon Josefsson  <jas@extundo.com>
76065
76066         * lib/snprintf.h, lib/snprintf.c: New files.
76067
76068 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
76069
76070         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
76071         (hol_entry_help): Never translate an empty string.
76072         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
76073         * lib/argp.h (OPTION_NO_TRANS): New option.
76074
76075 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76076
76077         * modules/argp (Maintainer): Replace Simon Josefsson
76078         by Sergey Poznyakoff.
76079
76080 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76081
76082         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
76083         changes merged back into glibc.
76084
76085 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
76086
76087         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
76088
76089 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
76090
76091         * lib/xvasprintf.c: Include xalloc.h.
76092         (xvasprintf): Use xalloc_die, not xmalloc_die.
76093
76094 2004-09-29  Bruno Haible  <bruno@clisp.org>
76095
76096         * modules/alloca-opt: New file, derived from modules/alloca.
76097         * modules/allocsa: Depend on alloca-opt instead of alloca.
76098         * modules/setenv: Likewise.
76099         * modules/vasnprintf: Likewise.
76100         * MODULES.html.sh: Add alloca-opt.
76101
76102 2004-09-28  Simon Josefsson  <jas@extundo.com>
76103
76104         * gnulib-tool: New parameter --lgpl, to asseert that modules are
76105         LGPL, and to replace license template from GPL to LGPL.
76106
76107 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
76108
76109         * modules/dummy: Change license to LGPL.
76110
76111 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
76112
76113         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
76114
76115 2004-09-24  Simon Josefsson  <jas@extundo.com>
76116
76117         * modules/minmax (License): Change from GPL to LGPL.
76118
76119 2004-09-23  Simon Josefsson  <jas@extundo.com>
76120
76121         * gnulib-tool (--import): Typo.
76122
76123 2004-09-23  Simon Josefsson  <jas@extundo.com>
76124
76125         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
76126
76127 2004-09-22  Bruno Haible  <bruno@clisp.org>
76128
76129         * modules/*: Add 'License' field.
76130         * gnulib-tool: Accept --extract-license option.
76131         (func_get_license): New function.
76132
76133 2004-09-21  Bruno Haible  <bruno@clisp.org>
76134
76135         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
76136         Reported by Simon Josefsson.
76137
76138 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76139
76140         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
76141         gl_AC_TYPE_LONG_LONG.
76142
76143 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76144
76145         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
76146
76147 2004-09-18  Simon Josefsson  <jas@extundo.com>
76148         and  Paul Eggert  <eggert@cs.ucla.edu>
76149
76150         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
76151         calls with autoreconf.  Define GL_LIB.
76152
76153 2004-09-14  Karl Berry  <karl@gnu.org>
76154
76155         * config/srclist.txt: unsync setenv.c, sigh.
76156
76157 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76158
76159         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
76160         Problem reported by Bruno Haible in:
76161         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
76162
76163 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76164
76165         * config/srclist.txt: Comment out argp-pvh.c.
76166
76167 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
76168
76169         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
76170         in case some system header has #define'd it.  Problem reported by
76171         Soeren D. Schulze in
76172         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
76173
76174 2004-09-09  Karl Berry  <karl@gnu.org>
76175
76176         * regex.[ch]: delete from the root.  These were supposed to be
76177                 synced with emacs cvs, but this has not happened for about
76178                 a year, and anyway nothing else uses emacs regex.[ch].
76179                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
76180                 lib/regex[.ch] is untouched.
76181
76182 2004-09-09  Bruno Haible  <bruno@clisp.org>
76183
76184         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
76185
76186 2004-09-09  Bruno Haible  <bruno@clisp.org>
76187
76188         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
76189         modifications.
76190         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
76191
76192 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
76193
76194         * modules/xvasprintf: New file.
76195         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
76196
76197 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
76198
76199         * lib/xvasprintf.h: New file.
76200         * lib/xvasprintf.c: New file.
76201         * lib/xasprintf.c: New file.
76202
76203 2004-09-08  Bruno Haible  <bruno@clisp.org>
76204
76205         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
76206
76207 2004-09-08  Bruno Haible  <bruno@clisp.org>
76208
76209         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
76210         length is > INT_MAX.
76211         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
76212         more.
76213
76214 2004-09-08  Bruno Haible  <bruno@clisp.org>
76215
76216         * lib/stdint_.h: New file, taken from GNU clisp.
76217
76218 2004-09-08  Bruno Haible  <bruno@clisp.org>
76219             Oskar Liljeblad  <oskar@osk.mine.nu>
76220
76221         * modules/stdint: New file.
76222         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
76223
76224 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76225
76226         Import from coreutils.
76227         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
76228         strings on unbounded length.  alloca's performance benefits aren't
76229         that important here.
76230         (V_STRDUP): Remove.
76231         (parse_with_separator): New function, with most of the internals
76232         of the old parse_user_spec.  Allow user to omit both user and group,
76233         for compatibility with FreeBSD.
76234         Clone only the user name, not the entire spec.
76235         Do not set *uid, *gid unless entirely successful.
76236         Avoid memory leak in some failing cases.
76237         Fix regression for USER.GROUP reported by Dmitry V. Levin in
76238         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
76239         (parse_user_spec): Rewrite to use parse_with_separator.
76240
76241 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76242
76243         * modules/userspec: Don't depend on alloca.
76244
76245 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76246
76247         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
76248
76249 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76250
76251         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
76252         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
76253         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
76254
76255 2004-08-16  Simon Josefsson  <jas@extundo.com>
76256
76257         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
76258         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
76259         Add --dry-run for --import.
76260         Let user provided command line parameters override configure.ac
76261         settings.
76262
76263 2004-08-12  Simon Josefsson  <jas@extundo.com>
76264
76265         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
76266         as discussed with Paul Eggert in threads rooted at
76267         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
76268         and
76269         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
76270         Before, the test was empty, and relied on ELIDE_CODE in source
76271         code.)
76272         (gl_PREREQ_GETOPT): New macro.
76273         (gl_GETOPT): Use them.
76274
76275 2004-08-12  Simon Josefsson  <jas@extundo.com>
76276
76277         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
76278         * lib/getopt_.h: Renamed from getopt.h.
76279
76280 2004-08-12  Simon Josefsson  <jas@extundo.com>
76281
76282         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
76283         Change default library name from libfoo to libgnu.
76284         Now, if you have a configure.ac that says:
76285                 gl_SOURCE_BASE(gl)
76286                 gl_M4_BASE(gl/m4)
76287                 gl_MODULES(error getopt etcetera)
76288                 gl_INIT
76289         you can import all you need by running:
76290                 ../gnulib/gnulib-tool --import
76291
76292         * modules/getopt (Files): Rename getopt.h to getopt_.h.
76293         (Makefile.am): Rewrite, use logic from argz.
76294         (Include): Use <getopt.h> instead of "getopt.h".
76295
76296 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76297
76298         * modules/argp (Files): Add m4/unlocked-io.m4.
76299         (Depends-on): Add extensions.
76300
76301 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76302
76303         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
76304         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
76305         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
76306         Check for program_invocation_name, program_invocation_short_name,
76307         flockfile, funlockfile, features.h, _getopt_long_only_r.
76308
76309 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76310
76311         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
76312         its complicated substitute.
76313         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
76314         and program_invocation_name.
76315         (__argp_basename) [!_LIBC]: Remove; the only use was
76316         replaced by its body.
76317         (__argp_short_program_name): Change condition from
76318         !defined __argp_short_program_name to
76319         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
76320         to match argp-namefrob.h.
76321         (__argp_failure): Don't assume strerror_r returns char *.
76322         * lib/argp-parse.c (N_): Define unconditionally.
76323         (argp_default_options): Fill out initializers with 0 to avoid
76324         gcc warnings.
76325
76326 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
76327
76328         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
76329         getopt1.c.
76330
76331 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76332
76333         Merge from coreutils.
76334
76335         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
76336
76337         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
76338         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
76339
76340 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76341
76342         Merge from coreutils.
76343
76344         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
76345         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
76346         for Reliant Unix 5.43.
76347
76348         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
76349         (union fooround): Use uintmax_t, not long int.
76350         The rest is a merge from libc:
76351         [defined _LIBC]: Include <shlib-compat.h>.
76352         (_obstack) [defined _LIBC]: Remove after 2.3.4.
76353
76354         * lib/settime.c (settime): Recode to avoid warning with
76355         Sun Forte C 6U2.
76356
76357         * lib/strverscmp.c: Convert to UTF-8.
76358
76359 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
76360
76361         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
76362         m4/uintmax_t.m4.
76363
76364 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76365
76366         * modules/xalloc-die: New file.
76367         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
76368
76369         * modules/md5 (Files): Add m4/uint32_t.m4.
76370         * modules/sha1: Renamed from modules/sha.
76371         (Files):
76372         Rename lib/sha.h to lib/sha1.h.
76373         Rename lib/sha.c to lib/sha1.c.
76374         Rename m4/sha.m4 to m4/sha1.m4.
76375         (lib_SOURCES): Likewise.
76376         (configure.ac): Rename gl_SHA to gl_SHA1.
76377         (Include): sha.h -> sha1.h.
76378
76379 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76380
76381         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
76382         * m4/sha1.m4: Renamed from sha.m4.
76383         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
76384
76385 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
76386
76387         * lib/obstack.h (obstack_empty_p):
76388         Don't assume that chunk->contents is suitably aligned.
76389         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
76390         Likewise. Problem reported by Benno in
76391         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
76392
76393         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
76394         readable.  This could be improved further but it'd take some work.
76395
76396 2004-08-08  Simon Josefsson  <jas@extundo.com>
76397
76398         * modules/xgethostname (Depends-on): Remove exit and error (not
76399         used).
76400
76401         * modules/getpass-gnu: Add getpass.h.
76402         (Depends-on): Add stdbool.
76403         * modules/getpass: Add getpass.h.
76404
76405 2004-08-08  Simon Josefsson  <jas@extundo.com>
76406
76407         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
76408         Check getpass declaration.
76409
76410 2004-08-08  Simon Josefsson  <jas@extundo.com>
76411
76412         * lib/xgethostname.c: Don't include error.h (not used).
76413
76414         * lib/getpass.h: Add.
76415         * lib/getpass.c: Include getpass.h first.
76416
76417 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
76418
76419         * lib/xalloc-die.c: New file.
76420         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
76421         All uses removed.
76422         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
76423         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
76424         xalloc-die.c.
76425         (_, N_, xalloc_die): Move to xalloc-die.c.
76426         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
76427         so that we needn't mess with xalloc_msg_memory_exhausted.
76428
76429         * lib/sha1.h: Renamed from sha.h.
76430         (SHA1_H): Renamed from _SHA_H.
76431         (sha1_ctx): Renamed from sha_ctx.
76432         (sha1_init_ctx): Renamed from sha_init_ctx.
76433         (sha1_process_block): Renamed from sha_process_block.
76434         (sha1_process_bytes): Renamed from sha_process_bytes.
76435         (sha1_finish_ctx): Renamed from sha_finish_ctx.
76436         (sha1_read_ctx): Renamed from sha_read_ctx.
76437         (sha1_stream): Renamed from sha_stream.
76438         (sha1_buffer): Renamed from sha_buffer.
76439         * lib/sha1.c: Likewise; renamed from sha.c.
76440         Do not include <sys/types.h>.
76441         Include <stddef.h> rather than <stdlib.h>.
76442
76443 2004-08-08  Bruno Haible  <bruno@clisp.org>
76444
76445         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
76446         FILESYSTEM_PREFIX_LEN.
76447         * lib/progreloc.c: Likewise.
76448         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
76449
76450 2004-08-06  Simon Josefsson  <jas@extundo.com>
76451
76452         * modules/progname (Depends-on): Don't depend on stdbool.
76453
76454 2004-08-06  Simon Josefsson  <jas@extundo.com>
76455
76456         * modules/getsubopt: New file.
76457         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
76458         getsubopt.
76459
76460 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76461
76462         More merge from coreutils.
76463
76464         * m4/utimens.m4, m4/utimecmp.m4: New files.
76465         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
76466         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
76467         prereq.m4, sha.m4: Import changes from coreutils.
76468
76469 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76470
76471         More merge from coreutils.
76472         * modules/raise, modules/readtokens0, modules/utimens:
76473         * modules/utimecmp, module/xnanosleep: New files.
76474         * modules/strftime: Add lib/strftime.h.
76475         Change include from <time.h> to "strftime.h".
76476         * modules/yesno: Add lib/yesno.h.
76477         * modules/backupfile: Remove lib/addext.c.
76478         * modules/euidaccess: Add stat-macros.h.
76479         * modules/canonicalize, modules/euidaccess,
76480         modules/filemode, modules/lchown, modules/makepath,
76481         modules/rmdir, modules/stat: Likewise.
76482
76483 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
76484
76485         Merge from tar.
76486         * lib/argp-help.c (make_hol, hol_append): Don't assume that
76487         SIZE_MAX is a valid preprocessor constant.
76488         (__argp_basename): Change from "#ifndef _LIBC"
76489         to "#ifndef __argp_short_program_name", so that
76490         we don't compile these functions for tar.
76491
76492         More merges from coreutils.
76493         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
76494         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
76495         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
76496         * lib/addext.c: Remove; no longer needed.
76497         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
76498         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
76499         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
76500         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
76501         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
76502         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
76503         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
76504         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
76505         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
76506         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
76507         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
76508         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
76509         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
76510         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
76511         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
76512         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
76513         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
76514         Import changes from coreutils.
76515
76516 2004-08-05  Simon Josefsson  <jas@extundo.com>
76517
76518         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
76519
76520 2004-08-05  Simon Josefsson  <jas@extundo.com>
76521
76522         * m4/getsubopt.m4: New file.
76523
76524 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76525
76526         Merge from coreutils.
76527
76528         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
76529         * m4/getcwd-path-max.m4: New files.
76530
76531         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
76532         FILESYSTEM_PREFIX_LEN ->
76533         FILE_SYSTEM_PREFIX_LEN.
76534         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
76535         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
76536         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
76537         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
76538
76539         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
76540         prerequisite modules now handle the DOS stuff.
76541         Don't check for unistd.h.
76542
76543 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76544
76545         Merge from coreutils.
76546
76547         * lib/.gdb-history: Remove; this doesn't belong here.
76548
76549         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
76550         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
76551         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
76552         * lib/getcwd.c: New files.
76553
76554         * lib/dirname.h: Include <stdbool.h>.
76555         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
76556         for consistency with POSIX terminology.  All uses changed.
76557         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
76558         (strip_trailing_slashes): Use bool for booleans.
76559         * lib/stripslash.c (strip_trailing_slashes): Likewise.
76560
76561         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
76562         sometimes returns a positive errno value even when it succeeds.
76563         (print_errno_message) [!LIBC]: Fall back on strerror if
76564         __strerror_r fails.
76565
76566         * lib/path-concat.c (mempcpy): Don't define if a system header defines
76567         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
76568         (longest_relative_suffix): New function.
76569         (path_concat): Use it.  Assume first argument is not NULL.
76570         Port to DOS.  Omit redundant separators.
76571         Report an error instead of returning NULL.
76572         Use mempcpy instead of memcpy.
76573         (xpath_concat): Remove: not declared or used.
76574
76575         * lib/same.h: Include <stdbool.h>
76576         (same_name): Return bool, not int.
76577         * lib/same.c (same_name): Likewise.
76578         (errno): Don't declare; we assume C89 or better now.
76579
76580         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
76581         if not already defined.
76582
76583         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
76584         * lib/dup-safer.c (errno): Likewise.
76585
76586 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
76587
76588         Merge from coreutils.
76589         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
76590         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
76591         * modules/path-concat: Don't depend on strdup.
76592
76593 2004-08-03  Simon Josefsson  <jas@extundo.com>
76594
76595         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
76596         * lib/progname.h: Don't include stdbool.h.
76597
76598 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76599
76600         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
76601         * MODULES.html.sh (func_all_modules): Remove fatal.
76602
76603 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76604
76605         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
76606
76607 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
76608
76609         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
76610         working.
76611
76612 2004-08-02  Simon Josefsson  <jas@extundo.com>
76613
76614         * lib/getsubopt.h: New file, with comments from Bruno Haible.
76615         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
76616         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
76617
76618 2004-08-01  Simon Josefsson  <jas@extundo.com>
76619
76620         * lib/xgetdomainname.c: Include stdlib.h, for free().
76621
76622 2004-07-19  Bruno Haible  <bruno@clisp.org>
76623
76624         * MODULES.html.sh (func_all_modules): Add dummy.
76625
76626 2004-07-16  Simon Josefsson  <jas@extundo.com>
76627
76628         * modules/dummy: New file.
76629
76630 2004-07-16  Simon Josefsson  <jas@extundo.com>
76631
76632         * lib/dummy.c: New file.
76633
76634 2004-07-16  Bruno Haible  <bruno@clisp.org>
76635
76636         * lib/backupfile.h: Add extern "C" for C++.
76637         * lib/closeout.h: Likewise.
76638         * lib/copy-file.h: Likewise.
76639         * lib/findprog.h: Likewise.
76640         * lib/full-write.h: Likewise.
76641         * lib/pathname.h: Likewise.
76642         * lib/progname.h: Likewise.
76643         * lib/stpcpy.h: Likewise.
76644         * lib/stpncpy.h: Likewise.
76645         * lib/strcase.h: Likewise.
76646         * lib/strstr.h: Likewise.
76647         * lib/xalloc.h: Likewise.
76648
76649         * lib/mbswidth.h: Add extern "C" for C++.
76650         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
76651
76652 2004-07-13  Robert Millan  <robertmh@gnu.org>
76653
76654         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
76655
76656 2004-07-09  Simon Josefsson  <jas@extundo.com>
76657
76658         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
76659         failed without this.)
76660
76661 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76662
76663         * modules/chown (Files): Add lib/fchown-stub.c, since
76664         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
76665
76666 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
76667
76668         * lib/fchown-stub.c: New file.
76669
76670 2004-06-24  Jim Meyering  <jim@meyering.net>
76671
76672         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
76673
76674 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76675
76676         * modules/argz: Omit "#include".
76677
76678         * MODULES.html.sh (func_all_modules): Add calloc, to match
76679         2004-06-01 addition of calloc module.
76680
76681 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76682
76683         * m4/argz.m4: New file, which is autoupdated from libtool.
76684
76685 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76686
76687         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
76688         libtool.
76689
76690 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
76691
76692         * config/srclist-update: Don't insist on "USA." before the
76693         close-comment, as libtool omits the period and puts the */ on a
76694         separate line.
76695         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
76696         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
76697
76698 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
76699
76700         * modules/argz: New file.
76701         * MODULES.html.sh (func_all_modules): Add argz.
76702
76703 2004-06-12  Jim Meyering  <jim@meyering.net>
76704         and  Paul Eggert  <eggert@cs.ucla.edu>
76705
76706         * modules/hash (Files): Add lib/xalloc.h.
76707         * modules/pipe (Depends-on): Add wait-process.
76708         * modules/stat (Depends-on): Add xalloc.
76709         * modules/userspec (Files): Add lib/userspec.h.
76710         * modules/xstrto
76711
76712         Upgrade from gettext-0.13.
76713         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
76714         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
76715         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
76716
76717 2004-06-10  Jim Meyering  <jim@meyering.net>
76718
76719         * lib/calloc.c: New file.
76720
76721 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
76722
76723         * lib/getdate.y (yylex): Allow space between sign and number.
76724         Problem reported by Dan Jacobson.
76725
76726 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
76727
76728         Merge from coreutils CVS.
76729
76730         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
76731         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
76732         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
76733         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
76734         xstrtol.m4: Fix copyright date and/or serial number.
76735
76736         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
76737         See if we need an fchown replacement.
76738         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
76739         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
76740         and use the replacement function if we detect either defect.
76741
76742         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
76743         gl_UTIMECMP.
76744
76745 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
76746         and  Jim Meyering  <jim@meyering.net>
76747
76748         Merge from coreutils CVS.
76749
76750         * lib/stat-macros.h: New file, with contents from file-type.h
76751         and coreutils' system.h.
76752         * lib/file-type.c: Include "stat-macros.h".
76753         * lib/file-type.h (file_type): Move all macro definitions to new file,
76754         stat-macros.h.
76755
76756         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
76757         Wrap old code with this conditional.
76758         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
76759         function that does not dereference symlinks.
76760         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
76761
76762         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
76763         dependency problems.
76764         (xreadlink): Accept new arg SIZE, for efficiency.
76765         All decls and uses changed.
76766         * lib/xreadlink.h: Include <stddef.h>, for size_t.
76767
76768         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
76769         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
76770
76771         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
76772         sysexits.h.
76773
76774 2004-06-01  Jim Meyering  <jim@meyering.net>
76775
76776         * m4/calloc.m4: New file.
76777
76778 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
76779
76780         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
76781         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
76782         Also, fix a typo in a diagnostic.
76783
76784 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76785
76786         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
76787         or AC_FUNC_REALLOC.
76788
76789 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76790
76791         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
76792         macros to be defined.
76793         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
76794         the allocator returns NULL because the requested size is zero.
76795
76796 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76797
76798         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
76799         var.  Add comment explaining why libc still defines it.  This
76800         merges the following patch from glibc:
76801         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
76802
76803 2004-05-20  Andreas Schwab  <schwab@suse.de>
76804
76805         * m4/free.m4: Replace free if it not known to work, not the other
76806         way round.
76807
76808 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76809
76810         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
76811         present in glibc since revision 1.1 of this file.
76812         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
76813         obstack_alignment_mask, obstack_alloc, obstack_base,
76814         obstack_blank, obstack_blank_fast, obstack_chunk_size,
76815         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
76816         obstack_grow0, obstack_init, obstack_int_grow,
76817         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
76818         obstack_next_free, obstack_object_size, obstack_ptr_grow,
76819         obstack_ptr_grow_fast, obstack_room): Remove declarations of
76820         nonexistent functions.
76821
76822 2004-05-18  Karl Berry  <karl@gnu.org>
76823
76824         * config/srclist.txt: break link for vasnprintf.c.
76825
76826 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76827
76828         Port obstack to the AS/400, where pointers are 16 bytes wide and
76829         you cannot cast an integer to a valid pointer.  This patch is
76830         currently waiting to be integrated into glibc; see
76831         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
76832
76833         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
76834         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
76835         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
76836         (struct obstack): temp member is now a union of a pointer and
76837         an integer, instead of an integer.  All integer uses changed.
76838         This does not affect the physical layout of struct obstack,
76839         except on hosts (like the AS/400) where the size or alignment of
76840         void * is greater than that of ptrdiff_t.
76841         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
76842         __STDC__)]: Store temporary in pointer member of union, not
76843         integer member.
76844         * lib/obstack.c: Include <stddef.h>, for offsetof.
76845         (struct fooalign): Remove; it doesn't need a name.
76846         (union fooround): Change double to long double, and add void *.
76847         (DEFAULT_ALIGNMENT): Use offsetof to compute.
76848         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
76849         not a macro.  Hence the values are always int; so remove all
76850         casts-to-int in uses.
76851
76852 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76853
76854         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
76855         we can get this patch merged into glibc.
76856
76857 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76858             Paul Eggert  <eggert@cs.ucla.edu>
76859
76860         * m4/argp: Depend on alloca.
76861
76862 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76863             Paul Eggert  <eggert@cs.ucla.edu>
76864
76865         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
76866         freecoding.
76867
76868 2004-05-17  Bruno Haible  <bruno@clisp.org>
76869
76870         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
76871         precision that consists of a '.' followed by an empty digit string.
76872         Patch by Tor Lillqvist <tml@iki.fi>.
76873
76874 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76875
76876         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
76877         for backward compatibility with older code.  We need our own
76878         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
76879         it under some other name, and our alloca.h will define it.
76880
76881 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76882             Derek Price  <derek@ximbiot.com>
76883
76884         * lib/alloca.c: Include <alloca.h>, to get our interface.
76885         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
76886         include <alloca.h> first.  Use C89 prototype for alloca; this
76887         requires including <stddef.h> for size_t.  Use extern "C" if C++.
76888         Use #elif for simplicity, since we can assume C89 now.
76889         Don't try to source the system alloca.h since it will not be found
76890         and to prevent recursively including its replacement.
76891         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
76892         * lib/regex.c: Likewise.
76893
76894 2004-05-16  Derek Price  <derek@ximbiot.com>
76895             Paul Eggert  <eggert@cs.ucla.edu>
76896
76897         getline cleanup.  This changes the getndelim2 API: both order of
76898         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
76899         no delimiter).
76900
76901         * lib/getline.c: Don't include stddef.h or stdio.h, since our
76902         interface does that.
76903         (getline): Always use getdelim, so that we don't have two
76904         copies of this code.
76905         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
76906         if available.
76907         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
76908         (GETNDELIM2_MAXIMUM): New macro.
76909         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
76910         instead of the old practice of delim2==0.  All callers changed.
76911         Return -1 on overflow, instead of returning junk.
76912         Do not set *linesize unless allocation succeeds.
76913         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
76914         that we include sys/types.h.
76915         * lib/getnline.h: Likewise.
76916         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
76917         (getndelim2): Reorder arguments.
76918         * lib/getnline.c (getnline, getndelim):
76919         Don't discard the NMAX argument.
76920         (getnline): Invoke getndelim, to avoid code duplication.
76921         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
76922         of (size_t) -1 by callers of the getnline family.
76923
76924 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76925
76926         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
76927         Check for gettimeofday.
76928         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
76929         Check for settimeofday, stime.
76930
76931 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76932
76933         * lib/nanosleep.c (suspended): Change its type from int to
76934         sig_atomic_t volatile.
76935         (first_call): Make it private to rpl_nanosleep, and have it
76936         be zero initially as that's a bit faster.
76937         (my_usleep): Round up fractional times instead of truncating them,
76938         as this is the usual meaning for 'sleep'.
76939
76940         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
76941         doesn't work.
76942         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
76943         (ENOSYS): Define if not defined.
76944         (settime): Fall back on stime if it exists and settimeofday fails.
76945         But don't bother with fallbacks if a method fails with errno == EPERM.
76946
76947 2004-05-11  Jim Meyering  <jim@meyering.net>
76948
76949         Prior to this change, the save_cwd caller required read access to the
76950         current directory on most systems (ones with the fchdir function).
76951
76952         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
76953         fails, try write-only, and finally, resort to using xgetcwd.
76954
76955 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
76956
76957         * lib/obstack.c, obstack.h: Import changes from libc.
76958
76959 2004-04-28  Bruno Haible  <bruno@clisp.org>
76960
76961         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
76962         also implicitly appends .exe to executables.
76963         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
76964         accepts Windows pathnames.
76965         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
76966         Treat Cygwin like Windows, since it now accepts Windows pathnames.
76967         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
76968         Treat Cygwin like Windows, since it now accepts Windows pathnames.
76969         Reported by Derek Robert Price <derek@ximbiot.com>.
76970
76971 2004-04-21  Karl Berry  <karl@gnu.org>
76972
76973         * config/srclist.txt (localcharset.c): break sync.
76974
76975 2004-04-20  Paul Eggert  <eggert@twinsun.com>
76976
76977         * m4/host-os.m4: Add a copyright notice.
76978
76979 2004-04-20  Jim Meyering  <jim@meyering.net>
76980
76981         Change UTILS_ to gl_ in AC_DEFINE'd names.
76982         Change utils_- and jm_-prefixed variables, too.
76983         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
76984         UTILS_FUNC_MKDIR_TRAILING_SLASH.
76985         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
76986
76987         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
76988         Don't emit trailing blanks.
76989         Also rename jm_-prefixed variables to have gl_ prefix.
76990
76991         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
76992         Also rename jm_-prefixed variables to have gl_ prefix.
76993
76994         * m4/jm-macros.m4: Reflect the renamings.
76995         * m4/prereq.m4: Likewise.
76996
76997 2004-04-20  Jim Meyering  <jim@meyering.net>
76998
76999         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
77000         memory.
77001
77002 2004-04-20  Jim Meyering  <jim@meyering.net>
77003             Bruno Haible  <bruno@clisp.org>
77004
77005         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
77006         memory when realloc fails.
77007
77008 2004-04-19  Jim Meyering  <jim@meyering.net>
77009
77010         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
77011         now that readutmp.c may call `free (0)'.
77012
77013 2004-04-19  Bruno Haible  <bruno@clisp.org>
77014
77015         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
77016         * m4/inttypes_h.m4: Likewise.
77017         * m4/stdint_h.m4: Likewise.
77018         * m4/intmax_t.m4: Likewise.
77019         * m4/uintmax_t.m4: Likewise.
77020
77021 2004-04-18  Jim Meyering  <jim@meyering.net>
77022
77023         * m4/prereq.m4: Don't forbid jm_ prefix.
77024
77025         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
77026         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
77027         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
77028         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
77029         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
77030         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
77031         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
77032         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
77033         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
77034         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
77035         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
77036         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
77037         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
77038         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
77039         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
77040         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
77041         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
77042         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
77043         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
77044
77045 2004-04-18  Jim Meyering  <jim@meyering.net>
77046
77047         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
77048         failure, don't leak memory and do call END_UTMP_ENT.
77049
77050 2004-04-16  Jim Meyering  <jim@meyering.net>
77051
77052         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
77053         coreutils' stat program.
77054         (gl_PREREQ): Don't require jm_PREREQ_STAT.
77055
77056 2004-04-11  Paul Eggert  <eggert@twinsun.com>
77057
77058         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
77059         C89.
77060         (CHAR_BIT): Remove, since we assume C89.
77061         Include <stdint.h> if available, as per current Autoconf CVS advice.
77062
77063 2004-03-31  Jim Meyering  <jim@meyering.net>
77064
77065         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
77066         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
77067         * m4/xalloc.m4: Likewise.
77068
77069 2004-03-30  Paul Eggert  <eggert@twinsun.com>
77070
77071         Merge from coreutils.
77072
77073         * m4/inttostr.m4: New file.
77074         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
77075         Require AM_STDBOOL_H and gl_TIMESPEC instead.
77076         Require gl_CLOCK_TIME.
77077         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
77078
77079 2004-03-30  Paul Eggert  <eggert@twinsun.com>
77080
77081         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
77082         not bool, to be more consistent with Unix conventions.
77083         Suggested by Bruno Haible.
77084
77085         Merge from coreutils.
77086
77087         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
77088         * lib/umaxtostr.c: New files.
77089
77090         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
77091         the usual <time.h> dance.
77092         (get_date): Change signature to support fractional time stamps.
77093         All callers changed.
77094         * lib/getdate.y: Include "getdate.h" first, as we can now
77095         assume C89 and don't need to worry about 'const'.
77096         Similarly, include "unlocked-io.h" near start, not in middle.
77097         Include <limits.h>.
77098         (textint.value): Use long int rather than int.
77099         (textint.digits): Use size_t rather than int.
77100         (BILLION, LOG10_BILLION): New constants.
77101         (parser_control): New member rel_ns.  Members day_ordinal,
77102         time_zone, month, day, hour, minutes, rel_year, rel_month,
77103         rel_day, rel_hour, rel_minutes, rel_seconds
77104         are now long int, not int.  Member seconds is now struct timespec,
77105         not int.  New member timespec_seen.  Members dates_seen, days_seen,
77106         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
77107         not int.
77108         (%union.intval): Now long int, not int.
77109         New member timespec.
77110         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
77111         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
77112         (spec): Now is a timespec or an item list.
77113         (timespec, items): New nonterminals.
77114         (time, rel, relunit, number, get_date):
77115         Add support for fractional seconds.
77116         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
77117         (gmtime, localtime, mktime): Remove decls; not needed with C89.
77118         (to_hour): First arg is now long int, not int.
77119         (to_year): Returns long int, not int.
77120         Don't treat year -70 like 70.
77121         (tm_diff): Returns long int, not int.
77122         (lookup_word): Use bool instead of int when appropriate.
77123         (yylex): Use size_t for count, not int.
77124         Detect overflow when parsing large integer constants.
77125         Add support for fractions.
77126         (get_date): Make pointers 'const' if possible.
77127         Use more-portable code to detect integer overflow.
77128         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
77129         Don't use ctime; it's not reliable if the year has >4 digits.
77130
77131         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
77132         This is for compatibility with BSD.
77133
77134         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
77135         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
77136         From coreutils' system.h.
77137
77138         * lib/userspec.c: Don't include "posixver.h".
77139         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
77140         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
77141         compatible extension.  Simplify code by removing a boolean int
77142         that was always nonzero if a string was nonnull.
77143
77144 2004-03-30  Jim Meyering  <jim@meyering.net>
77145
77146         Merge from coreutils.
77147
77148         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
77149         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
77150         on some systems one must include <grp.h> before it.
77151         Reported by Christian Krackowizer.
77152
77153 2004-03-30  Jim Meyering  <jim@meyering.net>
77154
77155         Merge from coreutils.
77156
77157         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
77158
77159         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
77160         an empty input stream.
77161
77162         * lib/readtokens.c: Include <stdbool.h>.
77163         (readtoken): Use `size_t' rather than int/long.
77164         All callers adjusted.
77165         Use `bool' rather than `int' where appropriate.
77166         Use memset rather than an explicit loop.
77167         Use x2nrealloc rather than xrealloc.
77168         Allow the use of `\0' as a delimiter.
77169         (readtokens): Likewise.
77170         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
77171
77172 2004-03-30  Jim Meyering  <jim@meyering.net>
77173
77174         * m4/realloc.m4: Remove file, since now it does no more than
77175         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
77176         the `configure.ac' section of module/realloc.
77177         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
77178
77179 2004-03-30  Bruno Haible  <bruno@clisp.org>
77180
77181         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
77182         nonnull.
77183
77184 2004-03-29  Paul Eggert  <eggert@twinsun.com>
77185
77186         Merge changes to getloadavg.c from coreutils and Emacs.
77187
77188         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
77189         Define to an expression, not to the empty string.
77190         Include cloexec.h and xalloc.h.
77191         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
77192         Use set_cloexec_flag rather than rolling our own.
77193         * lib/cloexec.c, lib/cloexec.h: New files.
77194
77195 2004-03-29  Paul Eggert  <eggert@twinsun.com>
77196
77197         * m4/cloexec.m4: New file.
77198
77199 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77200
77201         * lib/getopt.h: Sync with libc CVS.
77202
77203 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77204             Bruno Haible  <bruno@clisp.org>
77205
77206         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
77207         mbswidth.
77208
77209 2004-03-18  Paul Eggert  <eggert@twinsun.com>
77210             Bruno Haible  <bruno@clisp.org>
77211
77212         * lib/mbswidth.h: Include <wchar.h> only if
77213         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
77214         <wchar.h>.
77215         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
77216
77217 2004-03-09  Paul Eggert  <eggert@twinsun.com>
77218
77219         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
77220         Sync with libc CVS.
77221         * lib/getopt_int.h: New file, also synced from libc.
77222
77223 2004-03-09  Paul Eggert  <eggert@twinsun.com>
77224
77225         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
77226         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
77227         Bring back getopt.c, getopt.h, getopt1.c.
77228
77229 2004-03-07  Paul Eggert  <eggert@twinsun.com>
77230
77231         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
77232         All uses changed.  Check for sa_sigaction member; this fixes
77233         a bug first reported by Jason Andrade in
77234         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
77235
77236 2004-03-07  Paul Eggert  <eggert@twinsun.com>
77237
77238         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
77239         '#if' expressions.  Unlike the code it replaces, it does not
77240         depend on (defined _SC_PAGESIZE).  However, it does depend on
77241         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
77242         first reported by Jason Andrade in
77243         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
77244
77245 2004-02-25  Simon Josefsson  <jas@extundo.com>
77246
77247         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
77248
77249 2004-02-25  Simon Josefsson  <jas@extundo.com>
77250
77251         * lib/strdup.h: New file.
77252         * lib/strdup.c: Include it.
77253         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
77254         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
77255
77256 2004-02-23  Karl Berry  <karl@gnu.org>
77257
77258         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
77259         (from fencepost.gnu.org:/gd/gnuorg).
77260
77261 2004-02-23  Karl Berry  <karl@gnu.org>
77262
77263         * config/srclistvars.sh (GNUORG) [karl]: redefine.
77264         * config/srclist.txt: add maintain/standards documents.
77265
77266 2004-02-18  Bruno Haible  <bruno@clisp.org>
77267
77268         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
77269         Reported by Derek Robert Price <derek@ximbiot.com>.
77270
77271 2004-02-16  Karl Berry  <karl@gnu.org>
77272
77273         * config/mkinstalldirs, install-sh: update from automake.
77274
77275 2004-02-06  Karl Berry  <karl@gnu.org>
77276
77277         * m4/po.m4: update from gettext 0.14.1.
77278
77279 2004-02-06  Karl Berry  <karl@gnu.org>
77280
77281         * lib/config.charset: update from gettext 0.14.1.
77282
77283 2004-02-05  Paul Eggert  <eggert@twinsun.com>
77284
77285         Add comments and code, prompted by suggestions from Bruno Haible
77286         for sh-quote.
77287         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
77288         describing the enum quoting_style values.
77289         * lib/quotearg.c (quotearg_alloc): New function.
77290         (quotearg_buffer_restyled): Treat lone { and } as special.
77291         Treat = as special.  Work around bug with older shells
77292         that "see" a '\' that is really the 2nd byte of a multibyte char.
77293         Quote empty string with shell_quoting_style.
77294
77295 2004-02-03  Bruno Haible  <bruno@clisp.org>
77296
77297         * m4/pipe.m4: New file, from GNU gettext.
77298
77299 2004-02-03  Bruno Haible  <bruno@clisp.org>
77300
77301         * lib/pipe.h: New file, from GNU gettext.
77302         * lib/pipe.c: New file, from GNU gettext.
77303
77304 2004-01-27  Bruno Haible  <bruno@clisp.org>
77305
77306         * m4/execute.m4: New file, from GNU gettext.
77307
77308 2004-01-27  Bruno Haible  <bruno@clisp.org>
77309
77310         * lib/execute.h: New file, from GNU gettext.
77311         * lib/execute.c: New file, from GNU gettext.
77312         * lib/w32spawn.h: New file, from GNU gettext.
77313
77314 2004-01-24  Paul Eggert  <eggert@twinsun.com>
77315
77316         Merge from diffutils.
77317
77318         * lib/file-type.c (file_type): Add typed memory objects.
77319         * lib/file-type.h (S_TYPEISTMO): New macro.
77320
77321         * lib/c-stack.h (c_stack_action): Remove argv argument.
77322         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
77323         (die): Don't calculate message unless segv_action returns.
77324         (get_stack_location, min_address_from_argv, max_address_from_argv,
77325         volatile stack_base, volatile_stack_size): Remove.
77326         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
77327         that every segmentation violation is a stack overflow.  (Ouch!)
77328         See Debian bug 136249 (still outstanding) for more info about why
77329         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
77330
77331 2004-01-24  Paul Eggert  <eggert@twinsun.com>
77332
77333         Exit-status fix from coreutils.
77334
77335         Use exit_failure consistently in place of EXIT_FAILURE,
77336         so that program exit statuses are consistent on failure.
77337
77338         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
77339         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
77340         * lib/argmatch.h: Comment fix to match the above.
77341         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
77342         Now a macro referring to exit_failure, instead of a separate
77343         variable.  Include "exitfail.h" to get it.
77344         * lib/xstrtol.h: Include "exitfail.h".
77345         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
77346
77347         * lib/long-options.c (parse_long_options): Use prototype
77348         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
77349         for clarity.
77350
77351 2004-01-21  Jim Meyering  <jim@meyering.net>
77352
77353         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
77354         so as not to conflict with a different-sized __mktime_internal
77355         function in GNU libc.
77356         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
77357         Problem building statically-linked `ls' reported by Michael Brunnbauer.
77358
77359 2004-01-20  Karl Berry  <karl@gnu.org>
77360
77361         * config/config.guess: update from config.
77362
77363         * config/srclistvars.sh: GNUWWWLICENSES for karl.
77364
77365 2004-01-20  Bruno Haible  <bruno@clisp.org>
77366
77367         Safer stack allocation.
77368         * lib/setenv.c: Include allocsa.h.
77369         (alloca): Remove fallback definition.
77370         (freea): Remove macro.
77371         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
77372         instead of freea.
77373
77374 2004-01-20  Bruno Haible  <bruno@clisp.org>
77375
77376         * m4/eealloc.m4: New file, from GNU gettext.
77377
77378 2004-01-20  Bruno Haible  <bruno@clisp.org>
77379
77380         * m4/allocsa.m4: New file, from GNU gettext.
77381
77382 2004-01-20  Bruno Haible  <bruno@clisp.org>
77383
77384         * lib/xallocsa.h: New file, from GNU gettext.
77385         * lib/xallocsa.c: New file, from GNU gettext.
77386
77387 2004-01-20  Bruno Haible  <bruno@clisp.org>
77388
77389         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
77390
77391 2004-01-20  Bruno Haible  <bruno@clisp.org>
77392
77393         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
77394         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
77395         specially.
77396
77397 2004-01-20  Bruno Haible  <bruno@clisp.org>
77398
77399         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
77400         patch.
77401
77402 2004-01-20  Bruno Haible  <bruno@clisp.org>
77403
77404         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
77405
77406 2004-01-20  Bruno Haible  <bruno@clisp.org>
77407
77408         * lib/eealloc.h: New file.
77409
77410 2004-01-20  Bruno Haible  <bruno@clisp.org>
77411
77412         * lib/binary-io.h: Avoid warnings on Cygwin.
77413
77414 2004-01-20  Bruno Haible  <bruno@clisp.org>
77415
77416         * lib/allocsa.h: New file, from GNU gettext.
77417         * lib/allocsa.c: New file, from GNU gettext.
77418
77419 2004-01-18  Karl Berry  <karl@gnu.org>
77420
77421         * doc/gpl.texi, doc/lgpl.texi: new files.
77422
77423 2004-01-18  Karl Berry  <karl@gnu.org>
77424
77425         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
77426         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
77427
77428 2004-01-15  Paul Eggert  <eggert@twinsun.com>
77429
77430         Merge from coreutils.
77431
77432         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
77433         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
77434         (gl_DEFAULT_POSIX2_VERSION): Move
77435         the documentation from 'configure' into 'config.hin',
77436         so that 'configure --help' isn't burdened by it and
77437         we don't have to worry about its formatting there.
77438         Reword the documentation so that it's more succinct
77439         and can be run together into a single paragraph.
77440         * m4/same.m4 (gl_SAME): Check for pathconf.
77441
77442 2004-01-15  Paul Eggert  <eggert@twinsun.com>
77443
77444         Merge from coreutils.
77445
77446         * lib/posixver.c: Include posixver.h.
77447
77448         * lib/same.c: Include <stdbool.h>, <limits.h>.
77449         (_POSIX_NAME_MAX): Define if not defined.
77450         (MIN): New macro.
77451         (same_name): If file names are silently truncated, report
77452         that the file names are the same if they are the same after
77453         the silent truncation.
77454
77455         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
77456         conversion function.
77457         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
77458         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
77459         longer needed.
77460
77461 2004-01-15  Jim Meyering  <jim@meyering.net>
77462
77463         Merge from coreutils.
77464
77465         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
77466         if no library is required.
77467         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
77468         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
77469         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
77470         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
77471         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
77472         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
77473         value, $ac_cv_search_crypt, if it's "none required".
77474         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
77475         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
77476         not gl_FUNC_GETLOADAVG.
77477         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
77478         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
77479
77480 2004-01-15  Jim Meyering  <jim@meyering.net>
77481
77482         Merge from coreutils.
77483
77484         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
77485         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
77486         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
77487
77488         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
77489         optional configure-time default.
77490
77491         * lib/version-etc.c (version_etc_copyright): Update copyright date.
77492
77493         * lib/xreadlink.c (xreadlink): Correct outdated comment.
77494
77495 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
77496
77497         Merge from coreutils.
77498
77499         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
77500         value, $ac_cv_search_nanosleep, if it's "none required".
77501
77502 2004-01-14  Paul Eggert  <eggert@twinsun.com>
77503
77504         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
77505         with like-named macro in fnmatch.c.
77506         (EXT): Use an internal constant instead.
77507
77508         Merge fnmatch patches from glibc.
77509         * lib/fnmatch.c (mbsinit): Remove define.
77510         Add libc_hidden_ver (__fnmatch, fnmatch).
77511         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
77512         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
77513
77514 2004-01-14  Karl Berry  <karl@gnu.org>
77515
77516         * config/install-sh: update from automake.
77517
77518 2004-01-13  Karl Berry  <karl@gnu.org>
77519
77520         * config/install-sh: update from automake.
77521
77522 2004-01-09  Karl Berry  <karl@gnu.org>
77523
77524         * config/install-sh: update from automake.
77525
77526 2004-01-05  Karl Berry  <karl@gnu.org>
77527
77528         * config/config.{sub,guess}: update from config.
77529
77530 2003-12-31  Karl Berry  <karl@gnu.org>
77531
77532         * config/depcomp: update from automake.
77533
77534 2003-12-14  Karl Berry  <karl@gnu.org>
77535
77536         * lib/config.charset: update from gettext-runtime.
77537
77538 2003-12-03  Paul Eggert  <eggert@twinsun.com>
77539
77540         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
77541         Bug reported by Alfred M. Szmidt.
77542
77543 2003-12-03  Bruno Haible  <bruno@clisp.org>
77544
77545         * m4/gettext.m4: Upgrade from gettext-0.13.
77546         * m4/po.m4: Upgrade from gettext-0.13.
77547         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
77548         * m4/intmax.m4: New file, from gettext-0.13.
77549         * m4/printf-posix.m4: New file, from gettext-0.13.
77550
77551 2003-11-29  Karl Berry  <karl@gnu.org>
77552
77553         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
77554
77555 2003-11-25  Paul Eggert  <eggert@twinsun.com>
77556             Bruno Haible  <bruno@clisp.org>
77557
77558         * lib/printf-parse.h: Don't include sys/types.h.
77559         (ARG_NONE): New macro.
77560         (char_directive): Change type of *arg_index fields to size_t.
77561         * lib/printf-parse.c: Don't include sys/types.h.
77562         (SSIZE_MAX): Remove macro.
77563         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
77564         Remove unnecessary overflow check.
77565         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
77566         fields.
77567
77568 2003-11-25  Bruno Haible  <bruno@clisp.org>
77569
77570         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
77571
77572 2003-11-25  Bruno Haible  <bruno@clisp.org>
77573
77574         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
77575         gt_TYPE_SSIZE_T.
77576
77577 2003-11-24  Paul Eggert  <eggert@twinsun.com>
77578
77579         * modules/alloca: Remove dependency on xalloc.
77580
77581 2003-11-24  Paul Eggert  <eggert@twinsun.com>
77582
77583         * lib/alloca.c: Remove dependency on xalloc module.
77584         (xalloc_die): Remove.
77585         (memory_full) [!defined emacs]: New macro.
77586         [!defined emacs]: Don't include xalloc.h.
77587         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
77588         address arithmetic overflows.  Change datatypes a bit to avoid
77589         unnecessary casts.
77590
77591 2003-11-22  Jim Meyering  <jim@meyering.net>
77592
77593         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
77594         s/size/size_t/.
77595
77596 2003-11-21  Karl Berry  <karl@gnu.org>
77597
77598         * config/config.{sub,guess}: update from config.
77599
77600 2003-11-18  Karl Berry  <karl@gnu.org>
77601
77602         * config/config.{sub,guess}: update from config.
77603
77604         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
77605
77606 2003-11-17  Paul Eggert  <eggert@twinsun.com>
77607
77608         * README: Mention that S+T cannot overflow if S is the size of
77609         an existing object and T is sufficiently small.
77610
77611 2003-11-17  Jim Meyering  <jim@meyering.net>
77612
77613         On systems without utime and without a utimes function capable of
77614         dealing with a NULL struct utimbuf* argument, this utime replacement
77615         could -- in unusual circumstances -- leak a file descriptor.
77616         * lib/utime.c: Include <unistd.h> and <errno.h>.
77617         (utime_null): Be sure to close `fd' and to preserve errno.
77618         Reported by Geoff Collyer via Arnold Robbins.
77619
77620 2003-11-17  Bruno Haible  <bruno@clisp.org>
77621
77622         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
77623         (Depends-on): Add xsize.
77624
77625 2003-11-17  Bruno Haible  <bruno@clisp.org>
77626
77627         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
77628
77629 2003-11-17  Bruno Haible  <bruno@clisp.org>
77630
77631         * lib/vasnprintf.c (alloca): Remove fallback definition.
77632         (freea): Remove definition.
77633         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
77634         Reported by Paul Eggert.
77635
77636 2003-11-16  Paul Eggert  <eggert@twinsun.com>
77637             Bruno Haible  <bruno@clisp.org>
77638
77639         Protect against address arithmetic overflow.
77640         * lib/printf-args.h: Include stddef.h.
77641         (arguments): Change type of field 'count' to size_t.
77642         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
77643         'unsigned int' where appropriate.
77644         * lib/printf-parse.h: Include sys/types.h.
77645         (char_directive): Change type of *arg_index fields to ssize_t.
77646         (char_directives): Change type of fields 'count', max_*_length to
77647         size_t.
77648         * lib/printf-parse.c: Include sys/types.h and xsize.h.
77649         (SSIZE_MAX): Define fallback value.
77650         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
77651         instead of 'int' where appropriate. Check a_allocated, d_allocated
77652         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
77653         * lib/vasnprintf.c: Include xsize.h.
77654         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
77655         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
77656         overflow. Avoid wraparound when converting a width or precision from
77657         decimal to binary.
77658
77659 2003-11-16  Bruno Haible  <bruno@clisp.org>
77660
77661         Update from GNU gettext.
77662         * lib/printf-parse.c: Generalize to it can be compiled for wide
77663         strings.
77664         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
77665         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
77666         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
77667         SNPRINTF): New macros.
77668         Don't include <alloca.h> if the file is used inside libintl.
77669         (local_wcslen): New function, for Solaris 2.5.1.
77670         (VASNPRINTF): Use it instead of wcslen.
77671
77672 2003-11-16  Bruno Haible  <bruno@clisp.org>
77673
77674         * lib/xsize.h (xmax): New function.
77675         (xsum, xsum3, xsum4): Declare as "pure" functions.
77676
77677 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77678
77679         * modules/xalloc (Files): Undo latest change, since xalloc.h
77680         no longer needs SIZE_MAX or PTRDIFF_MAX.
77681
77682 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77683
77684         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
77685         gl_PTRDIFF_MAX.
77686
77687 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77688
77689         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
77690         "return", to pacify some unknown compiler.  Problem reported
77691         by Joerg Schilling.
77692
77693 2003-11-12  Paul Eggert  <eggert@twinsun.com>
77694
77695         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
77696         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
77697         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
77698         heuristic is just as accurate as far as we know, and it removes a
77699         dependency on size_max.m4 and ptrdiff_max.m4.
77700
77701 2003-11-11  Bruno Haible  <bruno@clisp.org>
77702
77703         * modules/xsize (Files): Add m4/size_max.m4.
77704         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
77705
77706 2003-11-11  Bruno Haible  <bruno@clisp.org>
77707
77708         * m4/size_max.m4: New file.
77709         * m4/ptrdiff_max.m4: New file.
77710         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
77711         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
77712         (gl_XALLOC): Invoke it.
77713
77714 2003-11-11  Bruno Haible  <bruno@clisp.org>
77715
77716         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
77717         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
77718         defined.
77719
77720 2003-11-10  Paul Eggert  <eggert@twinsun.com>
77721
77722         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
77723         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
77724         rejected some allocations of exactly SIZE_MAX - 2 bytes.
77725         From Bruno Haible.
77726         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
77727         not (size_t) -1, since it's defined here.
77728
77729 2003-11-09  Karl Berry  <karl@gnu.org>
77730
77731         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
77732
77733 2003-11-06  Paul Eggert  <eggert@twinsun.com>
77734
77735         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
77736         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
77737         Reject sizes of exactly SIZE_MAX bytes.
77738         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
77739         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
77740
77741 2003-11-05  Bruno Haible  <bruno@clisp.org>
77742
77743         * lib/xsize.h: Include limits.h, to avoid a possible collision with
77744         SIZE_MAX defined in <limits.h> on Solaris.
77745
77746 2003-11-04  Jim Meyering  <jim@meyering.net>
77747
77748         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
77749         variable names, rather than @VAR@.
77750         * modules/poll: Likewise.
77751
77752 2003-11-04  Bruno Haible  <bruno@clisp.org>
77753
77754         * modules/xsize: New file.
77755         * modules/linebreak: Depend on xsize.
77756         * MODULES.html.sh (func_all_modules): Add xsize.
77757
77758 2003-11-04  Bruno Haible  <bruno@clisp.org>
77759
77760         * m4/xsize.m4: New file.
77761
77762 2003-11-04  Bruno Haible  <bruno@clisp.org>
77763
77764         * lib/xsize.h: New file.
77765         * lib/linebreak.c: Include xsize.h.
77766         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
77767         argument for overflow.
77768         Suggested by Paul Eggert.
77769
77770 2003-11-03  Karl Berry  <karl@gnu.org>
77771
77772         * config/config.{guess,sub}: update from config.
77773
77774 2003-11-03  Jim Meyering  <jim@meyering.net>
77775
77776         * modules/userspec (lib_SOURCES): Add userspec.h.
77777         (Include): Add "userspec.h".
77778         Improve description.
77779
77780 2003-11-03  Jim Meyering  <jim@meyering.net>
77781
77782         * lib/userspec.c: Include "userspec.h".
77783         * lib/userspec.h: New file.
77784
77785 2003-11-03  Bruno Haible  <bruno@clisp.org>
77786
77787         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
77788
77789 2003-11-03  Bruno Haible  <bruno@clisp.org>
77790
77791         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
77792         available, to avoid (extremely rare) race condition.
77793         Suggested by Paul Eggert.
77794
77795 2003-11-02  Karl Berry  <karl@gnu.org>
77796
77797         * config/srclist.txt (vasprintf.c): sync broken, sigh.
77798
77799 2003-10-31  Paul Eggert  <eggert@twinsun.com>
77800
77801         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
77802         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
77803         (read_filesystem_list): Set and use me_type_malloced.
77804         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
77805         whatever the type happens to be), for brevity and consistency.
77806         Check for size calculation overflow on Alphas running OSF/1.
77807
77808 2003-10-31  Jim Meyering  <jim@meyering.net>
77809
77810         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
77811
77812         * lib/linebuffer.c: Include <string.h> for declaration of memset.
77813
77814 2003-10-30  Paul Eggert  <eggert@twinsun.com>
77815             Bruno Haible  <bruno@clisp.org>
77816
77817         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
77818         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
77819
77820 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
77821
77822         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
77823         netbsd*-gnu*.  Suggested by Robert Millan.
77824
77825 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77826
77827         * modules/group-member: Depend on stdbool.
77828
77829 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77830
77831         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
77832
77833 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77834
77835         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
77836         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
77837         after the 'gnu' in these cases.  This fixes some bugs in the
77838         previous change, and is based on suggestions by Robert Millan.
77839
77840 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77841
77842         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
77843         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
77844         no longer needed.
77845         * lib/quotearg.c (quotearg_n_options): Use it.
77846         * lib/group-member.c: Include <stdbool.h>.
77847         (free_group_info): Arg is now const *; don't free arg.
77848         (get_group_info): Now returns bool and accepts struct group_info *,
77849         rather than returning a malloc'ed struct group_info *.
77850         All uses changed.  Check for overflow in internal size calculation.
77851
77852         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
77853         rather than xmalloc/xrealloc.
77854         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
77855         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
77856         conformance bug: the old code used a pointer after freeing the
77857         storage that it addressed.
77858         * lib/hash.c (hash_initialize): Simplify the code by using
77859         xalloc_oversized rather than doing it by hand.
77860         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
77861         the buffer preserved.  Use free and xmalloc instead.
77862         * lib/quotearg.c (quotearg_n_options): Likewise.
77863         Use a simpler test for size overflow.  Don't use xalloc_oversized
77864         because unsigned int might be wider than size_t (!); this suggests
77865         that we should switch from unsigned int to size_t for slot numbers.
77866
77867 2003-10-28  Paul Eggert  <eggert@twinsun.com>
77868
77869         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
77870         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
77871         NetBSD kernels.  Requested by Richard Stallman.
77872
77873 2003-10-27  Paul Eggert  <eggert@twinsun.com>
77874
77875         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
77876         to allocate the returned structure.  Do not allocate a subarray,
77877         as x2nrealloc will do that.
77878         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
77879         instead of xnrealloc.
77880         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
77881
77882 2003-10-27  Bruno Haible  <bruno@clisp.org>
77883
77884         * lib/stdbool_.h: Better support for BeOS.
77885
77886 2003-10-26  Paul Eggert  <eggert@twinsun.com>
77887
77888         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
77889         now uses inline.
77890
77891 2003-10-26  Paul Eggert  <eggert@twinsun.com>
77892
77893         * lib/xalloc.h (xalloc_oversized): New static inline function, for
77894         callers that want to do their own size-overflow checking.  Include
77895         <stdbool.h>, since xalloc_oversized returns bool.
77896         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
77897         to use xalloc_oversized.
77898
77899         Add two functions x2realloc, x2nrealloc, for programs that grow
77900         arrays dynamically by doubling their sizes.
77901         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
77902         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
77903         New functions.
77904
77905         Port to C99 semantics for 'inline' of external functions.
77906         Bug reported by Bruno Haible.
77907         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
77908         with the old contents of xnmalloc.
77909         (xnmalloc, xmalloc): Use it.
77910         (xnrealloc_inline): New static inline function,
77911         with the old contents of xnrealloc.
77912         (xnrealloc, xrealloc): Use it.
77913
77914         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
77915         that.
77916
77917 2003-10-26  Karl Berry  <karl@gnu.org>
77918
77919         * config/srclist.txt (COPYING.DOC): no longer available from
77920         /gd/gnuorg; don't know where the ultimate source is.
77921
77922 2003-10-25  Paul Eggert  <eggert@twinsun.com>
77923
77924         Fix several address-calculation bugs in the hash modules,
77925         plus some minor code cleanup.
77926
77927         * lib/hash.h: Include <stdbool.h>, for bool.
77928         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
77929         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
77930         hash_get_n_entries, hash_get_max_bucket_length,
77931         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
77932         hash_rehash): Use size_t rather than unsigned.
77933         * lib/hash.c (struct hash_table, hash_get_n_buckets,
77934         hash_get_n_buckets_used, hash_get_n_entries,
77935         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
77936         hash_get_entries, hash_do_for_each, hash_string, is_prime,
77937         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
77938         Likewise.
77939         (SIZE_MAX): Define if not defined.
77940         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
77941         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
77942         hash_print):
77943         Use const * when possible.
77944         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
77945         (check_tuning): Fix bug: if tuning parameters were very close to
77946         0 or 1, rounding errors could have caused subscript violations.
77947         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
77948         (hash_initialize): Add 'fail:' label
77949         to free table and return NULL, and use it to simplify code.
77950         Use calloc rather than clearing the storage ourself.
77951         (hash_initialize, hash_rehash): Check for arithmetic overflow in
77952         buffer size calculations.
77953         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
77954         Include <stddef.h>, for size_t.
77955         * lib/hash-pjw.c (hash_pjw): Likewise.
77956         Switch to method described by Bruno Haible.
77957         Include <limits.h>, for CHAR_BIT.
77958         (SIZE_BITS): New macro.
77959
77960 2003-10-23  Paul Eggert  <eggert@twinsun.com>
77961
77962         * m4/getline.m4 (AM_FUNC_GETLINE):
77963         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
77964         hosts.  Problem reported by Derek Robert Price in
77965         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
77966         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
77967         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
77968
77969 2003-10-21  Paul Eggert  <eggert@twinsun.com>
77970
77971         * lib/getndelim2.c (getndelim2): When size calculation overflows,
77972         ceiling the allocation at NMAX bytes rather than silently
77973         discarding input bytes before NMAX is reached.  This makes
77974         a difference only if NMAX exceeds SIZE_MAX / 2.
77975
77976         * lib/obstack.c: Merge from glibc.
77977         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
77978         Add libc_hidden_def (_obstack_newchunk).
77979         (_obstack_free) [! defined _LIBC]: Remove.
77980         [defined _LIBC]: Make a strong alias from obstack_free, rather than
77981         a clone of the function body.
77982         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
77983         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
77984
77985         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
77986         glibc.
77987         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
77988         arg to memcpy.
77989
77990         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
77991         (obstack_ptr_grow_fast, obstack_int_grow_fast):
77992         Don't use lvalue casts, as GCC plans to remove support for them
77993         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
77994         was also present in the non-GCC version, indicating that this
77995         code had always been buggy and had never been widely used.
77996         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
77997         Use the fast variant of each macro, rather than copying the
77998         definiens of the fast variant; that way, we'll be more likely to
77999         catch future bugs in the fast variants.
78000
78001 2003-10-20  Bruno Haible  <bruno@clisp.org>
78002
78003         * modules/wait-process: New file.
78004         * MODULES.html.sh (func_all_modules): Add wait-process.
78005
78006 2003-10-20  Bruno Haible  <bruno@clisp.org>
78007
78008         * m4/wait-process.m4: New file.
78009
78010 2003-10-20  Bruno Haible  <bruno@clisp.org>
78011
78012         * lib/wait-process.h: New file, from GNU gettext.
78013         * lib/wait-process.c: New file, from GNU gettext.
78014
78015 2003-10-19  Jim Meyering  <jim@meyering.net>
78016
78017         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
78018         HPUX 10.20.
78019
78020 2003-10-18  Karl Berry  <karl@gnu.org>
78021
78022         * config/config.guess: update from config.
78023
78024 2003-10-16  Paul Eggert  <eggert@twinsun.com>
78025
78026         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
78027         (getgroups): First arg is int, not size_t.
78028         Don't let 'free' mangle errno.
78029
78030 2003-10-16  Paul Eggert  <eggert@twinsun.com>
78031
78032         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
78033
78034 2003-10-16  Karl Berry  <karl@gnu.org>
78035
78036         * config/config.{guess,sub}: update from config.
78037
78038 2003-10-16  Jim Meyering  <jim@meyering.net>
78039
78040         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
78041         memcpy.
78042
78043 2003-10-15  Paul Eggert  <eggert@twinsun.com>
78044
78045         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
78046         (SIZE_MAX): Remove.
78047         (new_exclude, add_exclude_file): Initial size no longer needs to
78048         be a power of 2.
78049         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
78050         our own address arithmetic overflow checking.
78051
78052         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
78053         (fnmatch): Do not alloca more than 2000 wide characters;
78054         instead, use malloc for large buffers.
78055         Check for address arithmetic overflow, and return -1
78056         with errno set to ENOMEM in that case.
78057         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
78058         (NEW_PATTERN): Do not alloca more than 8000 bytes;
78059         instead, return -1.  Check for address arithmetic overflow.
78060
78061 2003-10-14  Paul Eggert  <eggert@twinsun.com>
78062
78063         Handle invalid suffixes and overflow independently, so that
78064         callers can treat them independently as needed.  Fix some bugs in
78065         suffix handling, e.g., "100k@" was not diagnosed as an invalid
78066         suffix for a human-readable blocksize.  The major caller-visible
78067         change is the addition of a new
78068         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
78069         that both overflow and suffix chars were found.
78070
78071         * lib/human.c (humblock): Don't check separately for invalid suffix
78072         char; that is xstrtoumax's job (now that its bug is fixed).
78073         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
78074         INTMAX_MAX]: New macros.
78075         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
78076         TYPE_MAXIMUM): New macros.
78077         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
78078         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
78079         if overflow occurs, as it's what __strtol does and it's more useful
78080         in practice.
78081         (__xstrtol): If __strtol reports some error other than ERANGE,
78082         reflect it to the caller as LONGINT_INVALID.  If it reports
78083         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
78084         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
78085         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
78086         value.
78087         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
78088         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
78089         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
78090         [defined UINTMAX_MAX]: New macros.
78091
78092 2003-10-14  Bruno Haible  <bruno@clisp.org>
78093
78094         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
78095
78096 2003-10-14  Bruno Haible  <bruno@clisp.org>
78097
78098         * m4/sig_atomic_t: New file, from GNU gettext.
78099         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
78100
78101 2003-10-14  Bruno Haible  <bruno@clisp.org>
78102
78103         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
78104         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
78105         Also use volatile where needed.
78106
78107 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78108
78109         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
78110         Change maintainer from Bruno Haible to 'all'.
78111
78112 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78113
78114         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
78115
78116 2003-10-12  Paul Eggert  <eggert@twinsun.com>
78117
78118         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
78119         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
78120         and define in terms of the other primitives.
78121         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
78122         (SIZE_MAX): Define if not already defined.
78123         (array_size_overflow): New function.
78124         (xalloc_die): Abort instead of exiting if 'error' returns.
78125         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
78126         (xmalloc, xrealloc): Use them.
78127         (xcalloc): Check for address arithmetic overflow.
78128         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
78129         a bit faster than strcpy.
78130
78131 2003-10-10  Simon Josefsson  <jas@extundo.com>
78132
78133         * modules/argp (Depends-on): Add restrict and strcase.
78134
78135 2003-10-10  Simon Josefsson  <jas@extundo.com>
78136
78137         * m4/argp.m4: Add AC_C_INLINE.
78138
78139 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78140
78141         Merge getpass from libc, plus a few fixes.
78142
78143         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
78144         Include <stdbool.h>.
78145         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
78146         __fsetlocking to empty.
78147         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
78148         do include <bits/libc-lock.h>.
78149         Do not include <fcntl.h>; not needed.
78150         [_LIBC]: Include <wchar.h>.
78151         (NOTCANCEL_MODE): New macro.
78152         (flockfile, funlockfile) [_LIBC]: New macros.
78153         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
78154         [!_LIBC]: New macros.
78155         (call_fclose): New function.
78156         (getpass): Use it.  Save tty stream separately; this simplifies the
78157         code and makes it more reliable if stdin happens to equal stdout.
78158         Invoke __fsetlocking on tty.
78159         Handle thread cancellation if needed.
78160         Namespace cleanup (use __tcgetattr, __getline).
78161         Use bool for Booleans.
78162         [USE_IN_LIBIO]: Handle wide streams.
78163         [!_LIBC]: Unconditionally do the fseek, since we don't know what
78164         stream might go where.
78165
78166         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
78167         doesn't have to include <stdio.h> before us.
78168         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
78169         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
78170         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
78171         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
78172         if not declared, so that we can use getpass.c code from libc without
78173         rewriting it.
78174         (flockfile, ftrylockfile, funlockfile): New macros.
78175
78176 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78177
78178         * modules/getpass: Depend on stdbool.
78179
78180 2003-10-08  Paul Eggert  <eggert@twinsun.com>
78181
78182         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
78183
78184 2003-10-07  Karl Berry  <karl@gnu.org>
78185
78186         * config/config.{guess,sub}: update from config.
78187
78188 2003-10-06  Jim Meyering  <jim@meyering.net>
78189             Bruno Haible  <bruno@clisp.org>
78190
78191         This lets translators provide better translations for the
78192         "Written by ..." part of --version output.
78193         * lib/version-etc.h: Include stdarg.h.
78194         (version_etc_copyright): Declare as readonly.
78195         (version_etc): Make this function variadic with a NULL-terminated list
78196         of author name strings.
78197         (version_etc_va): New declaration.
78198         * lib/version-etc.c: Include stdarg.h, stdlib.h.
78199         (version_etc_copyright): Declare as readonly.
78200         (version_etc_va): New function. Provide a different translatable string
78201         for each possible number of authors < 10. Abbreviate when there are 10
78202         authors or more.
78203         (version_etc): Make this function variadic. Call version_etc_va.
78204         Suggestion from Gary V. Vaughan.
78205
78206         * lib/long-options.h (parse_long_options): Change prototype: the
78207         authors string is moved to the end and becomes variadic.
78208         * lib/long-options.c: Include stdarg.h.
78209         (parse_long_options): Make this function variadic, too.
78210         Call version_etc_va, not version_etc.
78211
78212 2003-10-06  Bruno Haible  <bruno@clisp.org>
78213
78214         * modules/version-etc-2: Remove file.
78215         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
78216
78217 2003-10-06  Bruno Haible  <bruno@clisp.org>
78218
78219         * modules/fatal-signal: New file.
78220         * MODULES.html.sh (func_all_modules): Add fatal-signal.
78221
78222 2003-10-06  Bruno Haible  <bruno@clisp.org>
78223
78224         * m4/fatal-signal.m4: New file.
78225         * m4/signalblocking.m4: New file, from GNU gettext.
78226
78227 2003-10-06  Bruno Haible  <bruno@clisp.org>
78228
78229         * lib/version-etc-2.h: Remove file.
78230         * lib/version-etc-2.c: Remove file.
78231
78232 2003-10-06  Bruno Haible  <bruno@clisp.org>
78233
78234         * lib/fatal-signal.h: New file, from GNU gettext.
78235         * lib/fatal-signal.c: New file, from GNU gettext.
78236
78237 2003-10-05  Paul Eggert  <eggert@twinsun.com>
78238
78239         * README: Rework advice for preventing empty .o files.
78240         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
78241         not <sys/types.h>.
78242
78243 2003-10-04  Karl Berry  <karl@gnu.org>
78244
78245         * lib/argp*: update from libc.
78246
78247 2003-10-04  Karl Berry  <karl@gnu.org>
78248
78249         * config/config.{guess,sub}: update from config.
78250
78251 2003-10-02  Bruno Haible  <bruno@clisp.org>
78252
78253         * modules/lchown (Include): Add lchown.h.
78254         * modules/time_r (Include): Use "..." syntax.
78255         * modules/xgetdomainname (Include): Add xgetdomainname.h.
78256
78257 2003-10-01  Simon Josefsson  <jas@extundo.com>
78258
78259         * MODULES.html.sh (func_all_modules): Move gethostname from section
78260         'based on' to section 'lacking' POSIX:2001.
78261
78262 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
78263
78264         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
78265         to output mode on the same stream.
78266
78267 2003-09-29  Paul Eggert  <eggert@twinsun.com>
78268
78269         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
78270         Fix arg typo in previous patch.
78271
78272 2003-09-28  Jim Meyering  <jim@meyering.net>
78273
78274         * lib/error.c: Correct cpp indentation.
78275
78276 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78277
78278         * modules/free: New file.
78279
78280 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78281
78282         * m4/free.m4: New file.
78283
78284 2003-09-27  Paul Eggert  <eggert@twinsun.com>
78285
78286         * lib/minmax.h (MIN, MAX)
78287         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
78288         Omit the special code that used __typeof__, since we worry that
78289         it could be more trouble than it's worth.  See:
78290         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
78291         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
78292
78293         * lib/free.c: New file.
78294
78295 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
78296
78297         Trivial fixes to Makefile.am parts of module listings.
78298         * modules/strstr: Append strstr.h to lib_SOURCES.
78299         * modules/strcase: Likewise, for strcase.h.
78300
78301 2003-09-27  Karl Berry  <karl@gnu.org>
78302
78303         * config/mkinstalldirs: update from automake.
78304
78305 2003-09-26  Paul Eggert  <eggert@twinsun.com>
78306
78307         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
78308         (error_tail): Do not loop, reallocating temporary buffer, since
78309         the output cannot contain more wide characters than the input
78310         contains bytes, the size must be big enough already.  This avoids
78311         one potential size overflow calculation.  Check for size overflow
78312         when calculating temporary buffer size.  Free temporary buffer
78313         when done, if it was allocated with malloc; this plugs a memory
78314         leak.  Remove casts from void * to pointers, that are no longer
78315         needed now that we're assuming C89 or better.
78316
78317         Merge error changes from glibc.
78318
78319         * lib/error.c, error.h: Update copyright notice header to match glibc.
78320         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
78321         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
78322         Disable cancellation while printing error.
78323         * lib/error.h: Prepend __ to parameter names.
78324
78325 2003-09-26  Jim Meyering  <jim@meyering.net>
78326
78327         * lib/error.c (error_tail): Move some declarations
78328         into inner scope where the local variables are used.
78329
78330 2003-09-26  Bruno Haible  <bruno@clisp.org>
78331
78332         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
78333         stpncpy().
78334         Don't define stpncpy through config.h; it's now done through stpncpy.h.
78335
78336 2003-09-26  Bruno Haible  <bruno@clisp.org>
78337
78338         * lib/stpncpy.h (gnu_stpncpy): New declaration.
78339         (stpncpy): Define as alias for gnu_stpncpy.
78340         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
78341
78342 2003-09-25  Simon Josefsson  <jas@extundo.com>
78343
78344         * lib/xgetdomainname.h: New file.
78345         * lib/xgetdomainname.c: New file.
78346
78347 2003-09-25  Simon Josefsson  <jas@extundo.com>
78348             Bruno Haible  <bruno@clisp.org>
78349
78350         * modules/getdomainname: New file.
78351         * modules/xgetdomainname: New file.
78352         * MODULES.html.sh (func_all_modules): Add getdomainname,
78353         xgetdomainname.
78354
78355 2003-09-25  Simon Josefsson  <jas@extundo.com>
78356             Bruno Haible  <bruno@clisp.org>
78357
78358         * m4/getdomainname.m4: New file.
78359
78360 2003-09-25  Simon Josefsson  <jas@extundo.com>
78361             Bruno Haible  <bruno@clisp.org>
78362
78363         * lib/getdomainname.h: New file.
78364         * lib/getdomainname.c: New file.
78365
78366 2003-09-25  Karl Berry  <karl@gnu.org>
78367
78368         * lib/argp-fmtstream.c, argp-help.c: update from libc.
78369
78370 2003-09-25  Karl Berry  <karl@gnu.org>
78371
78372         * config/install-sh: update from automake.
78373
78374 2003-09-25  Bruno Haible  <bruno@clisp.org>
78375
78376         * modules/version-etc-2: New file, from modules/version-etc with
78377         modifications.
78378         * MODULES.html.sh (func_all_modules): Add version-etc-2.
78379
78380 2003-09-25  Bruno Haible  <bruno@clisp.org>
78381
78382         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
78383         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
78384
78385 2003-09-24  Simon Josefsson  <jas@extundo.com>
78386
78387         * modules/xgethostname: Add xgethostname.h.
78388
78389 2003-09-24  Paul Eggert  <eggert@twinsun.com>
78390
78391         * lib/linebuffer.c (freebuffer): Don't free the argument, just
78392         the buffer associated with the argument.  Bug reported by
78393         Simon Josefsson.
78394
78395 2003-09-24  Paul Eggert  <eggert@twinsun.com>
78396
78397         * README: Document assumptions that 'int' is at least 32 bits
78398         wide, that integer arithmetic is 2's complement without overflow,
78399         that there are no holes in integer values, that adding sizes of
78400         two nonoverlapping objects can't overflow, and that all-bits-zero
78401         yields scalar zero.  Fix spelling and capitalization typos.
78402
78403 2003-09-19  Karl Berry  <karl@gnu.org>
78404
78405         * lib/argp.h: update from libc.
78406
78407 2003-09-17  Paul Eggert  <eggert@twinsun.com>
78408
78409         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
78410         to avoid spurious warnings like "AC_RUN_IFELSE was called before
78411         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
78412
78413 2003-09-17  Paul Eggert  <eggert@twinsun.com>
78414
78415         * gnulib-tool: Use "test -h", not "test -L", for portability
78416         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
78417         (tags_regexp): Remove, since \| doesn't conform to POSIX.
78418         (sed_extract_prog): Issue s commands one-by-one, rather than
78419         using \| in one s command.
78420
78421 2003-09-16  Paul Eggert  <eggert@twinsun.com>
78422
78423         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
78424         input error, instead of returning NULL the next time we are called
78425         (and therefore losing track of errno).
78426
78427 2003-09-16  Bruno Haible  <bruno@clisp.org>
78428
78429         * gnulib-tool (func_create_testdir): Warn about duplicated
78430         dependencies.
78431
78432 2003-09-15  Paul Eggert  <eggert@twinsun.com>
78433
78434         * modules/argmatch, modules/fatal, modules/obstack,
78435         modules/xalloc, modules/xgethostname: Sort dependencies by
78436         importance, not alphabetically.
78437
78438 2003-09-15  Paul Eggert  <eggert@twinsun.com>
78439
78440         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
78441         fails, so that the caller gets the proper errno.
78442
78443         * lib/readutmp.c (read_utmp): Likewise.
78444         Check for fstat error.  Close stream and free storage
78445         when failing.
78446
78447 2003-09-14  Karl Berry  <karl@gnu.org>
78448
78449         * config/srclist.txt (strdup.c): disable for c89 changes.
78450
78451 2003-09-14  Jim Meyering  <jim@meyering.net>
78452
78453         * lib/getloadavg.c: Correct cpp indentation.
78454         * lib/strdup.c: Likewise.
78455         * lib/vasnprintf.c: Likewise.
78456
78457 2003-09-14  Bruno Haible  <bruno@clisp.org>
78458
78459         * modules/fwriteerror: New file.
78460         * MODULES.html.sh (func_all_modules): Add fwriteerror.
78461
78462 2003-09-14  Bruno Haible  <bruno@clisp.org>
78463
78464         * lib/fwriteerror.h: New file.
78465         * lib/fwriteerror.c: New file.
78466
78467 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78468
78469         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
78470         modules/xgethostname, modules/xalloc: Depend on exit.
78471
78472 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78473
78474         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
78475
78476         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
78477         and AC_MINIX, too, so that their extensions are available.
78478
78479         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
78480         This macro has been superseded by gl_BACKUPFILE.
78481
78482         More patches to assume C89 or better.
78483
78484         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
78485
78486         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
78487         unconditionally.
78488         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
78489         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
78490         Include <string.h>, <stdlib.h> unconditionally.
78491         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
78492         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
78493         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
78494         headers or for string.h.
78495         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
78496         or strtoul.
78497
78498         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
78499         headers.
78500         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
78501         * m4/userspec.m4 (gl_USERSPEC): Likewise.
78502         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
78503         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
78504         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78505         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
78506         memcpy, memset.
78507         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
78508         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
78509         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
78510         strtol.
78511         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
78512         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
78513         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
78514         strtoul.
78515
78516 2003-09-12  Paul Eggert  <eggert@twinsun.com>
78517
78518         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
78519         * lib/obstack.c [!defined _LIBC]: Likewise.
78520         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
78521         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
78522         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
78523
78524         More changes to assume C89 or better.
78525
78526         * lib/error.c (error_tail): Assume vprintf.
78527
78528         * lib/argmatch.c (getenv): Remove decl.
78529         * lib/progreloc.c (get_full_program_name): Define via prototype.
78530         * lib/setenv.c (clearenv): Likewise.
78531         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
78532         needed.
78533         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
78534         (malloc, memcpy): Remove decls.
78535         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
78536         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
78537         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
78538         (memcpy): Remove macro.
78539         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
78540         (__P): Remove.  All uses removed.
78541         (PTR): Remove.  All uses changed to void *.
78542         (CHAR_BIT, NULL): Remove.
78543         (spaces, zeros, memset_space, memset_zero)
78544         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
78545         Remove.
78546         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
78547         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
78548         Define with prototype.
78549         Remove now-unnecessary prototype decl.
78550         (extra_args_spec): Assume ANSI C.  All uses changed.
78551         (extra_args_spec_iso): Remove.
78552         (my_strftime, emacs_strftimeu): Define via prototype.
78553         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
78554         unconditionally.
78555         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
78556         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
78557         (strtoul, strtol): Remove decls.
78558         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
78559         LONG_MAX): Remove.
78560         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
78561         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
78562         (LOCALE_PARAM_PROTO): New macro.
78563         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
78564         (INTERNAL (strtol), strtol): Define with a prototype.
78565         (PARAMS): Remove.  All uses removed.
78566         * lib/tempname.c: Include <string.h> unconditionally.
78567         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
78568         * lib/xgethostname.c (main): Define with a prototype.
78569         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
78570         Include <stdlib.h> unconditionally.
78571         (calloc, malloc, realloc, free): Remove decls.
78572         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
78573         Include <stdlib.h> unconditionally.  Sort include file names.
78574         (strtod): Remove.
78575         (xstrtod): Define with a prototype.
78576         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
78577         (strtol, strtoul): Remove decls.
78578
78579 2003-09-11  Paul Eggert  <eggert@twinsun.com>
78580
78581         More patches to assume C89 or better.
78582         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
78583         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
78584         string.h, memchr, STDC_HEADERS.
78585
78586 2003-09-11  Paul Eggert  <eggert@twinsun.com>
78587
78588         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
78589         Include <stdlib.h>, <string.h> unconditionally.
78590         Remove now-unnecessary cast to char *.
78591         * lib/strnlen.c: Include <string.h> unconditionally.
78592         * lib/yesno.c (yesno): Define with a prototype.
78593
78594 2003-09-11  Bruno Haible  <bruno@clisp.org>
78595
78596         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
78597
78598 2003-09-10  Jim Meyering  <jim@meyering.net>
78599
78600         * lib/error.c: Correct indentation of cpp directives.
78601
78602 2003-09-10  Bruno Haible  <bruno@clisp.org>
78603
78604         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
78605         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
78606         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
78607         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
78608         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
78609         <stdlib.h> and <string.h> checks.
78610         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
78611         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
78612
78613 2003-09-10  Bruno Haible  <bruno@clisp.org>
78614
78615         * lib/strcspn.c: Include <string.h> unconditionally.
78616         * lib/strpbrk.c: Include <string.h> unconditionally.
78617         * lib/strstr.c: Include <string.h> unconditionally.
78618         * lib/unicodeio.c: Include <string.h> unconditionally.
78619         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
78620         * lib/unsetenv.c: Likewise.
78621         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
78622         * lib/yesno.c: Include <stdlib.h> unconditionally.
78623         (rpmatch): Add prototype.
78624
78625 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78626
78627         More patches to assume C89 or better.
78628         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
78629         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
78630         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
78631         or for string.h.
78632         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
78633         stdlib.h.
78634         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
78635         C headers.
78636         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
78637         string.h.
78638         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
78639         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
78640         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
78641         or for string.h.
78642         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
78643         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
78644         C headers.
78645         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
78646         memcpy.
78647         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
78648         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
78649         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
78650         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
78651         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
78652         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
78653         string.h, free.
78654         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
78655         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
78656         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
78657         C headers, or for string.h.
78658         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
78659         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
78660         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
78661         headers, memory.h, stdlib.h, string.h, strings.h.
78662         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
78663         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
78664         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
78665         strchr.
78666         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
78667         headers, memory.h, string.h.
78668         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
78669         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
78670         free.
78671         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
78672         headers.
78673         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
78674         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
78675         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
78676         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
78677         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
78678
78679 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78680
78681         More K&R removal.
78682
78683         * lib/acosl.c (main): Use a prototype.
78684         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
78685         tanl.c: Likewise.
78686
78687         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
78688
78689         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
78690         (getopt, etopt_long, getopt_long_only, _getopt_internal)
78691         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
78692         with a prototype.
78693         * lib/getopt.c (const): Remove macro.
78694         Include <string.h> unconditionally.
78695         (my_index): Remove; all uses changed to strchr.
78696         (strlen): Remove decl.
78697         (exchange): Remove forward decl; no longer needed.
78698         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
78699         Define with prototype.
78700         * lib/getopt1.c (const): Remove macro.
78701         (getopt_long, getopt_long_only, main): Define with prototype.
78702
78703         * lib/getugroups.c: Include <string.h> unconditionally.
78704
78705         * lib/getusershell.c: Include <stdlib.h> unconditionally.
78706         (getusershell, setusershell, endusershell, readname, main):
78707         Define with prototypes.
78708
78709         * lib/group-member.c: Include group-member.h first.
78710         Include <stdlib.h> unconditionally.
78711
78712         * lib/hard-locale.c: Include hard-locale.h first.
78713         Include <stdlib.h>, <string.h> unconditionally.
78714
78715         * lib/hash.c (free, malloc): Remove decls.
78716         Include <stdlib.h> unconditionally.
78717
78718         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
78719         (getenv): Do not declare.
78720
78721         * lib/idcache.c: Include <string.h> unconditionally.
78722
78723         * lib/long-options.c: Include long-options.h first, to test interface.
78724         Include <stdlib.h> unconditionally.
78725
78726         * lib/makepath.c: Include makepath.h first, to test interface.
78727         Include <stdlib.h> and <string.h> unconditionally.
78728
78729         * lib/linebuffer.c: Include <stdlib.h>.
78730         (free): Remove decl.
78731
78732         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
78733         stddef.h. rpl_malloc returns void *, not char *.
78734         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
78735         prototype.
78736
78737         * lib/md5.h: Include <limits.h> unconditionally.
78738         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
78739         (__P): Remove; all uses removed.
78740         * lib/md5.c: Include "md5.h" first.
78741         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
78742         md5_buffer, md5_process_bytes, md5_process_block):
78743         Define with prototypes.
78744         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
78745         * lib/sha.c: Include "sha.h" first.
78746         Include <stdlib.h>, <string.h> unconditionally.
78747
78748         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
78749         * lib/memcmp.c (__ptr_t): Likewise.
78750         * lib/memrchr.c (__ptr_t): Likewise.
78751         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
78752         Include <string.h> unconditionally.
78753         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
78754         * lib/memchr.c: Include <stdlib.h> unconditionally.
78755         * lib/memchr.c (LONG_MAX): Remove.
78756         * lib/memrchr.c (LONG_MAX): Likewise.
78757         * lib/memchr.c (__memchr): Define via a prototype.
78758         * lib/memrchr.c (__memrchr): Likewise.
78759         * lib/memcmp.c (__P): Remove, and remove all uses.
78760         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
78761         Remove forward decls; no longer needed.
78762         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
78763         Use types required by C89 in prototype.
78764
78765         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
78766         * lib/savedir.c: Likewise.
78767         * lib/mkdir.c (free): Remove decl.
78768         * lib/rmdir.c (rmdir): Define with a prototype.
78769         * lib/savedir.c: Include savedir.h first, to test interface.
78770
78771         * lib/mktime.c (STDC_HEADERS): Remove.
78772         Include <stdlib.h>, <string.h> unconditionally.
78773
78774         * lib/modechange.c: Include <stdlib.h> unconditionally.
78775         (malloc): Remove decl.
78776
78777         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
78778         (free): Remove decl.
78779
78780         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
78781         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
78782         (This type really should be intptr_t, but that's a C99ism.)
78783         (_obstack_memcpy): Remove: all uses changed to memcpy.
78784         Include <string.h> unconditionally.
78785         (struct obstack): Assume __STDC__ for types of members
78786         chunkfun, freefun, extra_arg.
78787         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
78788         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
78789         obstack_begin, obstack_specify_allocation,
78790         obstack_specify_allocation_with_arg, obstack_chunkfun,
78791         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
78792         Remove unprototyped decls and the macros that use them.
78793         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
78794         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
78795         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
78796         (defined __STDC__ && __STDC__)]:
78797         Remove nonprototyped code.
78798         Include <stdlib.h> unconditionally.
78799         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
78800         _obstack_allocated_p, _obstack_free, obstack_free,
78801         _obstack_memory_used, print_and_abort):
78802         Define using prototypes.
78803         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
78804         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
78805         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
78806         obstack_next_free, obstack_object_size, obstack_room) [0]:
78807         Remove unused, unprototyped code.
78808
78809         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
78810
78811         * lib/physmem.c (physmem_total, physmem_available, main): Define
78812         with prototypes.
78813
78814         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
78815         (main): Define with a prototype.
78816
78817         * lib/posixver.c (getenv): Remove decl.
78818
78819         * lib/putenv.c (malloc): Returns void *, not char *.
78820         Include <string.h> unconditionally.
78821         (strchr, memcpy, NULL): Do not define.
78822
78823         * lib/readtokens.c: Include readtokens.h first, to test interface.
78824         Include <stdlib.h>, <string.h> unconditionally.
78825         (init_tokenbuffer): Define with a prototype.
78826
78827         * lib/regex.c (PARAMS): Remove.  All uses removed.
78828         All uses of _RE_ARGS removed, too.
78829         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78830         unconditionally.
78831         (bzero): Assume memset exists.
78832         (memcmp, memcpy, NULL): Remove.
78833         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
78834         char, or assignments to local vars of type signed char.
78835         (init_syntax_once, PREFIX(extract_number_and_incr),
78836         PREFIX(print_partial_compiled_pattern),
78837         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
78838         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
78839         PREFIX(regex_grow_registers), PREFIX(regex_compile),
78840         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
78841         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
78842         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
78843         wcs_compile_range, byte_compile_range, truncate_wchar,
78844         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
78845         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
78846         count_mbs_length, wcs_re_match_2_internal,
78847         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
78848         PREFIX(alt_match_null_string_p),
78849         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
78850         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
78851         regfree, PREFIX(extract_number)): Define with prototype.  Remove
78852         now-unnecessary declaration, if any.
78853         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
78854         regcomp, regexec):
78855         Remove now-unnecessary casts among pointer types.
78856         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
78857
78858         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
78859         (free): Remove decl.
78860
78861         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
78862
78863         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
78864         (free): Remove decl.
78865
78866         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
78867         * lib/xgetcwd.c: Likewise.
78868
78869         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
78870         (free): Remove decl.
78871
78872         * lib/strchrnul.c (strchrnul): Define with a prototype.
78873         Fix bug: c_in was not converted to char before searching.
78874
78875         The following changes are not K&R related:
78876
78877         * lib/group-member.h: Include <sys/types.h>, so that this file is
78878         self-contained.
78879         * lib/makepath.h: Likewise.
78880
78881         * lib/getusershell.c (readname, default_index, line_size, readname):
78882         Use size_t, not int, for sizes.
78883         (readname): If the size overflows, report an error instead of
78884         looping forever.
78885
78886 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78887
78888         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
78889         libc.
78890
78891 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78892
78893         * README: New section: portability guidelines.
78894
78895 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
78896
78897         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
78898         C89 spec.
78899
78900 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
78901
78902         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
78903
78904 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78905
78906         Assume C89 or better; remove K&R cruft.
78907         A few of these changes were first proposed by Derek Robert Price
78908         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
78909
78910         * lib/addext.c: Include <string.h> unconditionally.
78911         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
78912         Don't declare getenv or malloc.
78913
78914         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
78915         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
78916         (NULL): Remove.
78917         (find_stack_direction, alloca): Use prototypes.
78918
78919         * lib/atexit.c (atexit): Define using a prototype.
78920
78921         * lib/basename.c, dirname.c, stripslash.c:
78922         Include <string.h> unconditionally.
78923
78924         * lib/bcopy.c: Include <stddef.h>.
78925         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
78926
78927         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
78928
78929         * lib/error.h (error, error_at_line, error_print_progname)
78930         [! (defined (__STDC__) && __STDC__)]: Remove decls.
78931         * lib/error.c: Include error.h first, to check interface.
78932         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
78933         (VA_START): Remove; all uses changeed to va_start.
78934         (exit, strerror): Remove decls.
78935         (error_print_progname): Prototype uncondionally.
78936         Don't include <errno.h>; no longer needed.
78937         (private_strerror): Remove.
78938         (error_tail): Always define.
78939         (error, error_at_line): Assume C89 or better; always use prototypes.
78940         * lib/fatal.c: Include "fatal.h" first, to test interface.
78941         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
78942         (VA_START): Remove; all uses changed to va_start.
78943         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
78944         this case.
78945         (exit): Remove decl.
78946         (fatal): Prototype unconditionally.  Assume va_start works.
78947         Abort at end, to pacify gcc.
78948
78949         * lib/euidaccess.c (main): Define with a prototype.
78950
78951         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
78952
78953         * lib/exitfail.c: Include <stdlib.h> unconditionally.
78954
78955         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
78956         prototypes.
78957         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
78958         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
78959         (getenv): Remove decl.
78960         (fnmatch): Define using a prototype.
78961         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
78962         (FCT): Define using a prototype.
78963
78964         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
78965
78966         * lib/gethostname.c: Include <stddef.h>.
78967         (gethostname): Define with prototype.  Length is size_t, not int.
78968
78969 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78970
78971         Assume C89 or better; remove K&R cruft.
78972         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
78973         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
78974         string.h, getenv, malloc.
78975         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
78976         headers.
78977         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
78978         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
78979         do not check for strerror.
78980         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
78981         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
78982         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
78983         do not check for doprnt or vprintf.
78984         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
78985         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
78986
78987 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78988
78989         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
78990         getversion.c should have been removed then, but was accidentally
78991         preserved.
78992
78993         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
78994         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
78995
78996 2003-09-08  Karl Berry  <karl@gnu.org>
78997
78998         * config/config.sub, config.guess, srclistvars.sh: update from savannah
78999                 config, forget about prep.
79000
79001         * config/depcomp, missing: update from automake.
79002
79003 2003-09-07  Paul Eggert  <eggert@twinsun.com>
79004
79005         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
79006         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
79007
79008 2003-09-07  Paul Eggert  <eggert@twinsun.com>
79009
79010         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
79011         copy_tm_result.  Bug reported by Simon Josefsson in
79012         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
79013
79014 2003-09-06  Paul Eggert  <eggert@twinsun.com>
79015
79016         * m4/time_r.m4: New file.
79017         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
79018         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
79019         is. Check for timegm declaration.
79020         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
79021         Do not check for gmtime_r.
79022         Replace mktime if __mktime_internal does not exist and if mktime
79023         hasn't been replaced already.
79024
79025 2003-09-06  Paul Eggert  <eggert@twinsun.com>
79026
79027         * lib/time_r.c, lib/time_r.h: New files.
79028
79029         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
79030         __localtime_r.
79031         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
79032         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
79033
79034         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
79035         __gmtime_r.
79036         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
79037         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
79038         Include <time_r.h>.
79039
79040         * lib/timegm.c: Switch to glibc implementation, with the following
79041         changes:
79042         [defined HAVE_CONFIG_H]: Include <config.h>.
79043         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
79044         (__mktime_internal) [!defined _LIBC]: New decl.
79045         (__gmtime_r) [!defined _LIBC]: New macro and function.
79046         (timegm): Use a prototype, since gnulib assumes C89.
79047         Do not bother declaring tmp to be const, as it's not really usefu.
79048         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
79049         (timegm): Declare only if HAVE_DECL_TIMEGM.
79050
79051 2003-09-06  Paul Eggert  <eggert@twinsun.com>
79052
79053         * MODULES.html.sh (func_all_modules): Add time_r.
79054         * modules/time_r: New file.
79055         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
79056         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
79057
79058 2003-09-03  Paul Eggert  <eggert@twinsun.com>
79059
79060         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
79061         Bug reported by Lute Kamstra in
79062         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
79063
79064         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
79065         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
79066         course with correspondingly smaller numbers for tomorrow and
79067         yesterday.  From Tadayoshi Funaba.  Originally installed into
79068         sh-utils on 1999-08-07, but the patch got lost (I guess during the
79069         coreutils merge?).
79070
79071 2003-08-31  Simon Josefsson  <jas@extundo.com>
79072
79073         * modules/timegm: New file.
79074         * MODULES.html.sh (func_all_modules): Add timegm.
79075
79076 2003-08-31  Simon Josefsson  <jas@extundo.com>
79077
79078         * m4/timegm.m4: New file.
79079
79080 2003-08-31  Simon Josefsson  <jas@extundo.com>
79081
79082         * lib/timegm.h: New file.
79083         * lib/timegm.c: New file.  Based on
79084         wget-1.8.2/src/http.c:mktime_from_utc.
79085
79086 2003-08-31  Karl Berry  <karl@gnu.org>
79087
79088         * lib/argp.h: update from libc.
79089
79090 2003-08-28  Bruno Haible  <bruno@clisp.org>
79091
79092         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
79093         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
79094         followed by '#define fnmatch fnmatch_posix' gives an error.
79095
79096 2003-08-28  Bruno Haible  <bruno@clisp.org>
79097
79098         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
79099         warning on QNX, which defines O_BINARY to 000000.
79100
79101 2003-08-27  Jim Meyering  <jim@meyering.net>
79102
79103         * m4/mkstemp.m4: Require that the system mkstemp be able to create
79104         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
79105         would fail after 32.  Reported by Danny Levinson.  Details here:
79106         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
79107
79108 2003-08-24  Bruno Haible  <bruno@clisp.org>
79109
79110         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
79111         MSVC7 <stdio.h> is included later.
79112
79113 2003-08-22  Simon Josefsson  <jas@extundo.com>
79114
79115         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
79116
79117 2003-08-20  Karl Berry  <karl@gnu.org>
79118
79119         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
79120
79121 2003-08-20  Bruno Haible  <bruno@clisp.org>
79122
79123         * modules/progname: New file.
79124         * MODULES.html.sh (func_all_modules): Add progname.
79125
79126 2003-08-20  Bruno Haible  <bruno@clisp.org>
79127
79128         * lib/progname.h: New file, from GNU gettext.
79129         * lib/progname.c: New file, from GNU gettext.
79130         * lib/progreloc.c: New file, from GNU gettext.
79131
79132 2003-08-19  Jim Meyering  <jim@meyering.net>
79133
79134         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
79135         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
79136
79137 2003-08-19  Bruno Haible  <bruno@clisp.org>
79138
79139         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
79140         more.
79141
79142 2003-08-19  Bruno Haible  <bruno@clisp.org>
79143
79144         * lib/xstrdup.c: Assume <string.h> exists.
79145
79146 2003-08-18  Paul Eggert  <eggert@twinsun.com>
79147
79148         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
79149         in makefile rules.
79150
79151 2003-08-18  Jim Meyering  <jim@meyering.net>
79152
79153         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
79154         * m4/lib-ld.m4: Likewise.
79155
79156 2003-08-18  Jim Meyering  <jim@meyering.net>
79157
79158         * lib/setenv.h: Indent nested cpp directive.
79159         * lib/vasnprintf.c: Remove trailing blanks.
79160
79161 2003-08-17  Simon Josefsson  <jas@extundo.com>
79162
79163         * modules/xstrndup: New file.
79164         * MODULES.html.sh (func_all_modules): Add xstrndup.
79165
79166 2003-08-17  Simon Josefsson  <jas@extundo.com>
79167
79168         * modules/argp: Fix autoconf macro name. Add more dependencies.
79169
79170 2003-08-17  Simon Josefsson  <jas@extundo.com>
79171
79172         * m4/xstrndup.m4: New file.
79173
79174 2003-08-17  Simon Josefsson  <jas@extundo.com>
79175
79176         * m4/argp.m4: New file.
79177
79178 2003-08-17  Simon Josefsson  <jas@extundo.com>
79179             Bruno Haible  <bruno@clisp.org>
79180
79181         * lib/xstrndup.h: New file.
79182         * lib/xstrndup.c: New file.
79183
79184 2003-08-17  Bruno Haible  <bruno@clisp.org>
79185
79186         * modules/strndup (Files, Include): Add lib/strndup.h.
79187
79188 2003-08-17  Bruno Haible  <bruno@clisp.org>
79189
79190         * modules/euidaccess (Files): Add lib/euidaccess.h.
79191
79192 2003-08-17  Bruno Haible  <bruno@clisp.org>
79193
79194         * lib/strndup.h: New file.
79195
79196 2003-08-17  Bruno Haible  <bruno@clisp.org>
79197
79198         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
79199         like AC_GNU_SOURCE.
79200         * modules/extensions (configure.ac): Comment out the invocation of
79201         gl_USE_SYSTEM_EXTENSIONS.
79202
79203 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79204
79205         Merges from coreutils, etc.
79206         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
79207         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
79208         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
79209         fixing a typo.
79210         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
79211         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
79212
79213 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79214
79215         Document merge from coreutils.
79216         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
79217         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
79218         * modules/utime: Add m4/utimes-null.m4.
79219
79220 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79221
79222         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
79223         space, undoing this 2003-08-12 change:
79224         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
79225
79226 2003-08-16  Paul Eggert  <eggert@twinsun.com>
79227
79228         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
79229         strtoul.c from libc, undoing this 2003-08-12 change:
79230         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
79231
79232 2003-08-16  Jim Meyering  <jim@meyering.net>
79233
79234         Merges from coreutils.
79235         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
79236         prefix.  Adjust cache variables similarly.  Create 500 rather than
79237         just 300 files, to exercise bug on Darwin6.5, too.
79238         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
79239         $missing_dir.
79240         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
79241         AM_SYS_POSIX_TERMIOS.
79242         Reported by mkc@mathdogs.com.
79243         Also change use of $am_cv_sys_posix_termios
79244         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
79245         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
79246         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
79247         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
79248         in /proc/mounts until it finds one with matching device number.  This
79249         is unnecessary when the FILE argument *is* a mount point.  No stat call
79250         is necessary in that case.  So, disable the statvfs-testing code on
79251         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
79252         as RedHat bug# 84846.
79253         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
79254         to 1MB, so as not to render systems with no stack size limit (e.g.,
79255         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
79256         Include <unistd.h>.  On some systems,
79257         it is required for the definition of _SC_PAGESIZE.
79258
79259 2003-08-16  Jim Meyering  <jim@meyering.net>
79260
79261         Merge from coreutils.
79262         * lib/xstrtoimax.c: #else #if -> #elif.
79263         * lib/xstrtoumax.c: Likewise.
79264
79265 2003-08-16  Jim Meyering  <jim@meyering.net>
79266
79267         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
79268         * m4/utimes.m4: Removed.
79269         * m4/utimes-null.m4: Renamed from utimes.m4.
79270
79271         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
79272         to 1MB, so as not to render systems with no stack size limit (e.g.,
79273         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
79274         Include <unistd.h>.  On some systems,
79275         it is required for the definition of _SC_PAGESIZE.
79276
79277 2003-08-16  Jim Meyering  <jim@meyering.net>
79278         and Paul Eggert  <eggert@cs.ucla.edu>
79279
79280         Merges from coreutils, etc.
79281
79282         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
79283         using the latest version from cvs.  This avoids problems with #line
79284         directives using a vendor (Sun) compiler.
79285         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
79286         Don't set GETGROUPS_LIB here; now it's
79287         done via getgroups.m4's wrapper function.
79288         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
79289         rather than just in sh-util/configure.in, so that the
79290         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
79291         same.
79292         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
79293         AC_FUNC_GETLOADAVG where to find getloadavg.c.
79294         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
79295         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
79296         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
79297         Remove code that is now done by the newly-required macros.
79298         Append $(EXEEXT) to DF_PROG.
79299         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
79300         Do not invoke or require the following here,
79301         since prereq.m4 or some gnulib .m4 now does this for us:
79302         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
79303         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
79304         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
79305         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
79306         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
79307         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
79308         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
79309         AC_FUNC_OBSTACK.
79310         Do not replace the following functions, as this is now the job
79311         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
79312         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
79313         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
79314         atexit getpass, strdup, getpagesize.
79315         Replace 'raise'.
79316         Do not check for the following functions, as this is now the job
79317         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
79318         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
79319         setregid.
79320         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
79321         Check for sys/sysctl.h.
79322         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
79323         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
79324         of checking for ssize_t ourselves.
79325
79326         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
79327         Require every macro that gnulib/modules/* suggests for us.
79328         (jm_PREREQ_ADDEXT): New macro.
79329         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
79330         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
79331
79332         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
79333         (gl_PHYSMEM): Use it.
79334         Also check for `table' function.
79335         Check for new headers and functions.
79336         Add check for sys/sysmp.h.
79337         With suggestions from Kaveh Ghazi.
79338         Ignore headers that are present but cannot be compiled.  This
79339         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
79340         C 5.4.
79341
79342 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79343
79344         Document merge from coreutils.
79345         * modules/userspec: Depend on posixver.
79346         * modules/strftime: Depend on tzset.
79347
79348 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79349
79350         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
79351         rather than tab, after '#' in shell-script copyright notices.
79352         Suggested by Bruno Haible.
79353
79354 2003-08-15  Paul Eggert  <eggert@twinsun.com>
79355
79356         * config/srclist-update: Use three spaces, rather than tab, after '#'
79357         in shell-script copyright notices.  Suggested by Bruno Haible.
79358         Remove unnecessary parenthesization in regular expression.
79359
79360 2003-08-15  Jim Meyering  <jim@meyering.net>
79361
79362         Merge from coreutils.
79363         * lib/xgethostname.c: Include <stdlib.h>.
79364         (xghostname): Don't exit for anything other than memory-related
79365         failure; just return NULL.
79366         * lib/userspec.c: Include "posixver.h".
79367         (parse_user_spec): Accept `.' as a separator only
79368         in pre-POSIX-200112 mode.
79369         * lib/strtoimax.c: Use #elif rather than #else #if.
79370         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
79371         Remove function, now that we can rely on a working tzset function.
79372         [!_LIBC]: Ensure that the required autoconf test has been run.
79373         [!defined _NL_CURRENT && HAVE_STRFTIME]:
79374         Use underlying_strftime for %r.
79375         * lib/sha.c: Merge in some clean-up and optimization changes from
79376         glibc.
79377         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
79378         Ensure that it is a multiple of 64.
79379         Rearrange loop exit tests so as to avoid performing an
79380         additional fread after encountering an error or EOF.
79381         * lib/realloc.c: Update copyright date.
79382
79383 2003-08-15  Jim Meyering  <jim@meyering.net>
79384         and Paul Eggert  <eggert@twinsun.com>
79385
79386         Merge from coreutils.
79387         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
79388         member but strut utmpx does not.  Needed for AIX 4.3.3.
79389         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
79390
79391 2003-08-15  Jim Meyering  <jim@meyering.net>
79392         and Paul Eggert  <eggert@cs.ucla.edu>
79393
79394         Merges from coreutils, etc.
79395         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
79396         Require gl_FUNC_TZSET_CLOBBER.
79397         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
79398         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
79399         members.
79400
79401 2003-08-14  Paul Eggert  <eggert@twinsun.com>
79402
79403         Help the merge from coreutils.
79404         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
79405         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
79406         * m4/tzset.m4: Use it too.
79407
79408 2003-08-14  Paul Eggert  <eggert@twinsun.com>
79409
79410         * modules/tzset: New file.
79411
79412 2003-08-14  Jim Meyering  <jim@meyering.net>
79413
79414         Merges from coreutils.
79415         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
79416         variable names, rather than @FNMATCH_H@.
79417         * modules/alloca: Likewise for $(ALLOCA_H).
79418
79419         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
79420         the three copies of the literal target, `fnmatch.h'.
79421         * modules/alloca (alloca.h): Likewise.
79422
79423 2003-08-14  Jim Meyering  <jim@meyering.net>
79424
79425         Merge from coreutils.
79426         * m4/tzset.m4: New file.
79427         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
79428         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
79429         otherwise, AIX 5.1 systems would end up using the latter.
79430         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
79431         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
79432         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
79433         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
79434
79435 2003-08-14  Jim Meyering  <jim@meyering.net>
79436
79437         Merge from coreutils.
79438         * lib/obstack.h: Whitespace changes.
79439         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
79440         and xcalloc return values.
79441         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
79442         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
79443         hang on OSF/1 5.1 for DIR on both local and remote file systems.
79444         Reported by (and fix confirmed by) Nelson H. F. Beebe.
79445         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
79446         error from mntctl.
79447         Use mntctl's return value to drive the entry-processing loop, since
79448         we can't rely on the value of the vmt_length member in the last
79449         entry.  On some systems doing so could result in exhausting
79450         virtual memory.  Based in part on a patch from Mike Jetzer.
79451
79452 2003-08-14  Jim Meyering  <jim@meyering.net>
79453         and Paul Eggert  <eggert@twinsun.com>
79454
79455         Merges from coreutils, plus other fixes.
79456         * lib/physmem.c: Merge in portability changes from gcc/libiberty
79457         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
79458         for credits and details.  Thanks to Kaveh Ghazi for helping
79459         to keep these files in sync.
79460         (ARRAY_SIZE): Define it.
79461         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
79462         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
79463         (memcasecmp): Don't assume size_t fits in unsigned int.
79464         Remove casts and duplicate code.
79465         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
79466         (memcpy): Remove definition.
79467         Merge in some clean-up and optimization changes from glibc.
79468         [BLOCKSIZE]: Move definition to top of file.
79469         Ensure that it is a multiple of 64.
79470         Rearrange loop exit tests so as to avoid performing an
79471         additional fread after encountering an error or EOF.
79472         * lib/md5.h (md5_uintptr): Define.
79473         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
79474         return to the initial working directory.  Preserve errno
79475         for caller.
79476         * lib/idcache.c: Include "xalloc.h".
79477         (xmalloc, xrealloc): Remove decls.
79478         (getuser): Remove casts no longer required in C89.
79479         * lib/human.c: Include stdio.h, for sprintf.
79480         * lib/group-member.c: Include "xalloc.h".
79481         (xmalloc, xrealloc): Remove decls.
79482         (get_group_info): Remove casts no longer required in C89.
79483         * lib/getusershell.c (readname): Remove casts no longer required in
79484         C89.
79485         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
79486         * lib/getline.c: Whitespace fix, from coreutils.
79487
79488 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79489
79490         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
79491         Check for isascii.
79492
79493         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
79494         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
79495         Undo previous (whitespace-only) change.
79496
79497 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79498
79499         * lib/exclude.c: Include <ctype.h>
79500         (IN_CTYPE_DOMAIN): New macro.
79501         (is_space): New fn.
79502         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
79503         and empty lines.
79504
79505         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
79506         Undo previous (whitespace-only) change.
79507
79508 2003-08-13  Paul Eggert  <eggert@twinsun.com>
79509
79510         * config/srclist-update: Change update back to the old behavior,
79511         leaving whitespace alone.  Use one 'sed' command rather than a
79512         pipeline.
79513         (fixlicense): Now a variable, not a function.
79514         (remove_trailing_blanks): Remove.
79515         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
79516         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
79517         Undo previous (whitespace-only) change.
79518
79519 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79520
79521         Merge from coreutils.
79522         * modules/euidaccess: Add lib_SOURCES, include for new
79523         file euidaccess.h
79524
79525 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79526
79527         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
79528         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
79529         Normalize leading white space and remove trailing white space.
79530
79531         Merge from coreutils
79532         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
79533
79534         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
79535         0.12.1.  These files are now being upgraded automatically by
79536         ../config/srclist-update.
79537
79538 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79539
79540         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
79541         Normalize leading white space and remove trailing white space.
79542         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
79543         notice, as per ../config/srclist-update.
79544
79545         Merge from coreutils.
79546         * lib/euidaccess.h: New file.
79547         * lib/euidaccess.c: Include it.
79548         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
79549         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
79550         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
79551
79552 2003-08-12  Paul Eggert  <eggert@twinsun.com>
79553
79554         * config/srclist-update: Add copyright notice.
79555         (remove_id_lines, remove_trailing_blanks): New constants.
79556         (fixfile): Use them to normalize spacing a bit in copied files.
79557         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
79558         Normalize leading white space and remove trailing white space.
79559
79560         * config/texinfo.tex: Sync with texinfo.
79561
79562         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
79563         strtoul.c from libc, to merge coreutils whitespace changes.
79564
79565         * config/srclist.txt: Get the following m4 files from gettext:
79566         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
79567         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
79568         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
79569         wint_t.m4.
79570
79571 2003-08-12  Karl Berry  <karl@gnu.org>
79572
79573         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
79574         been made.
79575
79576 2003-08-11  Paul Eggert  <eggert@twinsun.com>
79577
79578         * modules/gnu-source, m4/gnu-source.m4:
79579         Remove; we're assuming Autoconf 2.54 or later now.
79580         Suggested by Bruno Haible.
79581         * MODULES.html.sh (func_all_modules): Remove gnu-source.
79582
79583 2003-08-11  Bruno Haible  <bruno@clisp.org>
79584
79585         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
79586
79587 2003-08-11  Bruno Haible  <bruno@clisp.org>
79588
79589         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
79590         (vasnprintf): Use it instead of wcslen.
79591
79592 2003-08-11  Bruno Haible  <bruno@clisp.org>
79593
79594         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
79595         value to ensure that _Bool promotes to int. Use #define for _Bool when
79596         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
79597
79598 2003-08-10  Karl Berry  <karl@gnu.org>
79599
79600         * lib/regex.h: update from libc (whitespace fix).
79601
79602 2003-08-09  Paul Eggert  <eggert@twinsun.com>
79603
79604         Merge some files from coreutils.  These changes were
79605         originally made by Jim Meyering.
79606         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
79607         many older Unixes require this.
79608         * lib/alloca.c (alloca): Remove cast to argument of free;
79609         no longer needed in C89.
79610         * lib/alloca_.h, regex.h: Fix white space to match
79611         what GNU indent does.
79612
79613 2003-08-09  Paul Eggert  <eggert@twinsun.com>
79614
79615         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
79616         apparently Emacs's Unicode mode got confused before my 2003-08-05
79617         checkin.
79618
79619 2003-08-08  Paul Eggert  <eggert@twinsun.com>
79620
79621         * m4/extensions.m4: New file.
79622         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
79623         Require gl_USE_SYSTEM_EXTENSIONS.
79624         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
79625         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
79626
79627 2003-08-08  Paul Eggert  <eggert@twinsun.com>
79628
79629         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
79630         * modules/extensions, modules/gnu-source: New files.
79631         * modules/timespec, modules/unlocked-io: Depend on extensions.
79632
79633 2003-08-07  Paul Eggert  <eggert@twinsun.com>
79634
79635         * modules/restrict: New file.
79636         * MODULES.html.sh (func_all_modules): Add restrict.
79637         * modules/regex: Depend on restrict.
79638
79639 2003-08-07  Paul Eggert  <eggert@twinsun.com>
79640
79641         * m4/restrict.m4: New file.
79642         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
79643
79644 2003-08-07  Bruno Haible  <bruno@clisp.org>
79645
79646         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
79647         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
79648
79649 2003-08-07  Bruno Haible  <bruno@clisp.org>
79650
79651         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
79652         makes the module 'getndelim2' compatible with the module 'getline'.
79653
79654 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79655
79656         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
79657         byte with "\201" to avoid glitches when editing that source file
79658         with multi-gnome-terminal.
79659
79660 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79661
79662         * lib/bumpalloc.h: Remove.
79663
79664 2003-08-05  Paul Eggert  <eggert@twinsun.com>
79665
79666         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
79667         * modules/bumpalloc: Remove.
79668
79669 2003-08-04  Paul Eggert  <eggert@twinsun.com>
79670
79671         * lib/getloadavg.c: Change copyright notice and spacing to conform to
79672         GNU coding style.
79673
79674         Merge from coreutils.
79675         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
79676         1. From glibc.
79677         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
79678         from Karl Berry, implemented by Jim Meyering.
79679         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
79680         from Dmitry V. Levin.
79681         Remove anachronistic cast of xrealloc.
79682         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
79683         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
79684         type. Otherwise, it wouldn't compile with at least /bin/cc on
79685         ymp-cray-unicos9.0.2.X.
79686         Combine two mostly-identical uses of alloca into one.
79687         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
79688
79689 2003-08-04  Dave Love  <d.love@dl.ac.uk>
79690
79691         [From Emacs.]
79692
79693         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
79694         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
79695         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
79696         obsolete NLIST_NAME_UNION.
79697         [__GNU__]: Undef BSD and FSCALE.
79698         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
79699
79700 2003-08-03  Paul Eggert  <eggert@twinsun.com>
79701
79702         * lib/stdbool_.h (_Bool): Make it signed char, instead of
79703         an enum type, so that it's guaranteed to promote to int.  See:
79704         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
79705
79706 2003-08-03  Karl Berry  <karl@gnu.org>
79707
79708         * config/depcomp: update from automake.
79709
79710 2003-07-31  Paul Eggert  <eggert@twinsun.com>
79711
79712         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
79713         (strerror): Don't assume that a printable int fits in 14 bytes.
79714
79715 2003-07-31  Bruno Haible  <bruno@clisp.org>
79716
79717         * modules/getpass-gnu: New file.
79718         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
79719
79720 2003-07-31  Bruno Haible  <bruno@clisp.org>
79721
79722         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
79723
79724 2003-07-24  Karl Berry  <karl@gnu.org>
79725
79726         * config/missing: update from automake.
79727
79728 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
79729             Bruno Haible  <bruno@clisp.org>
79730
79731         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
79732         * lib/getline.c (getline, getdelim): Likewise.
79733         Remove _GNU_SOURCE define; now it's defined in config.h through
79734         m4/getline.m4.
79735
79736 2003-07-23  Karl Berry  <karl@gnu.org>
79737
79738         * config/config.sub: update from prep.
79739
79740 2003-07-22  Paul Eggert  <eggert@twinsun.com>
79741
79742         * modules/xalloc (Depends-on): Add exitfail.
79743         * modules/xmemcoll: Likewise.
79744
79745 2003-07-22  Paul Eggert  <eggert@twinsun.com>
79746
79747         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
79748         over-parenthesization in macros.
79749
79750         Sync with coreutils.
79751
79752         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
79753         required by C99.
79754
79755         Use `exit_failure' for xalloc and xmemcoll instead of their own
79756         private exit-failure variables.
79757         * lib/xalloc.h (xalloc_exit_failure): Remove.
79758         * lib/xmalloc.c: Likewise.  Include exitfail.h.
79759         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
79760         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
79761         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
79762         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
79763
79764 2003-07-20  Jim Meyering  <jim@meyering.net>
79765
79766         * modules/closeout (Depends-on): Add exitfail.
79767         Suggestion from Bruno Haible.
79768
79769 2003-07-19  Karl Berry  <karl@gnu.org>
79770
79771         * config/config.sub: update from prep.
79772
79773 2003-07-18  Paul Eggert  <eggert@twinsun.com>
79774
79775         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
79776         Remove.
79777         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
79778         to test that it can stand by itself.  Include "exitfail.h".
79779         Clients should set exit_failure instead.
79780         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
79781
79782 2003-07-18  Bruno Haible  <bruno@clisp.org>
79783
79784         * modules/getndelim2: New file.
79785         * modules/getline: Share files with module getndelim2.
79786         * modules/getnline: Depend on getndelim2 instead of sharing files with
79787         it. Add getnline.c to lib_SOURCES.
79788         * MODULES.html.sh (func_all_modules): Add getndelim2.
79789
79790 2003-07-18  Bruno Haible  <bruno@clisp.org>
79791
79792         * m4/getndelim2.m4: New file.
79793         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
79794         invoke gl_PREREQ_GETNDELIM2.
79795         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
79796         gl_PREREQ_GETNDELIM2.
79797         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
79798         gl_GETNDELIM2.
79799
79800 2003-07-18  Bruno Haible  <bruno@clisp.org>
79801
79802         * lib/getndelim2.h: New file.
79803         * lib/getndelim2.c: Make into a module of its own. Include config.h,
79804         getndelim2.h.
79805         (getndelim2): Make non-static. Change return type to ssize_t.
79806         * lib/getline.h: Change argument names.
79807         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
79808         * lib/getnline.c: Include getndelim2.h.
79809
79810 2003-07-18  Andreas Schwab  <schwab@suse.de>
79811
79812         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
79813
79814 2003-07-17  Karl Berry  <karl@gnu.org>
79815
79816         * config/config.sub: update from prep.
79817
79818 2003-07-17  Bruno Haible  <bruno@clisp.org>
79819
79820         * modules/getnline: New file.
79821         * modules/getline: Add lib/getndelim2.c to source file list.
79822         * MODULES.html.sh (func_all_modules): Add getnline.
79823
79824 2003-07-17  Bruno Haible  <bruno@clisp.org>
79825
79826         * m4/getnline.m4: New file.
79827
79828 2003-07-17  Bruno Haible  <bruno@clisp.org>
79829
79830         * m4/Makefile.am.in: Remove file.
79831         * m4/Makefile.am: Remove file.
79832         * m4/Makefile.in: Remove file.
79833
79834 2003-07-17  Bruno Haible  <bruno@clisp.org>
79835
79836         * lib/getnline.h: New file.
79837         * lib/getnline.c: New file.
79838         * lib/getndelim2.c: New file, extracted from getline.c.
79839         (getndelim2): Renamed from getdelim2, with added nmax argument.
79840         * lib/getline.c: Include getndelim2.c.
79841         (getdelim2): Moved out to getndelim2.c.
79842         (getline, getdelim): Update.
79843
79844 2003-07-17  Bruno Haible  <bruno@clisp.org>
79845
79846         * lib/Makefile.am: Remove file.
79847         * lib/Makefile.in: Remove file.
79848
79849 2003-07-17  Bruno Haible  <bruno@clisp.org>
79850
79851         * configure.in: Remove file.
79852         * Makefile.in: Remove file.
79853
79854 2003-07-17  Bruno Haible  <bruno@clisp.org>
79855
79856         * MODULES.html.sh: Put the </BODY> right before </HTML>.
79857
79858 2003-07-16  Karl Berry  <karl@gnu.org>
79859
79860         * config/srclist-update: was running fixlicense twice, which caused
79861                 texinfo.tex to be nullified for some reason.  Simplify,
79862                 $gplsrc is no longer needed as far as I can see?
79863
79864 2003-07-16  Jim Meyering  <jim@meyering.net>
79865
79866         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
79867
79868 2003-07-15  Paul Eggert  <eggert@twinsun.com>
79869
79870         * config/srclist.txt: Get the following files from gettext-runtime/intl
79871         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
79872         ref-del.sin.  From Bruno Haible.
79873         * config/srclist-update (fixfile): Change grep pattern again, since the
79874         previous fix didn't work (there was another trailing $).  Use
79875         '[$]' to escape the $s.
79876
79877 2003-07-15  Karl Berry  <karl@gnu.org>
79878
79879         * lib/vasnprintf.c: update from gettext.
79880
79881 2003-07-15  Karl Berry  <karl@gnu.org>
79882
79883         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
79884         gets expanded when surrounded by '$'.
79885
79886 2003-07-15  Jim Meyering  <jim@meyering.net>
79887
79888         * modules/save-cwd: Don't depend on error.  From Derek Price.
79889
79890 2003-07-15  Jim Meyering  <jim@meyering.net>
79891
79892         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
79893
79894 2003-07-14  Simon Josefsson  <jas@extundo.com>
79895
79896         * modules/mempcpy: New file.
79897         * MODULES.html.sh (func_all_modules): Add mempcpy.
79898
79899 2003-07-14  Simon Josefsson  <jas@extundo.com>
79900
79901         * m4/mempcpy.m4: New file.
79902
79903 2003-07-14  Simon Josefsson  <jas@extundo.com>
79904
79905         * lib/mempcpy.h: New file.
79906         * lib/mempcpy.c: New file.
79907
79908 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79909
79910         * modules/getdate, modules/posixtm: Depend on mktime.
79911
79912 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79913
79914         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
79915         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
79916         unicodeio.c, unicodeio.h, unlocked-io.h:
79917         Switch from LGPL to GPL.
79918
79919 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79920
79921         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
79922         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
79923         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
79924         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
79925         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
79926         updated automatically by ../config/srclist-update.  This changes
79927         their license from LPGL to GPL.
79928
79929 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79930
79931         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
79932         assumed to refer to the root of the most recent stable gettext version.
79933         * config/srclistvars.sh: Add defaults for eggert.
79934         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
79935         Match "This program" as well as "The program".  This is needed
79936         for gettext.
79937
79938 2003-07-14  Jim Meyering  <jim@meyering.net>
79939
79940         Don't emit diagnostics.  Let callers do that.
79941         * lib/save-cwd.c: Don't include "error.h".
79942         (save_cwd): Don't call error.  Ensure that errno is valid
79943         when returning nonzero.
79944
79945         * lib/save-cwd.h (restore_cwd): Update prototype.
79946         * lib/save-cwd.c (restore_cwd): Remove two parameters.
79947         Simplify.  Don't call error upon failure.  Let callers do that.
79948         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
79949         when auditing is enabled.  But don't bother updating the #if.
79950
79951 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
79952
79953         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
79954         it breaks C++ compilation.
79955         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
79956
79957 2003-07-10  Simon Josefsson  <jas@extundo.com>
79958
79959         * modules/strchrnul (Makefile.am): Add strchrnul.h.
79960
79961 2003-07-10  Jim Meyering  <jim@meyering.net>
79962
79963         * m4/clock_time.m4: Remove trailing blank.
79964         * m4/intmax_t.m4: Likewise.
79965
79966 2003-07-10  Jim Meyering  <jim@meyering.net>
79967
79968         * lib/vasnprintf.c: Remove trailing blanks.
79969         Make cpp indentation consistent.
79970
79971 2003-07-09  Paul Eggert  <eggert@twinsun.com>
79972
79973         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
79974         posixver.c, strftime.c, strnlen.c, strverscmp.c:
79975         Switch from LGPL to GPL.
79976
79977 2003-07-09  Paul Eggert  <eggert@twinsun.com>
79978
79979         * config/srclist.txt: Sort sublists.  Add
79980         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
79981         that differ from gnulib for one reason or another; we'd like this list
79982         to be smaller but for now let's document what we have.
79983
79984 2003-07-08  Paul Eggert  <eggert@twinsun.com>
79985
79986         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
79987         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
79988         and sweeter "eval x=$x".
79989         * config/srclist.txt: Get lib/argp* from glibc.
79990
79991 2003-07-07  Paul Eggert  <eggert@twinsun.com>
79992
79993         * lib/mktime.c: Fix some boundary cases and remove need for floating
79994         point.
79995
79996         Issue a compile-time diagnostic if time_t is floating point, or if
79997         two's complement arithmetic is not in effect, or if arithmetic
79998         right shift does not propagate the sign.  These assumptions were
79999         all in the original code but they weren't checked.
80000
80001         (TIME_T_MIDPOINT, verify): New macros.
80002         (__isleap): Remove; it has integer overflow problems.
80003         (leapyear): New function, without those problems.
80004         (ydhms_tm_diff): Remove; splitting into two parts.
80005         (ydhms_diff): New function, containing the arithmetic part of
80006         the old ydhms_tm_diff function.  Issue a compile-time
80007         diagnostic if we are not using C99 integer division.
80008         Avoid casts when possible.
80009         (guess_time_tm): New function, containing the checking part of
80010         the old ydhms_tm_diff function.  Return the new value, rather than
80011         the difference between it and the old.  Accept a new argument T
80012         so that *T specifies the old value.  Check for overflow in the result.
80013
80014         (__mktime_internal): Use a time_t offset, not a long int offset.
80015         This undoes the 2003-06-04 change, which is no longer needed now
80016         that we have better overflow checking.
80017         (localtime_offset): Likewise.
80018
80019         (__mktime_internal): Avoid harmful overflow on hosts where time_t
80020         and long are 64-bit but int is only 32-bit.
80021         (ydhms_diff): Use long int to store year1 and yday1.
80022         Issue a compile-time diagnostic if long int is not wide enough.
80023
80024         (__mktime_internal): Use long int to store adjusted year and yday.
80025         Use plain C rather than preprocessor commands, if that doesn't
80026         affect efficiency.
80027         Check for overflow (and try to repair) after each probe
80028         rather than checking only at the very end.  This avoids some bugs
80029         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
80030         does not equal GMT offset at maximum time).
80031         Use integer to check for overflow rather than floating point; this
80032         is more portable to non-IEEE hosts, and is a tad faster.
80033         When we detect that we are oscillating between two values,
80034         don't check whether tm_isdst has the requested value, since
80035         we already know the answer.  When tm_isdst has the wrong value,
80036         use a different heuristic to find the right one, based on the
80037         extreme values actually observed in practice in tz2003a,
80038         rather than the (overly optimistic) "previous 3 calendar quarters".
80039
80040         (not_equal_tm, print_tm, check_result): Use "const T" rather than
80041         "T const" to accommodate glibc style.
80042         (check_result): Use less-confusing report format.  "long" -> "long int.
80043         (main): Likewise.
80044         Don't loop if the iteration overflows time_t.
80045         Allow a negative step in the iteration.
80046
80047 2003-07-06  Karl Berry  <karl@gnu.org>
80048
80049         * config/depcomp: update from automake.
80050         * config/config.sub: update from prep.
80051
80052 2003-07-03  Karl Berry  <karl@gnu.org>
80053
80054         * config/config.guess: update from prep.
80055
80056 2003-07-01  Paul Eggert  <eggert@twinsun.com>
80057
80058         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
80059         xreadlink.c now includes it unconditionally.
80060
80061 2003-07-01  Paul Eggert  <eggert@twinsun.com>
80062
80063         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
80064         having it depend on HAVE_SYS_TYPES_H.
80065
80066 2003-07-01  Bruno Haible  <bruno@clisp.org>
80067
80068         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
80069         <sys/types.h> should be sufficient.
80070         Reported by Paul Eggert.
80071
80072 2003-06-26  Karl Berry  <karl@gnu.org>
80073
80074         * config/depcomp: update from automake.
80075
80076 2003-06-26  Bruno Haible  <bruno@clisp.org>
80077
80078         * modules/human: Depend on module stdbool.
80079
80080 2003-06-25  Bruno Haible  <bruno@clisp.org>
80081
80082         * modules/readlink: New file.
80083         * modules/xreadlink: Depend on it.
80084         * MODULES.html.sh (func_all_modules): Add readlink.
80085
80086 2003-06-25  Bruno Haible  <bruno@clisp.org>
80087
80088         * m4/readlink.m4: New file.
80089
80090 2003-06-25  Bruno Haible  <bruno@clisp.org>
80091
80092         * lib/readlink.c: New file.
80093
80094 2003-06-22  Karl Berry  <karl@gnu.org>
80095
80096         * config/srclist.txt: update mkinstalldirs from automake.
80097         * config/mkinstalldirs: update.
80098
80099 2003-06-22  Bruno Haible  <bruno@clisp.org>
80100
80101         Portability to mingw32.
80102         * m4/ssize_t.m4: New file, from GNU gettext.
80103         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
80104         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
80105
80106 2003-06-22  Bruno Haible  <bruno@clisp.org>
80107
80108         * modules/safe-read: Add m4/ssize_t.m4.
80109         * modules/xreadlink: Add m4/ssize_t.m4.
80110
80111 2003-06-20  Bruno Haible  <bruno@clisp.org>
80112
80113         Assume C89, so PARAMS isn't needed.
80114         * lib/unicodeio.h (PARAMS): Remove.
80115         * lib/unicodeio.c: Don't use PARAMS.
80116
80117 2003-06-18  Karl Berry  <karl@gnu.org>
80118
80119         * config/config.{guess,sub}: update from prep.
80120
80121 2003-06-18  Jim Meyering  <jim@meyering.net>
80122
80123         Merge changes from coreutils.
80124         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
80125         Remove explicit declarations of xmalloc and realloc.
80126         Include xalloc.h.
80127         (read_utmp): Remove anachronistic cast of xmalloc.
80128
80129 2003-06-17  Paul Eggert  <eggert@twinsun.com>
80130
80131         Assume C89, so PARAMS isn't needed.
80132         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
80133         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
80134         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
80135         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
80136         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
80137         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
80138         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
80139         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
80140         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
80141         lib/xstrtod.h, lib/xstrtol.h: Likewise.
80142         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
80143         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
80144         no longer needed. Anyway, config.h should always be included before any
80145         other file.
80146
80147 2003-06-11  Simon Josefsson  <jas@extundo.com>
80148
80149         * modules/sysexits: New file.
80150         * MODULES.html.sh (func_all_modules): Add sysexits.
80151
80152 2003-06-11  Simon Josefsson  <jas@extundo.com>
80153
80154         * lib/sysexit_.h: New file.
80155
80156 2003-06-11  Derek Price  <derek@ximbiot.com>
80157
80158         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
80159         necessary.
80160
80161 2003-06-11  Bruno Haible  <bruno@clisp.org>
80162
80163         * m4/sysexits.m4: New file.
80164
80165 2003-06-10  Simon Josefsson  <jas@extundo.com>
80166
80167         * lib/argp.h: New file, from glibc.
80168         * lib/argp-ba.c: New file, from glibc.
80169         * lib/argp-eexst.c: New file, from glibc.
80170         * lib/argp-fmtstream.c: New file, from glibc.
80171         * lib/argp-fmtstream.h: New file, from glibc.
80172         * lib/argp-fs-xinl.c: New file, from glibc.
80173         * lib/argp-help.c: New file, from glibc.
80174         * lib/argp-namefrob.h: New file, from glibc.
80175         * lib/argp-parse.c: New file, from glibc.
80176         * lib/argp-pv.c: New file, from glibc.
80177         * lib/argp-pvh.c: New file, from glibc.
80178         * lib/argp-xinl.c: New file, from glibc.
80179
80180 2003-06-10  Simon Josefsson  <jas@extundo.com>
80181
80182         * modules/strchrnul: New file.
80183
80184 2003-06-10  Simon Josefsson  <jas@extundo.com>
80185
80186         * modules/argp: New file.
80187
80188 2003-06-10  Simon Josefsson  <jas@extundo.com>
80189
80190         * m4/strchrnul.m4: New file.
80191
80192 2003-06-10  Simon Josefsson  <jas@extundo.com>
80193
80194         * lib/strchrnul.h: New file.
80195         * lib/strchrnul.c: New file.
80196
80197 2003-06-10  Bruno Haible  <bruno@clisp.org>
80198
80199         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
80200
80201 2003-06-07  Karl Berry  <karl@gnu.org>
80202
80203         * config/config.{guess,sub}: update from prep.
80204
80205 2003-06-07  Jim Meyering  <jim@meyering.net>
80206
80207         * modules/strtod: Use $(...) notation, not @...@ for
80208         AC_REPLACE'd variables.
80209         * modules/localcharset: Likewise.
80210
80211 2003-06-07  Jim Meyering  <jim@meyering.net>
80212
80213         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
80214         in place of my name in the copyright comment.
80215         Remove definition and uses of __P.
80216
80217         From coreutils.
80218         * lib/stat.c: Don't declare xmalloc explicitly.
80219         Instead, include "xalloc.h".
80220         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
80221         xrealloc, and xcalloc return values.
80222         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
80223         Improve comment.
80224         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
80225
80226 2003-06-07  Bruno Haible  <bruno@clisp.org>
80227
80228         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
80229         avoid AC_CONFIG_LINKS.
80230         * modules/fnmatch (Makefile.am): Use explicit creation rule for
80231         fnmatch.h, to avoid AC_CONFIG_LINKS.
80232         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
80233
80234 2003-06-07  Bruno Haible  <bruno@clisp.org>
80235
80236         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
80237         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
80238         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
80239         directory.
80240         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
80241         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
80242         directory.
80243
80244 2003-06-06  Jim Meyering  <jim@meyering.net>
80245
80246         Merge from coreutils.
80247         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
80248         Consolidate declarations and initializations of *_base* locals.
80249
80250         Merge from coreutils.
80251         This avoids a core dump on systems without GNU putenv,
80252         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
80253         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
80254         (unsetenv): New static function, from GNU libc.
80255         (rpl_putenv): Use it.
80256
80257         * lib/modechange.c: Remove trailing blanks.
80258
80259         Merge from coreutils.
80260         * lib/fsusage.c: Remove declaration of statfs.
80261         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
80262
80263         * lib/posixtm.c: Include <stdbool.h> unconditionally.
80264
80265 2003-06-06  Jim Meyering  <jim@meyering.net>
80266
80267         * lib/stdbool_.h: Renamed from stdbool.h.in.
80268
80269 2003-06-06  Jim Meyering  <jim@meyering.net>
80270             Bruno Haible  <bruno@clisp.org>
80271
80272         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
80273         Adjust Makefile.am snippet not to redirect directly to target.
80274         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
80275
80276 2003-06-05  Paul Eggert  <eggert@twinsun.com>
80277
80278         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
80279         mismatch, look in future quarters as well as past.  This fixes a
80280         bug when processing fall-backwards gaps immediately after a long
80281         period of daylight-saving time.
80282
80283         * lib/mktime.c: Assume freestanding C89 or better.
80284         (HAVE_LIMITS_H): Remove.  Assume it's 1.
80285         (__P): Remove; not used.
80286         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
80287         (mktime, not_equal_tm, print_tm, check_result,
80288         main): Use prototypes.  Use const * where appropriate.
80289         (main): Fix typo in testing code that uncovered by above changes.
80290         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
80291
80292 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80293
80294         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
80295         locale.h, localeconv.  This merges changes from coreutils.
80296
80297         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
80298         It can be removed after the next Autoconf is released.
80299         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
80300         needed.
80301
80302 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80303
80304         * lib/mktime.c: Fix Debian bug 177940
80305         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
80306         (localtime_offset): Now long int, not time_t, because we want it
80307         to be guaranteed to be signed.  All uses changed.
80308         (__mktime_internal): If overflow would occur when adding offset,
80309         don't add it.
80310
80311         Merge 'human' changes from coreutils.  Rewrite to support
80312         locale-specific notations like thousands separators.
80313         * lib/human.c: Simplify authorship notice.
80314         Include human.h immediately after config.h.
80315         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
80316         <limits.h>: Do not include, since human.h does.
80317         (SIZE_MAX, UINTMAX_MAX): New macros.
80318         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
80319         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
80320         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
80321         (power_letter): Renamed from suffixes.
80322         (generate_suffix_backwards): Remove.
80323         (adjust_value): Now takes int style (because of human.h changes)
80324         and long double value (for greater precision on some platforms).
80325         (group_number): New function.
80326         (human_readable): Use it.  Use integer options, not enum.
80327         Put the options before the sizes in the arg list.
80328         Support all the new options.
80329         The old human_readable function has been removed;
80330         use inttostr.h instead.
80331         (human_readable, default_block_size, humblock):
80332         Use uintmax_t, not int, for block sizes.
80333         (human_readable_inexact, block_size_types): Remove.
80334         (block_size_opts): New constant.
80335         (human_options): Renamed from human_block_size, with new signature
80336         that allows block sizes up to UINTMAX_MAX.  All callers changed.
80337         * lib/human.h: Add copyright and authorship notice.
80338         Include <limits.h> and <stdbool.h> unconditionally.
80339         (PARAMS): Remove.  All uses removed.
80340         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
80341         (enum human_inexact_style): Remove tag; now a nameless enum.
80342         (human_floor, human_ceiling, human_round_to_even): Now have
80343         values 2, 0, 1 rather than -1, 1, 0.
80344         (human_group_digits, human_suppress_point_zero, human_autoscale,
80345         human_base_1024, human_SI, human_B): New constants.
80346         (human_readable_inexact, human_block_size): Remove.
80347         (human_readable): Size args are now uintmax_t, not int.
80348         (human_options): New decl.
80349
80350         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
80351         unnecessary now that we assume C89 or better.  This change
80352         imported from coreutils.
80353
80354         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
80355         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
80356         in the 2003-05-30 sync from glibc.
80357
80358         .h files should stand alone, but we shouldn't include <sys/types.h>
80359         if we can get away with just <stddef.h>.
80360
80361         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
80362         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
80363         rather than <sys/types.h>, as we merely need size_t.
80364         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
80365         to get size_t.
80366         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
80367         Include <stdio.h>, to get FILE.
80368         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
80369         memcasecmp.h has included <stddef.h> and all we need is size_t.
80370         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
80371         our interface, instead of including <sys/types.h>
80372
80373 2003-06-04  Paul Eggert  <eggert@twinsun.com>
80374
80375         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
80376         now, as glibc mktime is buggy on non-glibc systems.
80377
80378 2003-06-03  Karl Berry  <karl@gnu.org>
80379
80380         * config/config.sub: update from prep.
80381
80382 2003-06-02  Paul Eggert  <eggert@twinsun.com>
80383
80384         [from coreutils]
80385         Fix some minor time-related bugs with POSIX time arguments.
80386         Some valid time stamps were being rejected (notably -1, and
80387         time stamps before 1900 on 64-bit hosts).  And some invalid
80388         time stamps were being accepted, e.g. September 31.
80389
80390         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
80391         that we can return (time_t) -1 successfully.
80392         * lib/posixtm.c: Likewise.
80393         [HAVE_STDBOOL_H]: Include <stdbool.h>.
80394         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
80395         (t): Remove static var.
80396         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
80397         of static var.  All uses changed.
80398         (year): Do not reject years before 1900; they can occur with
80399         64-bit time_t.
80400         (posix_time_parse): Do not check for out-of-range components;
80401         that is now the caller's responsibility, since our checks were
80402         only approximations.
80403         (posixtime): Use mktime to check for out-of-range components,
80404         since it knows them exactly.
80405         If mktime returns (time_t) -1, check whether an error actually occurred
80406         by invoking localtime on -1.
80407         (main) [TEST_POSIXTIME]: Check for input data errors, and report
80408         posixtime failures better.
80409         Improve the test data (in comments only).
80410
80411 2003-06-02  Karl Berry  <karl@gnu.org>
80412
80413         * config/mkinstalldirs (version): new variable.
80414         (--version): new option.
80415         (usage): improve message.
80416
80417 2003-05-30  Karl Berry  <karl@gnu.org>
80418
80419         * lib/mktime.c: update from libc.
80420
80421 2003-05-30  Bruno Haible  <bruno@clisp.org>
80422
80423         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
80424         * config/config.rpath: Upgrade to gettext-0.12.1.
80425
80426 2003-05-30  Bruno Haible  <bruno@clisp.org>
80427
80428         * m4/gettext.m4: Upgrade to gettext-0.12.1.
80429         * m4/nls.m4: New file, from gettext-0.12.1.
80430         * m4/po.m4: New file, from gettext-0.12.1.
80431         * m4/progtest.m4: Upgrade to gettext-0.12.1.
80432
80433 2003-05-30  Bruno Haible  <bruno@clisp.org>
80434
80435         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
80436         * lib/localcharset.h: Likewise.
80437         * lib/localcharset.c: Likewise.
80438
80439 2003-05-29  Karl Berry  <karl@gnu.org>
80440
80441         * config/config.rpath: update from gettext.
80442
80443 2003-05-28  Paul Eggert  <eggert@twinsun.com>
80444
80445         Assume the headers required for C89 freestanding compilers.
80446         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
80447         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
80448         * m4/human.m4 (gl_HUMAN): Likewise.
80449         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
80450         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
80451         * m4/userspec.m4 (gl_USERSPEC): Likewise.
80452         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
80453         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
80454         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
80455
80456 2003-05-28  Paul Eggert  <eggert@twinsun.com>
80457
80458         Assume the headers required for C89 freestanding compilers.
80459         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
80460         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
80461         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
80462         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
80463         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
80464         define, since <limits.h> is guaranteed to do that.
80465         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
80466         * lib/exclude.c: Include <stdbool.h> unconditionally.
80467         * lib/tempname.c: Include <stddef.h> unconditionally.
80468         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
80469         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
80470         <stddef.h> does that.
80471         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
80472         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
80473         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
80474         needed.
80475         * lib/xstrtol.c: Likewise.
80476         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
80477         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
80478
80479         * lib/addext.c (addext): Use assignment rather than cast, to avoid
80480         warnings on some platforms.
80481
80482         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
80483         arbitrarily.
80484
80485 2003-05-26  Jim Meyering  <jim@meyering.net>
80486
80487         Merge in a change from coreutils:
80488         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
80489         that is guaranteed to be `no'.  Use `no_such_member' to indicate
80490         that condition, rather than `-1' which is slightly misleading.
80491         Change the name of the cache variable to have the gl_ prefix.
80492         Prompted by a patch from Richard Dawe for DJGPP.
80493
80494 2003-05-24  Karl Berry  <karl@gnu.org>
80495
80496         * config/config.guess: update from prep.
80497
80498 2003-05-22  Karl Berry  <karl@gnu.org>
80499
80500         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
80501
80502 2003-05-20  Karl Berry  <karl@gnu.org>
80503
80504         * config/config.guess: update from prep.
80505
80506 2003-05-18  Karl Berry  <karl@gnu.org>
80507
80508         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
80509         might actually be set by the user.
80510
80511         * config/depcomp, install-sh, mdate-sh: update from automake.
80512
80513 2003-05-17  Bruno Haible  <bruno@clisp.org>
80514
80515         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
80516         invalid expansion for AC_EGREP_CPP.
80517         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
80518         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
80519         Suggested by Akim Demaille <akim@epita.fr> in
80520         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
80521
80522 2003-05-12  Jim Meyering  <jim@meyering.net>
80523
80524         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
80525         the space-padded-by-default conversion specifiers, %e, %k, %l.
80526
80527 2003-05-12  Bruno Haible  <bruno@clisp.org>
80528
80529         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
80530         the string is longer than 4 KB.
80531
80532 2003-05-11  Karl Berry  <karl@gnu.org>
80533
80534         * config/config.{guess,sub}: update from prep.
80535
80536 2003-05-09  Bruno Haible  <bruno@clisp.org>
80537
80538         * modules/error: Add m4/strerror_r.m4 to file list.
80539
80540 2003-05-03  Bruno Haible  <bruno@clisp.org>
80541
80542         Upgrade to Unicode-4.0.
80543         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
80544         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
80545         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
80546         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
80547         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
80548         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
80549         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
80550         Change width of U+E0100..U+E01EF from 1 to 0.
80551
80552 2003-04-25  Jim Meyering  <jim@meyering.net>
80553
80554         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
80555         of type size_t, not int.
80556
80557 2003-04-25  Bruno Haible  <bruno@clisp.org>
80558
80559         * lib/copy-file.c: Include <stddef.h>, for size_t.
80560
80561 2003-04-21  Paul Eggert  <eggert@twinsun.com>
80562
80563         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
80564         code which expansion is under static control.  Patch imported from
80565         Akim Demaille's patch to Bison; see
80566         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
80567
80568 2003-04-14  Bruno Haible  <bruno@clisp.org>
80569
80570         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
80571
80572 2003-04-11  Jim Meyering  <jim@meyering.net>
80573
80574         Merge changes from Coreutils.
80575
80576         2003-03-22  Jim Meyering  <jim@meyering.net>
80577
80578         * lib/strftime.c (widen): Cast alloca return value to proper type.
80579
80580         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
80581
80582         From GNU libc.
80583         * lib/strftime.c (my_strftime): Handle very large width
80584         specifications for numeric values correctly.  Improve checks for
80585         overflow.
80586
80587         2003-01-19  Jim Meyering  <jim@meyering.net>
80588
80589         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
80590         definitions.
80591         (nl_get_alt_digit) [! defined my_strftime]: Define.
80592         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
80593         _nl_get_alt_digit and _nl_get_walt_digit.
80594
80595         * lib/strftime.c (my_strftime): Merge in locale-related changes from
80596         libc. These changes have no effect outside of _LIBC.
80597
80598 2003-04-10  Bruno Haible  <bruno@clisp.org>
80599
80600         * modules/findprog: New file.
80601         * MODULES.html.sh (func_all_modules): Add it.
80602
80603 2003-04-10  Bruno Haible  <bruno@clisp.org>
80604
80605         * m4/findprog.m4: New file.
80606         * m4/eaccess.m4: New file.
80607
80608 2003-04-10  Bruno Haible  <bruno@clisp.org>
80609
80610         * lib/findprog.h: New file, from GNU gettext.
80611         * lib/findprog.c: New file, from GNU gettext.
80612
80613 2003-04-05  Jim Meyering  <jim@meyering.net>
80614
80615         Merge changes from Coreutils.
80616
80617         * lib/exclude.h (PARAMS): Remove definition and uses.
80618         * lib/exclude.c: Remove uses of `PARAMS'.
80619
80620         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
80621         Add test-cases for DOS filenames. Declare program_name.
80622         (main): Set up program_name.  Patch by Rich Dawe.
80623
80624         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
80625         error from mntctl.
80626         Use mntctl's return value to drive the entry-processing loop, since
80627         we can't rely on the value of the vmt_length member in the last
80628         entry.  On some systems doing so could result in exhausting
80629         virtual memory.  Based in part on a patch from Mike Jetzer.
80630
80631 2003-04-04  Bruno Haible  <bruno@clisp.org>
80632
80633         * modules/linebreak: New file.
80634         * MODULES.html.sh (func_all_modules): Add it.
80635
80636 2003-04-04  Bruno Haible  <bruno@clisp.org>
80637
80638         * m4/linebreak.m4: New file.
80639
80640 2003-04-04  Bruno Haible  <bruno@clisp.org>
80641
80642         * lib/linebreak.h: New file, from GNU gettext.
80643         * lib/linebreak.c: New file, from GNU gettext with slight
80644         modifications.
80645         * lib/lbrkprop.h: New file, from GNU gettext.
80646
80647 2003-04-03  Bruno Haible  <bruno@clisp.org>
80648
80649         * modules/utf8-ucs4: New file.
80650         * modules/utf16-ucs4: New file.
80651         * modules/ucs4-utf8: New file.
80652         * modules/ucs4-utf16: New file.
80653         * MODULES.html.sh (func_all_modules): Add them.
80654
80655 2003-04-03  Bruno Haible  <bruno@clisp.org>
80656
80657         * m4/utf-ucs4.m4: New file.
80658         * m4/ucs4-utf.m4: New file.
80659
80660 2003-04-03  Bruno Haible  <bruno@clisp.org>
80661
80662         * lib/utf8-ucs4.h: New file, from GNU gettext.
80663         * lib/utf16-ucs4.h: New file, from GNU gettext.
80664         * lib/ucs4-utf8.h: New file, from GNU gettext.
80665         * lib/ucs4-utf16.h: New file, from GNU gettext.
80666
80667 2003-04-02  Bruno Haible  <bruno@clisp.org>
80668
80669         * modules/binary-io: New file.
80670         * MODULES.html.sh (func_all_modules): Add it.
80671
80672 2003-04-02  Bruno Haible  <bruno@clisp.org>
80673
80674         * lib/binary-io.h: New file, from GNU gettext.
80675
80676 2003-04-01  Bruno Haible  <bruno@clisp.org>
80677
80678         * modules/pathname: New file.
80679         * MODULES.html.sh (func_all_modules): Add it.
80680
80681 2003-04-01  Bruno Haible  <bruno@clisp.org>
80682
80683         * lib/pathname.h: New file, from GNU gettext.
80684         * lib/concatpath.c: New file, from GNU gettext.
80685
80686 2003-03-30  Bruno Haible  <bruno@clisp.org>
80687
80688         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
80689
80690 2003-03-30  Bruno Haible  <bruno@clisp.org>
80691
80692         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
80693         function chown() doesn't exist.
80694
80695 2003-03-28  Bruno Haible  <bruno@clisp.org>
80696
80697         * modules/copy-file: New file.
80698         * MODULES.html.sh (func_all_modules): Add it.
80699
80700 2003-03-28  Bruno Haible  <bruno@clisp.org>
80701
80702         * m4/copy-file.m4: New file.
80703
80704 2003-03-28  Bruno Haible  <bruno@clisp.org>
80705
80706         * lib/copy-file.h: New file, from GNU gettext.
80707         * lib/copy-file.c: New file, from GNU gettext.
80708
80709 2003-03-18  Jim Meyering  <jim@meyering.net>
80710
80711         * lib/quote.c (quote_n): Fix typo in comment.
80712
80713 2003-03-18  Bruno Haible  <bruno@clisp.org>
80714
80715         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
80716         checking.
80717         * m4/onceonly_2_57.m4: Likewise.
80718
80719 2003-03-17  Bruno Haible  <bruno@clisp.org>
80720
80721         * m4/onceonly.m4: Require autoconf 2.54 or newer.
80722         (m4_quote): Remove macro.
80723         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
80724
80725 2003-03-14  Jim Meyering  <jim@meyering.net>
80726
80727         Merge changes from Coreutils.
80728         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
80729         to be const, in order to avoid warnings.
80730         (obstack_room): Likewise.
80731         (obstack_empty_p): Likewise.
80732
80733 2003-03-14  Bruno Haible  <bruno@clisp.org>
80734
80735         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
80736         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
80737
80738 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80739
80740         Merge changes from Bison.
80741         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
80742         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
80743         when compiling Bison 1.875's `bitset bset = obstack_alloc
80744         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
80745         * lib/hash.c: Include <stdbool.h> unconditionally.
80746
80747 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80748
80749         * m4/onceonly.m4 (m4_quote): New macro.
80750         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
80751         Quote AC_FOREACH variable-expansions properly.
80752
80753 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80754
80755         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
80756
80757 2003-03-09  Paul Eggert  <eggert@twinsun.com>
80758
80759         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
80760         Reported by Bruce Becker; see:
80761         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
80762
80763 2003-03-03  Paul Eggert  <eggert@twinsun.com>
80764             Bruno Haible  <bruno@clisp.org>
80765
80766         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
80767         Reported by John Hughes, see
80768         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
80769
80770 2003-02-20  Bruno Haible  <bruno@clisp.org>
80771
80772         * MODULES.html.sh (func_all_modules): Add poll.
80773
80774 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80775
80776         * modules/poll: New file.
80777
80778 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80779
80780         * lib/poll_.h: New file.
80781         * lib/poll.c: New file.
80782
80783 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80784
80785         * m4/poll.m4: New file.
80786
80787 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80788
80789         * modules/mathl: New file.
80790
80791 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80792
80793         * lib/mathl.h: New file.
80794         * lib/acosl.c: New file.
80795         * lib/asinl.c: New file.
80796         * lib/atanl.c: New file.
80797         * lib/ceill.c: New file.
80798         * lib/cosl.c: New file.
80799         * lib/expl.c: New file.
80800         * lib/floorl.c: New file.
80801         * lib/frexpl.c: New file.
80802         * lib/ldexpl.c: New file.
80803         * lib/logl.c: New file.
80804         * lib/sincosl.c: New file.
80805         * lib/sinl.c: New file.
80806         * lib/sqrtl.c: New file.
80807         * lib/tanl.c: New file.
80808         * lib/trigl.c: New file.
80809         * lib/trigl.h: New file.
80810
80811 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80812
80813         * m4/mathl.m4: New file.
80814
80815 2003-02-18  Bruno Haible  <bruno@clisp.org>
80816
80817         * MODULES.html.sh (func_all_modules): Add mathl.
80818
80819 2003-02-17  Bruno Haible  <bruno@clisp.org>
80820
80821         * modules/mkdtemp: New module.
80822         * MODULES.html.sh (func_all_modules): Add it.
80823
80824 2003-02-17  Bruno Haible  <bruno@clisp.org>
80825
80826         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
80827
80828 2003-02-17  Bruno Haible  <bruno@clisp.org>
80829
80830         * lib/mkdtemp.h: New file, from GNU gettext.
80831         * lib/mkdtemp.c: New file, from GNU gettext.
80832
80833 2003-02-02  Jim Meyering  <jim@meyering.net>
80834
80835         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
80836         e.g. glibc-2.2.93.
80837
80838 2003-01-31  Bruno Haible  <bruno@clisp.org>
80839
80840         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
80841         'rpl_rename'.
80842         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
80843         'rpl_strnlen'.
80844         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
80845         'rpl_strtod'.
80846         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
80847         'rpl_utime'.
80848
80849 2003-01-31  Bruno Haible  <bruno@clisp.org>
80850
80851         * lib/rename.c: #undef rename before defining rpl_rename.
80852         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
80853
80854 2003-01-30  Bruno Haible  <bruno@clisp.org>
80855
80856         * modules/vasnprintf, modules/vasprintf: New modules.
80857         * MODULES.html.sh (func_all_modules): Add them.
80858
80859 2003-01-30  Bruno Haible  <bruno@clisp.org>
80860
80861         * m4/signed.m4: New file, from GNU gettext.
80862         * m4/longdouble.m4: New file, from GNU gettext.
80863         * m4/wchar_t.m4: New file, from GNU gettext.
80864         * m4/wint_t.m4: New file, from GNU gettext.
80865         * m4/vasnprintf.m4: New file.
80866         * m4/vasprintf.m4: New file.
80867
80868 2003-01-30  Bruno Haible  <bruno@clisp.org>
80869
80870         * lib/printf-args.h: New file, from GNU gettext.
80871         * lib/printf-args.c: New file, from GNU gettext.
80872         * lib/printf-parse.h: New file, from GNU gettext.
80873         * lib/printf-parse.c: New file, from GNU gettext.
80874         * lib/vasnprintf.h: New file, from GNU gettext.
80875         * lib/vasnprintf.c: New file, from GNU gettext.
80876         * lib/asnprintf.c: New file, from GNU gettext.
80877         * lib/vasprintf.h: New file, from GNU gettext with modifications.
80878         * lib/vasprintf.c: New file, from GNU gettext.
80879         * lib/asprintf.c: New file, from GNU gettext.
80880
80881 2003-01-29  Bruno Haible  <bruno@clisp.org>
80882
80883         * modules/stpncpy: New module.
80884         * MODULES.html.sh (func_all_modules): Add it.
80885
80886 2003-01-29  Bruno Haible  <bruno@clisp.org>
80887
80888         * m4/stpncpy.m4: New file.
80889
80890 2003-01-29  Bruno Haible  <bruno@clisp.org>
80891
80892         * lib/stpncpy.h: New file, from GNU gettext with modifications.
80893         * lib/stpncpy.c: New file, from GNU gettext with modifications.
80894
80895 2003-01-28  Bruno Haible  <bruno@clisp.org>
80896
80897         * modules/c-ctype: New module.
80898         * MODULES.html.sh (func_all_modules): Add it.
80899
80900 2003-01-28  Bruno Haible  <bruno@clisp.org>
80901
80902         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
80903         Paul Eggert.
80904         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
80905         Paul Eggert.
80906
80907 2003-01-27  Bruno Haible  <bruno@clisp.org>
80908
80909         * modules/xsetenv: New module.
80910         * MODULES.html.sh (func_all_modules): Add it.
80911
80912 2003-01-27  Bruno Haible  <bruno@clisp.org>
80913
80914         * lib/xsetenv.h: New file, from GNU gettext.
80915         * lib/xsetenv.c: New file, from GNU gettext.
80916
80917 2003-01-23  Jim Meyering  <jim@meyering.net>
80918
80919         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
80920         from working on systems without dirfd (at least Irix and OSF1/Tru64).
80921
80922 2003-01-23  Bruno Haible  <bruno@clisp.org>
80923
80924         * modules/minmax: New module.
80925         * MODULES.html.sh (func_all_modules): Add it.
80926
80927 2003-01-23  Bruno Haible  <bruno@clisp.org>
80928
80929         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
80930         Eggert.
80931
80932 2003-01-22  Bruno Haible  <bruno@clisp.org>
80933
80934         * modules/exit: New module.
80935         * MODULES.html.sh (func_all_modules): Add it.
80936
80937 2003-01-22  Bruno Haible  <bruno@clisp.org>
80938
80939         * lib/exit.h: New file, from GNU gettext.
80940
80941 2003-01-19  Bruno Haible  <bruno@clisp.org>
80942
80943         * gnulib-tool: Recognize option --extract-maintainer.
80944         (func_get_maintainer): New function.
80945         * modules/*: Add Maintainer entry.
80946
80947 2003-01-16  Jim Meyering  <jim@meyering.net>
80948
80949         * m4/regex.m4: The `regex' struct is both input and output.
80950         Initialize it before each use.  Patch by Tim Waugh.
80951
80952 2003-01-16  Bruno Haible  <bruno@clisp.org>
80953
80954         * MODULES.html.sh: Add a table of contents. Add the module name as
80955         leftmost column. Add hyperlinks.
80956
80957 2003-01-15  Bruno Haible  <bruno@clisp.org>
80958
80959         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
80960
80961 2003-01-15  Bruno Haible  <bruno@clisp.org>
80962
80963         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
80964         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
80965         suffix.
80966
80967 2003-01-15  Bruno Haible  <bruno@clisp.org>
80968
80969         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
80970
80971 2003-01-15  Bruno Haible  <bruno@clisp.org>
80972
80973         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
80974         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
80975
80976 2003-01-14  Jim Meyering  <jim@meyering.net>
80977
80978         * lib/same.c (same_name): Tweak a comment.
80979
80980 2003-01-14  Bruno Haible  <bruno@clisp.org>
80981
80982         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
80983         when a string comparison is sufficient.
80984
80985 2003-01-14  Bruno Haible  <bruno@clisp.org>
80986
80987         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
80988         'unsigned int'.
80989
80990 2003-01-14  Bruno Haible  <bruno@clisp.org>
80991
80992         * lib/hash-pjw.c: Add comment about low quality of this function.
80993
80994 2003-01-13  Bruno Haible  <bruno@clisp.org>
80995
80996         * modules/stpcpy: Distribute lib/stpcpy.h.
80997         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
80998
80999 2003-01-13  Bruno Haible  <bruno@clisp.org>
81000
81001         * modules/*: Add a description.
81002         * modules/strpbrk: Fix Makefile.am snippet.
81003         * modules/strtoimax: Fix dependencies.
81004         * modules/strtoumax: Likewise.
81005
81006 2003-01-13  Bruno Haible  <bruno@clisp.org>
81007
81008         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
81009         * modules/alloca (Makefile.am): All object files depend on alloca.h.
81010         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
81011
81012 2003-01-13  Bruno Haible  <bruno@clisp.org>
81013
81014         * gnulib-tool (func_create_testdir): Store config/* files in the main
81015         directory.
81016         * config.rpath: Move to ...
81017         * config/config.rpath: ... here.
81018         * modules/gettext: Contains config/config.rpath, not config.rpath.
81019         * modules/iconv: Likewise.
81020
81021 2003-01-12  Paul Eggert  <eggert@twinsun.com>
81022
81023         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
81024         to avoid collisions with libcurses and libreadline.
81025
81026         * m4/getstr.m4: Remove.
81027         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
81028
81029 2003-01-12  Paul Eggert  <eggert@twinsun.com>
81030
81031         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
81032         to avoid collisions with libcurses and libreadline.
81033
81034         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
81035         * lib/getstr.h, getstr.c: Remove.
81036         * lib/getline.c: Include "getline.h", to check interface.
81037         Move body of old getstr.c here: this defines MIN_CHUNK and
81038         declares getdelim2, which is renamed from getstr.
81039         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
81040
81041         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
81042         All uses changed.
81043         * lib/linebuffer.h: Likewise.
81044         (readline): Remove backward-compatibility macro.
81045
81046 2003-01-12  Paul Eggert  <eggert@twinsun.com>
81047
81048         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
81049         to avoid collisions with libcurses and libreadline.
81050         * getstr: Remove.
81051         * MODULES.html.sh: Remove getstr.
81052         * modules/getline: Depend on unlocked-io, not getstr.
81053
81054 2003-01-12  Jim Meyering  <jim@meyering.net>
81055
81056         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
81057
81058 2003-01-10  Bruno Haible  <bruno@clisp.org>
81059
81060         * modules/alloca: Change Makefile.am requirements. Simplify Include
81061         requirements. Add lib/alloca_.h to file list.
81062
81063 2003-01-10  Bruno Haible  <bruno@clisp.org>
81064
81065         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
81066
81067 2003-01-10  Bruno Haible  <bruno@clisp.org>
81068
81069         * lib/alloca_.h: New file.
81070         * lib/getdate.y: Unconditionally include alloca.h.
81071         * lib/makepath.c: Likewise.
81072         * lib/setenv.c: Likewise.
81073         * lib/userspec.c: Likewise.
81074
81075 2003-01-09  Karl Berry  <karl@gnu.org>
81076
81077         * MODULES.html.sh: include `dirname $0` in PATH, to find
81078         gnulib-tool.
81079
81080 2003-01-09  Bruno Haible  <bruno@clisp.org>
81081
81082         * modules/stdbool: Change configure.ac, Makefile.am requirements.
81083         Simplify Include requirements. Add lib/stdbool.h.in to file list.
81084
81085 2003-01-09  Bruno Haible  <bruno@clisp.org>
81086
81087         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
81088
81089 2003-01-09  Bruno Haible  <bruno@clisp.org>
81090
81091         * lib/stdbool.h.in: New file.
81092
81093 2003-01-09  Bruno Haible  <bruno@clisp.org>
81094
81095         * gnulib-tool (func_all_modules): Ignore files ending in ~.
81096         * MODULES.html.sh: Likewise.
81097
81098 2003-01-08  Jim Meyering  <jim@meyering.net>
81099
81100         * lib/full-write.c: Undefine and define-away `const' after inclusion
81101         of errno.h, not before.  Suggestion from Bruno Haible.
81102
81103 2003-01-08  Bruno Haible  <bruno@clisp.org>
81104
81105         * modules/full-read: Depend on full-write.
81106
81107 2003-01-08  Bruno Haible  <bruno@clisp.org>
81108
81109         * lib/safe-read.c: Include specification header first, to ensure its
81110         selfcontainedness.
81111         * lib/full-write.c: Likewise.
81112
81113 2003-01-07  Jim Meyering  <jim@meyering.net>
81114
81115         * lib/full-write.c: Rework so that it may serve to define full_read,
81116         too.
81117         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
81118
81119 2003-01-07  Bruno Haible  <bruno@clisp.org>
81120
81121         * lib/strtoimax.c: Include <stdint.h> as an alternative to
81122         <inttypes.h>.
81123         * lib/xstrtol.h: Likewise.
81124         * lib/xstrtoimax.c: Likewise.
81125         * lib/xstrtoumax.c: Likewise.
81126         * lib/human.h: Likewise.
81127
81128         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
81129         on systems that have <inttypes.h> but not <stdint.h>.
81130
81131 2003-01-07  Bruno Haible  <bruno@clisp.org>
81132
81133         * MODULES.html.sh: Add copyright notice.
81134         (missed_files): Omit CVS directory entries.
81135         (func_module): Make it work with sed-3.02.
81136         * MODULES.txt: Remove file.
81137
81138 2003-01-06  Jim Meyering  <jim@meyering.net>
81139
81140         * lib/version-etc.c: Update year in translatable copyright string.
81141
81142 2003-01-03  Karl Berry  <karl@gnu.org>
81143
81144         * config/config.{guess,sub}: update from prep.
81145
81146 2003-01-02  Karl Berry  <karl@gnu.org>
81147
81148         * doc/COPYING.DOC: belatedly updated to 1.2.
81149
81150 2003-01-01  Karl Berry  <karl@gnu.org>
81151
81152         * gnulib-tool (func_verify_module): report module name $module in
81153         error message, not $1.
81154         * gnulib-tool (create-testdir): don't complain if destdir couldn't
81155         be created, only if it doesn't exist.
81156         * gnulib-tool (last_checkin_date): don't expand the $Date here.
81157
81158 2002-12-31  Paul Eggert  <eggert@twinsun.com>
81159
81160         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
81161
81162 2002-12-31  Paul Eggert  <eggert@twinsun.com>
81163
81164         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
81165         memcmp if strcoll doesn't work.
81166
81167 2002-12-31  Bruno Haible  <bruno@clisp.org>
81168
81169         * lib/utime.c (utime_null): No need to call ftruncate if the file was
81170         nonempty.
81171
81172 2002-12-31  Bruno Haible  <bruno@clisp.org>
81173
81174         * lib/memcoll.c (STRCOLL): New macro.
81175         (memcoll): Use it.
81176
81177 2002-12-31  Bruno Haible  <bruno@clisp.org>
81178
81179         * lib/localcharset.h: New file.
81180         * lib/localcharset.c: Include it.
81181         * lib/unicodeio.c: Likewise.
81182
81183 2002-12-31  Bruno Haible  <bruno@clisp.org>
81184
81185         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
81186         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
81187
81188 2002-12-31  Bruno Haible  <bruno@clisp.org>
81189
81190         * lib/getline.h: Include <stddef.h>, for size_t.
81191
81192         * lib/unicodeio.h: Include <stddef.h>, for size_t.
81193         * lib/unicodeio.c: Don't include <stddef.h>.
81194
81195 2002-12-31  Bruno Haible  <bruno@clisp.org>
81196
81197         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
81198         HAVE_TM_ZONE.
81199
81200 2002-12-24  Karl Berry  <karl@gnu.org>
81201
81202         * config/config.guess: update from prep.
81203
81204 2002-12-24  Bruno Haible  <bruno@clisp.org>
81205
81206         General infrasructure.
81207         * m4/README: Rewritten.
81208         * m4/onceonly.m4: New file.
81209         * m4/onceonly_2_57.m4: New file.
81210
81211         Module atexit.
81212         * m4/atexit.m4: New file.
81213
81214         Module strtod.
81215         * m4/strtod.m4: New file.
81216
81217         Module strtol.
81218         * m4/strtol.m4: New file.
81219
81220         Module strtoul.
81221         * m4/strtoul.m4: New file.
81222
81223         Module memchr.
81224         * m4/memchr.m4: New file.
81225
81226         Module memcmp.
81227         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
81228         (jm_FUNC_MEMCMP): Invoke it.
81229
81230         Module memcpy.
81231         * m4/memcpy.m4: New file.
81232
81233         Module memmove.
81234         * m4/memmove.m4: New file.
81235
81236         Module memset.
81237         * m4/memset.m4: New file.
81238
81239         Module strcspn.
81240         * m4/strcspn.m4: New file.
81241
81242         Module strpbrk.
81243         * m4/strpbrk.m4: New file.
81244
81245         Module strstr.
81246         * m4/strstr.m4: New file.
81247
81248         Module strerror.
81249         * m4/strerror.m4: New file.
81250
81251         Module mktime.
81252         * m4/mktime.m4: Renamed from jm-mktime.m4.
81253         (gl_PREREQ_MKTIME): New macro.
81254         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
81255
81256         Module malloc.
81257         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
81258         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
81259         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
81260
81261         Module realloc.
81262         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
81263         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
81264         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
81265
81266         Module strftime.
81267         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
81268         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
81269         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
81270         gl_TM_GMTOFF.
81271         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
81272
81273         Module xalloc.
81274         * m4/xalloc.m4: New file.
81275
81276         Module alloca.
81277         * m4/alloca.m4: New file.
81278
81279         Module putenv.
81280         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
81281         (jm_FUNC_PUTENV): Invoke it.
81282
81283         Module setenv.
81284         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
81285         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
81286         when invoked twice.
81287         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
81288         gt_FUNC_SETENV.
81289
81290         Module memrchr.
81291         * m4/memrchr.m4: New file.
81292
81293         Module stpcpy.
81294         * m4/stpcpy.m4: New file.
81295
81296         Module strcase.
81297         * m4/strcase.m4: New file.
81298
81299         Module strdup.
81300         * m4/strdup.m4: New file.
81301
81302         Module strnlen.
81303         * m4/strnlen.m4: New file.
81304
81305         Module strndup.
81306         * m4/strndup.m4: New file.
81307
81308         Module xstrtod.
81309         * m4/xstrtod.m4: New file.
81310
81311         Module xstrtol.
81312         * m4/xstrtol.m4: New file.
81313
81314         Module getdate.
81315         * m4/getdate.m4: New file.
81316
81317         Module unlocked-io.
81318         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
81319         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
81320         * m4/jm-glibc-io.m4n: Remove file.
81321
81322         Module long-options.
81323         * m4/long-options.m4: New file.
81324
81325         Module md5.
81326         * m4/md5.m4: New file.
81327
81328         Module sha.
81329         * m4/sha.m4: New file.
81330
81331         Module getstr.
81332         * m4/getstr.m4: New file.
81333
81334         Module getline.
81335         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
81336         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
81337         <sys/types.h>, for size_t. Use the function name gnu_getline, not
81338         simply getline. Infoke gl_PREREQ_GETLINE.
81339
81340         Module obstack.
81341         * m4/obstack.m4: New file.
81342
81343         Module hash.
81344         * m4/hash.m4: New file.
81345
81346         Module readtokens.
81347         * m4/readtokens.m4: New file.
81348
81349         Module strverscmp.
81350         * m4/strverscmp.m4: New file.
81351
81352         Module stdbool.
81353         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
81354         OSF/1.
81355
81356         Module strtoll.
81357         * m4/strtoll.m4: New file.
81358
81359         Module strtoull.
81360         * m4/strtoull.m4: New file.
81361
81362         Module strtoimax.
81363         * m4/strtoimax.m4: New file.
81364
81365         Module strtoumax.
81366         * m4/strtoumax.m4: New file.
81367
81368         Module xstrtoimax.
81369         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
81370         jm_AC_PREREQ_XSTRTOIMAX.
81371         Moved the strtol prerequisites to strtol.m4.
81372         Moved the strtoll prerequisites to strtoll.m4.
81373         Moved the strtoimax prerequisites to strtoimax.m4.
81374
81375         Module xstrtoumax.
81376         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
81377         jm_AC_PREREQ_XSTRTOUMAX.
81378         Moved the strtoul prerequisites to strtoul.m4.
81379         Moved the strtoull prerequisites to strtoull.m4.
81380         Moved the strtoumax prerequisites to strtoumax.m4.
81381
81382         Module chown.
81383         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
81384         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
81385
81386         Module dup2.
81387         * m4/dup2.m4: New file.
81388
81389         Module ftruncate.
81390         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
81391         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
81392
81393         Module getgroups.
81394         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
81395         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
81396
81397         Module gettimeofday.
81398         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
81399         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
81400         gl_PREREQ_GETTIMEOFDAY.
81401
81402         Module mkdir.
81403         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
81404         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
81405
81406         Module mkstemp.
81407         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
81408         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
81409         jm_AC_TYPE_UINTMAX_T.
81410         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
81411
81412         Module stat.
81413         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
81414         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
81415
81416         Module lstat.
81417         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
81418         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
81419
81420         Module timespec.
81421         * m4/timespec.m4 (gl_TIMESPEC): New macro.
81422         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
81423         * m4/st_mtim.m4: Indentation.
81424
81425         Module nanosleep.
81426         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
81427         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
81428         gl_PREREQ_NANOSLEEP.
81429
81430         Module regex.
81431         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
81432         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
81433         (gl_REGEX): New macro.
81434
81435         Module rename.
81436         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
81437         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
81438
81439         Module rmdir.
81440         * m4/rmdir.m4: New file.
81441
81442         Module utime.
81443         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
81444         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
81445         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
81446
81447         Module dirname.
81448         * m4/dirname.m4: New file.
81449
81450         Module getopt.
81451         * m4/getopt.m4: New file.
81452
81453         Module unistd-safer.
81454         * m4/unistd-safer.m4: New file.
81455
81456         Module fnmatch.
81457         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
81458         declaration.
81459         (gl_PREREQ_FNMATCH_EXTRA): New macro.
81460         (gl_FUNC_FNMATCH_POSIX): New macro.
81461         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
81462         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
81463         simply fnmatch.
81464
81465         Module exclude.
81466         * m4/exclude.m4: New file.
81467
81468         Module human.
81469         * m4/human.m4: New file.
81470
81471         Module acl.
81472         * m4/acl.m4: Nop.
81473
81474         Module backupfile.
81475         * m4/backupfile.m4: New file.
81476         * m4/d-ino.m4: Indentation.
81477
81478         Module fsusage.
81479         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
81480         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
81481         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
81482
81483         Module dirfd.
81484         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
81485         requirements.
81486
81487         Module euidaccess.
81488         * m4/euidaccess.m4: New file.
81489
81490         Module file-type.
81491         * m4/file-type.m4: New file.
81492
81493         Module fileblocks.
81494         * m4/fileblocks.m4: New file.
81495
81496         Module filemode.
81497         * m4/filemode.m4: New file.
81498
81499         Module isdir.
81500         * m4/isdir.m4: New file.
81501
81502         Module lchown.
81503         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
81504         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
81505
81506         Module makepath.
81507         * m4/makepath.m4: New file.
81508
81509         Module modechange.
81510         * m4/modechange.m4: New file.
81511
81512         Module mountlist.
81513         * m4/mountlist.m4: New file.
81514         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
81515         Indentation.
81516
81517         Module path-concat.
81518         * m4/path-concat.m4: New file.
81519
81520         Module pathmax.
81521         * m4/pathmax.m4: New file.
81522
81523         Module same.
81524         * m4/same.m4: New file.
81525
81526         Module save-cwd.
81527         * m4/save-cwd.m4: New file.
81528
81529         Module savedir.
81530         * m4/savedir.m4: New file.
81531
81532         Module xgetcwd.
81533         * m4/xgetcwd.m4: New file.
81534         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
81535
81536         Module xreadlink.
81537         * m4/xreadlink.m4: New file.
81538
81539         Module safe-read.
81540         * m4/safe-read.m4: New file.
81541
81542         Module safe-write.
81543         * m4/safe-write.m4: New file.
81544
81545         Module closeout.
81546         * m4/closeout.m4: New file.
81547
81548         Module stdio-safer.
81549         * m4/stdio-safer.m4: New file.
81550
81551         Module getpass.
81552         * m4/getpass.m4: New file.
81553
81554         Module getugroups.
81555         * m4/getugroups.m4: New file.
81556
81557         Module group-member.
81558         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
81559         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
81560
81561         Module idcache.
81562         * m4/idcache.m4: New file.
81563
81564         Module userspec.
81565         * m4/userspec.m4: New file.
81566
81567         Module gettime.
81568         * m4/clock_time.m4: New file.
81569         * m4/gettime.m4: New file.
81570
81571         Module settime.
81572         * m4/settime.m4: New file.
81573
81574         Module posixtm.
81575         * m4/posixtm.m4: New file.
81576
81577         Module gethostname.
81578         * m4/gethostname.m4: New file.
81579
81580         Module canon-host.
81581         * m4/canon-host.m4: New file.
81582
81583         Module gettext.
81584         * m4/codeset.m4: New file, from gettext-0.11.5.
81585         * m4/gettext.m4: New file, from gettext-0.11.5.
81586         * m4/glibc21.m4: New file, from gettext-0.11.5.
81587         * m4/iconv.m4: New file, from gettext-0.11.5.
81588         * m4/intdiv0.m4: New file, from gettext-0.11.5.
81589         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
81590         * m4/inttypes.m4: New file, from gettext-0.11.5.
81591         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
81592         * m4/isc-posix.m4: New file, from gettext-0.11.5.
81593         * m4/lcmessage.m4: New file, from gettext-0.11.5.
81594         * m4/lib-ld.m4: New file, from gettext-0.11.5.
81595         * m4/lib-link.m4: New file, from gettext-0.11.5.
81596         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
81597         * m4/progtest.m4: New file, from gettext-0.11.5.
81598         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
81599         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
81600         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
81601
81602         Module localcharset.
81603         * m4/localcharset.m4: New file.
81604
81605         Module hard-locale.
81606         * m4/hard-locale.m4: New file.
81607
81608         Module mbswidth.
81609         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
81610         onceonly macros.
81611         * m4/mbrtowc.m4: Add comment.
81612
81613         Module memcasecmp.
81614         * m4/memcasecmp.m4: New file.
81615
81616         Module memcoll.
81617         * m4/memcoll.m4: New file.
81618
81619         Module unicodeio.
81620         * m4/unicodeio.m4: New file.
81621
81622         Module rpmatch.
81623         * m4/rpmatch.m4: New file.
81624
81625         Module yesno.
81626         * m4/yesno.m4: New file.
81627
81628         Module exitfail.
81629         * m4/exitfail.m4: New file.
81630
81631         Module c-stack.
81632         * m4/c-stack.m4 (gl_C_STACK): New macro.
81633         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
81634
81635         Module error.
81636         * m4/error.m4 (gl_ERROR): New macro.
81637         (jm_PREREQ_ERROR): Use onceonly macros.
81638
81639         Module fatal.
81640         * m4/fatal.m4: New file.
81641
81642         Module getloadavg.
81643         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
81644         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
81645
81646         Module getpagesize.
81647         * m4/getpagesize.m4: New file.
81648
81649         Module getusershell.
81650         * m4/getusershell.m4: New file.
81651
81652         Module physmem.
81653         * m4/physmem.m4: New file.
81654
81655         Module posixver.
81656         * m4/posixver.m4: New file.
81657
81658         Module quotearg.
81659         * m4/quotearg.m4: New file.
81660
81661         Module quote.
81662         * m4/quote.m4: New file.
81663
81664         Module readutmp.
81665         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
81666
81667         Module sig2str.
81668         * m4/sig2str.m4: New file.
81669
81670         Other.
81671         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
81672         ulonglong.m4.
81673         * m4/intmax_t.m4: New file.
81674         * m4/d-type.m4: Indentation.
81675         * m4/jm-macros.m4: Update.
81676         * m4/prereq.m4 (jm_PREREQ): Update.
81677         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
81678         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
81679         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
81680         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
81681         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
81682         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
81683         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
81684         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
81685         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
81686         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
81687         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
81688         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
81689         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
81690         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
81691         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
81692         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
81693         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
81694         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
81695         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
81696
81697 2002-12-24  Bruno Haible  <bruno@clisp.org>
81698
81699         * MODULES.txt: Update according to m4/ changes.
81700
81701         Module gettext.
81702         * config.rpath: New file, from gettext-0.11.5.
81703
81704         * modules/*: New module descriptions.
81705         * gnulib-tool: New file.
81706         * MODULES.html.sh: New file.
81707
81708 2002-12-21  Karl Berry  <karl@gnu.org>
81709
81710         * doc/fdl.texi: update to version 1.2.
81711
81712 2002-12-19  Karl Berry  <karl@gnu.org>
81713
81714         * config/config.guess: update from prep.
81715
81716 2002-12-18  Bruno Haible  <bruno@clisp.org>
81717
81718         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
81719         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
81720
81721 2002-12-17  Bruno Haible  <bruno@clisp.org>
81722
81723         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
81724         stdlib.h, string.h.
81725
81726 2002-12-17  Bruno Haible  <bruno@clisp.org>
81727
81728         * lib/canon-host.c (strdup): Remove unused declaration.
81729
81730         * lib/fsusage.c: Include full_read.h.
81731         (get_fs_usage): Use full_read instead of safe_read.
81732
81733         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
81734
81735 2002-12-12  Karl Berry  <karl@gnu.org>
81736
81737         * config/config.guess: update from prep.
81738
81739 2002-12-11  Bruno Haible  <bruno@clisp.org>
81740
81741         * m4/setenv.m4: New file, from gettext-0.11.5.
81742
81743 2002-12-11  Bruno Haible  <bruno@clisp.org>
81744
81745         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
81746         not unsetenv().
81747         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
81748         modifications:
81749
81750         2002-12-11  Bruno Haible  <bruno@clisp.org>
81751
81752                 * setenv.c (alloca): Fall back to malloc.
81753                 (freea): New macro.
81754                 (setenv): Use freea() to free memory allocated with alloca().
81755
81756         2002-11-13  Bruno Haible  <bruno@clisp.org>
81757
81758                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
81759                 function declarations.
81760                 * unsetenv.c (unsetenv): Likewise.
81761
81762         2002-03-04  Bruno Haible  <bruno@clisp.org>
81763
81764                 Portability to AIX 4.3.3.
81765                 * unsetenv.c: New file, extracted from setenv.c.
81766                 * setenv.c: Move the unsetenv() function to unsetenv.c.
81767
81768         2001-12-20  Bruno Haible  <bruno@clisp.org>
81769
81770                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
81771                 use malloc instead. For SunOS 4.
81772
81773         2001-12-11  Bruno Haible  <bruno@clisp.org>
81774
81775                 * setenv.c: Declare alloca.
81776                 (compar_fn_t): New typedef.
81777                 (KNOWN_VALUE, STORE_VALUE): Use it.
81778
81779         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
81780         setenv.h.
81781
81782 2002-12-10  Paul Eggert  <eggert@twinsun.com>
81783
81784         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
81785         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
81786         Choose values that are less likely to collide with system fnmatch
81787         options.
81788         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
81789         defined (e.g., a pure POSIX system).
81790         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
81791         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
81792
81793 2002-12-06  Paul Eggert  <eggert@twinsun.com>
81794
81795         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
81796         a pain in practice to deal with generated m4 files.  This change
81797         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
81798
81799         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
81800         and jm-glibc-io.m4, as they are no longer a special case.
81801         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
81802         kludge and the auto-generation stuff.  Check only whether the
81803         functions are declared, not whether they exist, since older hosts
81804         that don't declare the functions can't use the optimization anyway.
81805
81806 2002-12-06  Jim Meyering  <jim@meyering.net>
81807
81808         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
81809
81810         Merge in changes from libc's misc/error.c, in preparation
81811         for the merge of gnulib's changes back into libc.
81812
81813         * lib/error.c (_): Define only if not already defined.
81814         Move definition to follow all #include directives.
81815         Include unlocked-io.h only if !_LIBC.
81816         [_LIBC]: Include <libio/libioP.h>.
81817         [USE_IN_LIBIO]: Include <libio/iolibio.h>
81818         (fflush): Tweak definition to use INTUSE.
81819         (putc): Define.
81820
81821 2002-12-05  Paul Eggert  <eggert@twinsun.com>
81822
81823         * lib/alloca.c [defined emacs]: Include "lisp.h".
81824         (xalloc_die) [defined emacs]: New macro.
81825         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
81826         [! defined emacs]: Include <xalloc.h>.
81827         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
81828         (pointer): Typedef to POINTER_TYPE *.
81829         (malloc): Remove decl; we now always use xmalloc.
81830         (alloca): Use old-style definition, since Emacs needs this.
81831         Check for arithmetic overflow when computing combined size.
81832
81833 2002-12-04  Paul Eggert  <eggert@twinsun.com>
81834
81835         Do not generate unlocked-io.h automatically, since it's easier to
81836         maintain it by hand.
81837
81838         * lib/unlocked-io.h: New file, from GNU diffutils,
81839         but with proper copyright notice and attribution.
81840         * lib/gen-uio: Remove.
81841         * lib/Makefile.am: Add copyright notice.
81842         (libfetish_a_SOURCES): Add unlocked-io.h.
81843         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
81844         (DISTCLEANFILES, io_functions): Remove macros.
81845         (EXTRA_DIST): Remove gen_uio.
81846         (unlocked-io.h): Remove rule.
81847
81848 2002-12-04  Jim Meyering  <jim@meyering.net>
81849
81850         Reflect the fact that stat.c and lstat.c are no longer generated.
81851         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
81852         (DISTCLEANFILES): Likewise.
81853         (EXTRA_DIST): Likewise.
81854         (all_local): Don't depend on stat.c or lstat.c.
81855         (stat.c, lstat.c): Remove rules.
81856         (EXTRA_DIST): Remove xstat.in.
81857
81858         * lib/xstat.in: Remove file.  Contents moved into stat.c.
81859         * lib/stat.c: New file.  Contents mostly from xstat.in.
81860         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
81861         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
81862
81863         * lib/safe-read.c: Rework so that it may serve to define safe_write,
81864         too.
81865         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
81866
81867 2002-12-03  Jim Meyering  <jim@meyering.net>
81868
81869         * lib/safe-read.c, safe-write.c: Change variable names and comments,
81870         but not semantics, to minimize the differences between these two files.
81871         (safe_read): Change comment to mention SAFE_READ_ERROR.
81872
81873         * lib/safe-read.c (IS_EINTR): Define.
81874         (safe_read): Use IS_EINTR in place of in-function cpp directives.
81875
81876 2002-12-02  Jim Meyering  <jim@meyering.net>
81877
81878         * lib/safe-read.c (EINTR): Define.
81879         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
81880         (INT_MAX): Provide fallback.
81881         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
81882
81883         * lib/safe-read.h (SAFE_READ_ERROR): Define.
81884
81885 2002-12-02  Bruno Haible  <bruno@clisp.org>
81886
81887         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
81888         Define, taken from safe-read.c.
81889         (INT_MAX): Provide fallback.
81890         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
81891         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
81892
81893         * lib/safe-read.c (EINTR): Remove definition.
81894         (safe_read): Don't use EINTR if it is absent.
81895
81896 2002-12-01  Jim Meyering  <jim@meyering.net>
81897
81898         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
81899         zero.
81900         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
81901
81902 2002-11-27  Paul Eggert  <eggert@twinsun.com>
81903
81904         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
81905         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
81906         with `if (! (value < limit)) abort ();', for readability.
81907
81908 2002-11-26  Karl Berry  <karl@gnu.org>
81909
81910         * lib/strdup.c: copy from libc again, with jim's ok.
81911         * lib/.cppi-disable: re-add strdup.c
81912
81913 2002-11-25  Karl Berry  <karl@gnu.org>
81914
81915         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
81916         instead of "strtol.c".
81917
81918 2002-11-25  Karl Berry  <karl@gnu.org>
81919
81920         * config/install-sh: update from automake for variable quoting, $0 in
81921         error msgs, etc.
81922
81923         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
81924         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
81925         entry.
81926
81927 2002-11-25  Jim Meyering  <jim@meyering.net>
81928
81929         * lib/mktime.c: Sync from libc, now that it has the latest fix.
81930
81931 2002-11-24  Karl Berry  <karl@gnu.org>
81932
81933         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
81934         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
81935
81936 2002-11-24  Jim Meyering  <jim@meyering.net>
81937
81938         Update from coreutils:
81939
81940         * lib/mktime.c: Merge in changes from libc.
81941
81942         Avoid a link-time failure on some Linux systems.
81943         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
81944         (otherwise).
81945         (__mon_yday): Declare with the STATIC attribute.
81946         (__mktime_internal): Likewise.
81947         Based on a report from Greg Schafer.
81948
81949 2002-11-23  Jim Meyering  <jim@meyering.net>
81950
81951         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
81952         Use `unsigned', not `int', as type of index.
81953
81954         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
81955
81956         * lib/fsusage.c: Remove unneeded parentheses around operands of
81957         `defined'.
81958
81959 2002-11-22  Paul Eggert  <eggert@twinsun.com>
81960
81961         * lib/quotearg.h: Allow multiple inclusion by surrounding with
81962         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
81963         so that we can be included first.
81964         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
81965         * lib/quotearg.c: Include quotearg.h immediately after config.h.
81966         No need to include stddef.h or sys/types.h any more.
81967         Surround local include files with "", not "<>".
81968         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
81969         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
81970         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
81971         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
81972         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
81973         (ISPRINT): Remove; no longer needed now that we assume C89.
81974
81975         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
81976         Preserve errno.
81977
81978         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
81979         quotearg_char): Use SIZE_MAX rather than
81980         (size_t) -1 when we are talking about "infinity".
81981
81982         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
81983
81984 2002-11-22  Paul Eggert  <eggert@twinsun.com>
81985
81986         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
81987         hint that one should use `if (! x) abort ();' rather than `assert
81988         (x);', and anyway it's one less thing to worry about configuring.
81989         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
81990         hash_rehash, hash_insert): Use abort rather than assert.
81991
81992 2002-11-22  Bruno Haible  <bruno@clisp.org>
81993
81994         * lib/safe-read.h: Assume C89. Add comments.
81995         (safe_read): Change return type to size_t.
81996         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
81997         byte counts > SSIZE_MAX correctly.
81998         * lib/safe-write.h: New file.
81999         * lib/safe-write.c: New file.
82000         * lib/full-read.h: New file.
82001         * lib/full-read.c: New file.
82002         * lib/full-write.h: Assume C89. Add comments.
82003         * lib/full-write.c: Include safe-write.h.
82004         (full_write): Rewritten to use safe_write.
82005         Suggested by Jim Meyering and Paul Eggert.
82006
82007 2002-11-21  Jim Meyering  <jim@meyering.net>
82008
82009         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
82010
82011         Merge in changes from the coreutils.
82012
82013         2002-09-25  Paul Eggert  <eggert@twinsun.com>
82014         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
82015         <stdint.h>.
82016         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
82017         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
82018         int.  Work more efficiently if X is the same width as uintmax_t.
82019         Do not compare X to -1, to avoid bogus compiler warning.
82020         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
82021         Don't assume that f_frsize and f_bsize are the same type.
82022
82023         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
82024         warning on FreeBSD.
82025
82026         * lib/makepath.c (make_path): Restore umask *before* creating the final
82027         component.
82028         (make_path): Minor reformatting.
82029
82030         * lib/xmalloc.c: Adjust to work with new autoconf macros,
82031         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
82032         HAVE_MALLOC/HAVE_REALLOC.
82033
82034         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
82035         dummy ones.  At least on GNU/Linux systems, `auto' means something
82036         else.
82037         From Michael Stone.
82038
82039 2002-11-21  Bruno Haible  <bruno@clisp.org>
82040
82041         Remove case insensitive option matching.
82042         * lib/argmatch.h (argcasematch): Remove declaration.
82043         (ARGCASEMATCH): Remove macro.
82044         (__xargmatch_internal): Remove case_sensitive argument.
82045         (XARGMATCH): Update.
82046         (XARGCASEMATCH): Remove macro.
82047         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
82048         case_sensitive argument.
82049         (argcasematch): Remove function.
82050         (__xargmatch_internal): Remove case_sensitive argument.
82051         (main): Use XARGMATCH instead of XARGCASEMATCH.
82052
82053         * lib/xmalloc.c: Change compile-time error message. Add comment about
82054         required autoconf version.
82055
82056 2002-11-20  Paul Eggert  <eggert@twinsun.com>
82057
82058         Merge argmatch cleanups from Bison.  Assume C89.
82059
82060         * lib/argmatch.c: Include config.h here, not in argmatch.h.
82061         Include stdlib.h, for EXIT_FAILURE.
82062         Always include <string.h>, since we assume C89.
82063         (EXIT_FAILURE): Remove pre-C89 bug workaround.
82064         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
82065         Include <stddef.h> instead, since it's all we need for size_t.
82066         (PARAMS): Remove.  All uses removed.
82067         (ARRAY_CARDINALITY): Do not bother to #undef.
82068         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
82069         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
82070         Remove unnecessary parentheses.
82071         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
82072         Insert necessary parentheses.
82073         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
82074         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
82075
82076 2002-11-19  Bruno Haible  <bruno@clisp.org>
82077
82078         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
82079         * lib/mbswidth.h: Include <stddef.h>, for size_t.
82080
82081         * lib/mbswidth.h (PARAMS): Remove macro.
82082         (mbswidth, mbsnwidth): Use ANSI C function declarations.
82083         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
82084
82085         * lib/gcd.h (PARAMS): Remove macro.
82086         (gcd): Use ANSI C function declarations.
82087         * lib/gcd.c (gcd): Likewise.
82088
82089 2002-11-15  Bruno Haible  <bruno@clisp.org>
82090
82091         * lib/strcspn.c: Include <stddef.h>.
82092         (strcspn): Use ANSI C function declaration. Change return type to
82093         size_t. Use NULL.
82094         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
82095         (strpbrk): Use NULL.
82096         * lib/strpbrk.h (PARAMS): Remove macro.
82097         (strpbrk): Use ANSI C function declaration.
82098         * lib/strstr.c: Don't include <sys/types.h>.
82099         * lib/strstr.h (PARAMS): Remove macro.
82100         (strstr): Use ANSI C function declarations.
82101
82102 2002-11-14  Karl Berry  <karl@gnu.org>
82103
82104         * config/mkinstalldirs: `do' on separate line, instead of
82105         `for var; do'.
82106
82107 2002-11-06  Bruno Haible  <bruno@clisp.org>
82108
82109         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
82110         * lib/gcd.c (gcd): Likewise.
82111
82112 2002-11-05  Bruno Haible  <bruno@clisp.org>
82113
82114         * lib/gcd.h: New file, from gettext-0.11.5.
82115         * lib/gcd.c: New file, from gettext-0.11.5.
82116
82117 2002-11-05  Bruno Haible  <bruno@clisp.org>
82118
82119         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82120         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82121         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82122         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
82123
82124         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
82125         <libintl.h>.
82126         * lib/makepath.c: Include gettext.h instead of <locale.h> and
82127         <libintl.h>.
82128
82129         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
82130         * lib/human.c: Include gettext.h instead of <libintl.h>.
82131         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
82132         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
82133         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
82134         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
82135         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
82136         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
82137         (textdomain): Remove definition.
82138         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
82139
82140         * lib/long-options.c: Remove include of <libintl.h> and definition of
82141         _.
82142         * lib/same.c: Remove include of <libintl.h> and definition of _.
82143
82144 2002-11-04  Owen Taylor  <otaylor@redhat.com>
82145
82146         * lib/config.charset: A few additions for Solaris.
82147
82148 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
82149
82150         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
82151         * lib/localcharset.c (locale_charset): Declare as extern "C".
82152
82153 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
82154
82155         * lib/config.charset: msdos in uk_UA uses CP1125.
82156
82157 2002-11-04  Bruno Haible  <bruno@clisp.org>
82158
82159         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
82160         * lib/strcase.h: New file, from GNU gettext-0.11.5.
82161         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
82162         * lib/strstr.h: New file, from GNU gettext-0.11.5.
82163         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
82164
82165 2002-11-04  Bruno Haible  <bruno@clisp.org>
82166
82167         * lib/localcharset.c (locale_charset): Don't return an empty string.
82168
82169 2002-11-04  Bruno Haible  <bruno@clisp.org>
82170
82171         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
82172         aliases.
82173
82174 2002-11-04  Bruno Haible  <bruno@clisp.org>
82175
82176         * lib/config.charset: Update for newest glibc. Add canonical names
82177         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
82178
82179 2002-11-04  Bruno Haible  <bruno@clisp.org>
82180
82181         * lib/config.charset: Add support for NetBSD.
82182
82183 2002-11-04  Bruno Haible  <bruno@clisp.org>
82184
82185         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
82186
82187 2002-11-01  Bruno Haible  <bruno@clisp.org>
82188
82189         * configure.in: Add AC_CONFIG_AUX_DIR call.
82190         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
82191         test/Makefile.
82192         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
82193
82194 2002-09-28  Karl Berry  <karl@gnu.org>
82195
82196         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
82197         installed automake until the next release, since changes have been
82198         made.
82199
82200 2002-09-25  Karl Berry  <karl@gnu.org>
82201
82202         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
82203         * lib/getopt*: copy from libc/posix.
82204         * lib/gettext.h: copy from gettext.
82205         * lib/.cppi-disable: add strdup.c, gettext.h.
82206
82207 2002-09-25  Karl Berry  <karl@gnu.org>
82208
82209         * config/srclist.txt: enable gettext.h check.
82210         * config/config.{guess,sub}: update from prep.
82211         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
82212                 from automake 1.6.3.
82213         See srclist*.
82214
82215 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
82216
82217         * regex.c (PATFETCH): Remove the translating fetch.
82218         (PATFETCH_RAW): Rename to PATFETCH.
82219         (set_image_of_range): New fun.
82220         (SET_RANGE_TABLE_WORK_AREA): Use it.
82221         (regex_compile): Don't translate the pattern chars so eagerly.
82222         Only do it when inserting an `exactn' bytecode or when handling
82223         a char-range.
82224         (mutually_exclusive_p): Avoid empty statement.
82225
82226 2002-07-06  Jim Meyering  <meyering@lucent.com>
82227
82228         * m4/README: Don't mention Makefile.am.in.
82229         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
82230
82231 2002-07-01  Jim Meyering  <meyering@lucent.com>
82232
82233         * lib/c-stack.c: Include sys/time.h.
82234         From Volker Borchert.
82235
82236 2002-06-26  Paul Eggert  <eggert@twinsun.com>
82237
82238         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
82239
82240 2002-06-26  Paul Eggert  <eggert@twinsun.com>
82241
82242         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
82243         New macro.  Use it uniformly instead of
82244         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
82245         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
82246         reported by Vin Shelton.
82247
82248 2002-06-22  Paul Eggert  <eggert@twinsun.com>
82249
82250         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
82251         Do not assume SA_SIGINFO behavior.
82252         Bug reported by Jim Meyering on NetBSD 1.5.2.
82253
82254 2002-06-22  Jim Meyering  <meyering@lucent.com>
82255
82256         * m4/c-stack.m4: New file, from diffutils-2.8.2.
82257         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
82258
82259         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
82260         now that configure.ac uses AC_GNU_SOURCE.
82261         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
82262         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
82263
82264         Update to latest tools.  Suggestions from Paul Eggert.
82265         * m4/stdbool.m4: New file, from diffutils-2.8.2.
82266         * m4/gnu-source.m4: Update from diffutils-2.8.2.
82267         * m4/fnmatch.m4: Likewise.
82268         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
82269         to AC_HEADER_STDBOOL
82270
82271 2002-06-22  Jim Meyering  <meyering@lucent.com>
82272
82273         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
82274         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
82275
82276 2002-06-22  Jim Meyering  <meyering@lucent.com>
82277
82278         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
82279
82280         * lib/exitfail.c, exitfail.h: Likewise.
82281         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
82282
82283         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
82284         of fnmatch.h.
82285         (EXTRA_DIST): Add fnmatch_loop.c.
82286         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
82287
82288         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
82289         * lib/fnmatch.c: Update from diffutils-2.8.2.
82290         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
82291         * lib/fnmatch.h: Remove file.
82292
82293 2002-06-21  Jim Meyering  <meyering@lucent.com>
82294
82295         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
82296         * m4/mbrtowc.m4: Likewise.
82297
82298         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
82299         * m4/mbswidth.m4: Reflect name change:
82300         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
82301         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
82302
82303         * m4/lib-link.m4: Update from gettext-0.11.2.
82304         * m4/gettext.m4: Likewise.
82305
82306         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
82307         From Alfred M. Szmidt.
82308
82309 2002-06-18  Paul Eggert  <eggert@twinsun.com>
82310
82311         * lib/file-type.h: Report an error if neither S_ISREG nor
82312         S_IFREG is defined, instead of using a test specific to glibc
82313         2.2.  This should be safe, since POSIX requires S_ISREG and
82314         Unix Version 7 had S_IFREG.  We don't need to check for
82315         <sys/types.h> since we don't use any symbols that it defines.
82316
82317 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
82318
82319         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
82320         $@-t, so that each temporary file name is unique and valid in the first
82321         8 characters, for operation under DOS.
82322
82323 2002-06-15  Paul Eggert  <eggert@twinsun.com>
82324
82325         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
82326
82327 2002-06-15  Jim Meyering  <meyering@lucent.com>
82328
82329         Work even with DJGPP 2.03, which lacks support for symlinks.
82330         From Richard Dawe.
82331         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
82332         is defined.
82333         * lib/lchown.c (S_ISLNK): Likewise.
82334
82335 2002-06-15  Jim Meyering  <meyering@lucent.com>
82336
82337         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
82338         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
82339         have been included before this file.
82340
82341 2002-06-14  Jim Meyering  <meyering@lucent.com>
82342
82343         * lib/file-type.h: Use the version from diffutils-2.8.2.
82344         * lib/file-type.c: Likewise.
82345
82346 2002-06-07  Jim Meyering  <meyering@lucent.com>
82347
82348         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
82349         They're needed at least for NetBSD 1.5.2.
82350         ($statxfs_includes): Include those same headers.
82351         ($statxfs_includes): Include sys/vfs.h if available.
82352         ($statxfs_includes): Likewise for sys/statvfs.h.
82353         Check for the following members in both structs statfs and statvfs:
82354         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
82355
82356 2002-06-01  Jim Meyering  <meyering@lucent.com>
82357
82358         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
82359         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
82360
82361 2002-05-28  Jim Meyering  <meyering@lucent.com>
82362
82363         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
82364         Reported by Volker Borchert.
82365
82366 2002-05-27  Jim Meyering  <meyering@lucent.com>
82367
82368         Fix a problem seen only on nonconforming systems whereby ls.c's
82369         use of localtime, and then of gettimeofday would cause trouble:
82370         the localtime call used to initialize rpl_gettimeofday's save
82371         mechanism would clobber ls's current local time information so
82372         that in any long listing the first file would always be listed
82373         with date 1970-01-01.  Analysis by Volker Borchert.
82374
82375         * lib/gettimeofday.c (localtime): Undefine.
82376         (rpl_localtime): New function.
82377
82378 2002-05-27  Jim Meyering  <meyering@lucent.com>
82379
82380         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
82381         localtime.
82382
82383         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
82384         use the replacement function; it wouldn't resolve at link time.
82385         Reported by Volker Borchert.
82386
82387 2002-05-22  Jim Meyering  <meyering@lucent.com>
82388
82389         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
82390         file-type.h.
82391         * lib/file-type.h: New file.
82392         * lib/file-type.c (file_type): New file/function.  Extracted from
82393         diffutils.
82394
82395 2002-04-30  Jim Meyering  <meyering@lucent.com>
82396
82397         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
82398
82399 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82400
82401         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
82402
82403 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82404
82405         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
82406         Do not check for alloca.h (no longer used) or stdbool.h (was never
82407         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
82408
82409 2002-04-29  Paul Eggert  <eggert@twinsun.com>
82410
82411         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
82412
82413 2002-04-29  Jim Meyering  <meyering@lucent.com>
82414
82415         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
82416         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
82417         Use AC_FUNC_STRNLEN here instead.
82418
82419         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
82420         With autoconf-2.53a, it's part of AC_PROG_CC.
82421
82422 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82423
82424         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
82425         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
82426
82427 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82428
82429         * lib/sig2str.h, lib/sig2str.c: New files.
82430         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
82431
82432 2002-04-28  Paul Eggert  <eggert@twinsun.com>
82433
82434         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
82435         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
82436         of 127, since 64 is the largest conceivable number for ancient
82437         nonstandard hosts.
82438         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
82439
82440 2002-04-28  Jim Meyering  <meyering@lucent.com>
82441
82442         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
82443
82444 2002-04-24  Jim Meyering  <meyering@lucent.com>
82445
82446         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
82447         (jm_PREREQ): Use it.
82448
82449         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
82450         mach/mach.h fcntl.h.
82451         Check for this function: setlocale.
82452
82453 2002-04-24  Jim Meyering  <meyering@lucent.com>
82454
82455         * lib/gettext.h: New file, from Gettext.
82456         * lib/Makefile.am (INCLUDES): Remove -I../intl.
82457         (libfetish_a_SOURCES): Add gettext.h.
82458
82459 2002-04-16  Jim Meyering  <meyering@lucent.com>
82460
82461         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
82462         ut_pid, ut_id, ut_exit.
82463
82464 2002-04-16  Jim Meyering  <meyering@lucent.com>
82465
82466         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
82467         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
82468         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
82469
82470 2002-04-12  Jim Meyering  <meyering@lucent.com>
82471
82472         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
82473         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
82474         existence of the getmntinfo function.  Needed for Darwin 5.3.
82475
82476         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
82477         This is necessary at least on Darwin 5.3.
82478
82479         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
82480         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
82481         strnlen.o in the library, and that makes some versions of ranlib
82482         object.
82483
82484 2002-04-12  Jim Meyering  <meyering@lucent.com>
82485
82486         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
82487
82488 2002-04-09  Jim Meyering  <meyering@lucent.com>
82489
82490         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
82491         to be more precise.  Rather than saying we're checking whether the
82492         function `works', say what we're testing.
82493         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
82494         Reported by Bruno Haible.
82495
82496 2002-03-10  Jim Meyering  <meyering@lucent.com>
82497
82498         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
82499         Suggestion from Santiago Vila.
82500
82501 2002-03-08  Jim Meyering  <meyering@lucent.com>
82502
82503         * lib/rename.c: Mention that this wrapper is needed also on
82504         mips-dec-ultrix4.4 systems.
82505
82506 2002-03-02  Jim Meyering  <meyering@lucent.com>
82507
82508         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
82509         not HAVE_CLOCK_SETTIME.
82510
82511 2002-02-27  Paul Eggert  <eggert@twinsun.com>
82512
82513         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
82514         Check for clock_settime.
82515
82516 2002-02-27  Paul Eggert  <eggert@twinsun.com>
82517
82518         * lib/nanosleep.h: Rename to....
82519         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
82520
82521         * lib/gettime.c: New file.
82522         * lib/settime.c: New file.
82523         * lib/stime.c: Remove.
82524
82525         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
82526         timespec.h.  Remove nanosleep.h.
82527
82528 2002-02-25  Paul Eggert  <eggert@twinsun.com>
82529
82530         * m4/acl.m4: New file.
82531         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
82532         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
82533
82534 2002-02-25  Paul Eggert  <eggert@twinsun.com>
82535
82536         * lib/acl.c, lib/acl.h: New files.
82537         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
82538
82539 2002-02-24  Jim Meyering  <meyering@lucent.com>
82540
82541         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
82542         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
82543         cause trouble.  Reported by Nelson Beebe.
82544
82545 2002-02-23  Paul Eggert  <eggert@twinsun.com>
82546
82547         * lib/path-concat.c (xpath_concat): Reorder code to pacify
82548         compilers that don't know that xalloc_die never returns.
82549
82550 2002-02-20  Jim Meyering  <meyering@lucent.com>
82551
82552         * lib/getdate.c: Regenerate using bison-1.33.
82553
82554 2002-02-17  Jim Meyering  <meyering@lucent.com>
82555
82556         * config/config.guess (main): Don't use `head -1'; it's no longer
82557         portable. Use `sed 1q' instead.
82558
82559 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
82560
82561         * m4/codeset.m4: Upgrade to gettext-0.11.
82562         * m4/gettext.m4: Upgrade to gettext-0.11.
82563         * m4/glibc21.m4: Upgrade to gettext-0.11.
82564         * m4/iconv.m4: Upgrade to gettext-0.11.
82565         * m4/isc-posix.m4: Upgrade to gettext-0.11.
82566         * m4/lcmessage.m4: Upgrade to gettext-0.11.
82567         * m4/lib-ld.m4: New file, from gettext-0.11.
82568         * m4/lib-link.m4: New file, from gettext-0.11.
82569         * m4/lib-prefix.m4: New file, from gettext-0.11.
82570         * m4/progtest.m4: Upgrade to gettext-0.11.
82571
82572 2002-02-15  Paul Eggert  <eggert@twinsun.com>
82573
82574         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
82575         (jm_PREREQ): Use it.
82576
82577 2002-02-15  Paul Eggert  <eggert@twinsun.com>
82578
82579         * lib/posixver.c, lib/posixver.h: New files.
82580         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
82581
82582 2002-02-02  Paul Eggert  <eggert@twinsun.com>
82583             Bruno Haible  <bruno@clisp.org>
82584
82585         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
82586         (fwrite_success_callback): New declaration.
82587         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
82588         print_unicode_char. Call failure callback instead of error.
82589         (fwrite_success_callback): New function.
82590         (exit_failure_callback): New function.
82591         (fallback_failure_callback): New function.
82592         (print_unicode_char): Call unicode_to_mb.
82593
82594 2002-01-26  Jim Meyering  <meyering@lucent.com>
82595
82596         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
82597         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
82598
82599 2002-01-26  Jim Meyering  <meyering@lucent.com>
82600
82601         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
82602
82603 2002-01-22  Paul Eggert  <eggert@twinsun.com>
82604
82605         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
82606
82607 2002-01-22  Jim Meyering  <meyering@lucent.com>
82608
82609         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
82610         Otherwise, some versions of automake would omit the rule that makes
82611         Makefile from Makefile.in.
82612
82613 2002-01-21  Paul Eggert  <eggert@twinsun.com>
82614
82615         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
82616         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
82617         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
82618         (memcoll): Set errno to zero if there is no error.
82619
82620         * lib/quotearg.c (quotearg_buffer_restyled):
82621         Fix bug with quoting buffers containing NUL when backslashing escapes.
82622         This bug was exposed by the other changes in this patch.
82623         (quotearg_n_options): New arg ARGSIZE.
82624         All callers changed.
82625         (quoting_options_from_style): New function.
82626         (quotearg_n_style): Use it.
82627         (quotearg_n_style_mem): New function.
82628
82629         * lib/quotearg.h (quotearg_n_style_mem): New function.
82630
82631 2002-01-19  Jim Meyering  <meyering@lucent.com>
82632
82633         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
82634         Remove useless quotes: DF_PROG="df".
82635         * m4/strnlen.m4: New file.
82636
82637 2002-01-16  Paul Eggert  <eggert@twinsun.com>
82638
82639         * lib/backupfile.c (ISDIGIT): Comment fix.
82640         * lib/getdate.y (ISDIGIT): Likewise.
82641         * lib/posixtm.c (ISDIGIT, year): Likewise.
82642         * lib/strverscmp.c (ISDIGIT): Likewise.
82643         * lib/userspec.c (ISDIGIT): Likewise.
82644
82645 2002-01-16  Jim Meyering  <meyering@lucent.com>
82646
82647         * lib/getdate.y: Add three semicolons, each just before a closing
82648         brace. Bison (as of version 1.31) no longer papers over that mistake.
82649
82650 2002-01-05  Jim Meyering  <meyering@lucent.com>
82651
82652         * lib/version-etc.c (version_etc_copyright): Update copyright year.
82653
82654 2001-12-19  Paul Eggert  <eggert@twinsun.com>
82655
82656         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
82657         not silently exit merely because the output buffer happens to
82658         have nothing pending.
82659
82660 2001-12-18  Paul Eggert  <eggert@twinsun.com>
82661
82662         See the big note in ../ChangeLog.
82663         * lib/human.c (suffixes): Prefer K to k for 1024.
82664         (generate_suffix_backwards): New function.
82665         (human_readable_inexact): Use it.
82666         * lib/xstrtol.c (__xstrtol): If there is no number but there
82667         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
82668         Accept 'K' as well as 'k'.
82669
82670 2001-12-15  Jim Meyering  <meyering@lucent.com>
82671
82672         * lib/regex.h (__restrict_arr): Update from libc.
82673
82674         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
82675         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
82676         (STREQ): Define.
82677
82678 2001-12-14  Jim Meyering  <meyering@lucent.com>
82679
82680         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
82681         Suggestion from Bruno Haible.
82682
82683 2001-12-10  Jim Meyering  <meyering@lucent.com>
82684
82685         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
82686         xrealloc, Instead, include "xalloc.h".
82687         (initbuffer): Don't cast xmalloc return value to char*.
82688         (readline): Reword comment.
82689         Don't cast xrealloc return value to char*
82690         Return NULL, not 0.
82691
82692 2001-12-09  Jim Meyering  <meyering@lucent.com>
82693
82694         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
82695         about `signed and unsigned type in conditional expression'.
82696         * lib/posixtm.c (posix_time_parse): Likewise.
82697
82698         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
82699
82700         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
82701         to avoid a pedantic warning.
82702
82703         * lib/getstr.c: Don't include assert.h.
82704         (getstr): Remove warning-evoking assertions.
82705         Return -1 if offset parameter is out of bounds.
82706         Change the type of a local from int to size_t.
82707
82708         * lib/strftime.c (my_strftime_localtime_r): Include this function
82709         definition in the `#if ! HAVE_TM_GMTOFF' block.
82710
82711         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
82712         Include xalloc.h instead.
82713
82714 2001-12-02  Jim Meyering  <meyering@lucent.com>
82715
82716         * lib/tempname.c: Don't declare getenv, thus reverting the change of
82717         2001-11-18.  It's no longer necessary, now that stdlib.h is always
82718         included.
82719
82720         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
82721         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
82722
82723 2001-11-30  Akim Demaille  <akim@epita.fr>
82724
82725         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
82726         before being defined.
82727
82728 2001-11-27  Paul Eggert  <eggert@twinsun.com>
82729
82730         * lib/quotearg.h (quotearg_n, quotearg_n_style):
82731         First arg is int, not unsigned.
82732         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
82733         (SIZE_MAX, UINT_MAX): New macros.
82734         (quotearg_n_options): Abort if N is negative.
82735         Avoid overflow check on hosts where size_t is 64 bits and int
82736         is 32 bits, as overflow is impossible there.
82737         Fix off-by-one typo that caused unnecessary reallocation.
82738
82739 2001-11-27  Jim Meyering  <meyering@lucent.com>
82740
82741         * lib/tempname.c: Merge with version from libc.
82742         * lib/regex.c: Likewise.
82743
82744         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
82745         systems for which STDC_HEADERS is 0, it was not included, resulting in
82746         a warning about an integer-to-pointer conversion problem with getenv.
82747         Reported by Volker Borchert.
82748
82749 2001-11-26  Jim Meyering  <meyering@lucent.com>
82750
82751         * lib/gtod.h: Remove file.
82752         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
82753         * lib/gettimeofday.c: Don't include gtod.h.
82754         (GTOD_init): Remove function.
82755         (rpl_gettimeofday): Do its job here instead, rather than aborting.
82756         Suggestion from Volker Borchert.
82757
82758 2001-11-23  Jim Meyering  <meyering@lucent.com>
82759
82760         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
82761         it.
82762         * lib/hash.c (struct hash_table): Define it here instead.
82763
82764 2001-11-22  Jim Meyering  <meyering@lucent.com>
82765
82766         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
82767
82768 2001-11-20  Jim Meyering  <meyering@lucent.com>
82769
82770         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
82771         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
82772
82773 2001-11-19  Jim Meyering  <meyering@lucent.com>
82774
82775         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
82776         directory.  Use "conftestXXXXXX" as the template.
82777         Suggestion from Paul Eggert.
82778
82779         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
82780         immediately, so the test doesn't mistakenly hit the max-open-files
82781         limit.
82782
82783 2001-11-18  Paul Eggert  <eggert@twinsun.com>
82784
82785         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
82786         (TEMPORARIES): New macro.
82787         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
82788         removes an artificial limitation (e.g. HP-UX 10.20, where
82789         TMP_MAX is 17576).
82790
82791 2001-11-18  Jim Meyering  <meyering@lucent.com>
82792
82793         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
82794
82795 2001-11-18  Jim Meyering  <meyering@lucent.com>
82796
82797         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
82798         on SunOS 4.
82799
82800         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
82801         files will be created before anything else.
82802
82803 2001-11-17  Paul Eggert  <eggert@twinsun.com>
82804
82805         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
82806         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
82807
82808 2001-11-17  Jim Meyering  <meyering@lucent.com>
82809
82810         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
82811         Prompted by a report from Bob Proulx.
82812
82813         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
82814         Instead, require UTILS_FUNC_MKSTEMP.
82815
82816 2001-11-17  Jim Meyering  <meyering@lucent.com>
82817
82818         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
82819         Now, that's done as part of AC_FUNC_STRTOD.
82820
82821 2001-11-17  Jim Meyering  <meyering@lucent.com>
82822
82823         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
82824         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
82825         rather than group writable.  Patch by Juan F. Codagnone.
82826
82827         * lib/readtokens.c: Remove explicit declarations of xmalloc and
82828         xrealloc, Instead, include "xalloc.h".
82829
82830         * lib/mountlist.c: Include unlocked-io.h after all system headers.
82831         Remove explicit declarations of xmalloc, xrealloc,
82832         and xstrdup.  Instead, include "xalloc.h".
82833
82834         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
82835         unlocked-io.h.
82836         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
82837         Likewise.
82838         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
82839
82840         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
82841         Reported by Padraig Brady.
82842
82843         * lib/mkstemp.c: #undef mkstemp.
82844         Include config.h.
82845         (rpl_mkstemp): Rename from mkstemp.
82846         Protoize.
82847
82848 2001-11-16  Jim Meyering  <meyering@lucent.com>
82849
82850         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
82851         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
82852         determine the amount of total physical memory, use pstat_getstatic.
82853         HPUX-11 doesn't define _SC_PHYS_PAGES.
82854         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
82855         If sysconf couldn't be used to determine the amount of available
82856         physical memory, use both pstat_getstatic and pstat_getdynamic.
82857         Based on a patch from Bob Proulx.
82858
82859 2001-11-10  Jim Meyering  <meyering@lucent.com>
82860
82861         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
82862         (jm_PREREQ): Use it.
82863
82864 2001-11-09  Jim Meyering  <meyering@lucent.com>
82865
82866         * m4/jm-macros.m4: Require autoconf-2.52f.
82867         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
82868         Use these AC_-prefixed names, not the AM_-prefixed ones.
82869
82870         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
82871
82872 2001-11-05  Jim Meyering  <meyering@lucent.com>
82873
82874         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
82875
82876 2001-11-04  Jim Meyering  <meyering@lucent.com>
82877
82878         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
82879         $DEFS.
82880
82881 2001-11-03  Jim Meyering  <meyering@lucent.com>
82882
82883         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
82884         of AC_DEFUN.
82885
82886         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
82887         know the name of the variable in the macro definition.
82888
82889 2001-11-03  Jim Meyering  <meyering@lucent.com>
82890
82891         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
82892         in argmatch_to_argument call.
82893
82894         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
82895         argument.
82896
82897         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
82898         e.g., a fault due to an attempt to free a NULL pointer.
82899
82900 2001-11-01  Jim Meyering  <meyering@lucent.com>
82901
82902         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
82903         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
82904
82905 2001-11-01  Jim Meyering  <meyering@lucent.com>
82906
82907         * lib/dirfd.c, lib/dirfd.h: New files.
82908         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
82909
82910         * lib/hash.c (hash_print) [TESTING]: Clean up.
82911
82912 2001-10-22  Paul Eggert  <eggert@twinsun.com>
82913
82914         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
82915         to avoid a warning if -Wall.
82916
82917 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
82918
82919         * README: New file
82920         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
82921         (per RMS's instructions, this is now the canonical source)
82922         * lgpl/, gpl/: New directories.
82923
82924 2001-10-21  Paul Eggert  <eggert@twinsun.com>
82925
82926         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
82927
82928 2001-10-21  Jim Meyering  <meyering@lucent.com>
82929
82930         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
82931         this code would end up calling gettext even in packages built
82932         with --disable-nls.
82933         * lib/getopt.c (_): Likewise.
82934         * lib/regex.c (_): Likewise.
82935
82936 2001-10-20  Paul Eggert  <eggert@twinsun.com>
82937
82938         * m4/error.m4 (jm_PREREQ_ERROR):
82939         Do not invoke AC_CHECK_FUNCS with strerror_r, as
82940         AC_FUNC_STRERROR_R does that.
82941         Check for strerror declaration.
82942
82943         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
82944         are supposed to have them these days.
82945         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
82946         Merge changes from latest Autoconf CVS.
82947         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
82948         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
82949         POSIX decided to standardize on the int flavor of strerror_r.
82950
82951 2001-10-20  Paul Eggert  <eggert@twinsun.com>
82952
82953         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
82954         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
82955         Use strerror_r that is only a macro, even if it is not a function.
82956         (strerror): Check for HAVE_DECL_STRERROR before declaring.
82957         (private_strerror): Use prototypes, not old-style function definition.
82958         (print_errno_message): New function.
82959         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
82960         char*-flavored one.
82961         (error_tail, error, error_at_line): Use it.
82962
82963 2001-10-11  Jim Meyering  <meyering@lucent.com>
82964
82965         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
82966         and quote_n (1, ... to avoid clobbering a buffer.
82967
82968 2001-10-05  Jim Meyering  <meyering@lucent.com>
82969
82970         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
82971         hash-pjw.h.
82972         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
82973         * lib/hash-pjw.h: New file.
82974
82975 2001-09-30  Jim Meyering  <meyering@lucent.com>
82976
82977         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
82978         `struct fsstat' has the `f_fstypename' member.
82979         Use that to define FS_TYPE, which is now used to make
82980         the getfsstat link test tighter.
82981
82982 2001-09-30  Jim Meyering  <meyering@lucent.com>
82983
82984         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
82985         Include <sys/ucred.h>, for Apple Darwin.
82986         Include sys/mount.h and sys/fs_types.h only if available.
82987         (FS_TYPE): Define.
82988         (read_filesystem_list): Use FS_TYPE.
82989
82990 2001-09-29  Paul Eggert  <eggert@twinsun.com>
82991
82992         * lib/exclude.c (excluded_filename): 0 -> false, since it's
82993         a boolean context.
82994
82995 2001-09-29  Jim Meyering  <meyering@lucent.com>
82996
82997         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
82998         [one-argument getmntent function]): Include stdio.h before mntent.h.
82999         SunOS 4.1.x needs it for the declaration of `FILE'.
83000         Patch by Volker Borchert.
83001
83002         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
83003         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
83004         sys/fs_types.h, and make the link-test for getfsstat guard #include
83005         directives with appropriate #if HAVE_*_H tests so that we can
83006         detect getfsstat on Apple Darwin1.3.7 systems.
83007         Reported by Nelson Beebe.
83008         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
83009
83010 2001-09-28  Paul Eggert  <eggert@twinsun.com>
83011
83012         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
83013         #defines strtoimax.  Also treat the other strto* functions
83014         like strtoimax.
83015
83016         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
83017         Check for strtoul and strtoumax,
83018         as those declarations are made even in the signed case.
83019         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
83020         Likewise, for strtol and strtoimax.
83021
83022 2001-09-28  Paul Eggert  <eggert@twinsun.com>
83023
83024         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
83025         #defines strtoimax.  Also treat the other strto* functions
83026         like strtoimax.
83027
83028         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
83029         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
83030         (strtoimax, strtoumax): Do not declare if already defined as a macro.
83031
83032 2001-09-26  Jim Meyering  <meyering@lucent.com>
83033
83034         Most macros in unlocked-io.h had the wrong number of arguments.
83035         * lib/gen-uio: New script.
83036         (USE_UNLOCKED_IO): Define to 1 if not already defined.
83037         * lib/unlocked-io.hin: Remove file.
83038         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
83039         rather than trying to embed it here.
83040         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
83041         Reported by Padraig Brady.
83042
83043 2001-09-25  Volker Borchert  <bt@teknon.de>
83044
83045         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
83046         `result'.
83047
83048 2001-09-24  Jim Meyering  <meyering@lucent.com>
83049
83050         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
83051
83052 2001-09-23  Jim Meyering  <meyering@lucent.com>
83053
83054         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
83055         instead of the mere test for existence of mntent.h.  The latter
83056         would get a false-positive on AIX 3.4 systems.
83057         In the outer getmntent if-block, don't die if neither of the getmntent
83058         tests succeeds.  Instead, just fall through and continue with the
83059         remaining tests.
83060
83061 2001-09-23  Jim Meyering  <meyering@lucent.com>
83062
83063         * lib/mountlist.c: Remove useless parentheses in #if directives.
83064         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
83065         the deprecated MOUNTED symbol is no longer defined in mntent.h.
83066
83067 2001-09-22  Jim Meyering  <meyering@lucent.com>
83068
83069         * m4/gettext.m4: New file.  From gettext.
83070         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
83071         * m4/progtest.m4: Likewise
83072         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
83073         * m4/glibc21.m4: Likewise.
83074
83075         * m4/libintl.m4: Remove.  No longer used.
83076
83077 2001-09-22  Jim Meyering  <meyering@lucent.com>
83078
83079         * lib/localcharset.c: Update from latest gettext.
83080         * lib/config.charset: Likewise.
83081
83082 2001-09-20  Jim Meyering  <meyering@lucent.com>
83083
83084         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
83085         strtoimax.
83086         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
83087         strtoumax.
83088
83089 2001-09-20  Jim Meyering  <meyering@lucent.com>
83090
83091         * lib/xstrtol.c (strtoimax): Guard declaration with
83092         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
83093         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
83094         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
83095         (strtoumax): Likewise, for completeness (it wasn't necessary).
83096
83097 2001-09-17  Paul Eggert  <eggert@twinsun.com>
83098
83099         * lib/strtoimax.c (HAVE_LONG_LONG):
83100         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
83101         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
83102         to work around bug in IBM C compiler.
83103
83104 2001-09-17  Jim Meyering  <meyering@lucent.com>
83105
83106         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
83107         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
83108         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
83109         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
83110         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
83111         whenever the right hand side need not be expanded by the shell.
83112
83113 2001-09-16  Paul Eggert  <eggert@twinsun.com>
83114
83115         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
83116         library.  It's not correct, as some older glibcs are buggy.
83117         fnmatch wasn't fixed until glibc 2.2.
83118
83119         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
83120         special shell magic here.
83121
83122 2001-09-16  Jim Meyering  <meyering@lucent.com>
83123
83124         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
83125         * m4/jm-macros.m4: Require it.
83126
83127 2001-09-16  Jim Meyering  <meyering@lucent.com>
83128
83129         * lib/mkdir.c: New file.
83130
83131 2001-09-15  Jim Meyering  <meyering@lucent.com>
83132
83133         * m4/jm-macros.m4: Check for help2man.
83134
83135 2001-09-11  Jim Meyering  <meyering@lucent.com>
83136
83137         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
83138         The body, by Paul Eggert, was moved here from configure.in.
83139         * m4/jm-macros.m4: Require UTILS_HOST_OS.
83140
83141 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83142
83143         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
83144         (jm_PREREQ): Use it.
83145
83146 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83147
83148         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
83149         Use ssize_t, not int, to store result of readlink.
83150         Check for ssize_t overflow as well as size_t overflow,
83151         as POSIX says the result of readlink is implementation-defined
83152         when ssize_t overflows.
83153         Remove unnecessary cast to char*.
83154         Use free+malloc instead of realloc, as the storage doesn't need
83155         to be preserved and it's clearer and can be more efficient that way.
83156         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
83157         * lib/xreadlink.h (xreadlink): Update prototype.
83158
83159 2001-09-04  Paul Eggert  <eggert@twinsun.com>
83160
83161         * lib/xgetcwd.c: Revert some of the previous change; intead,
83162         fix the HAVE_GETCWD_NULL code to behave more like the
83163         !HAVE_GETCWD_NULL code used to.
83164
83165         Include "xalloc.h".
83166         (xgetcwd): Do not return NULL when memory is exhausted; instead,
83167         invoke xalloc_die.
83168
83169 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83170
83171         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
83172         sys/param.h, as pathmax.h includes them.
83173
83174 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83175
83176         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
83177         (jm_PREREQ_XGETCWD): New macro.
83178
83179         * m4/getcwd.m4: New file.
83180
83181 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83182
83183         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
83184         like the HAVE_GETCWD_NULL code.
83185         Include pathmax.h if not HAVE_GETCWD.
83186         Do not include xalloc.h.
83187         (INITIAL_BUFFER_SIZE): New symbol.
83188         Do not use xmalloc / xrealloc, since the caller is responsible for
83189         handling errors.  Preserve errno around `free' during failure.
83190         Do not overrun buffer when using getwd.
83191
83192 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83193
83194         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
83195         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
83196         getcwd (NULL, 0).
83197
83198 2001-09-03  Paul Eggert  <eggert@twinsun.com>
83199
83200         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
83201         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
83202         spotted by Jim Meyering.
83203
83204 2001-09-03  Jim Meyering  <meyering@lucent.com>
83205
83206         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
83207         failure.
83208
83209 2001-09-02  Jim Meyering  <meyering@lucent.com>
83210
83211         * lib/error.c: Update from GNU libc.
83212
83213 2001-09-01  Jim Meyering  <meyering@lucent.com>
83214
83215         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
83216         Used by df.
83217
83218 2001-09-01  Jim Meyering  <meyering@lucent.com>
83219
83220         * lib/xreadlink.c: New file.
83221         * lib/xreadlink.h: New file.
83222         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
83223         xreadlink.h.
83224
83225         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
83226         doesn't conflict with sparc Solaris 7's definition in
83227         /usr/include/sys/int_types.h.
83228
83229         * lib/exclude.c: Use `""', not `<>' to #include non-system header
83230         files.
83231         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
83232         and strncasecmp as r-values.  Unixware didn't have declarations.
83233
83234 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83235
83236         * lib/xstrtol.h: Add copyright notice.
83237         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
83238         LONGINT_INVALID_SUFFIX_CHAR.
83239
83240 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83241
83242         * lib/xstrtol.c (strtoimax): New decl.
83243
83244 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83245
83246         * lib/xgetcwd.c: Don't include pathmax.h.
83247         Include stdlib.h and unistd.h if available.
83248         Include xalloc.h.
83249         (xmalloc, xstrdup, free): Remove decls.
83250         (xgetcwd): Don't assume sizes fit in unsigned.
83251         Check for overflow when computing sizes.
83252         Simplify reallocation code.
83253
83254 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83255
83256         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
83257         a directory's st_size can have an arbitrary value, so the old
83258         usage could waste an arbitrary amount of memory.  All uses
83259         changed.
83260         * lib/savedir.h: Update prototype.
83261
83262 2001-08-31  Paul Eggert  <eggert@twinsun.com>
83263
83264         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
83265
83266         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
83267         old strtoimax.c.
83268
83269         Also, make the following further changes to make this file's
83270         configuration more similar to that of strtol.c:
83271         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
83272         (strtoumax, uintmax_t, strtoull, strtol): Remove.
83273         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
83274         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
83275         changed to signed values.
83276
83277         And make the following changes as well:
83278         Fix copyright notice, as 1999 was missing.
83279         (verify): New macro.
83280         (strtoimax): Check sizes at compile-time, not run-time.
83281         Prefer strtol to strtoll if both work.
83282         (main): Remove; it was not that useful and was a pain to maintain.
83283
83284         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
83285
83286 2001-08-31  Jim Meyering  <meyering@lucent.com>
83287
83288         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
83289         Use an initial, malloc'd, buffer of length 128 rather than
83290         a statically allocated one of length 1024.
83291
83292 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83293
83294         Simplify code, partly by assuming autoconf 2.52 semantics.
83295
83296         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
83297
83298         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
83299         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
83300         All uses removed.
83301         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
83302         Move AC_REQUIRE to next-to-top level, to avoid confusion.
83303         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
83304         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
83305         jm_AC_HEADER_INTTYPES_H.
83306         * m4/jm-macros.m4 (jm_MACROS): Likewise.
83307
83308         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
83309
83310         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
83311         Quote first arg of AC_DEFUN.
83312         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
83313         since they are needed to parse the include file even if we need
83314         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
83315         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
83316         but with opposite signedness.
83317
83318 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83319
83320         Merge 'exclude' changes from tar 1.13.22.
83321         This fixes one or two unlikely storage allocation overflow bugs,
83322         but doesn't change user-visible behavior otherwise.
83323
83324 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83325
83326         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
83327         (jm_PREREQ_EXCLUDE): New macro.
83328
83329 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83330
83331         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
83332         tm to be declared.
83333
83334 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83335
83336         * lib/hash.c: Remove '2001' from copyright notice.
83337
83338 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83339
83340         * lib/full-write.h: New file.
83341         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
83342         * lib/full-write.c: Correct credits, as cccp.c no longer
83343         exists and anyway it was so heavily changed from the old cccp
83344         code as to be unrecognizable.  Include full-write.h.
83345         (full_write): Return size_t, with short writes meaning failure.
83346         All callers changed.  This fixes a bug with large buffers
83347         on 64-bit hosts.
83348         * lib/utime.c: Include full-write.h.
83349
83350 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83351
83352         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
83353         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
83354         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
83355         Include if available.
83356         (<xalloc.h>): Include
83357         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
83358         (verify): New macro.  Use it to verify that EXCLUDE macros do not
83359         collide with FNM macros.
83360         (struct patopts): New struct.
83361         (struct exclude): Use it, as exclude patterns now come with options.
83362         (new_exclude): Support above changes.
83363         (new_exclude, add_exclude_file):
83364         Initial size must now be a power of two to simplify overflow checking.
83365         (free_exclude, fnmatch_no_wildcards): New function.
83366         (excluded_filename): No longer requires options arg, as the options
83367         are determined by add_exclude.  Now returns bool, not int.
83368         (excluded_filename, add_exclude):
83369         Add support for the fancy new exclusion options.
83370         (add_exclude, add_exclude_file): Now takes int options arg.
83371         Check for arithmetic overflow when computing sizes.
83372         (add_exclude_file): xrealloc might modify errno, so don't
83373         realloc until after errno might be used.
83374
83375         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
83376         New macros.
83377         (free_exclude): New decl.
83378         (add_exclude, add_exclude_file): Now takes int options arg.
83379         (excluded_filename): No longer requires options arg, as the options
83380         are determined by add_exclude.  Now returns bool, not int.
83381
83382 2001-08-30  Paul Eggert  <eggert@twinsun.com>
83383
83384         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
83385
83386 2001-08-27  Jim Meyering  <meyering@lucent.com>
83387
83388         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
83389
83390         * lib/version-etc.c (N_): Remove definition.
83391         Revert most of last change.
83392         Instead, simply don't mark the `Copyright...' string for translation.
83393         Based on advice from Paul Eggert.
83394
83395         * lib/strtoxmax.c: Tweak comment.
83396
83397 2001-08-26  Jim Meyering  <meyering@lucent.com>
83398
83399         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
83400
83401         * m4/xstrtoimax.m4: New file.
83402         * m4/xstrtoumax.m4: Add comments explaining why we
83403         AC_REPLACE_FUNCS(strtol).
83404
83405 2001-08-26  Jim Meyering  <meyering@lucent.com>
83406
83407         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
83408         of copyright with `%s' so translators don't get an untranslated
83409         message in 2002.
83410         (COPYRIGHT_YEAR): Define.
83411         (version_etc): Use fprintf rather than fputs.
83412         Suggestion from Ulrich Drepper.
83413
83414         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
83415
83416         * lib/strtoll.c: New file, from GNU libc.
83417         * lib/xstrtoimax.c: New file.
83418
83419         * lib/xstrtol.h: Add xstrtoimax.
83420         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
83421         * lib/strtoimax.c: New file.  Likewise, but first define
83422         STRTOUXMAX_SIGNED.
83423
83424         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
83425         ...
83426         * lib/strtoxmax.c: ... then renamed to this.
83427
83428 2001-08-18  Paul Eggert  <eggert@twinsun.com>
83429
83430         * m4/inttypes.m4: Add AC_PREREQ(2.13).
83431         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
83432         (jm_AC_TYPE_INTMAX_T): New macro.
83433         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
83434
83435         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
83436
83437         * m4/longlong.m4: Renamed from ulonglong.m4.
83438         * m4/inttypes.m4: Renamed from inttypes_h.m4.
83439         * m4/uintmax_t.m4: Removed.
83440
83441 2001-08-13  Paul Eggert  <eggert@twinsun.com>
83442
83443         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
83444         Port to Solaris 8, where 'sed' requires a space after the 'r'
83445         command, and where sh dislikes "$/".  Clean up the spacing a bit.
83446         Redirect output to $tmp just once.
83447
83448 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
83449
83450         * lib/addext.c (<errno.h>): Include.
83451         (errno): Declare if not defined.
83452         (addext): Work correctly when pathconf returns -1 and leaves
83453         errno alone because there is no limit.  Also, work even if
83454         pathconf returns a value greater than SIZE_MAX.
83455
83456 2001-08-12  Jim Meyering  <meyering@lucent.com>
83457
83458         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
83459         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
83460         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
83461         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
83462         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
83463         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
83464         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
83465         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
83466         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
83467         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
83468         utime.m4, utimes.m4, xstrtoumax.m4:
83469         Quote the first argument in each use of AC_DEFUN.
83470
83471 2001-08-12  Jim Meyering  <meyering@lucent.com>
83472
83473         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
83474         Simply `return getcwd (NULL, 0);'.
83475         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
83476         Use 1300 as initial value for length, not PATH_MAX.
83477
83478         * lib/pathmax.h: Clean up cpp syntax.
83479
83480 2001-08-12  Jim Meyering  <meyering@lucent.com>
83481
83482         * lib/gettimeofday.c: New file.
83483         * lib/gtod.h: New file.
83484         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
83485
83486 2001-08-05  Jim Meyering  <meyering@lucent.com>
83487
83488         * m4/jm-macros.m4: Require autoconf-2.52.
83489
83490 2001-08-04  Jim Meyering  <meyering@lucent.com>
83491
83492         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
83493         stmt, to get in sync with glibc.
83494
83495 2001-08-03  Paul Eggert  <eggert@twinsun.com>
83496
83497         The following changes are from gettext 0.10.39 as maintained by
83498         Bruno Haible.
83499
83500         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
83501         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
83502         with inverted sense.  All uses changed.
83503
83504         * lib/mbswidth.c: Don't include <limits.h>.
83505         Include <stdlib.h> and <string.h> unconditionally.
83506         (iswcntrl, mbsinit, ISCNTRL): New macros.
83507         (mbsnwidth): Use K&R style function declarations.
83508         Don't bother checking for MB_LEN_MAX == 1, since the compiler
83509         can optimize it when MB_CUR_MAX == 1.
83510         The width of control characters is zero, not 1.
83511
83512 2001-08-03  Paul Eggert  <eggert@twinsun.com>
83513
83514         The following changes are from gettext 0.10.39 as maintained by
83515         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
83516
83517         * m4/codeset.m4: Upgrade to serial AM1.
83518         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
83519         all uses changed.  Quote first arg of AC_DEFUN.
83520         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
83521
83522         * m4/iconv.m4: Upgrade to serial AM2.
83523         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
83524         Add --with-libconv-prefix.
83525         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
83526         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
83527         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
83528         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
83529         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
83530
83531         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
83532         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
83533         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
83534         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
83535         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
83536         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
83537         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
83538         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
83539         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
83540
83541         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
83542         string.h any more.
83543
83544         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
83545         not the default value.
83546
83547         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
83548         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
83549         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
83550         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
83551         Also check for iswcntrl, used for wcwidth fallback.
83552         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
83553         to Autoconf 2.13.
83554
83555 2001-08-03  Jim Meyering  <meyering@lucent.com>
83556
83557         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
83558         as it was in the original.  Reported by Paul Eggert.
83559
83560 2001-07-16  Jim Meyering  <meyering@lucent.com>
83561
83562         * m4/gettimeofday.m4: New file.
83563         Prompted by a report from Bernhard Baehr.
83564
83565 2001-07-15  Jim Meyering  <meyering@lucent.com>
83566
83567         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
83568         stuff. Now it's in ../Makefile.cfg.
83569
83570 2001-07-15  Jim Meyering  <meyering@lucent.com>
83571
83572         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
83573         (BUILT_SOURCES): Add unlocked-io.h.
83574         (io_functions): Define.
83575         (unlocked-io.h): New rule.
83576         (DISTCLEANFILES): Add unlocked-io.h.
83577         (all-local): Depend on unlocked-io.h, to ensure it is created.
83578
83579         * lib/unlocked-io.hin: New file
83580
83581         * lib/regex.c: Update from glibc.
83582
83583 2001-07-05  Jim Meyering  <meyering@lucent.com>
83584
83585         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
83586         recommendation.
83587         (libfetish_a_SOURCES): Put all .h files here instead.
83588         Remove a thus-exposed (better checks in automake) duplicate and
83589         two unnecessary .h files.
83590
83591 2001-07-04  Jim Meyering  <meyering@lucent.com>
83592
83593         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
83594         that generates jm-glibc-io.m4 so that it doesn't trigger any make
83595         distcheck failure.
83596
83597 2001-07-02  Jim Meyering  <meyering@lucent.com>
83598
83599         The following changes were prompted by suggestions from Bruno Haible.
83600
83601         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
83602         is now generated.
83603         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
83604         definition of EXTRA_DIST.
83605         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
83606         ensure that the generated file is created/updated whenever the list
83607         of $(unlocked_functions) is changed.
83608         (jm-glibc-io.m4): New rule.
83609         (unlocked-io.h): New rule -- currently unused.
83610
83611 2001-06-24  Jim Meyering  <meyering@lucent.com>
83612
83613         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
83614         unmatched right bracket, rather than kludging it with an extra,
83615         falsely-matching quote in a comment.  Patch by Akim Demaille.
83616
83617 2001-06-11  Jim Meyering  <meyering@lucent.com>
83618
83619         * lib/regex.c: Update from GNU libc.
83620
83621 2001-05-27  Jim Meyering  <meyering@lucent.com>
83622
83623         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
83624         Check for ut_type in struct utmp.
83625
83626 2001-05-27  Jim Meyering  <meyering@lucent.com>
83627
83628         * lib/readutmp.h (UT_TYPE): Define.
83629
83630 2001-05-24  Jim Meyering  <meyering@lucent.com>
83631
83632         * lib/argmatch.c: Include "quote.h".
83633         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
83634         quote function.  Reported by Göran Uddeborg.
83635
83636 2001-05-22  Jim Meyering  <meyering@lucent.com>
83637
83638         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
83639         now that we use the package-supplied version unconditionally.
83640         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
83641
83642 2001-05-21  Jim Meyering  <meyering@lucent.com>
83643
83644         * m4/regex.m4: Change a couple backticks to single quotes to avoid
83645         shell syntax errors.
83646
83647 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
83648
83649         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
83650
83651 2001-05-20  Paul Eggert  <eggert@twinsun.com>
83652
83653         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
83654         Don't bother to check library strftime, since
83655         we'll be using our own my_strftime function anyway.
83656         Define my_strftime instead of strftime.
83657
83658 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
83659
83660         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
83661         which is not yet declared.
83662
83663 2001-05-15  Jim Meyering  <meyering@lucent.com>
83664
83665         * m4/regex.m4: Use proper quoting so brackets appear in the test
83666         program.
83667         Reported by, and with help from, Bruno Haible.
83668
83669 2001-05-13  Jim Meyering  <meyering@lucent.com>
83670
83671         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
83672         undefined.
83673
83674 2001-05-11  Paul Eggert  <eggert@twinsun.com>
83675
83676         dirname code cleanup.  base_name now behaves more compatibly
83677         with POSIX basename when given file names that have trailing
83678         slashes, and similarly for dir_name.  Add new primitives
83679         base_len and dir_len.  Put the directory-name-related decls
83680         into dirname.h.
83681
83682         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
83683         * lib/backupfile.c (base_name): Likewise.
83684         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
83685         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
83686         * lib/makepath.c (strip_trailing_slashes): Likewise.
83687         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
83688         ISSLASH): Likewise.
83689         * lib/rename.c (strip_trailing_slashes): Likewise.
83690         * lib/same.c (base_name): Likewise.
83691         * lib/stripslash.c (ISSLASH): Likewise.
83692
83693         * lib/addext.c: Include <dirname.h> after size_t is defined.
83694         * lib/backupfile.c: Likewise.
83695
83696         * lib/addext.c (addext): Use base_len to trim redundant
83697         trailing slashes instead of doing it ourselves.
83698         But do not trim the last slash if it is not redundant.
83699
83700         * lib/backupfile.c (find_backup_file_name,
83701         max_backup_version): Use base_len instead of rolling it ourselves.
83702         Handle the case of "" and (on DOS) "C:" correctly.
83703
83704         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
83705         needed. Include <string.h>, <dirname.h>.
83706         (base_name): Allow file names ending in slashes, other than names
83707         that are all slashes.  In this case, return the basename followed
83708         by the slashes.  This is more general, and can be used in places
83709         where the original base_name purposely had an assertion failure.
83710         (base_len): New function.
83711
83712         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
83713         Do not include <assert.h>; no longer needed.
83714         Include xalloc.h.
83715         (memrchr): Remove decl.
83716         (dir_name_r): Remove.
83717         (dir_len): Renamed from dirlen.  All callers changed.
83718         Rewrite in terms of base_name, for simplicity and consistency.
83719         (dir_name): Never return NULL.  All callers changed.
83720         Do not include <stdlib.h> in test program; no longer needed.
83721         return 0; is fine for test program.
83722
83723         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
83724         New macros.
83725         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
83726
83727         * lib/path-concat.c (path_concat): Use base_len to compute
83728         base length, not strlen; this means we cannot rely on memcpy
83729         to null-terminate.
83730
83731         * lib/same.c (STREQ): Remove.
83732         (same_name): Handle the case where the basename ends in trailing '/'.
83733
83734         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
83735         a slash was stripped.  Do not strip the last slash after a
83736         file system prefix.
83737
83738 2001-05-11  Paul Eggert  <eggert@twinsun.com>
83739
83740         * lib/Makefile.am (libfetish_a_SOURCES):
83741         Add strftime.c, since we now compile it on all hosts.
83742
83743         * lib/strftime.c (my_strftime):
83744         Define to nstrftime if emacs, but only if my_strftime is not defined.
83745         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
83746         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
83747         Add one more extra argument: a nanoseconds value.
83748         All uses changed.
83749         (ns): New macro.
83750         (my_strftime function): Add %N format.
83751         (emacs_strftimeu): Renamed from emacs_strftime,
83752         with extra ut argument.
83753
83754 2001-05-09  Paul Eggert  <eggert@twinsun.com>
83755
83756         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
83757
83758 2001-04-21  Jim Meyering  <meyering@lucent.com>
83759
83760         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
83761         doesn't interfere.
83762
83763 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
83764
83765         * m4/ftruncate.m4: Check for chsize.
83766         Link with ftruncate.o unconditionally if ftruncate is missing.
83767         This was required when cross-compiling to i586-mingw32msvc.
83768
83769 2001-04-08  Jim Meyering  <meyering@lucent.com>
83770
83771         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
83772         recomputed; that's necessary when the offset spans a DST transition.
83773         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
83774
83775 2001-04-02  Jim Meyering  <meyering@lucent.com>
83776
83777         * lib/regex.h, regex.c: Update from GNU libc.
83778
83779 2001-03-24  Jim Meyering  <meyering@lucent.com>
83780
83781         * m4/jm-macros.m4: Require autoconf-2.49d.
83782
83783 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
83784
83785         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
83786
83787 2001-03-19  Paul Eggert  <eggert@twinsun.com>
83788
83789         * lib/version-etc.c (version_etc_copyright): Update to 2001.
83790
83791 2001-03-17  Jim Meyering  <meyering@lucent.com>
83792
83793         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
83794         now that the version in autoconf is equivalent.
83795         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
83796
83797         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
83798         Suggestion from Akim Demaille.
83799
83800         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
83801         (jm_PREREQ_TEMPNAME): New function.
83802
83803 2001-03-16  Paul Eggert  <eggert@twinsun.com>
83804
83805         * lib/tempname.c (uint64_t): Define to uintmax_t if
83806         not defined, and if UINT64_MAX is not defined.
83807         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
83808         Reported by John David Anglin.
83809
83810 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
83811
83812         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
83813         resolve alias if codeset is empty.
83814         * lib/config.charset (BeOS): Use wildcard syntax.
83815
83816 2001-03-13  Jim Meyering  <meyering@lucent.com>
83817
83818         * lib/path-concat.c (path_concat)
83819         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
83820         concatenating e.g., `C:' and `foo'.
83821         From Bruno Haible.
83822
83823 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83824
83825         * lib/localcharset.c (locale_charset): Don't use
83826         setlocale(LC_CTYPE,NULL). Don't return NULL.
83827         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
83828
83829 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83830
83831         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
83832         support for DOS/DJGPP.
83833
83834 2001-03-01  Paul Eggert  <eggert@twinsun.com>
83835
83836         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
83837         lacks mkstemp.  Compile our own tempname.c if we compile our own
83838         mkstemp.c, as mkstemp relies on tempname.
83839
83840 2001-03-01  Jim Meyering  <meyering@lucent.com>
83841
83842         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
83843         AH_VERBATIM really does output its argument verbatim.
83844
83845 2001-02-28  Paul Eggert  <eggert@twinsun.com>
83846
83847         * lib/Makefile.am (libfetish_a_SOURCES):
83848         Add dup-safer.c, fopen-safer.c.
83849         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
83850
83851         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
83852         * lib/unistd-safer.h: New files.
83853
83854 2001-02-25  Paul Eggert  <eggert@twinsun.com>
83855
83856         The mkstemp replacement is taken from glibc 2.2.2, with some
83857         portability fixes for use outside glibc, as follows:
83858
83859         * lib/tempname.c (struct_stat64): New macro.
83860         (direxists, __gen_tempname): Use it.
83861         This avoids a portability problem with Solaris 8.
83862
83863         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
83864         (<stddef.h>, <stdint.h>, <string.h>):
83865         Include only if STDC_HEADERS || _LIBC.
83866         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
83867         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
83868         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
83869         (__set_errno): Define this macro if <errno.h> doesn't.
83870         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
83871         Define these macros if <stdio.h> doesn't.
83872         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
83873         Define these macros if <sys/stat.h>
83874         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
83875         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
83876         __xstat64): Define if not _LIBC.
83877         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
83878         (__gen_tempname): Invoke gettimeofday only if
83879         HAVE_GETTIMEOFDAY || _LIBC;
83880         otherwise, fall back on plain "time".
83881         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
83882
83883         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
83884
83885         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
83886
83887 2001-02-18  Paul Eggert  <eggert@twinsun.com>
83888
83889         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
83890
83891 2001-02-17  Paul Eggert  <eggert@twinsun.com>
83892
83893         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
83894         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
83895         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
83896         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
83897
83898 2001-02-17  Paul Eggert  <eggert@twinsun.com>
83899
83900         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
83901         Remove workaround macros for hosts that have mbrtowc but not
83902         mbstate_t, as we now insist on proper declarations for both
83903         before using mbrtowc.
83904
83905 2001-02-17  Jim Meyering  <meyering@lucent.com>
83906
83907         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
83908         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
83909         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
83910         UnixWare 7.1.1.
83911
83912         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
83913         rather than AC_CACHE_VAL.
83914
83915 2001-02-17  Jim Meyering  <meyering@lucent.com>
83916
83917         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
83918         around included file name.
83919
83920         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
83921
83922         * lib/strftime.c: Update from GNU libc (the only changes were to
83923         comments).
83924
83925 2001-02-17  Jim Meyering  <meyering@lucent.com>
83926
83927         * lib/regex.c: Update from libc.
83928
83929 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
83930
83931         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
83932         clash.
83933
83934 2001-02-16  Paul Eggert  <eggert@twinsun.com>
83935
83936         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
83937         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
83938         Reported by Mark Hounschell via Paul Eggert.
83939
83940 2001-02-07  Jim Meyering  <meyering@lucent.com>
83941
83942         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
83943
83944 2001-02-05  Jim Meyering  <meyering@lucent.com>
83945
83946         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
83947         it includes the patch required for `large file' support with at least
83948         HP-UX's 10.20 /bin/cc.
83949
83950 2001-02-03  Jim Meyering  <meyering@lucent.com>
83951
83952         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
83953         AS_IF, now that it works once again (mysteriously).
83954         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
83955
83956 2001-01-30  Jim Meyering  <meyering@lucent.com>
83957
83958         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
83959         * m4/chown.m4: Rename conftestchown to conftest.chown.
83960         * m4/rename.m4: s/conftestdir/conftest.d1/ and
83961         s/conftestdir2/conftest.d2/.
83962         * m4/utimes.m4: s/conftestdata/conftest.data/
83963         Inspired by Pavel Roskin's change in autoconf.
83964
83965 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
83966
83967         * lib/config.charset: Update for FreeBSD 4.2.
83968
83969 2001-01-27  Jim Meyering  <meyering@lucent.com>
83970
83971         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
83972         a use of AS_IF.
83973         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
83974
83975 2001-01-26  Jim Meyering  <meyering@lucent.com>
83976
83977         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
83978         quotearg.c includes it.
83979
83980 2001-01-26  Jim Meyering  <meyering@lucent.com>
83981
83982         * lib/quotearg.c: Include stddef.h.
83983         * lib/quote.c: Include stddef.h.
83984         Reported by Axel Kittenberger.
83985
83986         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
83987         line in double quotes so that it evokes a better diagnostic.
83988         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
83989         Reported by Axel Kittenberger.
83990
83991 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
83992
83993         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
83994         as if it was a `charset'.
83995
83996 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
83997
83998         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
83999         has const.
84000
84001 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
84002
84003         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
84004         to avoid a warning.  Add back 'const' to inptr.
84005
84006 2001-01-20  Jim Meyering  <meyering@lucent.com>
84007
84008         Be sure that headers are checked before used in code compiled
84009         for the type checks.
84010         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
84011         In place of that, invoke jm_CHECK_ALL_TYPES.
84012         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
84013         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
84014         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
84015         The check for ssize_t was mistakenly run before the test for unistd.h.
84016
84017         The configure-time check for stdbool.h was missing.
84018         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
84019         (jm_PREREQ_HASH): New function.
84020
84021 2001-01-17  Jim Meyering  <meyering@lucent.com>
84022
84023         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
84024         for autoconf-2.49c.
84025         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
84026
84027 2001-01-16  Jim Meyering  <meyering@lucent.com>
84028
84029         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
84030         From Bruno Haible.
84031
84032 2001-01-14  Jim Meyering  <meyering@lucent.com>
84033
84034         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
84035         foo and bar.  Create conftestdir/ in the script, not in the C code.
84036         Remove directories in the script, not in the C code.
84037         Remove conftestdir{,2} before trying to create the directory.
84038         Make the entire configure script fail if the mkdir fails.
84039
84040 2001-01-14  Jim Meyering  <meyering@lucent.com>
84041
84042         * lib/rename.c: New file.  From Volker Borchert.
84043         Include stdlib.h, string.h or strings.h, and xalloc.h.
84044         Use strip_trailing_slashes rather than open-coding it.
84045
84046 2001-01-03  Paul Eggert  <eggert@twinsun.com>
84047
84048         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
84049
84050 2001-01-03  Jim Meyering  <meyering@lucent.com>
84051
84052         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
84053         of local `inptr' to avoid warning with some system declarations of
84054         iconv.
84055
84056 2001-01-02  Volker Borchert  <bt@teknon.de>
84057
84058         * m4/rename.m4: New file.
84059         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
84060
84061 2001-01-01  Jim Meyering  <meyering@lucent.com>
84062
84063         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
84064         even on systems with utmpx.h.  It's necessary for the declaration of
84065         utmp's ut_user member.  Reported by Andreas Jaeger.
84066
84067         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
84068         available. They are required for the declarations of getgrgid and
84069         getpwuid resp.
84070         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
84071         Reported by Andreas Jaeger.
84072
84073 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
84074
84075         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
84076         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
84077         so `make install' also works in VPATH builds.
84078
84079 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
84080
84081         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
84082         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
84083         can be used in subdirectories.
84084
84085 2000-12-29  Paul Eggert  <eggert@twinsun.com>
84086
84087         * lib/modechange.c: Do not assume that mode_t uses the
84088         traditional octal encoding.  E.g. "chmod 1 FOO" should set
84089         the other-execute bit of FOO even if S_IXOTH != 1.
84090
84091         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
84092         WOTH, XOTH, ALLM): New macros.
84093         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
84094          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
84095         Use them.
84096         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
84097         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
84098         (mode_compile):
84099         No need to use uintmax_t; unsigned long is long enough.
84100         Don't bother to get suffix since we don't use it.
84101
84102 2000-12-26  Jim Meyering  <meyering@lucent.com>
84103
84104         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
84105         better with autoheader.
84106
84107 2000-12-24  Jim Meyering  <meyering@lucent.com>
84108
84109         * lib/hash.c (is_prime): Return explicit boolean values.
84110         (hash_get_first): Return NULL to appease Irix5.6's 89.
84111         Reported by Nelson Beebe.
84112
84113 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
84114
84115         * lib/localcharset.c (locale_charset): Add support for Win32.
84116
84117 2000-12-18  Paul Eggert  <eggert@twinsun.com>
84118
84119         * lib/physmem.h, lib/physmem.c: New files.
84120
84121         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
84122         (noinst_HEADERS): Add physmem.h.
84123
84124         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
84125         't' for compatibility with Solaris 8 sort.
84126
84127 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
84128
84129         * lib/config.charset: Add support for BeOS.
84130
84131 2000-12-17  Jim Meyering  <meyering@lucent.com>
84132
84133         * m4/dos.m4 (jm_AC_DOS): New file and macro.
84134         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
84135
84136 2000-12-16  Jim Meyering  <meyering@lucent.com>
84137
84138         This bug had a serious impact on chown: `chown N:M FILE' (for integer
84139         N and M) would have treated it like `chown N:N FILE'.
84140
84141         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
84142
84143 2000-12-16  Jim Meyering  <meyering@lucent.com>
84144
84145         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
84146         SHELLS_FILE to a file name that's useful on djgpp systems.
84147         Include stdlib.h.
84148         (ADDITIONAL_DEFAULT_SHELLS): Define.
84149         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
84150         Based mostly on a patch from Prashant TR.
84151
84152 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
84153
84154         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
84155         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
84156         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
84157
84158 2000-12-08  Andreas Schwab  <schwab@suse.de>
84159
84160         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
84161         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
84162
84163 2000-12-07  Jim Meyering  <meyering@lucent.com>
84164
84165         * lib/stripslash.c (ISSLASH): Define.
84166         (strip_trailing_slashes): Use ISSLASH rather than comparing against
84167         `/'.
84168         From Prashant TR.
84169
84170         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
84171         (dir_name_r): Declare this function as static.
84172         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
84173         manifest itself on a name containing a mix of slashes and
84174         backslashes.
84175         Make this function work with names starting with a DOS-style
84176         drive letter and colon prefix.
84177         (dir_name): Append `.' if necessary.
84178         Based mostly on patches from Prashant TR and Eli Zaretskii.
84179
84180         * lib/dirname.h (dir_name_r): Remove prototype.
84181
84182 2000-12-06  Paul Eggert  <eggert@twinsun.com>
84183
84184         * m4/off_t-format.m4: Remove this file.
84185         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
84186
84187 2000-12-06  Jim Meyering  <meyering@lucent.com>
84188
84189         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
84190         replacement strtoull, we may well need the replacement strtoul, too.
84191         Check for declarations of strtoul and strtoull.
84192         Check for strtol.  Mainly as a cue to cause automake to include
84193         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
84194         Check for limits.h -- strtol.c needs it.
84195
84196 2000-12-05  Jim Meyering  <meyering@lucent.com>
84197
84198         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
84199
84200 2000-12-04  Jim Meyering  <meyering@lucent.com>
84201
84202         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
84203         Also include memory.h, stdlib.h, unistd.h if appropriate.
84204         Reported by Andreas Jaeger (conflicting declaration of malloc).
84205
84206 2000-12-02  Jim Meyering  <meyering@lucent.com>
84207
84208         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
84209         * m4/jm-macros.m4 (jm_MACROS): require it.
84210
84211 2000-12-02  Jim Meyering  <meyering@lucent.com>
84212
84213         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
84214
84215 2000-12-01  Paul Eggert  <eggert@twinsun.com>
84216
84217         * lib/memrchr.c: Include <config.h> before any system include file.
84218
84219 2000-11-30  Jim Meyering  <meyering@lucent.com>
84220
84221         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
84222
84223 2000-11-30  Jim Meyering  <meyering@lucent.com>
84224
84225         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
84226
84227 2000-11-29  Paul Eggert  <eggert@twinsun.com>
84228
84229         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
84230
84231 2000-11-26  Jim Meyering  <meyering@lucent.com>
84232
84233         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
84234
84235 2000-11-22  Paul Eggert  <eggert@twinsun.com>
84236
84237         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
84238         size of (size_t) -1; it's not portable.
84239
84240 2000-11-17  Jim Meyering  <meyering@lucent.com>
84241
84242         * lib/strstr.c: Update from GNU libc.
84243
84244 2000-11-17  Akim Demaille  <akim@epita.fr>
84245
84246         * lib/obstack.h: Formatting changes.
84247         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
84248         prevent type checking.
84249         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
84250         cast the value to (void *): assigning a `foo *' to a `void *'
84251         variable is valid.
84252         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
84253
84254 2000-11-16  Jim Meyering  <meyering@lucent.com>
84255
84256         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
84257
84258 2000-11-11  Jim Meyering  <meyering@lucent.com>
84259
84260         * lib/error.c: Add a couple #includes, merging from GNU libc version.
84261
84262 2000-11-10  Jim Meyering  <meyering@lucent.com>
84263
84264         * lib/obstack.h: Update from GNU libc.
84265         * lib/obstack.c: Likewise.
84266
84267 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
84268
84269         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
84270
84271 2000-11-06  Paul Eggert  <eggert@twinsun.com>
84272
84273         * lib/getusershell.c (setusershell): Use rewind rather than
84274         fseek/fseeko, to avoid configuration hassles with fseeko.
84275         Don't bother opening SHELLS_FILE if shellstream is NULL;
84276         it's not necessary.
84277
84278 2000-11-05  Jim Meyering  <meyering@lucent.com>
84279
84280         * lib/makepath.h (make_dir): Declare.
84281         * lib/makepath.c (make_dir): Remove `static' attribute.
84282         Tweak a comment.
84283
84284 2000-11-04  Jim Meyering  <meyering@lucent.com>
84285
84286         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
84287
84288 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
84289
84290         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
84291         last one in a bucket, advance to the next bucket.
84292
84293 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
84294
84295         * lib/fnmatch.c: Do not comment out all the code if we are using
84296         the GNU C library, because in some cases we are replacing buggy
84297         code in the GNU C library itself.
84298
84299 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
84300
84301         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
84302         (regex_compile): Catch bogus \(\1\).
84303
84304 2000-10-30  Paul Eggert  <eggert@twinsun.com>
84305
84306         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
84307         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
84308         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
84309
84310 2000-10-30  Paul Eggert  <eggert@twinsun.com>
84311
84312         * lib/error.h, getline.h, modechange.h:
84313         Remove "2000" from Copyright line, as the file hasn't been
84314         changed this year other than in the copyright notice.
84315
84316         * lib/xalloc.h: Add "2000" to Copyright line, as this file
84317         was changed this year.
84318
84319 2000-10-29  Jim Meyering  <meyering@lucent.com>
84320
84321         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
84322         renaming.
84323         * m4/ls-mntd-fs.m4: Likewise
84324
84325 2000-10-29  Jim Meyering  <meyering@lucent.com>
84326
84327         * lib/xstat.in: Fix grammar in comment.
84328
84329 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
84330
84331         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
84332         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
84333         doesn't define __restrict_arr.
84334
84335 2000-10-28  Jim Meyering  <meyering@lucent.com>
84336
84337         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
84338         (jm_PREREQ_MEMCHR): New function.
84339
84340 2000-10-28  Jim Meyering  <meyering@lucent.com>
84341
84342         * lib/memchr.c: Update from libc.
84343         Adjust for portability:
84344         [HAVE_STDLIB_H]: Include stdlib.h.
84345         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
84346         Undef __memchr, too.
84347         [!weak_alias]: Define __memchr to memchr.
84348
84349         * lib/regex.c: Update from libc.
84350         * lib/regex.h: Likewise.
84351         * lib/getopt1.c: Likewise.
84352         * lib/memcmp.c: Likewise.
84353
84354         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
84355         Avoid using fseek, when possible -- it's broken by design.
84356         Patch by Ulrich Drepper.
84357
84358 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
84359
84360         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
84361         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
84362         Giving in to popular pressure to shut up the compiler with casts.
84363
84364 2000-10-26  Jim Meyering  <meyering@lucent.com>
84365
84366         * lib/strftime.c: Update from libc.
84367
84368 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
84369
84370         * regex.c: More `unsigned char' -> `re_char' changes.
84371         Also change several `int' into `re_wchar_t'.
84372         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
84373         (PUSH_FAILURE_POINTER): Don't cast any more.
84374         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
84375         We want GCC to complain, since this piece of code makes
84376         re_match non-reentrant, which *should* be fixed.
84377         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
84378         (EXTEND_BUFFER): Use RETALLOC.
84379         (SET_LIST_BIT): Don't cast.
84380         (re_wchar_t): New type.
84381         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
84382         that those two functions will always properly return.
84383         (IMMEDIATE_QUIT_CHECK): Cast to void.
84384         (analyse_first): Use recursion rather than an explicit stack.
84385         (re_compile_fastmap): Can't fail anymore.
84386         (re_search_2): Don't check re_compile_fastmap for failure.
84387         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
84388         Now also sets the new value (passed in a new argument).
84389         (re_match_2_internal): Use it.
84390         Also, use a new var `reg' of type size_t when looping through regs
84391         rather than reuse the inappropriate `mcnt'.
84392
84393 2000-10-25  Jim Meyering  <meyering@lucent.com>
84394
84395         * lib/obstack.c: Update from libc.
84396
84397 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
84398
84399         * regex.c (regex_compile): Change the way of handling a range from
84400         a char less than 256 to a char not less than 256.
84401
84402 2000-10-24  Andrew Innes  <andrewi@gnu.org>
84403
84404         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
84405         NT-Emacs only.
84406         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
84407         so that re_search functions only quit when callers expect them to.
84408
84409 2000-10-23  Jim Meyering  <meyering@lucent.com>
84410
84411         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
84412         wrong.  That set_locale call must not have any side effects.
84413         From Paul Eggert.
84414
84415 2000-10-22  Jim Meyering  <meyering@lucent.com>
84416
84417         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
84418         [CYCLIC]: Remove now-unused definition.
84419
84420         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
84421         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
84422         Suggestion from Ulrich Drepper.
84423
84424 2000-10-21  Jim Meyering  <meyering@lucent.com>
84425
84426         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
84427         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
84428         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
84429
84430 2000-10-21  Jim Meyering  <meyering@lucent.com>
84431
84432         * lib/dirname.c (memrchr): Declare if necessary.
84433         (dir_name): Remove the restriction that there be no
84434         trailing slashes.  Now, this code skips past them, effectively
84435         ignoring them.
84436         [TEST_DIRNAME] (main): New unit tests.
84437
84438         * lib/memrchr.c: New file from GNU libc.
84439         Undef __memrchr, too.
84440         [!weak_alias]: Define __memrchr to memrchr.
84441         Guard weak_alias use with `#ifdef weak_alias'.
84442
84443 2000-10-21  Jim Meyering  <meyering@lucent.com>
84444
84445         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
84446         (dir_name): Use dir_name_r.
84447         * lib/dirname.h (dir_name_r): Declare it.
84448
84449 2000-10-17  Jim Meyering  <meyering@lucent.com>
84450
84451         * lib/quote.h (PARAMS): Define and use.
84452         Reported by Akim Demaille.
84453
84454         * lib/getopt.c: Update from libc.
84455
84456 2000-10-16  Jim Meyering  <meyering@lucent.com>
84457
84458         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
84459         setlocale.
84460         From Jan Fedak.
84461
84462 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
84463
84464         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
84465
84466 2000-09-25  Jim Meyering  <meyering@lucent.com>
84467
84468         * lib/md5.h (rol): Define (from GnuPG).
84469
84470         * lib/sha.c: Give credit (GnuPG) where due.
84471         (M): Use rol rather than open-coding it.
84472         Add a FIXME comment.
84473
84474 2000-09-21  Jim Meyering  <meyering@lucent.com>
84475
84476         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
84477         Reported by Michael Stone.
84478
84479 2000-09-20  Jim Meyering  <meyering@lucent.com>
84480
84481         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
84482         (noinst_HEADERS): Add sha.h.
84483         Based on code from Scott G. Miller and from GnuPG.
84484
84485 2000-09-18  Jim Meyering  <meyering@lucent.com>
84486
84487         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
84488         LIBS. Otherwise, everyone ends up linking with -lelf for some
84489         configurations.
84490         Reported by Mike Stone.
84491
84492 2000-09-15  Jim Meyering  <meyering@lucent.com>
84493
84494         * lib/regex.c: Update from libc.
84495
84496 2000-09-10  Jim Meyering  <meyering@lucent.com>
84497
84498         * lib/getopt.c (_getopt_internal): Update from glibc.
84499
84500 2000-09-09  Jim Meyering  <meyering@lucent.com>
84501
84502         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
84503         think it should be used as a general replacement for isascii.
84504         * lib/fnmatch.c: Likewise.
84505         * lib/mbswidth.c: Likewise
84506         * lib/regex.c: Likewise.
84507
84508         Don't use atoi.
84509         * lib/userspec.c: Include sys/param.h and limits.h.
84510         Include xstrtol.h.
84511         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
84512         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
84513         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
84514         UID, GID.  Check range.
84515
84516 2000-09-06  Jim Meyering  <meyering@lucent.com>
84517
84518         * lib/getopt.c (_getopt_internal): Update from glibc.
84519
84520 2000-08-30  Jim Meyering  <meyering@lucent.com>
84521
84522         * lib/strftime.c: Merge in changes from GNU libc.
84523
84524 2000-08-26  Jim Meyering  <meyering@lucent.com>
84525
84526         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
84527         * m4/fpending.m4: New file.
84528
84529 2000-08-26  Jim Meyering  <meyering@lucent.com>
84530
84531         * lib/closeout.c: Include "__fpending.h".
84532         (close_stdout_status): Return right away if there's nothing to flush.
84533
84534         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
84535         * lib/__fpending.c: New file.
84536         * lib/__fpending.h: New file.
84537
84538 2000-08-20  Jim Meyering  <meyering@lucent.com>
84539
84540         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
84541         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
84542         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
84543
84544 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
84545
84546         Improve fileutils installation on systems where running
84547         programs (like install) can't be unlinked.
84548         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
84549         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
84550
84551 2000-08-07  Paul Eggert  <eggert@twinsun.com>
84552
84553         Standardize on "memory exhausted" instead of "Memory exhausted"
84554         or "virtual memory exhausted".
84555         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
84556         "virtual memory exhausted".
84557         * lib/same.c (same_name): Invoke xalloc_die instead of printing
84558         our own message.
84559         * lib/userspec.c (parse_user_spec): Likewise.
84560         * lib/bumpalloc.h: comment fix
84561         * lib/same.c, userspec.c: Include xalloc.h.
84562
84563         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
84564         not char *const and pointing to a constant array.
84565         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
84566         (xrealloc): Comment fix.
84567
84568         * lib/userspec.c (parse_user_spec):
84569         Don't translate a message until just before returning,
84570         to avoid unnecessary translation.
84571
84572 2000-08-07  Jim Meyering  <meyering@lucent.com>
84573
84574         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
84575         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
84576         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
84577         getgroups.c, gethostname.c, getopt.h, group-member.c,
84578         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
84579         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
84580         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
84581         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
84582         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
84583         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
84584         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
84585         yesno.c: Back out Copyright date changes for each file with no change
84586         this year.  This eases coordination with other programs using the same
84587         source code modules.  From Paul Eggert.
84588
84589 2000-08-06  Paul Eggert  <eggert@twinsun.com>
84590
84591         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
84592         not char, for compatibility with glibc 2.1.3 strftime.c.
84593
84594 2000-08-03  Greg McGary  <greg@mcgary.org>
84595
84596         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
84597         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
84598         (EXTEND_BUFFER): Use them.
84599
84600 2000-08-01  Jim Meyering  <meyering@lucent.com>
84601
84602         * lib/dirname.c (ISSLASH): Define.
84603         (BACKSLASH_IS_PATH_SEPARATOR): Define.
84604         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
84605         both `\' and `/' may be use as path separators.
84606         Based on a patch from Prashant TR.
84607
84608 2000-07-31  Paul Eggert  <eggert@twinsun.com>
84609
84610         * lib/quotearg.c (quotearg_n_options): Don't make the initial
84611         slot vector a constant, since it might get modified.
84612
84613 2000-07-31  Jim Meyering  <meyering@lucent.com>
84614
84615         * lib/xmalloc.c: Use `virtual memory exhausted', not
84616         `Memory exhausted'.
84617         * lib/obstack.c (print_and_abort): Likewise.
84618
84619 2000-07-30  Paul Eggert  <eggert@twinsun.com>
84620
84621         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
84622         buffer, so that the caller can always quote one small
84623         component of a "memory exhausted" message in slot 0.
84624         From a suggestion by Jim Meyering.
84625
84626 2000-07-30  Jim Meyering  <meyering@lucent.com>
84627
84628         * lib/makepath.c (make_path): Quote the other instance, too.
84629
84630         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
84631         (STATIC_BUF_SIZE): Define.
84632         (quotearg_n_options): Use only statically allocated storage when
84633         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
84634         than STATIC_BUF_SIZE.
84635
84636 2000-07-29  Jim Meyering  <meyering@lucent.com>
84637
84638         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
84639         * lib/dirname.c (dir_name): Likewise.
84640
84641         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
84642         `/'.
84643
84644         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
84645         (dir_name): Assert that there are no trailing slashes.
84646
84647 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
84648
84649         * lib/mbswidth.h (mbswidth): Add a flags argument.
84650         (mbswidth): New declaration.
84651         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
84652         * lib/mbswidth.c (mbswidth): Add a flags argument.
84653         (mbsnwidth): New function.
84654
84655 2000-07-24  Jim Meyering  <meyering@lucent.com>
84656
84657         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
84658
84659 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84660
84661         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
84662
84663 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84664
84665         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
84666         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
84667         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
84668         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
84669         invoke multibyte primitives.
84670
84671 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84672
84673         * lib/quotearg.c:
84674         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
84675         so that mbstate_t is always defined.
84676
84677         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
84678         be 1 in at least one GCC installation, and this configuration
84679         error is likely to be common.  Ignoring MB_LEN_MAX hurts
84680         performance on hosts that have mbrtowc but have only unibyte
84681         locales, but I assume these hosts are rare.
84682
84683 2000-07-23  Paul Eggert  <eggert@twinsun.com>
84684
84685         * lib/mbswidth.c (_XOPEN_SOURCE):
84686         Don't define; this causes problems on Solaris 7.
84687         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
84688
84689 2000-07-23  Jim Meyering  <meyering@lucent.com>
84690
84691         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
84692         too: getgrgid, getpwuid, getuid.
84693
84694 2000-07-23  Jim Meyering  <meyering@lucent.com>
84695
84696         * lib/basename.c (base_name): Add an assertion.
84697
84698 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
84699
84700         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
84701         shadow its mbsinit function.
84702
84703 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
84704
84705         * lib/mbswidth.h: New file.
84706         * lib/mbswidth.c: New file.
84707         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
84708         (noinst_HEADERS): Add mbswidth.h.
84709
84710 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
84711
84712         * lib/config.charset: Add support for FreeBSD. Improve support for
84713         HP-UX and IRIX 6.
84714
84715 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
84716
84717         * m4/mbswidth.m4: New file.
84718         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
84719
84720 2000-07-15  Jim Meyering  <meyering@lucent.com>
84721
84722         * lib/makepath.c: Include quote.h.
84723         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
84724         corresponding argument in a `quote (...)' call.
84725         Give better diagnostics.
84726
84727         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
84728         (noinst_HEADERS): Add quote.h.
84729
84730         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
84731         from tar's src/misc.c.
84732         * lib/quote.h: New file.  Prototypes for same.
84733
84734 2000-07-14  Paul Eggert  <eggert@twinsun.com>
84735
84736         From a suggestion by Bruno Haible.
84737         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
84738         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
84739         to decide whether to define the BeOS workaround macro;
84740         this adjusts to the change to AC_MBSTATE_T.
84741
84742 2000-07-14  Jim Meyering  <meyering@lucent.com>
84743
84744         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
84745         jm_AC_TYPE_UINTMAX_T.
84746
84747 2000-07-13  Paul Eggert  <eggert@twinsun.com>
84748
84749         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
84750
84751         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
84752         quotearg_buffer_restyled): Add support for
84753         clocale_quoting_style.  Undo previous change to
84754         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
84755         and "{RIGHT QUOTATION MARK}" msgids.
84756
84757 2000-07-10  Paul Eggert  <eggert@twinsun.com>
84758
84759         From a suggestion by Bruno Haible.
84760         * m4/mbstate_t.m4 (AC_MBSTATE_T):
84761         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
84762         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
84763         and mbstate_t, to a single-part test that simply defines mbstate_t.
84764         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
84765         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
84766
84767 2000-07-10  Jim Meyering  <meyering@lucent.com>
84768
84769         * m4/strerror_r.m4: Mirror the correction made in autoconf.
84770
84771         * m4/gnu-source.m4: Output to confdefs.h directly.
84772         Suggestion from Akim Demaille.
84773
84774 2000-07-09  Paul Eggert  <eggert@twinsun.com>
84775
84776         The old behavior of quoting `like this' doesn't look good with
84777         newer, ISO-style fonts.  See:
84778         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
84779
84780         Instead, quote "like this" by default.  Let the translator
84781         tailor the locale-specific quoting behavior by providing
84782         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
84783
84784         * lib/quotearg.c (N_): New macro.
84785         (gettext_default): New function.
84786         (quotearg_buffer_restyled): Use
84787         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
84788         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
84789
84790 2000-07-09  Jim Meyering  <meyering@lucent.com>
84791
84792         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
84793         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
84794
84795         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
84796         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
84797
84798 2000-07-09  Jim Meyering  <meyering@lucent.com>
84799
84800         * lib/Most files: Update copyright dates to include 2000.
84801
84802 2000-07-08  Jim Meyering  <meyering@lucent.com>
84803
84804         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
84805         if not defined.
84806         (xgethostname): Remove now-unnecessary #ifdef.
84807         Move declaration of `err' into loop where it's used.
84808
84809 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84810         and Bruno Haible  <haible@clisp.cons.org>
84811
84812         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
84813         only if the test for an object-type mbstate_t fails.  This
84814         prevents us from mistakenly reporting that mbstate_t is a
84815         system object type after we "#define mbstate_t int" to work
84816         around its lack.
84817
84818 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84819         and Bruno Haible  <haible@clisp.cons.org>
84820
84821         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
84822
84823 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84824
84825         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
84826         to strerror_r.
84827         Include <ctype.h> for use of isalpha.
84828
84829 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84830
84831         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
84832         by allocating a larger buffer. Test the gethostname return value for
84833         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
84834         returns an error and ENAMETOOLONG isn't defined.
84835
84836 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84837
84838         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
84839         dimension.
84840
84841 2000-07-04  Jim Meyering  <meyering@lucent.com>
84842
84843         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
84844         of the deprecated AC_CHECKING.
84845
84846 2000-07-04  Jim Meyering  <meyering@lucent.com>
84847
84848         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
84849         Reported by Bruno Haible.
84850
84851 2000-07-04  Jim Meyering  <meyering@lucent.com>
84852
84853         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
84854         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
84855         lacks mbrtowc.
84856
84857 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84858
84859         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
84860         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
84861
84862 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84863         and Bruno Haible  <haible@clisp.cons.org>
84864
84865         * lib/quotearg.c (mbrtowc):
84866         Assign to *pwc, and return 1 only if result is nonzero.
84867         (iswprint): Use ISPRINT when substituting our own mbrtowc.
84868
84869 2000-07-03  Jim Meyering  <meyering@lucent.com>
84870
84871         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
84872
84873 2000-07-03  Jim Meyering  <meyering@lucent.com>
84874
84875         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
84876         This is necessary to get a definition of e.g., UTMP_FILE on
84877         HP-UX 10.20.
84878         From Bob Proulx.
84879
84880 2000-07-02  Jim Meyering  <meyering@lucent.com>
84881
84882         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
84883
84884         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
84885         AC_LIBOBJ(function_name).
84886         * m4/chown.m4: Likewise.
84887         * m4/fnmatch.m4: Likewise.
84888         * m4/ftruncate.m4: Likewise.
84889         * m4/getgroups.m4: Likewise.
84890         * m4/getline.m4: Likewise.
84891         * m4/group-member.m4: Likewise.
84892         * m4/jm-macros.m4: Likewise.
84893         * m4/lstat.m4: Likewise.
84894         * m4/malloc.m4: Likewise.
84895         * m4/memcmp.m4: Likewise.
84896         * m4/nanosleep.m4: Likewise.
84897         * m4/putenv.m4: Likewise.
84898         * m4/realloc.m4: Likewise.
84899         * m4/regex.m4: Likewise.
84900         * m4/stat.m4: Likewise.
84901         * m4/strftime.m4: Likewise.
84902
84903 2000-07-02  Jim Meyering  <meyering@lucent.com>
84904
84905         * lib/quotearg.c (mbstate_t): Don't define here.
84906
84907 2000-07-02  Jim Meyering  <meyering@lucent.com>
84908
84909         * lib/nanosleep.c (SIGCONT): Define if not already defined.
84910
84911 2000-07-01  Jim Meyering  <meyering@lucent.com>
84912
84913         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
84914
84915 2000-07-01  Jim Meyering  <meyering@lucent.com>
84916
84917         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
84918         problem.
84919
84920 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
84921
84922         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
84923         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
84924
84925 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
84926
84927         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
84928         per change in ../m4/ls-mntd-fs.m4.
84929         (read_filesystem_list): Ignore symbolic links.
84930
84931 2000-06-29  Jim Meyering  <meyering@lucent.com>
84932
84933         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
84934         for declaration of strcmp.
84935
84936         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
84937
84938         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
84939         Avoid warning by casting result to `char *' to remove `const'.
84940
84941 2000-06-28  Jim Meyering  <meyering@lucent.com>
84942
84943         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
84944         included by quotearg.c, for which we perform this test.  From
84945         Bruno Haible.
84946
84947 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
84948
84949         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
84950         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
84951         <utmpx.h> exists, put readutmp.o into LIBOBJS.
84952
84953 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
84954
84955         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
84956
84957 2000-06-26  Paul Eggert  <eggert@twinsun.com>
84958
84959         savedir now sets errno on failure and invokes xmalloc to get memory.
84960         Fix a couple of other minor bugs while we're at it.
84961
84962         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
84963         (NAMLEN): Remove macro.
84964         (malloc, realloc): Remove decls.
84965         (stpcpy): Likewise.
84966         ("xalloc.h"): Include.
84967         (NAME_SIZE_DEFAULT): New macro.
84968         (savedir): Use xmalloc / xrealloc to allocate memory.
84969         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
84970         Skip "" directory entries.
84971         Use strlen to calculate directory entry length, since the old method
84972         is rarely used these days and isn't worth supporting.
84973         Don't use a pointer after freeing it.
84974         Check for integer overflow when calculating allocation size.
84975         Use memcpy to copy entries, instead of stpcpy.
84976         Set errno properly when returning NULL.
84977         Check for readdir error.
84978
84979 2000-06-26  Jim Meyering  <meyering@lucent.com>
84980
84981         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
84982
84983 2000-06-25  Jim Meyering  <meyering@lucent.com>
84984
84985         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
84986         Linux header bug when _XOPEN_SOURCE is defined to 500.
84987
84988 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
84989
84990         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
84991         deficiency.
84992
84993 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
84994
84995         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
84996         Include xalloc.h.
84997         Don't include <stdlib.h>.  Don't declare malloc, realloc.
84998
84999 2000-06-24  Jim Meyering  <meyering@lucent.com>
85000
85001         * m4/strerror_r.m4: Revive this file -- to try out an experimental
85002         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
85003         for which strerror does return char*, but which lacks a conveniently
85004         accessible declaration of the function.  If the compile-test says
85005         strerror_r doesn't work, then resort to a `run'-test that works on
85006         BeOS and segfaults on DEC Unix.
85007
85008 2000-06-24  Jim Meyering  <meyering@lucent.com>
85009
85010         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
85011
85012 2000-06-23  Paul Eggert  <eggert@twinsun.com>
85013
85014         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
85015         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
85016
85017 2000-06-23  Paul Eggert  <eggert@twinsun.com>
85018
85019         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
85020         (mbrtowc, mbstate_t): Define substitutes if
85021         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
85022         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
85023         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
85024
85025 2000-06-23  Jim Meyering  <meyering@lucent.com>
85026
85027         * m4/afs.m4: Add missing AC_MSG_RESULT.
85028         Reported by Bruno Haible.
85029
85030         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
85031         Suggestion from Bruno Haible.
85032
85033 2000-06-23  Jim Meyering  <meyering@lucent.com>
85034
85035         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
85036
85037 2000-06-21  Jim Meyering  <meyering@lucent.com>
85038
85039         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
85040
85041 2000-06-21  Jim Meyering  <meyering@lucent.com>
85042
85043         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
85044         (noinst_HEADERS): Add getstr.h.
85045
85046         * lib/getline.c (getstr): Move into a separate file.
85047         * lib/getstr.c (getstr): New file, extracted from getline.c, with
85048         the following changes: new parameter, delim2; both delim[12]
85049         parameters have type `int', not `char'.  The latter would lose
85050         with 8-bit delimiters.
85051         * lib/getstr.h: New file.
85052
85053 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
85054
85055         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
85056         than 1024, return a memory chunk of least possible size, instead
85057         of size PATH_MAX + 2. In the loop, increment the size proportionally.
85058         Use free/xmalloc instead of xrealloc to avoid copying for very long
85059         paths.
85060
85061 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
85062
85063         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
85064         the empty string.
85065
85066 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
85067
85068         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
85069         address, not strdup.  Include <stdlib.h> and don't declare free().
85070
85071 2000-06-19  Jim Meyering  <meyering@lucent.com>
85072
85073         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
85074
85075 2000-06-18  Jim Meyering  <meyering@lucent.com>
85076
85077         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
85078
85079         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
85080         `checking whether...' message to be consistent with that of the
85081         lstat test.
85082
85083 2000-06-18  Jim Meyering  <meyering@lucent.com>
85084
85085         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
85086         Besides, these days every porting target provides a mkdir function.
85087
85088         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
85089         needed. (this snippet comes from src/system.h).
85090
85091 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
85092
85093         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
85094
85095 2000-06-15  Paul Eggert  <eggert@twinsun.com>
85096
85097         * lib/human.c (adjust_value): New function.
85098         (human_readable_inexact): Apply rounding style even when
85099         printing approximate values.
85100
85101 2000-06-14  Paul Eggert  <eggert@twinsun.com>
85102
85103         * lib/human.c (human_readable_inexact): Allow an input block
85104         size that is not a multiple of the output block size, and vice versa.
85105         Reported by Piergiorgio Sartor.
85106
85107 2000-06-14  Paul Eggert  <eggert@twinsun.com>
85108
85109         * lib/getdate.y (get_date): Apply relative times after time
85110         zone indicator, not before.  Reported by Todd A. Jacobs.
85111
85112 2000-06-13  Jim Meyering  <meyering@lucent.com>
85113
85114         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
85115
85116         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
85117
85118 2000-06-12  Paul Eggert  <eggert@twinsun.com>
85119
85120         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
85121
85122 2000-06-12  Jim Meyering  <meyering@lucent.com>
85123
85124         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
85125         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
85126         optional argument.
85127         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
85128         the optional argument, `lib'.
85129
85130 2000-06-08  Jim Meyering  <meyering@lucent.com>
85131
85132         * m4/largefile.m4: Remove file (now that it's part of autoconf).
85133
85134 2000-06-04  Paul Eggert  <eggert@twinsun.com>
85135
85136         Rewrite largefile configuration so that we don't need to run
85137         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
85138         AC_CANONICAL_HOST in configure.in -- jmm]
85139
85140         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
85141         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
85142         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
85143         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
85144         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
85145         All uses changed.
85146         Instead of inspecting the output of getconf, try to compile the
85147         test program without and with the macro definition.
85148         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
85149         for getconf.  Instead, check for the needed flags by compiling
85150         test programs.
85151
85152 2000-06-04  Paul Eggert  <eggert@twinsun.com>
85153
85154         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
85155
85156 2000-06-04  Jim Meyering  <meyering@lucent.com>
85157
85158         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
85159         SunOS 4.1.4 for which gid_t is an unsigned type.
85160
85161 2000-06-03  Jim Meyering  <meyering@lucent.com>
85162
85163         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
85164         now that autoconf requires that.
85165
85166         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
85167         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
85168         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
85169
85170 2000-06-03  Jim Meyering  <meyering@lucent.com>
85171
85172         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
85173
85174 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
85175
85176         * m4/glibc21.m4: New file.
85177         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
85178
85179 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
85180
85181         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
85182         newer, don't install charset.alias.
85183         * lib/config.charset: Change the Linux/glibc rules so they become empty
85184         on glibc-2.1 or newer.
85185
85186 2000-06-02  Jim Meyering  <meyering@lucent.com>
85187
85188         * lib/mountlist.c: Back out last change.  Instead, do this...
85189         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
85190         me_dummy member using the same `ignore'-testing code.
85191         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
85192         fs_type strings.
85193         From Mark D. Roth.
85194
85195 2000-05-29  Jim Meyering  <meyering@lucent.com>
85196
85197         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
85198         mounts with the `ignore' attribute.  Based on a patch from
85199         Mark D. Roth.
85200
85201 2000-05-28  Jim Meyering  <meyering@lucent.com>
85202
85203         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
85204         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85205         * m4/stat.m4: Likewise.
85206         * m4/lstat.m4: Likewise.
85207         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
85208
85209         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
85210         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
85211
85212 2000-05-26  Jim Meyering  <meyering@lucent.com>
85213
85214         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
85215
85216 2000-05-24  Jim Meyering  <meyering@lucent.com>
85217
85218         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
85219         autoconf requires that.
85220         * m4/lib-check.m4: Likewise.
85221         * m4/jm-macros.m4: Likewise.
85222         * m4/strftime.m4: Likewise.
85223
85224         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
85225         AC_CHECK_DECLS, now that autoconf requires that.
85226
85227 2000-05-22  Jim Meyering  <meyering@lucent.com>
85228
85229         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85230         * m4/lstat.m4: Likewise.
85231
85232 2000-05-22  Jim Meyering  <meyering@lucent.com>
85233
85234         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
85235
85236 2000-05-20  Jim Meyering  <meyering@lucent.com>
85237
85238         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
85239         (jm_PREREQ): Use it.
85240
85241 2000-05-18  Jim Meyering  <meyering@lucent.com>
85242
85243         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
85244         back, too, since it may have been modified by allocate_entry.
85245         (hash_delete): Rewrite to use neither the assignment operator
85246         nor the comma operator in an if-expression.
85247
85248 2000-05-15  Paul Eggert  <eggert@twinsun.com>
85249
85250         * lib/closeout.c:
85251         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
85252         Remove; no longer needed.
85253         "quotearg.h": Add include.
85254         (file_name): Do not bother to explicitly initialize to NULL; it's less
85255         efficient on some hosts.
85256         (close_stdout_status): Remove test as to whether stdout was already
85257         closed; it breaks for the case "echo x | sort >&-".
85258         Quote file name colons.
85259         Do not assume that _("write error") lacks format strings.
85260
85261 2000-05-15  Jim Meyering  <meyering@lucent.com>
85262
85263         * lib/version-etc.c (version_etc_copyright): Update the copyright
85264         string used in all --version output.
85265
85266 2000-05-14  Jim Meyering  <meyering@lucent.com>
85267
85268         * lib/closeout.c (close_stdout_set_file_name): New function.
85269         (close_stdout_status): Use new file-scoped global.
85270         Return right away if fstat says the stdout file descriptor is invalid.
85271         * lib/closeout.h (close_stdout_set_file_name): Declare.
85272
85273 2000-05-10  Jim Meyering  <meyering@lucent.com>
85274
85275         * lib/closeout.c [default_exit_status]: New file-scoped variable.
85276         (close_stdout_set_status): New function.
85277         * lib/closeout.h (close_stdout_set_status): Declare.
85278
85279 2000-05-09  Jim Meyering  <meyering@lucent.com>
85280
85281         * m4/gettext.m4: Rename this...
85282         * m4/libintl.m4: ...to this.
85283
85284 2000-05-08  Jim Meyering  <meyering@lucent.com>
85285
85286         * lib/long-options.c: Don't include closeout.h.
85287         (parse_long_options): Don't call close_stdout for --version.
85288
85289 2000-05-06  Paul Eggert  <eggert@twinsun.com>
85290
85291         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
85292         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
85293         2.1.3 bug.  This avoids a clash when files like regex.c define
85294         _GNU_SOURCE.
85295
85296 2000-05-06  Jim Meyering  <meyering@lucent.com>
85297
85298         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
85299         (AC_REPLACE_FUNCS): Add strnlen.
85300
85301         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
85302         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
85303
85304         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
85305         AC_SEARCH_LIBS call for nanosleep.
85306         (LIB_NANOSLEEP): Set and AC_SUBST.
85307
85308 2000-05-06  Jim Meyering  <meyering@lucent.com>
85309
85310         * lib/strnlen.c: Undefine __strnlen and strnlen.
85311         [!weak_alias]: Define __strnlen to strnlen.
85312
85313         * lib/atexit.c: New file, from libiberty.
85314
85315 2000-05-06  Jim Meyering  <meyering@lucent.com>
85316
85317         * lib/closeout.c (close_stdout_status): Also check for errors on the
85318         stderr stream.
85319
85320 2000-05-05  Jim Meyering  <meyering@lucent.com>
85321
85322         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
85323         AC_SEARCH_LIBS call for clock_gettime.
85324         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
85325
85326         * m4/search-libs.m4: Update from autoconf.
85327
85328         su doesn't work on Solaris 2.6.
85329         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
85330         <shadow.h>.  Reported by Dragos Harabor.
85331
85332 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
85333
85334         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
85335         memcpy instead of xmalloc, xrealloc, path_concat.
85336         (locale_charset): Treat empty environment variables as absent.
85337         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
85338
85339 2000-05-04  Jim Meyering  <meyering@lucent.com>
85340
85341         * lib/getopt.c: Update from glibc.
85342         * lib/obstack.c: Likewise.
85343         * lib/obstack.h: Likewise.
85344         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
85345         file
85346
85347         * lib/regex.h: Likewise.
85348         * lib/strndup.c: Likewise.
85349         * lib/strnlen.c: New file, from glibc.
85350
85351 2000-05-03  Jim Meyering  <meyering@lucent.com>
85352
85353         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
85354
85355 2000-05-02  Paul Eggert  <eggert@twinsun.com>
85356
85357         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
85358         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
85359         compile-time test, rather than inspecting host and OS, to
85360         decide whether to define _LARGEFILE_SOURCE.
85361
85362 2000-05-01  Jim Meyering  <meyering@lucent.com>
85363
85364         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
85365
85366         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
85367         Based on a patch from Bruno Haible.
85368
85369 2000-05-01  Jim Meyering  <meyering@lucent.com>
85370
85371         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
85372
85373 2000-04-29  Jim Meyering  <meyering@lucent.com>
85374
85375         * lib/path-concat.c: Declare strdup only if it's not defined.
85376         * lib/canon-host.c: Likewise.
85377
85378 2000-04-28  Jim Meyering  <meyering@lucent.com>
85379
85380         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
85381         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
85382         is included first, then limits.h is included by locale.h by libintl.h.
85383         From John David Anglin.
85384
85385 2000-04-25  Jim Meyering  <meyering@lucent.com>
85386
85387         * lib/makepath.c (S_IRWXUGO): Define.
85388         (make_path): Always perform explicit chmod if MODE specifies any
85389         of the `special' permission bits.  Prompted by a bug report against
85390         install from Mate Wierdl and Joost van Baal.
85391
85392 2000-04-18  Jim Meyering  <meyering@lucent.com>
85393
85394         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
85395         (jm_PREREQ): Use it.
85396
85397 2000-04-18  Jim Meyering  <meyering@lucent.com>
85398
85399         * lib/README: New file.
85400
85401         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
85402         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
85403
85404 2000-04-17  Jim Meyering  <meyering@lucent.com>
85405
85406         Get it right :-)
85407         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
85408         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
85409         Suggestion from Akim Demaille.
85410
85411 2000-04-17  Jim Meyering  <meyering@lucent.com>
85412
85413         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
85414         the definition of it to rpl_strftime also defined-away the system's
85415         declaration.
85416
85417 2000-04-15  Jim Meyering  <meyering@lucent.com>
85418
85419         Use `C' to denote so-called `contiguous' files, the same way
85420         that tar does.
85421         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
85422         (ftypelet): Use S_ISCTG.
85423         From Michael Deutschmann.
85424
85425 2000-04-14  Jim Meyering  <meyering@lucent.com>
85426
85427         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
85428         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
85429         clobbered.
85430
85431 2000-04-14  Jim Meyering  <meyering@lucent.com>
85432
85433         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
85434
85435 2000-04-13  Jim Meyering  <meyering@lucent.com>
85436
85437         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
85438         AH_VERBATIM to insert required #ifndef into config.h.in.
85439         Suggestion from Akim Demaille.
85440
85441 2000-04-12  Jim Meyering  <meyering@lucent.com>
85442
85443         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
85444         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
85445         Christian Krackowizer.
85446
85447         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
85448         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
85449         (AC_SYS_LARGEFILE): Require.
85450         (AM_C_PROTOTYPES): Require.
85451
85452 2000-04-08  Jim Meyering  <meyering@lucent.com>
85453
85454         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
85455         names don't conflict.  Reported by Eli Zaretskii.
85456
85457 2000-04-07  Jim Meyering  <meyering@lucent.com>
85458
85459         * lib/putenv.c: Move inclusion of errno.h so it follows that of
85460         sys/types.h, to work around system header problems on AIX 3.2.5.
85461         From Bruno Haible.
85462
85463 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
85464
85465         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
85466         bug.  Deal with the different error behavior of Irix iconv.
85467
85468 2000-04-05  Paul Eggert  <eggert@twinsun.com>
85469
85470         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
85471         IRIX if the installer said otherwise.
85472
85473 2000-04-05  Jim Meyering  <meyering@lucent.com>
85474
85475         Portability tweaks required for ultrix4.3.
85476         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
85477         (jm_CHECK_DECLS): Add getutent to the list of functions.
85478         (_jm_DECL_HEADERS): Add utmpx.h.
85479         From John David Anglin.
85480
85481         * m4/strftime.m4: Back out the 2000-04-02 change.
85482         Instead of that change, simply undefine putenv in the test program.
85483
85484 2000-04-05  Jim Meyering  <meyering@lucent.com>
85485
85486         Portability tweaks required for ultrix4.3.
85487         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
85488         getutent.
85489         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
85490         * lib/canon-host.c: Declare strdup.
85491         * lib/path-concat.c: Likewise.
85492         From John David Anglin.
85493
85494 2000-04-04  Jim Meyering  <meyering@lucent.com>
85495
85496         Be more DOS 8.3-friendly.
85497         * lib/ref-add.sin: Renamed from ref-add.sed.in.
85498         * lib/ref-del.sin: Renamed from ref-del.sed.in.
85499         * lib/Makefile.am: Reflect renaming.
85500         Reported by Eli Zaretskii.
85501
85502         Use a temporary file name that won't clash with `charset.alias'
85503         in the DOS 8.3 name space.
85504         * lib/Makefile.am (charset_tmp): Define.
85505         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
85506         (uninstall-local): Likewise.
85507         Reported by Eli Zaretskii.
85508
85509 2000-04-03  Jim Meyering  <meyering@lucent.com>
85510
85511         * m4/gettext.m4: Fix typo in comment.
85512
85513         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
85514         textutils/configure.in).  Suggestion from Paul Eggert.
85515         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
85516
85517 2000-04-02  Paul Eggert  <eggert@twinsun.com>
85518
85519         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
85520         variable in the shell rather than using putenv, which isn't
85521         portable.  This avoids the configure-time inter-test dependency
85522         on the potentially-renamed putenv function.
85523
85524 2000-03-30  Paul Eggert  <eggert@twinsun.com>
85525
85526         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
85527         before checking struct stat.st_blksize, so that
85528         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
85529
85530 2000-03-29  Paul Eggert  <eggert@twinsun.com>
85531
85532         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
85533         since strftime.c uses HAVE_STRFTIME to decide whether to use
85534         the underlying strftime.
85535
85536 2000-03-29  Paul Eggert  <eggert@twinsun.com>
85537
85538         * lib/time/strftime.c (my_strftime): Make sure we call the system
85539         strftime, not ourselves, when invoking the underlying strftime.
85540
85541 2000-03-24  Jim Meyering  <meyering@lucent.com>
85542
85543         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
85544         (charset_alias): Define.
85545         (install-exec-local): Factor out common code.
85546         (uninstall-local): Split lines longer than 80.
85547         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
85548         (SUFFIXES): Define.
85549         (.sed.in.sed): New rule.  Don't redirect directly to $@.
85550         (CLEANFILES): Add ref-add.sed and ref-del.sed.
85551
85552 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
85553
85554         * lib/config.charset: Output a line containing "Packages using this
85555         file".
85556         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
85557         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
85558         ref-del.sed): New rules.
85559
85560 2000-03-17  Jim Meyering  <meyering@lucent.com>
85561
85562         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
85563         Otherwise, include <strings.h>
85564
85565 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
85566
85567         * lib/unicodeio.c (utf8_wctomb): New function.
85568         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
85569         format instead of in UCS-4 with platform dependent endianness.
85570
85571 2000-03-10  Jim Meyering  <meyering@lucent.com>
85572
85573         * m4/lib-check.m4: Look for getspnam in -lgen, too.
85574         From Marco Franzen.
85575
85576 2000-03-07  Paul Eggert  <eggert@twinsun.com>
85577
85578         * lib/savedir.c (savedir): Work even if directory size is
85579         negative; this can happen with some screwy NFS configurations.
85580
85581 2000-03-06  Jim Meyering  <meyering@lucent.com>
85582
85583         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
85584         if it's NULL (because we ran out of memory).  From Bruno Haible.
85585
85586 2000-03-05  Jim Meyering  <meyering@lucent.com>
85587
85588         * lib/localcharset.c ("path-concat.h"): Include.
85589         (get_charset_aliases): Use path_concat instead of ANSI string
85590         concatenation.
85591
85592         * lib/unicodeio.h (PARAMS): Define.
85593         Use it to guard prototype.
85594
85595 2000-03-04  Jim Meyering  <meyering@lucent.com>
85596
85597         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
85598         for lib/localcharset.c.
85599
85600 2000-03-04  Jim Meyering  <meyering@lucent.com>
85601
85602         * lib/Makefile.am (install-exec-local): Create $(libdir) before
85603         installing into it.
85604         (uninstall-local): Uncomment this rule so `make distcheck' works
85605         once again.
85606
85607         * lib/unicodeio.c (<errno.h>): Include it.
85608         (errno): Declare if not defined.
85609
85610         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
85611
85612         * lib/config.charset: New version, incorporating remarks from a linux
85613         i18n mailing list.  From Bruno Haible.
85614
85615 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
85616
85617         * m4/codeset.m4: New file.
85618         * m4/iconv.m4: New file.
85619         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
85620
85621 2000-03-03  Jim Meyering  <meyering@lucent.com>
85622
85623         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
85624
85625 2000-03-02  Jim Meyering  <meyering@lucent.com>
85626
85627         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
85628         the messages come out on separate lines.
85629
85630         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
85631         rather than jm_CHECK_DECLARATIONS.
85632         * m4/decl.m4: Remove now-unused file.
85633
85634         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
85635         geteuid.
85636
85637 2000-03-02  Jim Meyering  <meyering@lucent.com>
85638
85639         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
85640
85641 2000-03-01  Jim Meyering  <meyering@lucent.com>
85642
85643         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
85644         * lib/unicodeio.c: Likewise.
85645
85646 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
85647
85648         * lib/config.charset: New file.
85649         * lib/localcharset.c: New file.
85650         * lib/unicodeio.h, lib/unicodeio.c: New files.
85651         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
85652         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
85653         (noinst_HEADERS): Add unicodeio.h.
85654         (all-local, install-exec-local, charset.alias): New targets.
85655
85656 2000-02-28  Paul Eggert  <eggert@twinsun.com>
85657
85658         * lib/quotearg.c (ALERT_CHAR): New macro.
85659         (quotearg_buffer_restyled): Use it.
85660
85661 2000-02-27  Jim Meyering  <meyering@lucent.com>
85662
85663         * m4/check-decl.m4: Add getenv to the list.
85664
85665 2000-02-27  Jim Meyering  <meyering@lucent.com>
85666
85667         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
85668         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
85669
85670         * lib/backupfile.c: Guard inclusion of stdlib.h with
85671         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
85672         Declare malloc if needed.
85673
85674         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
85675         `#ifndef HAVE_DECL..'
85676         now that autoconf always defines the HAVE_DECL_ symbols.
85677         * lib/human.c: Likewise.
85678         * lib/same.c: Likewise.
85679         * lib/strtoumax.c: Likewise.
85680
85681         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
85682         declaration check was not run.
85683         * lib/hash.c: Likewise.
85684         * lib/human.c: Likewise.
85685         * lib/same.c: Likewise.
85686         * lib/strtoumax.c: Likewise.
85687
85688         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
85689         `.', then first look up the entire `.'-containing string as a login
85690         name.
85691
85692 2000-02-23  Jim Meyering  <meyering@lucent.com>
85693
85694         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
85695         in place of my hack.
85696
85697 2000-02-18  Paul Eggert  <eggert@twinsun.com>
85698
85699         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
85700         (textint): New typedef.
85701         (parser_control): Member year changed from int to textint.
85702         All uses changed.
85703         (YYSTYPE): Removed; replaced by %union with int and textint members.
85704         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
85705         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
85706         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
85707         (tSNUMBER, tUNUMBER): Now of type <textintval>.
85708         (date, number, to_year): Use width of number in digits, not its value,
85709         to determine whether it's a 2-digit year, or a 2-digit time.
85710         (yylex): Store number of digits of numeric tokens.
85711         Reported by John Kendall.
85712
85713         (parser_control): Changed from struct parser_control to typedef (for
85714         consistency).  All uses changed.
85715
85716         (tID): Removed; not used.
85717         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
85718
85719 2000-02-14  Paul Eggert  <eggert@twinsun.com>
85720
85721         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
85722         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
85723
85724 2000-02-12  Jim Meyering  <meyering@lucent.com>
85725
85726         * lib/userspec.c (ISDIGIT): Define it.
85727         (isdigit): Remove definition.
85728         (is_number): Use ISDIGIT, not isdigit.
85729         <libintl.h>: Include.
85730         (_ and N_): Define.
85731         (parse_user_spec): Mark translatable strings.
85732
85733 2000-02-10  Jim Meyering  <meyering@lucent.com>
85734
85735         With these changes, nanosleep.[ch] are finally enough like the other
85736         lib/* replacement files to compile on a few more losing systems.
85737
85738         * lib/nanosleep.h: Don't include config.h.
85739         Remove prototype from declaration of nanosleep.
85740         (PARAMS): Remove now-unneeded definition.
85741         * lib/nanosleep.c: #undef nanosleep.
85742         (rpl_nanosleep): Rename from nanosleep.
85743
85744 2000-02-10  Jim Meyering  <meyering@lucent.com>
85745
85746         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
85747         gnu_nanosleep to rpl_nanosleep.
85748
85749 2000-02-09  Jim Meyering  <meyering@lucent.com>
85750
85751         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
85752         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
85753
85754 2000-02-08  Akim Demaille  <akim@epita.fr>
85755
85756         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
85757         `[' and `]' and remove uses of `changequote'.
85758         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
85759         (AC_SYS_LARGEFILE): Likewise.
85760         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
85761         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
85762         of changequote.
85763         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
85764         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
85765         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
85766         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
85767
85768 2000-02-05  Jim Meyering  <meyering@lucent.com>
85769
85770         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
85771         Remove explicit use of AC_HEADER_TIME.  It is required by
85772         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
85773         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
85774         in autoconf whereby the expansion of the latter ended up preceding
85775         the expansion of its prerequisite, AC_HEADER_TIME.
85776         Reported by Volker Borchert.
85777
85778 2000-02-03  Jim Meyering  <meyering@lucent.com>
85779
85780         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
85781
85782 2000-02-03  Jim Meyering  <meyering@lucent.com>
85783
85784         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
85785         rather than with `#if HAVE_UTMPNAME'.
85786
85787 2000-02-02  Jim Meyering  <meyering@lucent.com>
85788
85789         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
85790         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
85791         Reported by Eli Zaretskii.
85792
85793 2000-02-01  Jim Meyering  <meyering@lucent.com>
85794
85795         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
85796
85797 2000-01-31  Jim Meyering  <meyering@lucent.com>
85798
85799         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
85800         functions.  Add the time.h and sys/time.h headers along with the
85801         AC_REQUIRE'ment of AC_HEADER_TIME.
85802
85803 2000-01-31  Jim Meyering  <meyering@lucent.com>
85804
85805         * lib/nanosleep.h (nanosleep): Guard declaration with
85806         `#if ! HAVE_DECL_NANOSLEEP'.
85807         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
85808         the declaration in that vendor's sys/timers.h.
85809         Reported by Christian Krackowizer.
85810
85811         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
85812         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
85813         (ISPRINT): Likewise.
85814         Reported by Tom Tromey.
85815
85816 2000-01-30  Jim Meyering  <meyering@lucent.com>
85817
85818         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
85819
85820         * m4/prereq.m4 (utmp_includes): Define.
85821         Check for ut_user and ut_name members in both struct utmpx
85822         and struct utmp.
85823
85824 2000-01-30  Jim Meyering  <meyering@lucent.com>
85825
85826         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
85827         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
85828         header files where only utmpx.ut_user is declared.
85829
85830         * lib/readutmp.h (UT_USER): Define.
85831
85832 2000-01-29  Jim Meyering  <meyering@lucent.com>
85833
85834         * m4/lib-check.m4: New file containing library-related checks from
85835         fileutils and sh-utils (textutils had none).
85836
85837 2000-01-28  Jim Meyering  <meyering@lucent.com>
85838
85839         * m4/perl.m4: Change format of warning message to look more like that
85840         from the missing script.  Suggestion from François Pinard.
85841
85842 2000-01-25  Jim Meyering  <meyering@lucent.com>
85843
85844         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
85845         well as time.h in the compile check.
85846         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
85847         Fix typo in cross-compiling case: s/yes/no/.
85848
85849 2000-01-23  Jim Meyering  <meyering@lucent.com>
85850
85851         * m4/jm-macros.m4: Move df-related tests here from
85852         fileutils/configure.in
85853
85854         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
85855         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
85856
85857         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
85858         s/space/ac_fsusage_space/.
85859         (jm_FILE_SYSTEM_USAGE): Take two parameters.
85860
85861         * m4/ftruncate.m4: New file (derived from part of
85862         fileutils/configure.in).
85863         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
85864         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
85865
85866         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
85867         AC_SUBST these here, rather than just in sh-util/configure.in, so
85868         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
85869         all the same.
85870         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
85871         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
85872         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
85873         (AC_SUBST(POW_LIBM)): Likewise.
85874         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
85875
85876 2000-01-23  Jim Meyering  <meyering@lucent.com>
85877
85878         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
85879         obstack.c.
85880
85881 2000-01-22  Jim Meyering  <meyering@lucent.com>
85882
85883         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
85884
85885         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
85886
85887         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
85888         configure.in
85889         (AC_CHECK_HEADERS): Likewise for sh-utils.
85890         (AC_CHECK_HEADERS): Likewise for textutils.
85891         Merge the three lists of headers.
85892
85893         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
85894         from fileutils' configure.in.
85895
85896         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
85897         code. Moved tests into their own function (_jm_DECL_HEADERS) in
85898         check-decl.m4.
85899
85900         * m4/check-decl.m4: Use #if rather than #ifdef.
85901         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
85902         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
85903         (_jm_DECL_HEADERS): Define new function.
85904         (jm_CHECK_DECLARATIONS): Require it.
85905
85906 2000-01-22  Jim Meyering  <meyering@lucent.com>
85907
85908         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
85909         [! HAVE_DECL_STRTOULL]: Declare strtoull.
85910         Required for some AIX systems.  Reported by Christian Krackowizer.
85911         [TESTING] (main): New function.
85912
85913         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
85914         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
85915         letters.
85916
85917         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
85918         iswprint.
85919
85920         * lib/strverscmp.c (ISDIGIT): Define.
85921         (strverscmp): Use ISDIGIT, not isdigit.
85922
85923 2000-01-19  Jim Meyering  <meyering@lucent.com>
85924
85925         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
85926         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
85927         defines `struct timespec' in <sys/time.h>
85928
85929         * m4/c-bs-a.m4: Remove uses of changequote altogether.
85930         Thanks to Akim for explaining.
85931
85932 2000-01-17  Paul Eggert  <eggert@twinsun.com>
85933
85934         * lib/nanosleep.c (nanosleep):
85935         Don't use SA_INTERRUPT to decide whether to call sigaction, as
85936         POSIX.1 doesn't require SA_INTERRUPT and some systems
85937         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
85938         it's been part of POSIX.1 since day 1 (in 1988).
85939
85940 2000-01-17  Jim Meyering  <meyering@lucent.com>
85941
85942         * lib/interlock: Remove unused file.  Reported by François Pinard.
85943
85944 2000-01-16  Paul Eggert  <eggert@twinsun.com>
85945
85946         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
85947         alert, backslash, formfeed, and vertical tab unnecessarily in
85948         shell quoting style.
85949
85950 2000-01-16  Jim Meyering  <meyering@lucent.com>
85951
85952         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
85953         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
85954         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
85955         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
85956
85957 2000-01-16  Jim Meyering  <meyering@lucent.com>
85958
85959         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
85960         because the latter didn't work.
85961
85962 2000-01-15  Jim Meyering  <meyering@lucent.com>
85963
85964         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
85965         (AC_REPLACE_FUNCS): Add memcpy and memset.
85966         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
85967         Add strpbrk.
85968         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
85969
85970 2000-01-12  Jim Meyering  <meyering@lucent.com>
85971
85972         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
85973         (jm_PREREQ): Use it.
85974         (jm_PREREQ_READUTMP): New macro.
85975         (jm_PREREQ): Use it.
85976
85977 2000-01-11  Paul Eggert  <eggert@twinsun.com>
85978
85979         Quote multibyte characters correctly.
85980         * m4/c-bs-a.m4: New file.
85981         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
85982         (jm_PREREQ): Use it.
85983
85984 2000-01-11  Paul Eggert  <eggert@twinsun.com>
85985
85986         * m4/uintmax_t.m4: Port to autoconf 2.13.
85987
85988 2000-01-08  Jim Meyering  <meyering@ascend.com>
85989
85990         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
85991         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
85992
85993 2000-01-04  Jim Meyering  <meyering@ascend.com>
85994
85995         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
85996         jm_STRUCT_DIRENT_D_TYPE.
85997         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
85998         jm_STRUCT_DIRENT_D_INO.
85999         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
86000         jm_STRUCT_UTIMBUF.
86001         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
86002         renamings.
86003         * m4/utime.m4: Likewise.
86004
86005         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
86006         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
86007
86008 2000-01-03  Paul Eggert  <eggert@twinsun.com>
86009
86010         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
86011         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
86012
86013 2000-01-02  Jim Meyering  <meyering@ascend.com>
86014
86015         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
86016         remember if this is necessary.
86017
86018 1999-12-26  Jim Meyering  <meyering@ascend.com>
86019
86020         * m4/jm-macros.m4: Use it here.
86021         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
86022
86023 1999-12-23  Jim Meyering  <meyering@ascend.com>
86024
86025         * m4/jm-macros.m4: Check for clock_gettime (moved from
86026         fileutils/configure.in)
86027         Check for gettimeofday.
86028
86029 1999-12-20  Jim Meyering  <meyering@ascend.com>
86030
86031         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
86032         autoconf-2.14a-1999-12-20.
86033
86034 1999-12-19  Jim Meyering  <meyering@ascend.com>
86035
86036         * m4/lstat-slash.m4: New file.
86037         * m4/jm-macros.m4: Use the new macro:
86038         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
86039
86040 1999-12-07  Jim Meyering  <meyering@ascend.com>
86041
86042         * m4/perl.m4: Require that File::Compare be available, too.
86043         Too many systems seem to lack it.
86044
86045         * m4/strftime.m4: Add checks for most of the cpp macros tested in
86046         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
86047
86048 1999-11-18  Paul Eggert  <eggert@twinsun.com>
86049
86050         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
86051         problem with the QNX 4.25 shell, which doesn't propagate exit
86052         status of failed commands inside shell assignments.
86053
86054 1999-11-17  Jim Meyering  <meyering@ascend.com>
86055
86056         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
86057
86058 1999-11-07  Jim Meyering  <meyering@ascend.com>
86059
86060         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
86061
86062 1999-11-06  Jim Meyering  <meyering@ascend.com>
86063
86064         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
86065         * m4/jm-macros.m4 (jm_MACROS): Use it here.
86066
86067 1999-11-05  Jim Meyering  <meyering@ascend.com>
86068
86069         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
86070         configure.in of textutils, fileutils, and sh-utils into this one
86071         (shared between those packages) file.
86072         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
86073         AC_STRUCT_ST_BLKSIZE.
86074
86075 1999-11-03  Jim Meyering  <meyering@ascend.com>
86076
86077         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
86078         of AC_CHECK_TYPE checks includes unistd.h.
86079         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
86080         Suggestion from Akim Demaille.
86081
86082 1999-10-30  Jim Meyering  <meyering@ascend.com>
86083
86084         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
86085         m4-quoted string.
86086         * m4/ls-mntd-fs.m4: Likewise.
86087         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
86088         * m4/jm-winsz1.m4: Likewise.
86089
86090         * m4/const.m4: Remove file, since the fix made it into the experimental
86091         version of autoconf.
86092         * m4/mktime.m4: Likewise.
86093
86094         * m4/check-type.m4: Remove file, now that the latest version of
86095         AC_CHECK_TYPE takes a third arg to specify additional #includes.
86096
86097         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
86098         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
86099         AC_CHECK_TYPE.
86100
86101 1999-10-04  Jim Meyering  <meyering@ascend.com>
86102
86103         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
86104
86105 1999-09-22  Paul Eggert  <eggert@twinsun.com>
86106
86107         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
86108         2.95.1 bug with HP-UX 10.20.
86109
86110 1999-09-17  Jim Meyering  <meyering@ascend.com>
86111
86112         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
86113         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
86114         due to missing strdup (against sh-utils-2.0).
86115
86116 1999-08-29  Jim Meyering  <meyering@ascend.com>
86117
86118         * m4/jm-macros.m4: Require jm_BISON.
86119         * m4/bison.m4: New file.
86120
86121 1999-08-17  Paul Eggert  <eggert@twinsun.com>
86122
86123         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
86124         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
86125
86126 1999-08-05  Jim Meyering  <meyering@ascend.com>
86127
86128         * m4/getline.m4: Rename test file from conftestdata to conftest.data
86129         to avoid conflicts with `conftest' on 8+3 filesystems.
86130         Suggestion from Eli Zaretskii.
86131
86132 1999-08-04  Jim Meyering  <meyering@ascend.com>
86133
86134         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
86135         fileutils and sh-utils (textutils's getline test was inadequate).
86136         (AM_FUNC_GETLINE): Run this test.
86137         (AC_CHECK_FUNCS): Check for getdelim.
86138         Reported by Bob Proulx.
86139
86140 1999-08-02  Jim Meyering  <meyering@ascend.com>
86141
86142         * m4/jm-macros.m4: Add a comment.
86143
86144 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86145
86146         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
86147         <inttypes.h> defines strtoumax as a macro (and not as a
86148         function).
86149
86150 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86151
86152         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
86153         that we can shift, multiply and divide unsigned long long
86154         values; Ultrix cc can't do it.
86155
86156 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86157
86158         * m4/mktime.m4: New file, which is a preview of what should appear
86159         in the next public autoconf release.
86160
86161 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86162
86163         * m4/lfs.m4: Remove this file.
86164         * m4/largefile.m4: New file.  It contains the old contents of
86165         lfs.m4, except that all names with prefix AC_LFS have been
86166         changed to use the prefix AC_SYS_LARGEFILE instead, to be
86167         compatible with future autoconf versions.  Also, some minor m4
86168         quoting problems have been fixed.
86169
86170 1999-08-01  Paul Eggert  <eggert@twinsun.com>
86171
86172         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
86173         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
86174         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
86175         and simplify the shell code.
86176
86177 1999-08-01  Jim Meyering  <meyering@ascend.com>
86178
86179         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
86180         m4.
86181
86182 1999-07-20  Jim Meyering  <meyering@ascend.com>
86183
86184         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
86185
86186 1999-07-15  Jim Meyering  <meyering@ascend.com>
86187
86188         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
86189
86190 1999-05-22  Jim Meyering  <meyering@ascend.com>
86191
86192         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
86193
86194 1999-05-20  Jim Meyering  <meyering@ascend.com>
86195
86196         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
86197         Add a colon after each `then' in case $4 is empty.
86198
86199 1999-05-16  Jim Meyering  <meyering@ascend.com>
86200
86201         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
86202
86203 1999-05-10  Jim Meyering  <meyering@ascend.com>
86204
86205         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
86206
86207         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
86208         AC_FUNC_MKTIME.
86209
86210 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
86211
86212         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
86213
86214 1999-05-04  Paul Eggert  <eggert@twinsun.com>
86215
86216         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
86217         not CPPFLAGS, so that linking works correctly in IRIX.
86218
86219 1999-04-30  Paul Eggert  <eggert@twinsun.com>
86220
86221         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
86222
86223 1999-04-20  Paul Eggert  <eggert@twinsun.com>
86224
86225         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
86226         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
86227         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
86228         jm_AC_TYPE_UNSIGNED_LONG_LONG.
86229         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
86230
86231         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
86232
86233 1999-04-20  Jim Meyering  <meyering@ascend.com>
86234
86235         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
86236         AC_REPLACE xstroull if necessary.  From Paul Eggert.
86237         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
86238
86239 1999-04-18  Jim Meyering  <meyering@ascend.com>
86240
86241         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
86242         * m4/jm-macros.m4: Use it.
86243
86244 1999-04-06  Jim Meyering  <meyering@ascend.com>
86245
86246         * m4/strftime.m4: Remove test for %f.
86247
86248 1999-03-29  Jim Meyering  <meyering@ascend.com>
86249
86250         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
86251         superset of the AC_TYPE_* checks in the textutils, fileutils,
86252         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
86253         AC_TYPE_PID_T.
86254
86255 1999-03-28  Jim Meyering  <meyering@ascend.com>
86256
86257         * m4/jm-macros.m4: Define GNU_PACKAGE here.
86258         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
86259         replaced e.g., in the *.sh files of the sh-utils.
86260
86261 1999-03-20  Jim Meyering  <meyering@ascend.com>
86262
86263         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
86264         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
86265         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
86266
86267 1999-03-19  Jim Meyering  <meyering@ascend.com>
86268
86269         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
86270
86271 1999-03-12  Jim Meyering  <meyering@ascend.com>
86272
86273         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
86274
86275 1999-03-07  Jim Meyering  <meyering@ascend.com>
86276
86277         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
86278         declared.
86279
86280 1999-02-17  Jim Meyering  <meyering@ascend.com>
86281
86282         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
86283         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
86284
86285 1999-02-07  Jim Meyering  <meyering@ascend.com>
86286
86287         * m4/group-member.m4: New file -- extracted from sh-utils'
86288         configure.in.
86289
86290         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
86291         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
86292
86293 1999-02-06  Jim Meyering  <meyering@ascend.com>
86294
86295         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
86296         * m4/fnmatch.m4: Likewise.
86297         * m4/getgroups.m4: Likewise.
86298         * m4/lstat.m4: Likewise.
86299         * m4/malloc.m4: Likewise.
86300         * m4/putenv.m4: Likewise.
86301         * m4/realloc.m4: Likewise.
86302         * m4/regex.m4: Likewise.
86303         * m4/stat.m4: Likewise.
86304         * m4/strftime.m4: Likewise.
86305         Suggestion from Alain Magloire.
86306
86307         * m4/chown.m4: Use `.$ac_objext', not `.o'.
86308         * m4/fnmatch.m4: Likewise.
86309         * m4/getgroups.m4: Likewise.
86310         * m4/getline.m4: Likewise.
86311         * m4/lstat.m4: Likewise.
86312         * m4/malloc.m4: Likewise.
86313         * m4/memcmp.m4: Likewise.
86314         * m4/putenv.m4: Likewise.
86315         * m4/realloc.m4: Likewise.
86316         * m4/regex.m4: Likewise.
86317         * m4/stat.m4: Likewise.
86318         * m4/strftime.m4: Likewise.
86319         Suggestion from Alain Magloire.
86320
86321         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
86322         an argument.
86323
86324         * m4/regex.m4: Add a run-time Test for proper operation of
86325         re_compile_pattern.
86326
86327 1999-01-31  Jim Meyering  <meyering@ascend.com>
86328
86329         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
86330
86331 1999-01-30  Jim Meyering  <meyering@ascend.com>
86332
86333         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
86334
86335         * m4/jm-mktime.m4: Make this a wrapper around the official
86336         AM_FUNC_MKTIME rather than my private copy, now that the official one
86337         is up to date.
86338         * m4/mktime.m4: Remove file.
86339
86340         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
86341         * m4/uptime.m4: Likewise.
86342         * m4/uintmax_t.m4: Likewise.
86343
86344 1999-01-28  Jim Meyering  <meyering@ascend.com>
86345
86346         * m4/jm-macros.m4: Use jm_AFS.
86347         * m4/afs.m4: New file (from fileutils' configure.in).
86348
86349         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
86350         * m4/chown.m4: Likewise.
86351         * m4/d-ino.m4: Likewise.
86352         * m4/d-type.m4: Likewise.
86353         * m4/fnmatch.m4: Likewise.
86354         * m4/getgroups.m4: Likewise.
86355         * m4/gettext.m4: Likewise.
86356         * m4/jm-mktime.m4: Likewise.
86357         * m4/jm-winsz2.m4: Likewise.
86358         * m4/lcmessage.m4: Likewise.
86359         * m4/ls-mntd-fs.m4: Likewise.
86360         * m4/malloc.m4: Likewise.
86361         * m4/memcmp.m4: Likewise.
86362         * m4/putenv.m4: Likewise.
86363         * m4/realloc.m4: Likewise.
86364         * m4/st_mtim.m4: Likewise.
86365         * m4/strftime.m4: Likewise.
86366
86367 1999-01-16  Jim Meyering  <meyering@ascend.com>
86368
86369         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
86370         (ARGMATCH_DIE_DECL): Define.
86371
86372 1999-01-12  Jim Meyering  <meyering@ascend.com>
86373
86374         * m4/Makefile.am.in: Rewrite to avoid using fmt.
86375         Reported by Lars Hecking.
86376
86377 1999-01-10  Jim Meyering  <meyering@ascend.com>
86378
86379         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
86380         gross kludge.
86381         * m4/inttypes_h.m4: Likewise.
86382         * m4/lstat.m4: Likewise.
86383         * m4/malloc.m4: Likewise.
86384         * m4/readdir.m4: Likewise.
86385         * m4/realloc.m4: Likewise.
86386         * m4/st_dm_mode.m4: Likewise.
86387         * m4/stat.m4: Likewise.
86388         * m4/utimbuf.m4: Likewise.
86389         * m4/utimes.m4: Likewise.
86390
86391         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
86392         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
86393         comments in config.h.in are meaningful.
86394
86395         * m4/jm-macros.m4: Require autoconf-2.13 here.
86396
86397         * m4/regex.m4: By default, don't use the included regex.c on systems
86398         with glibc 2.  Suggestion from Uli Drepper.
86399
86400 1999-01-02  Jim Meyering  <meyering@ascend.com>
86401
86402         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
86403
86404 1998-12-18  Jim Meyering  <meyering@ascend.com>
86405
86406         * m4/Makefile.am.in (Makefile.am): Simplify rule.
86407         Based on a suggestion from Lars Hecking.
86408
86409 1998-11-16  Paul Eggert  <eggert@twinsun.com>
86410
86411         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
86412
86413 1998-11-16  Jim Meyering  <meyering@ascend.com>
86414
86415         * m4/lfs.m4: Double-quote the `uname...` expression.
86416
86417 1998-11-14  Jim Meyering  <meyering@ascend.com>
86418
86419         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
86420         * m4/stat.m4: Likewise.
86421
86422 1998-11-03  Jim Meyering  <meyering@ascend.com>
86423
86424         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
86425         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
86426
86427 1998-10-18  Jim Meyering  <meyering@ascend.com>
86428
86429         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
86430
86431 1998-10-17  Jim Meyering  <meyering@ascend.com>
86432
86433         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
86434         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
86435         calls for those previously hard-coded headers.  Instead, take a new
86436         parameter.
86437         (jm_CHECK_DECLARATIONS): Reflect interface change.
86438         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
86439         (jm_CHECK_DECL_LOCALTIME_R): New macro.
86440
86441         * m4/mktime.m4: Test for spring-forward gap before long-running test.
86442
86443 1998-10-14  Jim Meyering  <meyering@ascend.com>
86444
86445         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
86446         instead of "TZ=America/Vancouver".  From Paul Eggert.
86447
86448 1998-10-11  Jim Meyering  <meyering@ascend.com>
86449
86450         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
86451         This adds a test for a recently added compatibility fix for mktime.c.
86452         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
86453
86454 1998-09-27  Jim Meyering  <meyering@ascend.com>
86455
86456         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
86457
86458         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
86459         ../configure.in, including a change from Gordon Matzigkeit to allow
86460         cross-compiling for the Hurd.
86461
86462         * m4/glibc.m4: New file/macro to test for the GNU C Library
86463         versions 1 and 2.  From Gordon Matzigkeit.
86464         Indent.
86465
86466 1998-09-21  Jim Meyering  <meyering@ascend.com>
86467
86468         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
86469
86470 1998-08-18  Paul Eggert  <eggert@twinsun.com>
86471
86472         Port nanosecond-resolution times to UnixWare 2.1.2 and
86473         pedantic Solaris 2.6.
86474
86475         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
86476         AC_STRUCT_ST_MTIM.
86477         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
86478         Generate name of ns member, instead of just 1 or undef.
86479         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
86480
86481 1998-08-15  Jim Meyering  <meyering@ascend.com>
86482
86483         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
86484         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
86485         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
86486         instead of jm_TYPE_SSIZE_T.
86487
86488 1998-08-12  Jim Meyering  <meyering@ascend.com>
86489
86490         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
86491
86492 1998-08-02  Jim Meyering  <meyering@ascend.com>
86493
86494         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
86495         in acconfig.h manually.
86496
86497 1998-07-31  Paul Eggert  <eggert@twinsun.com>
86498
86499         * m4/st_mtim.m4: New file.
86500
86501 1998-07-28  Jim Meyering  <meyering@ascend.com>
86502
86503         * m4/utimes.m4: Undef stat.
86504
86505 1998-07-25  Jim Meyering  <meyering@ascend.com>
86506
86507         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
86508         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
86509
86510 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
86511
86512         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
86513         uid and gid actually remain unchanged.
86514
86515 1998-07-07  Jim Meyering  <meyering@ascend.com>
86516
86517         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
86518
86519 1998-07-04  Jim Meyering  <meyering@ascend.com>
86520
86521         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
86522         to prove that this macro can be used in packages without regex.c.
86523
86524 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
86525
86526         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
86527         is to be used.
86528
86529 1998-07-03  Jim Meyering  <meyering@ascend.com>
86530
86531         * m4/gettext.m4: Add -lintl if it's found to be necessary.
86532
86533         * m4/gettext.m4: New file -- from gettext-0.10.35.
86534         * m4/lcmessage.m4: Likewise.
86535         * m4/progtest.m4: Likewise.
86536
86537         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
86538         * m4/jm-macros.m4: Require the new macro.
86539
86540 1998-06-29  Jim Meyering  <meyering@ascend.com>
86541
86542         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
86543         for the definition of NGROUPS (used in a system header included
86544         by sys/mount.h).
86545
86546 1998-06-28  Jim Meyering  <meyering@ascend.com>
86547
86548         * m4/ls-mntd-fs.m4: New file.
86549         * m4/fstypename.m4: New file.
86550
86551         * m4/jm-macros.m4: Require the new macro.
86552         * m4/jm-glibc-io.m4: New file.
86553
86554 1998-05-19  Jim Meyering  <meyering@ascend.com>
86555
86556         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
86557         * m4/lchown.m4: New file.
86558
86559         * m4/Makefile.am.in: New file.
86560         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
86561
86562 1998-05-14  Jim Meyering  <meyering@ascend.com>
86563
86564         * m4/Makefile.am (EXTRA_DIST): Add them.
86565         * m4/jm-macros.m4: New file.
86566         * m4/utimbuf.m4: New file.
86567
86568 1998-05-12  Jim Meyering  <meyering@ascend.com>
86569
86570         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
86571
86572 1998-05-11  Jim Meyering  <meyering@ascend.com>
86573
86574         * m4/isc-posix.m4: New file.
86575
86576 1998-05-10  Jim Meyering  <meyering@ascend.com>
86577
86578         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
86579
86580 1998-05-09  Jim Meyering  <meyering@ascend.com>
86581
86582         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
86583         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
86584         with automake.
86585
86586         * m4/ssize_t.m4: New file.
86587         * m4/mktime.m4: Remove file -- the new automake has this now.
86588
86589 1998-04-26  Jim Meyering  <meyering@ascend.com>
86590
86591         * m4/assert.m4: New file.
86592         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
86593
86594 1998-04-05  Jim Meyering  <meyering@ascend.com>
86595
86596         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
86597         (jm_PREREQ): Use it here.
86598
86599 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
86600
86601         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
86602         in acconfig.h.
86603
86604 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
86605
86606         * m4/prereq.m4: New file.
86607         * m4/error.m4: New file.
86608         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
86609
86610 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
86611
86612         * m4/getline.m4: Don't set am_cv_func_working_getline before the
86613         cache-check for the same variable -- that defeated the purpose of
86614         the test; the test program was never run.  This was a problem only
86615         on systems with losing getline functions -- HP-UX 10.20 is one.
86616         Reported by Bjorn Helgaas.
86617
86618 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
86619
86620         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
86621
86622 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
86623
86624         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
86625
86626         * m4/const.m4: New file.  Use an initializer in this declaration
86627         typedef int charset[2]; const charset x;
86628         Reported by Bob Glickstein.
86629
86630 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
86631
86632         * m4/chown.m4: Fix reversed types on -1 args to chown.
86633         From Kaveh Ghazi.
86634
86635 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
86636
86637         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
86638         Add lseek and memchr.
86639
86640         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
86641         T.E.Dickey <dickey@clark.net> said that some older preprocessors
86642         have a 20-character limit on names.
86643
86644 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
86645
86646         * m4/inttypes_h.m4: New file.
86647         * m4/uintmax_t.m4: New file.
86648         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
86649
86650
86651         -----
86652
86653         Local Variables:
86654         coding: utf-8
86655         End:
86656
86657         Copyright (C) 1997-2011 Free Software Foundation, Inc.
86658
86659         Copying and distribution of this file, with or without
86660         modification, are permitted provided the copyright notice
86661         and this notice are preserved.